aurelia-syncfusion-ej2-bridge 0.1.0-beta.3 → 0.1.0-beta.31
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/.vscode/extensions.json +10 -0
- package/.vscode/launch.json +31 -0
- package/.vscode/settings.json +5 -0
- 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 -50
- 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 -50
- 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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Chrome Debugger",
|
|
6
|
+
"type": "chrome",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"url": "http://localhost:9000",
|
|
9
|
+
"webRoot": "${workspaceRoot}/src",
|
|
10
|
+
"userDataDir": "${workspaceRoot}/.chrome",
|
|
11
|
+
"sourceMapPathOverrides": {
|
|
12
|
+
"../src/*": "${webRoot}/*"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "chrome",
|
|
17
|
+
"request": "attach",
|
|
18
|
+
"name": "Attach Karma Chrome",
|
|
19
|
+
"address": "localhost",
|
|
20
|
+
"port": 9333,
|
|
21
|
+
"sourceMaps": true,
|
|
22
|
+
"pathMapping": {
|
|
23
|
+
"/": "${workspaceRoot}",
|
|
24
|
+
"/base/": "${workspaceRoot}/"
|
|
25
|
+
},
|
|
26
|
+
"sourceMapPathOverrides": {
|
|
27
|
+
"../src/*": "${webRoot}/*"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
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,36 @@
|
|
|
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");
|
|
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");
|
|
9
|
+
const ej2_textBox_1 = require("./widgets/textBox/ej2-textBox");
|
|
10
|
+
const ej2_dateRangePicker_1 = require("./widgets/dateRangePicker/ej2-dateRangePicker");
|
|
11
|
+
const ej2_dateTimePicker_1 = require("./widgets/dateTimePicker/ej2-dateTimePicker");
|
|
12
|
+
const ej2_dashboardLayout_1 = require("./widgets/dashboardLayout/ej2-dashboardLayout");
|
|
13
|
+
const ej2_comboBox_1 = require("./widgets/comboBox/ej2-comboBox");
|
|
14
|
+
const ej2_checkbox_list_1 = require("./widgets/checkbox/ej2-checkbox-list");
|
|
15
|
+
const ej2_checkbox_1 = require("./widgets/checkbox/ej2-checkbox");
|
|
16
|
+
const ej2_button_1 = require("./widgets/button/ej2-button");
|
|
17
|
+
const ej2_autoComplete_1 = require("./widgets/autoComplete/ej2-autoComplete");
|
|
18
|
+
const ej2_accordion_1 = require("./widgets/accordion/ej2-accordion");
|
|
19
|
+
const ej2_dropDownList_1 = require("./widgets/dropDownList/ej2-dropDownList");
|
|
20
|
+
const ej2_grid_1 = require("./widgets/grid/ej2-grid");
|
|
21
|
+
const ej2_listView_1 = require("./widgets/listView/ej2-listView");
|
|
22
|
+
const ej2_maskedTextBox_1 = require("./widgets/maskedTextBox/ej2-maskedTextBox");
|
|
23
|
+
const ej2_numericTextBox_1 = require("./widgets/numericTextBox/ej2-numericTextBox");
|
|
24
|
+
const ej2_pager_1 = require("./widgets/pager/ej2-pager");
|
|
25
|
+
const ej2_progress_button_1 = require("./widgets/progressButton/ej2-progress-button");
|
|
26
|
+
const ej2_radio_1 = require("./widgets/radio/ej2-radio");
|
|
27
|
+
const ej2_slider_1 = require("./widgets/slider/ej2-slider");
|
|
28
|
+
const ej2_switch_1 = require("./widgets/switch/ej2-switch");
|
|
29
|
+
const ej2_timePicker_1 = require("./widgets/timePicker/ej2-timePicker");
|
|
30
|
+
const ej2_treeView_1 = require("./widgets/treeView/ej2-treeView");
|
|
31
|
+
const ej2_uploader_1 = require("./widgets/uploader/ej2-uploader");
|
|
32
|
+
const ej2_splitter_1 = require("./widgets/splitter/ej2-splitter");
|
|
33
|
+
const ej2_dropDownTree_1 = require("./widgets/dropDownTree/ej2-dropDownTree");
|
|
4
34
|
class ConfigBuilder {
|
|
5
35
|
constructor() {
|
|
6
36
|
this.resources = [];
|
|
@@ -19,14 +49,20 @@ class ConfigBuilder {
|
|
|
19
49
|
.ej2DateTimePicker()
|
|
20
50
|
.ej2DashboardLayout()
|
|
21
51
|
.ej2DropDownList()
|
|
52
|
+
.ej2DropDownTree()
|
|
53
|
+
.ej2FileManager()
|
|
22
54
|
.ej2Grid()
|
|
23
55
|
.ej2ListView()
|
|
24
56
|
.ej2MaskedTextBox()
|
|
57
|
+
.ej2MultiSelect()
|
|
25
58
|
.ej2NumericTextBox()
|
|
26
59
|
.ej2Pager()
|
|
27
60
|
.ej2ProgressButton()
|
|
28
61
|
.ej2Radio()
|
|
62
|
+
.ej2Schedule()
|
|
63
|
+
.ej2Sidebar()
|
|
29
64
|
.ej2Slider()
|
|
65
|
+
.ej2Splitter()
|
|
30
66
|
.ej2Switch()
|
|
31
67
|
.ej2TextBox()
|
|
32
68
|
.ej2TimePicker()
|
|
@@ -41,36 +77,11 @@ class ConfigBuilder {
|
|
|
41
77
|
switch (theme) {
|
|
42
78
|
case "material":
|
|
43
79
|
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
80
|
default:
|
|
53
81
|
return this;
|
|
54
82
|
}
|
|
55
83
|
}
|
|
56
84
|
materialTheme() {
|
|
57
|
-
this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/material.css"));
|
|
58
|
-
return this;
|
|
59
|
-
}
|
|
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
85
|
return this;
|
|
75
86
|
}
|
|
76
87
|
withoutGlobalResources() {
|
|
@@ -78,99 +89,123 @@ class ConfigBuilder {
|
|
|
78
89
|
return this;
|
|
79
90
|
}
|
|
80
91
|
ej2Accordion() {
|
|
81
|
-
this.resources.push(
|
|
92
|
+
this.resources.push(ej2_accordion_1.Ej2Accordion);
|
|
82
93
|
return this;
|
|
83
94
|
}
|
|
84
95
|
ej2AutoComplete() {
|
|
85
|
-
this.resources.push(
|
|
96
|
+
this.resources.push(ej2_autoComplete_1.Ej2AutoComplete);
|
|
86
97
|
return this;
|
|
87
98
|
}
|
|
88
99
|
ej2Button() {
|
|
89
|
-
this.resources.push(
|
|
100
|
+
this.resources.push(ej2_button_1.Ej2Button);
|
|
90
101
|
return this;
|
|
91
102
|
}
|
|
92
103
|
ej2Checkbox() {
|
|
93
|
-
this.resources.push(
|
|
104
|
+
this.resources.push(ej2_checkbox_1.Ej2Checkbox);
|
|
94
105
|
return this;
|
|
95
106
|
}
|
|
96
107
|
ej2CheckboxList() {
|
|
97
|
-
this.resources.push(
|
|
108
|
+
this.resources.push(ej2_checkbox_list_1.Ej2CheckboxList);
|
|
98
109
|
return this;
|
|
99
110
|
}
|
|
100
111
|
ej2ComboBox() {
|
|
101
|
-
this.resources.push(
|
|
112
|
+
this.resources.push(ej2_comboBox_1.Ej2ComboBox);
|
|
102
113
|
return this;
|
|
103
114
|
}
|
|
104
115
|
ej2DashboardLayout() {
|
|
105
|
-
this.resources.push(
|
|
116
|
+
this.resources.push(ej2_dashboardLayout_1.Ej2DashboardLayout);
|
|
106
117
|
return this;
|
|
107
118
|
}
|
|
108
119
|
ej2DatePicker() {
|
|
109
|
-
this.resources.push(
|
|
120
|
+
this.resources.push(ej2_DatePicker_1.Ej2DatePicker);
|
|
110
121
|
return this;
|
|
111
122
|
}
|
|
112
123
|
ej2DateRangePicker() {
|
|
113
|
-
this.resources.push(
|
|
124
|
+
this.resources.push(ej2_dateRangePicker_1.Ej2DateRangePicker);
|
|
114
125
|
return this;
|
|
115
126
|
}
|
|
116
127
|
ej2DateTimePicker() {
|
|
117
|
-
this.resources.push(
|
|
128
|
+
this.resources.push(ej2_dateTimePicker_1.Ej2DateTimePicker);
|
|
118
129
|
return this;
|
|
119
130
|
}
|
|
120
131
|
ej2DropDownList() {
|
|
121
|
-
this.resources.push(
|
|
132
|
+
this.resources.push(ej2_dropDownList_1.Ej2DropDownList);
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
135
|
+
ej2DropDownTree() {
|
|
136
|
+
this.resources.push(ej2_dropDownTree_1.Ej2DropDownTree);
|
|
137
|
+
return this;
|
|
138
|
+
}
|
|
139
|
+
ej2FileManager() {
|
|
140
|
+
this.resources.push(ej2_fileManager_1.Ej2FileManager);
|
|
122
141
|
return this;
|
|
123
142
|
}
|
|
124
143
|
ej2Grid() {
|
|
125
|
-
this.resources.push(
|
|
144
|
+
this.resources.push(ej2_grid_1.Ej2Grid);
|
|
126
145
|
return this;
|
|
127
146
|
}
|
|
128
147
|
ej2ListView() {
|
|
129
|
-
this.resources.push(
|
|
148
|
+
this.resources.push(ej2_listView_1.Ej2ListView);
|
|
130
149
|
return this;
|
|
131
150
|
}
|
|
132
151
|
ej2MaskedTextBox() {
|
|
133
|
-
this.resources.push(
|
|
152
|
+
this.resources.push(ej2_maskedTextBox_1.Ej2MaskedTextBox);
|
|
153
|
+
return this;
|
|
154
|
+
}
|
|
155
|
+
ej2MultiSelect() {
|
|
156
|
+
this.resources.push(ej2_multiSelect_1.Ej2MultiSelect);
|
|
134
157
|
return this;
|
|
135
158
|
}
|
|
136
159
|
ej2NumericTextBox() {
|
|
137
|
-
this.resources.push(
|
|
160
|
+
this.resources.push(ej2_numericTextBox_1.Ej2NumericTextBox);
|
|
138
161
|
return this;
|
|
139
162
|
}
|
|
140
163
|
ej2Pager() {
|
|
141
|
-
this.resources.push(
|
|
164
|
+
this.resources.push(ej2_pager_1.Ej2Pager);
|
|
142
165
|
return this;
|
|
143
166
|
}
|
|
144
167
|
ej2ProgressButton() {
|
|
145
|
-
this.resources.push(
|
|
168
|
+
this.resources.push(ej2_progress_button_1.Ej2ProgressButton);
|
|
146
169
|
return this;
|
|
147
170
|
}
|
|
148
171
|
ej2Radio() {
|
|
149
|
-
this.resources.push(
|
|
172
|
+
this.resources.push(ej2_radio_1.Ej2Radio);
|
|
173
|
+
return this;
|
|
174
|
+
}
|
|
175
|
+
ej2Schedule() {
|
|
176
|
+
this.resources.push(ej2_schedule_1.Ej2Schedule);
|
|
177
|
+
return this;
|
|
178
|
+
}
|
|
179
|
+
ej2Sidebar() {
|
|
180
|
+
this.resources.push(ej2_sidebar_1.Ej2Sidebar);
|
|
150
181
|
return this;
|
|
151
182
|
}
|
|
152
183
|
ej2Slider() {
|
|
153
|
-
this.resources.push(
|
|
184
|
+
this.resources.push(ej2_slider_1.Ej2Slider);
|
|
185
|
+
return this;
|
|
186
|
+
}
|
|
187
|
+
ej2Splitter() {
|
|
188
|
+
this.resources.push(ej2_splitter_1.Ej2Splitter);
|
|
154
189
|
return this;
|
|
155
190
|
}
|
|
156
191
|
ej2Switch() {
|
|
157
|
-
this.resources.push(
|
|
192
|
+
this.resources.push(ej2_switch_1.Ej2Switch);
|
|
158
193
|
return this;
|
|
159
194
|
}
|
|
160
195
|
ej2TextBox() {
|
|
161
|
-
this.resources.push(
|
|
196
|
+
this.resources.push(ej2_textBox_1.Ej2TextBox);
|
|
162
197
|
return this;
|
|
163
198
|
}
|
|
164
199
|
ej2TimePicker() {
|
|
165
|
-
this.resources.push(
|
|
200
|
+
this.resources.push(ej2_timePicker_1.Ej2TimePicker);
|
|
166
201
|
return this;
|
|
167
202
|
}
|
|
168
203
|
ej2TreeView() {
|
|
169
|
-
this.resources.push(
|
|
204
|
+
this.resources.push(ej2_treeView_1.Ej2TreeView);
|
|
170
205
|
return this;
|
|
171
206
|
}
|
|
172
207
|
ej2Uploader() {
|
|
173
|
-
this.resources.push(
|
|
208
|
+
this.resources.push(ej2_uploader_1.Ej2Uploader);
|
|
174
209
|
return this;
|
|
175
210
|
}
|
|
176
211
|
}
|
|
@@ -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[];
|