Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
fix(ui): add panel element
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschaMetze committed Jun 8, 2018
1 parent 5034b1d commit 3ee274f
Show file tree
Hide file tree
Showing 758 changed files with 55,683 additions and 42,523 deletions.
107 changes: 56 additions & 51 deletions dist/amd/action-sheet/action-sheet.js

Large diffs are not rendered by default.

1,606 changes: 942 additions & 664 deletions dist/amd/aurelia-openui5-bridge.d.ts

Large diffs are not rendered by default.

79 changes: 42 additions & 37 deletions dist/amd/bar/bar.js
Expand Up @@ -97,7 +97,7 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli
throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');
}

var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;

var Ui5Bar = exports.Ui5Bar = (_dec = (0, _aureliaTemplating.customElement)('ui5-bar'), _dec2 = (0, _aureliaDependencyInjection.inject)(Element), _dec3 = (0, _aureliaTemplating.bindable)(), _dec4 = (0, _aureliaTemplating.bindable)(), _dec5 = (0, _aureliaTemplating.bindable)(), _dec6 = (0, _aureliaTemplating.bindable)(), _dec7 = (0, _aureliaTemplating.bindable)(), _dec8 = (0, _aureliaTemplating.bindable)(), _dec9 = (0, _aureliaTemplating.bindable)(), _dec10 = (0, _aureliaTemplating.bindable)(), _dec11 = (0, _aureliaTemplating.bindable)(), _dec12 = (0, _aureliaTemplating.bindable)(), _dec13 = (0, _aureliaTemplating.bindable)(), _dec14 = (0, _aureliaTemplating.bindable)(), _dec15 = (0, _aureliaFramework.computedFrom)('_bar'), _dec(_class = _dec2(_class = (_class2 = function (_Ui5Control) {
_inherits(Ui5Bar, _Ui5Control);
Expand All @@ -113,29 +113,31 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli

_initDefineProp(_this, 'ui5Id', _descriptor, _this);

_initDefineProp(_this, 'design', _descriptor2, _this);
_initDefineProp(_this, 'prevId', _descriptor2, _this);

_initDefineProp(_this, 'busy', _descriptor3, _this);
_initDefineProp(_this, 'design', _descriptor3, _this);

_initDefineProp(_this, 'busyIndicatorDelay', _descriptor4, _this);
_initDefineProp(_this, 'busy', _descriptor4, _this);

_initDefineProp(_this, 'busyIndicatorSize', _descriptor5, _this);
_initDefineProp(_this, 'busyIndicatorDelay', _descriptor5, _this);

_initDefineProp(_this, 'visible', _descriptor6, _this);
_initDefineProp(_this, 'busyIndicatorSize', _descriptor6, _this);

_initDefineProp(_this, 'fieldGroupIds', _descriptor7, _this);
_initDefineProp(_this, 'visible', _descriptor7, _this);

_initDefineProp(_this, 'validateFieldGroup', _descriptor8, _this);
_initDefineProp(_this, 'fieldGroupIds', _descriptor8, _this);

_initDefineProp(_this, 'validationSuccess', _descriptor9, _this);
_initDefineProp(_this, 'validateFieldGroup', _descriptor9, _this);

_initDefineProp(_this, 'validationError', _descriptor10, _this);
_initDefineProp(_this, 'validationSuccess', _descriptor10, _this);

_initDefineProp(_this, 'parseError', _descriptor11, _this);
_initDefineProp(_this, 'validationError', _descriptor11, _this);

_initDefineProp(_this, 'formatError', _descriptor12, _this);
_initDefineProp(_this, 'parseError', _descriptor12, _this);

_initDefineProp(_this, 'modelContextChange', _descriptor13, _this);
_initDefineProp(_this, 'formatError', _descriptor13, _this);

_initDefineProp(_this, 'modelContextChange', _descriptor14, _this);

_this.element = element;
_this.attributeManager = new _attributeManager.AttributeManager(_this.element);
Expand All @@ -160,16 +162,14 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli
this._parent = $(this.element).closest("[ui5-container]")[0].au.controller.viewModel;
if (!this._parent.UIElement || this._parent.UIElement.sId != this._bar.sId) {
var prevSibling = null;
if (this.element.previousElementSibling && this.element.previousElementSibling.au) prevSibling = this.element.previousElementSibling.au.controller.viewModel.UIElement;
this._relation = this._parent.addChild(this._bar, this.element, prevSibling);

this._relation = this._parent.addChild(this._bar, this.element, this.prevId);
this.attributeManager.addAttributes({ "ui5-container": '' });
} else {
this._parent = $(this.element.parentElement).closest("[ui5-container]")[0].au.controller.viewModel;
var prevSibling = null;
if (this.element.previousElementSibling && this.element.previousElementSibling.au) {
prevSibling = this.element.previousElementSibling.au.controller.viewModel.UIElement;
this._relation = this._parent.addChild(this._bar, this.element, prevSibling);
} else this._relation = this._parent.addChild(this._bar, this.element);
this._relation = this._parent.addChild(this._bar, this.element, this.prevId);

this.attributeManager.addAttributes({ "ui5-container": '' });
}
} else {
Expand All @@ -185,7 +185,7 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli
try {
if ($(this.element).closest("[ui5-container]").length > 0) {
if (this._parent && this._relation) {
this._parent.removeChildByRelation(this._bar, this._relation);
if (this._bar) this._parent.removeChildByRelation(this._bar, this._relation);
}
} else {
this._bar.destroy();
Expand All @@ -208,25 +208,25 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli

try {
if (elem.localName == 'contentleft') {
var _index = null;if (afterElement) _index = this._bar.indexOfContentLeft(afterElement);if (_index) this._bar.insertContentLeft(child, _index + 1);else this._bar.addContentLeft(child, 0);return elem.localName;
var _index = afterElement ? Math.floor(afterElement + 1) : null;if (_index) this._bar.insertContentLeft(child, _index);else this._bar.addContentLeft(child, 0);return elem.localName;
}
if (elem.localName == 'contentmiddle') {
var _index = null;if (afterElement) _index = this._bar.indexOfContentMiddle(afterElement);if (_index) this._bar.insertContentMiddle(child, _index + 1);else this._bar.addContentMiddle(child, 0);return elem.localName;
var _index = afterElement ? Math.floor(afterElement + 1) : null;if (_index) this._bar.insertContentMiddle(child, _index);else this._bar.addContentMiddle(child, 0);return elem.localName;
}
if (elem.localName == 'contentright') {
var _index = null;if (afterElement) _index = this._bar.indexOfContentRight(afterElement);if (_index) this._bar.insertContentRight(child, _index + 1);else this._bar.addContentRight(child, 0);return elem.localName;
var _index = afterElement ? Math.floor(afterElement + 1) : null;if (_index) this._bar.insertContentRight(child, _index);else this._bar.addContentRight(child, 0);return elem.localName;
}
if (elem.localName == 'tooltip') {
this._bar.setTooltip(child);return elem.localName;
}
if (elem.localName == 'customdata') {
var _index = null;if (afterElement) _index = this._bar.indexOfCustomData(afterElement);if (_index) this._bar.insertCustomData(child, _index + 1);else this._bar.addCustomData(child, 0);return elem.localName;
var _index = afterElement ? Math.floor(afterElement + 1) : null;if (_index) this._bar.insertCustomData(child, _index);else this._bar.addCustomData(child, 0);return elem.localName;
}
if (elem.localName == 'layoutdata') {
this._bar.setLayoutData(child);return elem.localName;
}
if (elem.localName == 'dependents') {
var _index = null;if (afterElement) _index = this._bar.indexOfDependent(afterElement);if (_index) this._bar.insertDependent(child, _index + 1);else this._bar.addDependent(child, 0);return elem.localName;
var _index = afterElement ? Math.floor(afterElement + 1) : null;if (_index) this._bar.insertDependent(child, _index);else this._bar.addDependent(child, 0);return elem.localName;
}
} catch (err) {}
}
Expand Down Expand Up @@ -343,62 +343,67 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli
initializer: function initializer() {
return null;
}
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'design', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'prevId', [_aureliaTemplating.bindable], {
enumerable: true,
initializer: function initializer() {
return null;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'design', [_dec3], {
enumerable: true,
initializer: function initializer() {
return 'Auto';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'busy', [_dec4], {
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'busy', [_dec4], {
enumerable: true,
initializer: function initializer() {
return false;
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'busyIndicatorDelay', [_dec5], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'busyIndicatorDelay', [_dec5], {
enumerable: true,
initializer: function initializer() {
return 1000;
}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'busyIndicatorSize', [_dec6], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'busyIndicatorSize', [_dec6], {
enumerable: true,
initializer: function initializer() {
return 'Medium';
}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'visible', [_dec7], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'visible', [_dec7], {
enumerable: true,
initializer: function initializer() {
return true;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'fieldGroupIds', [_dec8], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'fieldGroupIds', [_dec8], {
enumerable: true,
initializer: function initializer() {
return '[]';
}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'validateFieldGroup', [_dec9], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'validateFieldGroup', [_dec9], {
enumerable: true,
initializer: function initializer() {
return this.defaultFunc;
}
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'validationSuccess', [_dec10], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'validationSuccess', [_dec10], {
enumerable: true,
initializer: function initializer() {
return this.defaultFunc;
}
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'validationError', [_dec11], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'validationError', [_dec11], {
enumerable: true,
initializer: function initializer() {
return this.defaultFunc;
}
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'parseError', [_dec12], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'parseError', [_dec12], {
enumerable: true,
initializer: function initializer() {
return this.defaultFunc;
}
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'formatError', [_dec13], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'formatError', [_dec13], {
enumerable: true,
initializer: function initializer() {
return this.defaultFunc;
}
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'modelContextChange', [_dec14], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'modelContextChange', [_dec14], {
enumerable: true,
initializer: function initializer() {
return this.defaultFunc;
Expand Down

0 comments on commit 3ee274f

Please sign in to comment.