aurelia-syncfusion-ej2-bridge 0.1.0-beta.25 → 0.1.0-beta.26
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 +162 -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 +48 -0
- package/dist/commonjs/configBuider.d.ts +39 -0
- package/dist/commonjs/configBuider.js +214 -0
- package/dist/commonjs/controlBindings.d.ts +140 -0
- package/dist/commonjs/controlBindings.js +152 -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 +64 -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/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/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 +8 -0
- package/dist/commonjs/widgets/slider/ej2-slider.js +37 -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/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 +346 -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 +159 -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 +44 -0
- package/dist/native-modules/configBuider.d.ts +39 -0
- package/dist/native-modules/configBuider.js +210 -0
- package/dist/native-modules/controlBindings.d.ts +140 -0
- package/dist/native-modules/controlBindings.js +149 -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 +0 -0
- package/dist/native-modules/interfaces/IEj2Uploader.d.ts +17 -0
- package/dist/native-modules/interfaces/IEj2Uploader.js +0 -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/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/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 +8 -0
- package/dist/native-modules/widgets/slider/ej2-slider.js +34 -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/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 +343 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
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 { ProgressButton } from '@syncfusion/ej2-splitbuttons';
|
|
8
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
11
|
+
let Ej2ProgressButton = class Ej2ProgressButton extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.clickEvent = null;
|
|
15
|
+
this._onClick = null;
|
|
16
|
+
this.syncfusionWidgetType = ProgressButton;
|
|
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
|
+
progressComplete() {
|
|
44
|
+
this.widget.progressComplete();
|
|
45
|
+
}
|
|
46
|
+
start() {
|
|
47
|
+
this.widget.start();
|
|
48
|
+
}
|
|
49
|
+
stop() {
|
|
50
|
+
this.widget.stop();
|
|
51
|
+
}
|
|
52
|
+
detached() {
|
|
53
|
+
this.widget.element.removeEventListener("click", this._onClick, false);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
Ej2ProgressButton = __decorate([
|
|
57
|
+
generateBindables("progressButton"),
|
|
58
|
+
inlineView(`<template><button element.ref="widgetElement"><slot></slot></button></template>`),
|
|
59
|
+
customElement('ej2-progress-button')
|
|
60
|
+
], Ej2ProgressButton);
|
|
61
|
+
export { Ej2ProgressButton };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Disposable } from 'aurelia-binding';
|
|
2
|
+
import { Subscription } from "aurelia-event-aggregator";
|
|
3
|
+
import { RadioButtonModel, RadioButton } from '@syncfusion/ej2-buttons';
|
|
4
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
5
|
+
export declare class Ej2Radio extends SyncfusionWrapper<RadioButton, RadioButtonModel> {
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
protected onWrapperCreated(): void;
|
|
8
|
+
protected syncfusionWidgetType: typeof RadioButton;
|
|
9
|
+
checkedSubscription: Disposable;
|
|
10
|
+
selectionChangedSubscription: Subscription;
|
|
11
|
+
onBind(): void;
|
|
12
|
+
detached(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { RadioButton } from '@syncfusion/ej2-buttons';
|
|
8
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
9
|
+
import { constants } from '../../common/constants';
|
|
10
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
11
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
12
|
+
let Ej2Radio = class Ej2Radio extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = RadioButton;
|
|
16
|
+
this.checkedSubscription = null;
|
|
17
|
+
this.selectionChangedSubscription = null;
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
}
|
|
21
|
+
onWrapperCreated() {
|
|
22
|
+
}
|
|
23
|
+
onBind() {
|
|
24
|
+
if (!this._eModel.name) {
|
|
25
|
+
throw "Radio e-name is required";
|
|
26
|
+
}
|
|
27
|
+
this.widget.change = () => {
|
|
28
|
+
this[`${constants.bindablePrefix}checked`] = this.widget.checked;
|
|
29
|
+
this.eventAggregator.publish(`ej2-radio-${this._eModel.name}-changed`, this[`${constants.bindablePrefix}label`]);
|
|
30
|
+
};
|
|
31
|
+
this.checkedSubscription = this.bindingEngine.propertyObserver(this, this[`${constants.bindablePrefix}checked`]).subscribe((newValue) => {
|
|
32
|
+
this.widget.checked = newValue;
|
|
33
|
+
});
|
|
34
|
+
this.selectionChangedSubscription = this.eventAggregator.subscribe(`ej2-radio-${this._eModel.name}-changed`, (selectedLabel) => {
|
|
35
|
+
if (this[`${constants.bindablePrefix}label`] !== selectedLabel) {
|
|
36
|
+
this[`${constants.bindablePrefix}checked`] = false;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
detached() {
|
|
41
|
+
this.checkedSubscription.dispose();
|
|
42
|
+
this.selectionChangedSubscription.dispose();
|
|
43
|
+
super.detached();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
Ej2Radio = __decorate([
|
|
47
|
+
generateBindables("radio"),
|
|
48
|
+
inlineView(`<template><input element.ref="widgetElement" type="radio" /></template>`),
|
|
49
|
+
customElement('ej2-radio')
|
|
50
|
+
], Ej2Radio);
|
|
51
|
+
export { Ej2Radio };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Schedule, ScheduleModel } from '@syncfusion/ej2-schedule';
|
|
2
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
3
|
+
export declare class Ej2Schedule extends SyncfusionWrapper<Schedule, ScheduleModel> {
|
|
4
|
+
protected syncfusionWidgetType: any;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onBeforeWidgetInstantiation(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { inlineView, customElement } from 'aurelia-framework';
|
|
8
|
+
import { Schedule, TimelineViews, TimelineMonth, Resize, DragAndDrop, Day, Week, WorkWeek, Month, Agenda, TimelineYear, ExcelExport, ICalendarExport, ICalendarImport, Print } from '@syncfusion/ej2-schedule';
|
|
9
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
10
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
11
|
+
let Ej2Schedule = class Ej2Schedule extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = Schedule;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
}
|
|
20
|
+
onBeforeWidgetInstantiation() {
|
|
21
|
+
Schedule.Inject(Day, Week, WorkWeek, Month, Agenda, TimelineViews, TimelineMonth, TimelineYear, DragAndDrop, Resize, ExcelExport, ICalendarExport, ICalendarImport, Print);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
Ej2Schedule = __decorate([
|
|
25
|
+
generateBindables("radio"),
|
|
26
|
+
inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
27
|
+
customElement('ej2-schedule')
|
|
28
|
+
], Ej2Schedule);
|
|
29
|
+
export { Ej2Schedule };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { Sidebar, SidebarModel } from "@syncfusion/ej2-navigations";
|
|
3
|
+
export declare class Ej2Sidebar extends SyncfusionWrapper<Sidebar, SidebarModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof Sidebar;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { Sidebar } from "@syncfusion/ej2-navigations";
|
|
9
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
10
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
11
|
+
let Ej2Sidebar = class Ej2Sidebar extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = Sidebar;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
let _this = this;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
Ej2Sidebar = __decorate([
|
|
23
|
+
generateBindables("sidebar"),
|
|
24
|
+
inlineView(`<template element.ref="widgetElement"><slot></slot></template>`),
|
|
25
|
+
customElement('ej2-sidebar')
|
|
26
|
+
], Ej2Sidebar);
|
|
27
|
+
export { Ej2Sidebar };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { Slider, SliderModel, SliderChangeEventArgs } from "@syncfusion/ej2-inputs";
|
|
3
|
+
export declare class Ej2Slider extends SyncfusionWrapper<Slider, SliderModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof Slider;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onChanged(event: SliderChangeEventArgs): 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 { Slider } from "@syncfusion/ej2-inputs";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
12
|
+
let Ej2Slider = class Ej2Slider extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = Slider;
|
|
16
|
+
}
|
|
17
|
+
onWrapperCreated() {
|
|
18
|
+
}
|
|
19
|
+
onWidgetCreated() {
|
|
20
|
+
let _this = this;
|
|
21
|
+
this.widget.addEventListener("changed", (event) => {
|
|
22
|
+
_this.onChanged(event);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
onChanged(event) {
|
|
26
|
+
this[`${constants.bindablePrefix}value`] = event.value;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
Ej2Slider = __decorate([
|
|
30
|
+
generateBindables("slider"),
|
|
31
|
+
inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
32
|
+
customElement('ej2-slider')
|
|
33
|
+
], Ej2Slider);
|
|
34
|
+
export { Ej2Slider };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { Splitter, SplitterModel } from '@syncfusion/ej2-layouts';
|
|
3
|
+
export declare class Ej2Splitter extends SyncfusionWrapper<Splitter, SplitterModel> {
|
|
4
|
+
protected onWrapperCreated(): void;
|
|
5
|
+
protected onWidgetCreated(): void;
|
|
6
|
+
protected syncfusionWidgetType: typeof Splitter;
|
|
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 { inlineView, customElement } from 'aurelia-framework';
|
|
8
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
9
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
10
|
+
import { Splitter } from '@syncfusion/ej2-layouts';
|
|
11
|
+
let Ej2Splitter = class Ej2Splitter extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = Splitter;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
Ej2Splitter = __decorate([
|
|
22
|
+
generateBindables("splitter"),
|
|
23
|
+
inlineView(`<template><div element.ref="widgetElement"><slot></slot></div></template>`),
|
|
24
|
+
customElement('ej2-splitter')
|
|
25
|
+
], Ej2Splitter);
|
|
26
|
+
export { Ej2Splitter };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { Switch, SwitchModel } from '@syncfusion/ej2-buttons';
|
|
3
|
+
export declare class Ej2Switch extends SyncfusionWrapper<Switch, SwitchModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof Switch;
|
|
5
|
+
private id;
|
|
6
|
+
private onChange;
|
|
7
|
+
protected onWrapperCreated(): void;
|
|
8
|
+
protected onWidgetCreated(): void;
|
|
9
|
+
recreate(): void;
|
|
10
|
+
detached(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { Switch } from '@syncfusion/ej2-buttons';
|
|
10
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
11
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
12
|
+
let Ej2Switch = class Ej2Switch extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = Switch;
|
|
16
|
+
this.id = null;
|
|
17
|
+
this.onChange = null;
|
|
18
|
+
}
|
|
19
|
+
onWrapperCreated() {
|
|
20
|
+
this.id = this.element.getAttribute("id");
|
|
21
|
+
if (this.id) {
|
|
22
|
+
this.element.removeAttribute("id");
|
|
23
|
+
}
|
|
24
|
+
this.widgetElement.setAttribute("id", this.id);
|
|
25
|
+
}
|
|
26
|
+
onWidgetCreated() {
|
|
27
|
+
let _this = this;
|
|
28
|
+
this.onChange = (args) => {
|
|
29
|
+
_this[`${constants.bindablePrefix}checked`] = args.checked;
|
|
30
|
+
};
|
|
31
|
+
this.widget.addEventListener("change", this.onChange);
|
|
32
|
+
}
|
|
33
|
+
recreate() {
|
|
34
|
+
if (this.id) {
|
|
35
|
+
this.widgetElement.removeAttribute("id");
|
|
36
|
+
}
|
|
37
|
+
this.element.setAttribute("id", this.id);
|
|
38
|
+
super.recreate();
|
|
39
|
+
}
|
|
40
|
+
detached() {
|
|
41
|
+
this.widget.removeEventListener("change", this.onChange);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
Ej2Switch = __decorate([
|
|
45
|
+
generateBindables("switch"),
|
|
46
|
+
inlineView(`<template><slot></slot><input element.ref="widgetElement" type="checkbox" /></template>`),
|
|
47
|
+
customElement('ej2-switch')
|
|
48
|
+
], Ej2Switch);
|
|
49
|
+
export { Ej2Switch };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { TextBox, TextBoxModel } from "@syncfusion/ej2-inputs";
|
|
3
|
+
export declare class Ej2TextBox extends SyncfusionWrapper<TextBox, TextBoxModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof TextBox;
|
|
5
|
+
protected onWrapperCreated(): void;
|
|
6
|
+
protected onWidgetCreated(): void;
|
|
7
|
+
onInput(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 { TextBox } from "@syncfusion/ej2-inputs";
|
|
10
|
+
import { generateBindables } from "../../utilities/decorator";
|
|
11
|
+
import { enableRipple } from '@syncfusion/ej2-base';
|
|
12
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
13
|
+
enableRipple(true);
|
|
14
|
+
let Ej2TextBox = class Ej2TextBox extends SyncfusionWrapper {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.syncfusionWidgetType = TextBox;
|
|
18
|
+
}
|
|
19
|
+
onWrapperCreated() {
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
let _this = this;
|
|
23
|
+
this.widget.addEventListener("input", (args) => { _this.onInput(args); });
|
|
24
|
+
}
|
|
25
|
+
onInput(args) {
|
|
26
|
+
this[`${constants.bindablePrefix}value`] = args.value;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
Ej2TextBox = __decorate([
|
|
30
|
+
generateBindables("textBox"),
|
|
31
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
32
|
+
customElement('ej2-text-box')
|
|
33
|
+
], Ej2TextBox);
|
|
34
|
+
export { Ej2TextBox };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
2
|
+
import { TimePicker, TimePickerModel } from "@syncfusion/ej2-calendars";
|
|
3
|
+
export declare class Ej2TimePicker extends SyncfusionWrapper<TimePicker, TimePickerModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof TimePicker;
|
|
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 { TimePicker } from "@syncfusion/ej2-calendars";
|
|
10
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
11
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
12
|
+
let Ej2TimePicker = class Ej2TimePicker extends SyncfusionWrapper {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.syncfusionWidgetType = TimePicker;
|
|
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
|
+
Ej2TimePicker = __decorate([
|
|
28
|
+
generateBindables("timePicker"),
|
|
29
|
+
inlineView(`<template><input element.ref="widgetElement" /></template>`),
|
|
30
|
+
customElement('ej2-time-picker')
|
|
31
|
+
], Ej2TimePicker);
|
|
32
|
+
export { Ej2TimePicker };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { TreeView, TreeViewModel } from '@syncfusion/ej2-navigations';
|
|
3
|
+
export declare class Ej2TreeView extends SyncfusionWrapper<TreeView, TreeViewModel> {
|
|
4
|
+
protected syncfusionWidgetType: typeof TreeView;
|
|
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 { TreeView } from '@syncfusion/ej2-navigations';
|
|
9
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
10
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
11
|
+
let Ej2TreeView = class Ej2TreeView extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = TreeView;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
Ej2TreeView = __decorate([
|
|
22
|
+
generateBindables("treeView"),
|
|
23
|
+
inlineView(`<template><div element.ref="widgetElement"></div></template>`),
|
|
24
|
+
customElement('ej2-tree-view')
|
|
25
|
+
], Ej2TreeView);
|
|
26
|
+
export { Ej2TreeView };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Disposable } from 'aurelia-binding';
|
|
2
|
+
import { Uploader, UploaderModel, RemovingEventArgs } from "@syncfusion/ej2-inputs";
|
|
3
|
+
import { SyncfusionWrapper } from "../../common/syncfusionWrapper";
|
|
4
|
+
export declare class Ej2Uploader extends SyncfusionWrapper<Uploader, UploaderModel> {
|
|
5
|
+
private _filesProperty;
|
|
6
|
+
private originalFiles;
|
|
7
|
+
private _filesCollectionSubscription;
|
|
8
|
+
private _privateIdProperty;
|
|
9
|
+
protected syncfusionWidgetType: typeof Uploader;
|
|
10
|
+
mapAdditionalFilePropertiesToFiles: boolean;
|
|
11
|
+
sendAdditionalFilePropertiesAsFormData: boolean;
|
|
12
|
+
metadata: any;
|
|
13
|
+
formDataProperty: string;
|
|
14
|
+
metadataGenerator: (file: object) => object;
|
|
15
|
+
uploadResultModel: object;
|
|
16
|
+
dataAdapter: Ej2UploaderDataAdapter;
|
|
17
|
+
autoRemoveServerFiles: boolean;
|
|
18
|
+
context: any;
|
|
19
|
+
files: any[];
|
|
20
|
+
private firstBind;
|
|
21
|
+
private get _files();
|
|
22
|
+
serverDelete: boolean;
|
|
23
|
+
protected onWrapperCreated(): void;
|
|
24
|
+
onfilesChanged(): void;
|
|
25
|
+
recreating(): void;
|
|
26
|
+
recreated(): void;
|
|
27
|
+
initializeFileCollection(): void;
|
|
28
|
+
initializeFile(widgetFile: any, i: any, extraProperties: any): void;
|
|
29
|
+
protected onWidgetCreated(): void;
|
|
30
|
+
onBind(): void;
|
|
31
|
+
createFilesCollectionSubscription(): Disposable;
|
|
32
|
+
change(): void;
|
|
33
|
+
getFilesThatWereRemoved(): any[];
|
|
34
|
+
removeAll(): void;
|
|
35
|
+
removeFile(file: any): void;
|
|
36
|
+
removing(args: RemovingEventArgs): Promise<void>;
|
|
37
|
+
onWidgetRemoveComplete(response: any, args: any): void;
|
|
38
|
+
onWidgetRemoveFailed(e: any, args: any): void;
|
|
39
|
+
onRemoveSuccess(args: any): void;
|
|
40
|
+
success(args: any): void;
|
|
41
|
+
failure(args: any): void;
|
|
42
|
+
private getAdditionalFileProperties;
|
|
43
|
+
private onFileUpload;
|
|
44
|
+
private createMetadata;
|
|
45
|
+
}
|
|
46
|
+
export interface Ej2UploaderDataAdapter {
|
|
47
|
+
remove(file: any): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
export interface Ej2UploaderRemove {
|
|
50
|
+
}
|