@syncfusion/ej2-multicolumn-combobox 33.2.3 → 34.1.30

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 (290) hide show
  1. package/dist/ej2-multicolumn-combobox.umd.min.js +2 -2
  2. package/dist/ej2-multicolumn-combobox.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-multicolumn-combobox.es2015.js +7 -1
  4. package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
  5. package/dist/es6/ej2-multicolumn-combobox.es5.js +7 -1
  6. package/dist/es6/ej2-multicolumn-combobox.es5.js.map +1 -1
  7. package/dist/global/ej2-multicolumn-combobox.min.js +2 -2
  8. package/dist/global/ej2-multicolumn-combobox.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/package.json +3 -3
  11. package/src/multicolumn-combobox/multi-column-combo-box.js +7 -1
  12. package/styles/bds-lite.css +0 -259
  13. package/styles/bds-lite.scss +1 -8
  14. package/styles/bds.css +0 -263
  15. package/styles/bds.scss +2 -9
  16. package/styles/bootstrap-dark-lite.css +0 -109
  17. package/styles/bootstrap-dark-lite.scss +1 -8
  18. package/styles/bootstrap-dark.css +0 -109
  19. package/styles/bootstrap-dark.scss +2 -9
  20. package/styles/bootstrap-lite.css +0 -109
  21. package/styles/bootstrap-lite.scss +1 -8
  22. package/styles/bootstrap.css +0 -109
  23. package/styles/bootstrap.scss +2 -9
  24. package/styles/bootstrap4-lite.css +0 -159
  25. package/styles/bootstrap4-lite.scss +1 -8
  26. package/styles/bootstrap4.css +0 -159
  27. package/styles/bootstrap4.scss +2 -9
  28. package/styles/bootstrap5-dark-lite.css +0 -159
  29. package/styles/bootstrap5-dark-lite.scss +1 -8
  30. package/styles/bootstrap5-dark.css +0 -159
  31. package/styles/bootstrap5-dark.scss +2 -9
  32. package/styles/bootstrap5-lite.css +0 -159
  33. package/styles/bootstrap5-lite.scss +1 -9
  34. package/styles/bootstrap5.3-lite.css +0 -327
  35. package/styles/bootstrap5.3-lite.scss +1 -9
  36. package/styles/bootstrap5.3.css +0 -411
  37. package/styles/bootstrap5.3.scss +2 -10
  38. package/styles/bootstrap5.css +0 -159
  39. package/styles/bootstrap5.scss +2 -10
  40. package/styles/fabric-dark-lite.css +0 -85
  41. package/styles/fabric-dark-lite.scss +1 -9
  42. package/styles/fabric-dark.css +0 -85
  43. package/styles/fabric-dark.scss +2 -10
  44. package/styles/fabric-lite.css +0 -85
  45. package/styles/fabric-lite.scss +1 -9
  46. package/styles/fabric.css +0 -85
  47. package/styles/fabric.scss +2 -10
  48. package/styles/fluent-dark-lite.css +0 -152
  49. package/styles/fluent-dark-lite.scss +1 -9
  50. package/styles/fluent-dark.css +0 -152
  51. package/styles/fluent-dark.scss +2 -10
  52. package/styles/fluent-lite.css +0 -152
  53. package/styles/fluent-lite.scss +1 -9
  54. package/styles/fluent.css +0 -152
  55. package/styles/fluent.scss +2 -10
  56. package/styles/fluent2-lite.css +0 -357
  57. package/styles/fluent2-lite.scss +1 -9
  58. package/styles/fluent2.css +0 -443
  59. package/styles/fluent2.scss +2 -10
  60. package/styles/highcontrast-light-lite.css +0 -106
  61. package/styles/highcontrast-light-lite.scss +1 -9
  62. package/styles/highcontrast-light.css +0 -106
  63. package/styles/highcontrast-light.scss +2 -10
  64. package/styles/highcontrast-lite.css +0 -106
  65. package/styles/highcontrast-lite.scss +1 -9
  66. package/styles/highcontrast.css +0 -106
  67. package/styles/highcontrast.scss +2 -10
  68. package/styles/material-dark-lite.css +0 -134
  69. package/styles/material-dark-lite.scss +1 -9
  70. package/styles/material-dark.css +0 -134
  71. package/styles/material-dark.scss +2 -10
  72. package/styles/material-lite.css +0 -138
  73. package/styles/material-lite.scss +1 -8
  74. package/styles/material.css +0 -138
  75. package/styles/material.scss +2 -9
  76. package/styles/material3-dark-lite.css +0 -367
  77. package/styles/material3-dark-lite.scss +1 -9
  78. package/styles/material3-dark.css +0 -449
  79. package/styles/material3-dark.scss +2 -10
  80. package/styles/material3-lite.css +0 -371
  81. package/styles/material3-lite.scss +1 -9
  82. package/styles/material3.css +0 -455
  83. package/styles/material3.scss +2 -10
  84. package/styles/multicolumn-combobox/_all.scss +2 -2
  85. package/styles/multicolumn-combobox/_bds-definition.scss +2 -2
  86. package/styles/multicolumn-combobox/_bigger.scss +1 -1
  87. package/styles/multicolumn-combobox/_bootstrap-dark-definition.scss +2 -2
  88. package/styles/multicolumn-combobox/_bootstrap-definition.scss +2 -2
  89. package/styles/multicolumn-combobox/_bootstrap4-definition.scss +2 -2
  90. package/styles/multicolumn-combobox/_bootstrap5-dark-definition.scss +2 -2
  91. package/styles/multicolumn-combobox/_bootstrap5-definition.scss +2 -2
  92. package/styles/multicolumn-combobox/_bootstrap5.3-definition.scss +2 -2
  93. package/styles/multicolumn-combobox/_fabric-dark-definition.scss +2 -2
  94. package/styles/multicolumn-combobox/_fabric-definition.scss +2 -2
  95. package/styles/multicolumn-combobox/_fluent-dark-definition.scss +2 -2
  96. package/styles/multicolumn-combobox/_fluent-definition.scss +2 -2
  97. package/styles/multicolumn-combobox/_fluent2-definition.scss +2 -2
  98. package/styles/multicolumn-combobox/_fusionnew-definition.scss +2 -2
  99. package/styles/multicolumn-combobox/_highcontrast-definition.scss +2 -2
  100. package/styles/multicolumn-combobox/_highcontrast-light-definition.scss +2 -2
  101. package/styles/multicolumn-combobox/_layout.scss +1 -1
  102. package/styles/multicolumn-combobox/_material-dark-definition.scss +2 -2
  103. package/styles/multicolumn-combobox/_material-definition.scss +2 -2
  104. package/styles/multicolumn-combobox/_material3-dark-definition.scss +2 -2
  105. package/styles/multicolumn-combobox/_material3-definition.scss +2 -2
  106. package/styles/multicolumn-combobox/_tailwind-dark-definition.scss +2 -2
  107. package/styles/multicolumn-combobox/_tailwind-definition.scss +2 -2
  108. package/styles/multicolumn-combobox/_tailwind3-definition.scss +2 -2
  109. package/styles/multicolumn-combobox/_theme.scss +1 -1
  110. package/styles/multicolumn-combobox/_variables.scss +2 -0
  111. package/styles/multicolumn-combobox/bds.css +0 -263
  112. package/styles/multicolumn-combobox/bds.scss +2 -10
  113. package/styles/multicolumn-combobox/bootstrap-dark.css +0 -109
  114. package/styles/multicolumn-combobox/bootstrap-dark.scss +2 -10
  115. package/styles/multicolumn-combobox/bootstrap.css +0 -109
  116. package/styles/multicolumn-combobox/bootstrap.scss +2 -10
  117. package/styles/multicolumn-combobox/bootstrap4.css +0 -159
  118. package/styles/multicolumn-combobox/bootstrap4.scss +2 -10
  119. package/styles/multicolumn-combobox/bootstrap5-dark.css +0 -159
  120. package/styles/multicolumn-combobox/bootstrap5-dark.scss +2 -10
  121. package/styles/multicolumn-combobox/bootstrap5.3.css +0 -411
  122. package/styles/multicolumn-combobox/bootstrap5.3.scss +2 -10
  123. package/styles/multicolumn-combobox/bootstrap5.css +0 -159
  124. package/styles/multicolumn-combobox/bootstrap5.scss +2 -10
  125. package/styles/multicolumn-combobox/fabric-dark.css +0 -85
  126. package/styles/multicolumn-combobox/fabric-dark.scss +2 -10
  127. package/styles/multicolumn-combobox/fabric.css +0 -85
  128. package/styles/multicolumn-combobox/fabric.scss +2 -10
  129. package/styles/multicolumn-combobox/fluent-dark.css +0 -152
  130. package/styles/multicolumn-combobox/fluent-dark.scss +2 -10
  131. package/styles/multicolumn-combobox/fluent.css +0 -152
  132. package/styles/multicolumn-combobox/fluent.scss +2 -10
  133. package/styles/multicolumn-combobox/fluent2.css +0 -443
  134. package/styles/multicolumn-combobox/fluent2.scss +2 -10
  135. package/styles/multicolumn-combobox/highcontrast-light.css +0 -106
  136. package/styles/multicolumn-combobox/highcontrast-light.scss +2 -10
  137. package/styles/multicolumn-combobox/highcontrast.css +0 -106
  138. package/styles/multicolumn-combobox/highcontrast.scss +2 -10
  139. package/styles/multicolumn-combobox/icons/_bds.scss +1 -1
  140. package/styles/multicolumn-combobox/icons/_bootstrap-dark.scss +1 -1
  141. package/styles/multicolumn-combobox/icons/_bootstrap.scss +1 -1
  142. package/styles/multicolumn-combobox/icons/_bootstrap4.scss +1 -1
  143. package/styles/multicolumn-combobox/icons/_bootstrap5.3.scss +1 -1
  144. package/styles/multicolumn-combobox/icons/_bootstrap5.scss +1 -1
  145. package/styles/multicolumn-combobox/icons/_fabric-dark.scss +1 -1
  146. package/styles/multicolumn-combobox/icons/_fabric.scss +1 -1
  147. package/styles/multicolumn-combobox/icons/_fluent.scss +1 -1
  148. package/styles/multicolumn-combobox/icons/_fluent2.scss +1 -1
  149. package/styles/multicolumn-combobox/icons/_fusionnew.scss +1 -1
  150. package/styles/multicolumn-combobox/icons/_highcontrast-light.scss +1 -1
  151. package/styles/multicolumn-combobox/icons/_highcontrast.scss +1 -1
  152. package/styles/multicolumn-combobox/icons/_material-dark.scss +1 -1
  153. package/styles/multicolumn-combobox/icons/_material.scss +1 -1
  154. package/styles/multicolumn-combobox/icons/_material3.scss +1 -1
  155. package/styles/multicolumn-combobox/icons/_tailwind.scss +1 -1
  156. package/styles/multicolumn-combobox/icons/_tailwind3.scss +1 -1
  157. package/styles/multicolumn-combobox/material-dark.css +0 -134
  158. package/styles/multicolumn-combobox/material-dark.scss +2 -10
  159. package/styles/multicolumn-combobox/material.css +0 -138
  160. package/styles/multicolumn-combobox/material.scss +2 -10
  161. package/styles/multicolumn-combobox/material3-dark.css +0 -449
  162. package/styles/multicolumn-combobox/material3-dark.scss +2 -10
  163. package/styles/multicolumn-combobox/material3.css +0 -455
  164. package/styles/multicolumn-combobox/material3.scss +2 -10
  165. package/styles/multicolumn-combobox/tailwind-dark.css +0 -139
  166. package/styles/multicolumn-combobox/tailwind-dark.scss +2 -10
  167. package/styles/multicolumn-combobox/tailwind.css +0 -139
  168. package/styles/multicolumn-combobox/tailwind.scss +2 -10
  169. package/styles/multicolumn-combobox/tailwind3.css +0 -381
  170. package/styles/multicolumn-combobox/tailwind3.scss +2 -10
  171. package/styles/tailwind-dark-lite.css +0 -139
  172. package/styles/tailwind-dark-lite.scss +1 -9
  173. package/styles/tailwind-dark.css +0 -139
  174. package/styles/tailwind-dark.scss +2 -10
  175. package/styles/tailwind-lite.css +0 -139
  176. package/styles/tailwind-lite.scss +1 -9
  177. package/styles/tailwind.css +0 -139
  178. package/styles/tailwind.scss +2 -10
  179. package/styles/tailwind3-lite.css +0 -307
  180. package/styles/tailwind3-lite.scss +1 -9
  181. package/styles/tailwind3.css +0 -381
  182. package/styles/tailwind3.scss +2 -10
  183. package/.eslintrc.json +0 -263
  184. package/aceconfig.js +0 -17
  185. package/styles/multicolumn-combobox/_all.bds.scss +0 -2
  186. package/styles/multicolumn-combobox/_all.bootstrap-dark.scss +0 -2
  187. package/styles/multicolumn-combobox/_all.bootstrap.scss +0 -2
  188. package/styles/multicolumn-combobox/_all.bootstrap4.scss +0 -2
  189. package/styles/multicolumn-combobox/_all.bootstrap5-dark.scss +0 -2
  190. package/styles/multicolumn-combobox/_all.bootstrap5.3.scss +0 -2
  191. package/styles/multicolumn-combobox/_all.bootstrap5.scss +0 -2
  192. package/styles/multicolumn-combobox/_all.fabric-dark.scss +0 -2
  193. package/styles/multicolumn-combobox/_all.fabric.scss +0 -2
  194. package/styles/multicolumn-combobox/_all.fluent-dark.scss +0 -2
  195. package/styles/multicolumn-combobox/_all.fluent.scss +0 -2
  196. package/styles/multicolumn-combobox/_all.fluent2.scss +0 -2
  197. package/styles/multicolumn-combobox/_all.highcontrast-light.scss +0 -2
  198. package/styles/multicolumn-combobox/_all.highcontrast.scss +0 -2
  199. package/styles/multicolumn-combobox/_all.material-dark.scss +0 -2
  200. package/styles/multicolumn-combobox/_all.material.scss +0 -2
  201. package/styles/multicolumn-combobox/_all.material3-dark.scss +0 -2
  202. package/styles/multicolumn-combobox/_all.material3.scss +0 -2
  203. package/styles/multicolumn-combobox/_all.tailwind-dark.scss +0 -2
  204. package/styles/multicolumn-combobox/_all.tailwind.scss +0 -2
  205. package/styles/multicolumn-combobox/_all.tailwind3.scss +0 -2
  206. package/styles/multicolumn-combobox/_bigger.bds.scss +0 -3
  207. package/styles/multicolumn-combobox/_bigger.bootstrap-dark.scss +0 -3
  208. package/styles/multicolumn-combobox/_bigger.bootstrap.scss +0 -3
  209. package/styles/multicolumn-combobox/_bigger.bootstrap4.scss +0 -3
  210. package/styles/multicolumn-combobox/_bigger.bootstrap5-dark.scss +0 -3
  211. package/styles/multicolumn-combobox/_bigger.bootstrap5.3.scss +0 -3
  212. package/styles/multicolumn-combobox/_bigger.bootstrap5.scss +0 -3
  213. package/styles/multicolumn-combobox/_bigger.fabric-dark.scss +0 -3
  214. package/styles/multicolumn-combobox/_bigger.fabric.scss +0 -3
  215. package/styles/multicolumn-combobox/_bigger.fluent-dark.scss +0 -3
  216. package/styles/multicolumn-combobox/_bigger.fluent.scss +0 -3
  217. package/styles/multicolumn-combobox/_bigger.fluent2.scss +0 -3
  218. package/styles/multicolumn-combobox/_bigger.highcontrast-light.scss +0 -3
  219. package/styles/multicolumn-combobox/_bigger.highcontrast.scss +0 -3
  220. package/styles/multicolumn-combobox/_bigger.material-dark.scss +0 -3
  221. package/styles/multicolumn-combobox/_bigger.material.scss +0 -3
  222. package/styles/multicolumn-combobox/_bigger.material3-dark.scss +0 -3
  223. package/styles/multicolumn-combobox/_bigger.material3.scss +0 -3
  224. package/styles/multicolumn-combobox/_bigger.tailwind-dark.scss +0 -3
  225. package/styles/multicolumn-combobox/_bigger.tailwind.scss +0 -3
  226. package/styles/multicolumn-combobox/_bigger.tailwind3.scss +0 -3
  227. package/styles/multicolumn-combobox/_layout.bds.scss +0 -3
  228. package/styles/multicolumn-combobox/_layout.bootstrap-dark.scss +0 -3
  229. package/styles/multicolumn-combobox/_layout.bootstrap.scss +0 -3
  230. package/styles/multicolumn-combobox/_layout.bootstrap4.scss +0 -3
  231. package/styles/multicolumn-combobox/_layout.bootstrap5-dark.scss +0 -3
  232. package/styles/multicolumn-combobox/_layout.bootstrap5.3.scss +0 -3
  233. package/styles/multicolumn-combobox/_layout.bootstrap5.scss +0 -3
  234. package/styles/multicolumn-combobox/_layout.fabric-dark.scss +0 -3
  235. package/styles/multicolumn-combobox/_layout.fabric.scss +0 -3
  236. package/styles/multicolumn-combobox/_layout.fluent-dark.scss +0 -3
  237. package/styles/multicolumn-combobox/_layout.fluent.scss +0 -3
  238. package/styles/multicolumn-combobox/_layout.fluent2.scss +0 -3
  239. package/styles/multicolumn-combobox/_layout.highcontrast-light.scss +0 -3
  240. package/styles/multicolumn-combobox/_layout.highcontrast.scss +0 -3
  241. package/styles/multicolumn-combobox/_layout.material-dark.scss +0 -3
  242. package/styles/multicolumn-combobox/_layout.material.scss +0 -3
  243. package/styles/multicolumn-combobox/_layout.material3-dark.scss +0 -3
  244. package/styles/multicolumn-combobox/_layout.material3.scss +0 -3
  245. package/styles/multicolumn-combobox/_layout.tailwind-dark.scss +0 -3
  246. package/styles/multicolumn-combobox/_layout.tailwind.scss +0 -3
  247. package/styles/multicolumn-combobox/_layout.tailwind3.scss +0 -3
  248. package/styles/multicolumn-combobox/_theme-variables.bds.scss +0 -1
  249. package/styles/multicolumn-combobox/_theme-variables.bootstrap-dark.scss +0 -1
  250. package/styles/multicolumn-combobox/_theme-variables.bootstrap.scss +0 -1
  251. package/styles/multicolumn-combobox/_theme-variables.bootstrap4.scss +0 -1
  252. package/styles/multicolumn-combobox/_theme-variables.bootstrap5-dark.scss +0 -1
  253. package/styles/multicolumn-combobox/_theme-variables.bootstrap5.3.scss +0 -1
  254. package/styles/multicolumn-combobox/_theme-variables.bootstrap5.scss +0 -1
  255. package/styles/multicolumn-combobox/_theme-variables.fabric-dark.scss +0 -1
  256. package/styles/multicolumn-combobox/_theme-variables.fabric.scss +0 -1
  257. package/styles/multicolumn-combobox/_theme-variables.fluent-dark.scss +0 -1
  258. package/styles/multicolumn-combobox/_theme-variables.fluent.scss +0 -1
  259. package/styles/multicolumn-combobox/_theme-variables.fluent2.scss +0 -1
  260. package/styles/multicolumn-combobox/_theme-variables.highcontrast-light.scss +0 -1
  261. package/styles/multicolumn-combobox/_theme-variables.highcontrast.scss +0 -1
  262. package/styles/multicolumn-combobox/_theme-variables.material-dark.scss +0 -1
  263. package/styles/multicolumn-combobox/_theme-variables.material.scss +0 -1
  264. package/styles/multicolumn-combobox/_theme-variables.material3-dark.scss +0 -1
  265. package/styles/multicolumn-combobox/_theme-variables.material3.scss +0 -1
  266. package/styles/multicolumn-combobox/_theme-variables.tailwind-dark.scss +0 -1
  267. package/styles/multicolumn-combobox/_theme-variables.tailwind.scss +0 -1
  268. package/styles/multicolumn-combobox/_theme-variables.tailwind3.scss +0 -1
  269. package/styles/multicolumn-combobox/_theme.bds.scss +0 -4
  270. package/styles/multicolumn-combobox/_theme.bootstrap-dark.scss +0 -4
  271. package/styles/multicolumn-combobox/_theme.bootstrap.scss +0 -4
  272. package/styles/multicolumn-combobox/_theme.bootstrap4.scss +0 -4
  273. package/styles/multicolumn-combobox/_theme.bootstrap5-dark.scss +0 -4
  274. package/styles/multicolumn-combobox/_theme.bootstrap5.3.scss +0 -4
  275. package/styles/multicolumn-combobox/_theme.bootstrap5.scss +0 -4
  276. package/styles/multicolumn-combobox/_theme.fabric-dark.scss +0 -4
  277. package/styles/multicolumn-combobox/_theme.fabric.scss +0 -4
  278. package/styles/multicolumn-combobox/_theme.fluent-dark.scss +0 -4
  279. package/styles/multicolumn-combobox/_theme.fluent.scss +0 -4
  280. package/styles/multicolumn-combobox/_theme.fluent2.scss +0 -4
  281. package/styles/multicolumn-combobox/_theme.highcontrast-light.scss +0 -4
  282. package/styles/multicolumn-combobox/_theme.highcontrast.scss +0 -4
  283. package/styles/multicolumn-combobox/_theme.material-dark.scss +0 -4
  284. package/styles/multicolumn-combobox/_theme.material.scss +0 -4
  285. package/styles/multicolumn-combobox/_theme.material3-dark.scss +0 -4
  286. package/styles/multicolumn-combobox/_theme.material3.scss +0 -4
  287. package/styles/multicolumn-combobox/_theme.tailwind-dark.scss +0 -4
  288. package/styles/multicolumn-combobox/_theme.tailwind.scss +0 -4
  289. package/styles/multicolumn-combobox/_theme.tailwind3.scss +0 -4
  290. package/tslint.json +0 -111
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * filename: ej2-multicolumn-combobox.umd.min.js
3
- * version : 33.2.3
3
+ * version : 34.1.30
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
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,y,f,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",p="e-nodata",u="e-disabled",d="e-input-focus",h="e-multicolumn-list",c="e-multicolumn-grid",m=(v.prototype.InjectModules=function(){n.Grid.Inject(n.VirtualScroll,n.Group,n.Edit,n.Sort,n.Resize)},v);function v(){}(O=r.FilterType||(r.FilterType={})).StartsWith="StartsWith",O.EndsWith="EndsWith",O.Contains="Contains",(O=r.SortOrder||(r.SortOrder={})).None="None",O.Ascending="Ascending",O.Descending="Descending",(O=r.SortType||(r.SortType={})).OneColumn="OneColumn",O.MultipleColumns="MultipleColumns",(O=r.WrapMode||(r.WrapMode={})).Both="Both",O.Content="Content",O.Header="Header";b=g.ChildProperty,t(w,b),e([g.Property()],w.prototype,"text",void 0),e([g.Property()],w.prototype,"value",void 0),e([g.Property()],w.prototype,"groupBy",void 0);var b,O=w;function w(){return null!==b&&b.apply(this,arguments)||this}S=g.ChildProperty,t(E,S),e([g.Property("")],E.prototype,"field",void 0),e([g.Property("")],E.prototype,"header",void 0),e([g.Property("")],E.prototype,"width",void 0),e([g.Property("")],E.prototype,"textAlign",void 0),e([g.Property(null)],E.prototype,"format",void 0),e([g.Property(!1)],E.prototype,"displayAsCheckBox",void 0),e([g.Property(null)],E.prototype,"template",void 0),e([g.Property(null)],E.prototype,"headerTemplate",void 0),e([g.Property(null)],E.prototype,"customAttributes",void 0);var S,C=E;function E(){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(),this.createLiveRegion()},R.prototype.createLiveRegion=function(){this.liveRegion=this.createElement("div",{attrs:{id:this.element.id+"_live","aria-live":"polite","aria-atomic":"true",role:"status"},styles:"\n width: 0;\n height: 0;\n overflow: hidden;\n "}),document.body.appendChild(this.liveRegion),this.liveRegion.textContent=""},R.prototype.announcePosition=function(t,e){this.isPopupOpen&&(this.liveRegion.textContent="Item "+(t+1)+" of "+e)},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 f.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(i,n){var s=this;this.trigger("actionBegin",{cancel:!1,query:n},function(t){var e;t.cancel||(i instanceof f.DataManager?(s.isShowSpinner&&s.showHideSpinner(!0),i.executeQuery(s.getQuery(n)).then(function(t){s.gridData=t.result,s.trigger("actionComplete",t,function(t){s.showHideSpinner(!1),s.isMainDataUpdated||(s.mainData=s.gridData,s.remoteDataLength=s.gridData.length,s.isMainDataUpdated=!0),s.isInitialValueRender&&(s.isInitialValueRender=!1,s.initValue(null,null,!0)),s.popupDiv&&s.updateGridDataSource()})}).catch(function(t){s.trigger("actionFailure",t,null)})):(t=new f.DataManager(i),e=s.getQuery(n).executeLocal(t),s.gridData=e,s.trigger("actionComplete",{result:e},function(t){s.isMainDataUpdated||(s.isCustomFilter&&(g.isNullOrUndefined(s.dataSource)||0===s.dataSource.length)&&s.setProperties({dataSource:e},!0),s.mainData=s.gridData,s.remoteDataLength=s.gridData.length,s.isMainDataUpdated=!0),s.popupDiv&&s.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 f.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 f.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 f.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:c}),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,n=this;"sorting"===t.requestType&&this.updateRowSelection(t),Array.isArray(t.rows)&&this.isDataFiltered&&(e=t.rows,i=0,e.forEach(function(t){t=n.gridObj.getRowElementByUID(t.uid);t&&(i+=t.getBoundingClientRect().height)}),this.popupRowHeight=i||parseFloat(this.popupHeight),this.updateGridHeight(!0,!0)),this.popupObj.refreshPosition(),"refresh"===t.requestType&&setTimeout(function(){n.popupObj&&n.isPopupOpen&&n.popupObj.refreshPosition()},0),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("."+c),n=this.popupDiv.classList.contains(p),n=(e<=0&&i?(this.l10nUpdate(),this.popupDiv.removeChild(this.gridEle),g.addClass([this.popupDiv],[p])):n&&1<=e?(g.removeClass([this.popupDiv],[p]),(i=this.popupDiv.querySelector(".e-no-records"))&&this.popupDiv.removeChild(i)):this.isCustomFilter&&!n&&0<e&&this.popupDiv.appendChild(this.gridEle),this.isInitialRender&&(i=this.popupDiv.querySelector(".e-gridcontent tr"),e=n?this.popupDiv.getBoundingClientRect().height:i?i.getBoundingClientRect().height:0,this.popupRowHeight=e,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 f.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],[p])},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=y.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(h),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?y.Input.setPlaceholder(t[o],e):e.setAttribute(o,t[o])}}},R.prototype.setEnable=function(){y.Input.setEnabled(!this.disabled,this.inputEle),this.disabled?(this.isPopupOpen&&this.hidePopup(),g.addClass([this.inputWrapper],u),this.inputWrapper&&this.inputWrapper.classList.contains(d)&&g.removeClass([this.inputWrapper],[d]),this.setAriaDisabled("true")):(g.removeClass([this.inputWrapper],u),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){var r,a,l,p,u,d,i,t,n,h,c=this;this.isClearing||(r=this.gridObj.getSelectedRecords()[0],a=this.gridObj.getSelectedRows()[0],t=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.value=this.value&&this.value.toString(),this.isProtectedOnChange=t,s&&e&&g.isNullOrUndefined(this.value)?(this.isClearing=!0,t=this.isProtectedOnChange,this.isProtectedOnChange=!0,y.Input.setValue("",this.inputEle,this.floatLabelType,this.showClearButton),this.setHiddenValue(),this.gridObj.clearSelection(),this.text=null,this.index=null,this.isProtectedOnChange=t,this.isClearing=!1):(d=function(t){t=c.updateCurrentValues(h,t);l=t.currentValue,p=t.currentText,u=t.currentIndex},!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 f.DataManager&&this.mainData&&this.isMainDataUpdated?0<(t=(n=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData).filter(function(t){return(t?c.updateFieldValue(s?e?c.fields.value:c.fields.text:g.isNullOrUndefined(c.value)?c.fields.text:c.fields.value,t):null)===i})).length&&(h=t[0],d(n),this.updateChangeEvent(h,r,a,l,p,u,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(h=this.dataSource.filter(function(t){return c.updateFieldValue(s?e?c.fields.value:c.fields.text:g.isNullOrUndefined(c.value)?c.fields.text:c.fields.value,t)===i})[0],d(this.dataSource))):g.isNullOrUndefined(this.index)||(!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof f.DataManager&&this.mainData&&this.isMainDataUpdated?(h=(n=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData)[this.index],d(n),this.updateChangeEvent(h,r,a,l,p,u,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(this.fields.groupBy?setTimeout(function(){var t=c.gridObj.getRows();if(t&&0<t.length)for(var e=c.gridObj.getRowInfo(t[c.index]).rowData,i=c.fields.value,n=0;n<t.length;n++)if(e&&e[parseInt(i.toString(),10)]===c.dataSource[parseInt(n.toString(),10)][parseInt(i.toString(),10)]){h=e,d(c.dataSource),c.updateChangeEvent(h,r,a,l,p,u,s,o),c.gridObj.selectRow(c.index);break}}):(h=this.dataSource[this.index],d(this.dataSource)))),this.dataSource instanceof f.DataManager||this.updateChangeEvent(h,r,a,l,p,u,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),y.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:h+" 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),y.Input.setValue(o?r:"",n.inputEle,n.floatLabelType,n.showClearButton),n.setHiddenValue(),i&&!t||n.hidePopup(e)),n.gridObj&&n.announcePosition(n.gridObj.selectedRowIndex,n.gridObj.getRows().length)})},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 s,o=this;this.showPopup(null,!0),this.updateClearIconState(),this.allowFiltering&&(this.typedString=t.target.value.toLowerCase(),s={preventDefaultAction:!1,text:this.typedString,updateData:function(t,e,i){var n;s.cancel||(o.isCustomFilter=!0,o.customFilterQuery=e&&e.clone(),o.isMainDataUpdated=!1,e?o.setGridData(t,e):(n=o.filterDatas(t,o.typedString).data,o.setGridData(""!==o.typedString?n:t,e)))},event:t,cancel:!1},this.trigger("filtering",s,function(t){t.cancel||t.preventDefaultAction||o.isCustomFilter||o.setGridData(o.dataSource,o.query?o.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 f.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],[p]),(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],[p]))},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 f.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 f.DataManager?e.executeQuery(new f.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],[d]),this.inputEle.focus(),this.updateClearIconState(),this.trigger("focus",t),"Never"!==this.floatLabelType&&y.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],[d]),(t=this.inputWrapper.querySelector(".e-clear-icon"))&&(t.style.display="none"),"Never"!==this.floatLabelType)&&y.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),s.liveRegion.textContent="",setTimeout(function(){s.gridObj&&s.announcePosition(s.gridObj.selectedRowIndex,s.gridObj.getRows().length)},300))})},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],[p])),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 f.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"),y.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),y.Input.destroy({element:this.inputEle,floatLabelType:this.floatLabelType,properties:this.properties}),g.detach(this.inputWrapper),g.detach(this.popupDiv),this.liveRegion&&(g.detach(this.liveRegion),this.liveRegion=null),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":y.Input.setPlaceholder(t.placeholder,this.inputEle);break;case"readonly":y.Input.setReadonly(this.readonly,this.inputEle);break;case"disabled":y.Input.setEnabled(!this.disabled,this.inputEle),this.setEnable();break;case"cssClass":this.setCssClass(t.cssClass,e.cssClass);break;case"floatLabelType":y.Input.removeFloating(this.inputObj),y.Input.addFloating(this.inputEle,this.floatLabelType,this.placeholder);break;case"showClearButton":y.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,y.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},O)],R.prototype,"fields",void 0),e([g.Collection([],C)],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.isClearing=!1,t.gridInject.InjectModules(),t}r.Column=C,r.FieldSettings=O,r.GridSettings=D,r.MultiColumnComboBox=t,r.MultiColumnGrid=m,Object.defineProperty(r,"__esModule",{value:!0})});
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,f,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",p="e-nodata",u="e-disabled",d="e-input-focus",h="e-multicolumn-list",c="e-multicolumn-grid",m=(v.prototype.InjectModules=function(){n.Grid.Inject(n.VirtualScroll,n.Group,n.Edit,n.Sort,n.Resize)},v);function v(){}(O=r.FilterType||(r.FilterType={})).StartsWith="StartsWith",O.EndsWith="EndsWith",O.Contains="Contains",(O=r.SortOrder||(r.SortOrder={})).None="None",O.Ascending="Ascending",O.Descending="Descending",(O=r.SortType||(r.SortType={})).OneColumn="OneColumn",O.MultipleColumns="MultipleColumns",(O=r.WrapMode||(r.WrapMode={})).Both="Both",O.Content="Content",O.Header="Header";b=g.ChildProperty,t(w,b),e([g.Property()],w.prototype,"text",void 0),e([g.Property()],w.prototype,"value",void 0),e([g.Property()],w.prototype,"groupBy",void 0);var b,O=w;function w(){return null!==b&&b.apply(this,arguments)||this}S=g.ChildProperty,t(E,S),e([g.Property("")],E.prototype,"field",void 0),e([g.Property("")],E.prototype,"header",void 0),e([g.Property("")],E.prototype,"width",void 0),e([g.Property("")],E.prototype,"textAlign",void 0),e([g.Property(null)],E.prototype,"format",void 0),e([g.Property(!1)],E.prototype,"displayAsCheckBox",void 0),e([g.Property(null)],E.prototype,"template",void 0),e([g.Property(null)],E.prototype,"headerTemplate",void 0),e([g.Property(null)],E.prototype,"customAttributes",void 0);var S,C=E;function E(){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(),this.createLiveRegion()},R.prototype.createLiveRegion=function(){this.liveRegion=this.createElement("div",{attrs:{id:this.element.id+"_live","aria-live":"polite","aria-atomic":"true",role:"status"},styles:"\n width: 0;\n height: 0;\n overflow: hidden;\n "}),document.body.appendChild(this.liveRegion),this.liveRegion.textContent=""},R.prototype.announcePosition=function(t,e){this.isPopupOpen&&(this.liveRegion.textContent="Item "+(t+1)+" of "+e)},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(i,n){var s=this;this.trigger("actionBegin",{cancel:!1,query:n},function(t){var e;t.cancel||(i instanceof y.DataManager?(s.isShowSpinner&&s.showHideSpinner(!0),i.executeQuery(s.getQuery(n)).then(function(t){s.gridData=t.result,s.trigger("actionComplete",t,function(t){s.showHideSpinner(!1),s.isMainDataUpdated||(s.mainData=s.gridData,s.remoteDataLength=s.gridData.length,s.isMainDataUpdated=!0),s.isInitialValueRender&&(s.isInitialValueRender=!1,s.initValue(null,null,!0)),s.popupDiv&&s.updateGridDataSource()})}).catch(function(t){s.trigger("actionFailure",t,null)})):(t=new y.DataManager(i),e=s.getQuery(n).executeLocal(t),s.gridData=e,s.trigger("actionComplete",{result:e},function(t){s.isMainDataUpdated||(s.isCustomFilter&&(g.isNullOrUndefined(s.dataSource)||0===s.dataSource.length)&&s.setProperties({dataSource:e},!0),s.mainData=s.gridData,s.remoteDataLength=s.gridData.length,s.isMainDataUpdated=!0),s.popupDiv&&s.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:c}),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,n=this;"sorting"===t.requestType&&this.updateRowSelection(t),Array.isArray(t.rows)&&this.isDataFiltered&&(e=t.rows,i=0,e.forEach(function(t){t=n.gridObj.getRowElementByUID(t.uid);t&&(i+=t.getBoundingClientRect().height)}),this.popupRowHeight=i||parseFloat(this.popupHeight),this.updateGridHeight(!0,!0)),this.popupObj.refreshPosition(),"refresh"===t.requestType&&setTimeout(function(){n.popupObj&&n.isPopupOpen&&n.popupObj.refreshPosition()},0),this.gridObj.element.querySelector(".e-content").scrollTop=0},R.prototype.handleKeyPressed=function(t){"Enter"===t.key&&(t.cancel=!0,g.isNullOrUndefined(this.element.closest("form"))||t.preventDefault(),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("."+c),n=this.popupDiv.classList.contains(p),n=(e<=0&&i?(this.l10nUpdate(),this.popupDiv.removeChild(this.gridEle),g.addClass([this.popupDiv],[p])):n&&1<=e?(g.removeClass([this.popupDiv],[p]),(i=this.popupDiv.querySelector(".e-no-records"))&&this.popupDiv.removeChild(i)):this.isCustomFilter&&!n&&0<e&&this.popupDiv.appendChild(this.gridEle),this.isInitialRender&&(i=this.popupDiv.querySelector(".e-gridcontent tr"),e=n?this.popupDiv.getBoundingClientRect().height:i?i.getBoundingClientRect().height:0,this.popupRowHeight=e,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],[p])},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=f.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(h),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?f.Input.setPlaceholder(t[o],e):e.setAttribute(o,t[o])}}},R.prototype.setEnable=function(){f.Input.setEnabled(!this.disabled,this.inputEle),this.disabled?(this.isPopupOpen&&this.hidePopup(),g.addClass([this.inputWrapper],u),this.inputWrapper&&this.inputWrapper.classList.contains(d)&&g.removeClass([this.inputWrapper],[d]),this.setAriaDisabled("true")):(g.removeClass([this.inputWrapper],u),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){var r,a,l,p,u,d,i,t,n,h,c=this;this.isClearing||(r=this.gridObj.getSelectedRecords()[0],a=this.gridObj.getSelectedRows()[0],t=this.isProtectedOnChange,this.isProtectedOnChange=!0,this.value=this.value&&this.value.toString(),this.isProtectedOnChange=t,s&&e&&g.isNullOrUndefined(this.value)?(this.isClearing=!0,t=this.isProtectedOnChange,this.isProtectedOnChange=!0,f.Input.setValue("",this.inputEle,this.floatLabelType,this.showClearButton),this.setHiddenValue(),this.gridObj.clearSelection(),this.text=null,this.index=null,this.isProtectedOnChange=t,this.isClearing=!1):(d=function(t){t=c.updateCurrentValues(h,t);l=t.currentValue,p=t.currentText,u=t.currentIndex},!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<(t=(n=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData).filter(function(t){return(t?c.updateFieldValue(s?e?c.fields.value:c.fields.text:g.isNullOrUndefined(c.value)?c.fields.text:c.fields.value,t):null)===i})).length&&(h=t[0],d(n),this.updateChangeEvent(h,r,a,l,p,u,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(h=this.dataSource.filter(function(t){return c.updateFieldValue(s?e?c.fields.value:c.fields.text:g.isNullOrUndefined(c.value)?c.fields.text:c.fields.value,t)===i})[0],d(this.dataSource))):g.isNullOrUndefined(this.index)||(!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof y.DataManager&&this.mainData&&this.isMainDataUpdated?(h=(n=!(this.query&&this.getQuery(this.query).isCountRequired||!this.query)&&this.mainData.result||this.mainData)[this.index],d(n),this.updateChangeEvent(h,r,a,l,p,u,s,o),this.gridObj.selectRow(this.index)):!g.isNullOrUndefined(this.dataSource)&&this.dataSource instanceof Array&&(this.fields.groupBy?setTimeout(function(){var t=c.gridObj.getRows();if(t&&0<t.length)for(var e=c.gridObj.getRowInfo(t[c.index]).rowData,i=c.fields.value,n=0;n<t.length;n++)if(e&&e[parseInt(i.toString(),10)]===c.dataSource[parseInt(n.toString(),10)][parseInt(i.toString(),10)]){h=e,d(c.dataSource),c.updateChangeEvent(h,r,a,l,p,u,s,o),c.gridObj.selectRow(c.index);break}}):(h=this.dataSource[this.index],d(this.dataSource)))),this.dataSource instanceof y.DataManager||this.updateChangeEvent(h,r,a,l,p,u,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),f.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:h+" 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),f.Input.setValue(o?r:"",n.inputEle,n.floatLabelType,n.showClearButton),n.setHiddenValue(),i&&!t||n.hidePopup(e)),n.gridObj&&n.announcePosition(n.gridObj.selectedRowIndex,n.gridObj.getRows().length)})},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 s,o=this;this.showPopup(null,!0),this.updateClearIconState(),this.allowFiltering&&(this.typedString=t.target.value.toLowerCase(),s={preventDefaultAction:!1,text:this.typedString,updateData:function(t,e,i){var n;s.cancel||(o.isCustomFilter=!0,o.customFilterQuery=e&&e.clone(),o.isMainDataUpdated=!1,e?o.setGridData(t,e):(n=o.filterDatas(t,o.typedString).data,o.setGridData(""!==o.typedString?n:t,e)))},event:t,cancel:!1},this.trigger("filtering",s,function(t){t.cancel||t.preventDefaultAction||o.isCustomFilter||o.setGridData(o.dataSource,o.query?o.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],[p]),(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],[p]))},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.dataSource instanceof y.DataManager)||this.matchedContent&&this.isPopupOpen||this.inputEle.value)&&this.updateValuesOnInput(null,t,!1,!0),this.hidePopup(t),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],[d]),this.inputEle.focus(),this.updateClearIconState(),this.trigger("focus",t),"Never"!==this.floatLabelType&&f.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],[d]),(t=this.inputWrapper.querySelector(".e-clear-icon"))&&(t.style.display="none"),"Never"!==this.floatLabelType)&&f.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),s.liveRegion.textContent="",setTimeout(function(){s.gridObj&&s.announcePosition(s.gridObj.selectedRowIndex,s.gridObj.getRows().length)},300))})},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],[p])),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"),f.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),f.Input.destroy({element:this.inputEle,floatLabelType:this.floatLabelType,properties:this.properties}),g.detach(this.inputWrapper),g.detach(this.popupDiv),this.liveRegion&&(g.detach(this.liveRegion),this.liveRegion=null),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":f.Input.setPlaceholder(t.placeholder,this.inputEle);break;case"readonly":f.Input.setReadonly(this.readonly,this.inputEle);break;case"disabled":f.Input.setEnabled(!this.disabled,this.inputEle),this.setEnable();break;case"cssClass":this.setCssClass(t.cssClass,e.cssClass);break;case"floatLabelType":f.Input.removeFloating(this.inputObj),f.Input.addFloating(this.inputEle,this.floatLabelType,this.placeholder);break;case"showClearButton":f.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,f.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},O)],R.prototype,"fields",void 0),e([g.Collection([],C)],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.isClearing=!1,t.gridInject.InjectModules(),t}r.Column=C,r.FieldSettings=O,r.GridSettings=D,r.MultiColumnComboBox=t,r.MultiColumnGrid=m,Object.defineProperty(r,"__esModule",{value:!0})});
11
11
  //# sourceMappingURL=ej2-multicolumn-combobox.umd.min.js.map