aurelia-syncfusion-ej2-bridge 1.0.6 → 1.0.8
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 +35 -34
- package/package.json +2 -2
- package/.vscode/extensions.json +0 -10
- package/.vscode/launch.json +0 -31
- package/.vscode/settings.json +0 -5
- 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 -161
- 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 -44
- package/dist/commonjs/configBuider.d.ts +0 -41
- package/dist/commonjs/configBuider.js +0 -224
- package/dist/commonjs/controlBindings.d.ts +0 -150
- package/dist/commonjs/controlBindings.js +0 -184
- 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 -63
- 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/richTextEditor/ej2-richTextEditor.d.ts +0 -8
- package/dist/commonjs/widgets/richTextEditor/ej2-richTextEditor.js +0 -32
- 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 -10
- package/dist/commonjs/widgets/slider/ej2-slider.js +0 -52
- 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/timeline/ej2-timeline.d.ts +0 -7
- package/dist/commonjs/widgets/timeline/ej2-timeline.js +0 -29
- 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 -357
- 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 -158
- 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 -40
- package/dist/native-modules/configBuider.d.ts +0 -41
- package/dist/native-modules/configBuider.js +0 -220
- package/dist/native-modules/controlBindings.d.ts +0 -150
- package/dist/native-modules/controlBindings.js +0 -181
- 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 -1
- package/dist/native-modules/interfaces/IEj2Uploader.d.ts +0 -17
- package/dist/native-modules/interfaces/IEj2Uploader.js +0 -1
- 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/richTextEditor/ej2-richTextEditor.d.ts +0 -8
- package/dist/native-modules/widgets/richTextEditor/ej2-richTextEditor.js +0 -29
- 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 -10
- package/dist/native-modules/widgets/slider/ej2-slider.js +0 -46
- 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/timeline/ej2-timeline.d.ts +0 -7
- package/dist/native-modules/widgets/timeline/ej2-timeline.js +0 -26
- 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 -354
package/README.md
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
# `aurelia-syncfusion-ej-2-bridge`
|
|
2
|
-
|
|
3
|
-
This wrapper is not fully supported, use at your own risk
|
|
4
|
-
|
|
5
|
-
# Supported controls
|
|
6
|
-
* Accoridon
|
|
7
|
-
* Auto Complete
|
|
8
|
-
* Button
|
|
9
|
-
* Checkbox
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Date
|
|
14
|
-
*
|
|
15
|
-
* Dropdown
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
1
|
+
# `aurelia-syncfusion-ej-2-bridge`
|
|
2
|
+
|
|
3
|
+
This wrapper is not fully supported, use at your own risk
|
|
4
|
+
|
|
5
|
+
# Supported controls
|
|
6
|
+
* Accoridon
|
|
7
|
+
* Auto Complete
|
|
8
|
+
* Button
|
|
9
|
+
* Checkbox
|
|
10
|
+
* Color Picker
|
|
11
|
+
* Combobox
|
|
12
|
+
* Dashboard Layout
|
|
13
|
+
* Date Picker
|
|
14
|
+
* Date Time Picker
|
|
15
|
+
* Dropdown List
|
|
16
|
+
* Dropdown Tree
|
|
17
|
+
* File Manager
|
|
18
|
+
* Grid
|
|
19
|
+
* List View
|
|
20
|
+
* Masked Textbox
|
|
21
|
+
* Numeric Textbox
|
|
22
|
+
* Pager
|
|
23
|
+
* Progress Button
|
|
24
|
+
* Radio
|
|
25
|
+
* Rich Text Editor
|
|
26
|
+
* Schedule
|
|
27
|
+
* Sidebar
|
|
28
|
+
* Slider
|
|
29
|
+
* Splitter
|
|
30
|
+
* Switch
|
|
31
|
+
* Textbox
|
|
32
|
+
* Timeline
|
|
33
|
+
* Time Picker
|
|
34
|
+
* Tree View
|
|
35
|
+
* Uploader
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aurelia-syncfusion-ej2-bridge",
|
|
3
3
|
"description": "An Aurelia plugin wrapper for syncfusion EJ2 controls",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aurelia",
|
|
7
7
|
"syncfusion"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "au build-plugin"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@syncfusion/ej2": "^27.1.
|
|
24
|
+
"@syncfusion/ej2": "^27.1.53",
|
|
25
25
|
"@types/jest": "^24.0.9",
|
|
26
26
|
"@types/node": "^20.12.7",
|
|
27
27
|
"aurelia-animator-css": "^1.0.4",
|
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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/.vscode/settings.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { TaskQueue } from 'aurelia-task-queue';
|
|
2
|
-
import { BindingEngine, Disposable } from "aurelia-framework";
|
|
3
|
-
import { ControlContainer, Control } from "./controlContainer";
|
|
4
|
-
import { EventAggregator } from 'aurelia-event-aggregator';
|
|
5
|
-
export declare class ControlBase<T, U> {
|
|
6
|
-
protected bindingEngine: BindingEngine;
|
|
7
|
-
private controlContainer;
|
|
8
|
-
protected taskQueue: TaskQueue;
|
|
9
|
-
protected eventAggregator: EventAggregator;
|
|
10
|
-
protected element: Element;
|
|
11
|
-
private eModel;
|
|
12
|
-
protected _eModel: U;
|
|
13
|
-
protected widgetElement: HTMLElement;
|
|
14
|
-
widget: T;
|
|
15
|
-
protected bindingContext: any;
|
|
16
|
-
protected logName: string;
|
|
17
|
-
private propertyPriority;
|
|
18
|
-
protected get controlType(): Function;
|
|
19
|
-
protected subscriptions: Disposable[];
|
|
20
|
-
constructor(bindingEngine: BindingEngine, controlContainer: ControlContainer, taskQueue: TaskQueue, eventAggregator: EventAggregator, element: Element);
|
|
21
|
-
onBind(): void;
|
|
22
|
-
onAttached(): void;
|
|
23
|
-
onCreateControl(): void;
|
|
24
|
-
protected debug(message: string, ...rest: any[]): void;
|
|
25
|
-
protected info(message: string, ...rest: any[]): void;
|
|
26
|
-
protected error(message: string, ...rest: any[]): void;
|
|
27
|
-
protected warn(message: string, ...rest: any[]): void;
|
|
28
|
-
bind(context: any): void;
|
|
29
|
-
protected setInitialBindings(): void;
|
|
30
|
-
getBindables(): Control;
|
|
31
|
-
createControlEvents(control: Control): void;
|
|
32
|
-
createControlPropertySubscriptions(control: Control): void;
|
|
33
|
-
attached(): void;
|
|
34
|
-
protected appendWidget(): void;
|
|
35
|
-
detached(): void;
|
|
36
|
-
}
|
|
37
|
-
export declare const ExcludedProperties: string[];
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ExcludedProperties = exports.ControlBase = void 0;
|
|
13
|
-
const aurelia_task_queue_1 = require("aurelia-task-queue");
|
|
14
|
-
const aurelia_framework_1 = require("aurelia-framework");
|
|
15
|
-
const controlContainer_1 = require("./controlContainer");
|
|
16
|
-
const constants_1 = require("./constants");
|
|
17
|
-
const aurelia_event_aggregator_1 = require("aurelia-event-aggregator");
|
|
18
|
-
let logger = aurelia_framework_1.LogManager.getLogger("SyncfusionBridge");
|
|
19
|
-
let ControlBase = class ControlBase {
|
|
20
|
-
get controlType() {
|
|
21
|
-
throw "syncfusionControlType is not set";
|
|
22
|
-
}
|
|
23
|
-
constructor(bindingEngine, controlContainer, taskQueue, eventAggregator, element) {
|
|
24
|
-
this.bindingEngine = bindingEngine;
|
|
25
|
-
this.controlContainer = controlContainer;
|
|
26
|
-
this.taskQueue = taskQueue;
|
|
27
|
-
this.eventAggregator = eventAggregator;
|
|
28
|
-
this.element = element;
|
|
29
|
-
this.eModel = null;
|
|
30
|
-
this._eModel = null;
|
|
31
|
-
this.widgetElement = null;
|
|
32
|
-
this.widget = null;
|
|
33
|
-
this.bindingContext = null;
|
|
34
|
-
this.logName = "";
|
|
35
|
-
this.propertyPriority = true;
|
|
36
|
-
this.subscriptions = [];
|
|
37
|
-
}
|
|
38
|
-
onBind() {
|
|
39
|
-
}
|
|
40
|
-
onAttached() {
|
|
41
|
-
}
|
|
42
|
-
onCreateControl() {
|
|
43
|
-
throw "onCreateControl is not implemented";
|
|
44
|
-
}
|
|
45
|
-
debug(message, ...rest) {
|
|
46
|
-
logger.debug(`[${this.logName}] - ${message}`, rest);
|
|
47
|
-
}
|
|
48
|
-
info(message, ...rest) {
|
|
49
|
-
logger.info(`[${this.logName}] - ${message}`, rest);
|
|
50
|
-
}
|
|
51
|
-
error(message, ...rest) {
|
|
52
|
-
logger.error(`[${this.logName}] - ${message}`, rest);
|
|
53
|
-
}
|
|
54
|
-
warn(message, ...rest) {
|
|
55
|
-
logger.warn(`[${this.logName}] - ${message}`, rest);
|
|
56
|
-
}
|
|
57
|
-
bind(context) {
|
|
58
|
-
this.logName = this.controlType.name;
|
|
59
|
-
this.bindingContext = context;
|
|
60
|
-
this._eModel = Object.assign({}, this.eModel);
|
|
61
|
-
this.setInitialBindings();
|
|
62
|
-
this.onCreateControl();
|
|
63
|
-
this.onBind();
|
|
64
|
-
}
|
|
65
|
-
setInitialBindings() {
|
|
66
|
-
let _control = this.getBindables();
|
|
67
|
-
let bindablePrefixLength = constants_1.constants.bindablePrefix.length;
|
|
68
|
-
_control.bindableProperties.forEach((property) => {
|
|
69
|
-
if (!property.startsWith(constants_1.constants.eventPrefix)) {
|
|
70
|
-
let modelProperty = property.substr(bindablePrefixLength);
|
|
71
|
-
if (this[property] !== undefined && (this.propertyPriority || this._eModel[modelProperty] === undefined)) {
|
|
72
|
-
this._eModel[modelProperty] = this[property];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
this.createControlPropertySubscriptions(_control);
|
|
77
|
-
}
|
|
78
|
-
getBindables() {
|
|
79
|
-
let _control = this.controlContainer.get(this.controlType);
|
|
80
|
-
if (!_control) {
|
|
81
|
-
_control = {};
|
|
82
|
-
_control.type = this.controlType;
|
|
83
|
-
_control.bindableProperties = [];
|
|
84
|
-
_control.bindableEvents = [];
|
|
85
|
-
for (let property in this["__observers__"]) {
|
|
86
|
-
if (exports.ExcludedProperties.indexOf(property) === -1) {
|
|
87
|
-
if (property.startsWith(constants_1.constants.eventPrefix)) {
|
|
88
|
-
_control.bindableEvents.push(property);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
_control.bindableProperties.push(property);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return _control;
|
|
97
|
-
}
|
|
98
|
-
createControlEvents(control) {
|
|
99
|
-
control.bindableEvents.forEach((event) => {
|
|
100
|
-
let eventName = event.substr(constants_1.constants.eventPrefix.length);
|
|
101
|
-
this.widget.addEventListener(eventName, (args) => {
|
|
102
|
-
this.element.dispatchEvent(new CustomEvent(event, {
|
|
103
|
-
bubbles: true,
|
|
104
|
-
detail: args
|
|
105
|
-
}));
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
createControlPropertySubscriptions(control) {
|
|
110
|
-
if (control) {
|
|
111
|
-
let bindablePrefixLength = constants_1.constants.bindablePrefix.length;
|
|
112
|
-
control.bindableProperties.forEach((binding) => {
|
|
113
|
-
let modelBinding = binding.substr(bindablePrefixLength);
|
|
114
|
-
this.subscriptions.push(this.bindingEngine.propertyObserver(this, binding).subscribe((newValue) => {
|
|
115
|
-
if (this.widget.properties.hasOwnProperty(modelBinding)) {
|
|
116
|
-
let customFunc = `${modelBinding}Changed`;
|
|
117
|
-
if (typeof this[customFunc] === "function") {
|
|
118
|
-
this[customFunc].call(this, newValue);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
this.widget[modelBinding] = newValue;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}));
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
attached() {
|
|
129
|
-
this.appendWidget();
|
|
130
|
-
this.onAttached();
|
|
131
|
-
}
|
|
132
|
-
appendWidget() {
|
|
133
|
-
this.widget.appendTo(this.widgetElement);
|
|
134
|
-
}
|
|
135
|
-
detached() {
|
|
136
|
-
this.subscriptions.forEach((subscription) => { if (subscription) {
|
|
137
|
-
subscription.dispose();
|
|
138
|
-
} });
|
|
139
|
-
if (this.widget.destroy) {
|
|
140
|
-
this.widget.destroy();
|
|
141
|
-
}
|
|
142
|
-
this.widget = null;
|
|
143
|
-
this._eModel = null;
|
|
144
|
-
this.widgetElement = null;
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
exports.ControlBase = ControlBase;
|
|
148
|
-
__decorate([
|
|
149
|
-
aurelia_framework_1.bindable,
|
|
150
|
-
__metadata("design:type", Object)
|
|
151
|
-
], ControlBase.prototype, "eModel", void 0);
|
|
152
|
-
exports.ControlBase = ControlBase = __decorate([
|
|
153
|
-
aurelia_framework_1.autoinject,
|
|
154
|
-
__metadata("design:paramtypes", [aurelia_framework_1.BindingEngine, controlContainer_1.ControlContainer,
|
|
155
|
-
aurelia_task_queue_1.TaskQueue, aurelia_event_aggregator_1.EventAggregator, Element])
|
|
156
|
-
], ControlBase);
|
|
157
|
-
exports.ExcludedProperties = [
|
|
158
|
-
"__propertiesDefined__",
|
|
159
|
-
"eModel",
|
|
160
|
-
"onClick"
|
|
161
|
-
];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ControlContainer = void 0;
|
|
4
|
-
class ControlContainer {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.controls = [];
|
|
7
|
-
}
|
|
8
|
-
add(control) {
|
|
9
|
-
let existing = this.controls.find((x) => x.type === control.type);
|
|
10
|
-
if (!existing) {
|
|
11
|
-
this.controls.push(control);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
get(type) {
|
|
15
|
-
let _control = this.controls.find((x) => x.type === type);
|
|
16
|
-
return _control;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.ControlContainer = ControlContainer;
|
|
@@ -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
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SyncfusionWrapper = void 0;
|
|
4
|
-
const controlBase_1 = require("./controlBase");
|
|
5
|
-
class SyncfusionWrapper extends controlBase_1.ControlBase {
|
|
6
|
-
onCreateControl() {
|
|
7
|
-
this.onBeforeWidgetInstantiation();
|
|
8
|
-
this.widget = new this.syncfusionWidgetType(this._eModel);
|
|
9
|
-
this.widget.created = () => { this.onWidgetCreated(); };
|
|
10
|
-
this.onWrapperCreated();
|
|
11
|
-
this.createControlEvents(this.getBindables());
|
|
12
|
-
}
|
|
13
|
-
recreate() {
|
|
14
|
-
this.onRecreate();
|
|
15
|
-
this.widget.destroy();
|
|
16
|
-
this.widget = null;
|
|
17
|
-
this.recreating();
|
|
18
|
-
this.setInitialBindings();
|
|
19
|
-
this.onCreateControl();
|
|
20
|
-
this.appendWidget();
|
|
21
|
-
this.recreated();
|
|
22
|
-
}
|
|
23
|
-
onRecreate() {
|
|
24
|
-
}
|
|
25
|
-
recreating() {
|
|
26
|
-
}
|
|
27
|
-
recreated() {
|
|
28
|
-
}
|
|
29
|
-
refresh() {
|
|
30
|
-
this.widget.refresh();
|
|
31
|
-
}
|
|
32
|
-
dataBind() {
|
|
33
|
-
this.widget.dataBind();
|
|
34
|
-
}
|
|
35
|
-
get controlType() {
|
|
36
|
-
if (this.syncfusionWidgetType) {
|
|
37
|
-
return this.syncfusionWidgetType;
|
|
38
|
-
}
|
|
39
|
-
throw "syncfusionControlType is not set";
|
|
40
|
-
}
|
|
41
|
-
onBeforeWidgetInstantiation() {
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.SyncfusionWrapper = SyncfusionWrapper;
|
|
@@ -1,41 +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
|
-
ej2Timeline(): ConfigBuilder;
|
|
38
|
-
ej2TreeView(): ConfigBuilder;
|
|
39
|
-
ej2Uploader(): ConfigBuilder;
|
|
40
|
-
ej2RichTextEditor(): ConfigBuilder;
|
|
41
|
-
}
|