aurelia-syncfusion-ej2-bridge 1.0.8 → 1.0.10
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/dist/commonjs/common/constants.d.ts +4 -0
- package/dist/commonjs/common/constants.js +7 -0
- package/dist/commonjs/common/controlBase.d.ts +37 -0
- package/dist/commonjs/common/controlBase.js +161 -0
- package/dist/commonjs/common/controlContainer.d.ts +10 -0
- package/dist/commonjs/common/controlContainer.js +19 -0
- package/dist/commonjs/common/syncfusionWrapper.d.ts +15 -0
- package/dist/commonjs/common/syncfusionWrapper.js +44 -0
- package/dist/commonjs/configBuider.d.ts +42 -0
- package/dist/commonjs/configBuider.js +230 -0
- package/dist/commonjs/controlBindings.d.ts +155 -0
- package/dist/commonjs/controlBindings.js +189 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/interfaces/IEJ2WidgetBridge.d.ts +6 -0
- package/dist/commonjs/interfaces/IEJ2WidgetBridge.js +2 -0
- package/dist/commonjs/interfaces/IEj2Uploader.d.ts +17 -0
- package/dist/commonjs/interfaces/IEj2Uploader.js +2 -0
- package/dist/commonjs/utilities/decorator.d.ts +2 -0
- package/dist/commonjs/utilities/decorator.js +63 -0
- package/dist/commonjs/widgets/accordion/ej2-accordion.d.ts +7 -0
- package/dist/commonjs/widgets/accordion/ej2-accordion.js +31 -0
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.d.ts +7 -0
- package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.js +29 -0
- package/dist/commonjs/widgets/button/ej2-button.d.ts +14 -0
- package/dist/commonjs/widgets/button/ej2-button.js +55 -0
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.d.ts +17 -0
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +77 -0
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.d.ts +12 -0
- package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +58 -0
- package/dist/commonjs/widgets/colorPicker/ej2-colorPicker.d.ts +8 -0
- package/dist/commonjs/widgets/colorPicker/ej2-colorPicker.js +35 -0
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.d.ts +8 -0
- package/dist/commonjs/widgets/comboBox/ej2-comboBox.js +35 -0
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.d.ts +7 -0
- package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.js +29 -0
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.d.ts +8 -0
- package/dist/commonjs/widgets/datePicker/ej2-DatePicker.js +35 -0
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.d.ts +8 -0
- package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.js +37 -0
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.d.ts +8 -0
- package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.js +35 -0
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.d.ts +9 -0
- package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.js +39 -0
- 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.d.ts +8 -0
- package/dist/commonjs/widgets/grid/ej2-grid.js +97 -0
- package/dist/commonjs/widgets/listView/ej2-listView.d.ts +8 -0
- package/dist/commonjs/widgets/listView/ej2-listView.js +34 -0
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.d.ts +8 -0
- package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.js +37 -0
- 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.d.ts +8 -0
- package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.js +35 -0
- package/dist/commonjs/widgets/pager/ej2-pager.d.ts +7 -0
- package/dist/commonjs/widgets/pager/ej2-pager.js +29 -0
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.d.ts +17 -0
- package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +64 -0
- package/dist/commonjs/widgets/radio/ej2-radio.d.ts +13 -0
- package/dist/commonjs/widgets/radio/ej2-radio.js +54 -0
- package/dist/commonjs/widgets/richTextEditor/ej2-richTextEditor.d.ts +8 -0
- package/dist/commonjs/widgets/richTextEditor/ej2-richTextEditor.js +32 -0
- 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.d.ts +10 -0
- package/dist/commonjs/widgets/slider/ej2-slider.js +52 -0
- 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 +11 -0
- package/dist/commonjs/widgets/switch/ej2-switch.js +52 -0
- package/dist/commonjs/widgets/textBox/ej2-textBox.d.ts +8 -0
- package/dist/commonjs/widgets/textBox/ej2-textBox.js +37 -0
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.d.ts +8 -0
- package/dist/commonjs/widgets/timePicker/ej2-timePicker.js +35 -0
- package/dist/commonjs/widgets/timeline/ej2-timeline.d.ts +7 -0
- package/dist/commonjs/widgets/timeline/ej2-timeline.js +29 -0
- package/dist/commonjs/widgets/treeView/ej2-treeView.d.ts +7 -0
- package/dist/commonjs/widgets/treeView/ej2-treeView.js +29 -0
- package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +50 -0
- package/dist/commonjs/widgets/uploader/ej2-uploader.js +357 -0
- package/dist/native-modules/common/constants.d.ts +4 -0
- package/dist/native-modules/common/constants.js +4 -0
- package/dist/native-modules/common/controlBase.d.ts +37 -0
- package/dist/native-modules/common/controlBase.js +158 -0
- package/dist/native-modules/common/controlContainer.d.ts +10 -0
- package/dist/native-modules/common/controlContainer.js +15 -0
- package/dist/native-modules/common/syncfusionWrapper.d.ts +15 -0
- package/dist/native-modules/common/syncfusionWrapper.js +40 -0
- package/dist/native-modules/configBuider.d.ts +42 -0
- package/dist/native-modules/configBuider.js +226 -0
- package/dist/native-modules/controlBindings.d.ts +155 -0
- package/dist/native-modules/controlBindings.js +186 -0
- package/dist/native-modules/index.d.ts +6 -0
- package/dist/native-modules/index.js +12 -0
- package/dist/native-modules/interfaces/IEJ2WidgetBridge.d.ts +6 -0
- package/dist/native-modules/interfaces/IEJ2WidgetBridge.js +1 -0
- package/dist/native-modules/interfaces/IEj2Uploader.d.ts +17 -0
- package/dist/native-modules/interfaces/IEj2Uploader.js +1 -0
- package/dist/native-modules/utilities/decorator.d.ts +2 -0
- package/dist/native-modules/utilities/decorator.js +59 -0
- package/dist/native-modules/widgets/accordion/ej2-accordion.d.ts +7 -0
- package/dist/native-modules/widgets/accordion/ej2-accordion.js +28 -0
- package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.d.ts +7 -0
- package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.js +26 -0
- package/dist/native-modules/widgets/button/ej2-button.d.ts +14 -0
- package/dist/native-modules/widgets/button/ej2-button.js +52 -0
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.d.ts +17 -0
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +74 -0
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.d.ts +12 -0
- package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +55 -0
- package/dist/native-modules/widgets/colorPicker/ej2-colorPicker.d.ts +8 -0
- package/dist/native-modules/widgets/colorPicker/ej2-colorPicker.js +32 -0
- package/dist/native-modules/widgets/comboBox/ej2-comboBox.d.ts +8 -0
- package/dist/native-modules/widgets/comboBox/ej2-comboBox.js +32 -0
- package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.d.ts +7 -0
- package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.js +26 -0
- package/dist/native-modules/widgets/datePicker/ej2-DatePicker.d.ts +8 -0
- package/dist/native-modules/widgets/datePicker/ej2-DatePicker.js +32 -0
- package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.d.ts +8 -0
- package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.js +34 -0
- package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.d.ts +8 -0
- package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.js +32 -0
- package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.d.ts +9 -0
- package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.js +36 -0
- 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.d.ts +8 -0
- package/dist/native-modules/widgets/grid/ej2-grid.js +94 -0
- package/dist/native-modules/widgets/listView/ej2-listView.d.ts +8 -0
- package/dist/native-modules/widgets/listView/ej2-listView.js +31 -0
- package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.d.ts +8 -0
- package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.js +34 -0
- 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.d.ts +8 -0
- package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.js +32 -0
- package/dist/native-modules/widgets/pager/ej2-pager.d.ts +7 -0
- package/dist/native-modules/widgets/pager/ej2-pager.js +26 -0
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.d.ts +17 -0
- package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +61 -0
- package/dist/native-modules/widgets/radio/ej2-radio.d.ts +13 -0
- package/dist/native-modules/widgets/radio/ej2-radio.js +51 -0
- package/dist/native-modules/widgets/richTextEditor/ej2-richTextEditor.d.ts +8 -0
- package/dist/native-modules/widgets/richTextEditor/ej2-richTextEditor.js +29 -0
- 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.d.ts +10 -0
- package/dist/native-modules/widgets/slider/ej2-slider.js +46 -0
- 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 +11 -0
- package/dist/native-modules/widgets/switch/ej2-switch.js +49 -0
- package/dist/native-modules/widgets/textBox/ej2-textBox.d.ts +8 -0
- package/dist/native-modules/widgets/textBox/ej2-textBox.js +34 -0
- package/dist/native-modules/widgets/timePicker/ej2-timePicker.d.ts +8 -0
- package/dist/native-modules/widgets/timePicker/ej2-timePicker.js +32 -0
- package/dist/native-modules/widgets/timeline/ej2-timeline.d.ts +7 -0
- package/dist/native-modules/widgets/timeline/ej2-timeline.js +26 -0
- package/dist/native-modules/widgets/treeView/ej2-treeView.d.ts +7 -0
- package/dist/native-modules/widgets/treeView/ej2-treeView.js +26 -0
- package/dist/native-modules/widgets/uploader/ej2-uploader.d.ts +50 -0
- package/dist/native-modules/widgets/uploader/ej2-uploader.js +354 -0
- package/package.json +2 -2
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2Button = void 0;
|
|
10
|
+
const ej2_buttons_1 = require("@syncfusion/ej2-buttons");
|
|
11
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
12
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
13
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
14
|
+
let Ej2Button = class Ej2Button extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.clickEvent = null;
|
|
18
|
+
this._onClick = null;
|
|
19
|
+
this.syncfusionWidgetType = ej2_buttons_1.Button;
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
let _this = this;
|
|
23
|
+
this._onClick = (event) => {
|
|
24
|
+
_this.element.dispatchEvent(_this.clickEvent);
|
|
25
|
+
event.stopPropagation();
|
|
26
|
+
};
|
|
27
|
+
this.widget.element.addEventListener("click", this._onClick, false);
|
|
28
|
+
}
|
|
29
|
+
onWrapperCreated() {
|
|
30
|
+
this.clickEvent = new CustomEvent("on-click", {
|
|
31
|
+
bubbles: true
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
refresh() {
|
|
35
|
+
this.widget.refresh();
|
|
36
|
+
}
|
|
37
|
+
focusIn() {
|
|
38
|
+
this.widget.focusIn();
|
|
39
|
+
}
|
|
40
|
+
click() {
|
|
41
|
+
this.widget.click();
|
|
42
|
+
}
|
|
43
|
+
dataBind() {
|
|
44
|
+
this.widget.dataBind();
|
|
45
|
+
}
|
|
46
|
+
detached() {
|
|
47
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.Ej2Button = Ej2Button;
|
|
51
|
+
exports.Ej2Button = Ej2Button = __decorate([
|
|
52
|
+
(0, decorator_1.generateBindables)("button"),
|
|
53
|
+
(0, aurelia_framework_1.inlineView)('<template><button element.ref="widgetElement"><slot></slot></button></template>'),
|
|
54
|
+
(0, aurelia_framework_1.customElement)('ej2-button')
|
|
55
|
+
], Ej2Button);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ej2Checkbox } from "./ej2-checkbox";
|
|
2
|
+
export declare class Ej2CheckboxList {
|
|
3
|
+
dataSource: any[];
|
|
4
|
+
selectedItems: any[];
|
|
5
|
+
optionModel: IOptionModel;
|
|
6
|
+
orientation: "horizontal" | "vertical";
|
|
7
|
+
matcher: (a: any, b: any) => boolean;
|
|
8
|
+
viewModels: Ej2Checkbox[];
|
|
9
|
+
attached(): void;
|
|
10
|
+
checkboxClick(option: any, ej2Checkbox: Ej2Checkbox): void;
|
|
11
|
+
isMatch(option: any): boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface IOptionModel {
|
|
14
|
+
name: string;
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.Ej2CheckboxList = void 0;
|
|
13
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
14
|
+
const constants_1 = require("../../common/constants");
|
|
15
|
+
let Ej2CheckboxList = class Ej2CheckboxList {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.dataSource = [];
|
|
18
|
+
this.selectedItems = [];
|
|
19
|
+
this.optionModel = null;
|
|
20
|
+
this.orientation = "horizontal";
|
|
21
|
+
this.matcher = null;
|
|
22
|
+
this.viewModels = [];
|
|
23
|
+
}
|
|
24
|
+
attached() {
|
|
25
|
+
}
|
|
26
|
+
checkboxClick(option, ej2Checkbox) {
|
|
27
|
+
if (ej2Checkbox[`${constants_1.constants.bindablePrefix}checked`]) {
|
|
28
|
+
if ((this.matcher && this.selectedItems.find((x) => this.matcher(x, option))) || !this.selectedItems.includes(option)) {
|
|
29
|
+
this.selectedItems.push(option);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
let index = this.matcher ? this.selectedItems.findIndex((x) => this.matcher(x, option)) : this.selectedItems.indexOf(option);
|
|
34
|
+
if (index !== -1) {
|
|
35
|
+
this.selectedItems.splice(index, 1);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
isMatch(option) {
|
|
42
|
+
return this.selectedItems.findIndex((x) => this.matcher(x, option)) !== -1;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.Ej2CheckboxList = Ej2CheckboxList;
|
|
46
|
+
__decorate([
|
|
47
|
+
aurelia_framework_1.bindable,
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], Ej2CheckboxList.prototype, "dataSource", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
aurelia_framework_1.bindable,
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], Ej2CheckboxList.prototype, "selectedItems", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
aurelia_framework_1.bindable,
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], Ej2CheckboxList.prototype, "optionModel", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
aurelia_framework_1.bindable,
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Ej2CheckboxList.prototype, "orientation", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
aurelia_framework_1.bindable,
|
|
64
|
+
__metadata("design:type", Function)
|
|
65
|
+
], Ej2CheckboxList.prototype, "matcher", void 0);
|
|
66
|
+
exports.Ej2CheckboxList = Ej2CheckboxList = __decorate([
|
|
67
|
+
(0, aurelia_framework_1.customElement)("ej2-checkbox-list"),
|
|
68
|
+
(0, aurelia_framework_1.inlineView)(`<template>
|
|
69
|
+
<div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
|
|
70
|
+
<ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
|
|
71
|
+
e-name.bind="optionModel? option[optionModel.name]: option"
|
|
72
|
+
click.delegate="checkboxClick(option, viewModels[$index])"
|
|
73
|
+
e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
|
|
74
|
+
</ej2-checkbox>
|
|
75
|
+
</div>
|
|
76
|
+
</template>`)
|
|
77
|
+
], Ej2CheckboxList);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Disposable } from 'aurelia-binding';
|
|
2
|
+
import { CheckBox, CheckBoxModel } from '@syncfusion/ej2-buttons';
|
|
3
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
4
|
+
export declare class Ej2Checkbox extends SyncfusionWrapper<CheckBox, CheckBoxModel> {
|
|
5
|
+
protected onWidgetCreated(): void;
|
|
6
|
+
protected onWrapperCreated(): void;
|
|
7
|
+
protected syncfusionWidgetType: typeof CheckBox;
|
|
8
|
+
checkedSubscription: Disposable;
|
|
9
|
+
onBind(): void;
|
|
10
|
+
_onClick(event: Event): void;
|
|
11
|
+
detached(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2Checkbox = void 0;
|
|
10
|
+
const ej2_buttons_1 = require("@syncfusion/ej2-buttons");
|
|
11
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
12
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const constants_1 = require("../../common/constants");
|
|
15
|
+
let Ej2Checkbox = class Ej2Checkbox extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_buttons_1.CheckBox;
|
|
19
|
+
this.checkedSubscription = null;
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
this.widget.element.addEventListener("click", this._onClick.bind(this));
|
|
23
|
+
}
|
|
24
|
+
onWrapperCreated() {
|
|
25
|
+
}
|
|
26
|
+
onBind() {
|
|
27
|
+
this.widget.change = () => {
|
|
28
|
+
this[`${constants_1.constants.bindablePrefix}checked`] = this.widget.checked;
|
|
29
|
+
};
|
|
30
|
+
this.checkedSubscription = this.bindingEngine.propertyObserver(this, "checked").subscribe((newValue) => {
|
|
31
|
+
this.widget.checked = newValue;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
_onClick(event) {
|
|
35
|
+
event.stopPropagation();
|
|
36
|
+
event.preventDefault();
|
|
37
|
+
this.taskQueue.queueTask(() => {
|
|
38
|
+
let clickEvent = new CustomEvent("on-click", {
|
|
39
|
+
bubbles: true,
|
|
40
|
+
detail: { checked: this[`${constants_1.constants.bindablePrefix}checked`] }
|
|
41
|
+
});
|
|
42
|
+
this.element.dispatchEvent(clickEvent);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
detached() {
|
|
46
|
+
this.checkedSubscription.dispose();
|
|
47
|
+
this.widget.element.removeEventListener("click", this._onClick);
|
|
48
|
+
super.detached();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.Ej2Checkbox = Ej2Checkbox;
|
|
52
|
+
exports.Ej2Checkbox = Ej2Checkbox = __decorate([
|
|
53
|
+
aurelia_framework_1.autoinject,
|
|
54
|
+
(0, aurelia_framework_1.transient)(),
|
|
55
|
+
(0, decorator_1.generateBindables)("checkbox"),
|
|
56
|
+
(0, aurelia_framework_1.customElement)("ej2-checkbox"),
|
|
57
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" type="checkbox" /></template>`)
|
|
58
|
+
], Ej2Checkbox);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { ColorPicker, ColorPickerModel } from '@syncfusion/ej2/inputs';
|
|
3
|
+
export declare class Ej2ColorPicker extends SyncfusionWrapper<ColorPicker, ColorPickerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof ColorPicker;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2ColorPicker = void 0;
|
|
10
|
+
const constants_1 = require("../../common/constants");
|
|
11
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
12
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
13
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
14
|
+
const inputs_1 = require("@syncfusion/ej2/inputs");
|
|
15
|
+
let Ej2ColorPicker = class Ej2ColorPicker extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = inputs_1.ColorPicker;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.Ej2ColorPicker = Ej2ColorPicker;
|
|
31
|
+
exports.Ej2ColorPicker = Ej2ColorPicker = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("colorPicker"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input type="type="color"" element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)('ej2-color-picker')
|
|
35
|
+
], Ej2ColorPicker);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { ComboBox, ComboBoxModel } from "@syncfusion/ej2-dropdowns";
|
|
3
|
+
export declare class Ej2ComboBox extends SyncfusionWrapper<ComboBox, ComboBoxModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof ComboBox;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2ComboBox = void 0;
|
|
10
|
+
const constants_1 = require("../../common/constants");
|
|
11
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
12
|
+
const ej2_dropdowns_1 = require("@syncfusion/ej2-dropdowns");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
15
|
+
let Ej2ComboBox = class Ej2ComboBox extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_dropdowns_1.ComboBox;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.Ej2ComboBox = Ej2ComboBox;
|
|
31
|
+
exports.Ej2ComboBox = Ej2ComboBox = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("comboBox"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input type="text" tabindex="1" element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)('ej2-combo-box')
|
|
35
|
+
], Ej2ComboBox);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { DashboardLayout, DashboardLayoutModel } from '@syncfusion/ej2-layouts';
|
|
3
|
+
export declare class Ej2DashboardLayout extends SyncfusionWrapper<DashboardLayout, DashboardLayoutModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DashboardLayout;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2DashboardLayout = void 0;
|
|
10
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
11
|
+
const ej2_layouts_1 = require("@syncfusion/ej2-layouts");
|
|
12
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
13
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
14
|
+
let Ej2DashboardLayout = class Ej2DashboardLayout extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.syncfusionWidgetType = ej2_layouts_1.DashboardLayout;
|
|
18
|
+
}
|
|
19
|
+
onWrapperCreated() {
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.Ej2DashboardLayout = Ej2DashboardLayout;
|
|
25
|
+
exports.Ej2DashboardLayout = Ej2DashboardLayout = __decorate([
|
|
26
|
+
(0, decorator_1.generateBindables)("dashboardLayout"),
|
|
27
|
+
(0, aurelia_framework_1.inlineView)(`<template><div class="dashboard-container"><div element.ref="widgetElement"><slot></slot></div></div></template>`),
|
|
28
|
+
(0, aurelia_framework_1.customElement)("ej2-dashboard-layout")
|
|
29
|
+
], Ej2DashboardLayout);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DatePicker, DatePickerModel } from "@syncfusion/ej2-calendars";
|
|
2
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
3
|
+
export declare class Ej2DatePicker extends SyncfusionWrapper<DatePicker, DatePickerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DatePicker;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2DatePicker = void 0;
|
|
10
|
+
const constants_1 = require("./../../common/constants");
|
|
11
|
+
const ej2_calendars_1 = require("@syncfusion/ej2-calendars");
|
|
12
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
15
|
+
let Ej2DatePicker = class Ej2DatePicker extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_calendars_1.DatePicker;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.Ej2DatePicker = Ej2DatePicker;
|
|
31
|
+
exports.Ej2DatePicker = Ej2DatePicker = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("datePicker"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)("ej2-date-picker")
|
|
35
|
+
], Ej2DatePicker);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { DateRangePicker, DateRangePickerModel } from "@syncfusion/ej2-calendars";
|
|
3
|
+
export declare class Ej2DateRangePicker extends SyncfusionWrapper<DateRangePicker, DateRangePickerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DateRangePicker;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2DateRangePicker = void 0;
|
|
10
|
+
const constants_1 = require("./../../common/constants");
|
|
11
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
12
|
+
const ej2_calendars_1 = require("@syncfusion/ej2-calendars");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
15
|
+
let Ej2DateRangePicker = class Ej2DateRangePicker extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_calendars_1.DateRangePicker;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
this[`${constants_1.constants.bindablePrefix}startDate`] = args.startDate;
|
|
29
|
+
this[`${constants_1.constants.bindablePrefix}endDate`] = args.endDate;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Ej2DateRangePicker = Ej2DateRangePicker;
|
|
33
|
+
exports.Ej2DateRangePicker = Ej2DateRangePicker = __decorate([
|
|
34
|
+
(0, decorator_1.generateBindables)("dateRangePicker"),
|
|
35
|
+
(0, aurelia_framework_1.customElement)('ej2-date-range-picker'),
|
|
36
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`)
|
|
37
|
+
], Ej2DateRangePicker);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { DateTimePicker, DateTimePickerModel } from "@syncfusion/ej2-calendars";
|
|
3
|
+
export declare class Ej2DateTimePicker extends SyncfusionWrapper<DateTimePicker, DateTimePickerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DateTimePicker;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2DateTimePicker = void 0;
|
|
10
|
+
const constants_1 = require("./../../common/constants");
|
|
11
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
12
|
+
const ej2_calendars_1 = require("@syncfusion/ej2-calendars");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
15
|
+
let Ej2DateTimePicker = class Ej2DateTimePicker extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_calendars_1.DateTimePicker;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.Ej2DateTimePicker = Ej2DateTimePicker;
|
|
31
|
+
exports.Ej2DateTimePicker = Ej2DateTimePicker = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("dateTimePicker"),
|
|
33
|
+
(0, aurelia_framework_1.inlineView)(`<template><input element.ref="widgetElement" /></template>`),
|
|
34
|
+
(0, aurelia_framework_1.customElement)('ej2-date-time-picker')
|
|
35
|
+
], Ej2DateTimePicker);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { DropDownList, DropDownListModel } from "@syncfusion/ej2-dropdowns";
|
|
3
|
+
export declare class Ej2DropDownList extends SyncfusionWrapper<DropDownList, DropDownListModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DropDownList;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
attached(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2DropDownList = void 0;
|
|
10
|
+
const constants_1 = require("./../../common/constants");
|
|
11
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
12
|
+
const ej2_dropdowns_1 = require("@syncfusion/ej2-dropdowns");
|
|
13
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
14
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
15
|
+
let Ej2DropDownList = class Ej2DropDownList extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_dropdowns_1.DropDownList;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
}
|
|
29
|
+
attached() {
|
|
30
|
+
this.widgetElement = this.element.querySelector("select,ul,input");
|
|
31
|
+
super.attached();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.Ej2DropDownList = Ej2DropDownList;
|
|
35
|
+
exports.Ej2DropDownList = Ej2DropDownList = __decorate([
|
|
36
|
+
(0, decorator_1.generateBindables)("dropDownList"),
|
|
37
|
+
(0, aurelia_framework_1.inlineView)(`<template><div><slot><input /></slot></div></template>`),
|
|
38
|
+
(0, aurelia_framework_1.customElement)('ej2-drop-down-list')
|
|
39
|
+
], Ej2DropDownList);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { DropDownTree, DropDownTreeModel } from '@syncfusion/ej2-dropdowns';
|
|
3
|
+
export declare class Ej2DropDownTree extends SyncfusionWrapper<DropDownTree, DropDownTreeModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof DropDownTree;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChange(args: any): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2DropDownTree = void 0;
|
|
10
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
11
|
+
const ej2_dropdowns_1 = require("@syncfusion/ej2-dropdowns");
|
|
12
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
13
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
14
|
+
const constants_1 = require("./../../common/constants");
|
|
15
|
+
let Ej2DropDownTree = class Ej2DropDownTree extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_dropdowns_1.DropDownTree;
|
|
19
|
+
}
|
|
20
|
+
onWrapperCreated() {
|
|
21
|
+
}
|
|
22
|
+
onWidgetCreated() {
|
|
23
|
+
let _this = this;
|
|
24
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
25
|
+
}
|
|
26
|
+
onChange(args) {
|
|
27
|
+
this[`${constants_1.constants.bindablePrefix}value`] = args.value;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.Ej2DropDownTree = Ej2DropDownTree;
|
|
31
|
+
exports.Ej2DropDownTree = Ej2DropDownTree = __decorate([
|
|
32
|
+
(0, decorator_1.generateBindables)("dropDownTree"),
|
|
33
|
+
(0, aurelia_framework_1.customElement)('ej2-drop-down-tree'),
|
|
34
|
+
(0, aurelia_framework_1.inlineView)('<template><input type="text" element.ref="widgetElement" /></template>')
|
|
35
|
+
], Ej2DropDownTree);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { FileManager, FileManagerModel } from "@syncfusion/ej2-filemanager";
|
|
3
|
+
export declare class Ej2FileManager extends SyncfusionWrapper<FileManager, FileManagerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof FileManager;
|
|
5
|
+
id: string;
|
|
6
|
+
onBeforeWidgetInstantiation(): void;
|
|
7
|
+
protected onWidgetCreated(): void;
|
|
8
|
+
protected onWrapperCreated(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2FileManager = void 0;
|
|
10
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
11
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
12
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
13
|
+
const ej2_filemanager_1 = require("@syncfusion/ej2-filemanager");
|
|
14
|
+
const uuid_1 = require("uuid");
|
|
15
|
+
let Ej2FileManager = class Ej2FileManager extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.syncfusionWidgetType = ej2_filemanager_1.FileManager;
|
|
19
|
+
this.id = `fm-${(0, uuid_1.v4)()}`;
|
|
20
|
+
}
|
|
21
|
+
onBeforeWidgetInstantiation() {
|
|
22
|
+
ej2_filemanager_1.FileManager.Inject(ej2_filemanager_1.Toolbar, ej2_filemanager_1.NavigationPane, ej2_filemanager_1.DetailsView, ej2_filemanager_1.ContextMenu);
|
|
23
|
+
}
|
|
24
|
+
onWidgetCreated() {
|
|
25
|
+
}
|
|
26
|
+
onWrapperCreated() {
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.Ej2FileManager = Ej2FileManager;
|
|
30
|
+
exports.Ej2FileManager = Ej2FileManager = __decorate([
|
|
31
|
+
(0, decorator_1.generateBindables)("fileManager"),
|
|
32
|
+
(0, aurelia_framework_1.inlineView)(`<template><div id.bind="id" element.ref="widgetElement"></div></template>`),
|
|
33
|
+
(0, aurelia_framework_1.customElement)('ej2-file-manager')
|
|
34
|
+
], Ej2FileManager);
|