aurelia-syncfusion-ej2-bridge 0.1.0-beta.22 → 0.1.0-beta.25
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/package.json +2 -2
- package/dist/commonjs/common/constants.d.ts +0 -4
- package/dist/commonjs/common/constants.js +0 -7
- package/dist/commonjs/common/controlBase.d.ts +0 -37
- package/dist/commonjs/common/controlBase.js +0 -162
- package/dist/commonjs/common/controlContainer.d.ts +0 -10
- package/dist/commonjs/common/controlContainer.js +0 -19
- package/dist/commonjs/common/syncfusionWrapper.d.ts +0 -15
- package/dist/commonjs/common/syncfusionWrapper.js +0 -48
- package/dist/commonjs/configBuider.d.ts +0 -39
- package/dist/commonjs/configBuider.js +0 -214
- package/dist/commonjs/controlBindings.d.ts +0 -140
- package/dist/commonjs/controlBindings.js +0 -152
- package/dist/commonjs/index.d.ts +0 -6
- package/dist/commonjs/index.js +0 -17
- package/dist/commonjs/interfaces/IEJ2WidgetBridge.d.ts +0 -6
- package/dist/commonjs/interfaces/IEJ2WidgetBridge.js +0 -2
- package/dist/commonjs/interfaces/IEj2Uploader.d.ts +0 -17
- package/dist/commonjs/interfaces/IEj2Uploader.js +0 -2
- package/dist/commonjs/utilities/decorator.d.ts +0 -2
- package/dist/commonjs/utilities/decorator.js +0 -64
- package/dist/commonjs/widgets/accordion/ej2-accordion.d.ts +0 -7
- package/dist/commonjs/widgets/accordion/ej2-accordion.js +0 -31
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.d.ts +0 -7
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.js +0 -29
- package/dist/commonjs/widgets/button/ej2-button.d.ts +0 -14
- package/dist/commonjs/widgets/button/ej2-button.js +0 -55
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.d.ts +0 -17
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +0 -77
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.d.ts +0 -12
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +0 -58
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.d.ts +0 -8
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.js +0 -35
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.d.ts +0 -7
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.js +0 -29
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.d.ts +0 -8
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.js +0 -35
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.d.ts +0 -8
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.js +0 -37
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.d.ts +0 -8
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.js +0 -35
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.d.ts +0 -9
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.js +0 -39
- package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.d.ts +0 -8
- package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.js +0 -35
- package/dist/commonjs/widgets/fileManager/ej2-fileManager.d.ts +0 -9
- package/dist/commonjs/widgets/fileManager/ej2-fileManager.js +0 -34
- package/dist/commonjs/widgets/grid/ej2-grid.d.ts +0 -8
- package/dist/commonjs/widgets/grid/ej2-grid.js +0 -97
- package/dist/commonjs/widgets/listView/ej2-listView.d.ts +0 -8
- package/dist/commonjs/widgets/listView/ej2-listView.js +0 -34
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.d.ts +0 -8
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.js +0 -37
- package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.d.ts +0 -10
- package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.js +0 -44
- package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.d.ts +0 -8
- package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.js +0 -35
- package/dist/commonjs/widgets/pager/ej2-pager.d.ts +0 -7
- package/dist/commonjs/widgets/pager/ej2-pager.js +0 -29
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.d.ts +0 -17
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +0 -64
- package/dist/commonjs/widgets/radio/ej2-radio.d.ts +0 -13
- package/dist/commonjs/widgets/radio/ej2-radio.js +0 -54
- package/dist/commonjs/widgets/schedule/ej2-schedule.d.ts +0 -8
- package/dist/commonjs/widgets/schedule/ej2-schedule.js +0 -32
- package/dist/commonjs/widgets/sidebar/ej2-sidebar.d.ts +0 -7
- package/dist/commonjs/widgets/sidebar/ej2-sidebar.js +0 -30
- package/dist/commonjs/widgets/slider/ej2-slider.d.ts +0 -8
- package/dist/commonjs/widgets/slider/ej2-slider.js +0 -37
- package/dist/commonjs/widgets/splitter/ej2-splitter.d.ts +0 -7
- package/dist/commonjs/widgets/splitter/ej2-splitter.js +0 -29
- package/dist/commonjs/widgets/switch/ej2-switch.d.ts +0 -11
- package/dist/commonjs/widgets/switch/ej2-switch.js +0 -52
- package/dist/commonjs/widgets/textBox/ej2-textBox.d.ts +0 -8
- package/dist/commonjs/widgets/textBox/ej2-textBox.js +0 -37
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.d.ts +0 -8
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.js +0 -35
- package/dist/commonjs/widgets/treeView/ej2-treeView.d.ts +0 -7
- package/dist/commonjs/widgets/treeView/ej2-treeView.js +0 -29
- package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +0 -50
- package/dist/commonjs/widgets/uploader/ej2-uploader.js +0 -346
- package/dist/native-modules/common/constants.d.ts +0 -4
- package/dist/native-modules/common/constants.js +0 -4
- package/dist/native-modules/common/controlBase.d.ts +0 -37
- package/dist/native-modules/common/controlBase.js +0 -159
- package/dist/native-modules/common/controlContainer.d.ts +0 -10
- package/dist/native-modules/common/controlContainer.js +0 -15
- package/dist/native-modules/common/syncfusionWrapper.d.ts +0 -15
- package/dist/native-modules/common/syncfusionWrapper.js +0 -44
- package/dist/native-modules/configBuider.d.ts +0 -39
- package/dist/native-modules/configBuider.js +0 -210
- package/dist/native-modules/controlBindings.d.ts +0 -140
- package/dist/native-modules/controlBindings.js +0 -149
- package/dist/native-modules/index.d.ts +0 -6
- package/dist/native-modules/index.js +0 -12
- package/dist/native-modules/interfaces/IEJ2WidgetBridge.d.ts +0 -6
- package/dist/native-modules/interfaces/IEJ2WidgetBridge.js +0 -0
- package/dist/native-modules/interfaces/IEj2Uploader.d.ts +0 -17
- package/dist/native-modules/interfaces/IEj2Uploader.js +0 -0
- package/dist/native-modules/utilities/decorator.d.ts +0 -2
- package/dist/native-modules/utilities/decorator.js +0 -59
- package/dist/native-modules/widgets/accordion/ej2-accordion.d.ts +0 -7
- package/dist/native-modules/widgets/accordion/ej2-accordion.js +0 -28
- package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.d.ts +0 -7
- package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.js +0 -26
- package/dist/native-modules/widgets/button/ej2-button.d.ts +0 -14
- package/dist/native-modules/widgets/button/ej2-button.js +0 -52
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.d.ts +0 -17
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +0 -74
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.d.ts +0 -12
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +0 -55
- package/dist/native-modules/widgets/comboBox/ej2-comboBox.d.ts +0 -8
- package/dist/native-modules/widgets/comboBox/ej2-comboBox.js +0 -32
- package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.d.ts +0 -7
- package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.js +0 -26
- package/dist/native-modules/widgets/datePicker/ej2-DatePicker.d.ts +0 -8
- package/dist/native-modules/widgets/datePicker/ej2-DatePicker.js +0 -32
- package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.d.ts +0 -8
- package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.js +0 -34
- package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.d.ts +0 -8
- package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.js +0 -32
- package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.d.ts +0 -9
- package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.js +0 -36
- package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.d.ts +0 -8
- package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.js +0 -32
- package/dist/native-modules/widgets/fileManager/ej2-fileManager.d.ts +0 -9
- package/dist/native-modules/widgets/fileManager/ej2-fileManager.js +0 -31
- package/dist/native-modules/widgets/grid/ej2-grid.d.ts +0 -8
- package/dist/native-modules/widgets/grid/ej2-grid.js +0 -94
- package/dist/native-modules/widgets/listView/ej2-listView.d.ts +0 -8
- package/dist/native-modules/widgets/listView/ej2-listView.js +0 -31
- package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.d.ts +0 -8
- package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.js +0 -34
- package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.d.ts +0 -10
- package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.js +0 -41
- package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.d.ts +0 -8
- package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.js +0 -32
- package/dist/native-modules/widgets/pager/ej2-pager.d.ts +0 -7
- package/dist/native-modules/widgets/pager/ej2-pager.js +0 -26
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.d.ts +0 -17
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +0 -61
- package/dist/native-modules/widgets/radio/ej2-radio.d.ts +0 -13
- package/dist/native-modules/widgets/radio/ej2-radio.js +0 -51
- package/dist/native-modules/widgets/schedule/ej2-schedule.d.ts +0 -8
- package/dist/native-modules/widgets/schedule/ej2-schedule.js +0 -29
- package/dist/native-modules/widgets/sidebar/ej2-sidebar.d.ts +0 -7
- package/dist/native-modules/widgets/sidebar/ej2-sidebar.js +0 -27
- package/dist/native-modules/widgets/slider/ej2-slider.d.ts +0 -8
- package/dist/native-modules/widgets/slider/ej2-slider.js +0 -34
- package/dist/native-modules/widgets/splitter/ej2-splitter.d.ts +0 -7
- package/dist/native-modules/widgets/splitter/ej2-splitter.js +0 -26
- package/dist/native-modules/widgets/switch/ej2-switch.d.ts +0 -11
- package/dist/native-modules/widgets/switch/ej2-switch.js +0 -49
- package/dist/native-modules/widgets/textBox/ej2-textBox.d.ts +0 -8
- package/dist/native-modules/widgets/textBox/ej2-textBox.js +0 -34
- package/dist/native-modules/widgets/timePicker/ej2-timePicker.d.ts +0 -8
- package/dist/native-modules/widgets/timePicker/ej2-timePicker.js +0 -32
- package/dist/native-modules/widgets/treeView/ej2-treeView.d.ts +0 -7
- package/dist/native-modules/widgets/treeView/ej2-treeView.js +0 -26
- package/dist/native-modules/widgets/uploader/ej2-uploader.d.ts +0 -50
- package/dist/native-modules/widgets/uploader/ej2-uploader.js +0 -343
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { TaskQueue } from 'aurelia-task-queue';
|
|
11
|
-
import { autoinject, BindingEngine, bindable, LogManager } from "aurelia-framework";
|
|
12
|
-
import { ControlContainer } from "./controlContainer";
|
|
13
|
-
import { constants } from "./constants";
|
|
14
|
-
import { EventAggregator } from 'aurelia-event-aggregator';
|
|
15
|
-
let logger = LogManager.getLogger("SyncfusionBridge");
|
|
16
|
-
let ControlBase = class ControlBase {
|
|
17
|
-
constructor(bindingEngine, controlContainer, taskQueue, eventAggregator, element) {
|
|
18
|
-
this.bindingEngine = bindingEngine;
|
|
19
|
-
this.controlContainer = controlContainer;
|
|
20
|
-
this.taskQueue = taskQueue;
|
|
21
|
-
this.eventAggregator = eventAggregator;
|
|
22
|
-
this.element = element;
|
|
23
|
-
this.eModel = null;
|
|
24
|
-
this._eModel = null;
|
|
25
|
-
this.widgetElement = null;
|
|
26
|
-
this.widget = null;
|
|
27
|
-
this.bindingContext = null;
|
|
28
|
-
this.logName = "";
|
|
29
|
-
this.propertyPriority = true;
|
|
30
|
-
this.subscriptions = [];
|
|
31
|
-
}
|
|
32
|
-
get controlType() {
|
|
33
|
-
throw "syncfusionControlType is not set";
|
|
34
|
-
}
|
|
35
|
-
onBind() {
|
|
36
|
-
}
|
|
37
|
-
onAttached() {
|
|
38
|
-
}
|
|
39
|
-
onCreateControl() {
|
|
40
|
-
throw "onCreateControl is not implemented";
|
|
41
|
-
}
|
|
42
|
-
debug(message, ...rest) {
|
|
43
|
-
logger.debug(`[${this.logName}] - ${message}`, rest);
|
|
44
|
-
}
|
|
45
|
-
info(message, ...rest) {
|
|
46
|
-
logger.info(`[${this.logName}] - ${message}`, rest);
|
|
47
|
-
}
|
|
48
|
-
error(message, ...rest) {
|
|
49
|
-
logger.error(`[${this.logName}] - ${message}`, rest);
|
|
50
|
-
}
|
|
51
|
-
warn(message, ...rest) {
|
|
52
|
-
logger.warn(`[${this.logName}] - ${message}`, rest);
|
|
53
|
-
}
|
|
54
|
-
bind(context) {
|
|
55
|
-
this.logName = this.controlType.name;
|
|
56
|
-
this.bindingContext = context;
|
|
57
|
-
this._eModel = Object.assign({}, this.eModel);
|
|
58
|
-
this.setInitialBindings();
|
|
59
|
-
this.onCreateControl();
|
|
60
|
-
this.onBind();
|
|
61
|
-
}
|
|
62
|
-
setInitialBindings() {
|
|
63
|
-
let _control = this.getBindables();
|
|
64
|
-
let bindablePrefixLength = constants.bindablePrefix.length;
|
|
65
|
-
_control.bindableProperties.forEach((property) => {
|
|
66
|
-
if (!property.startsWith(constants.eventPrefix)) {
|
|
67
|
-
let modelProperty = property.substr(bindablePrefixLength);
|
|
68
|
-
if (this[property] !== undefined && (this.propertyPriority || this._eModel[modelProperty] === undefined)) {
|
|
69
|
-
this._eModel[modelProperty] = this[property];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
this.createControlPropertySubscriptions(_control);
|
|
74
|
-
}
|
|
75
|
-
getBindables() {
|
|
76
|
-
let _control = this.controlContainer.get(this.controlType);
|
|
77
|
-
if (!_control) {
|
|
78
|
-
_control = {};
|
|
79
|
-
_control.type = this.controlType;
|
|
80
|
-
_control.bindableProperties = [];
|
|
81
|
-
_control.bindableEvents = [];
|
|
82
|
-
for (let property in this["__observers__"]) {
|
|
83
|
-
if (ExcludedProperties.indexOf(property) === -1) {
|
|
84
|
-
if (property.startsWith(constants.eventPrefix)) {
|
|
85
|
-
_control.bindableEvents.push(property);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
_control.bindableProperties.push(property);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return _control;
|
|
94
|
-
}
|
|
95
|
-
createControlEvents(control) {
|
|
96
|
-
control.bindableEvents.forEach((event) => {
|
|
97
|
-
let eventName = event.substr(constants.eventPrefix.length);
|
|
98
|
-
this.widget.addEventListener(eventName, (args) => {
|
|
99
|
-
this.element.dispatchEvent(new CustomEvent(event, {
|
|
100
|
-
bubbles: true,
|
|
101
|
-
detail: args
|
|
102
|
-
}));
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
createControlPropertySubscriptions(control) {
|
|
107
|
-
if (control) {
|
|
108
|
-
let bindablePrefixLength = constants.bindablePrefix.length;
|
|
109
|
-
control.bindableProperties.forEach((binding) => {
|
|
110
|
-
let modelBinding = binding.substr(bindablePrefixLength);
|
|
111
|
-
this.subscriptions.push(this.bindingEngine.propertyObserver(this, binding).subscribe((newValue) => {
|
|
112
|
-
if (this.widget.properties.hasOwnProperty(modelBinding)) {
|
|
113
|
-
let customFunc = `${modelBinding}Changed`;
|
|
114
|
-
if (typeof this[customFunc] === "function") {
|
|
115
|
-
this[customFunc].call(this, newValue);
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
this.widget[modelBinding] = newValue;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
attached() {
|
|
126
|
-
this.appendWidget();
|
|
127
|
-
this.onAttached();
|
|
128
|
-
}
|
|
129
|
-
appendWidget() {
|
|
130
|
-
this.widget.appendTo(this.widgetElement);
|
|
131
|
-
}
|
|
132
|
-
detached() {
|
|
133
|
-
this.subscriptions.forEach((subscription) => { if (subscription) {
|
|
134
|
-
subscription.dispose();
|
|
135
|
-
} });
|
|
136
|
-
if (this.widget.destroy) {
|
|
137
|
-
this.debug("destroy method", null);
|
|
138
|
-
this.widget.destroy();
|
|
139
|
-
}
|
|
140
|
-
this.widget = null;
|
|
141
|
-
this._eModel = null;
|
|
142
|
-
this.widgetElement = null;
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
__decorate([
|
|
146
|
-
bindable,
|
|
147
|
-
__metadata("design:type", Object)
|
|
148
|
-
], ControlBase.prototype, "eModel", void 0);
|
|
149
|
-
ControlBase = __decorate([
|
|
150
|
-
autoinject,
|
|
151
|
-
__metadata("design:paramtypes", [BindingEngine, ControlContainer,
|
|
152
|
-
TaskQueue, EventAggregator, Element])
|
|
153
|
-
], ControlBase);
|
|
154
|
-
export { ControlBase };
|
|
155
|
-
export const ExcludedProperties = [
|
|
156
|
-
"__propertiesDefined__",
|
|
157
|
-
"eModel",
|
|
158
|
-
"onClick"
|
|
159
|
-
];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class ControlContainer {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.controls = [];
|
|
4
|
-
}
|
|
5
|
-
add(control) {
|
|
6
|
-
let existing = this.controls.find((x) => x.type === control.type);
|
|
7
|
-
if (!existing) {
|
|
8
|
-
this.controls.push(control);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
get(type) {
|
|
12
|
-
let _control = this.controls.find((x) => x.type === type);
|
|
13
|
-
return _control;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ControlBase } from "./controlBase";
|
|
2
|
-
export declare abstract class SyncfusionWrapper<T, U> extends ControlBase<T, U> {
|
|
3
|
-
protected abstract syncfusionWidgetType: any;
|
|
4
|
-
protected abstract onWrapperCreated(): any;
|
|
5
|
-
protected abstract onWidgetCreated(): any;
|
|
6
|
-
onCreateControl(): void;
|
|
7
|
-
recreate(): void;
|
|
8
|
-
onRecreate(): void;
|
|
9
|
-
recreating(): void;
|
|
10
|
-
recreated(): void;
|
|
11
|
-
refresh(): void;
|
|
12
|
-
dataBind(): void;
|
|
13
|
-
protected get controlType(): any;
|
|
14
|
-
protected onBeforeWidgetInstantiation(): void;
|
|
15
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ControlBase } from "./controlBase";
|
|
2
|
-
export class SyncfusionWrapper extends ControlBase {
|
|
3
|
-
constructor() {
|
|
4
|
-
super(...arguments);
|
|
5
|
-
this.syncfusionWidgetType = null;
|
|
6
|
-
}
|
|
7
|
-
onCreateControl() {
|
|
8
|
-
this.onBeforeWidgetInstantiation();
|
|
9
|
-
this.widget = new this.syncfusionWidgetType(this._eModel);
|
|
10
|
-
this.widget.created = () => { this.onWidgetCreated(); };
|
|
11
|
-
this.onWrapperCreated();
|
|
12
|
-
this.createControlEvents(this.getBindables());
|
|
13
|
-
}
|
|
14
|
-
recreate() {
|
|
15
|
-
this.onRecreate();
|
|
16
|
-
this.widget.destroy();
|
|
17
|
-
this.widget = null;
|
|
18
|
-
this.recreating();
|
|
19
|
-
this.setInitialBindings();
|
|
20
|
-
this.onCreateControl();
|
|
21
|
-
this.appendWidget();
|
|
22
|
-
this.recreated();
|
|
23
|
-
}
|
|
24
|
-
onRecreate() {
|
|
25
|
-
}
|
|
26
|
-
recreating() {
|
|
27
|
-
}
|
|
28
|
-
recreated() {
|
|
29
|
-
}
|
|
30
|
-
refresh() {
|
|
31
|
-
this.widget.refresh();
|
|
32
|
-
}
|
|
33
|
-
dataBind() {
|
|
34
|
-
this.widget.dataBind();
|
|
35
|
-
}
|
|
36
|
-
get controlType() {
|
|
37
|
-
if (this.syncfusionWidgetType) {
|
|
38
|
-
return this.syncfusionWidgetType;
|
|
39
|
-
}
|
|
40
|
-
throw "syncfusionControlType is not set";
|
|
41
|
-
}
|
|
42
|
-
onBeforeWidgetInstantiation() {
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare class ConfigBuilder {
|
|
2
|
-
resources: any[];
|
|
3
|
-
useGlobalResources: boolean;
|
|
4
|
-
useAll(): ConfigBuilder;
|
|
5
|
-
useDefaults(): ConfigBuilder;
|
|
6
|
-
useTheme(theme: "material" | "bootstrap" | "bootstrap4" | "fabric" | "highcontrast"): this;
|
|
7
|
-
materialTheme(): this;
|
|
8
|
-
withoutGlobalResources(): ConfigBuilder;
|
|
9
|
-
ej2Accordion(): ConfigBuilder;
|
|
10
|
-
ej2AutoComplete(): ConfigBuilder;
|
|
11
|
-
ej2Button(): ConfigBuilder;
|
|
12
|
-
ej2Checkbox(): ConfigBuilder;
|
|
13
|
-
ej2CheckboxList(): ConfigBuilder;
|
|
14
|
-
ej2ComboBox(): ConfigBuilder;
|
|
15
|
-
ej2DashboardLayout(): ConfigBuilder;
|
|
16
|
-
ej2DatePicker(): ConfigBuilder;
|
|
17
|
-
ej2DateRangePicker(): ConfigBuilder;
|
|
18
|
-
ej2DateTimePicker(): ConfigBuilder;
|
|
19
|
-
ej2DropDownList(): ConfigBuilder;
|
|
20
|
-
ej2DropDownTree(): ConfigBuilder;
|
|
21
|
-
ej2FileManager(): ConfigBuilder;
|
|
22
|
-
ej2Grid(): ConfigBuilder;
|
|
23
|
-
ej2ListView(): ConfigBuilder;
|
|
24
|
-
ej2MaskedTextBox(): ConfigBuilder;
|
|
25
|
-
ej2MultiSelect(): ConfigBuilder;
|
|
26
|
-
ej2NumericTextBox(): ConfigBuilder;
|
|
27
|
-
ej2Pager(): ConfigBuilder;
|
|
28
|
-
ej2ProgressButton(): ConfigBuilder;
|
|
29
|
-
ej2Radio(): ConfigBuilder;
|
|
30
|
-
ej2Schedule(): ConfigBuilder;
|
|
31
|
-
ej2Sidebar(): ConfigBuilder;
|
|
32
|
-
ej2Slider(): ConfigBuilder;
|
|
33
|
-
ej2Splitter(): ConfigBuilder;
|
|
34
|
-
ej2Switch(): ConfigBuilder;
|
|
35
|
-
ej2TextBox(): ConfigBuilder;
|
|
36
|
-
ej2TimePicker(): ConfigBuilder;
|
|
37
|
-
ej2TreeView(): ConfigBuilder;
|
|
38
|
-
ej2Uploader(): ConfigBuilder;
|
|
39
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { Ej2MultiSelect } from './widgets/multiSelect/ej2-multiSelect';
|
|
2
|
-
import { Ej2Schedule } from './widgets/schedule/ej2-schedule';
|
|
3
|
-
import { Ej2FileManager } from './widgets/fileManager/ej2-fileManager';
|
|
4
|
-
import { Ej2Sidebar } from './widgets/sidebar/ej2-sidebar';
|
|
5
|
-
import { Ej2DatePicker } from './widgets/datePicker/ej2-DatePicker';
|
|
6
|
-
import { PLATFORM } from "aurelia-pal";
|
|
7
|
-
import { Ej2TextBox } from './widgets/textBox/ej2-textBox';
|
|
8
|
-
import { Ej2DateRangePicker } from './widgets/dateRangePicker/ej2-dateRangePicker';
|
|
9
|
-
import { Ej2DateTimePicker } from './widgets/dateTimePicker/ej2-dateTimePicker';
|
|
10
|
-
import { Ej2DashboardLayout } from './widgets/dashboardLayout/ej2-dashboardLayout';
|
|
11
|
-
import { Ej2ComboBox } from './widgets/comboBox/ej2-comboBox';
|
|
12
|
-
import { Ej2CheckboxList } from './widgets/checkbox/ej2-checkbox-list';
|
|
13
|
-
import { Ej2Checkbox } from './widgets/checkbox/ej2-checkbox';
|
|
14
|
-
import { Ej2Button } from './widgets/button/ej2-button';
|
|
15
|
-
import { Ej2AutoComplete } from './widgets/autoComplete/ej2-autoComplete';
|
|
16
|
-
import { Ej2Accordion } from './widgets/accordion/ej2-accordion';
|
|
17
|
-
import { Ej2DropDownList } from './widgets/dropDownList/ej2-dropDownList';
|
|
18
|
-
import { Ej2Grid } from './widgets/grid/ej2-grid';
|
|
19
|
-
import { Ej2ListView } from './widgets/listView/ej2-listView';
|
|
20
|
-
import { Ej2MaskedTextBox } from './widgets/maskedTextBox/ej2-maskedTextBox';
|
|
21
|
-
import { Ej2NumericTextBox } from './widgets/numericTextBox/ej2-numericTextBox';
|
|
22
|
-
import { Ej2Pager } from './widgets/pager/ej2-pager';
|
|
23
|
-
import { Ej2ProgressButton } from './widgets/progressButton/ej2-progress-button';
|
|
24
|
-
import { Ej2Radio } from './widgets/radio/ej2-radio';
|
|
25
|
-
import { Ej2Slider } from './widgets/slider/ej2-slider';
|
|
26
|
-
import { Ej2Switch } from './widgets/switch/ej2-switch';
|
|
27
|
-
import { Ej2TimePicker } from './widgets/timePicker/ej2-timePicker';
|
|
28
|
-
import { Ej2TreeView } from './widgets/treeView/ej2-treeView';
|
|
29
|
-
import { Ej2Uploader } from './widgets/uploader/ej2-uploader';
|
|
30
|
-
import { Ej2Splitter } from './widgets/splitter/ej2-splitter';
|
|
31
|
-
import { Ej2DropDownTree } from './widgets/dropDownTree/ej2-dropDownTree';
|
|
32
|
-
export class ConfigBuilder {
|
|
33
|
-
constructor() {
|
|
34
|
-
this.resources = [];
|
|
35
|
-
this.useGlobalResources = true;
|
|
36
|
-
}
|
|
37
|
-
useAll() {
|
|
38
|
-
this
|
|
39
|
-
.ej2Accordion()
|
|
40
|
-
.ej2AutoComplete()
|
|
41
|
-
.ej2Button()
|
|
42
|
-
.ej2Checkbox()
|
|
43
|
-
.ej2CheckboxList()
|
|
44
|
-
.ej2ComboBox()
|
|
45
|
-
.ej2DatePicker()
|
|
46
|
-
.ej2DateRangePicker()
|
|
47
|
-
.ej2DateTimePicker()
|
|
48
|
-
.ej2DashboardLayout()
|
|
49
|
-
.ej2DropDownList()
|
|
50
|
-
.ej2DropDownTree()
|
|
51
|
-
.ej2FileManager()
|
|
52
|
-
.ej2Grid()
|
|
53
|
-
.ej2ListView()
|
|
54
|
-
.ej2MaskedTextBox()
|
|
55
|
-
.ej2MultiSelect()
|
|
56
|
-
.ej2NumericTextBox()
|
|
57
|
-
.ej2Pager()
|
|
58
|
-
.ej2ProgressButton()
|
|
59
|
-
.ej2Radio()
|
|
60
|
-
.ej2Schedule()
|
|
61
|
-
.ej2Sidebar()
|
|
62
|
-
.ej2Slider()
|
|
63
|
-
.ej2Splitter()
|
|
64
|
-
.ej2Switch()
|
|
65
|
-
.ej2TextBox()
|
|
66
|
-
.ej2TimePicker()
|
|
67
|
-
.ej2TreeView()
|
|
68
|
-
.ej2Uploader();
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
|
-
useDefaults() {
|
|
72
|
-
return this.useAll().useTheme("material");
|
|
73
|
-
}
|
|
74
|
-
useTheme(theme) {
|
|
75
|
-
switch (theme) {
|
|
76
|
-
case "material":
|
|
77
|
-
return this.materialTheme();
|
|
78
|
-
default:
|
|
79
|
-
return this;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
materialTheme() {
|
|
83
|
-
this.resources.push(PLATFORM.moduleName("@syncfusion/ej2/material.css"));
|
|
84
|
-
return this;
|
|
85
|
-
}
|
|
86
|
-
withoutGlobalResources() {
|
|
87
|
-
this.useGlobalResources = false;
|
|
88
|
-
return this;
|
|
89
|
-
}
|
|
90
|
-
ej2Accordion() {
|
|
91
|
-
this.resources.push(Ej2Accordion);
|
|
92
|
-
return this;
|
|
93
|
-
}
|
|
94
|
-
ej2AutoComplete() {
|
|
95
|
-
this.resources.push(Ej2AutoComplete);
|
|
96
|
-
return this;
|
|
97
|
-
}
|
|
98
|
-
ej2Button() {
|
|
99
|
-
this.resources.push(Ej2Button);
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
ej2Checkbox() {
|
|
103
|
-
this.resources.push(Ej2Checkbox);
|
|
104
|
-
return this;
|
|
105
|
-
}
|
|
106
|
-
ej2CheckboxList() {
|
|
107
|
-
this.resources.push(Ej2CheckboxList);
|
|
108
|
-
return this;
|
|
109
|
-
}
|
|
110
|
-
ej2ComboBox() {
|
|
111
|
-
this.resources.push(Ej2ComboBox);
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
ej2DashboardLayout() {
|
|
115
|
-
this.resources.push(Ej2DashboardLayout);
|
|
116
|
-
return this;
|
|
117
|
-
}
|
|
118
|
-
ej2DatePicker() {
|
|
119
|
-
this.resources.push(Ej2DatePicker);
|
|
120
|
-
return this;
|
|
121
|
-
}
|
|
122
|
-
ej2DateRangePicker() {
|
|
123
|
-
this.resources.push(Ej2DateRangePicker);
|
|
124
|
-
return this;
|
|
125
|
-
}
|
|
126
|
-
ej2DateTimePicker() {
|
|
127
|
-
this.resources.push(Ej2DateTimePicker);
|
|
128
|
-
return this;
|
|
129
|
-
}
|
|
130
|
-
ej2DropDownList() {
|
|
131
|
-
this.resources.push(Ej2DropDownList);
|
|
132
|
-
return this;
|
|
133
|
-
}
|
|
134
|
-
ej2DropDownTree() {
|
|
135
|
-
this.resources.push(Ej2DropDownTree);
|
|
136
|
-
return this;
|
|
137
|
-
}
|
|
138
|
-
ej2FileManager() {
|
|
139
|
-
this.resources.push(Ej2FileManager);
|
|
140
|
-
return this;
|
|
141
|
-
}
|
|
142
|
-
ej2Grid() {
|
|
143
|
-
this.resources.push(Ej2Grid);
|
|
144
|
-
return this;
|
|
145
|
-
}
|
|
146
|
-
ej2ListView() {
|
|
147
|
-
this.resources.push(Ej2ListView);
|
|
148
|
-
return this;
|
|
149
|
-
}
|
|
150
|
-
ej2MaskedTextBox() {
|
|
151
|
-
this.resources.push(Ej2MaskedTextBox);
|
|
152
|
-
return this;
|
|
153
|
-
}
|
|
154
|
-
ej2MultiSelect() {
|
|
155
|
-
this.resources.push(Ej2MultiSelect);
|
|
156
|
-
return this;
|
|
157
|
-
}
|
|
158
|
-
ej2NumericTextBox() {
|
|
159
|
-
this.resources.push(Ej2NumericTextBox);
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
|
-
ej2Pager() {
|
|
163
|
-
this.resources.push(Ej2Pager);
|
|
164
|
-
return this;
|
|
165
|
-
}
|
|
166
|
-
ej2ProgressButton() {
|
|
167
|
-
this.resources.push(Ej2ProgressButton);
|
|
168
|
-
return this;
|
|
169
|
-
}
|
|
170
|
-
ej2Radio() {
|
|
171
|
-
this.resources.push(Ej2Radio);
|
|
172
|
-
return this;
|
|
173
|
-
}
|
|
174
|
-
ej2Schedule() {
|
|
175
|
-
this.resources.push(Ej2Schedule);
|
|
176
|
-
return this;
|
|
177
|
-
}
|
|
178
|
-
ej2Sidebar() {
|
|
179
|
-
this.resources.push(Ej2Sidebar);
|
|
180
|
-
return this;
|
|
181
|
-
}
|
|
182
|
-
ej2Slider() {
|
|
183
|
-
this.resources.push(Ej2Slider);
|
|
184
|
-
return this;
|
|
185
|
-
}
|
|
186
|
-
ej2Splitter() {
|
|
187
|
-
this.resources.push(Ej2Splitter);
|
|
188
|
-
return this;
|
|
189
|
-
}
|
|
190
|
-
ej2Switch() {
|
|
191
|
-
this.resources.push(Ej2Switch);
|
|
192
|
-
return this;
|
|
193
|
-
}
|
|
194
|
-
ej2TextBox() {
|
|
195
|
-
this.resources.push(Ej2TextBox);
|
|
196
|
-
return this;
|
|
197
|
-
}
|
|
198
|
-
ej2TimePicker() {
|
|
199
|
-
this.resources.push(Ej2TimePicker);
|
|
200
|
-
return this;
|
|
201
|
-
}
|
|
202
|
-
ej2TreeView() {
|
|
203
|
-
this.resources.push(Ej2TreeView);
|
|
204
|
-
return this;
|
|
205
|
-
}
|
|
206
|
-
ej2Uploader() {
|
|
207
|
-
this.resources.push(Ej2Uploader);
|
|
208
|
-
return this;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export declare const ControlBindings: {
|
|
2
|
-
common: {
|
|
3
|
-
oneWay: string[];
|
|
4
|
-
};
|
|
5
|
-
accordion: {
|
|
6
|
-
oneWay: string[];
|
|
7
|
-
events: string[];
|
|
8
|
-
};
|
|
9
|
-
autoComplete: {
|
|
10
|
-
oneWay: string[];
|
|
11
|
-
twoWay: string[];
|
|
12
|
-
events: string[];
|
|
13
|
-
};
|
|
14
|
-
button: {
|
|
15
|
-
oneWay: string[];
|
|
16
|
-
events: string[];
|
|
17
|
-
};
|
|
18
|
-
checkbox: {
|
|
19
|
-
oneWay: string[];
|
|
20
|
-
twoWay: string[];
|
|
21
|
-
events: string[];
|
|
22
|
-
};
|
|
23
|
-
comboBox: {
|
|
24
|
-
oneWay: string[];
|
|
25
|
-
twoWay: string[];
|
|
26
|
-
events: string[];
|
|
27
|
-
};
|
|
28
|
-
dashboardLayout: {
|
|
29
|
-
oneWay: string[];
|
|
30
|
-
events: string[];
|
|
31
|
-
};
|
|
32
|
-
datePicker: {
|
|
33
|
-
oneWay: string[];
|
|
34
|
-
twoWay: string[];
|
|
35
|
-
events: string[];
|
|
36
|
-
};
|
|
37
|
-
dateRangePicker: {
|
|
38
|
-
oneWay: string[];
|
|
39
|
-
twoWay: string[];
|
|
40
|
-
events: string[];
|
|
41
|
-
};
|
|
42
|
-
dateTimePicker: {
|
|
43
|
-
oneWay: string[];
|
|
44
|
-
twoWay: string[];
|
|
45
|
-
events: string[];
|
|
46
|
-
};
|
|
47
|
-
dropDownList: {
|
|
48
|
-
oneWay: string[];
|
|
49
|
-
twoWay: string[];
|
|
50
|
-
events: string[];
|
|
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
|
-
};
|
|
62
|
-
grid: {
|
|
63
|
-
oneWay: string[];
|
|
64
|
-
fromView: string[];
|
|
65
|
-
twoWay: string[];
|
|
66
|
-
events: string[];
|
|
67
|
-
};
|
|
68
|
-
listView: {
|
|
69
|
-
oneWay: string[];
|
|
70
|
-
events: string[];
|
|
71
|
-
};
|
|
72
|
-
maskedTextBox: {
|
|
73
|
-
oneWay: string[];
|
|
74
|
-
twoWay: string[];
|
|
75
|
-
events: string[];
|
|
76
|
-
};
|
|
77
|
-
multiSelect: {
|
|
78
|
-
oneWay: string[];
|
|
79
|
-
twoWay: string[];
|
|
80
|
-
events: string[];
|
|
81
|
-
};
|
|
82
|
-
numericTextBox: {
|
|
83
|
-
oneWay: string[];
|
|
84
|
-
twoWay: string[];
|
|
85
|
-
events: string[];
|
|
86
|
-
};
|
|
87
|
-
pager: {
|
|
88
|
-
twoWay: string[];
|
|
89
|
-
events: string[];
|
|
90
|
-
};
|
|
91
|
-
progressButton: {
|
|
92
|
-
oneWay: string[];
|
|
93
|
-
events: string[];
|
|
94
|
-
};
|
|
95
|
-
radio: {
|
|
96
|
-
oneWay: string[];
|
|
97
|
-
events: string[];
|
|
98
|
-
};
|
|
99
|
-
schedule: {
|
|
100
|
-
oneWay: string[];
|
|
101
|
-
events: string[];
|
|
102
|
-
};
|
|
103
|
-
sidebar: {
|
|
104
|
-
oneWay: string[];
|
|
105
|
-
events: string[];
|
|
106
|
-
};
|
|
107
|
-
slider: {
|
|
108
|
-
oneWay: string[];
|
|
109
|
-
twoWay: string[];
|
|
110
|
-
events: string[];
|
|
111
|
-
};
|
|
112
|
-
splitter: {
|
|
113
|
-
oneWay: string[];
|
|
114
|
-
events: string[];
|
|
115
|
-
};
|
|
116
|
-
switch: {
|
|
117
|
-
oneWay: string[];
|
|
118
|
-
twoWay: string[];
|
|
119
|
-
events: string[];
|
|
120
|
-
};
|
|
121
|
-
textBox: {
|
|
122
|
-
oneWay: string[];
|
|
123
|
-
twoWay: string[];
|
|
124
|
-
events: string[];
|
|
125
|
-
};
|
|
126
|
-
timePicker: {
|
|
127
|
-
oneWay: string[];
|
|
128
|
-
twoWay: string[];
|
|
129
|
-
events: string[];
|
|
130
|
-
};
|
|
131
|
-
treeView: {
|
|
132
|
-
oneWay: string[];
|
|
133
|
-
twoWay: string[];
|
|
134
|
-
events: string[];
|
|
135
|
-
};
|
|
136
|
-
uploader: {
|
|
137
|
-
oneWay: string[];
|
|
138
|
-
events: string[];
|
|
139
|
-
};
|
|
140
|
-
};
|