aurelia-syncfusion-ej2-bridge 1.0.5 → 1.0.7

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 (173) hide show
  1. package/README.md +35 -34
  2. package/package.json +106 -106
  3. package/.vscode/extensions.json +0 -10
  4. package/.vscode/launch.json +0 -31
  5. package/.vscode/settings.json +0 -5
  6. package/dist/commonjs/common/constants.d.ts +0 -4
  7. package/dist/commonjs/common/constants.js +0 -7
  8. package/dist/commonjs/common/controlBase.d.ts +0 -37
  9. package/dist/commonjs/common/controlBase.js +0 -161
  10. package/dist/commonjs/common/controlContainer.d.ts +0 -10
  11. package/dist/commonjs/common/controlContainer.js +0 -19
  12. package/dist/commonjs/common/syncfusionWrapper.d.ts +0 -15
  13. package/dist/commonjs/common/syncfusionWrapper.js +0 -44
  14. package/dist/commonjs/configBuider.d.ts +0 -41
  15. package/dist/commonjs/configBuider.js +0 -224
  16. package/dist/commonjs/controlBindings.d.ts +0 -150
  17. package/dist/commonjs/controlBindings.js +0 -184
  18. package/dist/commonjs/index.d.ts +0 -6
  19. package/dist/commonjs/index.js +0 -17
  20. package/dist/commonjs/interfaces/IEJ2WidgetBridge.d.ts +0 -6
  21. package/dist/commonjs/interfaces/IEJ2WidgetBridge.js +0 -2
  22. package/dist/commonjs/interfaces/IEj2Uploader.d.ts +0 -17
  23. package/dist/commonjs/interfaces/IEj2Uploader.js +0 -2
  24. package/dist/commonjs/utilities/decorator.d.ts +0 -2
  25. package/dist/commonjs/utilities/decorator.js +0 -63
  26. package/dist/commonjs/widgets/accordion/ej2-accordion.d.ts +0 -7
  27. package/dist/commonjs/widgets/accordion/ej2-accordion.js +0 -31
  28. package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.d.ts +0 -7
  29. package/dist/commonjs/widgets/autoComplete/ej2-autoComplete.js +0 -29
  30. package/dist/commonjs/widgets/button/ej2-button.d.ts +0 -14
  31. package/dist/commonjs/widgets/button/ej2-button.js +0 -55
  32. package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.d.ts +0 -17
  33. package/dist/commonjs/widgets/checkbox/ej2-checkbox-list.js +0 -77
  34. package/dist/commonjs/widgets/checkbox/ej2-checkbox.d.ts +0 -12
  35. package/dist/commonjs/widgets/checkbox/ej2-checkbox.js +0 -58
  36. package/dist/commonjs/widgets/comboBox/ej2-comboBox.d.ts +0 -8
  37. package/dist/commonjs/widgets/comboBox/ej2-comboBox.js +0 -35
  38. package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.d.ts +0 -7
  39. package/dist/commonjs/widgets/dashboardLayout/ej2-dashboardLayout.js +0 -29
  40. package/dist/commonjs/widgets/datePicker/ej2-DatePicker.d.ts +0 -8
  41. package/dist/commonjs/widgets/datePicker/ej2-DatePicker.js +0 -35
  42. package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.d.ts +0 -8
  43. package/dist/commonjs/widgets/dateRangePicker/ej2-dateRangePicker.js +0 -37
  44. package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.d.ts +0 -8
  45. package/dist/commonjs/widgets/dateTimePicker/ej2-dateTimePicker.js +0 -35
  46. package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.d.ts +0 -9
  47. package/dist/commonjs/widgets/dropDownList/ej2-dropDownList.js +0 -39
  48. package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.d.ts +0 -8
  49. package/dist/commonjs/widgets/dropDownTree/ej2-dropDownTree.js +0 -35
  50. package/dist/commonjs/widgets/fileManager/ej2-fileManager.d.ts +0 -9
  51. package/dist/commonjs/widgets/fileManager/ej2-fileManager.js +0 -34
  52. package/dist/commonjs/widgets/grid/ej2-grid.d.ts +0 -8
  53. package/dist/commonjs/widgets/grid/ej2-grid.js +0 -97
  54. package/dist/commonjs/widgets/listView/ej2-listView.d.ts +0 -8
  55. package/dist/commonjs/widgets/listView/ej2-listView.js +0 -34
  56. package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.d.ts +0 -8
  57. package/dist/commonjs/widgets/maskedTextBox/ej2-maskedTextBox.js +0 -37
  58. package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.d.ts +0 -10
  59. package/dist/commonjs/widgets/multiSelect/ej2-multiSelect.js +0 -44
  60. package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.d.ts +0 -8
  61. package/dist/commonjs/widgets/numericTextBox/ej2-numericTextBox.js +0 -35
  62. package/dist/commonjs/widgets/pager/ej2-pager.d.ts +0 -7
  63. package/dist/commonjs/widgets/pager/ej2-pager.js +0 -29
  64. package/dist/commonjs/widgets/progressButton/ej2-progress-button.d.ts +0 -17
  65. package/dist/commonjs/widgets/progressButton/ej2-progress-button.js +0 -64
  66. package/dist/commonjs/widgets/radio/ej2-radio.d.ts +0 -13
  67. package/dist/commonjs/widgets/radio/ej2-radio.js +0 -54
  68. package/dist/commonjs/widgets/richTextEditor/ej2-richTextEditor.d.ts +0 -8
  69. package/dist/commonjs/widgets/richTextEditor/ej2-richTextEditor.js +0 -32
  70. package/dist/commonjs/widgets/schedule/ej2-schedule.d.ts +0 -8
  71. package/dist/commonjs/widgets/schedule/ej2-schedule.js +0 -32
  72. package/dist/commonjs/widgets/sidebar/ej2-sidebar.d.ts +0 -7
  73. package/dist/commonjs/widgets/sidebar/ej2-sidebar.js +0 -30
  74. package/dist/commonjs/widgets/slider/ej2-slider.d.ts +0 -10
  75. package/dist/commonjs/widgets/slider/ej2-slider.js +0 -52
  76. package/dist/commonjs/widgets/splitter/ej2-splitter.d.ts +0 -7
  77. package/dist/commonjs/widgets/splitter/ej2-splitter.js +0 -29
  78. package/dist/commonjs/widgets/switch/ej2-switch.d.ts +0 -11
  79. package/dist/commonjs/widgets/switch/ej2-switch.js +0 -52
  80. package/dist/commonjs/widgets/textBox/ej2-textBox.d.ts +0 -8
  81. package/dist/commonjs/widgets/textBox/ej2-textBox.js +0 -37
  82. package/dist/commonjs/widgets/timePicker/ej2-timePicker.d.ts +0 -8
  83. package/dist/commonjs/widgets/timePicker/ej2-timePicker.js +0 -35
  84. package/dist/commonjs/widgets/timeline/ej2-timeline.d.ts +0 -7
  85. package/dist/commonjs/widgets/timeline/ej2-timeline.js +0 -29
  86. package/dist/commonjs/widgets/treeView/ej2-treeView.d.ts +0 -7
  87. package/dist/commonjs/widgets/treeView/ej2-treeView.js +0 -29
  88. package/dist/commonjs/widgets/uploader/ej2-uploader.d.ts +0 -50
  89. package/dist/commonjs/widgets/uploader/ej2-uploader.js +0 -357
  90. package/dist/native-modules/common/constants.d.ts +0 -4
  91. package/dist/native-modules/common/constants.js +0 -4
  92. package/dist/native-modules/common/controlBase.d.ts +0 -37
  93. package/dist/native-modules/common/controlBase.js +0 -158
  94. package/dist/native-modules/common/controlContainer.d.ts +0 -10
  95. package/dist/native-modules/common/controlContainer.js +0 -15
  96. package/dist/native-modules/common/syncfusionWrapper.d.ts +0 -15
  97. package/dist/native-modules/common/syncfusionWrapper.js +0 -40
  98. package/dist/native-modules/configBuider.d.ts +0 -41
  99. package/dist/native-modules/configBuider.js +0 -220
  100. package/dist/native-modules/controlBindings.d.ts +0 -150
  101. package/dist/native-modules/controlBindings.js +0 -181
  102. package/dist/native-modules/index.d.ts +0 -6
  103. package/dist/native-modules/index.js +0 -12
  104. package/dist/native-modules/interfaces/IEJ2WidgetBridge.d.ts +0 -6
  105. package/dist/native-modules/interfaces/IEJ2WidgetBridge.js +0 -1
  106. package/dist/native-modules/interfaces/IEj2Uploader.d.ts +0 -17
  107. package/dist/native-modules/interfaces/IEj2Uploader.js +0 -1
  108. package/dist/native-modules/utilities/decorator.d.ts +0 -2
  109. package/dist/native-modules/utilities/decorator.js +0 -59
  110. package/dist/native-modules/widgets/accordion/ej2-accordion.d.ts +0 -7
  111. package/dist/native-modules/widgets/accordion/ej2-accordion.js +0 -28
  112. package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.d.ts +0 -7
  113. package/dist/native-modules/widgets/autoComplete/ej2-autoComplete.js +0 -26
  114. package/dist/native-modules/widgets/button/ej2-button.d.ts +0 -14
  115. package/dist/native-modules/widgets/button/ej2-button.js +0 -52
  116. package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.d.ts +0 -17
  117. package/dist/native-modules/widgets/checkbox/ej2-checkbox-list.js +0 -74
  118. package/dist/native-modules/widgets/checkbox/ej2-checkbox.d.ts +0 -12
  119. package/dist/native-modules/widgets/checkbox/ej2-checkbox.js +0 -55
  120. package/dist/native-modules/widgets/comboBox/ej2-comboBox.d.ts +0 -8
  121. package/dist/native-modules/widgets/comboBox/ej2-comboBox.js +0 -32
  122. package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.d.ts +0 -7
  123. package/dist/native-modules/widgets/dashboardLayout/ej2-dashboardLayout.js +0 -26
  124. package/dist/native-modules/widgets/datePicker/ej2-DatePicker.d.ts +0 -8
  125. package/dist/native-modules/widgets/datePicker/ej2-DatePicker.js +0 -32
  126. package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.d.ts +0 -8
  127. package/dist/native-modules/widgets/dateRangePicker/ej2-dateRangePicker.js +0 -34
  128. package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.d.ts +0 -8
  129. package/dist/native-modules/widgets/dateTimePicker/ej2-dateTimePicker.js +0 -32
  130. package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.d.ts +0 -9
  131. package/dist/native-modules/widgets/dropDownList/ej2-dropDownList.js +0 -36
  132. package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.d.ts +0 -8
  133. package/dist/native-modules/widgets/dropDownTree/ej2-dropDownTree.js +0 -32
  134. package/dist/native-modules/widgets/fileManager/ej2-fileManager.d.ts +0 -9
  135. package/dist/native-modules/widgets/fileManager/ej2-fileManager.js +0 -31
  136. package/dist/native-modules/widgets/grid/ej2-grid.d.ts +0 -8
  137. package/dist/native-modules/widgets/grid/ej2-grid.js +0 -94
  138. package/dist/native-modules/widgets/listView/ej2-listView.d.ts +0 -8
  139. package/dist/native-modules/widgets/listView/ej2-listView.js +0 -31
  140. package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.d.ts +0 -8
  141. package/dist/native-modules/widgets/maskedTextBox/ej2-maskedTextBox.js +0 -34
  142. package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.d.ts +0 -10
  143. package/dist/native-modules/widgets/multiSelect/ej2-multiSelect.js +0 -41
  144. package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.d.ts +0 -8
  145. package/dist/native-modules/widgets/numericTextBox/ej2-numericTextBox.js +0 -32
  146. package/dist/native-modules/widgets/pager/ej2-pager.d.ts +0 -7
  147. package/dist/native-modules/widgets/pager/ej2-pager.js +0 -26
  148. package/dist/native-modules/widgets/progressButton/ej2-progress-button.d.ts +0 -17
  149. package/dist/native-modules/widgets/progressButton/ej2-progress-button.js +0 -61
  150. package/dist/native-modules/widgets/radio/ej2-radio.d.ts +0 -13
  151. package/dist/native-modules/widgets/radio/ej2-radio.js +0 -51
  152. package/dist/native-modules/widgets/richTextEditor/ej2-richTextEditor.d.ts +0 -8
  153. package/dist/native-modules/widgets/richTextEditor/ej2-richTextEditor.js +0 -29
  154. package/dist/native-modules/widgets/schedule/ej2-schedule.d.ts +0 -8
  155. package/dist/native-modules/widgets/schedule/ej2-schedule.js +0 -29
  156. package/dist/native-modules/widgets/sidebar/ej2-sidebar.d.ts +0 -7
  157. package/dist/native-modules/widgets/sidebar/ej2-sidebar.js +0 -27
  158. package/dist/native-modules/widgets/slider/ej2-slider.d.ts +0 -10
  159. package/dist/native-modules/widgets/slider/ej2-slider.js +0 -46
  160. package/dist/native-modules/widgets/splitter/ej2-splitter.d.ts +0 -7
  161. package/dist/native-modules/widgets/splitter/ej2-splitter.js +0 -26
  162. package/dist/native-modules/widgets/switch/ej2-switch.d.ts +0 -11
  163. package/dist/native-modules/widgets/switch/ej2-switch.js +0 -49
  164. package/dist/native-modules/widgets/textBox/ej2-textBox.d.ts +0 -8
  165. package/dist/native-modules/widgets/textBox/ej2-textBox.js +0 -34
  166. package/dist/native-modules/widgets/timePicker/ej2-timePicker.d.ts +0 -8
  167. package/dist/native-modules/widgets/timePicker/ej2-timePicker.js +0 -32
  168. package/dist/native-modules/widgets/timeline/ej2-timeline.d.ts +0 -7
  169. package/dist/native-modules/widgets/timeline/ej2-timeline.js +0 -26
  170. package/dist/native-modules/widgets/treeView/ej2-treeView.d.ts +0 -7
  171. package/dist/native-modules/widgets/treeView/ej2-treeView.js +0 -26
  172. package/dist/native-modules/widgets/uploader/ej2-uploader.d.ts +0 -50
  173. package/dist/native-modules/widgets/uploader/ej2-uploader.js +0 -354
package/README.md CHANGED
@@ -1,34 +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
- * 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
- * Rich Text Editor
25
- * Schedule
26
- * Sidebar
27
- * Slider
28
- * Splitter
29
- * Switch
30
- * Textbox
31
- * Timeline
32
- * Time Picker
33
- * Tree View
34
- * 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
package/package.json CHANGED
@@ -1,106 +1,106 @@
1
- {
2
- "name": "aurelia-syncfusion-ej2-bridge",
3
- "description": "An Aurelia plugin wrapper for syncfusion EJ2 controls",
4
- "version": "1.0.5",
5
- "keywords": [
6
- "aurelia",
7
- "syncfusion"
8
- ],
9
- "license": "MIT",
10
- "author": {
11
- "name": "Refactored Technology Solutions"
12
- },
13
- "dependencies": {
14
- "lodash": "^4.17.21"
15
- },
16
- "peerDependencies": {
17
- "@syncfusion/ej2": "^26.1.38"
18
- },
19
- "scripts": {
20
- "start": "au run",
21
- "build": "au build-plugin"
22
- },
23
- "devDependencies": {
24
- "@syncfusion/ej2": "^27.1.50",
25
- "@types/jest": "^24.0.9",
26
- "@types/node": "^20.12.7",
27
- "aurelia-animator-css": "^1.0.4",
28
- "aurelia-bootstrapper": "^2.3.2",
29
- "aurelia-cli": "^1.1.1",
30
- "aurelia-fetch-client": "^1.8.2",
31
- "aurelia-loader-nodejs": "^1.0.1",
32
- "aurelia-pal-nodejs": "^1.2.0",
33
- "aurelia-testing": "^1.0.0",
34
- "aurelia-tools": "^2.0.0",
35
- "browser-sync": "^2.26.3",
36
- "connect-history-api-fallback": "^1.6.0",
37
- "debounce": "^1.2.0",
38
- "del": "^3.0.0",
39
- "gulp": "^4.0.0",
40
- "gulp-notify": "^3.2.0",
41
- "gulp-plumber": "^1.2.1",
42
- "gulp-rename": "^1.4.0",
43
- "gulp-tslint": "^8.1.4",
44
- "gulp-typescript": "^5.0.0",
45
- "gulp-watch": "^5.0.1",
46
- "jest": "^24.1.0",
47
- "jest-cli": "^24.1.0",
48
- "jest-transform-stub": "^2.0.0",
49
- "minimatch": "^3.0.4",
50
- "promise-polyfill": "^8.1.0",
51
- "requirejs": "^2.3.6",
52
- "text": "requirejs/text#latest",
53
- "through2": "^3.0.0",
54
- "ts-jest": "^24.0.0",
55
- "tslint": "^5.13.0",
56
- "typescript": "^5.5.2",
57
- "vinyl-fs": "^3.0.3"
58
- },
59
- "engines": {
60
- "node": ">=8.9.0"
61
- },
62
- "main": "dist/commonjs/index.js",
63
- "module": "dist/native-modules/index.js",
64
- "private": false,
65
- "files": [
66
- "dist"
67
- ],
68
- "jest": {
69
- "moduleNameMapper": {
70
- "^aurelia-binding$": "<rootDir>/node_modules/aurelia-binding"
71
- },
72
- "modulePaths": [
73
- "<rootDir>/src",
74
- "<rootDir>/node_modules"
75
- ],
76
- "moduleFileExtensions": [
77
- "ts",
78
- "js",
79
- "json"
80
- ],
81
- "transform": {
82
- "^.+\\.(css|less|sass|scss|styl|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "jest-transform-stub",
83
- "^.+\\.ts$": "ts-jest"
84
- },
85
- "testRegex": "\\.spec\\.(ts|js)$",
86
- "setupFiles": [
87
- "<rootDir>/test/jest-pretest.ts"
88
- ],
89
- "testEnvironment": "node",
90
- "collectCoverage": true,
91
- "collectCoverageFrom": [
92
- "src/**/*.{js,ts}",
93
- "!**/*.spec.{js,ts}",
94
- "!**/node_modules/**",
95
- "!**/test/**"
96
- ],
97
- "coverageDirectory": "<rootDir>/test/coverage-jest",
98
- "coverageReporters": [
99
- "json",
100
- "lcov",
101
- "text",
102
- "html"
103
- ]
104
- },
105
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
106
- }
1
+ {
2
+ "name": "aurelia-syncfusion-ej2-bridge",
3
+ "description": "An Aurelia plugin wrapper for syncfusion EJ2 controls",
4
+ "version": "1.0.7",
5
+ "keywords": [
6
+ "aurelia",
7
+ "syncfusion"
8
+ ],
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Refactored Technology Solutions"
12
+ },
13
+ "dependencies": {
14
+ "lodash": "^4.17.21"
15
+ },
16
+ "peerDependencies": {
17
+ "@syncfusion/ej2": "^26.1.38"
18
+ },
19
+ "scripts": {
20
+ "start": "au run",
21
+ "build": "au build-plugin"
22
+ },
23
+ "devDependencies": {
24
+ "@syncfusion/ej2": "^27.1.53",
25
+ "@types/jest": "^24.0.9",
26
+ "@types/node": "^20.12.7",
27
+ "aurelia-animator-css": "^1.0.4",
28
+ "aurelia-bootstrapper": "^2.3.2",
29
+ "aurelia-cli": "^1.1.1",
30
+ "aurelia-fetch-client": "^1.8.2",
31
+ "aurelia-loader-nodejs": "^1.0.1",
32
+ "aurelia-pal-nodejs": "^1.2.0",
33
+ "aurelia-testing": "^1.0.0",
34
+ "aurelia-tools": "^2.0.0",
35
+ "browser-sync": "^2.26.3",
36
+ "connect-history-api-fallback": "^1.6.0",
37
+ "debounce": "^1.2.0",
38
+ "del": "^3.0.0",
39
+ "gulp": "^4.0.0",
40
+ "gulp-notify": "^3.2.0",
41
+ "gulp-plumber": "^1.2.1",
42
+ "gulp-rename": "^1.4.0",
43
+ "gulp-tslint": "^8.1.4",
44
+ "gulp-typescript": "^5.0.0",
45
+ "gulp-watch": "^5.0.1",
46
+ "jest": "^24.1.0",
47
+ "jest-cli": "^24.1.0",
48
+ "jest-transform-stub": "^2.0.0",
49
+ "minimatch": "^3.0.4",
50
+ "promise-polyfill": "^8.1.0",
51
+ "requirejs": "^2.3.6",
52
+ "text": "requirejs/text#latest",
53
+ "through2": "^3.0.0",
54
+ "ts-jest": "^24.0.0",
55
+ "tslint": "^5.13.0",
56
+ "typescript": "^5.5.2",
57
+ "vinyl-fs": "^3.0.3"
58
+ },
59
+ "engines": {
60
+ "node": ">=8.9.0"
61
+ },
62
+ "main": "dist/commonjs/index.js",
63
+ "module": "dist/native-modules/index.js",
64
+ "private": false,
65
+ "files": [
66
+ "dist"
67
+ ],
68
+ "jest": {
69
+ "moduleNameMapper": {
70
+ "^aurelia-binding$": "<rootDir>/node_modules/aurelia-binding"
71
+ },
72
+ "modulePaths": [
73
+ "<rootDir>/src",
74
+ "<rootDir>/node_modules"
75
+ ],
76
+ "moduleFileExtensions": [
77
+ "ts",
78
+ "js",
79
+ "json"
80
+ ],
81
+ "transform": {
82
+ "^.+\\.(css|less|sass|scss|styl|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "jest-transform-stub",
83
+ "^.+\\.ts$": "ts-jest"
84
+ },
85
+ "testRegex": "\\.spec\\.(ts|js)$",
86
+ "setupFiles": [
87
+ "<rootDir>/test/jest-pretest.ts"
88
+ ],
89
+ "testEnvironment": "node",
90
+ "collectCoverage": true,
91
+ "collectCoverageFrom": [
92
+ "src/**/*.{js,ts}",
93
+ "!**/*.spec.{js,ts}",
94
+ "!**/node_modules/**",
95
+ "!**/test/**"
96
+ ],
97
+ "coverageDirectory": "<rootDir>/test/coverage-jest",
98
+ "coverageReporters": [
99
+ "json",
100
+ "lcov",
101
+ "text",
102
+ "html"
103
+ ]
104
+ },
105
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
106
+ }
@@ -1,10 +0,0 @@
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
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib",
3
- "html.suggest.angular1": false,
4
- "html.suggest.ionic": false
5
- }
@@ -1,4 +0,0 @@
1
- export declare const constants: {
2
- eventPrefix: string;
3
- bindablePrefix: string;
4
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.constants = void 0;
4
- exports.constants = {
5
- eventPrefix: 'e-on-',
6
- bindablePrefix: 'e-'
7
- };
@@ -1,37 +0,0 @@
1
- import { TaskQueue } from 'aurelia-task-queue';
2
- import { BindingEngine, Disposable } from "aurelia-framework";
3
- import { ControlContainer, Control } from "./controlContainer";
4
- import { EventAggregator } from 'aurelia-event-aggregator';
5
- export declare class ControlBase<T, U> {
6
- protected bindingEngine: BindingEngine;
7
- private controlContainer;
8
- protected taskQueue: TaskQueue;
9
- protected eventAggregator: EventAggregator;
10
- protected element: Element;
11
- private eModel;
12
- protected _eModel: U;
13
- protected widgetElement: HTMLElement;
14
- widget: T;
15
- protected bindingContext: any;
16
- protected logName: string;
17
- private propertyPriority;
18
- protected get controlType(): Function;
19
- protected subscriptions: Disposable[];
20
- constructor(bindingEngine: BindingEngine, controlContainer: ControlContainer, taskQueue: TaskQueue, eventAggregator: EventAggregator, element: Element);
21
- onBind(): void;
22
- onAttached(): void;
23
- onCreateControl(): void;
24
- protected debug(message: string, ...rest: any[]): void;
25
- protected info(message: string, ...rest: any[]): void;
26
- protected error(message: string, ...rest: any[]): void;
27
- protected warn(message: string, ...rest: any[]): void;
28
- bind(context: any): void;
29
- protected setInitialBindings(): void;
30
- getBindables(): Control;
31
- createControlEvents(control: Control): void;
32
- createControlPropertySubscriptions(control: Control): void;
33
- attached(): void;
34
- protected appendWidget(): void;
35
- detached(): void;
36
- }
37
- export declare const ExcludedProperties: string[];
@@ -1,161 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ExcludedProperties = exports.ControlBase = void 0;
13
- const aurelia_task_queue_1 = require("aurelia-task-queue");
14
- const aurelia_framework_1 = require("aurelia-framework");
15
- const controlContainer_1 = require("./controlContainer");
16
- const constants_1 = require("./constants");
17
- const aurelia_event_aggregator_1 = require("aurelia-event-aggregator");
18
- let logger = aurelia_framework_1.LogManager.getLogger("SyncfusionBridge");
19
- let ControlBase = class ControlBase {
20
- get controlType() {
21
- throw "syncfusionControlType is not set";
22
- }
23
- constructor(bindingEngine, controlContainer, taskQueue, eventAggregator, element) {
24
- this.bindingEngine = bindingEngine;
25
- this.controlContainer = controlContainer;
26
- this.taskQueue = taskQueue;
27
- this.eventAggregator = eventAggregator;
28
- this.element = element;
29
- this.eModel = null;
30
- this._eModel = null;
31
- this.widgetElement = null;
32
- this.widget = null;
33
- this.bindingContext = null;
34
- this.logName = "";
35
- this.propertyPriority = true;
36
- this.subscriptions = [];
37
- }
38
- onBind() {
39
- }
40
- onAttached() {
41
- }
42
- onCreateControl() {
43
- throw "onCreateControl is not implemented";
44
- }
45
- debug(message, ...rest) {
46
- logger.debug(`[${this.logName}] - ${message}`, rest);
47
- }
48
- info(message, ...rest) {
49
- logger.info(`[${this.logName}] - ${message}`, rest);
50
- }
51
- error(message, ...rest) {
52
- logger.error(`[${this.logName}] - ${message}`, rest);
53
- }
54
- warn(message, ...rest) {
55
- logger.warn(`[${this.logName}] - ${message}`, rest);
56
- }
57
- bind(context) {
58
- this.logName = this.controlType.name;
59
- this.bindingContext = context;
60
- this._eModel = Object.assign({}, this.eModel);
61
- this.setInitialBindings();
62
- this.onCreateControl();
63
- this.onBind();
64
- }
65
- setInitialBindings() {
66
- let _control = this.getBindables();
67
- let bindablePrefixLength = constants_1.constants.bindablePrefix.length;
68
- _control.bindableProperties.forEach((property) => {
69
- if (!property.startsWith(constants_1.constants.eventPrefix)) {
70
- let modelProperty = property.substr(bindablePrefixLength);
71
- if (this[property] !== undefined && (this.propertyPriority || this._eModel[modelProperty] === undefined)) {
72
- this._eModel[modelProperty] = this[property];
73
- }
74
- }
75
- });
76
- this.createControlPropertySubscriptions(_control);
77
- }
78
- getBindables() {
79
- let _control = this.controlContainer.get(this.controlType);
80
- if (!_control) {
81
- _control = {};
82
- _control.type = this.controlType;
83
- _control.bindableProperties = [];
84
- _control.bindableEvents = [];
85
- for (let property in this["__observers__"]) {
86
- if (exports.ExcludedProperties.indexOf(property) === -1) {
87
- if (property.startsWith(constants_1.constants.eventPrefix)) {
88
- _control.bindableEvents.push(property);
89
- }
90
- else {
91
- _control.bindableProperties.push(property);
92
- }
93
- }
94
- }
95
- }
96
- return _control;
97
- }
98
- createControlEvents(control) {
99
- control.bindableEvents.forEach((event) => {
100
- let eventName = event.substr(constants_1.constants.eventPrefix.length);
101
- this.widget.addEventListener(eventName, (args) => {
102
- this.element.dispatchEvent(new CustomEvent(event, {
103
- bubbles: true,
104
- detail: args
105
- }));
106
- });
107
- });
108
- }
109
- createControlPropertySubscriptions(control) {
110
- if (control) {
111
- let bindablePrefixLength = constants_1.constants.bindablePrefix.length;
112
- control.bindableProperties.forEach((binding) => {
113
- let modelBinding = binding.substr(bindablePrefixLength);
114
- this.subscriptions.push(this.bindingEngine.propertyObserver(this, binding).subscribe((newValue) => {
115
- if (this.widget.properties.hasOwnProperty(modelBinding)) {
116
- let customFunc = `${modelBinding}Changed`;
117
- if (typeof this[customFunc] === "function") {
118
- this[customFunc].call(this, newValue);
119
- }
120
- else {
121
- this.widget[modelBinding] = newValue;
122
- }
123
- }
124
- }));
125
- });
126
- }
127
- }
128
- attached() {
129
- this.appendWidget();
130
- this.onAttached();
131
- }
132
- appendWidget() {
133
- this.widget.appendTo(this.widgetElement);
134
- }
135
- detached() {
136
- this.subscriptions.forEach((subscription) => { if (subscription) {
137
- subscription.dispose();
138
- } });
139
- if (this.widget.destroy) {
140
- this.widget.destroy();
141
- }
142
- this.widget = null;
143
- this._eModel = null;
144
- this.widgetElement = null;
145
- }
146
- };
147
- exports.ControlBase = ControlBase;
148
- __decorate([
149
- aurelia_framework_1.bindable,
150
- __metadata("design:type", Object)
151
- ], ControlBase.prototype, "eModel", void 0);
152
- exports.ControlBase = ControlBase = __decorate([
153
- aurelia_framework_1.autoinject,
154
- __metadata("design:paramtypes", [aurelia_framework_1.BindingEngine, controlContainer_1.ControlContainer,
155
- aurelia_task_queue_1.TaskQueue, aurelia_event_aggregator_1.EventAggregator, Element])
156
- ], ControlBase);
157
- exports.ExcludedProperties = [
158
- "__propertiesDefined__",
159
- "eModel",
160
- "onClick"
161
- ];
@@ -1,10 +0,0 @@
1
- export declare class ControlContainer {
2
- controls: Control[];
3
- add(control: Control): void;
4
- get(type: Function): Control;
5
- }
6
- export interface Control {
7
- type: Function;
8
- bindableProperties: string[];
9
- bindableEvents: string[];
10
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ControlContainer = void 0;
4
- class ControlContainer {
5
- constructor() {
6
- this.controls = [];
7
- }
8
- add(control) {
9
- let existing = this.controls.find((x) => x.type === control.type);
10
- if (!existing) {
11
- this.controls.push(control);
12
- }
13
- }
14
- get(type) {
15
- let _control = this.controls.find((x) => x.type === type);
16
- return _control;
17
- }
18
- }
19
- exports.ControlContainer = ControlContainer;
@@ -1,15 +0,0 @@
1
- import { ControlBase } from "./controlBase";
2
- export declare abstract class SyncfusionWrapper<T, U> extends ControlBase<T, U> {
3
- protected abstract syncfusionWidgetType: any;
4
- protected abstract onWrapperCreated(): any;
5
- protected abstract onWidgetCreated(): any;
6
- onCreateControl(): void;
7
- recreate(): void;
8
- onRecreate(): void;
9
- recreating(): void;
10
- recreated(): void;
11
- refresh(): void;
12
- dataBind(): void;
13
- protected get controlType(): any;
14
- protected onBeforeWidgetInstantiation(): void;
15
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SyncfusionWrapper = void 0;
4
- const controlBase_1 = require("./controlBase");
5
- class SyncfusionWrapper extends controlBase_1.ControlBase {
6
- onCreateControl() {
7
- this.onBeforeWidgetInstantiation();
8
- this.widget = new this.syncfusionWidgetType(this._eModel);
9
- this.widget.created = () => { this.onWidgetCreated(); };
10
- this.onWrapperCreated();
11
- this.createControlEvents(this.getBindables());
12
- }
13
- recreate() {
14
- this.onRecreate();
15
- this.widget.destroy();
16
- this.widget = null;
17
- this.recreating();
18
- this.setInitialBindings();
19
- this.onCreateControl();
20
- this.appendWidget();
21
- this.recreated();
22
- }
23
- onRecreate() {
24
- }
25
- recreating() {
26
- }
27
- recreated() {
28
- }
29
- refresh() {
30
- this.widget.refresh();
31
- }
32
- dataBind() {
33
- this.widget.dataBind();
34
- }
35
- get controlType() {
36
- if (this.syncfusionWidgetType) {
37
- return this.syncfusionWidgetType;
38
- }
39
- throw "syncfusionControlType is not set";
40
- }
41
- onBeforeWidgetInstantiation() {
42
- }
43
- }
44
- exports.SyncfusionWrapper = SyncfusionWrapper;