aurelia-syncfusion-ej2-bridge 1.0.20 → 1.0.22-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/dist/commonjs/common/syncfusionWrapper.js +10 -1
- package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +8 -8
- package/dist/native-modules/common/syncfusionWrapper.js +10 -1
- package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +8 -8
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# `aurelia-syncfusion-ej-2-bridge`
|
|
2
|
-
|
|
3
|
-
This wrapper is not fully supported, use at your own risk
|
|
4
|
-
|
|
5
|
-
# Supported controls
|
|
6
|
-
* Accoridon
|
|
7
|
-
* Auto Complete
|
|
8
|
-
* Button
|
|
9
|
-
* Checkbox
|
|
10
|
-
* Color Picker
|
|
11
|
-
* Combobox
|
|
12
|
-
* Dashboard Layout
|
|
13
|
-
* Date Picker
|
|
14
|
-
* Date Time Picker
|
|
15
|
-
* Dropdown List
|
|
16
|
-
* Dropdown Tree
|
|
17
|
-
* File Manager
|
|
18
|
-
* Grid
|
|
19
|
-
* List View
|
|
20
|
-
* Masked Textbox
|
|
21
|
-
* Numeric Textbox
|
|
22
|
-
* Pager
|
|
23
|
-
* Progress Button
|
|
24
|
-
* Radio
|
|
25
|
-
* Rich Text Editor
|
|
26
|
-
* Schedule
|
|
27
|
-
* Sidebar
|
|
28
|
-
* Slider
|
|
29
|
-
* Splitter
|
|
30
|
-
* Switch
|
|
31
|
-
* Textbox
|
|
32
|
-
* Timeline
|
|
33
|
-
* Time Picker
|
|
34
|
-
* Tree View
|
|
35
|
-
* Uploader
|
|
1
|
+
# `aurelia-syncfusion-ej-2-bridge`
|
|
2
|
+
|
|
3
|
+
This wrapper is not fully supported, use at your own risk
|
|
4
|
+
|
|
5
|
+
# Supported controls
|
|
6
|
+
* Accoridon
|
|
7
|
+
* Auto Complete
|
|
8
|
+
* Button
|
|
9
|
+
* Checkbox
|
|
10
|
+
* Color Picker
|
|
11
|
+
* Combobox
|
|
12
|
+
* Dashboard Layout
|
|
13
|
+
* Date Picker
|
|
14
|
+
* Date Time Picker
|
|
15
|
+
* Dropdown List
|
|
16
|
+
* Dropdown Tree
|
|
17
|
+
* File Manager
|
|
18
|
+
* Grid
|
|
19
|
+
* List View
|
|
20
|
+
* Masked Textbox
|
|
21
|
+
* Numeric Textbox
|
|
22
|
+
* Pager
|
|
23
|
+
* Progress Button
|
|
24
|
+
* Radio
|
|
25
|
+
* Rich Text Editor
|
|
26
|
+
* Schedule
|
|
27
|
+
* Sidebar
|
|
28
|
+
* Slider
|
|
29
|
+
* Splitter
|
|
30
|
+
* Switch
|
|
31
|
+
* Textbox
|
|
32
|
+
* Timeline
|
|
33
|
+
* Time Picker
|
|
34
|
+
* Tree View
|
|
35
|
+
* Uploader
|
|
@@ -6,7 +6,16 @@ class SyncfusionWrapper extends controlBase_1.ControlBase {
|
|
|
6
6
|
onCreateControl() {
|
|
7
7
|
this.onBeforeWidgetInstantiation();
|
|
8
8
|
this.widget = new this.syncfusionWidgetType(this._eModel);
|
|
9
|
-
|
|
9
|
+
let _modelCreated = null;
|
|
10
|
+
if (this._eModel["created"]) {
|
|
11
|
+
_modelCreated = this._eModel["created"];
|
|
12
|
+
}
|
|
13
|
+
this.widget.created = () => {
|
|
14
|
+
if (_modelCreated) {
|
|
15
|
+
_modelCreated();
|
|
16
|
+
}
|
|
17
|
+
this.onWidgetCreated();
|
|
18
|
+
};
|
|
10
19
|
this.onWrapperCreated();
|
|
11
20
|
this.createControlEvents(this.getBindables());
|
|
12
21
|
}
|
|
@@ -65,13 +65,13 @@ __decorate([
|
|
|
65
65
|
], Ej2CheckboxList.prototype, "matcher", void 0);
|
|
66
66
|
exports.Ej2CheckboxList = Ej2CheckboxList = __decorate([
|
|
67
67
|
(0, aurelia_framework_1.customElement)("ej2-checkbox-list"),
|
|
68
|
-
(0, aurelia_framework_1.inlineView)(`<template>
|
|
69
|
-
<div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
|
|
70
|
-
<ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
|
|
71
|
-
e-name.bind="optionModel? option[optionModel.name]: option"
|
|
72
|
-
click.delegate="checkboxClick(option, viewModels[$index])"
|
|
73
|
-
e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
|
|
74
|
-
</ej2-checkbox>
|
|
75
|
-
</div>
|
|
68
|
+
(0, aurelia_framework_1.inlineView)(`<template>
|
|
69
|
+
<div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
|
|
70
|
+
<ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
|
|
71
|
+
e-name.bind="optionModel? option[optionModel.name]: option"
|
|
72
|
+
click.delegate="checkboxClick(option, viewModels[$index])"
|
|
73
|
+
e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
|
|
74
|
+
</ej2-checkbox>
|
|
75
|
+
</div>
|
|
76
76
|
</template>`)
|
|
77
77
|
], Ej2CheckboxList);
|
|
@@ -3,7 +3,16 @@ export class SyncfusionWrapper extends ControlBase {
|
|
|
3
3
|
onCreateControl() {
|
|
4
4
|
this.onBeforeWidgetInstantiation();
|
|
5
5
|
this.widget = new this.syncfusionWidgetType(this._eModel);
|
|
6
|
-
|
|
6
|
+
let _modelCreated = null;
|
|
7
|
+
if (this._eModel["created"]) {
|
|
8
|
+
_modelCreated = this._eModel["created"];
|
|
9
|
+
}
|
|
10
|
+
this.widget.created = () => {
|
|
11
|
+
if (_modelCreated) {
|
|
12
|
+
_modelCreated();
|
|
13
|
+
}
|
|
14
|
+
this.onWidgetCreated();
|
|
15
|
+
};
|
|
7
16
|
this.onWrapperCreated();
|
|
8
17
|
this.createControlEvents(this.getBindables());
|
|
9
18
|
}
|
|
@@ -61,14 +61,14 @@ __decorate([
|
|
|
61
61
|
], Ej2CheckboxList.prototype, "matcher", void 0);
|
|
62
62
|
Ej2CheckboxList = __decorate([
|
|
63
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>
|
|
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
72
|
</template>`)
|
|
73
73
|
], Ej2CheckboxList);
|
|
74
74
|
export { Ej2CheckboxList };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aurelia-syncfusion-ej2-bridge",
|
|
3
3
|
"description": "An Aurelia plugin wrapper for syncfusion EJ2 controls",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.22-beta1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aurelia",
|
|
7
7
|
"syncfusion"
|
|
@@ -11,17 +11,18 @@
|
|
|
11
11
|
"name": "Refactored Technology Solutions"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"lodash": "^4.17.21"
|
|
14
|
+
"lodash": "^4.17.21",
|
|
15
|
+
"yarn": "^1.22.22"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
17
|
-
"@syncfusion/ej2": "^
|
|
18
|
+
"@syncfusion/ej2": "^29.2.10"
|
|
18
19
|
},
|
|
19
20
|
"scripts": {
|
|
20
21
|
"start": "au run",
|
|
21
22
|
"build": "au build-plugin"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"@syncfusion/ej2": "^
|
|
25
|
+
"@syncfusion/ej2": "^29.2.10",
|
|
25
26
|
"@types/jest": "^24.0.9",
|
|
26
27
|
"@types/node": "^20.12.7",
|
|
27
28
|
"aurelia-animator-css": "^1.0.4",
|