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,59 @@
|
|
|
1
|
+
import { BindableProperty, HtmlBehaviorResource } from 'aurelia-templating';
|
|
2
|
+
import { Container } from 'aurelia-dependency-injection';
|
|
3
|
+
import { metadata } from 'aurelia-metadata';
|
|
4
|
+
import { bindingMode } from 'aurelia-binding';
|
|
5
|
+
import { TaskQueue } from 'aurelia-task-queue';
|
|
6
|
+
import { ControlBindings } from '../controlBindings';
|
|
7
|
+
import { constants } from '../common/constants';
|
|
8
|
+
export function generateBindables(controlName) {
|
|
9
|
+
return function (target, key, descriptor) {
|
|
10
|
+
let behaviorResource = metadata.getOrCreateOwn(metadata.resource, HtmlBehaviorResource, target);
|
|
11
|
+
let oneWay = [];
|
|
12
|
+
if (ControlBindings[controlName].oneWay) {
|
|
13
|
+
oneWay = ControlBindings.common.oneWay.concat(ControlBindings[controlName].oneWay);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
oneWay = ControlBindings.common.oneWay;
|
|
17
|
+
}
|
|
18
|
+
let createBinding = (name, bindingMode, prefix) => {
|
|
19
|
+
let nameOrConfigOrTarget = {
|
|
20
|
+
name: `${prefix}${name}`,
|
|
21
|
+
defaultBindingMode: bindingMode
|
|
22
|
+
};
|
|
23
|
+
let prop = new BindableProperty(nameOrConfigOrTarget);
|
|
24
|
+
prop.registerWith(target, behaviorResource, descriptor);
|
|
25
|
+
};
|
|
26
|
+
for (let i = 0; i < oneWay.length; i++) {
|
|
27
|
+
let option = oneWay[i];
|
|
28
|
+
createBinding(option, bindingMode.oneWay, constants.bindablePrefix);
|
|
29
|
+
}
|
|
30
|
+
if (ControlBindings[controlName].fromView) {
|
|
31
|
+
for (let i = 0; i < ControlBindings[controlName].fromView.length; i++) {
|
|
32
|
+
let option = ControlBindings[controlName].fromView[i];
|
|
33
|
+
createBinding(option, bindingMode.fromView, constants.bindablePrefix);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (ControlBindings[controlName].twoWay) {
|
|
37
|
+
for (let i = 0; i < ControlBindings[controlName].twoWay.length; i++) {
|
|
38
|
+
let option = ControlBindings[controlName].twoWay[i];
|
|
39
|
+
createBinding(option, bindingMode.twoWay, constants.bindablePrefix);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (ControlBindings[controlName].events) {
|
|
43
|
+
for (let i = 0; i < ControlBindings[controlName].events.length; i++) {
|
|
44
|
+
let option = ControlBindings[controlName].events[i];
|
|
45
|
+
createBinding(option, bindingMode.oneTime, constants.eventPrefix);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function delayed() {
|
|
51
|
+
return function (target, key, descriptor) {
|
|
52
|
+
let taskQueue = (Container.instance || new Container()).get(TaskQueue);
|
|
53
|
+
let ptr = descriptor.value;
|
|
54
|
+
descriptor.value = function (...args) {
|
|
55
|
+
taskQueue.queueTask(() => ptr.apply(this, args));
|
|
56
|
+
};
|
|
57
|
+
return descriptor;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { Accordion, AccordionModel } from "@syncfusion/ej2-navigations";
|
|
3
|
+
export declare class Ej2Accordion extends SyncfusionWrapper<Accordion, AccordionModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof Accordion;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
8
|
+
import { Accordion } from "@syncfusion/ej2-navigations";
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { enableRipple } from '@syncfusion/ej2-base';
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
12
|
+
enableRipple(true);
|
|
13
|
+
let Ej2Accordion = class Ej2Accordion extends SyncfusionWrapper {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.syncfusionWidgetType = Accordion;
|
|
17
|
+
}
|
|
18
|
+
onWrapperCreated() {
|
|
19
|
+
}
|
|
20
|
+
onWidgetCreated() {
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
Ej2Accordion = __decorate([
|
|
24
|
+
generateBindables("accordion"),
|
|
25
|
+
customElement('ej2-accordion'),
|
|
26
|
+
inlineView('<template><div element.ref="widgetElement"></div></template>')
|
|
27
|
+
], Ej2Accordion);
|
|
28
|
+
export { Ej2Accordion };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { AutoComplete, AutoCompleteModel } from "@syncfusion/ej2-dropdowns";
|
|
3
|
+
export declare class Ej2AutoComplete extends SyncfusionWrapper<AutoComplete, AutoCompleteModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof AutoComplete;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
8
|
+
import { AutoComplete } from "@syncfusion/ej2-dropdowns";
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { customElement, inlineView } from "aurelia-framework";
|
|
11
|
+
let Ej2AutoComplete = class Ej2AutoComplete extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = AutoComplete;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
Ej2AutoComplete = __decorate([
|
|
22
|
+
generateBindables("autoComplete"),
|
|
23
|
+
customElement('ej2-auto-complete'),
|
|
24
|
+
inlineView('<template><input element.ref="widgetElement" type="text" /></template>')
|
|
25
|
+
], Ej2AutoComplete);
|
|
26
|
+
export { Ej2AutoComplete };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Button, ButtonModel } from '@syncfusion/ej2-buttons';
|
|
2
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
3
|
+
export declare class Ej2Button extends SyncfusionWrapper<Button, ButtonModel> {
|
|
4
|
+
clickEvent: Event;
|
|
5
|
+
_onClick: (event: Event) => void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
protected onWrapperCreated(): void;
|
|
8
|
+
protected syncfusionWidgetType: typeof Button;
|
|
9
|
+
refresh(): void;
|
|
10
|
+
focusIn(): void;
|
|
11
|
+
click(): void;
|
|
12
|
+
dataBind(): void;
|
|
13
|
+
detached(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import { Button } from '@syncfusion/ej2-buttons';
|
|
8
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
9
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
10
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
11
|
+
let Ej2Button = class Ej2Button extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.clickEvent = null;
|
|
15
|
+
this._onClick = null;
|
|
16
|
+
this.syncfusionWidgetType = Button;
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
let _this = this;
|
|
20
|
+
this._onClick = (event) => {
|
|
21
|
+
_this.element.dispatchEvent(_this.clickEvent);
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
};
|
|
24
|
+
this.widget.element.addEventListener("click", this._onClick, false);
|
|
25
|
+
}
|
|
26
|
+
onWrapperCreated() {
|
|
27
|
+
this.clickEvent = new CustomEvent("on-click", {
|
|
28
|
+
bubbles: true
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
refresh() {
|
|
32
|
+
this.widget.refresh();
|
|
33
|
+
}
|
|
34
|
+
focusIn() {
|
|
35
|
+
this.widget.focusIn();
|
|
36
|
+
}
|
|
37
|
+
click() {
|
|
38
|
+
this.widget.click();
|
|
39
|
+
}
|
|
40
|
+
dataBind() {
|
|
41
|
+
this.widget.dataBind();
|
|
42
|
+
}
|
|
43
|
+
detached() {
|
|
44
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
Ej2Button = __decorate([
|
|
48
|
+
generateBindables("button"),
|
|
49
|
+
inlineView('<template><button element.ref="widgetElement"><slot></slot></button></template>'),
|
|
50
|
+
customElement('ej2-button')
|
|
51
|
+
], Ej2Button);
|
|
52
|
+
export { 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,74 @@
|
|
|
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 { bindable, customElement, inlineView } from "aurelia-framework";
|
|
11
|
+
import { constants } from "../../common/constants";
|
|
12
|
+
let Ej2CheckboxList = class Ej2CheckboxList {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.dataSource = [];
|
|
15
|
+
this.selectedItems = [];
|
|
16
|
+
this.optionModel = null;
|
|
17
|
+
this.orientation = "horizontal";
|
|
18
|
+
this.matcher = null;
|
|
19
|
+
this.viewModels = [];
|
|
20
|
+
}
|
|
21
|
+
attached() {
|
|
22
|
+
}
|
|
23
|
+
checkboxClick(option, ej2Checkbox) {
|
|
24
|
+
if (ej2Checkbox[`${constants.bindablePrefix}checked`]) {
|
|
25
|
+
if ((this.matcher && this.selectedItems.find((x) => this.matcher(x, option))) || !this.selectedItems.includes(option)) {
|
|
26
|
+
this.selectedItems.push(option);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
let index = this.matcher ? this.selectedItems.findIndex((x) => this.matcher(x, option)) : this.selectedItems.indexOf(option);
|
|
31
|
+
if (index !== -1) {
|
|
32
|
+
this.selectedItems.splice(index, 1);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
isMatch(option) {
|
|
39
|
+
return this.selectedItems.findIndex((x) => this.matcher(x, option)) !== -1;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
__decorate([
|
|
43
|
+
bindable,
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], Ej2CheckboxList.prototype, "dataSource", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
bindable,
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], Ej2CheckboxList.prototype, "selectedItems", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
bindable,
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], Ej2CheckboxList.prototype, "optionModel", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
bindable,
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Ej2CheckboxList.prototype, "orientation", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
bindable,
|
|
60
|
+
__metadata("design:type", Function)
|
|
61
|
+
], Ej2CheckboxList.prototype, "matcher", void 0);
|
|
62
|
+
Ej2CheckboxList = __decorate([
|
|
63
|
+
customElement("ej2-checkbox-list"),
|
|
64
|
+
inlineView(`<template>
|
|
65
|
+
<div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
|
|
66
|
+
<ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
|
|
67
|
+
e-name.bind="optionModel? option[optionModel.name]: option"
|
|
68
|
+
click.delegate="checkboxClick(option, viewModels[$index])"
|
|
69
|
+
e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
|
|
70
|
+
</ej2-checkbox>
|
|
71
|
+
</div>
|
|
72
|
+
</template>`)
|
|
73
|
+
], Ej2CheckboxList);
|
|
74
|
+
export { 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,55 @@
|
|
|
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
|
+
import { CheckBox } from '@syncfusion/ej2-buttons';
|
|
8
|
+
import { autoinject, inlineView, customElement, transient } from 'aurelia-framework';
|
|
9
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
10
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
11
|
+
import { constants } from '../../common/constants';
|
|
12
|
+
let Ej2Checkbox = class Ej2Checkbox extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = CheckBox;
|
|
16
|
+
this.checkedSubscription = null;
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
this.widget.element.addEventListener("click", this._onClick.bind(this));
|
|
20
|
+
}
|
|
21
|
+
onWrapperCreated() {
|
|
22
|
+
}
|
|
23
|
+
onBind() {
|
|
24
|
+
this.widget.change = () => {
|
|
25
|
+
this[`${constants.bindablePrefix}checked`] = this.widget.checked;
|
|
26
|
+
};
|
|
27
|
+
this.checkedSubscription = this.bindingEngine.propertyObserver(this, "checked").subscribe((newValue) => {
|
|
28
|
+
this.widget.checked = newValue;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
_onClick(event) {
|
|
32
|
+
event.stopPropagation();
|
|
33
|
+
event.preventDefault();
|
|
34
|
+
this.taskQueue.queueTask(() => {
|
|
35
|
+
let clickEvent = new CustomEvent("on-click", {
|
|
36
|
+
bubbles: true,
|
|
37
|
+
detail: { checked: this[`${constants.bindablePrefix}checked`] }
|
|
38
|
+
});
|
|
39
|
+
this.element.dispatchEvent(clickEvent);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
detached() {
|
|
43
|
+
this.checkedSubscription.dispose();
|
|
44
|
+
this.widget.element.removeEventListener("click", this._onClick);
|
|
45
|
+
super.detached();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
Ej2Checkbox = __decorate([
|
|
49
|
+
autoinject,
|
|
50
|
+
transient(),
|
|
51
|
+
generateBindables("checkbox"),
|
|
52
|
+
customElement("ej2-checkbox"),
|
|
53
|
+
inlineView(`<template><input element.ref="widgetElement" type="checkbox" /></template>`)
|
|
54
|
+
], Ej2Checkbox);
|
|
55
|
+
export { 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,32 @@
|
|
|
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
|
+
import { constants } from '../../common/constants';
|
|
8
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
|
+
import { ColorPicker } from '@syncfusion/ej2/inputs';
|
|
12
|
+
let Ej2ColorPicker = class Ej2ColorPicker extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = ColorPicker;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
22
|
+
}
|
|
23
|
+
onChange(args) {
|
|
24
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Ej2ColorPicker = __decorate([
|
|
28
|
+
generateBindables("colorPicker"),
|
|
29
|
+
inlineView(`<template><input type="type="color"" element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-color-picker')
|
|
31
|
+
], Ej2ColorPicker);
|
|
32
|
+
export { 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,32 @@
|
|
|
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
|
+
import { constants } from '../../common/constants';
|
|
8
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
|
+
import { ComboBox } from "@syncfusion/ej2-dropdowns";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
12
|
+
let Ej2ComboBox = class Ej2ComboBox extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = ComboBox;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
22
|
+
}
|
|
23
|
+
onChange(args) {
|
|
24
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Ej2ComboBox = __decorate([
|
|
28
|
+
generateBindables("comboBox"),
|
|
29
|
+
inlineView(`<template><input type="text" tabindex="1" element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-combo-box')
|
|
31
|
+
], Ej2ComboBox);
|
|
32
|
+
export { 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,26 @@
|
|
|
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
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
8
|
+
import { DashboardLayout } from '@syncfusion/ej2-layouts';
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
11
|
+
let Ej2DashboardLayout = class Ej2DashboardLayout extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = DashboardLayout;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
Ej2DashboardLayout = __decorate([
|
|
22
|
+
generateBindables("dashboardLayout"),
|
|
23
|
+
inlineView(`<template><div class="dashboard-container"><div element.ref="widgetElement"><slot></slot></div></div></template>`),
|
|
24
|
+
customElement("ej2-dashboard-layout")
|
|
25
|
+
], Ej2DashboardLayout);
|
|
26
|
+
export { 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,32 @@
|
|
|
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
|
+
import { constants } from './../../common/constants';
|
|
8
|
+
import { DatePicker } from "@syncfusion/ej2-calendars";
|
|
9
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
12
|
+
let Ej2DatePicker = class Ej2DatePicker extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = DatePicker;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
22
|
+
}
|
|
23
|
+
onChange(args) {
|
|
24
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Ej2DatePicker = __decorate([
|
|
28
|
+
generateBindables("datePicker"),
|
|
29
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement("ej2-date-picker")
|
|
31
|
+
], Ej2DatePicker);
|
|
32
|
+
export { 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,34 @@
|
|
|
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
|
+
import { constants } from './../../common/constants';
|
|
8
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
|
+
import { DateRangePicker } from "@syncfusion/ej2-calendars";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
12
|
+
let Ej2DateRangePicker = class Ej2DateRangePicker extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = DateRangePicker;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
22
|
+
}
|
|
23
|
+
onChange(args) {
|
|
24
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
25
|
+
this[`${constants.bindablePrefix}startDate`] = args.startDate;
|
|
26
|
+
this[`${constants.bindablePrefix}endDate`] = args.endDate;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
Ej2DateRangePicker = __decorate([
|
|
30
|
+
generateBindables("dateRangePicker"),
|
|
31
|
+
customElement('ej2-date-range-picker'),
|
|
32
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`)
|
|
33
|
+
], Ej2DateRangePicker);
|
|
34
|
+
export { 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,32 @@
|
|
|
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
|
+
import { constants } from './../../common/constants';
|
|
8
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
9
|
+
import { DateTimePicker } from "@syncfusion/ej2-calendars";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from "aurelia-framework";
|
|
12
|
+
let Ej2DateTimePicker = class Ej2DateTimePicker extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = DateTimePicker;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("change", (args) => { _this.onChange(args); });
|
|
22
|
+
}
|
|
23
|
+
onChange(args) {
|
|
24
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
Ej2DateTimePicker = __decorate([
|
|
28
|
+
generateBindables("dateTimePicker"),
|
|
29
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-date-time-picker')
|
|
31
|
+
], Ej2DateTimePicker);
|
|
32
|
+
export { 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
|
+
}
|