aurelia-syncfusion-ej2-bridge 0.1.0-beta.9 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/commonjs/common/controlBase.d.ts +3 -1
- package/dist/commonjs/common/controlBase.js +18 -9
- package/dist/commonjs/common/syncfusionWrapper.d.ts +3 -0
- package/dist/commonjs/common/syncfusionWrapper.js +11 -6
- package/dist/commonjs/configBuider.d.ts +2 -0
- package/dist/commonjs/configBuider.js +12 -2
- package/dist/commonjs/controlBindings.d.ts +10 -0
- package/dist/commonjs/controlBindings.js +70 -38
- package/dist/commonjs/index.js +2 -2
- package/dist/commonjs/utilities/decorator.js +2 -3
- package/dist/commonjs/widgets/accordion/ej2-accordion.js +6 -6
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.js +5 -5
- package/dist/commonjs/widgets/button/ej2-button.d.ts +1 -1
- package/dist/commonjs/widgets/button/ej2-button.js +13 -11
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +4 -5
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +6 -7
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.js +5 -5
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.js +5 -5
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.js +5 -5
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.js +5 -5
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.js +5 -5
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.js +5 -5
- package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.js +5 -5
- package/dist/commonjs/widgets/fileManager/ej2-fileManager.js +6 -6
- package/dist/commonjs/widgets/grid/ej2-grid.js +27 -27
- package/dist/commonjs/widgets/listView/ej2-listView.js +6 -6
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.js +6 -6
- package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.d.ts +10 -0
- package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.js +44 -0
- package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.js +5 -5
- package/dist/commonjs/widgets/pager/ej2-pager.js +5 -5
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.d.ts +1 -1
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +13 -11
- package/dist/commonjs/widgets/radio/ej2-radio.js +8 -8
- package/dist/commonjs/widgets/schedule/ej2-schedule.d.ts +8 -0
- package/dist/commonjs/widgets/schedule/ej2-schedule.js +32 -0
- package/dist/commonjs/widgets/sidebar/ej2-sidebar.js +5 -5
- package/dist/commonjs/widgets/slider/ej2-slider.d.ts +2 -0
- package/dist/commonjs/widgets/slider/ej2-slider.js +19 -5
- package/dist/commonjs/widgets/splitter/ej2-splitter.js +5 -7
- package/dist/commonjs/widgets/switch/ej2-switch.d.ts +2 -1
- package/dist/commonjs/widgets/switch/ej2-switch.js +13 -9
- package/dist/commonjs/widgets/textBox/ej2-textBox.js +6 -6
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.js +5 -5
- package/dist/commonjs/widgets/treeView/ej2-treeView.js +5 -5
- package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +7 -1
- package/dist/commonjs/widgets/uploader/ej2-uploader.js +70 -34
- package/dist/native-modules/common/controlBase.d.ts +3 -1
- package/dist/native-modules/common/controlBase.js +16 -7
- package/dist/native-modules/common/syncfusionWrapper.d.ts +3 -0
- package/dist/native-modules/common/syncfusionWrapper.js +11 -6
- package/dist/native-modules/configBuider.d.ts +2 -0
- package/dist/native-modules/configBuider.js +12 -2
- package/dist/native-modules/controlBindings.d.ts +10 -0
- package/dist/native-modules/controlBindings.js +70 -38
- package/dist/native-modules/interfaces/IEJ2WidgetBridge.js +1 -0
- package/dist/native-modules/interfaces/IEj2Uploader.js +1 -0
- package/dist/native-modules/widgets/button/ej2-button.d.ts +1 -1
- package/dist/native-modules/widgets/button/ej2-button.js +9 -7
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +0 -1
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +2 -3
- package/dist/native-modules/widgets/grid/ej2-grid.js +22 -22
- package/dist/native-modules/widgets/listView/ej2-listView.js +1 -1
- package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.d.ts +10 -0
- package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.js +41 -0
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.d.ts +1 -1
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +8 -6
- package/dist/native-modules/widgets/radio/ej2-radio.js +3 -3
- package/dist/native-modules/widgets/schedule/ej2-schedule.d.ts +8 -0
- package/dist/native-modules/widgets/schedule/ej2-schedule.js +29 -0
- package/dist/native-modules/widgets/slider/ej2-slider.d.ts +2 -0
- package/dist/native-modules/widgets/slider/ej2-slider.js +11 -0
- package/dist/native-modules/widgets/splitter/ej2-splitter.js +0 -2
- package/dist/native-modules/widgets/switch/ej2-switch.d.ts +2 -1
- package/dist/native-modules/widgets/switch/ej2-switch.js +8 -4
- package/dist/native-modules/widgets/uploader/ej2-uploader.d.ts +7 -1
- package/dist/native-modules/widgets/uploader/ej2-uploader.js +65 -29
- package/package.json +9 -7
|
@@ -15,20 +15,22 @@ let Ej2Button = class Ej2Button extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.clickEvent = null;
|
|
18
|
+
this._onClick = null;
|
|
18
19
|
this.syncfusionWidgetType = ej2_buttons_1.Button;
|
|
19
20
|
}
|
|
20
21
|
onWidgetCreated() {
|
|
21
|
-
|
|
22
|
+
let _this = this;
|
|
23
|
+
this._onClick = (event) => {
|
|
24
|
+
_this.element.dispatchEvent(_this.clickEvent);
|
|
25
|
+
event.stopPropagation();
|
|
26
|
+
};
|
|
27
|
+
this.widget.element.addEventListener("click", this._onClick, false);
|
|
22
28
|
}
|
|
23
29
|
onWrapperCreated() {
|
|
24
30
|
this.clickEvent = new CustomEvent("on-click", {
|
|
25
31
|
bubbles: true
|
|
26
32
|
});
|
|
27
33
|
}
|
|
28
|
-
_onClick(event) {
|
|
29
|
-
this.element.dispatchEvent(this.clickEvent);
|
|
30
|
-
event.stopPropagation();
|
|
31
|
-
}
|
|
32
34
|
refresh() {
|
|
33
35
|
this.widget.refresh();
|
|
34
36
|
}
|
|
@@ -42,12 +44,12 @@ let Ej2Button = class Ej2Button extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
42
44
|
this.widget.dataBind();
|
|
43
45
|
}
|
|
44
46
|
detached() {
|
|
45
|
-
this.widget.element.removeEventListener("click", this._onClick);
|
|
47
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
46
48
|
}
|
|
47
49
|
};
|
|
48
|
-
Ej2Button = __decorate([
|
|
49
|
-
decorator_1.generateBindables("button"),
|
|
50
|
-
aurelia_framework_1.inlineView('<template><button element.ref="widgetElement" click.delegate="_onClick($event)"><slot></slot></button></template>'),
|
|
51
|
-
aurelia_framework_1.customElement('ej2-button')
|
|
52
|
-
], Ej2Button);
|
|
53
50
|
exports.Ej2Button = Ej2Button;
|
|
51
|
+
exports.Ej2Button = Ej2Button = __decorate([
|
|
52
|
+
(0, decorator_1.generateBindables)("button"),
|
|
53
|
+
(0, aurelia_framework_1.inlineView)('<template><button element.ref="widgetElement"><slot></slot></button></template>'),
|
|
54
|
+
(0, aurelia_framework_1.customElement)('ej2-button')
|
|
55
|
+
], Ej2Button);
|
|
@@ -24,7 +24,6 @@ let Ej2CheckboxList = class Ej2CheckboxList {
|
|
|
24
24
|
attached() {
|
|
25
25
|
}
|
|
26
26
|
checkboxClick(option, ej2Checkbox) {
|
|
27
|
-
console.log("matcher", this.matcher);
|
|
28
27
|
if (ej2Checkbox[`${constants_1.constants.bindablePrefix}checked`]) {
|
|
29
28
|
if ((this.matcher && this.selectedItems.find((x) => this.matcher(x, option))) || !this.selectedItems.includes(option)) {
|
|
30
29
|
this.selectedItems.push(option);
|
|
@@ -43,6 +42,7 @@ let Ej2CheckboxList = class Ej2CheckboxList {
|
|
|
43
42
|
return this.selectedItems.findIndex((x) => this.matcher(x, option)) !== -1;
|
|
44
43
|
}
|
|
45
44
|
};
|
|
45
|
+
exports.Ej2CheckboxList = Ej2CheckboxList;
|
|
46
46
|
__decorate([
|
|
47
47
|
aurelia_framework_1.bindable,
|
|
48
48
|
__metadata("design:type", Array)
|
|
@@ -63,9 +63,9 @@ __decorate([
|
|
|
63
63
|
aurelia_framework_1.bindable,
|
|
64
64
|
__metadata("design:type", Function)
|
|
65
65
|
], Ej2CheckboxList.prototype, "matcher", void 0);
|
|
66
|
-
Ej2CheckboxList = __decorate([
|
|
67
|
-
aurelia_framework_1.customElement("ej2-checkbox-list"),
|
|
68
|
-
aurelia_framework_1.inlineView(`<template>
|
|
66
|
+
exports.Ej2CheckboxList = Ej2CheckboxList = __decorate([
|
|
67
|
+
(0, aurelia_framework_1.customElement)("ej2-checkbox-list"),
|
|
68
|
+
(0, aurelia_framework_1.inlineView)(`<template>
|
|
69
69
|
<div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
|
|
70
70
|
<ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
|
|
71
71
|
e-name.bind="optionModel? option[optionModel.name]: option"
|
|
@@ -75,4 +75,3 @@ Ej2CheckboxList = __decorate([
|
|
|
75
75
|
</div>
|
|
76
76
|
</template>`)
|
|
77
77
|
], Ej2CheckboxList);
|
|
78
|
-
exports.Ej2CheckboxList = Ej2CheckboxList;
|
|
@@ -25,8 +25,6 @@ let Ej2Checkbox = class Ej2Checkbox extends syncfusionWrapper_1.SyncfusionWrappe
|
|
|
25
25
|
}
|
|
26
26
|
onBind() {
|
|
27
27
|
this.widget.change = () => {
|
|
28
|
-
console.log("changed", this.widget.checked);
|
|
29
|
-
console.log("current widget value", this[`${constants_1.constants.bindablePrefix}checked`]);
|
|
30
28
|
this[`${constants_1.constants.bindablePrefix}checked`] = this.widget.checked;
|
|
31
29
|
};
|
|
32
30
|
this.checkedSubscription = this.bindingEngine.propertyObserver(this, "checked").subscribe((newValue) => {
|
|
@@ -50,10 +48,11 @@ let Ej2Checkbox = class Ej2Checkbox extends syncfusionWrapper_1.SyncfusionWrappe
|
|
|
50
48
|
super.detached();
|
|
51
49
|
}
|
|
52
50
|
};
|
|
53
|
-
Ej2Checkbox =
|
|
51
|
+
exports.Ej2Checkbox = Ej2Checkbox;
|
|
52
|
+
exports.Ej2Checkbox = Ej2Checkbox = __decorate([
|
|
54
53
|
aurelia_framework_1.autoinject,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
aurelia_framework_1.
|
|
54
|
+
(0, aurelia_framework_1.transient)(),
|
|
55
|
+
(0, decorator_1.generateBindables)("checkbox"),
|
|
56
|
+
(0, aurelia_framework_1.customElement)("ej2-checkbox"),
|
|
57
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" type="checkbox" /></template>`)
|
|
58
58
|
], Ej2Checkbox);
|
|
59
|
-
exports.Ej2Checkbox = Ej2Checkbox;
|
|
@@ -27,9 +27,9 @@ let Ej2ComboBox = class Ej2ComboBox extends syncfusionWrapper_1.SyncfusionWrappe
|
|
|
27
27
|
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Ej2ComboBox = __decorate([
|
|
31
|
-
decorator_1.generateBindables("comboBox"),
|
|
32
|
-
aurelia_framework_1.inlineView(`<template><input type="text" tabindex="1" element.ref="widgetElement" /></template>`),
|
|
33
|
-
aurelia_framework_1.customElement('ej2-combo-box')
|
|
34
|
-
], Ej2ComboBox);
|
|
35
30
|
exports.Ej2ComboBox = Ej2ComboBox;
|
|
31
|
+
exports.Ej2ComboBox = Ej2ComboBox = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("comboBox"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input type="text" tabindex="1" element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)('ej2-combo-box')
|
|
35
|
+
], Ej2ComboBox);
|
|
@@ -21,9 +21,9 @@ let Ej2DashboardLayout = class Ej2DashboardLayout extends syncfusionWrapper_1.Sy
|
|
|
21
21
|
onWidgetCreated() {
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
Ej2DashboardLayout = __decorate([
|
|
25
|
-
decorator_1.generateBindables("dashboardLayout"),
|
|
26
|
-
aurelia_framework_1.inlineView(`<template><div class="dashboard-container"><div element.ref="widgetElement"><slot></slot></div></div></template>`),
|
|
27
|
-
aurelia_framework_1.customElement("ej2-dashboard-layout")
|
|
28
|
-
], Ej2DashboardLayout);
|
|
29
24
|
exports.Ej2DashboardLayout = Ej2DashboardLayout;
|
|
25
|
+
exports.Ej2DashboardLayout = Ej2DashboardLayout = __decorate([
|
|
26
|
+
(0, decorator_1.generateBindables)("dashboardLayout"),
|
|
27
|
+
(0, aurelia_framework_1.inlineView)(`<template><div class="dashboard-container"><div element.ref="widgetElement"><slot></slot></div></div></template>`),
|
|
28
|
+
(0, aurelia_framework_1.customElement)("ej2-dashboard-layout")
|
|
29
|
+
], Ej2DashboardLayout);
|
|
@@ -27,9 +27,9 @@ let Ej2DatePicker = class Ej2DatePicker extends syncfusionWrapper_1.SyncfusionWr
|
|
|
27
27
|
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Ej2DatePicker = __decorate([
|
|
31
|
-
decorator_1.generateBindables("datePicker"),
|
|
32
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
33
|
-
aurelia_framework_1.customElement("ej2-date-picker")
|
|
34
|
-
], Ej2DatePicker);
|
|
35
30
|
exports.Ej2DatePicker = Ej2DatePicker;
|
|
31
|
+
exports.Ej2DatePicker = Ej2DatePicker = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("datePicker"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)("ej2-date-picker")
|
|
35
|
+
], Ej2DatePicker);
|
|
@@ -29,9 +29,9 @@ let Ej2DateRangePicker = class Ej2DateRangePicker extends syncfusionWrapper_1.Sy
|
|
|
29
29
|
this[`${constants_1.constants.bindablePrefix}endDate`] = args.endDate;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
Ej2DateRangePicker = __decorate([
|
|
33
|
-
decorator_1.generateBindables("dateRangePicker"),
|
|
34
|
-
aurelia_framework_1.customElement('ej2-date-range-picker'),
|
|
35
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" /></template>`)
|
|
36
|
-
], Ej2DateRangePicker);
|
|
37
32
|
exports.Ej2DateRangePicker = Ej2DateRangePicker;
|
|
33
|
+
exports.Ej2DateRangePicker = Ej2DateRangePicker = __decorate([
|
|
34
|
+
(0, decorator_1.generateBindables)("dateRangePicker"),
|
|
35
|
+
(0, aurelia_framework_1.customElement)('ej2-date-range-picker'),
|
|
36
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`)
|
|
37
|
+
], Ej2DateRangePicker);
|
|
@@ -27,9 +27,9 @@ let Ej2DateTimePicker = class Ej2DateTimePicker extends syncfusionWrapper_1.Sync
|
|
|
27
27
|
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Ej2DateTimePicker = __decorate([
|
|
31
|
-
decorator_1.generateBindables("dateTimePicker"),
|
|
32
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
33
|
-
aurelia_framework_1.customElement('ej2-date-time-picker')
|
|
34
|
-
], Ej2DateTimePicker);
|
|
35
30
|
exports.Ej2DateTimePicker = Ej2DateTimePicker;
|
|
31
|
+
exports.Ej2DateTimePicker = Ej2DateTimePicker = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("dateTimePicker"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)('ej2-date-time-picker')
|
|
35
|
+
], Ej2DateTimePicker);
|
|
@@ -31,9 +31,9 @@ let Ej2DropDownList = class Ej2DropDownList extends syncfusionWrapper_1.Syncfusi
|
|
|
31
31
|
super.attached();
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
Ej2DropDownList = __decorate([
|
|
35
|
-
decorator_1.generateBindables("dropDownList"),
|
|
36
|
-
aurelia_framework_1.inlineView(`<template><div><slot><input /></slot></div></template>`),
|
|
37
|
-
aurelia_framework_1.customElement('ej2-drop-down-list')
|
|
38
|
-
], Ej2DropDownList);
|
|
39
34
|
exports.Ej2DropDownList = Ej2DropDownList;
|
|
35
|
+
exports.Ej2DropDownList = Ej2DropDownList = __decorate([
|
|
36
|
+
(0, decorator_1.generateBindables)("dropDownList"),
|
|
37
|
+
(0, aurelia_framework_1.inlineView)(`<template><div><slot><input /></slot></div></template>`),
|
|
38
|
+
(0, aurelia_framework_1.customElement)('ej2-drop-down-list')
|
|
39
|
+
], Ej2DropDownList);
|
|
@@ -27,9 +27,9 @@ let Ej2DropDownTree = class Ej2DropDownTree extends syncfusionWrapper_1.Syncfusi
|
|
|
27
27
|
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Ej2DropDownTree = __decorate([
|
|
31
|
-
decorator_1.generateBindables("dropDownTree"),
|
|
32
|
-
aurelia_framework_1.customElement('ej2-drop-down-tree'),
|
|
33
|
-
aurelia_framework_1.inlineView('<template><input type="text" element.ref="widgetElement" /></template>')
|
|
34
|
-
], Ej2DropDownTree);
|
|
35
30
|
exports.Ej2DropDownTree = Ej2DropDownTree;
|
|
31
|
+
exports.Ej2DropDownTree = Ej2DropDownTree = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("dropDownTree"),
|
|
33
|
+
(0, aurelia_framework_1.customElement)('ej2-drop-down-tree'),
|
|
34
|
+
(0, aurelia_framework_1.inlineView)('<template><input type="text" element.ref="widgetElement" /></template>')
|
|
35
|
+
], Ej2DropDownTree);
|
|
@@ -16,7 +16,7 @@ let Ej2FileManager = class Ej2FileManager extends syncfusionWrapper_1.Syncfusion
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this.syncfusionWidgetType = ej2_filemanager_1.FileManager;
|
|
19
|
-
this.id = `fm-${uuid_1.v4()}`;
|
|
19
|
+
this.id = `fm-${(0, uuid_1.v4)()}`;
|
|
20
20
|
}
|
|
21
21
|
onBeforeWidgetInstantiation() {
|
|
22
22
|
ej2_filemanager_1.FileManager.Inject(ej2_filemanager_1.Toolbar, ej2_filemanager_1.NavigationPane, ej2_filemanager_1.DetailsView, ej2_filemanager_1.ContextMenu);
|
|
@@ -26,9 +26,9 @@ let Ej2FileManager = class Ej2FileManager extends syncfusionWrapper_1.Syncfusion
|
|
|
26
26
|
onWrapperCreated() {
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
Ej2FileManager = __decorate([
|
|
30
|
-
decorator_1.generateBindables("fileManager"),
|
|
31
|
-
aurelia_framework_1.inlineView(`<template><div id.bind="id" element.ref="widgetElement"></div></template>`),
|
|
32
|
-
aurelia_framework_1.customElement('ej2-file-manager')
|
|
33
|
-
], Ej2FileManager);
|
|
34
29
|
exports.Ej2FileManager = Ej2FileManager;
|
|
30
|
+
exports.Ej2FileManager = Ej2FileManager = __decorate([
|
|
31
|
+
(0, decorator_1.generateBindables)("fileManager"),
|
|
32
|
+
(0, aurelia_framework_1.inlineView)(`<template><div id.bind="id" element.ref="widgetElement"></div></template>`),
|
|
33
|
+
(0, aurelia_framework_1.customElement)('ej2-file-manager')
|
|
34
|
+
], Ej2FileManager);
|
|
@@ -17,70 +17,70 @@ let Ej2Grid = class Ej2Grid extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
17
17
|
this.syncfusionWidgetType = ej2_grids_1.Grid;
|
|
18
18
|
}
|
|
19
19
|
onBeforeWidgetInstantiation() {
|
|
20
|
-
if (this.
|
|
20
|
+
if (this._eModel.allowPaging) {
|
|
21
21
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Page);
|
|
22
22
|
}
|
|
23
|
-
if (this.
|
|
23
|
+
if (this._eModel.allowSelection) {
|
|
24
24
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Selection);
|
|
25
25
|
}
|
|
26
|
-
if (this.
|
|
26
|
+
if (this._eModel.editSettings) {
|
|
27
27
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Edit);
|
|
28
28
|
}
|
|
29
|
-
if (this.
|
|
29
|
+
if (this._eModel.allowReordering) {
|
|
30
30
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Reorder);
|
|
31
31
|
}
|
|
32
|
-
if (this.
|
|
32
|
+
if (this._eModel.allowSorting) {
|
|
33
33
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Sort);
|
|
34
34
|
}
|
|
35
|
-
if (this.
|
|
35
|
+
if (this._eModel.showColumnChooser) {
|
|
36
36
|
ej2_grids_1.Grid.Inject(ej2_grids_1.ColumnChooser);
|
|
37
37
|
}
|
|
38
|
-
if (this.
|
|
38
|
+
if (this._eModel.toolbar) {
|
|
39
39
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Toolbar);
|
|
40
40
|
}
|
|
41
|
-
if (this.
|
|
41
|
+
if (this._eModel.editSettings) {
|
|
42
42
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Edit);
|
|
43
43
|
}
|
|
44
|
-
if (this.
|
|
44
|
+
if (this._eModel.filterSettings) {
|
|
45
45
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Filter);
|
|
46
46
|
}
|
|
47
|
-
if (this.
|
|
47
|
+
if (this._eModel.groupSettings) {
|
|
48
48
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Group);
|
|
49
49
|
}
|
|
50
|
-
if (this.
|
|
50
|
+
if (this._eModel.aggregates) {
|
|
51
51
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Aggregate);
|
|
52
52
|
}
|
|
53
|
-
if (this.
|
|
53
|
+
if (this._eModel.showColumnMenu) {
|
|
54
54
|
ej2_grids_1.Grid.Inject(ej2_grids_1.ColumnMenu);
|
|
55
55
|
}
|
|
56
|
-
if (this.
|
|
56
|
+
if (this._eModel.detailTemplate) {
|
|
57
57
|
ej2_grids_1.Grid.Inject(ej2_grids_1.DetailRow);
|
|
58
58
|
}
|
|
59
|
-
if (this.
|
|
59
|
+
if (this._eModel.contextMenuItems) {
|
|
60
60
|
ej2_grids_1.Grid.Inject(ej2_grids_1.ContextMenu);
|
|
61
61
|
}
|
|
62
|
-
if (this.
|
|
62
|
+
if (this._eModel.frozenColumns || this._eModel.frozenRows) {
|
|
63
63
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Freeze);
|
|
64
64
|
}
|
|
65
|
-
if (this.
|
|
65
|
+
if (this._eModel.allowResizing) {
|
|
66
66
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Resize);
|
|
67
67
|
}
|
|
68
|
-
if (this.
|
|
68
|
+
if (this._eModel.allowRowDragAndDrop) {
|
|
69
69
|
ej2_grids_1.Grid.Inject(ej2_grids_1.RowDD);
|
|
70
70
|
}
|
|
71
|
-
if (this.
|
|
71
|
+
if (this._eModel.searchSettings) {
|
|
72
72
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Search);
|
|
73
73
|
}
|
|
74
|
-
if (this.
|
|
74
|
+
if (this._eModel.printMode) {
|
|
75
75
|
ej2_grids_1.Grid.Inject(ej2_grids_1.Print);
|
|
76
76
|
}
|
|
77
|
-
if (this.
|
|
77
|
+
if (this._eModel.enableVirtualization) {
|
|
78
78
|
ej2_grids_1.Grid.Inject(ej2_grids_1.VirtualScroll);
|
|
79
79
|
}
|
|
80
|
-
if (this.
|
|
80
|
+
if (this._eModel.allowExcelExport) {
|
|
81
81
|
ej2_grids_1.Grid.Inject(ej2_grids_1.ExcelExport);
|
|
82
82
|
}
|
|
83
|
-
if (this.
|
|
83
|
+
if (this._eModel.allowPdfExport) {
|
|
84
84
|
ej2_grids_1.Grid.Inject(ej2_grids_1.PdfExport);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -89,9 +89,9 @@ let Ej2Grid = class Ej2Grid extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
89
89
|
onWrapperCreated() {
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
Ej2Grid = __decorate([
|
|
93
|
-
decorator_1.generateBindables("grid"),
|
|
94
|
-
aurelia_framework_1.inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
95
|
-
aurelia_framework_1.customElement('ej2-grid')
|
|
96
|
-
], Ej2Grid);
|
|
97
92
|
exports.Ej2Grid = Ej2Grid;
|
|
93
|
+
exports.Ej2Grid = Ej2Grid = __decorate([
|
|
94
|
+
(0, decorator_1.generateBindables)("grid"),
|
|
95
|
+
(0, aurelia_framework_1.inlineView)(`<template><div element.ref="widgetElement"></div></template>`),
|
|
96
|
+
(0, aurelia_framework_1.customElement)('ej2-grid')
|
|
97
|
+
], Ej2Grid);
|
|
@@ -21,14 +21,14 @@ let Ej2ListView = class Ej2ListView extends syncfusionWrapper_1.SyncfusionWrappe
|
|
|
21
21
|
onWidgetCreated() {
|
|
22
22
|
}
|
|
23
23
|
onBeforeWidgetInstantiation() {
|
|
24
|
-
if (this.
|
|
24
|
+
if (this._eModel.enableVirtualization) {
|
|
25
25
|
ej2_lists_1.ListView.Inject(ej2_lists_1.Virtualization);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
Ej2ListView = __decorate([
|
|
30
|
-
decorator_1.generateBindables("listView"),
|
|
31
|
-
aurelia_framework_1.inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
32
|
-
aurelia_framework_1.customElement('ej2-list-view')
|
|
33
|
-
], Ej2ListView);
|
|
34
29
|
exports.Ej2ListView = Ej2ListView;
|
|
30
|
+
exports.Ej2ListView = Ej2ListView = __decorate([
|
|
31
|
+
(0, decorator_1.generateBindables)("listView"),
|
|
32
|
+
(0, aurelia_framework_1.inlineView)(`<template><div element.ref="widgetElement"></div></template>`),
|
|
33
|
+
(0, aurelia_framework_1.customElement)('ej2-list-view')
|
|
34
|
+
], Ej2ListView);
|
|
@@ -13,7 +13,7 @@ const ej2_inputs_1 = require("@syncfusion/ej2-inputs");
|
|
|
13
13
|
const decorator_1 = require("../../utilities/decorator");
|
|
14
14
|
const ej2_base_1 = require("@syncfusion/ej2-base");
|
|
15
15
|
const aurelia_framework_1 = require("aurelia-framework");
|
|
16
|
-
ej2_base_1.enableRipple(true);
|
|
16
|
+
(0, ej2_base_1.enableRipple)(true);
|
|
17
17
|
let Ej2MaskedTextBox = class Ej2MaskedTextBox extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
@@ -29,9 +29,9 @@ let Ej2MaskedTextBox = class Ej2MaskedTextBox extends syncfusionWrapper_1.Syncfu
|
|
|
29
29
|
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
Ej2MaskedTextBox = __decorate([
|
|
33
|
-
decorator_1.generateBindables("maskedTextBox"),
|
|
34
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
35
|
-
aurelia_framework_1.customElement('ej2-masked-text-box')
|
|
36
|
-
], Ej2MaskedTextBox);
|
|
37
32
|
exports.Ej2MaskedTextBox = Ej2MaskedTextBox;
|
|
33
|
+
exports.Ej2MaskedTextBox = Ej2MaskedTextBox = __decorate([
|
|
34
|
+
(0, decorator_1.generateBindables)("maskedTextBox"),
|
|
35
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`),
|
|
36
|
+
(0, aurelia_framework_1.customElement)('ej2-masked-text-box')
|
|
37
|
+
], Ej2MaskedTextBox);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { MultiSelect, MultiSelectModel } from "@syncfusion/ej2-dropdowns";
|
|
3
|
+
export declare class Ej2MultiSelect extends SyncfusionWrapper<MultiSelect, MultiSelectModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof MultiSelect;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onInput(args: any): void;
|
|
8
|
+
onChange(args: any): void;
|
|
9
|
+
attached(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2MultiSelect = void 0;
|
|
10
|
+
const constants_1 = require("../../common/constants");
|
|
11
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
12
|
+
const ej2_dropdowns_1 = require("@syncfusion/ej2-dropdowns");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const ej2_base_1 = require("@syncfusion/ej2-base");
|
|
15
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
16
|
+
(0, ej2_base_1.enableRipple)(true);
|
|
17
|
+
let Ej2MultiSelect = class Ej2MultiSelect extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.syncfusionWidgetType = ej2_dropdowns_1.MultiSelect;
|
|
21
|
+
}
|
|
22
|
+
onWrapperCreated() {
|
|
23
|
+
}
|
|
24
|
+
onWidgetCreated() {
|
|
25
|
+
let _this = this;
|
|
26
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
27
|
+
}
|
|
28
|
+
onInput(args) {
|
|
29
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
30
|
+
}
|
|
31
|
+
onChange(args) {
|
|
32
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
33
|
+
}
|
|
34
|
+
attached() {
|
|
35
|
+
this.widgetElement = this.element.querySelector("select,input");
|
|
36
|
+
super.attached();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.Ej2MultiSelect = Ej2MultiSelect;
|
|
40
|
+
exports.Ej2MultiSelect = Ej2MultiSelect = __decorate([
|
|
41
|
+
(0, decorator_1.generateBindables)("multiSelect"),
|
|
42
|
+
(0, aurelia_framework_1.inlineView)(`<template><div><slot><input /></slot></div></template>`),
|
|
43
|
+
(0, aurelia_framework_1.customElement)('ej2-multi-select')
|
|
44
|
+
], Ej2MultiSelect);
|
|
@@ -27,9 +27,9 @@ let Ej2NumericTextBox = class Ej2NumericTextBox extends syncfusionWrapper_1.Sync
|
|
|
27
27
|
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
Ej2NumericTextBox = __decorate([
|
|
31
|
-
decorator_1.generateBindables("numericTextBox"),
|
|
32
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
33
|
-
aurelia_framework_1.customElement('ej2-numeric-text-box')
|
|
34
|
-
], Ej2NumericTextBox);
|
|
35
30
|
exports.Ej2NumericTextBox = Ej2NumericTextBox;
|
|
31
|
+
exports.Ej2NumericTextBox = Ej2NumericTextBox = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("numericTextBox"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)('ej2-numeric-text-box')
|
|
35
|
+
], Ej2NumericTextBox);
|
|
@@ -21,9 +21,9 @@ let Ej2Pager = class Ej2Pager extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
21
21
|
onWidgetCreated() {
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
Ej2Pager = __decorate([
|
|
25
|
-
decorator_1.generateBindables("pager"),
|
|
26
|
-
aurelia_framework_1.inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
27
|
-
aurelia_framework_1.customElement('ej2-pager')
|
|
28
|
-
], Ej2Pager);
|
|
29
24
|
exports.Ej2Pager = Ej2Pager;
|
|
25
|
+
exports.Ej2Pager = Ej2Pager = __decorate([
|
|
26
|
+
(0, decorator_1.generateBindables)("pager"),
|
|
27
|
+
(0, aurelia_framework_1.inlineView)(`<template><div element.ref="widgetElement"></div></template>`),
|
|
28
|
+
(0, aurelia_framework_1.customElement)('ej2-pager')
|
|
29
|
+
], Ej2Pager);
|
|
@@ -2,10 +2,10 @@ import { ProgressButton, ProgressButtonModel } from '@syncfusion/ej2-splitbutton
|
|
|
2
2
|
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
3
3
|
export declare class Ej2ProgressButton extends SyncfusionWrapper<ProgressButton, ProgressButtonModel> {
|
|
4
4
|
clickEvent: Event;
|
|
5
|
+
_onClick: (event: Event) => void;
|
|
5
6
|
protected onWidgetCreated(): void;
|
|
6
7
|
protected onWrapperCreated(): void;
|
|
7
8
|
protected syncfusionWidgetType: typeof ProgressButton;
|
|
8
|
-
_onClick(event: Event): void;
|
|
9
9
|
refresh(): void;
|
|
10
10
|
focusIn(): void;
|
|
11
11
|
click(): void;
|
|
@@ -15,20 +15,22 @@ let Ej2ProgressButton = class Ej2ProgressButton extends syncfusionWrapper_1.Sync
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.clickEvent = null;
|
|
18
|
+
this._onClick = null;
|
|
18
19
|
this.syncfusionWidgetType = ej2_splitbuttons_1.ProgressButton;
|
|
19
20
|
}
|
|
20
21
|
onWidgetCreated() {
|
|
21
|
-
|
|
22
|
+
let _this = this;
|
|
23
|
+
this._onClick = (event) => {
|
|
24
|
+
_this.element.dispatchEvent(_this.clickEvent);
|
|
25
|
+
event.stopPropagation();
|
|
26
|
+
};
|
|
27
|
+
this.widget.element.addEventListener("click", this._onClick, false);
|
|
22
28
|
}
|
|
23
29
|
onWrapperCreated() {
|
|
24
30
|
this.clickEvent = new CustomEvent("on-click", {
|
|
25
31
|
bubbles: true
|
|
26
32
|
});
|
|
27
33
|
}
|
|
28
|
-
_onClick(event) {
|
|
29
|
-
this.element.dispatchEvent(this.clickEvent);
|
|
30
|
-
event.stopPropagation();
|
|
31
|
-
}
|
|
32
34
|
refresh() {
|
|
33
35
|
this.widget.refresh();
|
|
34
36
|
}
|
|
@@ -51,12 +53,12 @@ let Ej2ProgressButton = class Ej2ProgressButton extends syncfusionWrapper_1.Sync
|
|
|
51
53
|
this.widget.stop();
|
|
52
54
|
}
|
|
53
55
|
detached() {
|
|
54
|
-
this.widget.element.removeEventListener("click", this._onClick);
|
|
56
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
55
57
|
}
|
|
56
58
|
};
|
|
57
|
-
Ej2ProgressButton = __decorate([
|
|
58
|
-
decorator_1.generateBindables("progressButton"),
|
|
59
|
-
aurelia_framework_1.inlineView(`<template><button element.ref="widgetElement"><slot></slot></button></template>`),
|
|
60
|
-
aurelia_framework_1.customElement('ej2-progress-button')
|
|
61
|
-
], Ej2ProgressButton);
|
|
62
59
|
exports.Ej2ProgressButton = Ej2ProgressButton;
|
|
60
|
+
exports.Ej2ProgressButton = Ej2ProgressButton = __decorate([
|
|
61
|
+
(0, decorator_1.generateBindables)("progressButton"),
|
|
62
|
+
(0, aurelia_framework_1.inlineView)(`<template><button element.ref="widgetElement"><slot></slot></button></template>`),
|
|
63
|
+
(0, aurelia_framework_1.customElement)('ej2-progress-button')
|
|
64
|
+
], Ej2ProgressButton);
|
|
@@ -24,17 +24,17 @@ let Ej2Radio = class Ej2Radio extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
24
24
|
onWrapperCreated() {
|
|
25
25
|
}
|
|
26
26
|
onBind() {
|
|
27
|
-
if (!this.
|
|
27
|
+
if (!this._eModel.name) {
|
|
28
28
|
throw "Radio e-name is required";
|
|
29
29
|
}
|
|
30
30
|
this.widget.change = () => {
|
|
31
31
|
this[`${constants_1.constants.bindablePrefix}checked`] = this.widget.checked;
|
|
32
|
-
this.eventAggregator.publish(`ej2-radio-${this.
|
|
32
|
+
this.eventAggregator.publish(`ej2-radio-${this._eModel.name}-changed`, this[`${constants_1.constants.bindablePrefix}label`]);
|
|
33
33
|
};
|
|
34
34
|
this.checkedSubscription = this.bindingEngine.propertyObserver(this, this[`${constants_1.constants.bindablePrefix}checked`]).subscribe((newValue) => {
|
|
35
35
|
this.widget.checked = newValue;
|
|
36
36
|
});
|
|
37
|
-
this.selectionChangedSubscription = this.eventAggregator.subscribe(`ej2-radio-${this.
|
|
37
|
+
this.selectionChangedSubscription = this.eventAggregator.subscribe(`ej2-radio-${this._eModel.name}-changed`, (selectedLabel) => {
|
|
38
38
|
if (this[`${constants_1.constants.bindablePrefix}label`] !== selectedLabel) {
|
|
39
39
|
this[`${constants_1.constants.bindablePrefix}checked`] = false;
|
|
40
40
|
}
|
|
@@ -46,9 +46,9 @@ let Ej2Radio = class Ej2Radio extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
46
46
|
super.detached();
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
Ej2Radio = __decorate([
|
|
50
|
-
decorator_1.generateBindables("radio"),
|
|
51
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" type="radio" /></template>`),
|
|
52
|
-
aurelia_framework_1.customElement('ej2-radio')
|
|
53
|
-
], Ej2Radio);
|
|
54
49
|
exports.Ej2Radio = Ej2Radio;
|
|
50
|
+
exports.Ej2Radio = Ej2Radio = __decorate([
|
|
51
|
+
(0, decorator_1.generateBindables)("radio"),
|
|
52
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" type="radio" /></template>`),
|
|
53
|
+
(0, aurelia_framework_1.customElement)('ej2-radio')
|
|
54
|
+
], Ej2Radio);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Schedule, ScheduleModel } from '@syncfusion/ej2-schedule';
|
|
2
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
3
|
+
export declare class Ej2Schedule extends SyncfusionWrapper<Schedule, ScheduleModel> {
|
|
4
|
+
protected syncfusionWidgetType: any;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onBeforeWidgetInstantiation(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2Schedule = void 0;
|
|
10
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
11
|
+
const ej2_schedule_1 = require("@syncfusion/ej2-schedule");
|
|
12
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
13
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
14
|
+
let Ej2Schedule = class Ej2Schedule extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.syncfusionWidgetType = ej2_schedule_1.Schedule;
|
|
18
|
+
}
|
|
19
|
+
onWrapperCreated() {
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
}
|
|
23
|
+
onBeforeWidgetInstantiation() {
|
|
24
|
+
ej2_schedule_1.Schedule.Inject(ej2_schedule_1.Day, ej2_schedule_1.Week, ej2_schedule_1.WorkWeek, ej2_schedule_1.Month, ej2_schedule_1.Agenda, ej2_schedule_1.TimelineViews, ej2_schedule_1.TimelineMonth, ej2_schedule_1.TimelineYear, ej2_schedule_1.DragAndDrop, ej2_schedule_1.Resize, ej2_schedule_1.ExcelExport, ej2_schedule_1.ICalendarExport, ej2_schedule_1.ICalendarImport, ej2_schedule_1.Print);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.Ej2Schedule = Ej2Schedule;
|
|
28
|
+
exports.Ej2Schedule = Ej2Schedule = __decorate([
|
|
29
|
+
(0, decorator_1.generateBindables)("radio"),
|
|
30
|
+
(0, aurelia_framework_1.inlineView)(`<template><div element.ref="widgetElement"></div></template>`),
|
|
31
|
+
(0, aurelia_framework_1.customElement)('ej2-schedule')
|
|
32
|
+
], Ej2Schedule);
|
|
@@ -22,9 +22,9 @@ let Ej2Sidebar = class Ej2Sidebar extends syncfusionWrapper_1.SyncfusionWrapper
|
|
|
22
22
|
let _this = this;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
Ej2Sidebar = __decorate([
|
|
26
|
-
decorator_1.generateBindables("sidebar"),
|
|
27
|
-
aurelia_framework_1.inlineView(`<template element.ref="widgetElement"><slot></slot></template>`),
|
|
28
|
-
aurelia_framework_1.customElement('ej2-sidebar')
|
|
29
|
-
], Ej2Sidebar);
|
|
30
25
|
exports.Ej2Sidebar = Ej2Sidebar;
|
|
26
|
+
exports.Ej2Sidebar = Ej2Sidebar = __decorate([
|
|
27
|
+
(0, decorator_1.generateBindables)("sidebar"),
|
|
28
|
+
(0, aurelia_framework_1.inlineView)(`<template element.ref="widgetElement"><slot></slot></template>`),
|
|
29
|
+
(0, aurelia_framework_1.customElement)('ej2-sidebar')
|
|
30
|
+
], Ej2Sidebar);
|