@syncfusion/ej2-multicolumn-combobox 32.1.19 → 32.1.24

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 (204) hide show
  1. package/.eslintrc.json +263 -0
  2. package/README.md +1 -1
  3. package/aceconfig.js +17 -0
  4. package/dist/ej2-multicolumn-combobox.umd.min.js +10 -1
  5. package/dist/ej2-multicolumn-combobox.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-multicolumn-combobox.es2015.js +1 -0
  7. package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
  8. package/dist/es6/ej2-multicolumn-combobox.es5.js +1 -0
  9. package/dist/es6/ej2-multicolumn-combobox.es5.js.map +1 -1
  10. package/dist/global/ej2-multicolumn-combobox.min.js +10 -1
  11. package/dist/global/ej2-multicolumn-combobox.min.js.map +1 -1
  12. package/dist/global/index.d.ts +9 -0
  13. package/package.json +3 -3
  14. package/src/multicolumn-combobox/multi-column-combo-box.js +1 -0
  15. package/styles/bds-lite.css +8 -0
  16. package/styles/bds-lite.scss +1 -1
  17. package/styles/bds.css +12 -0
  18. package/styles/bds.scss +2 -2
  19. package/styles/bootstrap-dark-lite.scss +1 -1
  20. package/styles/bootstrap-dark.scss +2 -2
  21. package/styles/bootstrap-lite.scss +1 -1
  22. package/styles/bootstrap.scss +2 -2
  23. package/styles/bootstrap4-lite.scss +1 -1
  24. package/styles/bootstrap4.scss +2 -2
  25. package/styles/bootstrap5-dark-lite.scss +1 -1
  26. package/styles/bootstrap5-dark.scss +2 -2
  27. package/styles/bootstrap5-lite.scss +1 -1
  28. package/styles/bootstrap5.3-lite.css +168 -0
  29. package/styles/bootstrap5.3-lite.scss +1 -1
  30. package/styles/bootstrap5.3.css +252 -0
  31. package/styles/bootstrap5.3.scss +2 -2
  32. package/styles/bootstrap5.scss +2 -2
  33. package/styles/fabric-dark-lite.scss +1 -1
  34. package/styles/fabric-dark.scss +2 -2
  35. package/styles/fabric-lite.scss +1 -1
  36. package/styles/fabric.scss +2 -2
  37. package/styles/fluent-dark-lite.scss +1 -1
  38. package/styles/fluent-dark.scss +2 -2
  39. package/styles/fluent-lite.scss +1 -1
  40. package/styles/fluent.scss +2 -2
  41. package/styles/fluent2-lite.css +172 -0
  42. package/styles/fluent2-lite.scss +1 -1
  43. package/styles/fluent2.css +258 -0
  44. package/styles/fluent2.scss +2 -2
  45. package/styles/highcontrast-light-lite.scss +1 -1
  46. package/styles/highcontrast-light.scss +2 -2
  47. package/styles/highcontrast-lite.scss +1 -1
  48. package/styles/highcontrast.scss +2 -2
  49. package/styles/material-dark-lite.scss +1 -1
  50. package/styles/material-dark.scss +2 -2
  51. package/styles/material-lite.scss +1 -1
  52. package/styles/material.scss +2 -2
  53. package/styles/material3-dark-lite.css +164 -0
  54. package/styles/material3-dark-lite.scss +1 -1
  55. package/styles/material3-dark.css +246 -0
  56. package/styles/material3-dark.scss +2 -2
  57. package/styles/material3-lite.css +168 -0
  58. package/styles/material3-lite.scss +1 -1
  59. package/styles/material3.css +252 -0
  60. package/styles/material3.scss +2 -2
  61. package/styles/multicolumn-combobox/_all.bds.scss +2 -0
  62. package/styles/multicolumn-combobox/_all.bootstrap-dark.scss +2 -0
  63. package/styles/multicolumn-combobox/_all.bootstrap.scss +2 -0
  64. package/styles/multicolumn-combobox/_all.bootstrap4.scss +2 -0
  65. package/styles/multicolumn-combobox/_all.bootstrap5-dark.scss +2 -0
  66. package/styles/multicolumn-combobox/_all.bootstrap5.3.scss +2 -0
  67. package/styles/multicolumn-combobox/_all.bootstrap5.scss +2 -0
  68. package/styles/multicolumn-combobox/_all.fabric-dark.scss +2 -0
  69. package/styles/multicolumn-combobox/_all.fabric.scss +2 -0
  70. package/styles/multicolumn-combobox/_all.fluent-dark.scss +2 -0
  71. package/styles/multicolumn-combobox/_all.fluent.scss +2 -0
  72. package/styles/multicolumn-combobox/_all.fluent2.scss +2 -0
  73. package/styles/multicolumn-combobox/_all.highcontrast-light.scss +2 -0
  74. package/styles/multicolumn-combobox/_all.highcontrast.scss +2 -0
  75. package/styles/multicolumn-combobox/_all.material-dark.scss +2 -0
  76. package/styles/multicolumn-combobox/_all.material.scss +2 -0
  77. package/styles/multicolumn-combobox/_all.material3-dark.scss +2 -0
  78. package/styles/multicolumn-combobox/_all.material3.scss +2 -0
  79. package/styles/multicolumn-combobox/_all.tailwind-dark.scss +2 -0
  80. package/styles/multicolumn-combobox/_all.tailwind.scss +2 -0
  81. package/styles/multicolumn-combobox/_all.tailwind3.scss +2 -0
  82. package/styles/multicolumn-combobox/_bigger.bds.scss +3 -0
  83. package/styles/multicolumn-combobox/_bigger.bootstrap-dark.scss +3 -0
  84. package/styles/multicolumn-combobox/_bigger.bootstrap.scss +3 -0
  85. package/styles/multicolumn-combobox/_bigger.bootstrap4.scss +3 -0
  86. package/styles/multicolumn-combobox/_bigger.bootstrap5-dark.scss +3 -0
  87. package/styles/multicolumn-combobox/_bigger.bootstrap5.3.scss +3 -0
  88. package/styles/multicolumn-combobox/_bigger.bootstrap5.scss +3 -0
  89. package/styles/multicolumn-combobox/_bigger.fabric-dark.scss +3 -0
  90. package/styles/multicolumn-combobox/_bigger.fabric.scss +3 -0
  91. package/styles/multicolumn-combobox/_bigger.fluent-dark.scss +3 -0
  92. package/styles/multicolumn-combobox/_bigger.fluent.scss +3 -0
  93. package/styles/multicolumn-combobox/_bigger.fluent2.scss +3 -0
  94. package/styles/multicolumn-combobox/_bigger.highcontrast-light.scss +3 -0
  95. package/styles/multicolumn-combobox/_bigger.highcontrast.scss +3 -0
  96. package/styles/multicolumn-combobox/_bigger.material-dark.scss +3 -0
  97. package/styles/multicolumn-combobox/_bigger.material.scss +3 -0
  98. package/styles/multicolumn-combobox/_bigger.material3-dark.scss +3 -0
  99. package/styles/multicolumn-combobox/_bigger.material3.scss +3 -0
  100. package/styles/multicolumn-combobox/_bigger.scss +0 -1
  101. package/styles/multicolumn-combobox/_bigger.tailwind-dark.scss +3 -0
  102. package/styles/multicolumn-combobox/_bigger.tailwind.scss +3 -0
  103. package/styles/multicolumn-combobox/_bigger.tailwind3.scss +3 -0
  104. package/styles/multicolumn-combobox/_layout.bds.scss +3 -0
  105. package/styles/multicolumn-combobox/_layout.bootstrap-dark.scss +3 -0
  106. package/styles/multicolumn-combobox/_layout.bootstrap.scss +3 -0
  107. package/styles/multicolumn-combobox/_layout.bootstrap4.scss +3 -0
  108. package/styles/multicolumn-combobox/_layout.bootstrap5-dark.scss +3 -0
  109. package/styles/multicolumn-combobox/_layout.bootstrap5.3.scss +3 -0
  110. package/styles/multicolumn-combobox/_layout.bootstrap5.scss +3 -0
  111. package/styles/multicolumn-combobox/_layout.fabric-dark.scss +3 -0
  112. package/styles/multicolumn-combobox/_layout.fabric.scss +3 -0
  113. package/styles/multicolumn-combobox/_layout.fluent-dark.scss +3 -0
  114. package/styles/multicolumn-combobox/_layout.fluent.scss +3 -0
  115. package/styles/multicolumn-combobox/_layout.fluent2.scss +3 -0
  116. package/styles/multicolumn-combobox/_layout.highcontrast-light.scss +3 -0
  117. package/styles/multicolumn-combobox/_layout.highcontrast.scss +3 -0
  118. package/styles/multicolumn-combobox/_layout.material-dark.scss +3 -0
  119. package/styles/multicolumn-combobox/_layout.material.scss +3 -0
  120. package/styles/multicolumn-combobox/_layout.material3-dark.scss +3 -0
  121. package/styles/multicolumn-combobox/_layout.material3.scss +3 -0
  122. package/styles/multicolumn-combobox/_layout.scss +0 -1
  123. package/styles/multicolumn-combobox/_layout.tailwind-dark.scss +3 -0
  124. package/styles/multicolumn-combobox/_layout.tailwind.scss +3 -0
  125. package/styles/multicolumn-combobox/_layout.tailwind3.scss +3 -0
  126. package/styles/multicolumn-combobox/_theme-variables.bds.scss +1 -0
  127. package/styles/multicolumn-combobox/_theme-variables.bootstrap-dark.scss +1 -0
  128. package/styles/multicolumn-combobox/_theme-variables.bootstrap.scss +1 -0
  129. package/styles/multicolumn-combobox/_theme-variables.bootstrap4.scss +1 -0
  130. package/styles/multicolumn-combobox/_theme-variables.bootstrap5-dark.scss +1 -0
  131. package/styles/multicolumn-combobox/_theme-variables.bootstrap5.3.scss +1 -0
  132. package/styles/multicolumn-combobox/_theme-variables.bootstrap5.scss +1 -0
  133. package/styles/multicolumn-combobox/_theme-variables.fabric-dark.scss +1 -0
  134. package/styles/multicolumn-combobox/_theme-variables.fabric.scss +1 -0
  135. package/styles/multicolumn-combobox/_theme-variables.fluent-dark.scss +1 -0
  136. package/styles/multicolumn-combobox/_theme-variables.fluent.scss +1 -0
  137. package/styles/multicolumn-combobox/_theme-variables.fluent2.scss +1 -0
  138. package/styles/multicolumn-combobox/_theme-variables.highcontrast-light.scss +1 -0
  139. package/styles/multicolumn-combobox/_theme-variables.highcontrast.scss +1 -0
  140. package/styles/multicolumn-combobox/_theme-variables.material-dark.scss +1 -0
  141. package/styles/multicolumn-combobox/_theme-variables.material.scss +1 -0
  142. package/styles/multicolumn-combobox/_theme-variables.material3-dark.scss +1 -0
  143. package/styles/multicolumn-combobox/_theme-variables.material3.scss +1 -0
  144. package/styles/multicolumn-combobox/_theme-variables.tailwind-dark.scss +1 -0
  145. package/styles/multicolumn-combobox/_theme-variables.tailwind.scss +1 -0
  146. package/styles/multicolumn-combobox/_theme.bds.scss +4 -0
  147. package/styles/multicolumn-combobox/_theme.bootstrap-dark.scss +4 -0
  148. package/styles/multicolumn-combobox/_theme.bootstrap.scss +4 -0
  149. package/styles/multicolumn-combobox/_theme.bootstrap4.scss +4 -0
  150. package/styles/multicolumn-combobox/_theme.bootstrap5-dark.scss +4 -0
  151. package/styles/multicolumn-combobox/_theme.bootstrap5.3.scss +4 -0
  152. package/styles/multicolumn-combobox/_theme.bootstrap5.scss +4 -0
  153. package/styles/multicolumn-combobox/_theme.fabric-dark.scss +4 -0
  154. package/styles/multicolumn-combobox/_theme.fabric.scss +4 -0
  155. package/styles/multicolumn-combobox/_theme.fluent-dark.scss +4 -0
  156. package/styles/multicolumn-combobox/_theme.fluent.scss +4 -0
  157. package/styles/multicolumn-combobox/_theme.fluent2.scss +4 -0
  158. package/styles/multicolumn-combobox/_theme.highcontrast-light.scss +4 -0
  159. package/styles/multicolumn-combobox/_theme.highcontrast.scss +4 -0
  160. package/styles/multicolumn-combobox/_theme.material-dark.scss +4 -0
  161. package/styles/multicolumn-combobox/_theme.material.scss +4 -0
  162. package/styles/multicolumn-combobox/_theme.material3-dark.scss +4 -0
  163. package/styles/multicolumn-combobox/_theme.material3.scss +4 -0
  164. package/styles/multicolumn-combobox/_theme.scss +0 -1
  165. package/styles/multicolumn-combobox/_theme.tailwind-dark.scss +4 -0
  166. package/styles/multicolumn-combobox/_theme.tailwind.scss +4 -0
  167. package/styles/multicolumn-combobox/_theme.tailwind3.scss +4 -0
  168. package/styles/multicolumn-combobox/bds.css +12 -0
  169. package/styles/multicolumn-combobox/bds.scss +2 -2
  170. package/styles/multicolumn-combobox/bootstrap-dark.scss +2 -2
  171. package/styles/multicolumn-combobox/bootstrap.scss +2 -2
  172. package/styles/multicolumn-combobox/bootstrap4.scss +2 -2
  173. package/styles/multicolumn-combobox/bootstrap5-dark.scss +2 -2
  174. package/styles/multicolumn-combobox/bootstrap5.3.css +252 -0
  175. package/styles/multicolumn-combobox/bootstrap5.3.scss +2 -2
  176. package/styles/multicolumn-combobox/bootstrap5.scss +2 -2
  177. package/styles/multicolumn-combobox/fabric-dark.scss +2 -2
  178. package/styles/multicolumn-combobox/fabric.scss +2 -2
  179. package/styles/multicolumn-combobox/fluent-dark.scss +2 -2
  180. package/styles/multicolumn-combobox/fluent.scss +2 -2
  181. package/styles/multicolumn-combobox/fluent2.css +258 -0
  182. package/styles/multicolumn-combobox/fluent2.scss +2 -2
  183. package/styles/multicolumn-combobox/highcontrast-light.scss +2 -2
  184. package/styles/multicolumn-combobox/highcontrast.scss +2 -2
  185. package/styles/multicolumn-combobox/material-dark.scss +2 -2
  186. package/styles/multicolumn-combobox/material.scss +2 -2
  187. package/styles/multicolumn-combobox/material3-dark.css +246 -0
  188. package/styles/multicolumn-combobox/material3-dark.scss +2 -2
  189. package/styles/multicolumn-combobox/material3.css +252 -0
  190. package/styles/multicolumn-combobox/material3.scss +2 -2
  191. package/styles/multicolumn-combobox/tailwind-dark.scss +2 -2
  192. package/styles/multicolumn-combobox/tailwind.scss +2 -2
  193. package/styles/multicolumn-combobox/tailwind3.css +222 -0
  194. package/styles/multicolumn-combobox/tailwind3.scss +2 -2
  195. package/styles/tailwind-dark-lite.scss +1 -1
  196. package/styles/tailwind-dark.scss +2 -2
  197. package/styles/tailwind-lite.scss +1 -1
  198. package/styles/tailwind.scss +2 -2
  199. package/styles/tailwind3-lite.css +148 -0
  200. package/styles/tailwind3-lite.scss +1 -1
  201. package/styles/tailwind3.css +222 -0
  202. package/styles/tailwind3.scss +2 -2
  203. package/tslint.json +111 -0
  204. /package/styles/multicolumn-combobox/{_theme-variables.scss → _theme-variables.tailwind3.scss} +0 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,263 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "plugin:jsdoc/recommended",
10
+ "plugin:security/recommended"
11
+ ],
12
+ "parser": "@typescript-eslint/parser",
13
+ "parserOptions": {
14
+ "ecmaFeatures": { "js": true },
15
+ "ecmaVersion": 2018,
16
+ "project": "./tsconfig.json",
17
+ "sourceType": "module"
18
+ },
19
+ "ignorePatterns": ["*.d.ts", "*.js"],
20
+ "plugins": [
21
+ "@typescript-eslint",
22
+ "@typescript-eslint/tslint",
23
+ "eslint-plugin-security",
24
+ "jsdoc"
25
+ ],
26
+ "rules": {
27
+ "use-isnan": "error",
28
+ "security/detect-unsafe-regex":"error",
29
+ "security/detect-buffer-noassert":"error",
30
+ "security/detect-child-process":"error",
31
+ "security/detect-disable-mustache-escape":"error",
32
+ "security/detect-eval-with-expression":"error",
33
+ "security/detect-no-csrf-before-method-override":"error",
34
+ "security/detect-non-literal-fs-filename":"error",
35
+ "security/detect-non-literal-regexp":"error",
36
+ "security/detect-non-literal-require":"error",
37
+ "security/detect-object-injection":"error",
38
+ "security/detect-possible-timing-attacks":"error",
39
+ "security/detect-pseudoRandomBytes":"error",
40
+ "security/detect-new-buffer":"error",
41
+ "security/detect-bidi-characters":"error",
42
+ "no-prototype-builtins": "warn",
43
+ "no-extend-native": ["warn"],
44
+ "@typescript-eslint/no-inferrable-types": "off",
45
+ "@typescript-eslint/ban-types": ["warn", {
46
+ "types": {
47
+ "Object": false,
48
+ "object": false,
49
+ "{}": false,
50
+ "Function": false
51
+ }
52
+ }],
53
+ "jsdoc/check-tag-names": 0,
54
+ "@typescript-eslint/tslint/config": [
55
+ "error",
56
+ {
57
+ "rules": {
58
+ "ban": true,
59
+ "chai-vague-errors": true,
60
+ "max-func-body-length": [
61
+ true,
62
+ 120,
63
+ {
64
+ "ignore-parameters-to-function-regex": "describe"
65
+ }
66
+ ],
67
+ "missing-jsdoc": true,
68
+ "no-backbone-get-set-outside-model": false,
69
+ "no-cookies": false,
70
+ "no-delete-expression": false,
71
+ "no-disable-auto-sanitization": true,
72
+ "no-duplicate-case": true,
73
+ "no-duplicate-parameter-names": true,
74
+ "no-empty-interfaces": false,
75
+ "no-exec-script": true,
76
+ "no-function-expression": false,
77
+ "no-multiple-var-decl": false,
78
+ "no-string-based-set-immediate": false,
79
+ "no-string-based-set-interval": false,
80
+ "no-unnecessary-bind": false,
81
+ "no-unused-imports": true,
82
+ "no-with-statement": false,
83
+ "prefer-array-literal": false,
84
+ "typedef": [
85
+ true,
86
+ "call-signature",
87
+ "parameter",
88
+ "property-declaration",
89
+ "variable-declaration",
90
+ "arrow-parameter",
91
+ "member-variable-declaration"
92
+ ],
93
+ "use-named-parameter": false,
94
+ "valid-typeof": true,
95
+ "whitespace": [
96
+ true,
97
+ "check-branch",
98
+ "check-decl",
99
+ "check-operator",
100
+ "check-separator",
101
+ "check-type"
102
+ ]
103
+ }
104
+ }
105
+ ],
106
+ "no-control-regex": "error",
107
+ "no-constant-condition": "error",
108
+ "no-invalid-regexp": "error",
109
+ "curly": "error",
110
+ "eol-last": [
111
+ "error",
112
+ "always"
113
+ ],
114
+ "guard-for-in": "error",
115
+ "no-labels": "error",
116
+ "max-len": [
117
+ "error",
118
+ {
119
+ "code": 140,
120
+ "tabWidth": 4,
121
+ "ignoreComments": true,
122
+ "ignoreStrings": true,
123
+ "ignoreTemplateLiterals": true,
124
+ "ignoreRegExpLiterals": true
125
+ }
126
+ ],
127
+ "no-console": [
128
+ "error",
129
+ {
130
+ "allow": [
131
+ "warn",
132
+ "dir",
133
+ "timeLog",
134
+ "assert",
135
+ "clear",
136
+ "count",
137
+ "countReset",
138
+ "group",
139
+ "groupEnd",
140
+ "table",
141
+ "dirxml",
142
+ "error",
143
+ "groupCollapsed",
144
+ "Console",
145
+ "profile",
146
+ "profileEnd",
147
+ "timeStamp",
148
+ "context"
149
+ ]
150
+ }
151
+ ],
152
+ "no-redeclare": [
153
+ "error",
154
+ {
155
+ "builtinGlobals": true
156
+ }
157
+ ],
158
+ "@typescript-eslint/no-parameter-properties": "error",
159
+ "@typescript-eslint/indent": [
160
+ "error",
161
+ 4,
162
+ {
163
+ "CallExpression": {
164
+ "arguments": "first"
165
+ },
166
+ "FunctionDeclaration": {
167
+ "parameters": "first"
168
+ },
169
+ "FunctionExpression": {
170
+ "parameters": "first"
171
+ }
172
+ }
173
+ ],
174
+ "no-debugger": "error",
175
+ "no-eval": "error",
176
+ "no-extra-semi": "error",
177
+ "no-throw-literal": "error",
178
+ "no-fallthrough": "error",
179
+ "comma-dangle": [
180
+ "error",
181
+ "never"
182
+ ],
183
+ "no-trailing-spaces": "error",
184
+ "@typescript-eslint/no-unused-expressions": "error",
185
+ "@typescript-eslint/no-var-requires": "error",
186
+ "one-var": [
187
+ "error",
188
+ "never"
189
+ ],
190
+ "@typescript-eslint/no-explicit-any": "warn",
191
+ "no-cond-assign": [
192
+ "error",
193
+ "always"
194
+ ],
195
+ "@typescript-eslint/consistent-type-assertions": "off",
196
+ "jsdoc/check-alignment": "error",
197
+ "no-empty": "error",
198
+ "quotes": [
199
+ "error",
200
+ "single"
201
+ ],
202
+ "semi": [
203
+ "error",
204
+ "always"
205
+ ],
206
+ "eqeqeq": [
207
+ "error",
208
+ "smart"
209
+ ],
210
+ "valid-typeof": [
211
+ "error",
212
+ {
213
+ "requireStringLiterals": true
214
+ }
215
+ ],
216
+ "camelcase": [
217
+ "error",
218
+ {
219
+ "properties": "always",
220
+ "ignoreDestructuring": true,
221
+ "ignoreImports": true
222
+ }
223
+ ],
224
+ "no-irregular-whitespace": [
225
+ "error",
226
+ {
227
+ "skipStrings": true,
228
+ "skipComments": true,
229
+ "skipRegExps": true,
230
+ "skipTemplates": true
231
+ }
232
+ ],
233
+ "valid-jsdoc": [
234
+ "error",
235
+ {
236
+ "prefer": {
237
+ "arg": "param",
238
+ "argument": "param",
239
+ "class": "constructor",
240
+ "return": "returns",
241
+ "virtual": "abstract"
242
+ }
243
+ }
244
+ ],
245
+ "no-var": "error",
246
+ "radix": "error"
247
+ },
248
+ "reportUnusedDisableDirectives": true,
249
+ "overrides": [
250
+ {
251
+ "files": [
252
+ "node_modules",
253
+ "dist",
254
+ "public",
255
+ "coverage",
256
+ "test-report"
257
+ ],
258
+ "rules": {
259
+ "no-unused-expressions": "off"
260
+ }
261
+ }
262
+ ]
263
+ }
package/README.md CHANGED
@@ -57,4 +57,4 @@ Product support is available through the following mediums.
57
57
 
58
58
  See [LICENSE FILE](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license?utm_source=npm&utm_campaign=multicolumn-combobox) for more info.
59
59
 
60
- © Copyright 2025 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.
60
+ © Copyright 2026 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.
package/aceconfig.js ADDED
@@ -0,0 +1,17 @@
1
+ //Config file for Accessibility-Checker
2
+ module.exports = {
3
+ ruleArchive: "18March2024",
4
+ policies: ["WCAG_2_1","IBM_Accessibility"],
5
+ failLevels: ["violation", "potentialviolation"],
6
+ reportLevels: [
7
+ "violation",
8
+ "potentialviolation",
9
+ "recommendation",
10
+ "potentialrecommendation",
11
+ "manual",
12
+ "pass",
13
+ ],
14
+ outputFormat: ["html","json"],
15
+ label: [process.env.TRAVIS_BRANCH],
16
+ outputFolder:"accessibility-reports",
17
+ };
@@ -1,2 +1,11 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-inputs"),require("@syncfusion/ej2-data"),require("@syncfusion/ej2-popups"),require("@syncfusion/ej2-grids")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-inputs","@syncfusion/ej2-data","@syncfusion/ej2-popups","@syncfusion/ej2-grids"],e):e((t=t||self).ej={},t.ej2Base,t.ej2Inputs,t.ej2Data,t.ej2Popups,t.ej2Grids)}(this,function(r,g,p,y,o,n){"use strict";s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};var s,t=function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},e=function(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;0<=a;a--)(s=t[a])&&(r=(o<3?s(r):3<o?s(e,i,r):s(e,i))||r);return 3<o&&r&&Object.defineProperty(e,i,r),r},i=function(o,r,a,l){return new(a=a||Promise)(function(t,e){function i(t){try{s(l.next(t))}catch(t){e(t)}}function n(t){try{s(l.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(i,n)}s((l=l.apply(o,r||[])).next())})},a=function(n,s){var o,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(i){return function(t){var e=[i,t];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,r&&(a=2&e[0]?r.return:e[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,e[1])).done)return a;switch(r=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,r=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))l.label=e[1];else if(6===e[0]&&l.label<a[1])l.label=a[1],a=e;else{if(!(a&&l.label<a[2])){a[2]&&l.ops.pop(),l.trys.pop();continue}l.label=a[2],l.ops.push(e)}}e=s.call(n,l)}catch(t){e=[6,t],r=0}finally{o=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},l="e-icon-anim",u="e-nodata",d="e-disabled",h="e-input-focus",c="e-multicolumn-list",f="e-multicolumn-grid",m=(v.prototype.InjectModules=function(){n.Grid.Inject(n.VirtualScroll,n.Group,n.Edit,n.Sort,n.Resize)},v);function v(){}(w=r.FilterType||(r.FilterType={})).StartsWith="StartsWith",w.EndsWith="EndsWith",w.Contains="Contains",(w=r.SortOrder||(r.SortOrder={})).None="None",w.Ascending="Ascending",w.Descending="Descending",(w=r.SortType||(r.SortType={})).OneColumn="OneColumn",w.MultipleColumns="MultipleColumns",(w=r.WrapMode||(r.WrapMode={})).Both="Both",w.Content="Content",w.Header="Header";b=g.ChildProperty,t(O,b),e([g.Property()],O.prototype,"text",void 0),e([g.Property()],O.prototype,"value",void 0),e([g.Property()],O.prototype,"groupBy",void 0);var b,w=O;function O(){return null!==b&&b.apply(this,arguments)||this}S=g.ChildProperty,t(C,S),e([g.Property("")],C.prototype,"field",void 0),e([g.Property("")],C.prototype,"header",void 0),e([g.Property("")],C.prototype,"width",void 0),e([g.Property("")],C.prototype,"textAlign",void 0),e([g.Property(null)],C.prototype,"format",void 0),e([g.Property(!1)],C.prototype,"displayAsCheckBox",void 0),e([g.Property(null)],C.prototype,"template",void 0),e([g.Property(null)],C.prototype,"headerTemplate",void 0),e([g.Property(null)],C.prototype,"customAttributes",void 0);var S,E=C;function C(){return null!==S&&S.apply(this,arguments)||this}x=g.ChildProperty,t(j,x),e([g.Property(!1)],j.prototype,"enableAltRow",void 0),e([g.Property(null)],j.prototype,"rowHeight",void 0),e([g.Property("Default")],j.prototype,"gridLines",void 0),e([g.Property(!1)],j.prototype,"allowTextWrap",void 0),e([g.Property(r.WrapMode.Both)],j.prototype,"textWrapMode",void 0),e([g.Property(!1)],j.prototype,"allowResizing",void 0),e([g.Event()],j.prototype,"resizing",void 0),e([g.Event()],j.prototype,"resizeStart",void 0),e([g.Event()],j.prototype,"resizeStop",void 0);var x,D=j;function j(){return null!==x&&x.apply(this,arguments)||this}P=g.Component,t(R,P),R.prototype.preRender=function(){this.element.id||(this.element.id=g.getUniqueID("e-"+this.getModuleName())),this.keyConfigs={escape:"escape",altUp:"alt+uparrow",altDown:"alt+downarrow",tab:"tab",shiftTab:"shift+tab",end:"end",enter:"enter",home:"home",moveDown:"downarrow",moveUp:"uparrow"},this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null,this.persistData()},R.prototype.getDirective=function(){return"EJS-MULTICOLUMNCOMBOBOX"},R.prototype.getModuleName=function(){return"multicolumncombobox"},R.prototype.getPersistData=function(){return this.addOnPersist(["value"])},R.prototype.persistData=function(){var t;this.enablePersistence&&(this.element.id+="_wrapper",t=window.localStorage.getItem(this.getModuleName()+this.element.id),g.isNullOrUndefined(t)||""===t||this.setProperties(JSON.parse(t),!0))},R.prototype.render=function(){this.renderInput(),!(g.isNullOrUndefined(this.value)&&g.isNullOrUndefined(this.text)&&g.isNullOrUndefined(this.index)||g.isNullOrUndefined(this.dataSource))&&this.dataSource instanceof y.DataManager&&(this.isInitialValueRender=!0),null==this.gridData&&this.setGridData(this.dataSource),this.renderGrid(),this.popupDiv=this.createElement("div",{className:"e-popup-content"}),this.popupDiv.appendChild(this.gridEle),this.setHTMLAttributes(),this.renderPopup(),this.wireEvents()},R.prototype.setGridData=function(e,i){var n=this;this.trigger("actionBegin",{cancel:!1,query:i},function(t){t.cancel||(e instanceof y.DataManager?(n.isShowSpinner&&n.showHideSpinner(!0),e.executeQuery(n.getQuery(i)).then(function(t){n.gridData=t.result,n.trigger("actionComplete",t,function(t){n.showHideSpinner(!1),n.isMainDataUpdated||(n.mainData=n.gridData,n.remoteDataLength=n.gridData.length,n.isMainDataUpdated=!0),n.isInitialValueRender&&(n.isInitialValueRender=!1,n.initValue(null,null,!0)),n.popupDiv&&n.updateGridDataSource()})}).catch(function(t){n.trigger("actionFailure",t,null)})):(t=new y.DataManager(e),t=n.getQuery(i).executeLocal(t),n.gridData=t,n.trigger("actionComplete",{result:t},function(t){n.isMainDataUpdated||(n.mainData=n.gridData,n.remoteDataLength=n.gridData.length,n.isMainDataUpdated=!0),n.popupDiv&&n.updateGridDataSource()})))})},R.prototype.getQuery=function(t){var e,i,n;return!this.isCustomFilter&&this.allowFiltering?(e=t?t.clone():this.query?this.query.clone():new y.Query,i=""===this.typedString?"contains":this.filterType,this.allowFiltering&&this.typedString&&""!==this.typedString&&(n=this.fields.text||"",e.where(n,i,this.typedString,!0,!1))):e=null!=this.customFilterQuery?this.customFilterQuery.clone():t?t.clone():this.query?this.query.clone():new y.Query,e},R.prototype.setHiddenValue=function(){var t,e;g.isNullOrUndefined(this.value)?this.hiddenElement.innerHTML="":(t=this.hiddenElement.querySelector("option"),g.isNullOrUndefined(t)?g.isNullOrUndefined(this.hiddenElement)||((e=document.createElement("option")).text=this.text,e.setAttribute("value",this.value.toString()),e.setAttribute("selected",""),this.hiddenElement.appendChild(e)):(t.textContent=this.text,t.setAttribute("value",this.value.toString())))},R.prototype.renderGrid=function(){var e=this,t=this.getGridColumns(),i=this.sortOrder.toString().toLowerCase();this.gridObj=new n.Grid({dataSource:this.gridData,columns:t,allowSorting:this.allowSorting,enableStickyHeader:!0,gridLines:this.gridSettings.gridLines,rowHeight:this.gridSettings.rowHeight,enableAltRow:this.gridSettings.enableAltRow,enableVirtualization:this.enableVirtualization,enableRtl:this.enableRtl,editSettings:{allowAdding:!1},allowTextWrap:this.gridSettings.allowTextWrap,textWrapSettings:{wrapMode:this.gridSettings.textWrapMode},height:this.popupHeight,allowResizing:this.gridSettings.allowResizing,allowMultiSorting:"multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting,rowTemplate:this.itemTemplate,beforeDataBound:function(){e.dataSource instanceof y.DataManager&&e.isShowSpinner&&(e.showHideSpinner(!0),e.isShowSpinner=!1)},dataBound:function(){e.onDataBound()},actionFailure:function(t){e.onActionFailure(t)},actionComplete:this.handleActionComplete.bind(this),keyPressed:this.handleKeyPressed.bind(this),resizing:function(t){e.gridSettings.resizing&&e.gridSettings.resizing.call(e,t)},resizeStart:function(t){e.gridSettings.resizeStart&&e.gridSettings.resizeStart.call(e,t)},resizeStop:function(t){e.gridSettings.resizeStop&&e.gridSettings.resizeStop.call(e,t)}}),this.gridEle=this.createElement("div",{id:this.element.id+"_"+g.getUniqueID("grid"),className:f}),this.updateGroupByField(),0<t.length&&(this.gridObj.columns[0].isPrimaryKey=!0),"none"!==i&&(this.gridObj.sortSettings={columns:[{field:this.fields.text,direction:"ascending"===i?r.SortOrder.Ascending:r.SortOrder.Descending}]}),this.gridObj.appendTo(this.gridEle),!(g.isNullOrUndefined(this.value)&&g.isNullOrUndefined(this.text)&&g.isNullOrUndefined(this.index)||g.isNullOrUndefined(this.dataSource))&&this.dataSource instanceof Array&&this.initValue(null,null,!0)},R.prototype.handleActionComplete=function(t){var e,i=this;"sorting"===t.requestType&&this.updateRowSelection(t),Array.isArray(t.rows)&&this.isDataFiltered&&(t=t.rows,e=0,t.forEach(function(t){t=i.gridObj.getRowElementByUID(t.uid);t&&(e+=t.getBoundingClientRect().height)}),this.popupRowHeight=e||parseFloat(this.popupHeight),this.updateGridHeight(!0,!0)),this.popupObj.refreshPosition(),this.gridObj.element.querySelector(".e-content").scrollTop=0},R.prototype.handleKeyPressed=function(t){"Enter"===t.key&&(t.cancel=!0,this.isPopupOpen)&&(this.selectedGridRow(this.gridObj.getRows()[this.gridObj.selectedRowIndex],t,!0),this.hidePopup(t),this.focusIn(t)),this.fields.groupBy&&(t.cancel=!0,this.gridKeyActionHandler(t,!0))},R.prototype.isRowMatching=function(t,e,i){function n(e){var i=[];return e&&"object"==typeof e?Array.isArray(e)?e.forEach(function(t){return i.push.apply(i,n(t))}):Object.keys(e).forEach(function(t){return i.push.apply(i,n(e[""+t]))}):null!=e&&i.push(String(e)),i}t=n(t);return-1!==t.indexOf(e)&&-1!==t.indexOf(i)},R.prototype.updateRowSelection=function(t){var e=this;t&&t.rows.forEach(function(t){e.selectDataRow(t.data,t.index)})},R.prototype.selectDataRow=function(t,e){this.isRowMatching(t,this.value?this.value.toString():"",this.text?this.text.toString():"")&&(this.gridObj.selectRow(e),t=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.index=e,this.isProtectedOnChange=t)},R.prototype.findIndex=function(t,i){return t.findIndex(function(e){return Object.keys(i).every(function(t){return e[t]===i[t]})})},R.prototype.getGridColumns=function(){var p=this;return this.columns.map(function(t){var e=t.field,i=t.header,n=t.width,s=t.textAlign,o=t.format,r=t.displayAsCheckBox,a=t.template,l=t.headerTemplate,t=t.customAttributes;return{field:e,headerText:i,width:n,textAlign:""===s.toString()&&p.enableRtl?"Right":s,format:o,displayAsCheckBox:r,template:a,headerTemplate:l,customAttributes:t,type:r&&!o?"boolean":void 0}})},R.prototype.updateGroupByField=function(){var t,e=this.fields.groupBy,i=""!==e&&!g.isNullOrUndefined(e);i&&("multiplecolumns"!==this.sortType.toString().toLowerCase()&&this.gridEle.classList.add("e-multicolumn-group"),t=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.gridObj.allowGrouping=!0,this.gridObj.groupSettings={showDropArea:!1,columns:[e]},this.groupTemplate&&i&&(this.gridObj.groupSettings.captionTemplate=this.groupTemplate),this.isVue&&(this.gridObj.isVue=this.isVue),this.isProtectedOnChange=t)},R.prototype.onDataBound=function(){var t=this,e=(this.isLocaleChanged&&(this.isLocaleChanged=!1,this.unWireEvents(),this.wireEvents()),this.dataSource.length),i=this.popupDiv.querySelector("."+f),n=this.popupDiv.classList.contains(u),n=(e<=0&&i?(this.l10nUpdate(),this.popupDiv.removeChild(this.gridEle),g.addClass([this.popupDiv],[u])):n&&1<=e&&(g.removeClass([this.popupDiv],[u]),i=this.popupDiv.querySelector(".e-no-records"))&&this.popupDiv.removeChild(i),this.isInitialRender&&(e=this.popupDiv.querySelector(".e-gridcontent tr"),i=n?this.popupDiv.getBoundingClientRect().height:e?e.getBoundingClientRect().height:0,this.popupRowHeight=i,this.popupObj.hide(),this.popupEle.style.visibility="unset",this.isInitialRender=!1),this.gridObj.element.querySelectorAll(".e-row"));this.isDataFiltered&&0<n.length&&""!==this.inputEle.value&&n[0].classList.add("e-row-focus"),this.dataSource instanceof y.DataManager&&setTimeout(function(){t.showHideSpinner(!1)})},R.prototype.showHideSpinner=function(t){t?o.showSpinner(this.dropdownElement):o.hideSpinner(this.dropdownElement)},R.prototype.onActionFailure=function(t){this.trigger("actionFailure",t),this.l10nUpdate(!0),g.addClass([this.popupDiv],[u])},R.prototype.renderInput=function(){var t=["aria-expanded","aria-readOnly","aria-disabled","autocomplete","autocapitalize","spellcheck","tabindex"];if("INPUT"===this.element.tagName){this.inputEle=this.element,g.isNullOrUndefined(this.inputEle.getAttribute("role"))&&this.inputEle.setAttribute("role","combobox"),g.isNullOrUndefined(this.inputEle.getAttribute("type"))&&this.inputEle.setAttribute("type","text");var e,i=this.inputEle,n={"aria-expanded":"false","aria-readOnly":this.readonly.toString(),"aria-disabled":this.disabled.toString(),autocomplete:"off",autocapitalize:"off",spellcheck:"false",tabindex:"0"};for(e in n)n.hasOwnProperty(e)&&-1!==t.indexOf(e)&&g.isNullOrUndefined(i.getAttribute(e))&&i.setAttribute(e,n[e])}else this.inputEle=this.createElement("input",{attrs:{role:"textbox",type:"text"}}),this.element.parentElement.insertBefore(this.inputEle,this.element);this.inputObj=p.Input.createInput({element:this.inputEle,buttons:["e-input-group-icon e-multicolumn-list-icon e-icons"],floatLabelType:this.floatLabelType,properties:{enabled:!this.disabled,readonly:this.readonly,placeholder:this.placeholder,enableRtl:this.enableRtl,showClearButton:this.showClearButton,cssClass:this.cssClass}},this.createElement),this.inputWrapper=this.inputObj.container,this.inputWrapper.classList.add(c),this.inputWrapper.setAttribute("spellcheck","false"),this.hiddenElement=this.createElement("select",{attrs:{"aria-hidden":"true",tabindex:"-1",class:"e-multicolumn-list-hidden"}}),g.prepend([this.hiddenElement],this.inputWrapper);var s=this.inputEle.getAttribute("name")?this.inputEle.getAttribute("name"):this.inputEle.getAttribute("id");this.hiddenElement.setAttribute("name",s),this.inputEle.removeAttribute("name"),this.hiddenElement.hasAttribute("aria-label")||this.hiddenElement.setAttribute("aria-label",this.getModuleName()),this.element.tagName===this.getDirective()&&this.element.appendChild(this.inputWrapper),this.setElementWidth(this.width),this.dropdownElement=this.inputWrapper.querySelector(".e-input-group-icon.e-multicolumn-list-icon.e-icons"),o.createSpinner({target:this.dropdownElement})},R.prototype.setElementWidth=function(t){var e;g.isNullOrUndefined(t)||(e=this.inputWrapper,"number"==typeof t?e.style.width=g.formatUnit(t):"string"==typeof t&&(e.style.width=t.match(/px|%|em/)?t:g.formatUnit(t)))},R.prototype.setHTMLAttributes=function(){var i=this,t=this.htmlAttributes,e=this.inputEle;if(Object.keys(t).length)for(var n=0,s=Object.keys(t);n<s.length;n++){var o=s[n];switch(o){case"class":this.inputWrapper.classList.add(t[o]);break;case"disabled":this.setProperties({enabled:!1},!0),this.setEnable();break;case"readonly":this.setProperties({readonly:!0},!0),this.dataBind();break;case"style":var r=t[o];this.inputWrapper.style.cssText="",r&&r.split(";").forEach(function(t){var t=t.split(":").map(function(t){return t.trim()}),e=t[0],t=t[1];e&&t&&i.inputWrapper.style.setProperty(e,t)});break;default:-1<["name","required"].indexOf(o)||0===o.indexOf("data")?this.hiddenElement.setAttribute(o,this.htmlAttributes[""+o]):-1<["title","id","placeholder","role","autocomplete","autocapitalize","spellcheck","minlength","maxlength"].indexOf(o)&&"placeholder"===o?p.Input.setPlaceholder(t[o],e):e.setAttribute(o,t[o])}}},R.prototype.setEnable=function(){p.Input.setEnabled(!this.disabled,this.inputEle),this.disabled?(this.isPopupOpen&&this.hidePopup(),g.addClass([this.inputWrapper],d),this.inputWrapper&&this.inputWrapper.classList.contains(h)&&g.removeClass([this.inputWrapper],[h]),this.setAriaDisabled("true")):(g.removeClass([this.inputWrapper],d),this.setAriaDisabled("false"))},R.prototype.setAriaDisabled=function(t){this.inputEle.setAttribute("aria-disabled",t),this.inputWrapper.setAttribute("aria-disabled",t)},R.prototype.updateFieldValue=function(t,e){return g.getValue(t,e).toString()},R.prototype.initValue=function(s,e,o){function r(t){t=d.updateCurrentValues(u,t),a=t.currentValue,l=t.currentText,p=t.currentIndex}var a,l,p,i,t,u,d=this,h=this.gridObj.getSelectedRecords()[0],c=this.gridObj.getSelectedRows()[0],n=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.value=this.value&&this.value.toString(),this.isProtectedOnChange=n;!s&&(!g.isNullOrUndefined(this.value)||!g.isNullOrUndefined(this.text))||s&&void 0!==e?(i=s?e?this.value:this.text:g.isNullOrUndefined(this.value)?this.text:this.value,!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?0<(n=(t=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData).filter(function(t){return(t?d.updateFieldValue(s?e?d.fields.value:d.fields.text:g.isNullOrUndefined(d.value)?d.fields.text:d.fields.value,t):null)===i})).length&&(u=n[0],r(t),this.updateChangeEvent(u,h,c,a,l,p,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(u=this.dataSource.filter(function(t){return d.updateFieldValue(s?e?d.fields.value:d.fields.text:g.isNullOrUndefined(d.value)?d.fields.text:d.fields.value,t)===i})[0],r(this.dataSource))):g.isNullOrUndefined(this.index)||(!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?(u=(t=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData)[this.index],r(t),this.updateChangeEvent(u,h,c,a,l,p,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(this.fields.groupBy?setTimeout(function(){var t=d.gridObj.getRows();if(t&&0<t.length)for(var e=d.gridObj.getRowInfo(t[d.index]).rowData,i=d.fields.value,n=0;n<t.length;n++)if(e&&e[parseInt(i.toString(),10)]===d.dataSource[parseInt(n.toString(),10)][parseInt(i.toString(),10)]){u=e,r(d.dataSource),d.updateChangeEvent(u,h,c,a,l,p,s,o),d.gridObj.selectRow(d.index);break}}):(u=this.dataSource[this.index],r(this.dataSource)))),this.dataSource instanceof y.DataManager||this.updateChangeEvent(u,h,c,a,l,p,s,o)},R.prototype.updateChangeEvent=function(t,e,i,n,s,o,r,a){var l=t?this.updateFieldValue(this.fields.value,t):null,t={value:t?l:null,itemData:{text:s,value:n},item:this.getDataByValue(this.value),previousItemData:e,previousItemElement:i,itemElement:this.inputWrapper,event:null,isInteracted:!r};this.updateValues(n,s,o,t,a)},R.prototype.updateCurrentValues=function(t,e){var i,n;return g.isNullOrUndefined(t)?{currentValue:null,currentText:null,currentIndex:null}:(i=this.updateFieldValue(this.fields.text,t),n=this.updateFieldValue(this.fields.value,t),p.Input.setValue(i,this.inputEle,this.floatLabelType,this.showClearButton),{currentValue:n,currentText:i,currentIndex:e.indexOf(t)})},R.prototype.renderPopup=function(){this.popupEle=this.createElement("div",{id:this.element.id+"_options",className:c+" e-popup "+(null!==this.cssClass?this.cssClass:"")}),g.attributes(this.popupEle,{"aria-label":this.element.id,role:"dialog"}),document.body.appendChild(this.popupEle),this.createPopup(this.popupEle),g.prepend([this.popupDiv],this.popupEle),this.footerTemplate&&this.setFooterTemplate();var t,e=this.getSize(!1);this.popupEle.style.maxHeight=e,this.footerTemplate&&(t=Math.round(this.footer.getBoundingClientRect().height),e=g.formatUnit(parseInt(e,10)-t+"px")),this.popupDiv.style.maxHeight=e,this.updateGridHeight(),this.popupEle.style.visibility="hidden",this.isInitialRender=!0},R.prototype.updateGridHeight=function(t,e){e=t?(t=(t=this.gridObj.getContent().querySelector(".e-content")).offsetHeight-t.clientHeight,""===this.fields.groupBy||g.isNullOrUndefined(this.fields.groupBy)||(this.popupRowHeight+=this.popupRowHeight),e&&this.popupRowHeight<this.prevGridHeight?this.popupRowHeight+t+"px":this.prevGridHeight+"px"):(this.prevGridHeight=this.popupDiv.getBoundingClientRect().height-this.popupDiv.querySelector(".e-gridheader").getBoundingClientRect().height,this.prevGridHeight+"px"),t=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.height=e,this.isProtectedOnChange=t},R.prototype.createPopup=function(t){var e=this;this.popupObj=new o.Popup(t,{width:this.getSize(!0),targetType:"relative",collision:{X:"flip",Y:"flip"},relateTo:this.inputWrapper,enableRtl:this.enableRtl,position:{X:"left",Y:"bottom"},targetExitViewport:function(){g.Browser.isDevice||e.hidePopup()},open:function(){e.inputEle.focus(),e.updateClearIconState()}})},R.prototype.setFooterTemplate=function(){this.footer?this.isReact&&"function"==typeof this.footerTemplate?this.clearTemplate(["footerTemplate"]):this.footer.innerHTML="":(this.footer=this.createElement("div"),g.addClass([this.footer],"e-popup-footer"));var t=this.getTemplateFunction(this.footerTemplate)({count:this.dataSource.length},this,"footerTemplate",this.element.id+"footerTemplate",this.isStringTemplate,void 0,this.footer);t&&(t=Array.prototype.slice.call(t),g.append(t,this.footer)),g.append([this.footer],this.popupEle)},R.prototype.l10nUpdate=function(t){var e,i,n;this.noRecord?this.noRecord.innerHTML="":this.noRecord=this.createElement("div"),"No records found"!==this.noRecordsTemplate||"Request Failed"!==this.actionFailureTemplate?(n=t?this.actionFailureTemplate:this.noRecordsTemplate,e=t?this.element.id+"_actionFailure":this.element.id+"_noRecords",i=t?"actionFailureTemplate":"noRecordsTemplate",(n=this.getTemplateFunction(n)({},this,i,e,this.isStringTemplate,void 0,this.noRecord))&&(n=Array.prototype.slice.call(n),g.append(n,this.noRecord))):(this.l10n=new g.L10n("multicolumncombobox",{noRecordsTemplate:"No records found",actionFailureTemplate:"Request Failed"},this.locale),this.noRecord.innerHTML=t?this.l10n.getConstant("actionFailureTemplate"):this.l10n.getConstant("noRecordsTemplate")),g.addClass([this.noRecord],"e-no-records"),g.prepend([this.noRecord],this.popupDiv),this.popupObj.refreshPosition()},R.prototype.getTemplateFunction=function(e){if("string"!=typeof e)return g.compile(e);var i="";try{var t=g.select(e),i=t?"SCRIPT"===t.tagName?t.innerHTML:t.outerHTML:e}catch(t){i=e}return g.compile(i)},R.prototype.getSize=function(t){var e=t?this.popupWidth:this.popupHeight,i=g.formatUnit(e);return i.includes("%")?i=((t?this.inputWrapper.offsetWidth:document.documentElement.clientHeight)*parseFloat(i)/100).toString()+"px":"string"==typeof e&&(i=e.match(/px|em/)?e:i),i},R.prototype.selectedGridRow=function(t,e,i){var n=this,s={isInteracted:!!e,item:this.gridObj.getSelectedRecords()[0],itemElement:t,itemData:this.gridObj.getSelectedRecords()[0],event:e,cancel:!1},o=this.gridObj.getSelectedRecords()[0],r=o?this.updateFieldValue(this.fields.text,o):"",a=o?this.updateFieldValue(this.fields.value,o):"",l={isInteracted:!!e,item:o,itemElement:t,itemData:{text:o?r:"",value:o?a:""},event:e,cancel:!1,value:o?a:"",previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement};this.trigger("select",s,function(t){!t.cancel&&t.itemData&&(t="Enter"===e.key||"Tab"===e.key||e.shiftKey&&"Tab"===e.key||e.altKey&&"ArrowUp"===e.key,i&&!t||n.updateValues(o?a:"",o?r:"",n.gridObj.selectedRowIndex,l),p.Input.setValue(o?r:"",n.inputEle,n.floatLabelType,n.showClearButton),n.setHiddenValue(),i&&!t||n.hidePopup(e))})},R.prototype.updateValues=function(t,e,i,n,s){this.previousItemElement=n.itemElement;var o=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.text=e||this.text,this.value=t||this.value,this.index=this.selectedRowIndex=g.isNullOrUndefined(i)?this.index:i,this.isProtectedOnChange=o,this.setHiddenValue(),s||this.triggerChangeEvent(n)},R.prototype.triggerChangeEvent=function(t){this.trigger("change",t,function(t){t.cancel})},R.prototype.inputHandler=function(t){var n,s=this;this.showPopup(null,!0),this.updateClearIconState(),this.allowFiltering&&(this.typedString=t.target.value.toLowerCase(),n={preventDefaultAction:!1,text:this.typedString,updateData:function(t,e,i){n.cancel||(s.isCustomFilter=!0,s.customFilterQuery=e&&e.clone(),s.setGridData(t,e))},event:t,cancel:!1},this.trigger("filtering",n,function(t){t.cancel||t.preventDefaultAction||s.isCustomFilter||s.setGridData(s.dataSource,s.query?s.query.clone():null)})),this.updateInputValue(t.target.value)},R.prototype.updateInputValue=function(s){return i(this,void 0,void 0,function(){var e,i,n;return a(this,function(t){return this.dataSource instanceof y.DataManager?(n=this.filterDatas(this.mainData,s),i=n.data,n=n.exactData):Array.isArray(this.dataSource)&&(e=this.filterDatas(this.dataSource,s),i=e.data,n=e.exactData),this.selectFilteredRows(i,n),[2]})})},R.prototype.filterDatas=function(t,e){var i=this;return{data:t.filter(function(t){t=i.updateFieldValue(i.fields.text,t);return e&&t.toLowerCase().startsWith(e.toLowerCase())}),exactData:t.filter(function(t){return i.updateFieldValue(i.fields.text,t)===e})}},R.prototype.selectFilteredRows=function(t,e){t.length<=0?this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null:(this.matchedContent=t[0],this.exactMatchedContent=e[0],t=this.findIndex(this.gridObj.currentViewData,this.matchedContent),this.matchedRowEle=this.gridObj.getRowByIndex(t))},R.prototype.updateGridDataSource=function(){var t;this.gridData&&0<this.gridData.length?(g.removeClass([this.popupDiv],[u]),(t=this.popupDiv.querySelector(".e-no-records"))&&this.popupDiv.removeChild(t),this.gridObj.dataSource=this.gridData,this.isDataFiltered=!0):(this.l10nUpdate(),g.addClass([this.popupDiv],[u]))},R.prototype.wireEvents=function(){g.isNullOrUndefined(this.inputObj.buttons[0])||(g.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.preventBlur,this),g.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.dropDownClick,this)),g.EventHandler.add(document,"mousedown",this.onDocumentClick,this),g.EventHandler.add(this.gridEle,"click",this.onMouseClick,this),g.EventHandler.add(this.inputEle,"input",this.inputHandler,this),g.EventHandler.add(this.inputEle,"focus",this.focusIn,this),this.showClearButton&&g.EventHandler.add(this.inputObj.clearButton,"mousedown",this.clearText,this),g.EventHandler.add(window,"resize",this.windowResize,this),this.keyboardModule=new g.KeyboardEvents(this.inputWrapper,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),this.keyboardModule=new g.KeyboardEvents(this.gridEle,{keyAction:this.gridKeyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},R.prototype.unWireEvents=function(){g.isNullOrUndefined(this.inputObj.buttons[0])||(g.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.preventBlur),g.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.dropDownClick)),g.EventHandler.remove(document,"mousedown",this.onDocumentClick),g.EventHandler.remove(this.inputEle,"input",this.inputHandler),g.EventHandler.remove(this.inputWrapper,"focus",this.focusIn),g.EventHandler.remove(window,"resize",this.windowResize),g.EventHandler.remove(this.gridEle,"click",this.onMouseClick),this.showClearButton&&g.EventHandler.remove(this.inputObj.clearButton,"mousedown",this.clearText),this.keyboardModule&&this.keyboardModule.destroy()},R.prototype.preventBlur=function(t){t.preventDefault()},R.prototype.dropDownClick=function(t){var e;this.disabled||this.readonly||((e=this.gridEle.querySelector(".e-row-focus"))&&e.classList.remove("e-row-focus"),this.isPopupOpen?this.hidePopup(t):this.showPopup(t))},R.prototype.onMouseClick=function(t){var e=t.target,e=g.closest(e,".e-row"),i=this.gridObj.selectedRowIndex;e&&(0<=i?this.selectedGridRow(e,t):(this.gridObj.selectedRowIndex=this.gridObj.getRows().indexOf(e),this.gridObj.selectRow(this.gridObj.selectedRowIndex),this.hidePopup(t)))},R.prototype.onDocumentClick=function(t){var e=t.target;this.disabled||this.readonly||!this.isPopupOpen?e.closest(".e-multicolumn-list")||this.focusOut():e.classList.contains("e-multicolumn-list-icon")||g.closest(e,".e-multicolumn-list.e-popup")?t.preventDefault():e.classList.contains("e-multicolumncombobox")||e.classList.contains("e-clear-icon")||(g.isNullOrUndefined(this.text)||this.updateInputValue(this.text),e=""===this.inputEle.value,this.updateValuesOnInput(t,null,e))},R.prototype.updateValuesOnInput=function(t,e,i,n){var s,t=t||e,e=(n=void 0===n?!1:n)?this.matchedContent:this.exactMatchedContent;e||"Enter"===t.code||(this.inputEle.value=null,this.setProperties({value:null,index:null,text:null},!0)),this.hidePopup(t),this.matchedRowEle&&!i&&e?(s=this.isProtectedOnChange,this.isProtectedOnChange=!0,n=this.updateFieldValue(this.fields.text,this.matchedContent),i=this.updateFieldValue(this.fields.value,this.matchedContent),this.inputEle.value=n,this.value=i,e=this.findIndex(this.gridObj.currentViewData,this.matchedContent),this.index=e,this.text=n,this.gridObj.selectRow(e),this.selectedGridRow(this.gridObj.getRowByIndex(e),t),this.previousItemElement=this.gridObj.getSelectedRows()[0],this.isProtectedOnChange=s):this.isDataFiltered&&(this.inputEle.value="",i={value:null,itemData:{text:null,value:null},item:null,previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement,itemElement:null,event:t,isInteracted:!0,cancel:!1},s=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.text=this.value=this.index=null,this.gridObj.refreshColumns(),this.isProtectedOnChange=s,this.triggerChangeEvent(i),this.isDataFiltered=!1,this.matchedContent=this.matchedRowEle=null)},R.prototype.clearText=function(t){this.isDataFiltered=!0,this.updateValuesOnInput(t,null,!0)},R.prototype.windowResize=function(){this.popupObj&&(this.popupObj.setProperties({width:this.getSize(!0)}),this.popupObj.refreshPosition())},R.prototype.setCssClass=function(t,e){var i=this.popupObj?[this.inputWrapper,this.popupObj.element]:[this.inputWrapper];g.isNullOrUndefined(e)||""===e||g.removeClass(i,e.split(" ")),g.isNullOrUndefined(t)||""===t||g.addClass(i,t.split(" "))},R.prototype.keyActionHandler=function(t){switch(t.action){case"escape":case"altUp":case"shiftTab":case"tab":this.isPopupOpen?this.hidePopup(t):this.focusOut();break;case"altDown":this.isPopupOpen||(this.showPopup(t),this.updateSelectedItem(t,!1));break;case"moveDown":case"moveUp":this.updateSelectedItem(t,!0,!0);break;case"enter":this.updateValuesOnInput(null,t,!1,!0),this.focusIn(t);break;case"home":case"end":this.updateSelectedItem(t)}},R.prototype.gridKeyActionHandler=function(t,e){switch(e&&(e=(t.altKey?"Alt+":"")+(t.shiftKey?"Shift+":"")+t.key,t.action={ArrowDown:"moveDown",ArrowUp:"moveUp",End:"end",Home:"home",Tab:"tab",Escape:"escape","Shift+Tab":"shiftTab","Alt+ArrowUp":"altUp"}[e]||t.action),t.action){case"escape":case"tab":case"shiftTab":case"altUp":this.isPopupOpen&&(t.preventDefault(),"escape"!==t.action&&this.updateSelectedItem(t),this.hidePopup(t));break;case"moveDown":case"moveUp":case"home":case"end":this.updateSelectedItem(t)}},R.prototype.updateSelectedItem=function(t,e,i){var n,s,o=this;void 0===e&&(e=!0),this.isPopupOpen&&(n=this.fields.groupBy?this.gridObj.selectedRowIndex||0:this.gridObj.selectedRowIndex,s=this.dataSource instanceof y.DataManager?this.remoteDataLength:this.dataSource.length,-1===n&&("moveDown"===t.action||"moveUp"===t.action)||"home"===t.action?n=0:s-1<=n&&"moveDown"===t.action||"end"===t.action?n=s-1:"moveDown"===t.action&&0<=n&&n<=s-1&&(this.fields.groupBy||i)?n+=1:("moveUp"===t.action&&0<n&&this.fields.groupBy||i)&&--n,this.enableVirtualization?setTimeout(function(){o.selectRow(t,e,n)}):this.selectRow(t,e,n))},R.prototype.selectRow=function(t,e,i){void 0===e&&(e=!0),this.gridObj.selectRow(i),this.gridObj.selectedRowIndex=i;var n=this.gridEle.querySelector(".e-row-focus");n&&n.classList.remove("e-row-focus"),e&&this.selectedGridRow(this.gridObj.getRows()[parseInt(i.toString(),10)],t,!0)},R.prototype.updateClearIconState=function(){var t=this.inputWrapper.querySelector(".e-clear-icon");t&&(t.style.display=""===this.inputEle.value?"none":"flex")},R.prototype.updateDynamicDataSource=function(t,e){var i;this.gridObj&&(this.isShowSpinner=!0,this.setGridData(t),e instanceof y.DataManager?e.executeQuery(new y.Query).then(function(t){i=t.result.length}):i=e.length,0===i)&&this.popupDiv.appendChild(this.gridEle)},R.prototype.focusIn=function(t){this.disabled||this.readonly||(g.addClass([this.inputWrapper],[h]),this.inputEle.focus(),this.updateClearIconState(),this.trigger("focus",t),"Never"!==this.floatLabelType&&p.Input.calculateWidth(this.inputEle,this.inputWrapper))},R.prototype.focusOut=function(t){this.disabled||this.readonly||(this.isPopupOpen&&this.hidePopup(t),this.inputWrapper&&(g.removeClass([this.inputWrapper],[h]),(t=this.inputWrapper.querySelector(".e-clear-icon"))&&(t.style.display="none"),"Never"!==this.floatLabelType)&&p.Input.calculateWidth(this.inputEle,this.inputWrapper))},R.prototype.showPopup=function(t,n){var s=this,t={popup:this.popupObj,event:t,cancel:!1,animation:{name:"FadeIn",duration:100}};this.trigger("open",t,function(t){var e,i;t.cancel||s.isPopupOpen||(s.isPopupOpen=!0,s.popupObj.refreshPosition(),g.addClass([s.inputWrapper],[l]),g.attributes(s.inputEle,{"aria-expanded":"true","aria-owns":s.element.id+"_options","aria-controls":s.element.id}),n||(s.value||s.text||s.index)&&s.gridObj.selectRow(s.selectedRowIndex),(i=s.gridObj.getContent())&&(e=i.querySelector(".e-rowcell.e-active"),i=i.querySelector(".e-row"),e?s.inputEle.setAttribute("aria-activedescendant",e.parentElement.getAttribute("data-uid")):i&&s.inputEle.setAttribute("aria-activedescendant",i.getAttribute("data-uid"))),s.popupObj.show(new g.Animation(t.animation),s.popupEle.firstElementChild))})},R.prototype.hidePopup=function(e){var i=this,t={popup:this.popupObj,event:e||null,cancel:!1,animation:{name:"FadeOut",duration:100}},n=e?e.target:null;this.trigger("close",t,function(t){t.cancel||(i.isPopupOpen=!1,g.removeClass([i.inputWrapper],[l]),g.attributes(i.inputEle,{"aria-expanded":"false"}),i.popupObj.hide(new g.Animation(t.animation)),n&&(n.classList.contains("e-multicolumn-list-icon")||n.classList.contains("e-rowcell"))?(i.value||i.gridObj.refreshColumns(),setTimeout(function(){i.focusIn(e)})):i.focusOut(),i.inputEle.removeAttribute("aria-owns"),i.inputEle.removeAttribute("aria-activedescendant"),i.customFilterQuery=null)}),setTimeout(function(){var t;i.gridObj&&(i.gridObj.dataSource=i.allowFiltering?i.mainData:i.gridData,(t=i.popupDiv.querySelector(".e-no-records"))&&(i.popupDiv.removeChild(t),g.removeClass([i.popupDiv],[u])),i.updateGridHeight(!0,!1))},100)},R.prototype.addItems=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.editSettings.allowAdding=!0,this.gridObj.dataBind(),this.isProtectedOnChange=i,this.gridObj.addRecord(t,e)},R.prototype.getItems=function(){return this.gridObj.getDataRows()},R.prototype.getDataByValue=function(e){var i=this;return!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array?this.dataSource.filter(function(t){return i.updateFieldValue(i.fields.value,t)===e})[0]:!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?(!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData).filter(function(t){return i.updateFieldValue(i.fields.value,t)===e})[0]:null},R.prototype.destroy=function(){if(this.unWireEvents(),this.gridObj&&(this.gridObj.destroy(),g.detach(this.gridObj.element)),this.inputEle){for(var t=["placeholder","aria-expanded","spellcheck","aria-label","role","type","aria-owns","aria-controls","aria-readonly","autocomplete","autocapitalize","spellcheck","aria-activedescendant"],e=0;e<t.length;e++)this.inputEle.removeAttribute(t[e]);this.inputEle.classList.remove("e-input"),p.Input.setValue("",this.inputEle,this.floatLabelType,this.showClearButton)}this.popupEle&&(this.popupEle.removeAttribute("aria-label"),this.popupEle.removeAttribute("role")),this.popupObj&&(this.popupObj.destroy(),g.detach(this.popupObj.element)),this.element.tagName!==this.getDirective()&&this.inputWrapper.parentElement.insertBefore(this.element,this.inputWrapper),this.inputObj&&(g.detach(this.inputObj.container),this.inputObj=null),p.Input.destroy({element:this.inputEle,floatLabelType:this.floatLabelType,properties:this.properties}),g.detach(this.inputWrapper),g.detach(this.popupDiv),this.inputEle=null,this.previousItemElement=null,this.inputWrapper.innerHTML="",this.inputWrapper=null,this.popupDiv=null,this.popupObj=null,this.gridObj=null,this.gridEle=null,this.popupEle=null,this.footer=null,this.noRecord=null,this.hiddenElement=null,this.dropdownElement=null,P.prototype.destroy.call(this)},R.prototype.onPropertyChanged=function(t,e){for(var i=0,n=Object.keys(t);i<n.length;i++){var s,o=n[i];switch(o){case"width":case"popupWidth":"width"===o&&this.setElementWidth(t.width),this.popupObj&&(this.popupObj.element.style.width=this.getSize(!0));break;case"popupHeight":this.popupObj&&(s=this.getSize(!1),this.popupObj.element.style.maxHeight=s,this.popupDiv.style.maxHeight=s,this.gridObj.height=s);break;case"placeholder":p.Input.setPlaceholder(t.placeholder,this.inputEle);break;case"readonly":p.Input.setReadonly(this.readonly,this.inputEle);break;case"disabled":p.Input.setEnabled(!this.disabled,this.inputEle),this.setEnable();break;case"cssClass":this.setCssClass(t.cssClass,e.cssClass);break;case"floatLabelType":p.Input.removeFloating(this.inputObj),p.Input.addFloating(this.inputEle,this.floatLabelType,this.placeholder);break;case"showClearButton":p.Input.setClearButton(t.showClearButton,this.inputEle,this.inputObj);break;case"value":this.initValue(!0,!0);break;case"text":this.initValue(!0,!1);break;case"index":this.initValue(!0);break;case"sortOrder":this.gridObj&&(this.gridObj.sortSettings.columns=[{field:this.fields.text,direction:t.sortOrder===r.SortOrder.Ascending?r.SortOrder.Ascending:r.SortOrder.Descending}]);break;case"htmlAttributes":this.setHTMLAttributes();break;case"noRecordsTemplate":this.l10nUpdate();break;case"actionFailureTemplate":this.l10nUpdate(!0);break;case"footerTemplate":this.setFooterTemplate();break;case"itemTemplate":this.gridObj&&(this.gridObj.rowTemplate=t.itemTemplate);break;case"groupTemplate":this.groupTemplate=t.groupTemplate,this.updateGroupByField();break;case"enableRtl":this.gridObj&&this.popupObj&&(this.gridObj.enableRtl=t.enableRtl,p.Input.setEnableRtl(t.enableRtl,[this.inputWrapper]),this.popupObj.enableRtl=t.enableRtl);break;case"dataSource":this.updateDynamicDataSource(t.dataSource,e.dataSource);break;case"query":this.isMainDataUpdated=!1,this.setGridData(this.dataSource);break;case"gridSettings":this.gridObj&&(this.gridObj.gridLines=t.gridSettings.gridLines,this.gridObj.rowHeight=t.gridSettings.rowHeight,this.gridObj.enableAltRow=t.gridSettings.enableAltRow,this.gridObj.allowResizing=t.gridSettings.allowResizing,g.isNullOrUndefined(t.gridSettings.allowTextWrap)||(this.gridObj.allowTextWrap=t.gridSettings.allowTextWrap),g.isNullOrUndefined(t.gridSettings.textWrapMode)||(this.gridObj.textWrapSettings.wrapMode=t.gridSettings.textWrapMode));break;case"fields":this.fields=t.fields,this.updateGroupByField();break;case"filterType":this.filterType=t.filterType;break;case"enableVirtualization":this.gridObj&&(this.enableVirtualization=this.gridObj.enableVirtualization=t.enableVirtualization);break;case"sortType":this.gridObj&&(this.sortType=t.sortType,this.gridObj.allowMultiSorting="multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting);break;case"allowFiltering":this.allowFiltering=t.allowFiltering;break;case"allowSorting":this.gridObj&&(this.allowSorting=this.gridObj.allowSorting=t.allowSorting);break;case"columns":this.gridObj&&(s=this.getGridColumns(),this.gridObj.columns=s);break;case"locale":this.isLocaleChanged=!0}}},e([g.Property([])],R.prototype,"dataSource",void 0),e([g.Property(null)],R.prototype,"text",void 0),e([g.Property(null)],R.prototype,"value",void 0),e([g.Property(null)],R.prototype,"index",void 0),e([g.Property("100%")],R.prototype,"width",void 0),e([g.Property("300px")],R.prototype,"popupHeight",void 0),e([g.Property("100%")],R.prototype,"popupWidth",void 0),e([g.Property(null)],R.prototype,"placeholder",void 0),e([g.Property(!0)],R.prototype,"allowFiltering",void 0),e([g.Property(!0)],R.prototype,"allowSorting",void 0),e([g.Property(!1)],R.prototype,"showClearButton",void 0),e([g.Property("")],R.prototype,"cssClass",void 0),e([g.Complex({text:null,value:null,groupBy:null},w)],R.prototype,"fields",void 0),e([g.Collection([],E)],R.prototype,"columns",void 0),e([g.Complex({},D)],R.prototype,"gridSettings",void 0),e([g.Property(r.FilterType.StartsWith)],R.prototype,"filterType",void 0),e([g.Property("Never")],R.prototype,"floatLabelType",void 0),e([g.Property(r.SortOrder.None)],R.prototype,"sortOrder",void 0),e([g.Property(r.SortType.OneColumn)],R.prototype,"sortType",void 0),e([g.Property(!1)],R.prototype,"enableVirtualization",void 0),e([g.Property(!1)],R.prototype,"disabled",void 0),e([g.Property(!1)],R.prototype,"readonly",void 0),e([g.Property(!1)],R.prototype,"enablePersistence",void 0),e([g.Property()],R.prototype,"query",void 0),e([g.Property(null)],R.prototype,"itemTemplate",void 0),e([g.Property(null)],R.prototype,"footerTemplate",void 0),e([g.Property(null)],R.prototype,"groupTemplate",void 0),e([g.Property("Request Failed")],R.prototype,"actionFailureTemplate",void 0),e([g.Property("No records found")],R.prototype,"noRecordsTemplate",void 0),e([g.Property({})],R.prototype,"htmlAttributes",void 0),e([g.Event()],R.prototype,"created",void 0),e([g.Event()],R.prototype,"open",void 0),e([g.Event()],R.prototype,"close",void 0),e([g.Event()],R.prototype,"actionFailure",void 0),e([g.Event()],R.prototype,"actionBegin",void 0),e([g.Event()],R.prototype,"actionComplete",void 0),e([g.Event()],R.prototype,"filtering",void 0),e([g.Event()],R.prototype,"select",void 0),e([g.Event()],R.prototype,"change",void 0);var P,t=e([g.NotifyPropertyChanges],R);function R(t,e){t=P.call(this,t,e)||this;return t.gridInject=new m,t.isShowSpinner=!0,t.gridInject.InjectModules(),t}r.Column=E,r.FieldSettings=w,r.GridSettings=D,r.MultiColumnComboBox=t,r.MultiColumnGrid=m,Object.defineProperty(r,"__esModule",{value:!0})});
1
+ /*!
2
+ * filename: ej2-multicolumn-combobox.umd.min.js
3
+ * version : 32.1.24
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
10
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-inputs"),require("@syncfusion/ej2-data"),require("@syncfusion/ej2-popups"),require("@syncfusion/ej2-grids")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-inputs","@syncfusion/ej2-data","@syncfusion/ej2-popups","@syncfusion/ej2-grids"],e):e((t=t||self).ej={},t.ej2Base,t.ej2Inputs,t.ej2Data,t.ej2Popups,t.ej2Grids)}(this,function(r,g,p,y,o,n){"use strict";s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};var s,t=function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},e=function(t,e,i,n){var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;0<=a;a--)(s=t[a])&&(r=(o<3?s(r):3<o?s(e,i,r):s(e,i))||r);return 3<o&&r&&Object.defineProperty(e,i,r),r},i=function(o,r,a,l){return new(a=a||Promise)(function(t,e){function i(t){try{s(l.next(t))}catch(t){e(t)}}function n(t){try{s(l.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(i,n)}s((l=l.apply(o,r||[])).next())})},a=function(n,s){var o,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(i){return function(t){var e=[i,t];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,r&&(a=2&e[0]?r.return:e[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,e[1])).done)return a;switch(r=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,r=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))l.label=e[1];else if(6===e[0]&&l.label<a[1])l.label=a[1],a=e;else{if(!(a&&l.label<a[2])){a[2]&&l.ops.pop(),l.trys.pop();continue}l.label=a[2],l.ops.push(e)}}e=s.call(n,l)}catch(t){e=[6,t],r=0}finally{o=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},l="e-icon-anim",u="e-nodata",d="e-disabled",h="e-input-focus",c="e-multicolumn-list",f="e-multicolumn-grid",m=(v.prototype.InjectModules=function(){n.Grid.Inject(n.VirtualScroll,n.Group,n.Edit,n.Sort,n.Resize)},v);function v(){}(w=r.FilterType||(r.FilterType={})).StartsWith="StartsWith",w.EndsWith="EndsWith",w.Contains="Contains",(w=r.SortOrder||(r.SortOrder={})).None="None",w.Ascending="Ascending",w.Descending="Descending",(w=r.SortType||(r.SortType={})).OneColumn="OneColumn",w.MultipleColumns="MultipleColumns",(w=r.WrapMode||(r.WrapMode={})).Both="Both",w.Content="Content",w.Header="Header";b=g.ChildProperty,t(O,b),e([g.Property()],O.prototype,"text",void 0),e([g.Property()],O.prototype,"value",void 0),e([g.Property()],O.prototype,"groupBy",void 0);var b,w=O;function O(){return null!==b&&b.apply(this,arguments)||this}S=g.ChildProperty,t(C,S),e([g.Property("")],C.prototype,"field",void 0),e([g.Property("")],C.prototype,"header",void 0),e([g.Property("")],C.prototype,"width",void 0),e([g.Property("")],C.prototype,"textAlign",void 0),e([g.Property(null)],C.prototype,"format",void 0),e([g.Property(!1)],C.prototype,"displayAsCheckBox",void 0),e([g.Property(null)],C.prototype,"template",void 0),e([g.Property(null)],C.prototype,"headerTemplate",void 0),e([g.Property(null)],C.prototype,"customAttributes",void 0);var S,E=C;function C(){return null!==S&&S.apply(this,arguments)||this}x=g.ChildProperty,t(j,x),e([g.Property(!1)],j.prototype,"enableAltRow",void 0),e([g.Property(null)],j.prototype,"rowHeight",void 0),e([g.Property("Default")],j.prototype,"gridLines",void 0),e([g.Property(!1)],j.prototype,"allowTextWrap",void 0),e([g.Property(r.WrapMode.Both)],j.prototype,"textWrapMode",void 0),e([g.Property(!1)],j.prototype,"allowResizing",void 0),e([g.Event()],j.prototype,"resizing",void 0),e([g.Event()],j.prototype,"resizeStart",void 0),e([g.Event()],j.prototype,"resizeStop",void 0);var x,D=j;function j(){return null!==x&&x.apply(this,arguments)||this}P=g.Component,t(R,P),R.prototype.preRender=function(){this.element.id||(this.element.id=g.getUniqueID("e-"+this.getModuleName())),this.keyConfigs={escape:"escape",altUp:"alt+uparrow",altDown:"alt+downarrow",tab:"tab",shiftTab:"shift+tab",end:"end",enter:"enter",home:"home",moveDown:"downarrow",moveUp:"uparrow"},this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null,this.persistData()},R.prototype.getDirective=function(){return"EJS-MULTICOLUMNCOMBOBOX"},R.prototype.getModuleName=function(){return"multicolumncombobox"},R.prototype.getPersistData=function(){return this.addOnPersist(["value"])},R.prototype.persistData=function(){var t;this.enablePersistence&&(this.element.id+="_wrapper",t=window.localStorage.getItem(this.getModuleName()+this.element.id),g.isNullOrUndefined(t)||""===t||this.setProperties(JSON.parse(t),!0))},R.prototype.render=function(){this.renderInput(),!(g.isNullOrUndefined(this.value)&&g.isNullOrUndefined(this.text)&&g.isNullOrUndefined(this.index)||g.isNullOrUndefined(this.dataSource))&&this.dataSource instanceof y.DataManager&&(this.isInitialValueRender=!0),null==this.gridData&&this.setGridData(this.dataSource),this.renderGrid(),this.popupDiv=this.createElement("div",{className:"e-popup-content"}),this.popupDiv.appendChild(this.gridEle),this.setHTMLAttributes(),this.renderPopup(),this.wireEvents()},R.prototype.setGridData=function(e,i){var n=this;this.trigger("actionBegin",{cancel:!1,query:i},function(t){t.cancel||(e instanceof y.DataManager?(n.isShowSpinner&&n.showHideSpinner(!0),e.executeQuery(n.getQuery(i)).then(function(t){n.gridData=t.result,n.trigger("actionComplete",t,function(t){n.showHideSpinner(!1),n.isMainDataUpdated||(n.mainData=n.gridData,n.remoteDataLength=n.gridData.length,n.isMainDataUpdated=!0),n.isInitialValueRender&&(n.isInitialValueRender=!1,n.initValue(null,null,!0)),n.popupDiv&&n.updateGridDataSource()})}).catch(function(t){n.trigger("actionFailure",t,null)})):(t=new y.DataManager(e),t=n.getQuery(i).executeLocal(t),n.gridData=t,n.trigger("actionComplete",{result:t},function(t){n.isMainDataUpdated||(n.mainData=n.gridData,n.remoteDataLength=n.gridData.length,n.isMainDataUpdated=!0),n.popupDiv&&n.updateGridDataSource()})))})},R.prototype.getQuery=function(t){var e,i,n;return!this.isCustomFilter&&this.allowFiltering?(e=t?t.clone():this.query?this.query.clone():new y.Query,i=""===this.typedString?"contains":this.filterType,this.allowFiltering&&this.typedString&&""!==this.typedString&&(n=this.fields.text||"",e.where(n,i,this.typedString,!0,!1))):e=null!=this.customFilterQuery?this.customFilterQuery.clone():t?t.clone():this.query?this.query.clone():new y.Query,e},R.prototype.setHiddenValue=function(){var t,e;g.isNullOrUndefined(this.value)?this.hiddenElement.innerHTML="":(t=this.hiddenElement.querySelector("option"),g.isNullOrUndefined(t)?g.isNullOrUndefined(this.hiddenElement)||((e=document.createElement("option")).text=this.text,e.setAttribute("value",this.value.toString()),e.setAttribute("selected",""),this.hiddenElement.appendChild(e)):(t.textContent=this.text,t.setAttribute("value",this.value.toString())))},R.prototype.renderGrid=function(){var e=this,t=this.getGridColumns(),i=this.sortOrder.toString().toLowerCase();this.gridObj=new n.Grid({dataSource:this.gridData,columns:t,allowSorting:this.allowSorting,enableStickyHeader:!0,gridLines:this.gridSettings.gridLines,rowHeight:this.gridSettings.rowHeight,enableAltRow:this.gridSettings.enableAltRow,enableVirtualization:this.enableVirtualization,enableRtl:this.enableRtl,editSettings:{allowAdding:!1},allowTextWrap:this.gridSettings.allowTextWrap,textWrapSettings:{wrapMode:this.gridSettings.textWrapMode},height:this.popupHeight,allowResizing:this.gridSettings.allowResizing,allowMultiSorting:"multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting,rowTemplate:this.itemTemplate,beforeDataBound:function(){e.dataSource instanceof y.DataManager&&e.isShowSpinner&&(e.showHideSpinner(!0),e.isShowSpinner=!1)},dataBound:function(){e.onDataBound()},actionFailure:function(t){e.onActionFailure(t)},actionComplete:this.handleActionComplete.bind(this),keyPressed:this.handleKeyPressed.bind(this),resizing:function(t){e.gridSettings.resizing&&e.gridSettings.resizing.call(e,t)},resizeStart:function(t){e.gridSettings.resizeStart&&e.gridSettings.resizeStart.call(e,t)},resizeStop:function(t){e.gridSettings.resizeStop&&e.gridSettings.resizeStop.call(e,t)}}),this.gridEle=this.createElement("div",{id:this.element.id+"_"+g.getUniqueID("grid"),className:f}),this.updateGroupByField(),0<t.length&&(this.gridObj.columns[0].isPrimaryKey=!0),"none"!==i&&(this.gridObj.sortSettings={columns:[{field:this.fields.text,direction:"ascending"===i?r.SortOrder.Ascending:r.SortOrder.Descending}]}),this.gridObj.appendTo(this.gridEle),!(g.isNullOrUndefined(this.value)&&g.isNullOrUndefined(this.text)&&g.isNullOrUndefined(this.index)||g.isNullOrUndefined(this.dataSource))&&this.dataSource instanceof Array&&this.initValue(null,null,!0)},R.prototype.handleActionComplete=function(t){var e,i=this;"sorting"===t.requestType&&this.updateRowSelection(t),Array.isArray(t.rows)&&this.isDataFiltered&&(t=t.rows,e=0,t.forEach(function(t){t=i.gridObj.getRowElementByUID(t.uid);t&&(e+=t.getBoundingClientRect().height)}),this.popupRowHeight=e||parseFloat(this.popupHeight),this.updateGridHeight(!0,!0)),this.popupObj.refreshPosition(),this.gridObj.element.querySelector(".e-content").scrollTop=0},R.prototype.handleKeyPressed=function(t){"Enter"===t.key&&(t.cancel=!0,this.isPopupOpen)&&(this.selectedGridRow(this.gridObj.getRows()[this.gridObj.selectedRowIndex],t,!0),this.hidePopup(t),this.focusIn(t)),this.fields.groupBy&&(t.cancel=!0,this.gridKeyActionHandler(t,!0))},R.prototype.isRowMatching=function(t,e,i){function n(e){var i=[];return e&&"object"==typeof e?Array.isArray(e)?e.forEach(function(t){return i.push.apply(i,n(t))}):Object.keys(e).forEach(function(t){return i.push.apply(i,n(e[""+t]))}):null!=e&&i.push(String(e)),i}t=n(t);return-1!==t.indexOf(e)&&-1!==t.indexOf(i)},R.prototype.updateRowSelection=function(t){var e=this;t&&t.rows.forEach(function(t){e.selectDataRow(t.data,t.index)})},R.prototype.selectDataRow=function(t,e){this.isRowMatching(t,this.value?this.value.toString():"",this.text?this.text.toString():"")&&(this.gridObj.selectRow(e),t=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.index=e,this.isProtectedOnChange=t)},R.prototype.findIndex=function(t,i){return t.findIndex(function(e){return Object.keys(i).every(function(t){return e[t]===i[t]})})},R.prototype.getGridColumns=function(){var p=this;return this.columns.map(function(t){var e=t.field,i=t.header,n=t.width,s=t.textAlign,o=t.format,r=t.displayAsCheckBox,a=t.template,l=t.headerTemplate,t=t.customAttributes;return{field:e,headerText:i,width:n,textAlign:""===s.toString()&&p.enableRtl?"Right":s,format:o,displayAsCheckBox:r,template:a,headerTemplate:l,customAttributes:t,type:r&&!o?"boolean":void 0}})},R.prototype.updateGroupByField=function(){var t,e=this.fields.groupBy,i=""!==e&&!g.isNullOrUndefined(e);i&&("multiplecolumns"!==this.sortType.toString().toLowerCase()&&this.gridEle.classList.add("e-multicolumn-group"),t=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.gridObj.allowGrouping=!0,this.gridObj.groupSettings={showDropArea:!1,columns:[e]},this.groupTemplate&&i&&(this.gridObj.groupSettings.captionTemplate=this.groupTemplate),this.isVue&&(this.gridObj.isVue=this.isVue),this.isProtectedOnChange=t)},R.prototype.onDataBound=function(){var t=this,e=(this.isLocaleChanged&&(this.isLocaleChanged=!1,this.unWireEvents(),this.wireEvents()),this.dataSource.length),i=this.popupDiv.querySelector("."+f),n=this.popupDiv.classList.contains(u),n=(e<=0&&i?(this.l10nUpdate(),this.popupDiv.removeChild(this.gridEle),g.addClass([this.popupDiv],[u])):n&&1<=e&&(g.removeClass([this.popupDiv],[u]),i=this.popupDiv.querySelector(".e-no-records"))&&this.popupDiv.removeChild(i),this.isInitialRender&&(e=this.popupDiv.querySelector(".e-gridcontent tr"),i=n?this.popupDiv.getBoundingClientRect().height:e?e.getBoundingClientRect().height:0,this.popupRowHeight=i,this.popupObj.hide(),this.popupEle.style.visibility="unset",this.isInitialRender=!1),this.gridObj.element.querySelectorAll(".e-row"));this.isDataFiltered&&0<n.length&&""!==this.inputEle.value&&n[0].classList.add("e-row-focus"),this.dataSource instanceof y.DataManager&&setTimeout(function(){t.showHideSpinner(!1)})},R.prototype.showHideSpinner=function(t){t?o.showSpinner(this.dropdownElement):o.hideSpinner(this.dropdownElement)},R.prototype.onActionFailure=function(t){this.trigger("actionFailure",t),this.l10nUpdate(!0),g.addClass([this.popupDiv],[u])},R.prototype.renderInput=function(){var t=["aria-expanded","aria-readOnly","aria-disabled","autocomplete","autocapitalize","spellcheck","tabindex"];if("INPUT"===this.element.tagName){this.inputEle=this.element,g.isNullOrUndefined(this.inputEle.getAttribute("role"))&&this.inputEle.setAttribute("role","combobox"),g.isNullOrUndefined(this.inputEle.getAttribute("type"))&&this.inputEle.setAttribute("type","text");var e,i=this.inputEle,n={"aria-expanded":"false","aria-readOnly":this.readonly.toString(),"aria-disabled":this.disabled.toString(),autocomplete:"off",autocapitalize:"off",spellcheck:"false",tabindex:"0"};for(e in n)n.hasOwnProperty(e)&&-1!==t.indexOf(e)&&g.isNullOrUndefined(i.getAttribute(e))&&i.setAttribute(e,n[e])}else this.inputEle=this.createElement("input",{attrs:{role:"textbox",type:"text"}}),this.element.parentElement.insertBefore(this.inputEle,this.element);this.inputObj=p.Input.createInput({element:this.inputEle,buttons:["e-input-group-icon e-multicolumn-list-icon e-icons"],floatLabelType:this.floatLabelType,properties:{enabled:!this.disabled,readonly:this.readonly,placeholder:this.placeholder,enableRtl:this.enableRtl,showClearButton:this.showClearButton,cssClass:this.cssClass}},this.createElement),this.inputWrapper=this.inputObj.container,this.inputWrapper.classList.add(c),this.inputWrapper.setAttribute("spellcheck","false"),this.hiddenElement=this.createElement("select",{attrs:{"aria-hidden":"true",tabindex:"-1",class:"e-multicolumn-list-hidden"}}),g.prepend([this.hiddenElement],this.inputWrapper);var s=this.inputEle.getAttribute("name")?this.inputEle.getAttribute("name"):this.inputEle.getAttribute("id");this.hiddenElement.setAttribute("name",s),this.inputEle.removeAttribute("name"),this.hiddenElement.hasAttribute("aria-label")||this.hiddenElement.setAttribute("aria-label",this.getModuleName()),this.element.tagName===this.getDirective()&&this.element.appendChild(this.inputWrapper),this.setElementWidth(this.width),this.dropdownElement=this.inputWrapper.querySelector(".e-input-group-icon.e-multicolumn-list-icon.e-icons"),o.createSpinner({target:this.dropdownElement})},R.prototype.setElementWidth=function(t){var e;g.isNullOrUndefined(t)||(e=this.inputWrapper,"number"==typeof t?e.style.width=g.formatUnit(t):"string"==typeof t&&(e.style.width=t.match(/px|%|em/)?t:g.formatUnit(t)))},R.prototype.setHTMLAttributes=function(){var i=this,t=this.htmlAttributes,e=this.inputEle;if(Object.keys(t).length)for(var n=0,s=Object.keys(t);n<s.length;n++){var o=s[n];switch(o){case"class":this.inputWrapper.classList.add(t[o]);break;case"disabled":this.setProperties({enabled:!1},!0),this.setEnable();break;case"readonly":this.setProperties({readonly:!0},!0),this.dataBind();break;case"style":var r=t[o];this.inputWrapper.style.cssText="",r&&r.split(";").forEach(function(t){var t=t.split(":").map(function(t){return t.trim()}),e=t[0],t=t[1];e&&t&&i.inputWrapper.style.setProperty(e,t)});break;default:-1<["name","required"].indexOf(o)||0===o.indexOf("data")?this.hiddenElement.setAttribute(o,this.htmlAttributes[""+o]):-1<["title","id","placeholder","role","autocomplete","autocapitalize","spellcheck","minlength","maxlength"].indexOf(o)&&"placeholder"===o?p.Input.setPlaceholder(t[o],e):e.setAttribute(o,t[o])}}},R.prototype.setEnable=function(){p.Input.setEnabled(!this.disabled,this.inputEle),this.disabled?(this.isPopupOpen&&this.hidePopup(),g.addClass([this.inputWrapper],d),this.inputWrapper&&this.inputWrapper.classList.contains(h)&&g.removeClass([this.inputWrapper],[h]),this.setAriaDisabled("true")):(g.removeClass([this.inputWrapper],d),this.setAriaDisabled("false"))},R.prototype.setAriaDisabled=function(t){this.inputEle.setAttribute("aria-disabled",t),this.inputWrapper.setAttribute("aria-disabled",t)},R.prototype.updateFieldValue=function(t,e){return g.getValue(t,e).toString()},R.prototype.initValue=function(s,e,o){function r(t){t=d.updateCurrentValues(u,t),a=t.currentValue,l=t.currentText,p=t.currentIndex}var a,l,p,i,t,u,d=this,h=this.gridObj.getSelectedRecords()[0],c=this.gridObj.getSelectedRows()[0],n=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.value=this.value&&this.value.toString(),this.isProtectedOnChange=n;!s&&(!g.isNullOrUndefined(this.value)||!g.isNullOrUndefined(this.text))||s&&void 0!==e?(i=s?e?this.value:this.text:g.isNullOrUndefined(this.value)?this.text:this.value,!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?0<(n=(t=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData).filter(function(t){return(t?d.updateFieldValue(s?e?d.fields.value:d.fields.text:g.isNullOrUndefined(d.value)?d.fields.text:d.fields.value,t):null)===i})).length&&(u=n[0],r(t),this.updateChangeEvent(u,h,c,a,l,p,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(u=this.dataSource.filter(function(t){return d.updateFieldValue(s?e?d.fields.value:d.fields.text:g.isNullOrUndefined(d.value)?d.fields.text:d.fields.value,t)===i})[0],r(this.dataSource))):g.isNullOrUndefined(this.index)||(!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?(u=(t=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData)[this.index],r(t),this.updateChangeEvent(u,h,c,a,l,p,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(this.fields.groupBy?setTimeout(function(){var t=d.gridObj.getRows();if(t&&0<t.length)for(var e=d.gridObj.getRowInfo(t[d.index]).rowData,i=d.fields.value,n=0;n<t.length;n++)if(e&&e[parseInt(i.toString(),10)]===d.dataSource[parseInt(n.toString(),10)][parseInt(i.toString(),10)]){u=e,r(d.dataSource),d.updateChangeEvent(u,h,c,a,l,p,s,o),d.gridObj.selectRow(d.index);break}}):(u=this.dataSource[this.index],r(this.dataSource)))),this.dataSource instanceof y.DataManager||this.updateChangeEvent(u,h,c,a,l,p,s,o)},R.prototype.updateChangeEvent=function(t,e,i,n,s,o,r,a){var l=t?this.updateFieldValue(this.fields.value,t):null,t={value:t?l:null,itemData:{text:s,value:n},item:this.getDataByValue(this.value),previousItemData:e,previousItemElement:i,itemElement:this.inputWrapper,event:null,isInteracted:!r};this.updateValues(n,s,o,t,a)},R.prototype.updateCurrentValues=function(t,e){var i,n;return g.isNullOrUndefined(t)?{currentValue:null,currentText:null,currentIndex:null}:(i=this.updateFieldValue(this.fields.text,t),n=this.updateFieldValue(this.fields.value,t),p.Input.setValue(i,this.inputEle,this.floatLabelType,this.showClearButton),{currentValue:n,currentText:i,currentIndex:e.indexOf(t)})},R.prototype.renderPopup=function(){this.popupEle=this.createElement("div",{id:this.element.id+"_options",className:c+" e-popup "+(null!==this.cssClass?this.cssClass:"")}),g.attributes(this.popupEle,{"aria-label":this.element.id,role:"dialog"}),document.body.appendChild(this.popupEle),this.createPopup(this.popupEle),g.prepend([this.popupDiv],this.popupEle),this.footerTemplate&&this.setFooterTemplate();var t,e=this.getSize(!1);this.popupEle.style.maxHeight=e,this.footerTemplate&&(t=Math.round(this.footer.getBoundingClientRect().height),e=g.formatUnit(parseInt(e,10)-t+"px")),this.popupDiv.style.maxHeight=e,this.updateGridHeight(),this.popupEle.style.visibility="hidden",this.isInitialRender=!0},R.prototype.updateGridHeight=function(t,e){e=t?(t=(t=this.gridObj.getContent().querySelector(".e-content")).offsetHeight-t.clientHeight,""===this.fields.groupBy||g.isNullOrUndefined(this.fields.groupBy)||(this.popupRowHeight+=this.popupRowHeight),e&&this.popupRowHeight<this.prevGridHeight?this.popupRowHeight+t+"px":this.prevGridHeight+"px"):(this.prevGridHeight=this.popupDiv.getBoundingClientRect().height-this.popupDiv.querySelector(".e-gridheader").getBoundingClientRect().height,this.prevGridHeight+"px"),t=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.height=e,this.isProtectedOnChange=t},R.prototype.createPopup=function(t){var e=this;this.popupObj=new o.Popup(t,{width:this.getSize(!0),targetType:"relative",collision:{X:"flip",Y:"flip"},relateTo:this.inputWrapper,enableRtl:this.enableRtl,position:{X:"left",Y:"bottom"},targetExitViewport:function(){g.Browser.isDevice||e.hidePopup()},open:function(){e.inputEle.focus(),e.updateClearIconState()}})},R.prototype.setFooterTemplate=function(){this.footer?this.isReact&&"function"==typeof this.footerTemplate?this.clearTemplate(["footerTemplate"]):this.footer.innerHTML="":(this.footer=this.createElement("div"),g.addClass([this.footer],"e-popup-footer"));var t=this.getTemplateFunction(this.footerTemplate)({count:this.dataSource.length},this,"footerTemplate",this.element.id+"footerTemplate",this.isStringTemplate,void 0,this.footer);t&&(t=Array.prototype.slice.call(t),g.append(t,this.footer)),g.append([this.footer],this.popupEle)},R.prototype.l10nUpdate=function(t){var e,i,n;this.noRecord?this.noRecord.innerHTML="":this.noRecord=this.createElement("div"),"No records found"!==this.noRecordsTemplate||"Request Failed"!==this.actionFailureTemplate?(n=t?this.actionFailureTemplate:this.noRecordsTemplate,e=t?this.element.id+"_actionFailure":this.element.id+"_noRecords",i=t?"actionFailureTemplate":"noRecordsTemplate",(n=this.getTemplateFunction(n)({},this,i,e,this.isStringTemplate,void 0,this.noRecord))&&(n=Array.prototype.slice.call(n),g.append(n,this.noRecord))):(this.l10n=new g.L10n("multicolumncombobox",{noRecordsTemplate:"No records found",actionFailureTemplate:"Request Failed"},this.locale),this.noRecord.innerHTML=t?this.l10n.getConstant("actionFailureTemplate"):this.l10n.getConstant("noRecordsTemplate")),g.addClass([this.noRecord],"e-no-records"),g.prepend([this.noRecord],this.popupDiv),this.popupObj.refreshPosition()},R.prototype.getTemplateFunction=function(e){if("string"!=typeof e)return g.compile(e);var i="";try{var t=g.select(e),i=t?"SCRIPT"===t.tagName?t.innerHTML:t.outerHTML:e}catch(t){i=e}return g.compile(i)},R.prototype.getSize=function(t){var e=t?this.popupWidth:this.popupHeight,i=g.formatUnit(e);return i.includes("%")?i=((t?this.inputWrapper.offsetWidth:document.documentElement.clientHeight)*parseFloat(i)/100).toString()+"px":"string"==typeof e&&(i=e.match(/px|em/)?e:i),i},R.prototype.selectedGridRow=function(t,e,i){var n=this,s={isInteracted:!!e,item:this.gridObj.getSelectedRecords()[0],itemElement:t,itemData:this.gridObj.getSelectedRecords()[0],event:e,cancel:!1},o=this.gridObj.getSelectedRecords()[0],r=o?this.updateFieldValue(this.fields.text,o):"",a=o?this.updateFieldValue(this.fields.value,o):"",l={isInteracted:!!e,item:o,itemElement:t,itemData:{text:o?r:"",value:o?a:""},event:e,cancel:!1,value:o?a:"",previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement};this.trigger("select",s,function(t){!t.cancel&&t.itemData&&(t="Enter"===e.key||"Tab"===e.key||e.shiftKey&&"Tab"===e.key||e.altKey&&"ArrowUp"===e.key,i&&!t||n.updateValues(o?a:"",o?r:"",n.gridObj.selectedRowIndex,l),p.Input.setValue(o?r:"",n.inputEle,n.floatLabelType,n.showClearButton),n.setHiddenValue(),i&&!t||n.hidePopup(e))})},R.prototype.updateValues=function(t,e,i,n,s){this.previousItemElement=n.itemElement;var o=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.text=e||this.text,this.value=t||this.value,this.index=this.selectedRowIndex=g.isNullOrUndefined(i)?this.index:i,this.isProtectedOnChange=o,this.setHiddenValue(),s||this.triggerChangeEvent(n)},R.prototype.triggerChangeEvent=function(t){this.trigger("change",t,function(t){t.cancel})},R.prototype.inputHandler=function(t){var n,s=this;this.showPopup(null,!0),this.updateClearIconState(),this.allowFiltering&&(this.typedString=t.target.value.toLowerCase(),n={preventDefaultAction:!1,text:this.typedString,updateData:function(t,e,i){n.cancel||(s.isCustomFilter=!0,s.customFilterQuery=e&&e.clone(),s.setGridData(t,e))},event:t,cancel:!1},this.trigger("filtering",n,function(t){t.cancel||t.preventDefaultAction||s.isCustomFilter||s.setGridData(s.dataSource,s.query?s.query.clone():null)})),this.updateInputValue(t.target.value)},R.prototype.updateInputValue=function(s){return i(this,void 0,void 0,function(){var e,i,n;return a(this,function(t){return this.dataSource instanceof y.DataManager?(n=this.filterDatas(this.mainData,s),i=n.data,n=n.exactData):Array.isArray(this.dataSource)&&(e=this.filterDatas(this.dataSource,s),i=e.data,n=e.exactData),this.selectFilteredRows(i,n),[2]})})},R.prototype.filterDatas=function(t,e){var i=this;return{data:t.filter(function(t){t=i.updateFieldValue(i.fields.text,t);return e&&t.toLowerCase().startsWith(e.toLowerCase())}),exactData:t.filter(function(t){return i.updateFieldValue(i.fields.text,t)===e})}},R.prototype.selectFilteredRows=function(t,e){t.length<=0?this.matchedRowEle=this.matchedContent=this.exactMatchedContent=null:(this.matchedContent=t[0],this.exactMatchedContent=e[0],t=this.findIndex(this.gridObj.currentViewData,this.matchedContent),this.matchedRowEle=this.gridObj.getRowByIndex(t))},R.prototype.updateGridDataSource=function(){var t;this.gridData&&0<this.gridData.length?(g.removeClass([this.popupDiv],[u]),(t=this.popupDiv.querySelector(".e-no-records"))&&this.popupDiv.removeChild(t),this.gridObj.dataSource=this.gridData,this.isDataFiltered=!0):(this.l10nUpdate(),g.addClass([this.popupDiv],[u]))},R.prototype.wireEvents=function(){g.isNullOrUndefined(this.inputObj.buttons[0])||(g.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.preventBlur,this),g.EventHandler.add(this.inputObj.buttons[0],"mousedown",this.dropDownClick,this)),g.EventHandler.add(document,"mousedown",this.onDocumentClick,this),g.EventHandler.add(this.gridEle,"click",this.onMouseClick,this),g.EventHandler.add(this.inputEle,"input",this.inputHandler,this),g.EventHandler.add(this.inputEle,"focus",this.focusIn,this),this.showClearButton&&g.EventHandler.add(this.inputObj.clearButton,"mousedown",this.clearText,this),g.EventHandler.add(window,"resize",this.windowResize,this),this.keyboardModule=new g.KeyboardEvents(this.inputWrapper,{keyAction:this.keyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"}),this.keyboardModule=new g.KeyboardEvents(this.gridEle,{keyAction:this.gridKeyActionHandler.bind(this),keyConfigs:this.keyConfigs,eventName:"keydown"})},R.prototype.unWireEvents=function(){g.isNullOrUndefined(this.inputObj.buttons[0])||(g.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.preventBlur),g.EventHandler.remove(this.inputObj.buttons[0],"mousedown",this.dropDownClick)),g.EventHandler.remove(document,"mousedown",this.onDocumentClick),g.EventHandler.remove(this.inputEle,"input",this.inputHandler),g.EventHandler.remove(this.inputWrapper,"focus",this.focusIn),g.EventHandler.remove(window,"resize",this.windowResize),g.EventHandler.remove(this.gridEle,"click",this.onMouseClick),this.showClearButton&&g.EventHandler.remove(this.inputObj.clearButton,"mousedown",this.clearText),this.keyboardModule&&this.keyboardModule.destroy()},R.prototype.preventBlur=function(t){t.preventDefault()},R.prototype.dropDownClick=function(t){var e;this.disabled||this.readonly||((e=this.gridEle.querySelector(".e-row-focus"))&&e.classList.remove("e-row-focus"),this.isPopupOpen?this.hidePopup(t):this.showPopup(t))},R.prototype.onMouseClick=function(t){var e=t.target,e=g.closest(e,".e-row"),i=this.gridObj.selectedRowIndex;e&&(0<=i?this.selectedGridRow(e,t):(this.gridObj.selectedRowIndex=this.gridObj.getRows().indexOf(e),this.gridObj.selectRow(this.gridObj.selectedRowIndex),this.hidePopup(t)))},R.prototype.onDocumentClick=function(t){var e=t.target;this.disabled||this.readonly||!this.isPopupOpen?e.closest(".e-multicolumn-list")||this.focusOut():e.classList.contains("e-multicolumn-list-icon")||g.closest(e,".e-multicolumn-list.e-popup")?t.preventDefault():e.classList.contains("e-multicolumncombobox")||e.classList.contains("e-clear-icon")||(g.isNullOrUndefined(this.text)||this.updateInputValue(this.text),e=""===this.inputEle.value,this.updateValuesOnInput(t,null,e))},R.prototype.updateValuesOnInput=function(t,e,i,n){var s,t=t||e,e=(n=void 0===n?!1:n)?this.matchedContent:this.exactMatchedContent;e||"Enter"===t.code||(this.inputEle.value=null,this.setProperties({value:null,index:null,text:null},!0)),this.hidePopup(t),this.matchedRowEle&&!i&&e?(s=this.isProtectedOnChange,this.isProtectedOnChange=!0,n=this.updateFieldValue(this.fields.text,this.matchedContent),i=this.updateFieldValue(this.fields.value,this.matchedContent),this.inputEle.value=n,this.value=i,e=this.findIndex(this.gridObj.currentViewData,this.matchedContent),this.index=e,this.text=n,this.gridObj.selectRow(e),this.selectedGridRow(this.gridObj.getRowByIndex(e),t),this.previousItemElement=this.gridObj.getSelectedRows()[0],this.isProtectedOnChange=s):this.isDataFiltered&&(this.inputEle.value="",i={value:null,itemData:{text:null,value:null},item:null,previousItemData:{text:this.text,value:this.value},previousItemElement:this.previousItemElement,itemElement:null,event:t,isInteracted:!0,cancel:!1},s=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.text=this.value=this.index=null,this.gridObj.refreshColumns(),this.isProtectedOnChange=s,this.triggerChangeEvent(i),this.isDataFiltered=!1,this.matchedContent=this.matchedRowEle=null)},R.prototype.clearText=function(t){this.isDataFiltered=!0,this.updateValuesOnInput(t,null,!0)},R.prototype.windowResize=function(){this.popupObj&&(this.popupObj.setProperties({width:this.getSize(!0)}),this.popupObj.refreshPosition())},R.prototype.setCssClass=function(t,e){var i=this.popupObj?[this.inputWrapper,this.popupObj.element]:[this.inputWrapper];g.isNullOrUndefined(e)||""===e||g.removeClass(i,e.split(" ")),g.isNullOrUndefined(t)||""===t||g.addClass(i,t.split(" "))},R.prototype.keyActionHandler=function(t){switch(t.action){case"escape":case"altUp":case"shiftTab":case"tab":this.isPopupOpen?this.hidePopup(t):this.focusOut();break;case"altDown":this.isPopupOpen||(this.showPopup(t),this.updateSelectedItem(t,!1));break;case"moveDown":case"moveUp":this.updateSelectedItem(t,!0,!0);break;case"enter":this.updateValuesOnInput(null,t,!1,!0),this.focusIn(t);break;case"home":case"end":this.updateSelectedItem(t)}},R.prototype.gridKeyActionHandler=function(t,e){switch(e&&(e=(t.altKey?"Alt+":"")+(t.shiftKey?"Shift+":"")+t.key,t.action={ArrowDown:"moveDown",ArrowUp:"moveUp",End:"end",Home:"home",Tab:"tab",Escape:"escape","Shift+Tab":"shiftTab","Alt+ArrowUp":"altUp"}[e]||t.action),t.action){case"escape":case"tab":case"shiftTab":case"altUp":this.isPopupOpen&&(t.preventDefault(),"escape"!==t.action&&this.updateSelectedItem(t),this.hidePopup(t));break;case"moveDown":case"moveUp":case"home":case"end":this.updateSelectedItem(t)}},R.prototype.updateSelectedItem=function(t,e,i){var n,s,o=this;void 0===e&&(e=!0),this.isPopupOpen&&(n=this.fields.groupBy?this.gridObj.selectedRowIndex||0:this.gridObj.selectedRowIndex,s=this.dataSource instanceof y.DataManager?this.remoteDataLength:this.dataSource.length,-1===n&&("moveDown"===t.action||"moveUp"===t.action)||"home"===t.action?n=0:s-1<=n&&"moveDown"===t.action||"end"===t.action?n=s-1:"moveDown"===t.action&&0<=n&&n<=s-1&&(this.fields.groupBy||i)?n+=1:("moveUp"===t.action&&0<n&&this.fields.groupBy||i)&&--n,this.enableVirtualization?setTimeout(function(){o.selectRow(t,e,n)}):this.selectRow(t,e,n))},R.prototype.selectRow=function(t,e,i){void 0===e&&(e=!0),this.gridObj.selectRow(i),this.gridObj.selectedRowIndex=i;var n=this.gridEle.querySelector(".e-row-focus");n&&n.classList.remove("e-row-focus"),e&&this.selectedGridRow(this.gridObj.getRows()[parseInt(i.toString(),10)],t,!0)},R.prototype.updateClearIconState=function(){var t=this.inputWrapper.querySelector(".e-clear-icon");t&&(t.style.display=""===this.inputEle.value?"none":"flex")},R.prototype.updateDynamicDataSource=function(t,e){var i;this.gridObj&&(this.isMainDataUpdated=!1,this.isShowSpinner=!0,this.setGridData(t),e instanceof y.DataManager?e.executeQuery(new y.Query).then(function(t){i=t.result.length}):i=e.length,0===i)&&this.popupDiv.appendChild(this.gridEle)},R.prototype.focusIn=function(t){this.disabled||this.readonly||(g.addClass([this.inputWrapper],[h]),this.inputEle.focus(),this.updateClearIconState(),this.trigger("focus",t),"Never"!==this.floatLabelType&&p.Input.calculateWidth(this.inputEle,this.inputWrapper))},R.prototype.focusOut=function(t){this.disabled||this.readonly||(this.isPopupOpen&&this.hidePopup(t),this.inputWrapper&&(g.removeClass([this.inputWrapper],[h]),(t=this.inputWrapper.querySelector(".e-clear-icon"))&&(t.style.display="none"),"Never"!==this.floatLabelType)&&p.Input.calculateWidth(this.inputEle,this.inputWrapper))},R.prototype.showPopup=function(t,n){var s=this,t={popup:this.popupObj,event:t,cancel:!1,animation:{name:"FadeIn",duration:100}};this.trigger("open",t,function(t){var e,i;t.cancel||s.isPopupOpen||(s.isPopupOpen=!0,s.popupObj.refreshPosition(),g.addClass([s.inputWrapper],[l]),g.attributes(s.inputEle,{"aria-expanded":"true","aria-owns":s.element.id+"_options","aria-controls":s.element.id}),n||(s.value||s.text||s.index)&&s.gridObj.selectRow(s.selectedRowIndex),(i=s.gridObj.getContent())&&(e=i.querySelector(".e-rowcell.e-active"),i=i.querySelector(".e-row"),e?s.inputEle.setAttribute("aria-activedescendant",e.parentElement.getAttribute("data-uid")):i&&s.inputEle.setAttribute("aria-activedescendant",i.getAttribute("data-uid"))),s.popupObj.show(new g.Animation(t.animation),s.popupEle.firstElementChild))})},R.prototype.hidePopup=function(e){var i=this,t={popup:this.popupObj,event:e||null,cancel:!1,animation:{name:"FadeOut",duration:100}},n=e?e.target:null;this.trigger("close",t,function(t){t.cancel||(i.isPopupOpen=!1,g.removeClass([i.inputWrapper],[l]),g.attributes(i.inputEle,{"aria-expanded":"false"}),i.popupObj.hide(new g.Animation(t.animation)),n&&(n.classList.contains("e-multicolumn-list-icon")||n.classList.contains("e-rowcell"))?(i.value||i.gridObj.refreshColumns(),setTimeout(function(){i.focusIn(e)})):i.focusOut(),i.inputEle.removeAttribute("aria-owns"),i.inputEle.removeAttribute("aria-activedescendant"),i.customFilterQuery=null)}),setTimeout(function(){var t;i.gridObj&&(i.gridObj.dataSource=i.allowFiltering?i.mainData:i.gridData,(t=i.popupDiv.querySelector(".e-no-records"))&&(i.popupDiv.removeChild(t),g.removeClass([i.popupDiv],[u])),i.updateGridHeight(!0,!1))},100)},R.prototype.addItems=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.gridObj.editSettings.allowAdding=!0,this.gridObj.dataBind(),this.isProtectedOnChange=i,this.gridObj.addRecord(t,e)},R.prototype.getItems=function(){return this.gridObj.getDataRows()},R.prototype.getDataByValue=function(e){var i=this;return!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array?this.dataSource.filter(function(t){return i.updateFieldValue(i.fields.value,t)===e})[0]:!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?(!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData).filter(function(t){return i.updateFieldValue(i.fields.value,t)===e})[0]:null},R.prototype.destroy=function(){if(this.unWireEvents(),this.gridObj&&(this.gridObj.destroy(),g.detach(this.gridObj.element)),this.inputEle){for(var t=["placeholder","aria-expanded","spellcheck","aria-label","role","type","aria-owns","aria-controls","aria-readonly","autocomplete","autocapitalize","spellcheck","aria-activedescendant"],e=0;e<t.length;e++)this.inputEle.removeAttribute(t[e]);this.inputEle.classList.remove("e-input"),p.Input.setValue("",this.inputEle,this.floatLabelType,this.showClearButton)}this.popupEle&&(this.popupEle.removeAttribute("aria-label"),this.popupEle.removeAttribute("role")),this.popupObj&&(this.popupObj.destroy(),g.detach(this.popupObj.element)),this.element.tagName!==this.getDirective()&&this.inputWrapper.parentElement.insertBefore(this.element,this.inputWrapper),this.inputObj&&(g.detach(this.inputObj.container),this.inputObj=null),p.Input.destroy({element:this.inputEle,floatLabelType:this.floatLabelType,properties:this.properties}),g.detach(this.inputWrapper),g.detach(this.popupDiv),this.inputEle=null,this.previousItemElement=null,this.inputWrapper.innerHTML="",this.inputWrapper=null,this.popupDiv=null,this.popupObj=null,this.gridObj=null,this.gridEle=null,this.popupEle=null,this.footer=null,this.noRecord=null,this.hiddenElement=null,this.dropdownElement=null,P.prototype.destroy.call(this)},R.prototype.onPropertyChanged=function(t,e){for(var i=0,n=Object.keys(t);i<n.length;i++){var s,o=n[i];switch(o){case"width":case"popupWidth":"width"===o&&this.setElementWidth(t.width),this.popupObj&&(this.popupObj.element.style.width=this.getSize(!0));break;case"popupHeight":this.popupObj&&(s=this.getSize(!1),this.popupObj.element.style.maxHeight=s,this.popupDiv.style.maxHeight=s,this.gridObj.height=s);break;case"placeholder":p.Input.setPlaceholder(t.placeholder,this.inputEle);break;case"readonly":p.Input.setReadonly(this.readonly,this.inputEle);break;case"disabled":p.Input.setEnabled(!this.disabled,this.inputEle),this.setEnable();break;case"cssClass":this.setCssClass(t.cssClass,e.cssClass);break;case"floatLabelType":p.Input.removeFloating(this.inputObj),p.Input.addFloating(this.inputEle,this.floatLabelType,this.placeholder);break;case"showClearButton":p.Input.setClearButton(t.showClearButton,this.inputEle,this.inputObj);break;case"value":this.initValue(!0,!0);break;case"text":this.initValue(!0,!1);break;case"index":this.initValue(!0);break;case"sortOrder":this.gridObj&&(this.gridObj.sortSettings.columns=[{field:this.fields.text,direction:t.sortOrder===r.SortOrder.Ascending?r.SortOrder.Ascending:r.SortOrder.Descending}]);break;case"htmlAttributes":this.setHTMLAttributes();break;case"noRecordsTemplate":this.l10nUpdate();break;case"actionFailureTemplate":this.l10nUpdate(!0);break;case"footerTemplate":this.setFooterTemplate();break;case"itemTemplate":this.gridObj&&(this.gridObj.rowTemplate=t.itemTemplate);break;case"groupTemplate":this.groupTemplate=t.groupTemplate,this.updateGroupByField();break;case"enableRtl":this.gridObj&&this.popupObj&&(this.gridObj.enableRtl=t.enableRtl,p.Input.setEnableRtl(t.enableRtl,[this.inputWrapper]),this.popupObj.enableRtl=t.enableRtl);break;case"dataSource":this.updateDynamicDataSource(t.dataSource,e.dataSource);break;case"query":this.isMainDataUpdated=!1,this.setGridData(this.dataSource);break;case"gridSettings":this.gridObj&&(this.gridObj.gridLines=t.gridSettings.gridLines,this.gridObj.rowHeight=t.gridSettings.rowHeight,this.gridObj.enableAltRow=t.gridSettings.enableAltRow,this.gridObj.allowResizing=t.gridSettings.allowResizing,g.isNullOrUndefined(t.gridSettings.allowTextWrap)||(this.gridObj.allowTextWrap=t.gridSettings.allowTextWrap),g.isNullOrUndefined(t.gridSettings.textWrapMode)||(this.gridObj.textWrapSettings.wrapMode=t.gridSettings.textWrapMode));break;case"fields":this.fields=t.fields,this.updateGroupByField();break;case"filterType":this.filterType=t.filterType;break;case"enableVirtualization":this.gridObj&&(this.enableVirtualization=this.gridObj.enableVirtualization=t.enableVirtualization);break;case"sortType":this.gridObj&&(this.sortType=t.sortType,this.gridObj.allowMultiSorting="multiplecolumns"===this.sortType.toString().toLowerCase()&&this.allowSorting);break;case"allowFiltering":this.allowFiltering=t.allowFiltering;break;case"allowSorting":this.gridObj&&(this.allowSorting=this.gridObj.allowSorting=t.allowSorting);break;case"columns":this.gridObj&&(s=this.getGridColumns(),this.gridObj.columns=s);break;case"locale":this.isLocaleChanged=!0}}},e([g.Property([])],R.prototype,"dataSource",void 0),e([g.Property(null)],R.prototype,"text",void 0),e([g.Property(null)],R.prototype,"value",void 0),e([g.Property(null)],R.prototype,"index",void 0),e([g.Property("100%")],R.prototype,"width",void 0),e([g.Property("300px")],R.prototype,"popupHeight",void 0),e([g.Property("100%")],R.prototype,"popupWidth",void 0),e([g.Property(null)],R.prototype,"placeholder",void 0),e([g.Property(!0)],R.prototype,"allowFiltering",void 0),e([g.Property(!0)],R.prototype,"allowSorting",void 0),e([g.Property(!1)],R.prototype,"showClearButton",void 0),e([g.Property("")],R.prototype,"cssClass",void 0),e([g.Complex({text:null,value:null,groupBy:null},w)],R.prototype,"fields",void 0),e([g.Collection([],E)],R.prototype,"columns",void 0),e([g.Complex({},D)],R.prototype,"gridSettings",void 0),e([g.Property(r.FilterType.StartsWith)],R.prototype,"filterType",void 0),e([g.Property("Never")],R.prototype,"floatLabelType",void 0),e([g.Property(r.SortOrder.None)],R.prototype,"sortOrder",void 0),e([g.Property(r.SortType.OneColumn)],R.prototype,"sortType",void 0),e([g.Property(!1)],R.prototype,"enableVirtualization",void 0),e([g.Property(!1)],R.prototype,"disabled",void 0),e([g.Property(!1)],R.prototype,"readonly",void 0),e([g.Property(!1)],R.prototype,"enablePersistence",void 0),e([g.Property()],R.prototype,"query",void 0),e([g.Property(null)],R.prototype,"itemTemplate",void 0),e([g.Property(null)],R.prototype,"footerTemplate",void 0),e([g.Property(null)],R.prototype,"groupTemplate",void 0),e([g.Property("Request Failed")],R.prototype,"actionFailureTemplate",void 0),e([g.Property("No records found")],R.prototype,"noRecordsTemplate",void 0),e([g.Property({})],R.prototype,"htmlAttributes",void 0),e([g.Event()],R.prototype,"created",void 0),e([g.Event()],R.prototype,"open",void 0),e([g.Event()],R.prototype,"close",void 0),e([g.Event()],R.prototype,"actionFailure",void 0),e([g.Event()],R.prototype,"actionBegin",void 0),e([g.Event()],R.prototype,"actionComplete",void 0),e([g.Event()],R.prototype,"filtering",void 0),e([g.Event()],R.prototype,"select",void 0),e([g.Event()],R.prototype,"change",void 0);var P,t=e([g.NotifyPropertyChanges],R);function R(t,e){t=P.call(this,t,e)||this;return t.gridInject=new m,t.isShowSpinner=!0,t.gridInject.InjectModules(),t}r.Column=E,r.FieldSettings=w,r.GridSettings=D,r.MultiColumnComboBox=t,r.MultiColumnGrid=m,Object.defineProperty(r,"__esModule",{value:!0})});
2
11
  //# sourceMappingURL=ej2-multicolumn-combobox.umd.min.js.map