aurelia-syncfusion-ej2-bridge 0.1.0-beta.3 → 0.1.0-beta.30
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 +32 -29
- package/dist/commonjs/common/constants.js +1 -0
- package/dist/commonjs/common/controlBase.d.ts +3 -1
- package/dist/commonjs/common/controlBase.js +14 -4
- package/dist/commonjs/common/controlContainer.js +1 -0
- package/dist/commonjs/common/syncfusionWrapper.d.ts +3 -0
- package/dist/commonjs/common/syncfusionWrapper.js +12 -2
- package/dist/commonjs/configBuider.d.ts +6 -4
- package/dist/commonjs/configBuider.js +85 -48
- package/dist/commonjs/controlBindings.d.ts +28 -0
- package/dist/commonjs/controlBindings.js +87 -36
- package/dist/commonjs/index.js +2 -1
- package/dist/commonjs/utilities/decorator.js +1 -0
- package/dist/commonjs/widgets/accordion/ej2-accordion.js +5 -1
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.js +5 -1
- package/dist/commonjs/widgets/button/ej2-button.d.ts +2 -1
- package/dist/commonjs/widgets/button/ej2-button.js +15 -5
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +15 -3
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +7 -1
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.js +5 -1
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.js +5 -1
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.js +5 -1
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.js +5 -1
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.js +5 -1
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.js +5 -1
- package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.d.ts +8 -0
- package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.js +35 -0
- package/dist/commonjs/widgets/fileManager/ej2-fileManager.d.ts +9 -0
- package/dist/commonjs/widgets/fileManager/ej2-fileManager.js +34 -0
- package/dist/commonjs/widgets/grid/ej2-grid.js +27 -23
- package/dist/commonjs/widgets/listView/ej2-listView.js +6 -2
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.js +5 -1
- 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 -1
- package/dist/commonjs/widgets/pager/ej2-pager.js +5 -1
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.d.ts +2 -1
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +15 -5
- package/dist/commonjs/widgets/radio/ej2-radio.js +8 -4
- 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.d.ts +7 -0
- package/dist/commonjs/widgets/sidebar/ej2-sidebar.js +30 -0
- package/dist/commonjs/widgets/slider/ej2-slider.js +5 -1
- package/dist/commonjs/widgets/splitter/ej2-splitter.d.ts +7 -0
- package/dist/commonjs/widgets/splitter/ej2-splitter.js +29 -0
- package/dist/commonjs/widgets/switch/ej2-switch.d.ts +2 -1
- package/dist/commonjs/widgets/switch/ej2-switch.js +13 -5
- package/dist/commonjs/widgets/textBox/ej2-textBox.js +5 -1
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.js +5 -1
- package/dist/commonjs/widgets/treeView/ej2-treeView.js +5 -1
- package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +7 -1
- package/dist/commonjs/widgets/uploader/ej2-uploader.js +70 -30
- package/dist/native-modules/common/controlBase.d.ts +3 -1
- package/dist/native-modules/common/controlBase.js +13 -4
- package/dist/native-modules/common/syncfusionWrapper.d.ts +3 -0
- package/dist/native-modules/common/syncfusionWrapper.js +11 -2
- package/dist/native-modules/configBuider.d.ts +6 -4
- package/dist/native-modules/configBuider.js +84 -48
- package/dist/native-modules/controlBindings.d.ts +28 -0
- package/dist/native-modules/controlBindings.js +86 -36
- package/dist/native-modules/widgets/accordion/ej2-accordion.js +4 -1
- package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.js +4 -1
- package/dist/native-modules/widgets/button/ej2-button.d.ts +2 -1
- package/dist/native-modules/widgets/button/ej2-button.js +14 -5
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +16 -4
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +7 -2
- package/dist/native-modules/widgets/comboBox/ej2-comboBox.js +4 -1
- package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.js +4 -1
- package/dist/native-modules/widgets/datePicker/ej2-DatePicker.js +4 -1
- package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.js +4 -1
- package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.js +4 -1
- package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.js +4 -1
- package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.d.ts +8 -0
- package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.js +32 -0
- package/dist/native-modules/widgets/fileManager/ej2-fileManager.d.ts +9 -0
- package/dist/native-modules/widgets/fileManager/ej2-fileManager.js +31 -0
- package/dist/native-modules/widgets/grid/ej2-grid.js +26 -23
- package/dist/native-modules/widgets/listView/ej2-listView.js +5 -2
- package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.js +4 -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/numericTextBox/ej2-numericTextBox.js +4 -1
- package/dist/native-modules/widgets/pager/ej2-pager.js +4 -1
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.d.ts +2 -1
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +14 -5
- package/dist/native-modules/widgets/radio/ej2-radio.js +7 -4
- 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/sidebar/ej2-sidebar.d.ts +7 -0
- package/dist/native-modules/widgets/sidebar/ej2-sidebar.js +27 -0
- package/dist/native-modules/widgets/slider/ej2-slider.js +4 -1
- package/dist/native-modules/widgets/splitter/ej2-splitter.d.ts +7 -0
- package/dist/native-modules/widgets/splitter/ej2-splitter.js +26 -0
- package/dist/native-modules/widgets/switch/ej2-switch.d.ts +2 -1
- package/dist/native-modules/widgets/switch/ej2-switch.js +12 -5
- package/dist/native-modules/widgets/textBox/ej2-textBox.js +4 -1
- package/dist/native-modules/widgets/timePicker/ej2-timePicker.js +4 -1
- package/dist/native-modules/widgets/treeView/ej2-treeView.js +4 -1
- package/dist/native-modules/widgets/uploader/ej2-uploader.d.ts +7 -1
- package/dist/native-modules/widgets/uploader/ej2-uploader.js +69 -30
- package/package.json +4 -4
- package/dist/commonjs/widgets/accordion/ej2-accordion.html +0 -3
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.html +0 -3
- package/dist/commonjs/widgets/button/ej2-button.html +0 -5
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.html +0 -9
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.html +0 -3
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.html +0 -3
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.html +0 -7
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.html +0 -3
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.html +0 -3
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.html +0 -3
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.html +0 -5
- package/dist/commonjs/widgets/grid/ej2-grid.html +0 -3
- package/dist/commonjs/widgets/listView/ej2-listView.html +0 -3
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.html +0 -3
- package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.html +0 -3
- package/dist/commonjs/widgets/pager/ej2-pager.html +0 -3
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.html +0 -5
- package/dist/commonjs/widgets/radio/ej2-radio.html +0 -3
- package/dist/commonjs/widgets/slider/ej2-slider.html +0 -3
- package/dist/commonjs/widgets/switch/ej2-switch.html +0 -4
- package/dist/commonjs/widgets/textBox/ej2-textBox.html +0 -3
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.html +0 -3
- package/dist/commonjs/widgets/treeView/ej2-treeView.html +0 -3
- package/dist/commonjs/widgets/uploader/ej2-uploader.html +0 -3
- package/dist/native-modules/widgets/accordion/ej2-accordion.html +0 -3
- package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.html +0 -3
- package/dist/native-modules/widgets/button/ej2-button.html +0 -5
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.html +0 -9
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.html +0 -3
- package/dist/native-modules/widgets/comboBox/ej2-comboBox.html +0 -3
- package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.html +0 -7
- package/dist/native-modules/widgets/datePicker/ej2-DatePicker.html +0 -3
- package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.html +0 -3
- package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.html +0 -3
- package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.html +0 -5
- package/dist/native-modules/widgets/grid/ej2-grid.html +0 -3
- package/dist/native-modules/widgets/listView/ej2-listView.html +0 -3
- package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.html +0 -3
- package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.html +0 -3
- package/dist/native-modules/widgets/pager/ej2-pager.html +0 -3
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.html +0 -5
- package/dist/native-modules/widgets/radio/ej2-radio.html +0 -3
- package/dist/native-modules/widgets/slider/ej2-slider.html +0 -3
- package/dist/native-modules/widgets/switch/ej2-switch.html +0 -4
- package/dist/native-modules/widgets/textBox/ej2-textBox.html +0 -3
- package/dist/native-modules/widgets/timePicker/ej2-timePicker.html +0 -3
- package/dist/native-modules/widgets/treeView/ej2-treeView.html +0 -3
- package/dist/native-modules/widgets/uploader/ej2-uploader.html +0 -3
|
@@ -5,25 +5,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { Button } from '@syncfusion/ej2-buttons';
|
|
8
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
8
9
|
import { generateBindables } from '../../utilities/decorator';
|
|
9
10
|
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
10
11
|
let Ej2Button = class Ej2Button extends SyncfusionWrapper {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
13
14
|
this.clickEvent = null;
|
|
15
|
+
this._onClick = null;
|
|
14
16
|
this.syncfusionWidgetType = Button;
|
|
15
17
|
}
|
|
16
18
|
onWidgetCreated() {
|
|
19
|
+
let _this = this;
|
|
20
|
+
this._onClick = (event) => {
|
|
21
|
+
_this.element.dispatchEvent(_this.clickEvent);
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
};
|
|
24
|
+
this.widget.element.addEventListener("click", this._onClick, false);
|
|
17
25
|
}
|
|
18
26
|
onWrapperCreated() {
|
|
19
27
|
this.clickEvent = new CustomEvent("on-click", {
|
|
20
28
|
bubbles: true
|
|
21
29
|
});
|
|
22
30
|
}
|
|
23
|
-
_onClick(event) {
|
|
24
|
-
this.element.dispatchEvent(this.clickEvent);
|
|
25
|
-
event.stopPropagation();
|
|
26
|
-
}
|
|
27
31
|
refresh() {
|
|
28
32
|
this.widget.refresh();
|
|
29
33
|
}
|
|
@@ -36,8 +40,13 @@ let Ej2Button = class Ej2Button extends SyncfusionWrapper {
|
|
|
36
40
|
dataBind() {
|
|
37
41
|
this.widget.dataBind();
|
|
38
42
|
}
|
|
43
|
+
detached() {
|
|
44
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
45
|
+
}
|
|
39
46
|
};
|
|
40
47
|
Ej2Button = __decorate([
|
|
41
|
-
generateBindables("button")
|
|
48
|
+
generateBindables("button"),
|
|
49
|
+
inlineView('<template><button element.ref="widgetElement"><slot></slot></button></template>'),
|
|
50
|
+
customElement('ej2-button')
|
|
42
51
|
], Ej2Button);
|
|
43
52
|
export { Ej2Button };
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { bindable } from "aurelia-framework";
|
|
10
|
+
import { bindable, customElement, inlineView } from "aurelia-framework";
|
|
11
11
|
import { constants } from "../../common/constants";
|
|
12
|
-
|
|
12
|
+
let Ej2CheckboxList = class Ej2CheckboxList {
|
|
13
13
|
constructor() {
|
|
14
14
|
this.dataSource = [];
|
|
15
15
|
this.selectedItems = [];
|
|
@@ -21,7 +21,6 @@ export class Ej2CheckboxList {
|
|
|
21
21
|
attached() {
|
|
22
22
|
}
|
|
23
23
|
checkboxClick(option, ej2Checkbox) {
|
|
24
|
-
console.log("matcher", this.matcher);
|
|
25
24
|
if (ej2Checkbox[`${constants.bindablePrefix}checked`]) {
|
|
26
25
|
if ((this.matcher && this.selectedItems.find((x) => this.matcher(x, option))) || !this.selectedItems.includes(option)) {
|
|
27
26
|
this.selectedItems.push(option);
|
|
@@ -39,7 +38,7 @@ export class Ej2CheckboxList {
|
|
|
39
38
|
isMatch(option) {
|
|
40
39
|
return this.selectedItems.findIndex((x) => this.matcher(x, option)) !== -1;
|
|
41
40
|
}
|
|
42
|
-
}
|
|
41
|
+
};
|
|
43
42
|
__decorate([
|
|
44
43
|
bindable,
|
|
45
44
|
__metadata("design:type", Array)
|
|
@@ -60,3 +59,16 @@ __decorate([
|
|
|
60
59
|
bindable,
|
|
61
60
|
__metadata("design:type", Function)
|
|
62
61
|
], Ej2CheckboxList.prototype, "matcher", void 0);
|
|
62
|
+
Ej2CheckboxList = __decorate([
|
|
63
|
+
customElement("ej2-checkbox-list"),
|
|
64
|
+
inlineView(`<template>
|
|
65
|
+
<div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
|
|
66
|
+
<ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
|
|
67
|
+
e-name.bind="optionModel? option[optionModel.name]: option"
|
|
68
|
+
click.delegate="checkboxClick(option, viewModels[$index])"
|
|
69
|
+
e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
|
|
70
|
+
</ej2-checkbox>
|
|
71
|
+
</div>
|
|
72
|
+
</template>`)
|
|
73
|
+
], Ej2CheckboxList);
|
|
74
|
+
export { Ej2CheckboxList };
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
8
|
-
import { autoinject } from 'aurelia-framework';
|
|
8
|
+
import { autoinject, inlineView, customElement, transient } from 'aurelia-framework';
|
|
9
9
|
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
10
10
|
import { generateBindables } from '../../utilities/decorator';
|
|
11
11
|
import { constants } from '../../common/constants';
|
|
@@ -16,6 +16,7 @@ let Ej2Checkbox = class Ej2Checkbox extends SyncfusionWrapper {
|
|
|
16
16
|
this.checkedSubscription = null;
|
|
17
17
|
}
|
|
18
18
|
onWidgetCreated() {
|
|
19
|
+
this.widget.element.addEventListener("click", this._onClick.bind(this));
|
|
19
20
|
}
|
|
20
21
|
onWrapperCreated() {
|
|
21
22
|
}
|
|
@@ -40,11 +41,15 @@ let Ej2Checkbox = class Ej2Checkbox extends SyncfusionWrapper {
|
|
|
40
41
|
}
|
|
41
42
|
detached() {
|
|
42
43
|
this.checkedSubscription.dispose();
|
|
44
|
+
this.widget.element.removeEventListener("click", this._onClick);
|
|
43
45
|
super.detached();
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
48
|
Ej2Checkbox = __decorate([
|
|
47
49
|
autoinject,
|
|
48
|
-
|
|
50
|
+
transient(),
|
|
51
|
+
generateBindables("checkbox"),
|
|
52
|
+
customElement("ej2-checkbox"),
|
|
53
|
+
inlineView(`<template><input element.ref="widgetElement" type="checkbox" /></template>`)
|
|
49
54
|
], Ej2Checkbox);
|
|
50
55
|
export { Ej2Checkbox };
|
|
@@ -8,6 +8,7 @@ import { constants } from '../../common/constants';
|
|
|
8
8
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
9
|
import { ComboBox } from "@syncfusion/ej2-dropdowns";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
12
|
let Ej2ComboBox = class Ej2ComboBox extends SyncfusionWrapper {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -24,6 +25,8 @@ let Ej2ComboBox = class Ej2ComboBox extends SyncfusionWrapper {
|
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
Ej2ComboBox = __decorate([
|
|
27
|
-
generateBindables("comboBox")
|
|
28
|
+
generateBindables("comboBox"),
|
|
29
|
+
inlineView(`<template><input type="text" tabindex="1" element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-combo-box')
|
|
28
31
|
], Ej2ComboBox);
|
|
29
32
|
export { Ej2ComboBox };
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
8
8
|
import { DashboardLayout } from '@syncfusion/ej2-layouts';
|
|
9
9
|
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
10
11
|
let Ej2DashboardLayout = class Ej2DashboardLayout extends SyncfusionWrapper {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -18,6 +19,8 @@ let Ej2DashboardLayout = class Ej2DashboardLayout extends SyncfusionWrapper {
|
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
Ej2DashboardLayout = __decorate([
|
|
21
|
-
generateBindables("dashboardLayout")
|
|
22
|
+
generateBindables("dashboardLayout"),
|
|
23
|
+
inlineView(`<template><div class="dashboard-container"><div element.ref="widgetElement"><slot></slot></div></div></template>`),
|
|
24
|
+
customElement("ej2-dashboard-layout")
|
|
22
25
|
], Ej2DashboardLayout);
|
|
23
26
|
export { Ej2DashboardLayout };
|
|
@@ -8,6 +8,7 @@ import { constants } from './../../common/constants';
|
|
|
8
8
|
import { DatePicker } from "@syncfusion/ej2-calendars";
|
|
9
9
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
12
|
let Ej2DatePicker = class Ej2DatePicker extends SyncfusionWrapper {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -24,6 +25,8 @@ let Ej2DatePicker = class Ej2DatePicker extends SyncfusionWrapper {
|
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
Ej2DatePicker = __decorate([
|
|
27
|
-
generateBindables("datePicker")
|
|
28
|
+
generateBindables("datePicker"),
|
|
29
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement("ej2-date-picker")
|
|
28
31
|
], Ej2DatePicker);
|
|
29
32
|
export { Ej2DatePicker };
|
|
@@ -8,6 +8,7 @@ import { constants } from './../../common/constants';
|
|
|
8
8
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
9
|
import { DateRangePicker } from "@syncfusion/ej2-calendars";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
12
|
let Ej2DateRangePicker = class Ej2DateRangePicker extends SyncfusionWrapper {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -26,6 +27,8 @@ let Ej2DateRangePicker = class Ej2DateRangePicker extends SyncfusionWrapper {
|
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
29
|
Ej2DateRangePicker = __decorate([
|
|
29
|
-
generateBindables("dateRangePicker")
|
|
30
|
+
generateBindables("dateRangePicker"),
|
|
31
|
+
customElement('ej2-date-range-picker'),
|
|
32
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`)
|
|
30
33
|
], Ej2DateRangePicker);
|
|
31
34
|
export { Ej2DateRangePicker };
|
|
@@ -8,6 +8,7 @@ import { constants } from './../../common/constants';
|
|
|
8
8
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
9
|
import { DateTimePicker } from "@syncfusion/ej2-calendars";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
12
|
let Ej2DateTimePicker = class Ej2DateTimePicker extends SyncfusionWrapper {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -24,6 +25,8 @@ let Ej2DateTimePicker = class Ej2DateTimePicker extends SyncfusionWrapper {
|
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
Ej2DateTimePicker = __decorate([
|
|
27
|
-
generateBindables("dateTimePicker")
|
|
28
|
+
generateBindables("dateTimePicker"),
|
|
29
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-date-time-picker')
|
|
28
31
|
], Ej2DateTimePicker);
|
|
29
32
|
export { Ej2DateTimePicker };
|
|
@@ -8,6 +8,7 @@ import { constants } from './../../common/constants';
|
|
|
8
8
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
9
|
import { DropDownList } from "@syncfusion/ej2-dropdowns";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
12
|
let Ej2DropDownList = class Ej2DropDownList extends SyncfusionWrapper {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -28,6 +29,8 @@ let Ej2DropDownList = class Ej2DropDownList extends SyncfusionWrapper {
|
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
Ej2DropDownList = __decorate([
|
|
31
|
-
generateBindables("dropDownList")
|
|
32
|
+
generateBindables("dropDownList"),
|
|
33
|
+
inlineView(`<template><div><slot><input /></slot></div></template>`),
|
|
34
|
+
customElement('ej2-drop-down-list')
|
|
32
35
|
], Ej2DropDownList);
|
|
33
36
|
export { Ej2DropDownList };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { DropDownTree, DropDownTreeModel } from '@syncfusion/ej2-dropdowns';
|
|
3
|
+
export declare class Ej2DropDownTree extends SyncfusionWrapper<DropDownTree, DropDownTreeModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DropDownTree;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
8
|
+
import { DropDownTree } from '@syncfusion/ej2-dropdowns';
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
|
+
import { constants } from './../../common/constants';
|
|
12
|
+
let Ej2DropDownTree = class Ej2DropDownTree extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = DropDownTree;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
22
|
+
}
|
|
23
|
+
onChange(args) {
|
|
24
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Ej2DropDownTree = __decorate([
|
|
28
|
+
generateBindables("dropDownTree"),
|
|
29
|
+
customElement('ej2-drop-down-tree'),
|
|
30
|
+
inlineView('<template><input type="text" element.ref="widgetElement" /></template>')
|
|
31
|
+
], Ej2DropDownTree);
|
|
32
|
+
export { Ej2DropDownTree };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { FileManager, FileManagerModel } from "@syncfusion/ej2-filemanager";
|
|
3
|
+
export declare class Ej2FileManager extends SyncfusionWrapper<FileManager, FileManagerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof FileManager;
|
|
5
|
+
id: string;
|
|
6
|
+
onBeforeWidgetInstantiation(): void;
|
|
7
|
+
protected onWidgetCreated(): void;
|
|
8
|
+
protected onWrapperCreated(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
8
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
9
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
10
|
+
import { FileManager, Toolbar, NavigationPane, DetailsView, ContextMenu } from "@syncfusion/ej2-filemanager";
|
|
11
|
+
import { v4 as uuidv4 } from "uuid";
|
|
12
|
+
let Ej2FileManager = class Ej2FileManager extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = FileManager;
|
|
16
|
+
this.id = `fm-${uuidv4()}`;
|
|
17
|
+
}
|
|
18
|
+
onBeforeWidgetInstantiation() {
|
|
19
|
+
FileManager.Inject(Toolbar, NavigationPane, DetailsView, ContextMenu);
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
}
|
|
23
|
+
onWrapperCreated() {
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
Ej2FileManager = __decorate([
|
|
27
|
+
generateBindables("fileManager"),
|
|
28
|
+
inlineView(`<template><div id.bind="id" element.ref="widgetElement"></div></template>`),
|
|
29
|
+
customElement('ej2-file-manager')
|
|
30
|
+
], Ej2FileManager);
|
|
31
|
+
export { Ej2FileManager };
|
|
@@ -7,76 +7,77 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
8
8
|
import { generateBindables } from '../../utilities/decorator';
|
|
9
9
|
import { Grid, Selection, Page, Edit, Reorder, Sort, ColumnChooser, Toolbar, Filter, Group, Aggregate, ColumnMenu, DetailRow, ContextMenu, Freeze, Resize, RowDD, Search, Print, VirtualScroll, ExcelExport, PdfExport } from '@syncfusion/ej2-grids';
|
|
10
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
10
11
|
let Ej2Grid = class Ej2Grid extends SyncfusionWrapper {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
13
14
|
this.syncfusionWidgetType = Grid;
|
|
14
15
|
}
|
|
15
16
|
onBeforeWidgetInstantiation() {
|
|
16
|
-
if (this.
|
|
17
|
+
if (this._eModel.allowPaging) {
|
|
17
18
|
Grid.Inject(Page);
|
|
18
19
|
}
|
|
19
|
-
if (this.
|
|
20
|
+
if (this._eModel.allowSelection) {
|
|
20
21
|
Grid.Inject(Selection);
|
|
21
22
|
}
|
|
22
|
-
if (this.
|
|
23
|
+
if (this._eModel.editSettings) {
|
|
23
24
|
Grid.Inject(Edit);
|
|
24
25
|
}
|
|
25
|
-
if (this.
|
|
26
|
+
if (this._eModel.allowReordering) {
|
|
26
27
|
Grid.Inject(Reorder);
|
|
27
28
|
}
|
|
28
|
-
if (this.
|
|
29
|
+
if (this._eModel.allowSorting) {
|
|
29
30
|
Grid.Inject(Sort);
|
|
30
31
|
}
|
|
31
|
-
if (this.
|
|
32
|
+
if (this._eModel.showColumnChooser) {
|
|
32
33
|
Grid.Inject(ColumnChooser);
|
|
33
34
|
}
|
|
34
|
-
if (this.
|
|
35
|
+
if (this._eModel.toolbar) {
|
|
35
36
|
Grid.Inject(Toolbar);
|
|
36
37
|
}
|
|
37
|
-
if (this.
|
|
38
|
+
if (this._eModel.editSettings) {
|
|
38
39
|
Grid.Inject(Edit);
|
|
39
40
|
}
|
|
40
|
-
if (this.
|
|
41
|
+
if (this._eModel.filterSettings) {
|
|
41
42
|
Grid.Inject(Filter);
|
|
42
43
|
}
|
|
43
|
-
if (this.
|
|
44
|
+
if (this._eModel.groupSettings) {
|
|
44
45
|
Grid.Inject(Group);
|
|
45
46
|
}
|
|
46
|
-
if (this.
|
|
47
|
+
if (this._eModel.aggregates) {
|
|
47
48
|
Grid.Inject(Aggregate);
|
|
48
49
|
}
|
|
49
|
-
if (this.
|
|
50
|
+
if (this._eModel.showColumnMenu) {
|
|
50
51
|
Grid.Inject(ColumnMenu);
|
|
51
52
|
}
|
|
52
|
-
if (this.
|
|
53
|
+
if (this._eModel.detailTemplate) {
|
|
53
54
|
Grid.Inject(DetailRow);
|
|
54
55
|
}
|
|
55
|
-
if (this.
|
|
56
|
+
if (this._eModel.contextMenuItems) {
|
|
56
57
|
Grid.Inject(ContextMenu);
|
|
57
58
|
}
|
|
58
|
-
if (this.
|
|
59
|
+
if (this._eModel.frozenColumns || this._eModel.frozenRows) {
|
|
59
60
|
Grid.Inject(Freeze);
|
|
60
61
|
}
|
|
61
|
-
if (this.
|
|
62
|
+
if (this._eModel.allowResizing) {
|
|
62
63
|
Grid.Inject(Resize);
|
|
63
64
|
}
|
|
64
|
-
if (this.
|
|
65
|
+
if (this._eModel.allowRowDragAndDrop) {
|
|
65
66
|
Grid.Inject(RowDD);
|
|
66
67
|
}
|
|
67
|
-
if (this.
|
|
68
|
+
if (this._eModel.searchSettings) {
|
|
68
69
|
Grid.Inject(Search);
|
|
69
70
|
}
|
|
70
|
-
if (this.
|
|
71
|
+
if (this._eModel.printMode) {
|
|
71
72
|
Grid.Inject(Print);
|
|
72
73
|
}
|
|
73
|
-
if (this.
|
|
74
|
+
if (this._eModel.enableVirtualization) {
|
|
74
75
|
Grid.Inject(VirtualScroll);
|
|
75
76
|
}
|
|
76
|
-
if (this.
|
|
77
|
+
if (this._eModel.allowExcelExport) {
|
|
77
78
|
Grid.Inject(ExcelExport);
|
|
78
79
|
}
|
|
79
|
-
if (this.
|
|
80
|
+
if (this._eModel.allowPdfExport) {
|
|
80
81
|
Grid.Inject(PdfExport);
|
|
81
82
|
}
|
|
82
83
|
}
|
|
@@ -86,6 +87,8 @@ let Ej2Grid = class Ej2Grid extends SyncfusionWrapper {
|
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
89
|
Ej2Grid = __decorate([
|
|
89
|
-
generateBindables("grid")
|
|
90
|
+
generateBindables("grid"),
|
|
91
|
+
inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
92
|
+
customElement('ej2-grid')
|
|
90
93
|
], Ej2Grid);
|
|
91
94
|
export { Ej2Grid };
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
8
8
|
import { ListView, Virtualization } from "@syncfusion/ej2-lists";
|
|
9
9
|
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
10
11
|
let Ej2ListView = class Ej2ListView extends SyncfusionWrapper {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -17,12 +18,14 @@ let Ej2ListView = class Ej2ListView extends SyncfusionWrapper {
|
|
|
17
18
|
onWidgetCreated() {
|
|
18
19
|
}
|
|
19
20
|
onBeforeWidgetInstantiation() {
|
|
20
|
-
if (this.
|
|
21
|
+
if (this._eModel.enableVirtualization) {
|
|
21
22
|
ListView.Inject(Virtualization);
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
Ej2ListView = __decorate([
|
|
26
|
-
generateBindables("listView")
|
|
27
|
+
generateBindables("listView"),
|
|
28
|
+
inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
29
|
+
customElement('ej2-list-view')
|
|
27
30
|
], Ej2ListView);
|
|
28
31
|
export { Ej2ListView };
|
|
@@ -9,6 +9,7 @@ import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
|
9
9
|
import { MaskedTextBox } from "@syncfusion/ej2-inputs";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
11
|
import { enableRipple } from '@syncfusion/ej2-base';
|
|
12
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
12
13
|
enableRipple(true);
|
|
13
14
|
let Ej2MaskedTextBox = class Ej2MaskedTextBox extends SyncfusionWrapper {
|
|
14
15
|
constructor() {
|
|
@@ -26,6 +27,8 @@ let Ej2MaskedTextBox = class Ej2MaskedTextBox extends SyncfusionWrapper {
|
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
29
|
Ej2MaskedTextBox = __decorate([
|
|
29
|
-
generateBindables("maskedTextBox")
|
|
30
|
+
generateBindables("maskedTextBox"),
|
|
31
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
32
|
+
customElement('ej2-masked-text-box')
|
|
30
33
|
], Ej2MaskedTextBox);
|
|
31
34
|
export { 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,41 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { constants } from '../../common/constants';
|
|
8
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
|
+
import { MultiSelect } from "@syncfusion/ej2-dropdowns";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { enableRipple } from '@syncfusion/ej2-base';
|
|
12
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
13
|
+
enableRipple(true);
|
|
14
|
+
let Ej2MultiSelect = class Ej2MultiSelect extends SyncfusionWrapper {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.syncfusionWidgetType = MultiSelect;
|
|
18
|
+
}
|
|
19
|
+
onWrapperCreated() {
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
let _this = this;
|
|
23
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
24
|
+
}
|
|
25
|
+
onInput(args) {
|
|
26
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
27
|
+
}
|
|
28
|
+
onChange(args) {
|
|
29
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
30
|
+
}
|
|
31
|
+
attached() {
|
|
32
|
+
this.widgetElement = this.element.querySelector("select,input");
|
|
33
|
+
super.attached();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
Ej2MultiSelect = __decorate([
|
|
37
|
+
generateBindables("multiSelect"),
|
|
38
|
+
inlineView(`<template><div><slot><input /></slot></div></template>`),
|
|
39
|
+
customElement('ej2-multi-select')
|
|
40
|
+
], Ej2MultiSelect);
|
|
41
|
+
export { Ej2MultiSelect };
|
|
@@ -8,6 +8,7 @@ import { constants } from './../../common/constants';
|
|
|
8
8
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
9
|
import { NumericTextBox } from "@syncfusion/ej2-inputs";
|
|
10
10
|
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
11
12
|
let Ej2NumericTextBox = class Ej2NumericTextBox extends SyncfusionWrapper {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -24,6 +25,8 @@ let Ej2NumericTextBox = class Ej2NumericTextBox extends SyncfusionWrapper {
|
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
Ej2NumericTextBox = __decorate([
|
|
27
|
-
generateBindables("numericTextBox")
|
|
28
|
+
generateBindables("numericTextBox"),
|
|
29
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-numeric-text-box')
|
|
28
31
|
], Ej2NumericTextBox);
|
|
29
32
|
export { Ej2NumericTextBox };
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { Pager } from "@syncfusion/ej2-grids";
|
|
8
8
|
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
9
|
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
10
11
|
let Ej2Pager = class Ej2Pager extends SyncfusionWrapper {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -18,6 +19,8 @@ let Ej2Pager = class Ej2Pager extends SyncfusionWrapper {
|
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
Ej2Pager = __decorate([
|
|
21
|
-
generateBindables("pager")
|
|
22
|
+
generateBindables("pager"),
|
|
23
|
+
inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
24
|
+
customElement('ej2-pager')
|
|
22
25
|
], Ej2Pager);
|
|
23
26
|
export { 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;
|
|
@@ -13,4 +13,5 @@ export declare class Ej2ProgressButton extends SyncfusionWrapper<ProgressButton,
|
|
|
13
13
|
progressComplete(): void;
|
|
14
14
|
start(): void;
|
|
15
15
|
stop(): void;
|
|
16
|
+
detached(): void;
|
|
16
17
|
}
|
|
@@ -7,23 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ProgressButton } from '@syncfusion/ej2-splitbuttons';
|
|
8
8
|
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
9
9
|
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
10
11
|
let Ej2ProgressButton = class Ej2ProgressButton extends SyncfusionWrapper {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
13
14
|
this.clickEvent = null;
|
|
15
|
+
this._onClick = null;
|
|
14
16
|
this.syncfusionWidgetType = ProgressButton;
|
|
15
17
|
}
|
|
16
18
|
onWidgetCreated() {
|
|
19
|
+
let _this = this;
|
|
20
|
+
this._onClick = (event) => {
|
|
21
|
+
_this.element.dispatchEvent(_this.clickEvent);
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
};
|
|
24
|
+
this.widget.element.addEventListener("click", this._onClick, false);
|
|
17
25
|
}
|
|
18
26
|
onWrapperCreated() {
|
|
19
27
|
this.clickEvent = new CustomEvent("on-click", {
|
|
20
28
|
bubbles: true
|
|
21
29
|
});
|
|
22
30
|
}
|
|
23
|
-
_onClick(event) {
|
|
24
|
-
this.element.dispatchEvent(this.clickEvent);
|
|
25
|
-
event.stopPropagation();
|
|
26
|
-
}
|
|
27
31
|
refresh() {
|
|
28
32
|
this.widget.refresh();
|
|
29
33
|
}
|
|
@@ -45,8 +49,13 @@ let Ej2ProgressButton = class Ej2ProgressButton extends SyncfusionWrapper {
|
|
|
45
49
|
stop() {
|
|
46
50
|
this.widget.stop();
|
|
47
51
|
}
|
|
52
|
+
detached() {
|
|
53
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
54
|
+
}
|
|
48
55
|
};
|
|
49
56
|
Ej2ProgressButton = __decorate([
|
|
50
|
-
generateBindables("progressButton")
|
|
57
|
+
generateBindables("progressButton"),
|
|
58
|
+
inlineView(`<template><button element.ref="widgetElement"><slot></slot></button></template>`),
|
|
59
|
+
customElement('ej2-progress-button')
|
|
51
60
|
], Ej2ProgressButton);
|
|
52
61
|
export { Ej2ProgressButton };
|