aurelia-syncfusion-ej2-bridge 0.1.0-beta.3 → 0.1.0-beta.31

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.
Files changed (153) hide show
  1. package/.vscode/extensions.json +10 -0
  2. package/.vscode/launch.json +31 -0
  3. package/.vscode/settings.json +5 -0
  4. package/README.md +32 -29
  5. package/dist/commonjs/common/constants.js +1 -0
  6. package/dist/commonjs/common/controlBase.d.ts +3 -1
  7. package/dist/commonjs/common/controlBase.js +14 -4
  8. package/dist/commonjs/common/controlContainer.js +1 -0
  9. package/dist/commonjs/common/syncfusionWrapper.d.ts +3 -0
  10. package/dist/commonjs/common/syncfusionWrapper.js +12 -2
  11. package/dist/commonjs/configBuider.d.ts +6 -4
  12. package/dist/commonjs/configBuider.js +85 -50
  13. package/dist/commonjs/controlBindings.d.ts +28 -0
  14. package/dist/commonjs/controlBindings.js +87 -36
  15. package/dist/commonjs/index.js +2 -1
  16. package/dist/commonjs/utilities/decorator.js +1 -0
  17. package/dist/commonjs/widgets/accordion/ej2-accordion.js +5 -1
  18. package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.js +5 -1
  19. package/dist/commonjs/widgets/button/ej2-button.d.ts +2 -1
  20. package/dist/commonjs/widgets/button/ej2-button.js +15 -5
  21. package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +15 -3
  22. package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +7 -1
  23. package/dist/commonjs/widgets/comboBox/ej2-comboBox.js +5 -1
  24. package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.js +5 -1
  25. package/dist/commonjs/widgets/datePicker/ej2-DatePicker.js +5 -1
  26. package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.js +5 -1
  27. package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.js +5 -1
  28. package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.js +5 -1
  29. package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.d.ts +8 -0
  30. package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.js +35 -0
  31. package/dist/commonjs/widgets/fileManager/ej2-fileManager.d.ts +9 -0
  32. package/dist/commonjs/widgets/fileManager/ej2-fileManager.js +34 -0
  33. package/dist/commonjs/widgets/grid/ej2-grid.js +27 -23
  34. package/dist/commonjs/widgets/listView/ej2-listView.js +6 -2
  35. package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.js +5 -1
  36. package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.d.ts +10 -0
  37. package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.js +44 -0
  38. package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.js +5 -1
  39. package/dist/commonjs/widgets/pager/ej2-pager.js +5 -1
  40. package/dist/commonjs/widgets/progressButton/ej2-progress-button.d.ts +2 -1
  41. package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +15 -5
  42. package/dist/commonjs/widgets/radio/ej2-radio.js +8 -4
  43. package/dist/commonjs/widgets/schedule/ej2-schedule.d.ts +8 -0
  44. package/dist/commonjs/widgets/schedule/ej2-schedule.js +32 -0
  45. package/dist/commonjs/widgets/sidebar/ej2-sidebar.d.ts +7 -0
  46. package/dist/commonjs/widgets/sidebar/ej2-sidebar.js +30 -0
  47. package/dist/commonjs/widgets/slider/ej2-slider.js +5 -1
  48. package/dist/commonjs/widgets/splitter/ej2-splitter.d.ts +7 -0
  49. package/dist/commonjs/widgets/splitter/ej2-splitter.js +29 -0
  50. package/dist/commonjs/widgets/switch/ej2-switch.d.ts +2 -1
  51. package/dist/commonjs/widgets/switch/ej2-switch.js +13 -5
  52. package/dist/commonjs/widgets/textBox/ej2-textBox.js +5 -1
  53. package/dist/commonjs/widgets/timePicker/ej2-timePicker.js +5 -1
  54. package/dist/commonjs/widgets/treeView/ej2-treeView.js +5 -1
  55. package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +7 -1
  56. package/dist/commonjs/widgets/uploader/ej2-uploader.js +70 -30
  57. package/dist/native-modules/common/controlBase.d.ts +3 -1
  58. package/dist/native-modules/common/controlBase.js +13 -4
  59. package/dist/native-modules/common/syncfusionWrapper.d.ts +3 -0
  60. package/dist/native-modules/common/syncfusionWrapper.js +11 -2
  61. package/dist/native-modules/configBuider.d.ts +6 -4
  62. package/dist/native-modules/configBuider.js +84 -50
  63. package/dist/native-modules/controlBindings.d.ts +28 -0
  64. package/dist/native-modules/controlBindings.js +86 -36
  65. package/dist/native-modules/widgets/accordion/ej2-accordion.js +4 -1
  66. package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.js +4 -1
  67. package/dist/native-modules/widgets/button/ej2-button.d.ts +2 -1
  68. package/dist/native-modules/widgets/button/ej2-button.js +14 -5
  69. package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +16 -4
  70. package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +7 -2
  71. package/dist/native-modules/widgets/comboBox/ej2-comboBox.js +4 -1
  72. package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.js +4 -1
  73. package/dist/native-modules/widgets/datePicker/ej2-DatePicker.js +4 -1
  74. package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.js +4 -1
  75. package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.js +4 -1
  76. package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.js +4 -1
  77. package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.d.ts +8 -0
  78. package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.js +32 -0
  79. package/dist/native-modules/widgets/fileManager/ej2-fileManager.d.ts +9 -0
  80. package/dist/native-modules/widgets/fileManager/ej2-fileManager.js +31 -0
  81. package/dist/native-modules/widgets/grid/ej2-grid.js +26 -23
  82. package/dist/native-modules/widgets/listView/ej2-listView.js +5 -2
  83. package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.js +4 -1
  84. package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.d.ts +10 -0
  85. package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.js +41 -0
  86. package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.js +4 -1
  87. package/dist/native-modules/widgets/pager/ej2-pager.js +4 -1
  88. package/dist/native-modules/widgets/progressButton/ej2-progress-button.d.ts +2 -1
  89. package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +14 -5
  90. package/dist/native-modules/widgets/radio/ej2-radio.js +7 -4
  91. package/dist/native-modules/widgets/schedule/ej2-schedule.d.ts +8 -0
  92. package/dist/native-modules/widgets/schedule/ej2-schedule.js +29 -0
  93. package/dist/native-modules/widgets/sidebar/ej2-sidebar.d.ts +7 -0
  94. package/dist/native-modules/widgets/sidebar/ej2-sidebar.js +27 -0
  95. package/dist/native-modules/widgets/slider/ej2-slider.js +4 -1
  96. package/dist/native-modules/widgets/splitter/ej2-splitter.d.ts +7 -0
  97. package/dist/native-modules/widgets/splitter/ej2-splitter.js +26 -0
  98. package/dist/native-modules/widgets/switch/ej2-switch.d.ts +2 -1
  99. package/dist/native-modules/widgets/switch/ej2-switch.js +12 -5
  100. package/dist/native-modules/widgets/textBox/ej2-textBox.js +4 -1
  101. package/dist/native-modules/widgets/timePicker/ej2-timePicker.js +4 -1
  102. package/dist/native-modules/widgets/treeView/ej2-treeView.js +4 -1
  103. package/dist/native-modules/widgets/uploader/ej2-uploader.d.ts +7 -1
  104. package/dist/native-modules/widgets/uploader/ej2-uploader.js +69 -30
  105. package/package.json +4 -4
  106. package/dist/commonjs/widgets/accordion/ej2-accordion.html +0 -3
  107. package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.html +0 -3
  108. package/dist/commonjs/widgets/button/ej2-button.html +0 -5
  109. package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.html +0 -9
  110. package/dist/commonjs/widgets/checkbox/ej2-checkbox.html +0 -3
  111. package/dist/commonjs/widgets/comboBox/ej2-comboBox.html +0 -3
  112. package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.html +0 -7
  113. package/dist/commonjs/widgets/datePicker/ej2-DatePicker.html +0 -3
  114. package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.html +0 -3
  115. package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.html +0 -3
  116. package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.html +0 -5
  117. package/dist/commonjs/widgets/grid/ej2-grid.html +0 -3
  118. package/dist/commonjs/widgets/listView/ej2-listView.html +0 -3
  119. package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.html +0 -3
  120. package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.html +0 -3
  121. package/dist/commonjs/widgets/pager/ej2-pager.html +0 -3
  122. package/dist/commonjs/widgets/progressButton/ej2-progress-button.html +0 -5
  123. package/dist/commonjs/widgets/radio/ej2-radio.html +0 -3
  124. package/dist/commonjs/widgets/slider/ej2-slider.html +0 -3
  125. package/dist/commonjs/widgets/switch/ej2-switch.html +0 -4
  126. package/dist/commonjs/widgets/textBox/ej2-textBox.html +0 -3
  127. package/dist/commonjs/widgets/timePicker/ej2-timePicker.html +0 -3
  128. package/dist/commonjs/widgets/treeView/ej2-treeView.html +0 -3
  129. package/dist/commonjs/widgets/uploader/ej2-uploader.html +0 -3
  130. package/dist/native-modules/widgets/accordion/ej2-accordion.html +0 -3
  131. package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.html +0 -3
  132. package/dist/native-modules/widgets/button/ej2-button.html +0 -5
  133. package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.html +0 -9
  134. package/dist/native-modules/widgets/checkbox/ej2-checkbox.html +0 -3
  135. package/dist/native-modules/widgets/comboBox/ej2-comboBox.html +0 -3
  136. package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.html +0 -7
  137. package/dist/native-modules/widgets/datePicker/ej2-DatePicker.html +0 -3
  138. package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.html +0 -3
  139. package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.html +0 -3
  140. package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.html +0 -5
  141. package/dist/native-modules/widgets/grid/ej2-grid.html +0 -3
  142. package/dist/native-modules/widgets/listView/ej2-listView.html +0 -3
  143. package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.html +0 -3
  144. package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.html +0 -3
  145. package/dist/native-modules/widgets/pager/ej2-pager.html +0 -3
  146. package/dist/native-modules/widgets/progressButton/ej2-progress-button.html +0 -5
  147. package/dist/native-modules/widgets/radio/ej2-radio.html +0 -3
  148. package/dist/native-modules/widgets/slider/ej2-slider.html +0 -3
  149. package/dist/native-modules/widgets/switch/ej2-switch.html +0 -4
  150. package/dist/native-modules/widgets/textBox/ej2-textBox.html +0 -3
  151. package/dist/native-modules/widgets/timePicker/ej2-timePicker.html +0 -3
  152. package/dist/native-modules/widgets/treeView/ej2-treeView.html +0 -3
  153. package/dist/native-modules/widgets/uploader/ej2-uploader.html +0 -3
@@ -0,0 +1,10 @@
1
+ {
2
+ "recommendations": [
3
+ "AureliaEffect.aurelia",
4
+ "msjsdiag.debugger-for-chrome",
5
+ "steoates.autoimport",
6
+ "EditorConfig.EditorConfig",
7
+ "christian-kohler.path-intellisense",
8
+ "behzad88.Aurelia"
9
+ ]
10
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Chrome Debugger",
6
+ "type": "chrome",
7
+ "request": "launch",
8
+ "url": "http://localhost:9000",
9
+ "webRoot": "${workspaceRoot}/src",
10
+ "userDataDir": "${workspaceRoot}/.chrome",
11
+ "sourceMapPathOverrides": {
12
+ "../src/*": "${webRoot}/*"
13
+ }
14
+ },
15
+ {
16
+ "type": "chrome",
17
+ "request": "attach",
18
+ "name": "Attach Karma Chrome",
19
+ "address": "localhost",
20
+ "port": 9333,
21
+ "sourceMaps": true,
22
+ "pathMapping": {
23
+ "/": "${workspaceRoot}",
24
+ "/base/": "${workspaceRoot}/"
25
+ },
26
+ "sourceMapPathOverrides": {
27
+ "../src/*": "${webRoot}/*"
28
+ }
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib",
3
+ "html.suggest.angular1": false,
4
+ "html.suggest.ionic": false
5
+ }
package/README.md CHANGED
@@ -1,29 +1,32 @@
1
- # `aurelia-syncfusion-ej-2-bridge`
2
-
3
- This is an early release and is not recommended for use
4
-
5
- # Supported controls
6
- * Accoridon
7
- * Auto Complete
8
- * Button
9
- * Checkbox
10
- * Combobox
11
- * Dashboard Layout
12
- * Date Picker
13
- * Date Time Picker
14
- * Dropdown List
15
- * Grid
16
- * List View
17
- * Masked Textbox
18
- * Numeric Textbox
19
- * Pager
20
- * Progress Button
21
- * Radio
22
- * Sidebar
23
- * Slider
24
- * Splitter
25
- * Switch
26
- * Textbox
27
- * Time Picker
28
- * Tree View
29
- * Uploader
1
+ # `aurelia-syncfusion-ej-2-bridge`
2
+
3
+ This is an early release and is not recommended for use
4
+
5
+ # Supported controls
6
+ * Accoridon
7
+ * Auto Complete
8
+ * Button
9
+ * Checkbox
10
+ * Combobox
11
+ * Dashboard Layout
12
+ * Date Picker
13
+ * Date Time Picker
14
+ * Dropdown List
15
+ * Dropdown Tree
16
+ * File Manager
17
+ * Grid
18
+ * List View
19
+ * Masked Textbox
20
+ * Numeric Textbox
21
+ * Pager
22
+ * Progress Button
23
+ * Radio
24
+ * Schedule
25
+ * Sidebar
26
+ * Slider
27
+ * Splitter
28
+ * Switch
29
+ * Textbox
30
+ * Time Picker
31
+ * Tree View
32
+ * Uploader
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.constants = void 0;
3
4
  exports.constants = {
4
5
  eventPrefix: 'e-on-',
5
6
  bindablePrefix: 'e-'
@@ -8,7 +8,8 @@ export declare class ControlBase<T, U> {
8
8
  protected taskQueue: TaskQueue;
9
9
  protected eventAggregator: EventAggregator;
10
10
  protected element: Element;
11
- eModel: U;
11
+ private eModel;
12
+ protected _eModel: U;
12
13
  protected widgetElement: HTMLElement;
13
14
  widget: T;
14
15
  protected bindingContext: any;
@@ -18,6 +19,7 @@ export declare class ControlBase<T, U> {
18
19
  protected subscriptions: Disposable[];
19
20
  constructor(bindingEngine: BindingEngine, controlContainer: ControlContainer, taskQueue: TaskQueue, eventAggregator: EventAggregator, element: Element);
20
21
  onBind(): void;
22
+ onAttached(): void;
21
23
  onCreateControl(): void;
22
24
  protected debug(message: string, ...rest: any[]): void;
23
25
  protected info(message: string, ...rest: any[]): void;
@@ -9,6 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ExcludedProperties = exports.ControlBase = void 0;
12
13
  const aurelia_task_queue_1 = require("aurelia-task-queue");
13
14
  const aurelia_framework_1 = require("aurelia-framework");
14
15
  const controlContainer_1 = require("./controlContainer");
@@ -23,19 +24,21 @@ let ControlBase = class ControlBase {
23
24
  this.eventAggregator = eventAggregator;
24
25
  this.element = element;
25
26
  this.eModel = null;
27
+ this._eModel = null;
26
28
  this.widgetElement = null;
27
29
  this.widget = null;
28
30
  this.bindingContext = null;
29
31
  this.logName = "";
30
32
  this.propertyPriority = true;
31
33
  this.subscriptions = [];
32
- this.eModel = {};
33
34
  }
34
35
  get controlType() {
35
36
  throw "syncfusionControlType is not set";
36
37
  }
37
38
  onBind() {
38
39
  }
40
+ onAttached() {
41
+ }
39
42
  onCreateControl() {
40
43
  throw "onCreateControl is not implemented";
41
44
  }
@@ -54,6 +57,7 @@ let ControlBase = class ControlBase {
54
57
  bind(context) {
55
58
  this.logName = this.controlType.name;
56
59
  this.bindingContext = context;
60
+ this._eModel = Object.assign({}, this.eModel);
57
61
  this.setInitialBindings();
58
62
  this.onCreateControl();
59
63
  this.onBind();
@@ -64,8 +68,8 @@ let ControlBase = class ControlBase {
64
68
  _control.bindableProperties.forEach((property) => {
65
69
  if (!property.startsWith(constants_1.constants.eventPrefix)) {
66
70
  let modelProperty = property.substr(bindablePrefixLength);
67
- if (this[property] !== undefined && (this.propertyPriority || this.eModel[modelProperty] === undefined)) {
68
- this.eModel[modelProperty] = this[property];
71
+ if (this[property] !== undefined && (this.propertyPriority || this._eModel[modelProperty] === undefined)) {
72
+ this._eModel[modelProperty] = this[property];
69
73
  }
70
74
  }
71
75
  });
@@ -123,15 +127,21 @@ let ControlBase = class ControlBase {
123
127
  }
124
128
  attached() {
125
129
  this.appendWidget();
130
+ this.onAttached();
126
131
  }
127
132
  appendWidget() {
128
133
  this.widget.appendTo(this.widgetElement);
129
134
  }
130
135
  detached() {
131
- this.subscriptions.forEach((subscription) => subscription.dispose());
136
+ this.subscriptions.forEach((subscription) => { if (subscription) {
137
+ subscription.dispose();
138
+ } });
132
139
  if (this.widget.destroy) {
133
140
  this.widget.destroy();
134
141
  }
142
+ this.widget = null;
143
+ this._eModel = null;
144
+ this.widgetElement = null;
135
145
  }
136
146
  };
137
147
  __decorate([
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ControlContainer = void 0;
3
4
  class ControlContainer {
4
5
  constructor() {
5
6
  this.controls = [];
@@ -5,6 +5,9 @@ export declare abstract class SyncfusionWrapper<T, U> extends ControlBase<T, U>
5
5
  protected abstract onWidgetCreated(): any;
6
6
  onCreateControl(): void;
7
7
  recreate(): void;
8
+ onRecreate(): void;
9
+ recreating(): void;
10
+ recreated(): void;
8
11
  refresh(): void;
9
12
  dataBind(): void;
10
13
  protected get controlType(): any;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncfusionWrapper = void 0;
3
4
  const controlBase_1 = require("./controlBase");
4
5
  class SyncfusionWrapper extends controlBase_1.ControlBase {
5
6
  constructor() {
@@ -8,17 +9,26 @@ class SyncfusionWrapper extends controlBase_1.ControlBase {
8
9
  }
9
10
  onCreateControl() {
10
11
  this.onBeforeWidgetInstantiation();
11
- this.widget = new this.syncfusionWidgetType(this.eModel);
12
+ this.widget = new this.syncfusionWidgetType(this._eModel);
12
13
  this.widget.created = () => { this.onWidgetCreated(); };
13
14
  this.onWrapperCreated();
14
15
  this.createControlEvents(this.getBindables());
15
16
  }
16
17
  recreate() {
17
- this.debug("recreate");
18
+ this.onRecreate();
18
19
  this.widget.destroy();
20
+ this.widget = null;
21
+ this.recreating();
19
22
  this.setInitialBindings();
20
23
  this.onCreateControl();
21
24
  this.appendWidget();
25
+ this.recreated();
26
+ }
27
+ onRecreate() {
28
+ }
29
+ recreating() {
30
+ }
31
+ recreated() {
22
32
  }
23
33
  refresh() {
24
34
  this.widget.refresh();
@@ -5,10 +5,6 @@ export declare class ConfigBuilder {
5
5
  useDefaults(): ConfigBuilder;
6
6
  useTheme(theme: "material" | "bootstrap" | "bootstrap4" | "fabric" | "highcontrast"): this;
7
7
  materialTheme(): this;
8
- fabricTheme(): this;
9
- bootstrapTheme(): this;
10
- bootstrap4Theme(): this;
11
- highcontrastTheme(): this;
12
8
  withoutGlobalResources(): ConfigBuilder;
13
9
  ej2Accordion(): ConfigBuilder;
14
10
  ej2AutoComplete(): ConfigBuilder;
@@ -21,14 +17,20 @@ export declare class ConfigBuilder {
21
17
  ej2DateRangePicker(): ConfigBuilder;
22
18
  ej2DateTimePicker(): ConfigBuilder;
23
19
  ej2DropDownList(): ConfigBuilder;
20
+ ej2DropDownTree(): ConfigBuilder;
21
+ ej2FileManager(): ConfigBuilder;
24
22
  ej2Grid(): ConfigBuilder;
25
23
  ej2ListView(): ConfigBuilder;
26
24
  ej2MaskedTextBox(): ConfigBuilder;
25
+ ej2MultiSelect(): ConfigBuilder;
27
26
  ej2NumericTextBox(): ConfigBuilder;
28
27
  ej2Pager(): ConfigBuilder;
29
28
  ej2ProgressButton(): ConfigBuilder;
30
29
  ej2Radio(): ConfigBuilder;
30
+ ej2Schedule(): ConfigBuilder;
31
+ ej2Sidebar(): ConfigBuilder;
31
32
  ej2Slider(): ConfigBuilder;
33
+ ej2Splitter(): ConfigBuilder;
32
34
  ej2Switch(): ConfigBuilder;
33
35
  ej2TextBox(): ConfigBuilder;
34
36
  ej2TimePicker(): ConfigBuilder;
@@ -1,6 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const aurelia_pal_1 = require("aurelia-pal");
3
+ exports.ConfigBuilder = void 0;
4
+ const ej2_multiSelect_1 = require("./widgets/multiSelect/ej2-multiSelect");
5
+ const ej2_schedule_1 = require("./widgets/schedule/ej2-schedule");
6
+ const ej2_fileManager_1 = require("./widgets/fileManager/ej2-fileManager");
7
+ const ej2_sidebar_1 = require("./widgets/sidebar/ej2-sidebar");
8
+ const ej2_DatePicker_1 = require("./widgets/datePicker/ej2-DatePicker");
9
+ const ej2_textBox_1 = require("./widgets/textBox/ej2-textBox");
10
+ const ej2_dateRangePicker_1 = require("./widgets/dateRangePicker/ej2-dateRangePicker");
11
+ const ej2_dateTimePicker_1 = require("./widgets/dateTimePicker/ej2-dateTimePicker");
12
+ const ej2_dashboardLayout_1 = require("./widgets/dashboardLayout/ej2-dashboardLayout");
13
+ const ej2_comboBox_1 = require("./widgets/comboBox/ej2-comboBox");
14
+ const ej2_checkbox_list_1 = require("./widgets/checkbox/ej2-checkbox-list");
15
+ const ej2_checkbox_1 = require("./widgets/checkbox/ej2-checkbox");
16
+ const ej2_button_1 = require("./widgets/button/ej2-button");
17
+ const ej2_autoComplete_1 = require("./widgets/autoComplete/ej2-autoComplete");
18
+ const ej2_accordion_1 = require("./widgets/accordion/ej2-accordion");
19
+ const ej2_dropDownList_1 = require("./widgets/dropDownList/ej2-dropDownList");
20
+ const ej2_grid_1 = require("./widgets/grid/ej2-grid");
21
+ const ej2_listView_1 = require("./widgets/listView/ej2-listView");
22
+ const ej2_maskedTextBox_1 = require("./widgets/maskedTextBox/ej2-maskedTextBox");
23
+ const ej2_numericTextBox_1 = require("./widgets/numericTextBox/ej2-numericTextBox");
24
+ const ej2_pager_1 = require("./widgets/pager/ej2-pager");
25
+ const ej2_progress_button_1 = require("./widgets/progressButton/ej2-progress-button");
26
+ const ej2_radio_1 = require("./widgets/radio/ej2-radio");
27
+ const ej2_slider_1 = require("./widgets/slider/ej2-slider");
28
+ const ej2_switch_1 = require("./widgets/switch/ej2-switch");
29
+ const ej2_timePicker_1 = require("./widgets/timePicker/ej2-timePicker");
30
+ const ej2_treeView_1 = require("./widgets/treeView/ej2-treeView");
31
+ const ej2_uploader_1 = require("./widgets/uploader/ej2-uploader");
32
+ const ej2_splitter_1 = require("./widgets/splitter/ej2-splitter");
33
+ const ej2_dropDownTree_1 = require("./widgets/dropDownTree/ej2-dropDownTree");
4
34
  class ConfigBuilder {
5
35
  constructor() {
6
36
  this.resources = [];
@@ -19,14 +49,20 @@ class ConfigBuilder {
19
49
  .ej2DateTimePicker()
20
50
  .ej2DashboardLayout()
21
51
  .ej2DropDownList()
52
+ .ej2DropDownTree()
53
+ .ej2FileManager()
22
54
  .ej2Grid()
23
55
  .ej2ListView()
24
56
  .ej2MaskedTextBox()
57
+ .ej2MultiSelect()
25
58
  .ej2NumericTextBox()
26
59
  .ej2Pager()
27
60
  .ej2ProgressButton()
28
61
  .ej2Radio()
62
+ .ej2Schedule()
63
+ .ej2Sidebar()
29
64
  .ej2Slider()
65
+ .ej2Splitter()
30
66
  .ej2Switch()
31
67
  .ej2TextBox()
32
68
  .ej2TimePicker()
@@ -41,36 +77,11 @@ class ConfigBuilder {
41
77
  switch (theme) {
42
78
  case "material":
43
79
  return this.materialTheme();
44
- case "fabric":
45
- return this.fabricTheme();
46
- case "bootstrap":
47
- return this.bootstrapTheme();
48
- case "bootstrap4":
49
- return this.bootstrap4Theme();
50
- case "highcontrast":
51
- return this.highcontrastTheme();
52
80
  default:
53
81
  return this;
54
82
  }
55
83
  }
56
84
  materialTheme() {
57
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/material.css"));
58
- return this;
59
- }
60
- fabricTheme() {
61
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/fabric.css"));
62
- return this;
63
- }
64
- bootstrapTheme() {
65
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/bootstrap.css"));
66
- return this;
67
- }
68
- bootstrap4Theme() {
69
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/bootstrap4.css"));
70
- return this;
71
- }
72
- highcontrastTheme() {
73
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("@syncfusion/ej2/highcontrast.css"));
74
85
  return this;
75
86
  }
76
87
  withoutGlobalResources() {
@@ -78,99 +89,123 @@ class ConfigBuilder {
78
89
  return this;
79
90
  }
80
91
  ej2Accordion() {
81
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/accordion/ej2-accordion'));
92
+ this.resources.push(ej2_accordion_1.Ej2Accordion);
82
93
  return this;
83
94
  }
84
95
  ej2AutoComplete() {
85
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/autoComplete/ej2-autoComplete'));
96
+ this.resources.push(ej2_autoComplete_1.Ej2AutoComplete);
86
97
  return this;
87
98
  }
88
99
  ej2Button() {
89
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/button/ej2-button"));
100
+ this.resources.push(ej2_button_1.Ej2Button);
90
101
  return this;
91
102
  }
92
103
  ej2Checkbox() {
93
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/checkbox/ej2-checkbox"));
104
+ this.resources.push(ej2_checkbox_1.Ej2Checkbox);
94
105
  return this;
95
106
  }
96
107
  ej2CheckboxList() {
97
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/checkbox/ej2-checkbox-list"));
108
+ this.resources.push(ej2_checkbox_list_1.Ej2CheckboxList);
98
109
  return this;
99
110
  }
100
111
  ej2ComboBox() {
101
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/comboBox/ej2-comboBox'));
112
+ this.resources.push(ej2_comboBox_1.Ej2ComboBox);
102
113
  return this;
103
114
  }
104
115
  ej2DashboardLayout() {
105
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/dashboardLayout/ej2-dashboardLayout'));
116
+ this.resources.push(ej2_dashboardLayout_1.Ej2DashboardLayout);
106
117
  return this;
107
118
  }
108
119
  ej2DatePicker() {
109
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/datePicker/ej2-DatePicker'));
120
+ this.resources.push(ej2_DatePicker_1.Ej2DatePicker);
110
121
  return this;
111
122
  }
112
123
  ej2DateRangePicker() {
113
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/dateRangePicker/ej2-dateRangePicker'));
124
+ this.resources.push(ej2_dateRangePicker_1.Ej2DateRangePicker);
114
125
  return this;
115
126
  }
116
127
  ej2DateTimePicker() {
117
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/dateTimePicker/ej2-dateTimePicker'));
128
+ this.resources.push(ej2_dateTimePicker_1.Ej2DateTimePicker);
118
129
  return this;
119
130
  }
120
131
  ej2DropDownList() {
121
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/dropDownList/ej2-dropDownList'));
132
+ this.resources.push(ej2_dropDownList_1.Ej2DropDownList);
133
+ return this;
134
+ }
135
+ ej2DropDownTree() {
136
+ this.resources.push(ej2_dropDownTree_1.Ej2DropDownTree);
137
+ return this;
138
+ }
139
+ ej2FileManager() {
140
+ this.resources.push(ej2_fileManager_1.Ej2FileManager);
122
141
  return this;
123
142
  }
124
143
  ej2Grid() {
125
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/grid/ej2-grid"));
144
+ this.resources.push(ej2_grid_1.Ej2Grid);
126
145
  return this;
127
146
  }
128
147
  ej2ListView() {
129
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/listView/ej2-listView'));
148
+ this.resources.push(ej2_listView_1.Ej2ListView);
130
149
  return this;
131
150
  }
132
151
  ej2MaskedTextBox() {
133
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/maskedTextBox/ej2-maskedTextBox'));
152
+ this.resources.push(ej2_maskedTextBox_1.Ej2MaskedTextBox);
153
+ return this;
154
+ }
155
+ ej2MultiSelect() {
156
+ this.resources.push(ej2_multiSelect_1.Ej2MultiSelect);
134
157
  return this;
135
158
  }
136
159
  ej2NumericTextBox() {
137
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/numericTextBox/ej2-numericTextBox'));
160
+ this.resources.push(ej2_numericTextBox_1.Ej2NumericTextBox);
138
161
  return this;
139
162
  }
140
163
  ej2Pager() {
141
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/pager/ej2-pager'));
164
+ this.resources.push(ej2_pager_1.Ej2Pager);
142
165
  return this;
143
166
  }
144
167
  ej2ProgressButton() {
145
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/progressButton/ej2-progress-button"));
168
+ this.resources.push(ej2_progress_button_1.Ej2ProgressButton);
146
169
  return this;
147
170
  }
148
171
  ej2Radio() {
149
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/radio/ej2-radio"));
172
+ this.resources.push(ej2_radio_1.Ej2Radio);
173
+ return this;
174
+ }
175
+ ej2Schedule() {
176
+ this.resources.push(ej2_schedule_1.Ej2Schedule);
177
+ return this;
178
+ }
179
+ ej2Sidebar() {
180
+ this.resources.push(ej2_sidebar_1.Ej2Sidebar);
150
181
  return this;
151
182
  }
152
183
  ej2Slider() {
153
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/slider/ej2-slider'));
184
+ this.resources.push(ej2_slider_1.Ej2Slider);
185
+ return this;
186
+ }
187
+ ej2Splitter() {
188
+ this.resources.push(ej2_splitter_1.Ej2Splitter);
154
189
  return this;
155
190
  }
156
191
  ej2Switch() {
157
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/switch/ej2-switch'));
192
+ this.resources.push(ej2_switch_1.Ej2Switch);
158
193
  return this;
159
194
  }
160
195
  ej2TextBox() {
161
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/textBox/ej2-textBox"));
196
+ this.resources.push(ej2_textBox_1.Ej2TextBox);
162
197
  return this;
163
198
  }
164
199
  ej2TimePicker() {
165
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/timePicker/ej2-timePicker'));
200
+ this.resources.push(ej2_timePicker_1.Ej2TimePicker);
166
201
  return this;
167
202
  }
168
203
  ej2TreeView() {
169
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName('./widgets/treeView/ej2-treeView'));
204
+ this.resources.push(ej2_treeView_1.Ej2TreeView);
170
205
  return this;
171
206
  }
172
207
  ej2Uploader() {
173
- this.resources.push(aurelia_pal_1.PLATFORM.moduleName("./widgets/uploader/ej2-uploader"));
208
+ this.resources.push(ej2_uploader_1.Ej2Uploader);
174
209
  return this;
175
210
  }
176
211
  }
@@ -49,6 +49,16 @@ export declare const ControlBindings: {
49
49
  twoWay: string[];
50
50
  events: string[];
51
51
  };
52
+ dropDownTree: {
53
+ oneWay: string[];
54
+ twoWay: string[];
55
+ events: string[];
56
+ };
57
+ fileManager: {
58
+ oneWay: string[];
59
+ twoWay: any[];
60
+ events: string[];
61
+ };
52
62
  grid: {
53
63
  oneWay: string[];
54
64
  fromView: string[];
@@ -64,12 +74,18 @@ export declare const ControlBindings: {
64
74
  twoWay: string[];
65
75
  events: string[];
66
76
  };
77
+ multiSelect: {
78
+ oneWay: string[];
79
+ twoWay: string[];
80
+ events: string[];
81
+ };
67
82
  numericTextBox: {
68
83
  oneWay: string[];
69
84
  twoWay: string[];
70
85
  events: string[];
71
86
  };
72
87
  pager: {
88
+ oneWay: string[];
73
89
  twoWay: string[];
74
90
  events: string[];
75
91
  };
@@ -81,11 +97,23 @@ export declare const ControlBindings: {
81
97
  oneWay: string[];
82
98
  events: string[];
83
99
  };
100
+ schedule: {
101
+ oneWay: string[];
102
+ events: string[];
103
+ };
104
+ sidebar: {
105
+ oneWay: string[];
106
+ events: string[];
107
+ };
84
108
  slider: {
85
109
  oneWay: string[];
86
110
  twoWay: string[];
87
111
  events: string[];
88
112
  };
113
+ splitter: {
114
+ oneWay: string[];
115
+ events: string[];
116
+ };
89
117
  switch: {
90
118
  oneWay: string[];
91
119
  twoWay: string[];