aurelia-syncfusion-ej2-bridge 0.1.0-beta.8 → 1.0.0
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 +13 -4
- package/dist/commonjs/common/syncfusionWrapper.d.ts +3 -0
- package/dist/commonjs/common/syncfusionWrapper.js +11 -2
- 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/widgets/button/ej2-button.d.ts +2 -1
- package/dist/commonjs/widgets/button/ej2-button.js +11 -5
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +0 -1
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +4 -1
- package/dist/commonjs/widgets/grid/ej2-grid.js +22 -22
- package/dist/commonjs/widgets/listView/ej2-listView.js +1 -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/progressButton/ej2-progress-button.d.ts +2 -1
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +11 -5
- package/dist/commonjs/widgets/radio/ej2-radio.js +3 -3
- 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/splitter/ej2-splitter.js +0 -2
- package/dist/commonjs/widgets/switch/ej2-switch.d.ts +2 -1
- package/dist/commonjs/widgets/switch/ej2-switch.js +8 -4
- package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +7 -1
- package/dist/commonjs/widgets/uploader/ej2-uploader.js +65 -29
- 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 +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/widgets/button/ej2-button.d.ts +2 -1
- package/dist/native-modules/widgets/button/ej2-button.js +11 -5
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +0 -1
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +5 -2
- 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 +2 -1
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +11 -5
- 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/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 -4
package/README.md
CHANGED
|
@@ -8,7 +8,8 @@ export declare class ControlBase<T, U> {
|
|
|
8
8
|
protected taskQueue: TaskQueue;
|
|
9
9
|
protected eventAggregator: EventAggregator;
|
|
10
10
|
protected element: Element;
|
|
11
|
-
eModel
|
|
11
|
+
private eModel;
|
|
12
|
+
protected _eModel: U;
|
|
12
13
|
protected widgetElement: HTMLElement;
|
|
13
14
|
widget: T;
|
|
14
15
|
protected bindingContext: any;
|
|
@@ -18,6 +19,7 @@ export declare class ControlBase<T, U> {
|
|
|
18
19
|
protected subscriptions: Disposable[];
|
|
19
20
|
constructor(bindingEngine: BindingEngine, controlContainer: ControlContainer, taskQueue: TaskQueue, eventAggregator: EventAggregator, element: Element);
|
|
20
21
|
onBind(): void;
|
|
22
|
+
onAttached(): void;
|
|
21
23
|
onCreateControl(): void;
|
|
22
24
|
protected debug(message: string, ...rest: any[]): void;
|
|
23
25
|
protected info(message: string, ...rest: any[]): void;
|
|
@@ -24,19 +24,21 @@ let ControlBase = class ControlBase {
|
|
|
24
24
|
this.eventAggregator = eventAggregator;
|
|
25
25
|
this.element = element;
|
|
26
26
|
this.eModel = null;
|
|
27
|
+
this._eModel = null;
|
|
27
28
|
this.widgetElement = null;
|
|
28
29
|
this.widget = null;
|
|
29
30
|
this.bindingContext = null;
|
|
30
31
|
this.logName = "";
|
|
31
32
|
this.propertyPriority = true;
|
|
32
33
|
this.subscriptions = [];
|
|
33
|
-
this.eModel = {};
|
|
34
34
|
}
|
|
35
35
|
get controlType() {
|
|
36
36
|
throw "syncfusionControlType is not set";
|
|
37
37
|
}
|
|
38
38
|
onBind() {
|
|
39
39
|
}
|
|
40
|
+
onAttached() {
|
|
41
|
+
}
|
|
40
42
|
onCreateControl() {
|
|
41
43
|
throw "onCreateControl is not implemented";
|
|
42
44
|
}
|
|
@@ -55,6 +57,7 @@ let ControlBase = class ControlBase {
|
|
|
55
57
|
bind(context) {
|
|
56
58
|
this.logName = this.controlType.name;
|
|
57
59
|
this.bindingContext = context;
|
|
60
|
+
this._eModel = Object.assign({}, this.eModel);
|
|
58
61
|
this.setInitialBindings();
|
|
59
62
|
this.onCreateControl();
|
|
60
63
|
this.onBind();
|
|
@@ -65,8 +68,8 @@ let ControlBase = class ControlBase {
|
|
|
65
68
|
_control.bindableProperties.forEach((property) => {
|
|
66
69
|
if (!property.startsWith(constants_1.constants.eventPrefix)) {
|
|
67
70
|
let modelProperty = property.substr(bindablePrefixLength);
|
|
68
|
-
if (this[property] !== undefined && (this.propertyPriority || this.
|
|
69
|
-
this.
|
|
71
|
+
if (this[property] !== undefined && (this.propertyPriority || this._eModel[modelProperty] === undefined)) {
|
|
72
|
+
this._eModel[modelProperty] = this[property];
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
});
|
|
@@ -124,15 +127,21 @@ let ControlBase = class ControlBase {
|
|
|
124
127
|
}
|
|
125
128
|
attached() {
|
|
126
129
|
this.appendWidget();
|
|
130
|
+
this.onAttached();
|
|
127
131
|
}
|
|
128
132
|
appendWidget() {
|
|
129
133
|
this.widget.appendTo(this.widgetElement);
|
|
130
134
|
}
|
|
131
135
|
detached() {
|
|
132
|
-
this.subscriptions.forEach((subscription) => subscription
|
|
136
|
+
this.subscriptions.forEach((subscription) => { if (subscription) {
|
|
137
|
+
subscription.dispose();
|
|
138
|
+
} });
|
|
133
139
|
if (this.widget.destroy) {
|
|
134
140
|
this.widget.destroy();
|
|
135
141
|
}
|
|
142
|
+
this.widget = null;
|
|
143
|
+
this._eModel = null;
|
|
144
|
+
this.widgetElement = null;
|
|
136
145
|
}
|
|
137
146
|
};
|
|
138
147
|
__decorate([
|
|
@@ -5,6 +5,9 @@ export declare abstract class SyncfusionWrapper<T, U> extends ControlBase<T, U>
|
|
|
5
5
|
protected abstract onWidgetCreated(): any;
|
|
6
6
|
onCreateControl(): void;
|
|
7
7
|
recreate(): void;
|
|
8
|
+
onRecreate(): void;
|
|
9
|
+
recreating(): void;
|
|
10
|
+
recreated(): void;
|
|
8
11
|
refresh(): void;
|
|
9
12
|
dataBind(): void;
|
|
10
13
|
protected get controlType(): any;
|
|
@@ -9,17 +9,26 @@ class SyncfusionWrapper extends controlBase_1.ControlBase {
|
|
|
9
9
|
}
|
|
10
10
|
onCreateControl() {
|
|
11
11
|
this.onBeforeWidgetInstantiation();
|
|
12
|
-
this.widget = new this.syncfusionWidgetType(this.
|
|
12
|
+
this.widget = new this.syncfusionWidgetType(this._eModel);
|
|
13
13
|
this.widget.created = () => { this.onWidgetCreated(); };
|
|
14
14
|
this.onWrapperCreated();
|
|
15
15
|
this.createControlEvents(this.getBindables());
|
|
16
16
|
}
|
|
17
17
|
recreate() {
|
|
18
|
-
this.
|
|
18
|
+
this.onRecreate();
|
|
19
19
|
this.widget.destroy();
|
|
20
|
+
this.widget = null;
|
|
21
|
+
this.recreating();
|
|
20
22
|
this.setInitialBindings();
|
|
21
23
|
this.onCreateControl();
|
|
22
24
|
this.appendWidget();
|
|
25
|
+
this.recreated();
|
|
26
|
+
}
|
|
27
|
+
onRecreate() {
|
|
28
|
+
}
|
|
29
|
+
recreating() {
|
|
30
|
+
}
|
|
31
|
+
recreated() {
|
|
23
32
|
}
|
|
24
33
|
refresh() {
|
|
25
34
|
this.widget.refresh();
|
|
@@ -22,10 +22,12 @@ export declare class ConfigBuilder {
|
|
|
22
22
|
ej2Grid(): ConfigBuilder;
|
|
23
23
|
ej2ListView(): ConfigBuilder;
|
|
24
24
|
ej2MaskedTextBox(): ConfigBuilder;
|
|
25
|
+
ej2MultiSelect(): ConfigBuilder;
|
|
25
26
|
ej2NumericTextBox(): ConfigBuilder;
|
|
26
27
|
ej2Pager(): ConfigBuilder;
|
|
27
28
|
ej2ProgressButton(): ConfigBuilder;
|
|
28
29
|
ej2Radio(): ConfigBuilder;
|
|
30
|
+
ej2Schedule(): ConfigBuilder;
|
|
29
31
|
ej2Sidebar(): ConfigBuilder;
|
|
30
32
|
ej2Slider(): ConfigBuilder;
|
|
31
33
|
ej2Splitter(): ConfigBuilder;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfigBuilder = void 0;
|
|
4
|
+
const ej2_multiSelect_1 = require("./widgets/multiSelect/ej2-multiSelect");
|
|
5
|
+
const ej2_schedule_1 = require("./widgets/schedule/ej2-schedule");
|
|
4
6
|
const ej2_fileManager_1 = require("./widgets/fileManager/ej2-fileManager");
|
|
5
7
|
const ej2_sidebar_1 = require("./widgets/sidebar/ej2-sidebar");
|
|
6
8
|
const ej2_DatePicker_1 = require("./widgets/datePicker/ej2-DatePicker");
|
|
7
|
-
const aurelia_pal_1 = require("aurelia-pal");
|
|
8
9
|
const ej2_textBox_1 = require("./widgets/textBox/ej2-textBox");
|
|
9
10
|
const ej2_dateRangePicker_1 = require("./widgets/dateRangePicker/ej2-dateRangePicker");
|
|
10
11
|
const ej2_dateTimePicker_1 = require("./widgets/dateTimePicker/ej2-dateTimePicker");
|
|
@@ -53,10 +54,12 @@ class ConfigBuilder {
|
|
|
53
54
|
.ej2Grid()
|
|
54
55
|
.ej2ListView()
|
|
55
56
|
.ej2MaskedTextBox()
|
|
57
|
+
.ej2MultiSelect()
|
|
56
58
|
.ej2NumericTextBox()
|
|
57
59
|
.ej2Pager()
|
|
58
60
|
.ej2ProgressButton()
|
|
59
61
|
.ej2Radio()
|
|
62
|
+
.ej2Schedule()
|
|
60
63
|
.ej2Sidebar()
|
|
61
64
|
.ej2Slider()
|
|
62
65
|
.ej2Splitter()
|
|
@@ -79,7 +82,6 @@ class ConfigBuilder {
|
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
materialTheme() {
|
|
82
|
-
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/material.css"));
|
|
83
85
|
return this;
|
|
84
86
|
}
|
|
85
87
|
withoutGlobalResources() {
|
|
@@ -150,6 +152,10 @@ class ConfigBuilder {
|
|
|
150
152
|
this.resources.push(ej2_maskedTextBox_1.Ej2MaskedTextBox);
|
|
151
153
|
return this;
|
|
152
154
|
}
|
|
155
|
+
ej2MultiSelect() {
|
|
156
|
+
this.resources.push(ej2_multiSelect_1.Ej2MultiSelect);
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
153
159
|
ej2NumericTextBox() {
|
|
154
160
|
this.resources.push(ej2_numericTextBox_1.Ej2NumericTextBox);
|
|
155
161
|
return this;
|
|
@@ -166,6 +172,10 @@ class ConfigBuilder {
|
|
|
166
172
|
this.resources.push(ej2_radio_1.Ej2Radio);
|
|
167
173
|
return this;
|
|
168
174
|
}
|
|
175
|
+
ej2Schedule() {
|
|
176
|
+
this.resources.push(ej2_schedule_1.Ej2Schedule);
|
|
177
|
+
return this;
|
|
178
|
+
}
|
|
169
179
|
ej2Sidebar() {
|
|
170
180
|
this.resources.push(ej2_sidebar_1.Ej2Sidebar);
|
|
171
181
|
return this;
|
|
@@ -74,12 +74,18 @@ export declare const ControlBindings: {
|
|
|
74
74
|
twoWay: string[];
|
|
75
75
|
events: string[];
|
|
76
76
|
};
|
|
77
|
+
multiSelect: {
|
|
78
|
+
oneWay: string[];
|
|
79
|
+
twoWay: string[];
|
|
80
|
+
events: string[];
|
|
81
|
+
};
|
|
77
82
|
numericTextBox: {
|
|
78
83
|
oneWay: string[];
|
|
79
84
|
twoWay: string[];
|
|
80
85
|
events: string[];
|
|
81
86
|
};
|
|
82
87
|
pager: {
|
|
88
|
+
oneWay: string[];
|
|
83
89
|
twoWay: string[];
|
|
84
90
|
events: string[];
|
|
85
91
|
};
|
|
@@ -91,6 +97,10 @@ export declare const ControlBindings: {
|
|
|
91
97
|
oneWay: string[];
|
|
92
98
|
events: string[];
|
|
93
99
|
};
|
|
100
|
+
schedule: {
|
|
101
|
+
oneWay: string[];
|
|
102
|
+
events: string[];
|
|
103
|
+
};
|
|
94
104
|
sidebar: {
|
|
95
105
|
oneWay: string[];
|
|
96
106
|
events: string[];
|
|
@@ -6,138 +6,170 @@ exports.ControlBindings = {
|
|
|
6
6
|
oneWay: ["enablePersistence", "enableRtl", "locale"]
|
|
7
7
|
},
|
|
8
8
|
accordion: {
|
|
9
|
-
oneWay: ["animation", "expandMode", "height", "items", "width"],
|
|
9
|
+
oneWay: ["animation", "dataSource", "enableHtmlSanitizer", "expandMode", "expandedIndices", "height", "itemTemplate", "items", "width"],
|
|
10
10
|
events: ["clicked", "created", "destroyed", "expanded", "expanding"]
|
|
11
11
|
},
|
|
12
12
|
autoComplete: {
|
|
13
|
-
oneWay: ["actionFailureTemplate", "allowCustom", "autofill", "cssClass", "dataSource", "enabled", "fields", "
|
|
13
|
+
oneWay: ["actionFailureTemplate", "allowCustom", "autofill", "cssClass", "dataSource", "enabled", "fields", "ignoreAccent", "ignoreCase", "itemTemplate", "minLength", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "query", "readonly", "showClearButton", "showPopupButton", "sortOrder", "suggestionCount", "width", "zIndex"],
|
|
14
14
|
twoWay: ["value"],
|
|
15
15
|
events: ["actionBegin", "actionComplete", "actionFailure", "beforeOpen", "blur", "change", "close", "created", "customValueSpecifier", "dataBound", "destroyed", "filtering", "focus", "open", "select"]
|
|
16
16
|
},
|
|
17
17
|
button: {
|
|
18
|
-
oneWay: ["disabled", "isPrimary", "content", "cssClass", "iconCss", "iconPosition", "isToggle", "enableRtl"],
|
|
18
|
+
oneWay: ["disabled", "isPrimary", "content", "cssClass", "enableHtmlSanitizer", "iconCss", "iconPosition", "isToggle", "enableRtl"],
|
|
19
19
|
events: ["created"]
|
|
20
20
|
},
|
|
21
21
|
checkbox: {
|
|
22
|
-
oneWay: ["cssClass", "disabled", "indeterminate", "label", "labelPosition", "name", "value"],
|
|
22
|
+
oneWay: ["cssClass", "disabled", "enableHtmlSanitizer", "htmlAttributes", "indeterminate", "label", "labelPosition", "name", "value"],
|
|
23
23
|
twoWay: ["checked"],
|
|
24
24
|
events: ["change", "created"]
|
|
25
25
|
},
|
|
26
26
|
comboBox: {
|
|
27
|
-
oneWay: ["actionFailureTemplate", "allowCustom", "allowFiltering", "autofill", "cssClass", "dataSource", "enabled", "fields",
|
|
27
|
+
oneWay: ["actionFailureTemplate", "allowCustom", "allowFiltering", "autofill", "cssClass", "dataSource", "enabled", "fields",
|
|
28
|
+
"filterType", "floatLabelType", "footerTemplate", "groupTemplate", "headerTemplate", "htmlAttributes", "ignoreAccent", "ignoreCase", "index", "itemTemplate", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "query", "readonly", "showClearButton", "sortOrder", "text", "width", "zIndex"],
|
|
28
29
|
twoWay: ["value"],
|
|
29
30
|
events: ["actionBegin", "actionComplete", "actionFailure", "beforeOpen", "blur", "change", "close", "created", "customValueSpecifier", "dataBound", "destroyed", "filtering", "focus", "open", "select"]
|
|
30
31
|
},
|
|
31
32
|
dashboardLayout: {
|
|
32
|
-
oneWay: ["allowDragging", "allowFloating", "allowResizing", "cellSpacing", "columns", "draggableHandle",
|
|
33
|
+
oneWay: ["allowDragging", "allowFloating", "allowResizing", "cellSpacing", "columns", "draggableHandle",
|
|
34
|
+
"enableHtmlSanitizer", "mediaQuery", "panels", "resizableHandles", "showGridLines"],
|
|
33
35
|
events: ["change", "created", "destroyed", "drag", "dragStart", "dragStop", "resize", "resizeStart", "resizeStop"]
|
|
34
36
|
},
|
|
35
37
|
datePicker: {
|
|
36
|
-
oneWay: ["allowEdit", "calendarMode", "cssClass", "dayHeaderFormat", "depth", "enabled", "firstDayOfWeek", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "max", "min", "placeholder", "readonly", "showClearButton", "showTodayButton", "start", "strictMode", "weekNumber", "width", "zindex"],
|
|
38
|
+
oneWay: ["allowEdit", "calendarMode", "cssClass", "dayHeaderFormat", "depth", "enableMask", "enabled", "firstDayOfWeek", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "max", "min", "openOnFocus", "placeholder", "readonly", "serverTimezoneOffset", "showClearButton", "showTodayButton", "start", "strictMode", "weekNumber", "weekRule", "width", "zindex"],
|
|
37
39
|
twoWay: ["value"],
|
|
38
40
|
events: ["blur", "change", "close", "created", "destroyed", "focus", "navigated", "open", "renderDayCell"]
|
|
39
41
|
},
|
|
40
42
|
dateRangePicker: {
|
|
41
|
-
oneWay: ["allowEdit", "cssClass", "dayHeaderFormat", "depth", "enabled", "firstDayOfWeek", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "max", "maxDays", "min", "minDays", "placeholder", "presets", "readonly", "separator", "showClearButton", "start", "strictMode", "weekNumber", "width", "zindex"],
|
|
43
|
+
oneWay: ["allowEdit", "cssClass", "dayHeaderFormat", "depth", "enabled", "firstDayOfWeek", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "max", "maxDays", "min", "minDays", "openOnFocus", "placeholder", "presets", "readonly", "separator", "serverTimezoneOffset", "showClearButton", "start", "strictMode", "weekNumber", "weekRule", "width", "zindex"],
|
|
42
44
|
twoWay: ["value", "startDate", "endDate"],
|
|
43
|
-
events: ["blur", "change", "close", "created", "destroyed", "focus", "navigated", "open", "renderDayCell", "select"]
|
|
45
|
+
events: ["blur", "change", "cleared", "close", "created", "destroyed", "focus", "navigated", "open", "renderDayCell", "select"]
|
|
44
46
|
},
|
|
45
47
|
dateTimePicker: {
|
|
46
|
-
oneWay: ["allowEdit", "calendarMode", "cssClass", "dayHeaderFormat", "depth", "enabled", "firstDayOfWeek", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "max", "min", "placeholder", "readonly", "scrollTo", "showClearButton", "showTodayButton", "start", "step", "strictMode", "timeFormat", "weekNumber", "width", "zindex"],
|
|
48
|
+
oneWay: ["allowEdit", "calendarMode", "cssClass", "dayHeaderFormat", "depth", "enableMask", "enabled", "firstDayOfWeek", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "maskPlaceholder", "max", "min", "openOnFocus", "placeholder", "readonly", "scrollTo", "serverTimezoneOffset", "showClearButton", "showTodayButton", "start", "step", "strictMode", "timeFormat", "weekNumber", "weekRule", "width", "zindex"],
|
|
47
49
|
twoWay: ["value"],
|
|
48
|
-
events: ["blur", "change", "close", "created", "destroyed", "focus", "navigated", "open", "renderDayCell"]
|
|
50
|
+
events: ["blur", "change", "cleared", "close", "created", "destroyed", "focus", "navigated", "open", "renderDayCell"]
|
|
49
51
|
},
|
|
50
52
|
dropDownList: {
|
|
51
|
-
oneWay: ["actionFailureTemplate", "allowFiltering", "cssClass", "dataSource", "enabled", "fields", "filterBarPlaceholder",
|
|
53
|
+
oneWay: ["actionFailureTemplate", "allowFiltering", "cssClass", "dataSource", "enabled", "fields", "filterBarPlaceholder",
|
|
54
|
+
"filterType", "floatLabelType", "footerTemplate", "groupTemplate", "headerTemplate", "htmlAttributes", "ignoreAccent", "ignoreCase", "index", "itemTemplate", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "query", "readonly", "showClearButton", "sortOrder", "text", "valueTemplate", "width", "zindex"],
|
|
52
55
|
twoWay: ["value"],
|
|
53
56
|
events: ["actionBegin", "actionComplete", "actionFailure", "beforeOpen", "blur", "change", "close", "created", "dataBound", "destroyed", "filtering", "focus", "open", "select"]
|
|
54
57
|
},
|
|
55
58
|
dropDownTree: {
|
|
56
|
-
oneWay: ["actionFailureTemplate", "allowFiltering", "allowMultiSelection", "changeOnBlur", "cssClass", "delimiterChar", "enabled", "fields", "filterBarPlaceholder", "filterType", "floatLabelType", "footerTemplate", "headerTemplate", "htmlAttributes", "ignoreAccent", "ignoreCase", "itemTemplate", "mode", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "readonly", "selectAllText", "showCheckBox", "showClearButton", "showDropDownIcon", "showSelectAll", "sortOrder", "treeSettings", "unSelectAllText", "wrapText", "zIndex"],
|
|
59
|
+
oneWay: ["actionFailureTemplate", "allowFiltering", "allowMultiSelection", "changeOnBlur", "cssClass", "customTemplate", "delimiterChar", "enabled", "fields", "filterBarPlaceholder", "filterType", "floatLabelType", "footerTemplate", "headerTemplate", "htmlAttributes", "ignoreAccent", "ignoreCase", "itemTemplate", "mode", "noRecordsTemplate", "placeholder", "popupHeight", "popupWidth", "readonly", "selectAllText", "showCheckBox", "showClearButton", "showDropDownIcon", "showSelectAll", "sortOrder", "treeSettings", "unSelectAllText", "width", "wrapText", "zIndex"],
|
|
57
60
|
twoWay: ["text", "value"],
|
|
58
61
|
events: ["actionFailure", "beforeOpen", "blur", "change", "close", "created", "dataBound", "destroyed", "filtering", "focus", "keyPress", "open", "select"]
|
|
59
62
|
},
|
|
60
63
|
fileManager: {
|
|
61
|
-
oneWay: ["ajaxSettings", "allowDragAndDrop", "allowMultiSelection", "contextMenuSettings", "cssClass", "detailsViewSettings", "enableHtmlSanitizer", "height", "navigationPaneSettings", "path", "popupTarget", "rootAliasName", "searchSettings", "selectedItems", "showFileExtension", "showHiddenItems", "showThumbnail", "sortOrder", "toolbarSettings", "uploadSettings", "view", "width"],
|
|
64
|
+
oneWay: ["ajaxSettings", "allowDragAndDrop", "allowMultiSelection", "contextMenuSettings", "cssClass", "detailsViewSettings", "enableHtmlSanitizer", "height", "navigationPaneSettings", "path", "popupTarget", "rootAliasName", "searchSettings", "selectedItems", "showFileExtension", "showHiddenItems", "showThumbnail", "sortBy", "sortOrder", "toolbarSettings", "uploadSettings", "view", "width"],
|
|
62
65
|
twoWay: [],
|
|
63
66
|
events: ["beforeDownload", "beforeImageLoad", "beforePopupClose", "beforePopupOpen", "beforeSend", "created", "destroyed", "failure", "fileDragStart", "fileDragStop", "fileDragging", "fileDropped", "fileLoad", "fileOpen", "fileSelect", "fileSelection", "menuClick", "menuOpen", "popupClose", "popupOpen", "success", "toolbarClick", "toolbarCreate", "uploadListCreate"]
|
|
64
67
|
},
|
|
65
68
|
grid: {
|
|
66
|
-
oneWay: ["aggregates", "allowExcelExport", "disabled", "allowFiltering", "allowGrouping", "allowMultiSorting", "allowPaging", "allowPdfExport",
|
|
67
|
-
"allowReordering", "allowResizing", "allowRowDragAndDrop", "allowSelection", "allowSorting", "allowTextWrap", "childGrid", "clipboardModule",
|
|
68
|
-
"columnMenuItems", "columnMenuModule", "columnQueryMode", "columns", "contextMenuItems", "contextMenuModule", "dataSource",
|
|
69
|
-
"detailTemplate", "editModule", "editSettings", "enableAltRow", "enableAutoFill", "enableColumnVirtualization", "enableHover", "enableVirtualiziation",
|
|
70
|
-
"excelExportModule", "filterModule", "filterSettings", "frozenColumns", "frozenRows", "gridLines", "groupModule", "groupSettings", "height", "hierarchyPrintMode", "keyboardModule",
|
|
71
|
-
"pageSettings", "pagerModule", "pagerTemplate", "pdfExportModule", "printMode", "printModule", "query", "queryString", "reorderModule", "rowDragAndDropModule", "rowDropSettings", "rowHeight",
|
|
69
|
+
oneWay: ["aggregates", "allowExcelExport", "disabled", "allowFiltering", "allowGrouping", "allowKeyboard", "allowMultiSorting", "allowPaging", "allowPdfExport",
|
|
70
|
+
"allowReordering", "allowResizing", "allowRowDragAndDrop", "allowSelection", "allowSorting", "allowTextWrap", "childGrid", "clipMode", "clipboardModule", "columnChooserSettings",
|
|
71
|
+
"columnMenuItems", "columnMenuModule", "columnQueryMode", "columns", "contextMenuItems", "contextMenuModule", "cssClass", "currentAction", "currentViewData", "dataSource",
|
|
72
|
+
"detailTemplate", "editModule", "editSettings", "ej2StatePersistenceVersion", "enableAdaptiveUI", "enableAltRow", "enableAutoFill", "enableColumnVirtualization", "enableHeaderFocus", "enableHover", "enableImmutableMode", "enableInfinitScrolling", "enableStickyHeader", "enableVirtualMaskRow", "enableVirtualiziation",
|
|
73
|
+
"excelExportModule", "filterModule", "filterSettings", "frozenColumns", "frozenRows", "gridLines", "groupModule", "groupSettings", "height", "hierarchyPrintMode", "infiniteScrollModule", "infiniteScrollSettings", "keyboardModule", "loadingIndicator",
|
|
74
|
+
"pageSettings", "pagerModule", "pagerTemplate", "parentDetails", "pdfExportModule", "printMode", "printModule", "query", "queryString", "reorderModule", "resizeSettings", "rowDragAndDropModule", "rowDropSettings", "rowHeight", "rowRenderingMode",
|
|
72
75
|
"rowTemplate", "scrollModule", "searchModule", "searchSettings", "selectionModule", "selectionSettings", "showColumnChooser", "showColumnMenu", "showHider", "sortModule",
|
|
73
76
|
"sortSettings", "textWrapSettings", "toolbar", "toolbarModule", "toolbarTemplate", "width"],
|
|
74
77
|
fromView: [
|
|
75
78
|
"currentViewData"
|
|
76
79
|
],
|
|
77
80
|
twoWay: ["selectedRowIndex"],
|
|
78
|
-
events: ["
|
|
81
|
+
events: ["actionBegin", "actionComplete", "actionFailure", "batchAdd", "batchCancel", "batchDelete", "beforeAutoFill", "beforeBatchAdd", "beforeBatchDelete", "beforeBatchSave", "beforeCopy", "beforeDataBound", "beforeExcelExport", "beforeOpenAdaptiveDialog", "beforeOpenColumnChooser", "beforePaste", "beforePdfExport", "beforePrint", "beginEdit", "cellDeselected", "cellDeselecting", "cellEdit", "cellSave", "cellSaved", "cellSelected", "cellSelecting", "checkBoxChange", "columnDataStateChange", "columnDeselected", "columnDeselecting", "columnDrag", "columnDragStart", "columnDrop", "columnMenuClick", "columnMenuOpen", "columnSelected", "columnSelecting", "commandClick", "contextMenuClick", "contextMenuOpen", "created", "dataBound", "dataSourceChanged", "dataStateChange", "destroyed", "detailDataBound", "excelAggregateQueryCellInfo", "excelExportComplete", "excelHeaderQueryCellInfo", "excelQueryCellInfo", "exportDetailDataBound", "exporeGroupCaption", "headerCellInfo", "keyPressed", "lazyLoadGroupCollapse", "lazyLoadGroupExpand", "load", "pdfAggregateQueryCellInfo", "pdfExportComplete", "pdfHeaderQueryCellInfo", "pdfQueryCellInfo", "printComplete", "queryCellInfo", "recordClick", "recordDoubleClick", "resizeStart", "resizeStop", "resizing", "rowDataBound", "rowDeselected", "rowDeselecting", "rowDrag", "rowDragStart", "rowDragStartHelper", "rowDrop", "rowSelected", "rowSelecting", "toolbarClick"]
|
|
79
82
|
},
|
|
80
83
|
listView: {
|
|
81
|
-
oneWay: ["animation", "checkBoxPosition", "cssClass", "dataSource", "enable", "
|
|
84
|
+
oneWay: ["animation", "checkBoxPosition", "cssClass", "dataSource", "enable", "enableHtmlSanitizer", "enableVirtualization", "fields", "groupTemplate", "headerTemplate", "headerTitle", "height", "htmlAttributes", "query", "showCheckBox", "showHeader", "showIcon", "sortOrder", "template", "width"],
|
|
82
85
|
events: ["actionBegin", "actionComplete", "actionFailure", "select"]
|
|
83
86
|
},
|
|
84
87
|
maskedTextBox: {
|
|
85
88
|
oneWay: ["cssClass", "customCharacters", "enabled", "floatLabelType", "htmlAttributes", "mask", "placeholder", "promptChar", "showClearButton", "width"],
|
|
86
89
|
twoWay: ["value"],
|
|
87
|
-
events: ["blur", "change", "created", "destroyed", "focus"
|
|
90
|
+
events: ["blur", "change", "created", "destroyed", "focus"]
|
|
91
|
+
},
|
|
92
|
+
multiSelect: {
|
|
93
|
+
oneWay: ["actionFailureTemplate",
|
|
94
|
+
"addTagOnBlur", "allowCustomValue", "allowFiltering", "changeOnBlur", "closePopupOnSelect", "cssClass", "dataSource", "delimiterChar", "enableGroupCheckBox", "enableHtmlSanitizer", "enableSelectionOrder", "enabled", "fields", "filterBarPlaceholder", "filterType", "floatLabelType", "footerTemplate", "groupTemplate", "headerTemplate", "hideSelectedItem", "htmlAttributes", "ignoreAccent", "ignoreCase", "itemTemplate", "locale", "maximumSelectionLength", "mode", "noRecordsTemplate", "openOnClick", "placeholder", "popupHeight", "popupWidth", "query", "readonly", "selectAllText", "showClearButton", "showDropDownIcon", "showSelectAll", "sortOrder", "text", "unSelectAllText", "valueTemplate", "width", "zIndex"],
|
|
95
|
+
twoWay: ["value"],
|
|
96
|
+
events: ["actionBegin", "actionComplete", "actionFailure", "beforeOpen",
|
|
97
|
+
"beforeSelectAll", "blur", "change", "chipSelection", "close", "created", "customValueSelection", "dataBound", "destroyed", "filtering", "focus", "open", "removed", "removing", "select", "selectedAll", "tagging"]
|
|
88
98
|
},
|
|
89
99
|
numericTextBox: {
|
|
90
|
-
oneWay: ["cssClass", "currency", "decimals", "enabled", "floatLabelType", "format", "htmlAttributes", "max", "min", "placeholder", "readonly", "
|
|
100
|
+
oneWay: ["cssClass", "currency", "decimals", "enabled", "floatLabelType", "format", "htmlAttributes", "max", "min", "placeholder", "readonly", "showClearButton", "showSpinButton", "step", "strictMode", "validateDecimalOnType", "width"],
|
|
91
101
|
twoWay: ["value"],
|
|
92
102
|
events: ["blur", "change", "created", "destroyed", "focus"]
|
|
93
103
|
},
|
|
94
104
|
pager: {
|
|
95
|
-
|
|
105
|
+
oneWay: ["cssClass", "customText", "enableExternalMessage", "enablePagerMessage", "enableQueryString", "externalMessage",
|
|
106
|
+
"pageCount", "pageSize", "pageSizes",
|
|
107
|
+
"template"],
|
|
108
|
+
twoWay: ["currentPage", "totalRecordsCount"],
|
|
96
109
|
events: ["click", "created", "dropDownChanged"]
|
|
97
110
|
},
|
|
98
111
|
progressButton: {
|
|
99
|
-
oneWay: ["animationSettings", "content", "cssClass", "disabled", "duration", "enableProgress", "iconCss", "iconPosition", "isPrimary", "isToggle", "spinSettings"],
|
|
112
|
+
oneWay: ["animationSettings", "content", "cssClass", "disabled", "duration", "enableHtmlSanitizer", "enableProgress", "iconCss", "iconPosition", "isPrimary", "isToggle", "spinSettings"],
|
|
100
113
|
events: ["begin", "created", "end", "fail", "progress"]
|
|
101
114
|
},
|
|
102
115
|
radio: {
|
|
103
|
-
oneWay: ["checked", "cssClass", "disabled", "label", "labelPosition", "name", "value"],
|
|
116
|
+
oneWay: ["checked", "cssClass", "disabled", "enableHtmlSanitizer", "htmlAttributes", "label", "labelPosition", "name", "value"],
|
|
104
117
|
events: ["change", "created"]
|
|
105
118
|
},
|
|
119
|
+
schedule: {
|
|
120
|
+
oneWay: ["agendaDaysCount", "allowDragAndDrop", "allowInline", "allowKeyboardInteraction", "allowMultiCellSelection", "allowMultiDrag", "allowMultiRowSelection", "allowResizing",
|
|
121
|
+
"allowSwiping", "calendarMode", "cellHeaderTemplate", "cellTemplate", "cssClass", "currentView", "dateFormat", "dateHeaderTemplate",
|
|
122
|
+
"dayHeaderTemplate",
|
|
123
|
+
"enableAdaptiveUI",
|
|
124
|
+
"enableAllDayScroll", "editorTemplate", "enableRecurrenceValidation", "endHour", "eventDragArea", "eventSettings", "firstDayOfWeek", "firstMonthOfYear", "group", "headerIndentTemplate", "headerRows", "height", "hideEmptyAgendaDays", "maxDate", "minDate", "monthHeaderTemplate", "monthsCount", "quickInfoOnSelectionEnd", "quickInfoTemplates", "readonly", "resourceHeaderTemplate", "resources", "rowAutoHeight", "selectedDate", "showHeaderBar", "showQuickInfo", "showTimeIndicator", "showWeekNumber", "showWeekend", "startHour", "timeFormat", "timeScale", "timezone", "timezoneDataSource", "views", "weekRule", "width", "workDays", "workHours"],
|
|
125
|
+
events: ["actionBegin", "actionComplete", "actionFailure", "cellClick", "cellDoubleClick", "created", "dataBinding", "dataBound", "destroyed", "drag", "dragStart", "dragStop", "eventClick", "eventRendered", "hover", "moreEventsClick", "navigating", "popupClose", "popupOpen", "renderCell", "resizeStart", "resizeStop", "resizing", "select"]
|
|
126
|
+
},
|
|
106
127
|
sidebar: {
|
|
107
128
|
oneWay: ["animate", "closeOnDocumentClick", "dockSize", "enableDock", "enableGestures", "isOpen", "mediaQuery", "position", "showBackdrop", "target", "type", "width", "zIndex"],
|
|
108
129
|
events: ["change", "close", "created", "destroyed", "open"]
|
|
109
130
|
},
|
|
110
131
|
slider: {
|
|
111
|
-
oneWay: ["cssClass", "customValues", "enableAnimation", "enabled", "limits", "max", "min", "orientation", "readonly", "showButtons", "step", "ticks", "tooltip", "type"],
|
|
132
|
+
oneWay: ["colorRange", "cssClass", "customValues", "enableAnimation", "enableHtmlSanitizer", "enabled", "limits", "max", "min", "orientation", "readonly", "showButtons", "step", "ticks", "tooltip", "type", "width"],
|
|
112
133
|
twoWay: ["value"],
|
|
113
134
|
events: ["change", "changed", "created", "renderedTicks", "renderingTicks", "tooltipChange"]
|
|
114
135
|
},
|
|
115
136
|
splitter: {
|
|
116
|
-
oneWay: ["cssClass", "enableHtmlSanitizer",
|
|
137
|
+
oneWay: ["cssClass", "enableHtmlSanitizer",
|
|
138
|
+
"enableReversePanes", "enabled", "height", "orientation", "paneSettings", "separatorSize", "width"],
|
|
117
139
|
events: ["beforeCollapse", "beforeExpand", "beforeSanitizeHtml", "collapsed", "created", "expanded", "resizeStart", "resizeStop", "resizing"]
|
|
118
140
|
},
|
|
119
141
|
switch: {
|
|
120
|
-
oneWay: ["cssClass", "disabled",
|
|
142
|
+
oneWay: ["cssClass", "disabled", "name", "offLabel", "onLabel"],
|
|
121
143
|
twoWay: ["value", "checked"],
|
|
122
144
|
events: ["change", "created"]
|
|
123
145
|
},
|
|
124
146
|
textBox: {
|
|
125
|
-
oneWay: [
|
|
147
|
+
oneWay: [
|
|
148
|
+
"autocomplete",
|
|
149
|
+
"cssClass", "enabled", "floatLabelType", "htmlAttributes", "multiline", "placeholder", "readonly", "showClearButton", "type"
|
|
150
|
+
],
|
|
126
151
|
twoWay: ["value"],
|
|
127
152
|
events: ["blur", "change", "created", "destroyed", "focus", "input"]
|
|
128
153
|
},
|
|
129
154
|
timePicker: {
|
|
130
|
-
oneWay: ["allowEdit", "cssClass", "enabled", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "placeholder", "readonly", "scrollTo", "showClearButton", "step", "strictMode", "width", "zIndex"],
|
|
155
|
+
oneWay: ["allowEdit", "cssClass", "enableMask", "enabled", "floatLabelType", "format", "htmlAttributes", "keyConfigs", "maskPlaceholder", "openOnFocus", "placeholder", "readonly", "scrollTo", "showClearButton", "step", "strictMode", "width", "zIndex"],
|
|
131
156
|
twoWay: ["value", "min", "max"],
|
|
132
|
-
events: ["blur", "change", "close", "created", "destroyed", "focus", "itemRender", "open"]
|
|
157
|
+
events: ["blur", "change", "cleared", "close", "created", "destroyed", "focus", "itemRender", "open"]
|
|
133
158
|
},
|
|
134
159
|
treeView: {
|
|
135
|
-
oneWay: ["allowDragAndDrop", "allowEditing", "allowMultiSelection",
|
|
136
|
-
|
|
137
|
-
|
|
160
|
+
oneWay: ["allowDragAndDrop", "allowEditing", "allowMultiSelection",
|
|
161
|
+
"allowTextWrap", "animation", "autoCheck", "cssClass",
|
|
162
|
+
"disabled", "dragArea",
|
|
163
|
+
"enableHtmlSanitizer", "expandOn", "fields",
|
|
164
|
+
"fullRowNavigable", "fullRowSelect", "loadOnDemand", "nodeTemplate", "showCheckBox", "sortOrder"],
|
|
165
|
+
twoWay: ["selectedNodes", "checkedNodes",
|
|
166
|
+
"expandedNodes"],
|
|
167
|
+
events: ["actionFailure", "created", "dataBound", "dataSourceChanged", "destroyed", "drawNode", "keyPress", "nodeChecked", "nodeChecking", "nodeClicked", "nodeCollapsed", "nodeCollapsing", "nodeDragStart", "nodeDragStop", "nodeDragging", "nodeDropped", "nodeEdited", "nodeEditing", "nodeExpanded", "nodeExpanding", "nodeSelected", "nodeSelecting"]
|
|
138
168
|
},
|
|
139
169
|
uploader: {
|
|
140
|
-
oneWay: ["allowedExtensions", "asyncSettings", "autoUpload", "buttons", "cssClass", "directoryUpload", "dropArea",
|
|
141
|
-
|
|
170
|
+
oneWay: ["allowedExtensions", "asyncSettings", "autoUpload", "buttons", "cssClass", "directoryUpload", "dropArea",
|
|
171
|
+
"dropEffect", "enabled", "files", "htmlAttributes", "maxFileSize", "minFileSize", "multiple", "sequentialUpload", "showFileList", "template", "formData"],
|
|
172
|
+
events: ["actionComplete",
|
|
173
|
+
"beforeRemove", "beforeUpload", "canceling", "change", "chunkFailure", "chunkSuccess", "chunkUploading", "clearing", "created", "failure", "fileListRendering", "pausing", "progress", "removing", "rendering", "resuming", "selected", "success", "uploading"]
|
|
142
174
|
}
|
|
143
175
|
};
|
|
@@ -2,12 +2,13 @@ import { Button, ButtonModel } from '@syncfusion/ej2-buttons';
|
|
|
2
2
|
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
3
3
|
export declare class Ej2Button extends SyncfusionWrapper<Button, ButtonModel> {
|
|
4
4
|
clickEvent: Event;
|
|
5
|
+
_onClick: (event: Event) => void;
|
|
5
6
|
protected onWidgetCreated(): void;
|
|
6
7
|
protected onWrapperCreated(): void;
|
|
7
8
|
protected syncfusionWidgetType: typeof Button;
|
|
8
|
-
_onClick(event: Event): void;
|
|
9
9
|
refresh(): void;
|
|
10
10
|
focusIn(): void;
|
|
11
11
|
click(): void;
|
|
12
12
|
dataBind(): void;
|
|
13
|
+
detached(): void;
|
|
13
14
|
}
|
|
@@ -15,19 +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() {
|
|
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);
|
|
21
28
|
}
|
|
22
29
|
onWrapperCreated() {
|
|
23
30
|
this.clickEvent = new CustomEvent("on-click", {
|
|
24
31
|
bubbles: true
|
|
25
32
|
});
|
|
26
33
|
}
|
|
27
|
-
_onClick(event) {
|
|
28
|
-
this.element.dispatchEvent(this.clickEvent);
|
|
29
|
-
event.stopPropagation();
|
|
30
|
-
}
|
|
31
34
|
refresh() {
|
|
32
35
|
this.widget.refresh();
|
|
33
36
|
}
|
|
@@ -40,10 +43,13 @@ let Ej2Button = class Ej2Button extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
|
40
43
|
dataBind() {
|
|
41
44
|
this.widget.dataBind();
|
|
42
45
|
}
|
|
46
|
+
detached() {
|
|
47
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
48
|
+
}
|
|
43
49
|
};
|
|
44
50
|
Ej2Button = __decorate([
|
|
45
51
|
decorator_1.generateBindables("button"),
|
|
46
|
-
aurelia_framework_1.inlineView('<template><button element.ref="widgetElement"
|
|
52
|
+
aurelia_framework_1.inlineView('<template><button element.ref="widgetElement"><slot></slot></button></template>'),
|
|
47
53
|
aurelia_framework_1.customElement('ej2-button')
|
|
48
54
|
], Ej2Button);
|
|
49
55
|
exports.Ej2Button = 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);
|
|
@@ -19,6 +19,7 @@ let Ej2Checkbox = class Ej2Checkbox extends syncfusionWrapper_1.SyncfusionWrappe
|
|
|
19
19
|
this.checkedSubscription = null;
|
|
20
20
|
}
|
|
21
21
|
onWidgetCreated() {
|
|
22
|
+
this.widget.element.addEventListener("click", this._onClick.bind(this));
|
|
22
23
|
}
|
|
23
24
|
onWrapperCreated() {
|
|
24
25
|
}
|
|
@@ -43,13 +44,15 @@ let Ej2Checkbox = class Ej2Checkbox extends syncfusionWrapper_1.SyncfusionWrappe
|
|
|
43
44
|
}
|
|
44
45
|
detached() {
|
|
45
46
|
this.checkedSubscription.dispose();
|
|
47
|
+
this.widget.element.removeEventListener("click", this._onClick);
|
|
46
48
|
super.detached();
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
Ej2Checkbox = __decorate([
|
|
50
52
|
aurelia_framework_1.autoinject,
|
|
53
|
+
aurelia_framework_1.transient(),
|
|
51
54
|
decorator_1.generateBindables("checkbox"),
|
|
52
55
|
aurelia_framework_1.customElement("ej2-checkbox"),
|
|
53
|
-
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" type="checkbox"
|
|
56
|
+
aurelia_framework_1.inlineView(`<template><input element.ref="widgetElement" type="checkbox" /></template>`)
|
|
54
57
|
], Ej2Checkbox);
|
|
55
58
|
exports.Ej2Checkbox = Ej2Checkbox;
|