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
package/README.md
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
# `aurelia-syncfusion-ej-2-bridge`
|
|
2
|
-
|
|
3
|
-
This is an early release and is not recommended for use
|
|
4
|
-
|
|
5
|
-
# Supported controls
|
|
6
|
-
* Accoridon
|
|
7
|
-
* Auto Complete
|
|
8
|
-
* Button
|
|
9
|
-
* Checkbox
|
|
10
|
-
* Combobox
|
|
11
|
-
* Dashboard Layout
|
|
12
|
-
* Date Picker
|
|
13
|
-
* Date Time Picker
|
|
14
|
-
* Dropdown List
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
1
|
+
# `aurelia-syncfusion-ej-2-bridge`
|
|
2
|
+
|
|
3
|
+
This is an early release and is not recommended for use
|
|
4
|
+
|
|
5
|
+
# Supported controls
|
|
6
|
+
* Accoridon
|
|
7
|
+
* Auto Complete
|
|
8
|
+
* Button
|
|
9
|
+
* Checkbox
|
|
10
|
+
* Combobox
|
|
11
|
+
* Dashboard Layout
|
|
12
|
+
* Date Picker
|
|
13
|
+
* Date Time Picker
|
|
14
|
+
* Dropdown List
|
|
15
|
+
* Dropdown Tree
|
|
16
|
+
* File Manager
|
|
17
|
+
* Grid
|
|
18
|
+
* List View
|
|
19
|
+
* Masked Textbox
|
|
20
|
+
* Numeric Textbox
|
|
21
|
+
* Pager
|
|
22
|
+
* Progress Button
|
|
23
|
+
* Radio
|
|
24
|
+
* Schedule
|
|
25
|
+
* Sidebar
|
|
26
|
+
* Slider
|
|
27
|
+
* Splitter
|
|
28
|
+
* Switch
|
|
29
|
+
* Textbox
|
|
30
|
+
* Time Picker
|
|
31
|
+
* Tree View
|
|
32
|
+
* Uploader
|
|
@@ -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;
|
|
@@ -9,6 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ExcludedProperties = exports.ControlBase = void 0;
|
|
12
13
|
const aurelia_task_queue_1 = require("aurelia-task-queue");
|
|
13
14
|
const aurelia_framework_1 = require("aurelia-framework");
|
|
14
15
|
const controlContainer_1 = require("./controlContainer");
|
|
@@ -23,19 +24,21 @@ let ControlBase = class ControlBase {
|
|
|
23
24
|
this.eventAggregator = eventAggregator;
|
|
24
25
|
this.element = element;
|
|
25
26
|
this.eModel = null;
|
|
27
|
+
this._eModel = null;
|
|
26
28
|
this.widgetElement = null;
|
|
27
29
|
this.widget = null;
|
|
28
30
|
this.bindingContext = null;
|
|
29
31
|
this.logName = "";
|
|
30
32
|
this.propertyPriority = true;
|
|
31
33
|
this.subscriptions = [];
|
|
32
|
-
this.eModel = {};
|
|
33
34
|
}
|
|
34
35
|
get controlType() {
|
|
35
36
|
throw "syncfusionControlType is not set";
|
|
36
37
|
}
|
|
37
38
|
onBind() {
|
|
38
39
|
}
|
|
40
|
+
onAttached() {
|
|
41
|
+
}
|
|
39
42
|
onCreateControl() {
|
|
40
43
|
throw "onCreateControl is not implemented";
|
|
41
44
|
}
|
|
@@ -54,6 +57,7 @@ let ControlBase = class ControlBase {
|
|
|
54
57
|
bind(context) {
|
|
55
58
|
this.logName = this.controlType.name;
|
|
56
59
|
this.bindingContext = context;
|
|
60
|
+
this._eModel = Object.assign({}, this.eModel);
|
|
57
61
|
this.setInitialBindings();
|
|
58
62
|
this.onCreateControl();
|
|
59
63
|
this.onBind();
|
|
@@ -64,8 +68,8 @@ let ControlBase = class ControlBase {
|
|
|
64
68
|
_control.bindableProperties.forEach((property) => {
|
|
65
69
|
if (!property.startsWith(constants_1.constants.eventPrefix)) {
|
|
66
70
|
let modelProperty = property.substr(bindablePrefixLength);
|
|
67
|
-
if (this[property] !== undefined && (this.propertyPriority || this.
|
|
68
|
-
this.
|
|
71
|
+
if (this[property] !== undefined && (this.propertyPriority || this._eModel[modelProperty] === undefined)) {
|
|
72
|
+
this._eModel[modelProperty] = this[property];
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
});
|
|
@@ -123,15 +127,21 @@ let ControlBase = class ControlBase {
|
|
|
123
127
|
}
|
|
124
128
|
attached() {
|
|
125
129
|
this.appendWidget();
|
|
130
|
+
this.onAttached();
|
|
126
131
|
}
|
|
127
132
|
appendWidget() {
|
|
128
133
|
this.widget.appendTo(this.widgetElement);
|
|
129
134
|
}
|
|
130
135
|
detached() {
|
|
131
|
-
this.subscriptions.forEach((subscription) => subscription
|
|
136
|
+
this.subscriptions.forEach((subscription) => { if (subscription) {
|
|
137
|
+
subscription.dispose();
|
|
138
|
+
} });
|
|
132
139
|
if (this.widget.destroy) {
|
|
133
140
|
this.widget.destroy();
|
|
134
141
|
}
|
|
142
|
+
this.widget = null;
|
|
143
|
+
this._eModel = null;
|
|
144
|
+
this.widgetElement = null;
|
|
135
145
|
}
|
|
136
146
|
};
|
|
137
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncfusionWrapper = void 0;
|
|
3
4
|
const controlBase_1 = require("./controlBase");
|
|
4
5
|
class SyncfusionWrapper extends controlBase_1.ControlBase {
|
|
5
6
|
constructor() {
|
|
@@ -8,17 +9,26 @@ class SyncfusionWrapper extends controlBase_1.ControlBase {
|
|
|
8
9
|
}
|
|
9
10
|
onCreateControl() {
|
|
10
11
|
this.onBeforeWidgetInstantiation();
|
|
11
|
-
this.widget = new this.syncfusionWidgetType(this.
|
|
12
|
+
this.widget = new this.syncfusionWidgetType(this._eModel);
|
|
12
13
|
this.widget.created = () => { this.onWidgetCreated(); };
|
|
13
14
|
this.onWrapperCreated();
|
|
14
15
|
this.createControlEvents(this.getBindables());
|
|
15
16
|
}
|
|
16
17
|
recreate() {
|
|
17
|
-
this.
|
|
18
|
+
this.onRecreate();
|
|
18
19
|
this.widget.destroy();
|
|
20
|
+
this.widget = null;
|
|
21
|
+
this.recreating();
|
|
19
22
|
this.setInitialBindings();
|
|
20
23
|
this.onCreateControl();
|
|
21
24
|
this.appendWidget();
|
|
25
|
+
this.recreated();
|
|
26
|
+
}
|
|
27
|
+
onRecreate() {
|
|
28
|
+
}
|
|
29
|
+
recreating() {
|
|
30
|
+
}
|
|
31
|
+
recreated() {
|
|
22
32
|
}
|
|
23
33
|
refresh() {
|
|
24
34
|
this.widget.refresh();
|
|
@@ -5,10 +5,6 @@ export declare class ConfigBuilder {
|
|
|
5
5
|
useDefaults(): ConfigBuilder;
|
|
6
6
|
useTheme(theme: "material" | "bootstrap" | "bootstrap4" | "fabric" | "highcontrast"): this;
|
|
7
7
|
materialTheme(): this;
|
|
8
|
-
fabricTheme(): this;
|
|
9
|
-
bootstrapTheme(): this;
|
|
10
|
-
bootstrap4Theme(): this;
|
|
11
|
-
highcontrastTheme(): this;
|
|
12
8
|
withoutGlobalResources(): ConfigBuilder;
|
|
13
9
|
ej2Accordion(): ConfigBuilder;
|
|
14
10
|
ej2AutoComplete(): ConfigBuilder;
|
|
@@ -21,14 +17,20 @@ export declare class ConfigBuilder {
|
|
|
21
17
|
ej2DateRangePicker(): ConfigBuilder;
|
|
22
18
|
ej2DateTimePicker(): ConfigBuilder;
|
|
23
19
|
ej2DropDownList(): ConfigBuilder;
|
|
20
|
+
ej2DropDownTree(): ConfigBuilder;
|
|
21
|
+
ej2FileManager(): ConfigBuilder;
|
|
24
22
|
ej2Grid(): ConfigBuilder;
|
|
25
23
|
ej2ListView(): ConfigBuilder;
|
|
26
24
|
ej2MaskedTextBox(): ConfigBuilder;
|
|
25
|
+
ej2MultiSelect(): ConfigBuilder;
|
|
27
26
|
ej2NumericTextBox(): ConfigBuilder;
|
|
28
27
|
ej2Pager(): ConfigBuilder;
|
|
29
28
|
ej2ProgressButton(): ConfigBuilder;
|
|
30
29
|
ej2Radio(): ConfigBuilder;
|
|
30
|
+
ej2Schedule(): ConfigBuilder;
|
|
31
|
+
ej2Sidebar(): ConfigBuilder;
|
|
31
32
|
ej2Slider(): ConfigBuilder;
|
|
33
|
+
ej2Splitter(): ConfigBuilder;
|
|
32
34
|
ej2Switch(): ConfigBuilder;
|
|
33
35
|
ej2TextBox(): ConfigBuilder;
|
|
34
36
|
ej2TimePicker(): ConfigBuilder;
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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");
|
|
6
|
+
const ej2_fileManager_1 = require("./widgets/fileManager/ej2-fileManager");
|
|
7
|
+
const ej2_sidebar_1 = require("./widgets/sidebar/ej2-sidebar");
|
|
8
|
+
const ej2_DatePicker_1 = require("./widgets/datePicker/ej2-DatePicker");
|
|
3
9
|
const aurelia_pal_1 = require("aurelia-pal");
|
|
10
|
+
const ej2_textBox_1 = require("./widgets/textBox/ej2-textBox");
|
|
11
|
+
const ej2_dateRangePicker_1 = require("./widgets/dateRangePicker/ej2-dateRangePicker");
|
|
12
|
+
const ej2_dateTimePicker_1 = require("./widgets/dateTimePicker/ej2-dateTimePicker");
|
|
13
|
+
const ej2_dashboardLayout_1 = require("./widgets/dashboardLayout/ej2-dashboardLayout");
|
|
14
|
+
const ej2_comboBox_1 = require("./widgets/comboBox/ej2-comboBox");
|
|
15
|
+
const ej2_checkbox_list_1 = require("./widgets/checkbox/ej2-checkbox-list");
|
|
16
|
+
const ej2_checkbox_1 = require("./widgets/checkbox/ej2-checkbox");
|
|
17
|
+
const ej2_button_1 = require("./widgets/button/ej2-button");
|
|
18
|
+
const ej2_autoComplete_1 = require("./widgets/autoComplete/ej2-autoComplete");
|
|
19
|
+
const ej2_accordion_1 = require("./widgets/accordion/ej2-accordion");
|
|
20
|
+
const ej2_dropDownList_1 = require("./widgets/dropDownList/ej2-dropDownList");
|
|
21
|
+
const ej2_grid_1 = require("./widgets/grid/ej2-grid");
|
|
22
|
+
const ej2_listView_1 = require("./widgets/listView/ej2-listView");
|
|
23
|
+
const ej2_maskedTextBox_1 = require("./widgets/maskedTextBox/ej2-maskedTextBox");
|
|
24
|
+
const ej2_numericTextBox_1 = require("./widgets/numericTextBox/ej2-numericTextBox");
|
|
25
|
+
const ej2_pager_1 = require("./widgets/pager/ej2-pager");
|
|
26
|
+
const ej2_progress_button_1 = require("./widgets/progressButton/ej2-progress-button");
|
|
27
|
+
const ej2_radio_1 = require("./widgets/radio/ej2-radio");
|
|
28
|
+
const ej2_slider_1 = require("./widgets/slider/ej2-slider");
|
|
29
|
+
const ej2_switch_1 = require("./widgets/switch/ej2-switch");
|
|
30
|
+
const ej2_timePicker_1 = require("./widgets/timePicker/ej2-timePicker");
|
|
31
|
+
const ej2_treeView_1 = require("./widgets/treeView/ej2-treeView");
|
|
32
|
+
const ej2_uploader_1 = require("./widgets/uploader/ej2-uploader");
|
|
33
|
+
const ej2_splitter_1 = require("./widgets/splitter/ej2-splitter");
|
|
34
|
+
const ej2_dropDownTree_1 = require("./widgets/dropDownTree/ej2-dropDownTree");
|
|
4
35
|
class ConfigBuilder {
|
|
5
36
|
constructor() {
|
|
6
37
|
this.resources = [];
|
|
@@ -19,14 +50,20 @@ class ConfigBuilder {
|
|
|
19
50
|
.ej2DateTimePicker()
|
|
20
51
|
.ej2DashboardLayout()
|
|
21
52
|
.ej2DropDownList()
|
|
53
|
+
.ej2DropDownTree()
|
|
54
|
+
.ej2FileManager()
|
|
22
55
|
.ej2Grid()
|
|
23
56
|
.ej2ListView()
|
|
24
57
|
.ej2MaskedTextBox()
|
|
58
|
+
.ej2MultiSelect()
|
|
25
59
|
.ej2NumericTextBox()
|
|
26
60
|
.ej2Pager()
|
|
27
61
|
.ej2ProgressButton()
|
|
28
62
|
.ej2Radio()
|
|
63
|
+
.ej2Schedule()
|
|
64
|
+
.ej2Sidebar()
|
|
29
65
|
.ej2Slider()
|
|
66
|
+
.ej2Splitter()
|
|
30
67
|
.ej2Switch()
|
|
31
68
|
.ej2TextBox()
|
|
32
69
|
.ej2TimePicker()
|
|
@@ -41,14 +78,6 @@ class ConfigBuilder {
|
|
|
41
78
|
switch (theme) {
|
|
42
79
|
case "material":
|
|
43
80
|
return this.materialTheme();
|
|
44
|
-
case "fabric":
|
|
45
|
-
return this.fabricTheme();
|
|
46
|
-
case "bootstrap":
|
|
47
|
-
return this.bootstrapTheme();
|
|
48
|
-
case "bootstrap4":
|
|
49
|
-
return this.bootstrap4Theme();
|
|
50
|
-
case "highcontrast":
|
|
51
|
-
return this.highcontrastTheme();
|
|
52
81
|
default:
|
|
53
82
|
return this;
|
|
54
83
|
}
|
|
@@ -57,120 +86,128 @@ class ConfigBuilder {
|
|
|
57
86
|
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/material.css"));
|
|
58
87
|
return this;
|
|
59
88
|
}
|
|
60
|
-
fabricTheme() {
|
|
61
|
-
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/fabric.css"));
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
bootstrapTheme() {
|
|
65
|
-
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/bootstrap.css"));
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
bootstrap4Theme() {
|
|
69
|
-
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/bootstrap4.css"));
|
|
70
|
-
return this;
|
|
71
|
-
}
|
|
72
|
-
highcontrastTheme() {
|
|
73
|
-
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/highcontrast.css"));
|
|
74
|
-
return this;
|
|
75
|
-
}
|
|
76
89
|
withoutGlobalResources() {
|
|
77
90
|
this.useGlobalResources = false;
|
|
78
91
|
return this;
|
|
79
92
|
}
|
|
80
93
|
ej2Accordion() {
|
|
81
|
-
this.resources.push(
|
|
94
|
+
this.resources.push(ej2_accordion_1.Ej2Accordion);
|
|
82
95
|
return this;
|
|
83
96
|
}
|
|
84
97
|
ej2AutoComplete() {
|
|
85
|
-
this.resources.push(
|
|
98
|
+
this.resources.push(ej2_autoComplete_1.Ej2AutoComplete);
|
|
86
99
|
return this;
|
|
87
100
|
}
|
|
88
101
|
ej2Button() {
|
|
89
|
-
this.resources.push(
|
|
102
|
+
this.resources.push(ej2_button_1.Ej2Button);
|
|
90
103
|
return this;
|
|
91
104
|
}
|
|
92
105
|
ej2Checkbox() {
|
|
93
|
-
this.resources.push(
|
|
106
|
+
this.resources.push(ej2_checkbox_1.Ej2Checkbox);
|
|
94
107
|
return this;
|
|
95
108
|
}
|
|
96
109
|
ej2CheckboxList() {
|
|
97
|
-
this.resources.push(
|
|
110
|
+
this.resources.push(ej2_checkbox_list_1.Ej2CheckboxList);
|
|
98
111
|
return this;
|
|
99
112
|
}
|
|
100
113
|
ej2ComboBox() {
|
|
101
|
-
this.resources.push(
|
|
114
|
+
this.resources.push(ej2_comboBox_1.Ej2ComboBox);
|
|
102
115
|
return this;
|
|
103
116
|
}
|
|
104
117
|
ej2DashboardLayout() {
|
|
105
|
-
this.resources.push(
|
|
118
|
+
this.resources.push(ej2_dashboardLayout_1.Ej2DashboardLayout);
|
|
106
119
|
return this;
|
|
107
120
|
}
|
|
108
121
|
ej2DatePicker() {
|
|
109
|
-
this.resources.push(
|
|
122
|
+
this.resources.push(ej2_DatePicker_1.Ej2DatePicker);
|
|
110
123
|
return this;
|
|
111
124
|
}
|
|
112
125
|
ej2DateRangePicker() {
|
|
113
|
-
this.resources.push(
|
|
126
|
+
this.resources.push(ej2_dateRangePicker_1.Ej2DateRangePicker);
|
|
114
127
|
return this;
|
|
115
128
|
}
|
|
116
129
|
ej2DateTimePicker() {
|
|
117
|
-
this.resources.push(
|
|
130
|
+
this.resources.push(ej2_dateTimePicker_1.Ej2DateTimePicker);
|
|
118
131
|
return this;
|
|
119
132
|
}
|
|
120
133
|
ej2DropDownList() {
|
|
121
|
-
this.resources.push(
|
|
134
|
+
this.resources.push(ej2_dropDownList_1.Ej2DropDownList);
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
ej2DropDownTree() {
|
|
138
|
+
this.resources.push(ej2_dropDownTree_1.Ej2DropDownTree);
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
ej2FileManager() {
|
|
142
|
+
this.resources.push(ej2_fileManager_1.Ej2FileManager);
|
|
122
143
|
return this;
|
|
123
144
|
}
|
|
124
145
|
ej2Grid() {
|
|
125
|
-
this.resources.push(
|
|
146
|
+
this.resources.push(ej2_grid_1.Ej2Grid);
|
|
126
147
|
return this;
|
|
127
148
|
}
|
|
128
149
|
ej2ListView() {
|
|
129
|
-
this.resources.push(
|
|
150
|
+
this.resources.push(ej2_listView_1.Ej2ListView);
|
|
130
151
|
return this;
|
|
131
152
|
}
|
|
132
153
|
ej2MaskedTextBox() {
|
|
133
|
-
this.resources.push(
|
|
154
|
+
this.resources.push(ej2_maskedTextBox_1.Ej2MaskedTextBox);
|
|
155
|
+
return this;
|
|
156
|
+
}
|
|
157
|
+
ej2MultiSelect() {
|
|
158
|
+
this.resources.push(ej2_multiSelect_1.Ej2MultiSelect);
|
|
134
159
|
return this;
|
|
135
160
|
}
|
|
136
161
|
ej2NumericTextBox() {
|
|
137
|
-
this.resources.push(
|
|
162
|
+
this.resources.push(ej2_numericTextBox_1.Ej2NumericTextBox);
|
|
138
163
|
return this;
|
|
139
164
|
}
|
|
140
165
|
ej2Pager() {
|
|
141
|
-
this.resources.push(
|
|
166
|
+
this.resources.push(ej2_pager_1.Ej2Pager);
|
|
142
167
|
return this;
|
|
143
168
|
}
|
|
144
169
|
ej2ProgressButton() {
|
|
145
|
-
this.resources.push(
|
|
170
|
+
this.resources.push(ej2_progress_button_1.Ej2ProgressButton);
|
|
146
171
|
return this;
|
|
147
172
|
}
|
|
148
173
|
ej2Radio() {
|
|
149
|
-
this.resources.push(
|
|
174
|
+
this.resources.push(ej2_radio_1.Ej2Radio);
|
|
175
|
+
return this;
|
|
176
|
+
}
|
|
177
|
+
ej2Schedule() {
|
|
178
|
+
this.resources.push(ej2_schedule_1.Ej2Schedule);
|
|
179
|
+
return this;
|
|
180
|
+
}
|
|
181
|
+
ej2Sidebar() {
|
|
182
|
+
this.resources.push(ej2_sidebar_1.Ej2Sidebar);
|
|
150
183
|
return this;
|
|
151
184
|
}
|
|
152
185
|
ej2Slider() {
|
|
153
|
-
this.resources.push(
|
|
186
|
+
this.resources.push(ej2_slider_1.Ej2Slider);
|
|
187
|
+
return this;
|
|
188
|
+
}
|
|
189
|
+
ej2Splitter() {
|
|
190
|
+
this.resources.push(ej2_splitter_1.Ej2Splitter);
|
|
154
191
|
return this;
|
|
155
192
|
}
|
|
156
193
|
ej2Switch() {
|
|
157
|
-
this.resources.push(
|
|
194
|
+
this.resources.push(ej2_switch_1.Ej2Switch);
|
|
158
195
|
return this;
|
|
159
196
|
}
|
|
160
197
|
ej2TextBox() {
|
|
161
|
-
this.resources.push(
|
|
198
|
+
this.resources.push(ej2_textBox_1.Ej2TextBox);
|
|
162
199
|
return this;
|
|
163
200
|
}
|
|
164
201
|
ej2TimePicker() {
|
|
165
|
-
this.resources.push(
|
|
202
|
+
this.resources.push(ej2_timePicker_1.Ej2TimePicker);
|
|
166
203
|
return this;
|
|
167
204
|
}
|
|
168
205
|
ej2TreeView() {
|
|
169
|
-
this.resources.push(
|
|
206
|
+
this.resources.push(ej2_treeView_1.Ej2TreeView);
|
|
170
207
|
return this;
|
|
171
208
|
}
|
|
172
209
|
ej2Uploader() {
|
|
173
|
-
this.resources.push(
|
|
210
|
+
this.resources.push(ej2_uploader_1.Ej2Uploader);
|
|
174
211
|
return this;
|
|
175
212
|
}
|
|
176
213
|
}
|
|
@@ -49,6 +49,16 @@ export declare const ControlBindings: {
|
|
|
49
49
|
twoWay: string[];
|
|
50
50
|
events: string[];
|
|
51
51
|
};
|
|
52
|
+
dropDownTree: {
|
|
53
|
+
oneWay: string[];
|
|
54
|
+
twoWay: string[];
|
|
55
|
+
events: string[];
|
|
56
|
+
};
|
|
57
|
+
fileManager: {
|
|
58
|
+
oneWay: string[];
|
|
59
|
+
twoWay: any[];
|
|
60
|
+
events: string[];
|
|
61
|
+
};
|
|
52
62
|
grid: {
|
|
53
63
|
oneWay: string[];
|
|
54
64
|
fromView: string[];
|
|
@@ -64,12 +74,18 @@ export declare const ControlBindings: {
|
|
|
64
74
|
twoWay: string[];
|
|
65
75
|
events: string[];
|
|
66
76
|
};
|
|
77
|
+
multiSelect: {
|
|
78
|
+
oneWay: string[];
|
|
79
|
+
twoWay: string[];
|
|
80
|
+
events: string[];
|
|
81
|
+
};
|
|
67
82
|
numericTextBox: {
|
|
68
83
|
oneWay: string[];
|
|
69
84
|
twoWay: string[];
|
|
70
85
|
events: string[];
|
|
71
86
|
};
|
|
72
87
|
pager: {
|
|
88
|
+
oneWay: string[];
|
|
73
89
|
twoWay: string[];
|
|
74
90
|
events: string[];
|
|
75
91
|
};
|
|
@@ -81,11 +97,23 @@ export declare const ControlBindings: {
|
|
|
81
97
|
oneWay: string[];
|
|
82
98
|
events: string[];
|
|
83
99
|
};
|
|
100
|
+
schedule: {
|
|
101
|
+
oneWay: string[];
|
|
102
|
+
events: string[];
|
|
103
|
+
};
|
|
104
|
+
sidebar: {
|
|
105
|
+
oneWay: string[];
|
|
106
|
+
events: string[];
|
|
107
|
+
};
|
|
84
108
|
slider: {
|
|
85
109
|
oneWay: string[];
|
|
86
110
|
twoWay: string[];
|
|
87
111
|
events: string[];
|
|
88
112
|
};
|
|
113
|
+
splitter: {
|
|
114
|
+
oneWay: string[];
|
|
115
|
+
events: string[];
|
|
116
|
+
};
|
|
89
117
|
switch: {
|
|
90
118
|
oneWay: string[];
|
|
91
119
|
twoWay: string[];
|