@anglr/select 12.0.0 → 13.0.0-beta.20250127113535

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 (585) hide show
  1. package/changelog.md +16 -0
  2. package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -0
  3. package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +73 -0
  4. package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
  5. package/{es2020 → es2022}/material/src/directives/dialogPopup/dialogPopup.directive.js +9 -9
  6. package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
  7. package/{es2015 → es2022}/material/src/modules/dialogPopup.module.js +13 -13
  8. package/{es2015 → es2022}/material/src/modules/dialogPopup.module.js.map +1 -1
  9. package/{es2015 → es2022}/material/src/modules/virtualEditPopup.module.js +6 -6
  10. package/{es2015 → es2022}/material/src/modules/virtualEditPopup.module.js.map +1 -1
  11. package/{es2020 → es2022}/material/src/plugins/popup/dialog/dialogPopup.component.js +23 -22
  12. package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
  13. package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +89 -0
  14. package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
  15. package/{es2015 → es2022}/src/components/option/optgroup.component.js +4 -3
  16. package/es2022/src/components/option/optgroup.component.js.map +1 -0
  17. package/{es2020 → es2022}/src/components/option/option.component.js +4 -3
  18. package/es2022/src/components/option/option.component.js.map +1 -0
  19. package/{es2020 → es2022}/src/components/select/select.component.js +60 -59
  20. package/es2022/src/components/select/select.component.js.map +1 -0
  21. package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
  22. package/{es2015 → es2022}/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -1
  23. package/{es2015 → es2022}/src/directives/ngSelectEdit/ngSelectEdit.directive.js +28 -28
  24. package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
  25. package/{es2015 → es2022}/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +9 -9
  26. package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
  27. package/es2022/src/index.ssr.js.map +1 -0
  28. package/es2022/src/misc/extensions/setReadonly.js.map +1 -0
  29. package/{es2020 → es2022}/src/misc/ngSelectControlValueAccessor.directive.js +4 -4
  30. package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
  31. package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
  32. package/{es2020 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.js +12 -12
  33. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
  34. package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
  35. package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.js +3 -3
  36. package/{es2020 → es2022}/src/misc/pluginBus/pluginBus.js.map +1 -1
  37. package/{es2020 → es2022}/src/modules/ngSelect.module.js +39 -39
  38. package/{es2015 → es2022}/src/modules/ngSelect.module.js.map +1 -1
  39. package/es2022/src/modules/ngSelectDynamic.module.js +20 -0
  40. package/{es2015 → es2022}/src/modules/ngSelectDynamic.module.js.map +1 -1
  41. package/{es2020 → es2022}/src/modules/ngSelectEdit.module.js +16 -16
  42. package/es2022/src/modules/ngSelectEdit.module.js.map +1 -0
  43. package/{es2020 → es2022}/src/pipes/ngSelectHasValue.pipe.js +3 -3
  44. package/{es2015 → es2022}/src/pipes/ngSelectHasValue.pipe.js.map +1 -1
  45. package/{es2015 → es2022}/src/pipes/ngSelectValue.pipe.js +3 -3
  46. package/es2022/src/pipes/ngSelectValue.pipe.js.map +1 -0
  47. package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +24 -23
  48. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
  49. package/{es2020 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +24 -23
  50. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
  51. package/{es2020 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.component.js +24 -24
  52. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
  53. package/{es2020 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.component.js +31 -30
  54. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
  55. package/{es2020 → es2022}/src/plugins/liveSearch/no/noLiveSearch.component.js +12 -11
  56. package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
  57. package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
  58. package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
  59. package/es2022/src/plugins/normalState/edit/editNormalState.component.js +88 -0
  60. package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
  61. package/{es2020 → es2022}/src/plugins/normalState/normalStateAbstract.component.js +15 -15
  62. package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
  63. package/es2022/src/plugins/popup/basic/basicPopup.component.js +62 -0
  64. package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
  65. package/es2022/src/plugins/popup/edit/editPopup.component.js +85 -0
  66. package/es2022/src/plugins/popup/edit/editPopup.component.js.map +1 -0
  67. package/{es2020 → es2022}/src/plugins/popup/popupAbstract.component.js +33 -32
  68. package/es2022/src/plugins/popup/popupAbstract.component.js.map +1 -0
  69. package/{es2020 → es2022}/src/plugins/positioner/default/defaultPositioner.component.js +24 -23
  70. package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +1 -0
  71. package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.component.js +17 -16
  72. package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
  73. package/{es2020 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.component.js +18 -16
  74. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
  75. package/{es2020 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +18 -16
  76. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
  77. package/{es2020 → es2022}/src/plugins/valueHandler/valueHandlerBase.js +36 -36
  78. package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
  79. package/extensions/package.json +3 -4
  80. package/material/package.json +3 -4
  81. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
  82. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +1 -1
  83. package/material/src/modules/dialogPopup.module.d.ts +4 -4
  84. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
  85. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
  86. package/package.json +62 -74
  87. package/src/components/option/optgroup.component.d.ts +1 -1
  88. package/src/components/option/optgroup.component.d.ts.map +1 -1
  89. package/src/components/option/option.component.d.ts +1 -1
  90. package/src/components/option/option.component.d.ts.map +1 -1
  91. package/src/components/select/select.component.d.ts +1 -1
  92. package/src/components/select/select.component.d.ts.map +1 -1
  93. package/src/components/select/select.interface.d.ts +2 -2
  94. package/src/components/select/select.interface.d.ts.map +1 -1
  95. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +1 -1
  96. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +1 -1
  97. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +1 -1
  98. package/src/misc/ngSelectControlValueAccessor.directive.d.ts +1 -1
  99. package/src/modules/ngSelect.module.d.ts +16 -16
  100. package/src/modules/ngSelectEdit.module.d.ts +8 -8
  101. package/src/pipes/ngSelectHasValue.pipe.d.ts +1 -1
  102. package/src/pipes/ngSelectValue.pipe.d.ts +1 -1
  103. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +1 -1
  104. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
  105. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
  106. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
  107. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +1 -1
  108. package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +1 -1
  109. package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +1 -1
  110. package/src/plugins/normalState/normalStateAbstract.component.d.ts +1 -1
  111. package/src/plugins/popup/basic/basicPopup.component.d.ts.map +1 -1
  112. package/src/plugins/popup/edit/editPopup.component.d.ts.map +1 -1
  113. package/src/plugins/popup/popupAbstract.component.d.ts +1 -1
  114. package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
  115. package/src/plugins/positioner/default/defaultPositioner.component.d.ts +3 -3
  116. package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +1 -1
  117. package/src/plugins/positioner/no/noPositioner.component.d.ts.map +1 -1
  118. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +1 -1
  119. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +1 -1
  120. package/src/plugins/valueHandler/valueHandlerBase.d.ts +1 -1
  121. package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
  122. package/version.bak +1 -1
  123. package/elements/package.json +0 -9
  124. package/elements/src/components/ngSelectElements.component.d.ts +0 -67
  125. package/elements/src/components/ngSelectElements.component.d.ts.map +0 -1
  126. package/elements/src/components/ngSelectElements.component.html +0 -16
  127. package/elements/src/components/ngSelectElements.interface.d.ts +0 -47
  128. package/elements/src/components/ngSelectElements.interface.d.ts.map +0 -1
  129. package/elements/src/index.d.ts +0 -4
  130. package/elements/src/index.d.ts.map +0 -1
  131. package/elements/src/modules/ngSelectElements.module.d.ts +0 -21
  132. package/elements/src/modules/ngSelectElements.module.d.ts.map +0 -1
  133. package/es2015/elements/src/components/ngSelectElements.component.js +0 -181
  134. package/es2015/elements/src/components/ngSelectElements.component.js.map +0 -1
  135. package/es2015/elements/src/components/ngSelectElements.interface.js +0 -2
  136. package/es2015/elements/src/components/ngSelectElements.interface.js.map +0 -1
  137. package/es2015/elements/src/index.js +0 -4
  138. package/es2015/elements/src/index.js.map +0 -1
  139. package/es2015/elements/src/modules/ngSelectElements.module.js +0 -50
  140. package/es2015/elements/src/modules/ngSelectElements.module.js.map +0 -1
  141. package/es2015/extensions/src/extensions/reinitializeOptions.js.map +0 -1
  142. package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -74
  143. package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +0 -1
  144. package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -75
  145. package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js.map +0 -1
  146. package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -143
  147. package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js.map +0 -1
  148. package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -92
  149. package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +0 -1
  150. package/es2015/src/components/option/optgroup.component.js.map +0 -1
  151. package/es2015/src/components/option/option.component.js +0 -38
  152. package/es2015/src/components/option/option.component.js.map +0 -1
  153. package/es2015/src/components/select/select.component.js +0 -599
  154. package/es2015/src/components/select/select.component.js.map +0 -1
  155. package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
  156. package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
  157. package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
  158. package/es2015/src/index.ssr.js.map +0 -1
  159. package/es2015/src/misc/extensions/setReadonly.js.map +0 -1
  160. package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +0 -163
  161. package/es2015/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
  162. package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js.map +0 -1
  163. package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -123
  164. package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +0 -1
  165. package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -111
  166. package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +0 -1
  167. package/es2015/src/misc/pluginBus/pluginBus.js.map +0 -1
  168. package/es2015/src/modules/ngSelect.module.js +0 -90
  169. package/es2015/src/modules/ngSelectDynamic.module.js +0 -20
  170. package/es2015/src/modules/ngSelectEdit.module.js +0 -51
  171. package/es2015/src/modules/ngSelectEdit.module.js.map +0 -1
  172. package/es2015/src/pipes/ngSelectHasValue.pipe.js +0 -23
  173. package/es2015/src/pipes/ngSelectValue.pipe.js.map +0 -1
  174. package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
  175. package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -196
  176. package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
  177. package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -169
  178. package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
  179. package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -318
  180. package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
  181. package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -64
  182. package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
  183. package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
  184. package/es2015/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
  185. package/es2015/src/plugins/normalState/edit/editNormalState.component.js +0 -89
  186. package/es2015/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
  187. package/es2015/src/plugins/normalState/normalStateAbstract.component.js +0 -93
  188. package/es2015/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
  189. package/es2015/src/plugins/popup/basic/basicPopup.component.js +0 -62
  190. package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
  191. package/es2015/src/plugins/popup/edit/editPopup.component.js +0 -85
  192. package/es2015/src/plugins/popup/edit/editPopup.component.js.map +0 -1
  193. package/es2015/src/plugins/popup/popupAbstract.component.js +0 -203
  194. package/es2015/src/plugins/popup/popupAbstract.component.js.map +0 -1
  195. package/es2015/src/plugins/positioner/default/defaultPositioner.component.js +0 -158
  196. package/es2015/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
  197. package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
  198. package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -157
  199. package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
  200. package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -182
  201. package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
  202. package/es2015/src/plugins/valueHandler/valueHandlerBase.js +0 -150
  203. package/es2015/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
  204. package/es2020/elements/src/components/ngSelectElements.component.js +0 -181
  205. package/es2020/elements/src/components/ngSelectElements.component.js.map +0 -1
  206. package/es2020/elements/src/components/ngSelectElements.interface.js +0 -2
  207. package/es2020/elements/src/components/ngSelectElements.interface.js.map +0 -1
  208. package/es2020/elements/src/index.js +0 -4
  209. package/es2020/elements/src/index.js.map +0 -1
  210. package/es2020/elements/src/modules/ngSelectElements.module.js +0 -50
  211. package/es2020/elements/src/modules/ngSelectElements.module.js.map +0 -1
  212. package/es2020/extensions/src/extensions/getValue.js +0 -2
  213. package/es2020/extensions/src/extensions/getValue.js.map +0 -1
  214. package/es2020/extensions/src/extensions/onFocus.js +0 -2
  215. package/es2020/extensions/src/extensions/onFocus.js.map +0 -1
  216. package/es2020/extensions/src/extensions/patchOptions.js +0 -12
  217. package/es2020/extensions/src/extensions/patchOptions.js.map +0 -1
  218. package/es2020/extensions/src/extensions/reinitializeOptions.js +0 -15
  219. package/es2020/extensions/src/extensions/reinitializeOptions.js.map +0 -1
  220. package/es2020/extensions/src/extensions/setReadonly.js +0 -2
  221. package/es2020/extensions/src/extensions/setReadonly.js.map +0 -1
  222. package/es2020/extensions/src/extensions/setValue.js +0 -2
  223. package/es2020/extensions/src/extensions/setValue.js.map +0 -1
  224. package/es2020/extensions/src/extensions/valueChange.js +0 -2
  225. package/es2020/extensions/src/extensions/valueChange.js.map +0 -1
  226. package/es2020/extensions/src/index.js +0 -8
  227. package/es2020/extensions/src/index.js.map +0 -1
  228. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -73
  229. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +0 -1
  230. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -2
  231. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +0 -1
  232. package/es2020/material/src/components/basicDialogPopup/index.js +0 -2
  233. package/es2020/material/src/components/basicDialogPopup/index.js.map +0 -1
  234. package/es2020/material/src/components/basicDialogPopup/types.js +0 -2
  235. package/es2020/material/src/components/basicDialogPopup/types.js.map +0 -1
  236. package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js.map +0 -1
  237. package/es2020/material/src/directives/types.js +0 -2
  238. package/es2020/material/src/directives/types.js.map +0 -1
  239. package/es2020/material/src/index.js +0 -8
  240. package/es2020/material/src/index.js.map +0 -1
  241. package/es2020/material/src/modules/dialogPopup.module.js +0 -41
  242. package/es2020/material/src/modules/dialogPopup.module.js.map +0 -1
  243. package/es2020/material/src/modules/virtualEditPopup.module.js +0 -31
  244. package/es2020/material/src/modules/virtualEditPopup.module.js.map +0 -1
  245. package/es2020/material/src/plugins/popup/components.js +0 -3
  246. package/es2020/material/src/plugins/popup/components.js.map +0 -1
  247. package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js.map +0 -1
  248. package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -2
  249. package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +0 -1
  250. package/es2020/material/src/plugins/popup/index.js +0 -3
  251. package/es2020/material/src/plugins/popup/index.js.map +0 -1
  252. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -89
  253. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +0 -1
  254. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -2
  255. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +0 -1
  256. package/es2020/src/components/option/index.js +0 -3
  257. package/es2020/src/components/option/index.js.map +0 -1
  258. package/es2020/src/components/option/optgroup.component.js +0 -53
  259. package/es2020/src/components/option/optgroup.component.js.map +0 -1
  260. package/es2020/src/components/option/optgroup.interface.js +0 -2
  261. package/es2020/src/components/option/optgroup.interface.js.map +0 -1
  262. package/es2020/src/components/option/option.component.js.map +0 -1
  263. package/es2020/src/components/option/option.interface.js +0 -2
  264. package/es2020/src/components/option/option.interface.js.map +0 -1
  265. package/es2020/src/components/select/index.js +0 -2
  266. package/es2020/src/components/select/index.js.map +0 -1
  267. package/es2020/src/components/select/select.component.js.map +0 -1
  268. package/es2020/src/components/select/select.interface.js +0 -2
  269. package/es2020/src/components/select/select.interface.js.map +0 -1
  270. package/es2020/src/components/select/types.js +0 -6
  271. package/es2020/src/components/select/types.js.map +0 -1
  272. package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
  273. package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
  274. package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
  275. package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
  276. package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
  277. package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
  278. package/es2020/src/index.js +0 -42
  279. package/es2020/src/index.js.map +0 -1
  280. package/es2020/src/index.ssr.js +0 -10
  281. package/es2020/src/index.ssr.js.map +0 -1
  282. package/es2020/src/misc/extensions/getValue.js +0 -12
  283. package/es2020/src/misc/extensions/getValue.js.map +0 -1
  284. package/es2020/src/misc/extensions/index.js +0 -6
  285. package/es2020/src/misc/extensions/index.js.map +0 -1
  286. package/es2020/src/misc/extensions/onFocus.js +0 -10
  287. package/es2020/src/misc/extensions/onFocus.js.map +0 -1
  288. package/es2020/src/misc/extensions/setReadonly.js +0 -18
  289. package/es2020/src/misc/extensions/setReadonly.js.map +0 -1
  290. package/es2020/src/misc/extensions/setValue.js +0 -13
  291. package/es2020/src/misc/extensions/setValue.js.map +0 -1
  292. package/es2020/src/misc/extensions/valueChange.js +0 -12
  293. package/es2020/src/misc/extensions/valueChange.js.map +0 -1
  294. package/es2020/src/misc/index.js +0 -6
  295. package/es2020/src/misc/index.js.map +0 -1
  296. package/es2020/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
  297. package/es2020/src/misc/ngSelectOptions.interface.js +0 -2
  298. package/es2020/src/misc/ngSelectOptions.interface.js.map +0 -1
  299. package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -83
  300. package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js.map +0 -1
  301. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -2
  302. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +0 -1
  303. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +0 -1
  304. package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +0 -1
  305. package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -2
  306. package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js.map +0 -1
  307. package/es2020/src/misc/optionsGatherer/types.js +0 -4
  308. package/es2020/src/misc/optionsGatherer/types.js.map +0 -1
  309. package/es2020/src/misc/plugin.interface.js +0 -2
  310. package/es2020/src/misc/plugin.interface.js.map +0 -1
  311. package/es2020/src/misc/pluginBus/pluginBus.interface.js +0 -2
  312. package/es2020/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
  313. package/es2020/src/misc/pluginBus/pluginBus.js +0 -44
  314. package/es2020/src/misc/templateGatherer.interface.js +0 -2
  315. package/es2020/src/misc/templateGatherer.interface.js.map +0 -1
  316. package/es2020/src/misc/types.js +0 -34
  317. package/es2020/src/misc/types.js.map +0 -1
  318. package/es2020/src/modules/ngSelect.module.js.map +0 -1
  319. package/es2020/src/modules/ngSelectDynamic.module.js +0 -20
  320. package/es2020/src/modules/ngSelectDynamic.module.js.map +0 -1
  321. package/es2020/src/modules/ngSelectEdit.module.js.map +0 -1
  322. package/es2020/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
  323. package/es2020/src/pipes/ngSelectValue.pipe.js +0 -31
  324. package/es2020/src/pipes/ngSelectValue.pipe.js.map +0 -1
  325. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -145
  326. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
  327. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
  328. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
  329. package/es2020/src/plugins/keyboardHandler/components.js +0 -3
  330. package/es2020/src/plugins/keyboardHandler/components.js.map +0 -1
  331. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
  332. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
  333. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
  334. package/es2020/src/plugins/keyboardHandler/index.js +0 -4
  335. package/es2020/src/plugins/keyboardHandler/index.js.map +0 -1
  336. package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -2
  337. package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
  338. package/es2020/src/plugins/keyboardHandler/types.js +0 -10
  339. package/es2020/src/plugins/keyboardHandler/types.js.map +0 -1
  340. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
  341. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
  342. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
  343. package/es2020/src/plugins/liveSearch/components.js +0 -4
  344. package/es2020/src/plugins/liveSearch/components.js.map +0 -1
  345. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
  346. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
  347. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
  348. package/es2020/src/plugins/liveSearch/index.js +0 -5
  349. package/es2020/src/plugins/liveSearch/index.js.map +0 -1
  350. package/es2020/src/plugins/liveSearch/liveSearch.interface.js +0 -2
  351. package/es2020/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
  352. package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
  353. package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
  354. package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
  355. package/es2020/src/plugins/liveSearch/types.js +0 -10
  356. package/es2020/src/plugins/liveSearch/types.js.map +0 -1
  357. package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
  358. package/es2020/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
  359. package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
  360. package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
  361. package/es2020/src/plugins/normalState/components.js +0 -4
  362. package/es2020/src/plugins/normalState/components.js.map +0 -1
  363. package/es2020/src/plugins/normalState/edit/editNormalState.component.js +0 -88
  364. package/es2020/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
  365. package/es2020/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
  366. package/es2020/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
  367. package/es2020/src/plugins/normalState/index.js +0 -4
  368. package/es2020/src/plugins/normalState/index.js.map +0 -1
  369. package/es2020/src/plugins/normalState/normalState.interface.js +0 -2
  370. package/es2020/src/plugins/normalState/normalState.interface.js.map +0 -1
  371. package/es2020/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
  372. package/es2020/src/plugins/normalState/types.js +0 -10
  373. package/es2020/src/plugins/normalState/types.js.map +0 -1
  374. package/es2020/src/plugins/popup/basic/basicPopup.component.js +0 -62
  375. package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
  376. package/es2020/src/plugins/popup/basic/basicPopup.interface.js +0 -2
  377. package/es2020/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
  378. package/es2020/src/plugins/popup/component.js +0 -4
  379. package/es2020/src/plugins/popup/component.js.map +0 -1
  380. package/es2020/src/plugins/popup/edit/editPopup.component.js +0 -85
  381. package/es2020/src/plugins/popup/edit/editPopup.component.js.map +0 -1
  382. package/es2020/src/plugins/popup/edit/editPopup.interface.js +0 -2
  383. package/es2020/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
  384. package/es2020/src/plugins/popup/index.js +0 -4
  385. package/es2020/src/plugins/popup/index.js.map +0 -1
  386. package/es2020/src/plugins/popup/popup.interface.js +0 -2
  387. package/es2020/src/plugins/popup/popup.interface.js.map +0 -1
  388. package/es2020/src/plugins/popup/popupAbstract.component.js.map +0 -1
  389. package/es2020/src/plugins/popup/types.js +0 -10
  390. package/es2020/src/plugins/popup/types.js.map +0 -1
  391. package/es2020/src/plugins/positioner/components.js +0 -3
  392. package/es2020/src/plugins/positioner/components.js.map +0 -1
  393. package/es2020/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
  394. package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
  395. package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
  396. package/es2020/src/plugins/positioner/index.js +0 -4
  397. package/es2020/src/plugins/positioner/index.js.map +0 -1
  398. package/es2020/src/plugins/positioner/no/noPositioner.component.js +0 -77
  399. package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
  400. package/es2020/src/plugins/positioner/no/noPositioner.interface.js +0 -2
  401. package/es2020/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
  402. package/es2020/src/plugins/positioner/positioner.interface.js +0 -2
  403. package/es2020/src/plugins/positioner/positioner.interface.js.map +0 -1
  404. package/es2020/src/plugins/positioner/types.js +0 -10
  405. package/es2020/src/plugins/positioner/types.js.map +0 -1
  406. package/es2020/src/plugins/readonlyState/index.js +0 -2
  407. package/es2020/src/plugins/readonlyState/index.js.map +0 -1
  408. package/es2020/src/plugins/readonlyState/readonlyState.interface.js +0 -2
  409. package/es2020/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
  410. package/es2020/src/plugins/readonlyState/types.js +0 -10
  411. package/es2020/src/plugins/readonlyState/types.js.map +0 -1
  412. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
  413. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
  414. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
  415. package/es2020/src/plugins/valueHandler/components.js +0 -3
  416. package/es2020/src/plugins/valueHandler/components.js.map +0 -1
  417. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
  418. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
  419. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
  420. package/es2020/src/plugins/valueHandler/index.js +0 -5
  421. package/es2020/src/plugins/valueHandler/index.js.map +0 -1
  422. package/es2020/src/plugins/valueHandler/types.js +0 -10
  423. package/es2020/src/plugins/valueHandler/types.js.map +0 -1
  424. package/es2020/src/plugins/valueHandler/valueHandler.interface.js +0 -2
  425. package/es2020/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
  426. package/es2020/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
  427. /package/{es2015 → es2022}/extensions/src/extensions/getValue.js +0 -0
  428. /package/{es2015 → es2022}/extensions/src/extensions/getValue.js.map +0 -0
  429. /package/{es2015 → es2022}/extensions/src/extensions/onFocus.js +0 -0
  430. /package/{es2015 → es2022}/extensions/src/extensions/onFocus.js.map +0 -0
  431. /package/{es2015 → es2022}/extensions/src/extensions/patchOptions.js +0 -0
  432. /package/{es2015 → es2022}/extensions/src/extensions/patchOptions.js.map +0 -0
  433. /package/{es2015 → es2022}/extensions/src/extensions/reinitializeOptions.js +0 -0
  434. /package/{es2015 → es2022}/extensions/src/extensions/setReadonly.js +0 -0
  435. /package/{es2015 → es2022}/extensions/src/extensions/setReadonly.js.map +0 -0
  436. /package/{es2015 → es2022}/extensions/src/extensions/setValue.js +0 -0
  437. /package/{es2015 → es2022}/extensions/src/extensions/setValue.js.map +0 -0
  438. /package/{es2015 → es2022}/extensions/src/extensions/valueChange.js +0 -0
  439. /package/{es2015 → es2022}/extensions/src/extensions/valueChange.js.map +0 -0
  440. /package/{es2015 → es2022}/extensions/src/index.js +0 -0
  441. /package/{es2015 → es2022}/extensions/src/index.js.map +0 -0
  442. /package/{es2015 → es2022}/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -0
  443. /package/{es2015 → es2022}/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +0 -0
  444. /package/{es2015 → es2022}/material/src/components/basicDialogPopup/index.js +0 -0
  445. /package/{es2015 → es2022}/material/src/components/basicDialogPopup/index.js.map +0 -0
  446. /package/{es2015 → es2022}/material/src/components/basicDialogPopup/types.js +0 -0
  447. /package/{es2015 → es2022}/material/src/components/basicDialogPopup/types.js.map +0 -0
  448. /package/{es2015 → es2022}/material/src/directives/types.js +0 -0
  449. /package/{es2015 → es2022}/material/src/directives/types.js.map +0 -0
  450. /package/{es2015 → es2022}/material/src/index.js +0 -0
  451. /package/{es2015 → es2022}/material/src/index.js.map +0 -0
  452. /package/{es2015 → es2022}/material/src/plugins/popup/components.js +0 -0
  453. /package/{es2015 → es2022}/material/src/plugins/popup/components.js.map +0 -0
  454. /package/{es2015 → es2022}/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -0
  455. /package/{es2015 → es2022}/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +0 -0
  456. /package/{es2015 → es2022}/material/src/plugins/popup/index.js +0 -0
  457. /package/{es2015 → es2022}/material/src/plugins/popup/index.js.map +0 -0
  458. /package/{es2015 → es2022}/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -0
  459. /package/{es2015 → es2022}/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +0 -0
  460. /package/{es2015 → es2022}/src/components/option/index.js +0 -0
  461. /package/{es2015 → es2022}/src/components/option/index.js.map +0 -0
  462. /package/{es2015 → es2022}/src/components/option/optgroup.interface.js +0 -0
  463. /package/{es2015 → es2022}/src/components/option/optgroup.interface.js.map +0 -0
  464. /package/{es2015 → es2022}/src/components/option/option.interface.js +0 -0
  465. /package/{es2015 → es2022}/src/components/option/option.interface.js.map +0 -0
  466. /package/{es2015 → es2022}/src/components/select/index.js +0 -0
  467. /package/{es2015 → es2022}/src/components/select/index.js.map +0 -0
  468. /package/{es2015 → es2022}/src/components/select/select.interface.js +0 -0
  469. /package/{es2015 → es2022}/src/components/select/select.interface.js.map +0 -0
  470. /package/{es2015 → es2022}/src/components/select/types.js +0 -0
  471. /package/{es2015 → es2022}/src/components/select/types.js.map +0 -0
  472. /package/{es2015 → es2022}/src/index.js +0 -0
  473. /package/{es2015 → es2022}/src/index.js.map +0 -0
  474. /package/{es2015 → es2022}/src/index.ssr.js +0 -0
  475. /package/{es2015 → es2022}/src/misc/extensions/getValue.js +0 -0
  476. /package/{es2015 → es2022}/src/misc/extensions/getValue.js.map +0 -0
  477. /package/{es2015 → es2022}/src/misc/extensions/index.js +0 -0
  478. /package/{es2015 → es2022}/src/misc/extensions/index.js.map +0 -0
  479. /package/{es2015 → es2022}/src/misc/extensions/onFocus.js +0 -0
  480. /package/{es2015 → es2022}/src/misc/extensions/onFocus.js.map +0 -0
  481. /package/{es2015 → es2022}/src/misc/extensions/setReadonly.js +0 -0
  482. /package/{es2015 → es2022}/src/misc/extensions/setValue.js +0 -0
  483. /package/{es2015 → es2022}/src/misc/extensions/setValue.js.map +0 -0
  484. /package/{es2015 → es2022}/src/misc/extensions/valueChange.js +0 -0
  485. /package/{es2015 → es2022}/src/misc/extensions/valueChange.js.map +0 -0
  486. /package/{es2015 → es2022}/src/misc/index.js +0 -0
  487. /package/{es2015 → es2022}/src/misc/index.js.map +0 -0
  488. /package/{es2015 → es2022}/src/misc/ngSelectOptions.interface.js +0 -0
  489. /package/{es2015 → es2022}/src/misc/ngSelectOptions.interface.js.map +0 -0
  490. /package/{es2015 → es2022}/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -0
  491. /package/{es2015 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -0
  492. /package/{es2015 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +0 -0
  493. /package/{es2020 → es2022}/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -0
  494. /package/{es2015 → es2022}/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -0
  495. /package/{es2015 → es2022}/src/misc/optionsGatherer/optionsGatherer.interface.js.map +0 -0
  496. /package/{es2015 → es2022}/src/misc/optionsGatherer/types.js +0 -0
  497. /package/{es2015 → es2022}/src/misc/optionsGatherer/types.js.map +0 -0
  498. /package/{es2015 → es2022}/src/misc/plugin.interface.js +0 -0
  499. /package/{es2015 → es2022}/src/misc/plugin.interface.js.map +0 -0
  500. /package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.interface.js +0 -0
  501. /package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.interface.js.map +0 -0
  502. /package/{es2015 → es2022}/src/misc/templateGatherer.interface.js +0 -0
  503. /package/{es2015 → es2022}/src/misc/templateGatherer.interface.js.map +0 -0
  504. /package/{es2015 → es2022}/src/misc/types.js +0 -0
  505. /package/{es2015 → es2022}/src/misc/types.js.map +0 -0
  506. /package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -0
  507. /package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -0
  508. /package/{es2015 → es2022}/src/plugins/keyboardHandler/components.js +0 -0
  509. /package/{es2015 → es2022}/src/plugins/keyboardHandler/components.js.map +0 -0
  510. /package/{es2015 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -0
  511. /package/{es2015 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -0
  512. /package/{es2015 → es2022}/src/plugins/keyboardHandler/index.js +0 -0
  513. /package/{es2015 → es2022}/src/plugins/keyboardHandler/index.js.map +0 -0
  514. /package/{es2015 → es2022}/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -0
  515. /package/{es2015 → es2022}/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -0
  516. /package/{es2015 → es2022}/src/plugins/keyboardHandler/types.js +0 -0
  517. /package/{es2015 → es2022}/src/plugins/keyboardHandler/types.js.map +0 -0
  518. /package/{es2015 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -0
  519. /package/{es2015 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -0
  520. /package/{es2015 → es2022}/src/plugins/liveSearch/components.js +0 -0
  521. /package/{es2015 → es2022}/src/plugins/liveSearch/components.js.map +0 -0
  522. /package/{es2015 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -0
  523. /package/{es2015 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -0
  524. /package/{es2015 → es2022}/src/plugins/liveSearch/index.js +0 -0
  525. /package/{es2015 → es2022}/src/plugins/liveSearch/index.js.map +0 -0
  526. /package/{es2015 → es2022}/src/plugins/liveSearch/liveSearch.interface.js +0 -0
  527. /package/{es2015 → es2022}/src/plugins/liveSearch/liveSearch.interface.js.map +0 -0
  528. /package/{es2015 → es2022}/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -0
  529. /package/{es2015 → es2022}/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -0
  530. /package/{es2015 → es2022}/src/plugins/liveSearch/types.js +0 -0
  531. /package/{es2015 → es2022}/src/plugins/liveSearch/types.js.map +0 -0
  532. /package/{es2015 → es2022}/src/plugins/normalState/basic/basicNormalState.interface.js +0 -0
  533. /package/{es2015 → es2022}/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -0
  534. /package/{es2015 → es2022}/src/plugins/normalState/components.js +0 -0
  535. /package/{es2015 → es2022}/src/plugins/normalState/components.js.map +0 -0
  536. /package/{es2015 → es2022}/src/plugins/normalState/edit/editNormalState.interface.js +0 -0
  537. /package/{es2015 → es2022}/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -0
  538. /package/{es2015 → es2022}/src/plugins/normalState/index.js +0 -0
  539. /package/{es2015 → es2022}/src/plugins/normalState/index.js.map +0 -0
  540. /package/{es2015 → es2022}/src/plugins/normalState/normalState.interface.js +0 -0
  541. /package/{es2015 → es2022}/src/plugins/normalState/normalState.interface.js.map +0 -0
  542. /package/{es2015 → es2022}/src/plugins/normalState/types.js +0 -0
  543. /package/{es2015 → es2022}/src/plugins/normalState/types.js.map +0 -0
  544. /package/{es2015 → es2022}/src/plugins/popup/basic/basicPopup.interface.js +0 -0
  545. /package/{es2015 → es2022}/src/plugins/popup/basic/basicPopup.interface.js.map +0 -0
  546. /package/{es2015 → es2022}/src/plugins/popup/component.js +0 -0
  547. /package/{es2015 → es2022}/src/plugins/popup/component.js.map +0 -0
  548. /package/{es2015 → es2022}/src/plugins/popup/edit/editPopup.interface.js +0 -0
  549. /package/{es2015 → es2022}/src/plugins/popup/edit/editPopup.interface.js.map +0 -0
  550. /package/{es2015 → es2022}/src/plugins/popup/index.js +0 -0
  551. /package/{es2015 → es2022}/src/plugins/popup/index.js.map +0 -0
  552. /package/{es2015 → es2022}/src/plugins/popup/popup.interface.js +0 -0
  553. /package/{es2015 → es2022}/src/plugins/popup/popup.interface.js.map +0 -0
  554. /package/{es2015 → es2022}/src/plugins/popup/types.js +0 -0
  555. /package/{es2015 → es2022}/src/plugins/popup/types.js.map +0 -0
  556. /package/{es2015 → es2022}/src/plugins/positioner/components.js +0 -0
  557. /package/{es2015 → es2022}/src/plugins/positioner/components.js.map +0 -0
  558. /package/{es2015 → es2022}/src/plugins/positioner/default/defaultPositioner.interface.js +0 -0
  559. /package/{es2015 → es2022}/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -0
  560. /package/{es2015 → es2022}/src/plugins/positioner/index.js +0 -0
  561. /package/{es2015 → es2022}/src/plugins/positioner/index.js.map +0 -0
  562. /package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.interface.js +0 -0
  563. /package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.interface.js.map +0 -0
  564. /package/{es2015 → es2022}/src/plugins/positioner/positioner.interface.js +0 -0
  565. /package/{es2015 → es2022}/src/plugins/positioner/positioner.interface.js.map +0 -0
  566. /package/{es2015 → es2022}/src/plugins/positioner/types.js +0 -0
  567. /package/{es2015 → es2022}/src/plugins/positioner/types.js.map +0 -0
  568. /package/{es2015 → es2022}/src/plugins/readonlyState/index.js +0 -0
  569. /package/{es2015 → es2022}/src/plugins/readonlyState/index.js.map +0 -0
  570. /package/{es2015 → es2022}/src/plugins/readonlyState/readonlyState.interface.js +0 -0
  571. /package/{es2015 → es2022}/src/plugins/readonlyState/readonlyState.interface.js.map +0 -0
  572. /package/{es2015 → es2022}/src/plugins/readonlyState/types.js +0 -0
  573. /package/{es2015 → es2022}/src/plugins/readonlyState/types.js.map +0 -0
  574. /package/{es2015 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -0
  575. /package/{es2015 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -0
  576. /package/{es2015 → es2022}/src/plugins/valueHandler/components.js +0 -0
  577. /package/{es2015 → es2022}/src/plugins/valueHandler/components.js.map +0 -0
  578. /package/{es2015 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -0
  579. /package/{es2015 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -0
  580. /package/{es2015 → es2022}/src/plugins/valueHandler/index.js +0 -0
  581. /package/{es2015 → es2022}/src/plugins/valueHandler/index.js.map +0 -0
  582. /package/{es2015 → es2022}/src/plugins/valueHandler/types.js +0 -0
  583. /package/{es2015 → es2022}/src/plugins/valueHandler/types.js.map +0 -0
  584. /package/{es2015 → es2022}/src/plugins/valueHandler/valueHandler.interface.js +0 -0
  585. /package/{es2015 → es2022}/src/plugins/valueHandler/valueHandler.interface.js.map +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelectControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../src/misc/ngSelectControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAoB,SAAS,EAAY,MAAM,eAAe,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAGvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;;;AAE9F;;;GAGG;AACH,MAAM,wBAAwB,GAC9B;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,CAAC,wBAAwB,CAAC,WAAW,EAAE,CAAC;YAC5C,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;SACxC;QAED,IAAG,IAAI,CAAC,8BAA8B,EACtC;YACI,IAAI,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC;YAClD,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC;SAC9C;QAED,IAAG,IAAI,CAAC,6BAA6B,EACrC;YACI,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,CAAC;YACjD,IAAI,CAAC,6BAA6B,GAAG,IAAI,CAAC;SAC7C;QAED,IAAG,IAAI,CAAC,kBAAkB,EAC1B;YACI,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;YACtC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;SAClC;QAED,IAAG,IAAI,CAAC,gCAAgC,EACxC;YACI,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,CAAC;YACpD,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC;SAChD;IACL,CAAC;;yHA3NQ,4BAA4B;6GAA5B,4BAA4B,+FAF1B,CAAC,wBAAwB,CAAC;2FAE5B,4BAA4B;kBALxC,SAAS;mBACV;oBACI,QAAQ,EAAE,sEAAsE;oBAChF,SAAS,EAAE,CAAC,wBAAwB,CAAC;iBACxC","sourcesContent":["import {forwardRef, ExistingProvider, Directive, OnDestroy} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {NgSelectComponent} from '../components/select/select.component';\nimport {ɵValueChange, ɵSetValue, ɵOnFocus, ɵSetReadonly, ɵGetValue} from '../misc/extensions';\n\n/**\n * Provider for control value accessor\n * @internal\n */\nconst NG_SELECT_VALUE_ACCESSOR: ExistingProvider =\n{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgSelectControlValueAccessor),\n multi: true\n};\n\n/**\n * Control value accessor for NgSelectComponent\n */\n@Directive(\n{\n selector: 'ng-select[formControlName],ng-select[formControl],ng-select[ngModel]',\n providers: [NG_SELECT_VALUE_ACCESSOR]\n})\nexport class NgSelectControlValueAccessor<TValue = any> implements ControlValueAccessor, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for initialized status of NgSelect, used for writeValue\n */\n private _initializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnChange\n */\n private _changeInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnTouched\n */\n private _touchInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for setDisabledState\n */\n private _disabledInitializedSubscription: Subscription;\n\n /**\n * Subscription that looks for changes of select\n */\n private _changeSubscription: Subscription = null;\n\n /**\n * Subscription that looks for changes of select\n */\n private _focusSubscription: Subscription = null;\n\n /**\n * Last set value to this control\n */\n private _value: TValue|TValue[];\n\n //######################### constructor #########################\n constructor(private _select: NgSelectComponent<TValue>)\n {\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * Sets value to select\n */\n public writeValue(value: TValue|Array<TValue>): void\n {\n this._value = value;\n\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetValue(value));\n\n return;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n this._initializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n\n this._select.execute(ɵSetValue(value));\n }\n });\n }\n\n /**\n * Registers callback that is called when value of select changes\n */\n public registerOnChange(fn: (data: TValue|Array<TValue>) => void): void\n {\n const fnWrapper = (value: TValue|Array<TValue>) =>\n {\n //multivalue is new array in case of change\n if(Array.isArray(value) && Array.isArray(this._value))\n {\n if(value !== this._value)\n {\n this._value = value;\n fn(value);\n }\n }\n else if(!Array.isArray(value) && !Array.isArray(this._value))\n {\n if(!this._select.selectOptions?.valueComparer(this._value, value))\n {\n this._value = value;\n fn(value);\n }\n }\n };\n\n this._changeInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n this._changeSubscription = this._select.executeAndReturn(ɵValueChange(fnWrapper));\n\n if(this._select.selectOptions.forceValueCheckOnInit)\n {\n const value = this._select.executeAndReturn(ɵGetValue());\n\n fnWrapper(value);\n }\n }\n });\n }\n\n /**\n * Registers callback that is called when select is closed\n */\n public registerOnTouched(fn: () => void): void\n {\n this._touchInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n this._focusSubscription = this._select.executeAndReturn(ɵOnFocus(fn));\n }\n });\n }\n\n /**\n * Sets NgSelect as disabled/readonly\n * @param isDisabled - Indication whether is control disabled or not\n */\n public setDisabledState(isDisabled: boolean): void\n {\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetReadonly(isDisabled));\n\n return;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n\n this._disabledInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n\n this._select.execute(ɵSetReadonly(isDisabled));\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n if(this._changeInitializedSubscription)\n {\n this._changeInitializedSubscription.unsubscribe();\n this._changeInitializedSubscription = null;\n }\n\n if(this._touchInitializedSubscription)\n {\n this._touchInitializedSubscription.unsubscribe();\n this._touchInitializedSubscription = null;\n }\n\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n }\n}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ngSelectOptions.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelectOptions.interface.js","sourceRoot":"","sources":["../../../src/misc/ngSelectOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["\nimport {NgSelectPluginTypes} from './plugin.interface';\nimport {OptionsGatherer, LiveSearchFilter} from './optionsGatherer/optionsGatherer.interface';\nimport {TemplateGatherer} from './templateGatherer.interface';\n\n/**\n * Function used for comparing two values\n */\nexport interface CompareValueFunc<TValue = any>\n{\n /**\n * Compares two values and returns true if objects are equal, otherwise false\n * @param source - First value to be compared\n * @param target - Second value to be compared\n */\n (source: TValue, target: TValue): boolean;\n}\n\n/**\n * Function used for normalization of value, used during comparison or search\n */\nexport interface NormalizeFunc<TValue = any>\n{\n /**\n * Normalize provided value, usually used with strings\n * @param value - Value that is being normalized\n */\n (value: TValue): TValue;\n}\n\n/**\n * Options used for plugin bus\n */\nexport interface PluginBusOptions<TValue = any>\n{\n /**\n * Instance of options gatherer that is used for obtaining options\n */\n optionsGatherer?: OptionsGatherer<TValue>;\n\n /**\n * Instance of template gatherer used for obtaining custom templates\n */\n templateGatherer?: TemplateGatherer;\n\n /**\n * Indication whether is NgSelect readonly or not\n */\n readonly?: boolean;\n\n /**\n * Indication that multiple values can be selected\n */\n multiple?: boolean;\n\n /**\n * Indication whether use non existing value in live search as new value, use with dynamic value handler\n */\n useNonExistingAsValue?: boolean;\n\n /**\n * Function of value comparer that is used for comparison of values\n */\n valueComparer?: CompareValueFunc<TValue>;\n\n /**\n * Method that is used for filtering when live search is running on static data\n */\n liveSearchFilter?: LiveSearchFilter<TValue>;\n\n /**\n * Normalizer used for normalizing values\n */\n normalizer?: NormalizeFunc<TValue>;\n}\n\n/**\n * Describes select options used for NgSelect\n */\nexport interface NgSelectOptions<TValue = any> extends PluginBusOptions<TValue>\n{\n /**\n * Indication whether NgSelect should be initialized automaticaly during 'NgOnInit' phase\n */\n autoInitialize?: boolean;\n\n /**\n * Css classes applied to ng select component, possible to override only part of classes\n */\n cssClasses?: {};\n\n /**\n * Object defining overrides for default plugins, default plugins can be also specified using DI\n */\n plugins?: NgSelectPluginTypes;\n\n /**\n * Indication whether is 'Popup' plugin displayd inside of NgSelect (false) or directly in Body (true)\n */\n absolute?: boolean;\n\n /**\n * Indication whether force value check on initialization of select, this allows to change value of form control to value of valueHandler\n */\n forceValueCheckOnInit?: boolean;\n}"]}
@@ -1,83 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { LIVE_SEARCH } from '../../plugins/liveSearch/types';
3
- /**
4
- * Options gatherer used for static options gathering from code
5
- */
6
- export class CodeOptionsGatherer {
7
- constructor() {
8
- //######################### private fields #########################
9
- /**
10
- * Array of visible, displayed options for select
11
- */
12
- this._availableOptions = [];
13
- /**
14
- * Array of provided options for select
15
- */
16
- this._options = [];
17
- /**
18
- * Occurs when array of visible, displayed options has changed
19
- */
20
- this._availableOptionsChange = new EventEmitter();
21
- /**
22
- * Occurs when array of provided options has changed
23
- */
24
- this.optionsChange = new EventEmitter();
25
- }
26
- //######################### public properties - implementation of OptionsGatherer #########################
27
- /**
28
- * Array of provided options for select
29
- */
30
- get options() {
31
- return this._options;
32
- }
33
- set options(value) {
34
- this._options = value;
35
- this._availableOptions = value;
36
- }
37
- /**
38
- * Array of visible, displayed options for select
39
- */
40
- get availableOptions() {
41
- return this._availableOptions;
42
- }
43
- /**
44
- * Occurs when array of visible, displayed options has changed
45
- */
46
- get availableOptionsChange() {
47
- return this._availableOptionsChange;
48
- }
49
- //######################### public methods - implmentation of OptionsGatherer #########################
50
- /**
51
- * Initialize gatherer during initialization phase
52
- */
53
- initializeGatherer() {
54
- const liveSearch = this.ngSelectPlugins[LIVE_SEARCH];
55
- if (this._liveSearch && this._liveSearch != liveSearch) {
56
- this._searchValueChangeSubscription.unsubscribe();
57
- this._searchValueChangeSubscription = null;
58
- this._liveSearch = null;
59
- }
60
- if (!this._liveSearch) {
61
- this._liveSearch = liveSearch;
62
- this._searchValueChangeSubscription = this._liveSearch.searchValueChange.subscribe(() => {
63
- if (!this._liveSearch.searchValue) {
64
- this._availableOptions = this.options;
65
- this._availableOptionsChange.emit();
66
- return;
67
- }
68
- this._availableOptions = this.options.filter(this.pluginBus.selectOptions.liveSearchFilter(this._liveSearch.searchValue, this.pluginBus.selectOptions.normalizer));
69
- this._availableOptionsChange.emit();
70
- });
71
- }
72
- }
73
- /**
74
- * Called when gatherer needs to be destroyed
75
- */
76
- destroyGatherer() {
77
- if (this._searchValueChangeSubscription) {
78
- this._searchValueChangeSubscription.unsubscribe();
79
- this._searchValueChangeSubscription = null;
80
- }
81
- }
82
- }
83
- //# sourceMappingURL=codeOptionsGatherer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codeOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/codeOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAO3C,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAG3D;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QAEI,oEAAoE;QAEpE;;WAEG;QACK,sBAAiB,GAA6B,EAAE,CAAC;QAEzD;;WAEG;QACK,aAAQ,GAA6B,EAAE,CAAC;QAEhD;;WAEG;QACK,4BAAuB,GAAuB,IAAI,YAAY,EAAQ,CAAC;QA2B/E;;WAEG;QACI,kBAAa,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAiFxE,CAAC;IAnGG,2GAA2G;IAE3G;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAA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CAAC;gBACnK,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;YACxC,CAAC,CAAC,CAAC;SACN;IACL,CAAC;IAED;;OAEG;IACI,eAAe;QAElB,IAAG,IAAI,CAAC,8BAA8B,EACtC;YACI,IAAI,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC;YAClD,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC;SAC9C;IACL,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\n\n/**\n * Options gatherer used for static options gathering from code\n */\nexport class CodeOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### private fields #########################\n\n /**\n * Array of visible, displayed options for select\n */\n private _availableOptions: NgSelectOption<TValue>[] = [];\n\n /**\n * Array of provided options for select\n */\n private _options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n private _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this._options;\n }\n public set options(value: NgSelectOption<TValue>[])\n {\n this._options = value;\n this._availableOptions = value;\n }\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this._availableOptions;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this._availableOptionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### public methods - implmentation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n this._searchValueChangeSubscription = this._liveSearch.searchValueChange.subscribe(() =>\n {\n if(!this._liveSearch.searchValue)\n {\n this._availableOptions = this.options;\n this._availableOptionsChange.emit();\n\n return;\n }\n\n this._availableOptions = this.options.filter(this.pluginBus.selectOptions.liveSearchFilter(this._liveSearch.searchValue, this.pluginBus.selectOptions.normalizer));\n this._availableOptionsChange.emit();\n });\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n if(this._searchValueChangeSubscription)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n }\n }\n}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dynamicOptionsGatherer.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicOptionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NgSelectOption} from '../../components/option';\n\n/**\n * Callback used for obtaining dynamic options\n */\nexport interface GetOptionsCallback<TValue = any>\n{\n /**\n * Gets array of options based on query\n * @param query - Query for obtaining options, can be searched string or TValue in case of obtaining option for value during initialization\n */\n (query: string|TValue): Promise<NgSelectOption<TValue>[]>;\n}\n\n/**\n * Options for dynamic options gatherer\n */\nexport interface DynamicOptionsGathererOptions<TValue = any>\n{\n /**\n * Callback used for obtaining dynamic options\n */\n dynamicOptionsCallback: GetOptionsCallback<TValue>;\n\n /**\n * Number of miliseconds which represents minimal delay between calls of dynamicOptionsCallback\n */\n delay?: number;\n\n /**\n * Minimal number of characters to be used for searching\n */\n minLength?: number;\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAO5C,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAG3D,OAAO,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAG/D;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAkF/B,iEAAiE;IACjE,YAAsB,QAA+C;QAA/C,aAAQ,GAAR,QAAQ,CAAuC;QAhErE;;WAEG;QACO,eAAU,GAAW,CAAC,CAAC;QAOjC;;WAEG;QACO,iBAAY,GAAY,KAAK,CAAC;QAOxC,2GAA2G;QAE3G;;WAEG;QACI,YAAO,GAA6B,EAAE,CAAC;QAE9C;;WAEG;QACI,kBAAa,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAoChE,IAAG,CAAC,IAAI,CAAC,QAAQ,EACjB;YACI,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC/C;QAED,IAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ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,IAAG,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,EAC/C;YACI,sDAAsD;YACtD,IAAG,SAAS,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,EAClE;gBACI,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;gBAClB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;aAC7B;YAED,OAAO;SACV;QAED,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;QAC7E,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IAC9B,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\nimport {Subscription, Observable} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NgSelectOption} from '../../components/option';\nimport {DynamicOptionsGathererOptions} from './dynamicOptionsGatherer.interface';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {Popup} from '../../plugins/popup';\nimport {POPUP} from '../../plugins/popup/types';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\nimport {ValueHandler} from '../../plugins/valueHandler';\n\n/**\n * Class that is used as for options gathering in dynamic way, for example from external source when writing\n */\nexport class DynamicOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n /**\n * Subscription for visibility change of popup\n */\n protected _visibilitySubscription: Subscription;\n\n /**\n * Minimal number of characters required for searching\n */\n protected _minLength: number = 1;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Indication that first initial call was performed\n */\n protected _initialized: boolean = false;\n\n /**\n * Currently used value handler plugin\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this.options;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this.optionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### constructor #########################\n constructor(protected _options: DynamicOptionsGathererOptions<TValue>)\n {\n if(!this._options)\n {\n throw new Error('Options can not be null!');\n }\n\n if(this._options && isPresent(this._options.minLength))\n {\n this._minLength = this._options.minLength;\n }\n }\n\n //######################### public methods - implementation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._visibilitySubscription.unsubscribe();\n this._visibilitySubscription = null;\n\n this._popup = null;\n }\n\n this._valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilitySubscription = this._popup.visibilityChange.subscribe(async () =>\n {\n if(this._initialized)\n {\n return;\n }\n\n await this._processOptionsChange();\n });\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n let searchValueChange: Observable<void> = this._liveSearch.searchValueChange;\n\n if(this._options.delay)\n {\n searchValueChange = searchValueChange.pipe(debounceTime(this._options.delay));\n }\n\n this._searchValueChangeSubscription = searchValueChange.subscribe(async () => await this._processOptionsChange());\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._searchValueChangeSubscription?.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._visibilitySubscription?.unsubscribe();\n this._visibilitySubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Process options change request\n */\n protected async _processOptionsChange()\n {\n let searchValue: string = this._liveSearch.searchValue;\n\n //use value as search value if not initialized\n if(!this._initialized && !this.pluginBus.selectOptions.multiple && !Array.isArray(this._valueHandler.selectedOptions) && isPresent(this._valueHandler.selectedOptions))\n {\n searchValue = this._liveSearch.searchValue ?? this._valueHandler.selectedOptions.text;\n }\n\n this._initialized = true;\n\n if((searchValue?.length ?? 0) < this._minLength)\n {\n //remove available options if multiple or empty string\n if(isPresent(searchValue) || this.pluginBus.selectOptions.multiple)\n {\n this.options = [];\n this.optionsChange.emit();\n }\n\n return;\n }\n\n this.options = await this._options.dynamicOptionsCallback(searchValue ?? '');\n this.optionsChange.emit();\n }\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"excludingOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/excludingOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAArC;QAEI,sEAAsE;QAEtE;;WAEG;QACO,sBAAiB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,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;aACzD;SACJ;QACD,iBAAiB;aACZ,IAAG,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,EAC9C;YACI,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC5I;QAED,qBAAqB;QACrB,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,EACpD;YACI,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,GAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;SAC5F;aAED;YACK,IAAI,CAAC,aAAa,CAAC,eAAmC,CAAC,MAAM,GAAG,KAAK,CAAC;SAC1E;QAED,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;IACxC,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectOption, ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {ValueHandler} from '../../plugins/valueHandler';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\n\n/**\n * Options gatherer using default build in gatherer extended with exclusion of selected options\n */\nexport class ExcludingOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Array of visible, displayed options for select\n */\n protected _availableOptions: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n protected _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Subscription for change of available options\n */\n protected _availableOptionsChangeSubscription: Subscription;\n\n /**\n * Subscription for change of value in value handler\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this.select.options;\n }\n\n /**\n * Occurs when array of provided options has changed\n */\n public get optionsChange(): EventEmitter<void>\n {\n return this.select.optionsChange;\n }\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this._availableOptions;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this._availableOptionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### public methods - implmentation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n this.select.initializeGatherer();\n\n this._availableOptionsChangeSubscription = this.select.availableOptionsChange.subscribe(() => this._excludeSelected());\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => this._excludeSelected());\n }\n\n this._excludeSelected();\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._availableOptionsChangeSubscription?.unsubscribe();\n this._availableOptionsChangeSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Exclude selected options\n */\n protected _excludeSelected()\n {\n //nothing selected\n if(!this._valueHandler.value)\n {\n this._availableOptions = this.select.availableOptions;\n this._availableOptionsChange.emit();\n\n return;\n }\n\n const compare = this.pluginBus.selectOptions.valueComparer;\n const normalize = this.pluginBus.selectOptions.normalizer;\n\n //multi selected\n if(this.pluginBus.selectOptions.multiple && Array.isArray(this._valueHandler.value))\n {\n //filter out value\n if(this._valueHandler.value.length)\n {\n const value = this._valueHandler.value;\n \n this._availableOptions = this.select.availableOptions.filter(opt => !value.find(itm => compare(normalize(itm), normalize(opt.value))));\n }\n //nothing selected\n else\n {\n this._availableOptions = this.select.availableOptions;\n }\n }\n //single selected\n else if(!this.pluginBus.selectOptions.multiple)\n {\n this._availableOptions = this.select.availableOptions.filter(opt => !compare(normalize(opt.value), normalize(this._valueHandler.value)));\n }\n\n //deactivate selected\n if(Array.isArray(this._valueHandler.selectedOptions))\n {\n this._valueHandler.selectedOptions.forEach((opt: ɵNgSelectOption) => opt.active = false);\n }\n else\n {\n (this._valueHandler.selectedOptions as ɵNgSelectOption).active = false;\n }\n\n this._availableOptionsChange.emit();\n }\n}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=optionsGatherer.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectOption} from '../../components/option/option.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NormalizeFunc} from '../ngSelectOptions.interface';\nimport {PluginBus} from '../pluginBus/pluginBus';\n\n/**\n * Callback that is used for filtering static values during live search\n */\nexport interface LiveSearchFilter<TValue = any>\n{\n (query: string, normalizer?: NormalizeFunc<TValue>): (option: NgSelectOption<TValue>) => boolean\n}\n\n/**\n * Gatherer used for obtaining options for select\n */\nexport interface OptionsGatherer<TValue = any>\n{\n /**\n * Array of provided options for select\n */\n readonly options: NgSelectOption<TValue>[];\n\n /**\n * Occurs when array of provided options has changed\n */\n readonly optionsChange: EventEmitter<void>;\n\n /**\n * Array of visible, displayed options for select\n */\n readonly availableOptions: NgSelectOption<TValue>[];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n readonly availableOptionsChange: EventEmitter<void>;\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n select: NgSelect<TValue>;\n\n /**\n * Initialize gatherer during initialization phase\n */\n initializeGatherer(): void;\n\n /**\n * Called when gatherer needs to be destroyed\n */\n destroyGatherer(): void;\n}"]}
@@ -1,4 +0,0 @@
1
- export * from './codeOptionsGatherer';
2
- export * from './dynamicOptionsGatherer';
3
- export * from './excludingOptionsGatherer';
4
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/types.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './codeOptionsGatherer';\nexport * from './dynamicOptionsGatherer';\nexport * from './excludingOptionsGatherer';"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugin.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.interface.js","sourceRoot":"","sources":["../../../src/misc/plugin.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type, ElementRef} from '@angular/core';\n\nimport {NgSelectPluginInstances} from '../components/select';\nimport {KeyboardHandler} from '../plugins/keyboardHandler';\nimport {NormalState} from '../plugins/normalState';\nimport {Popup} from '../plugins/popup';\nimport {Positioner} from '../plugins/positioner';\nimport {ReadonlyState} from '../plugins/readonlyState';\nimport {ValueHandler} from '../plugins/valueHandler';\nimport {LiveSearch} from '../plugins/liveSearch';\nimport {PluginBus} from './pluginBus/pluginBus';\n\n/**\n * NgSelect plugin interface\n */\nexport interface NgSelectPlugin<TOptions = any, TValue = any>\n{\n /**\n * NgSelect plugin instances available for this plugin\n */\n ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Element that represents plugin\n */\n pluginElement: ElementRef;\n\n /**\n * Options for NgSelect plugin\n */\n options: TOptions;\n\n /**\n * Plugin bus used in select\n */\n pluginBus: PluginBus<TValue>;\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n initialize(): void;\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n initOptions(): void;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n}\n\n/**\n * All available types of plugins for NgSelect\n */\nexport interface NgSelectPluginTypes\n{\n /**\n * Handles keyboard events\n */\n keyboardHandler?: PluginDescription<KeyboardHandler>;\n\n /**\n * Component used for displaying normal state of select\n */\n normalState?: PluginDescription<NormalState>;\n\n /**\n * Component used for displaying available options for selection\n */\n popup?: PluginDescription<Popup>;\n\n /**\n * Handles correct position of pop component\n */\n positioner?: PluginDescription<Positioner>;\n\n /**\n * Component used for displaying readonly/disabled state of select, can be null, in that case normal state component is used\n */\n readonlyState?: PluginDescription<ReadonlyState>;\n\n /**\n * Handles obtaining and setting value of component\n */\n valueHandler?: PluginDescription<ValueHandler>;\n\n /**\n * Contains component that is used for live searching in options\n */\n liveSearch?: PluginDescription<LiveSearch>;\n}\n\n/**\n * Base options for every plugin\n */\nexport interface PluginOptions\n{\n}\n\n/**\n * Base options for every visual plugin (component)\n */\nexport interface VisualPluginOptions<TCssClasses = any> extends PluginOptions\n{\n /**\n * Css classes applied to visual plugin (component), possible to override only part of classes\n */\n cssClasses?: TCssClasses;\n}\n\n/**\n * Defines interface, that describes minimal set of parameters for specifying plugin for NgSelect\n */\nexport interface PluginDescription<PluginType = any>\n{\n /**\n * Type of plugin that will be dynamically instantiated\n */\n type?: Type<PluginType>;\n\n /**\n * Options that will be passed to dynamically instantiated plugin\n */\n options?: PluginOptions;\n\n /**\n * Optional callback used for obtaining dynamic instance of plugin (allows direct communication with plugin)\n */\n instanceCallback?: (instance: NgSelectPlugin|null) => void;\n}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pluginBus.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pluginBus.interface.js","sourceRoot":"","sources":["../../../../src/misc/pluginBus/pluginBus.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectOption} from '../../components/option';\n\n/**\n * Represents all events implemented by plugin bus\n */\nexport interface PluginBusEvents\n{\n //######################### public properties - events #########################\n\n /**\n * Occurs when popup visibility should be toggled\n */\n readonly togglePopup: EventEmitter<void>;\n\n /**\n * Occurs when popup visibility should be changed\n */\n readonly showHidePopup: EventEmitter<boolean>;\n\n /**\n * Occurs when option should be selected\n */\n readonly optionSelect: EventEmitter<NgSelectOption>;\n\n /**\n * Occurs when option should be canceled\n */\n readonly optionCancel: EventEmitter<NgSelectOption>;\n\n /**\n * Occurs when any part of select gains focus\n */\n readonly focus: EventEmitter<void>;\n\n /**\n * Occurs when live search should gain focus\n */\n readonly liveSearchFocus: EventEmitter<void>;\n\n /**\n * Occurs when there is need for updating displayed value\n */\n readonly updateDisplayedValue: EventEmitter<void>;\n}"]}
@@ -1,44 +0,0 @@
1
- import { Injectable, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Class represents centralized bus for plugin communications
5
- */
6
- export class PluginBus {
7
- constructor() {
8
- //######################### public properties - events #########################
9
- /**
10
- * Occurs when popup visibility should be toggled
11
- */
12
- this.togglePopup = new EventEmitter();
13
- /**
14
- * Occurs when popup visibility should be changed
15
- */
16
- this.showHidePopup = new EventEmitter();
17
- /**
18
- * Occurs when option should be selected
19
- */
20
- this.optionSelect = new EventEmitter();
21
- /**
22
- * Occurs when option should be canceled
23
- */
24
- this.optionCancel = new EventEmitter();
25
- /**
26
- * Occurs when any part of select gains focus
27
- */
28
- this.focus = new EventEmitter();
29
- /**
30
- * Occurs when live search should gain focus
31
- */
32
- this.liveSearchFocus = new EventEmitter();
33
- /**
34
- * Occurs when there is need for updating displayed value
35
- */
36
- this.updateDisplayedValue = new EventEmitter();
37
- }
38
- }
39
- PluginBus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PluginBus, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
40
- PluginBus.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PluginBus });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PluginBus, decorators: [{
42
- type: Injectable
43
- }] });
44
- //# sourceMappingURL=pluginBus.js.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=templateGatherer.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templateGatherer.interface.js","sourceRoot":"","sources":["../../../src/misc/templateGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {TemplateRef} from '@angular/core';\n\nimport {NormalStateContext} from '../plugins/normalState';\nimport {PopupContext} from '../plugins/popup';\n\n/**\n * Gatherer used for obtaining templates for NgSelect plugins\n */\nexport interface TemplateGatherer\n{\n /**\n * Template used within normal state\n */\n readonly normalStateTemplate: TemplateRef<NormalStateContext>;\n\n /**\n * Template that is used within Popup as option\n */\n readonly optionTemplate?: TemplateRef<PopupContext>;\n}"]}
@@ -1,34 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Injection token for 'NgSelectOptions'
4
- */
5
- export const NG_SELECT_OPTIONS = new InjectionToken('NG_SELECT_OPTIONS');
6
- /**
7
- * Injection token for 'KeyboardHandler' implementation
8
- */
9
- export const KEYBOARD_HANDLER_TYPE = new InjectionToken('KEYBOARD_HANDLER_TYPE');
10
- /**
11
- * Injection token for 'NormalState' implementation
12
- */
13
- export const NORMAL_STATE_TYPE = new InjectionToken('NORMAL_STATE_TYPE');
14
- /**
15
- * Injection token for 'Popup' implementation
16
- */
17
- export const POPUP_TYPE = new InjectionToken('POPUP_TYPE');
18
- /**
19
- * Injection token for 'Positioner' implementation
20
- */
21
- export const POSITIONER_TYPE = new InjectionToken('POSITIONER_TYPE');
22
- /**
23
- * Injection token for 'ReadonlyState' implementation
24
- */
25
- export const READONLY_STATE_TYPE = new InjectionToken('READONLY_STATE_TYPE');
26
- /**
27
- * Injection token for 'ValueHandler' implementation
28
- */
29
- export const VALUE_HANDLER_TYPE = new InjectionToken('VALUE_HANDLER_TYPE');
30
- /**
31
- * Injection token for 'LiveSearch' implementation
32
- */
33
- export const LIVE_SEARCH_TYPE = new InjectionToken('LIVE_SEARCH_TYPE');
34
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/misc/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAO,MAAM,eAAe,CAAC;AAWnD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAoC,IAAI,cAAc,CAAkB,mBAAmB,CAAC,CAAC;AAE3H;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA0C,IAAI,cAAc,CAAwB,uBAAuB,CAAC,CAAC;AAE/I;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAsC,IAAI,cAAc,CAAoB,mBAAmB,CAAC,CAAC;AAE/H;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAgC,IAAI,cAAc,CAAc,YAAY,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAqC,IAAI,cAAc,CAAmB,iBAAiB,CAAC,CAAC;AAEzH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwC,IAAI,cAAc,CAAsB,qBAAqB,CAAC,CAAC;AAEvI;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAuC,IAAI,cAAc,CAAqB,oBAAoB,CAAC,CAAC;AAEnI;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqC,IAAI,cAAc,CAAmB,kBAAkB,CAAC,CAAC","sourcesContent":["import {InjectionToken, Type} from '@angular/core';\n\nimport {KeyboardHandler} from '../plugins/keyboardHandler';\nimport {NormalState} from '../plugins/normalState';\nimport {Popup} from '../plugins/popup';\nimport {Positioner} from '../plugins/positioner';\nimport {ReadonlyState} from '../plugins/readonlyState';\nimport {ValueHandler} from '../plugins/valueHandler';\nimport {LiveSearch} from '../plugins/liveSearch';\nimport {NgSelectOptions} from './ngSelectOptions.interface';\n\n/**\n * Injection token for 'NgSelectOptions'\n */\nexport const NG_SELECT_OPTIONS: InjectionToken<NgSelectOptions> = new InjectionToken<NgSelectOptions>('NG_SELECT_OPTIONS');\n\n/**\n * Injection token for 'KeyboardHandler' implementation\n */\nexport const KEYBOARD_HANDLER_TYPE: InjectionToken<Type<KeyboardHandler>> = new InjectionToken<Type<KeyboardHandler>>('KEYBOARD_HANDLER_TYPE');\n\n/**\n * Injection token for 'NormalState' implementation\n */\nexport const NORMAL_STATE_TYPE: InjectionToken<Type<NormalState>> = new InjectionToken<Type<NormalState>>('NORMAL_STATE_TYPE');\n\n/**\n * Injection token for 'Popup' implementation\n */\nexport const POPUP_TYPE: InjectionToken<Type<Popup>> = new InjectionToken<Type<Popup>>('POPUP_TYPE');\n\n/**\n * Injection token for 'Positioner' implementation\n */\nexport const POSITIONER_TYPE: InjectionToken<Type<Positioner>> = new InjectionToken<Type<Positioner>>('POSITIONER_TYPE');\n\n/**\n * Injection token for 'ReadonlyState' implementation\n */\nexport const READONLY_STATE_TYPE: InjectionToken<Type<ReadonlyState>> = new InjectionToken<Type<ReadonlyState>>('READONLY_STATE_TYPE');\n\n/**\n * Injection token for 'ValueHandler' implementation\n */\nexport const VALUE_HANDLER_TYPE: InjectionToken<Type<ValueHandler>> = new InjectionToken<Type<ValueHandler>>('VALUE_HANDLER_TYPE');\n\n/**\n * Injection token for 'LiveSearch' implementation\n */\nexport const LIVE_SEARCH_TYPE: InjectionToken<Type<LiveSearch>> = new InjectionToken<Type<LiveSearch>>('LIVE_SEARCH_TYPE');"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelect.module.js","sourceRoot":"","sources":["../../../src/modules/ngSelect.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AAElD,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,4BAA4B,EAAC,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAC,yBAAyB,EAAC,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAC,wBAAwB,EAAC,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,mBAAmB,EAAC,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAC,0BAA0B,EAAC,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAC,6BAA6B,EAAC,MAAM,iEAAiE,CAAC;AAC9G,OAAO,EAAC,0BAA0B,EAAC,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;A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import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {CommonDynamicModule} from '@anglr/common';\n\nimport {NgSelectValuePipe} from '../pipes/ngSelectValue.pipe';\nimport {NgSelectHasValuePipe} from '../pipes/ngSelectHasValue.pipe';\nimport {NgSelectControlValueAccessor} from '../misc/ngSelectControlValueAccessor.directive';\nimport {BasicNormalStateComponent} from '../plugins/normalState/basic/basicNormalState.component';\nimport {NoLiveSearchComponent} from '../plugins/liveSearch/no/noLiveSearch.component';\nimport {BasicLiveSearchComponent} from '../plugins/liveSearch/basic/basicLiveSearch.component';\nimport {BasicPopupComponent} from '../plugins/popup/basic/basicPopup.component';\nimport {DefaultPositionerComponent} from '../plugins/positioner/default/defaultPositioner.component';\nimport {NoPositionerComponent} from '../plugins/positioner/no/noPositioner.component';\nimport {BasicKeyboardHandlerComponent} from '../plugins/keyboardHandler/basic/basicKeyboardHandler.component';\nimport {BasicValueHandlerComponent} from '../plugins/valueHandler/basic/basicValueHandler.component';\nimport {OptionComponent} from '../components/option/option.component';\nimport {OptGroupComponent} from '../components/option/optgroup.component';\nimport {NgSelectComponent} from '../components/select/select.component';\nimport {NgSelectAbsoluteDirective} from '../directives/ngSelectAbsolute/ngSelectAbsolute.directive';\nimport {NgSelectPlaceholderDirective} from '../directives/ngSelectPlaceholder/ngSelectPlaceholder.directive';\n\n/**\n * Module for select and its options\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n CommonDynamicModule,\n ],\n declarations:\n [\n OptionComponent,\n OptGroupComponent,\n NgSelectComponent,\n NgSelectValuePipe,\n NgSelectHasValuePipe,\n NgSelectControlValueAccessor,\n BasicNormalStateComponent,\n NoLiveSearchComponent,\n BasicLiveSearchComponent,\n BasicPopupComponent,\n NoPositionerComponent,\n DefaultPositionerComponent,\n BasicKeyboardHandlerComponent,\n BasicValueHandlerComponent,\n NgSelectAbsoluteDirective,\n NgSelectPlaceholderDirective\n ],\n exports:\n [\n OptionComponent,\n OptGroupComponent,\n NgSelectComponent,\n NgSelectValuePipe,\n NgSelectHasValuePipe,\n NgSelectControlValueAccessor,\n NgSelectAbsoluteDirective,\n NgSelectPlaceholderDirective\n ]\n})\nexport class NgSelectModule\n{\n}"]}
@@ -1,20 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DynamicValueHandlerComponent } from '../plugins/valueHandler/dynamic/dynamicValueHandler.component';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Module for select and its options, allows use of dynamic value handler
6
- */
7
- export class NgSelectDynamicModule {
8
- }
9
- NgSelectDynamicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- NgSelectDynamicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule, declarations: [DynamicValueHandlerComponent] });
11
- NgSelectDynamicModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule, decorators: [{
13
- type: NgModule,
14
- args: [{
15
- declarations: [
16
- DynamicValueHandlerComponent
17
- ]
18
- }]
19
- }] });
20
- //# sourceMappingURL=ngSelectDynamic.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelectDynamic.module.js","sourceRoot":"","sources":["../../../src/modules/ngSelectDynamic.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,4BAA4B,EAAC,MAAM,+DAA+D,CAAC;;AAE3G;;GAEG;AAQH,MAAM,OAAO,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAH1B,4BAA4B;mHAGvB,qBAAqB;2FAArB,qBAAqB;kBAPjC,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,4BAA4B;qBAC/B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {DynamicValueHandlerComponent} from '../plugins/valueHandler/dynamic/dynamicValueHandler.component';\n\n/**\n * Module for select and its options, allows use of dynamic value handler\n */\n@NgModule(\n{\n declarations:\n [\n DynamicValueHandlerComponent\n ]\n})\nexport class NgSelectDynamicModule\n{\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelectEdit.module.js","sourceRoot":"","sources":["../../../src/modules/ngSelectEdit.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,wBAAwB,EAAC,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,uBAAuB,EAAC,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAC,kBAAkB,EAAC,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAC,4BAA4B,EAAC,MAAM,+DAA+D,CAAC;AAC3G,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;;AAEjD;;GAEG;AAyBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAfvB,qBAAqB;QACrB,wBAAwB;QACxB,uBAAuB;QACvB,kBAAkB;QAClB,4BAA4B,aAT5B,YAAY;QACZ,cAAc,aAYd,qBAAqB;QACrB,wBAAwB;QACxB,uBAAuB;QACvB,kBAAkB;QAClB,4BAA4B;gHAGvB,kBAAkB,YApBvB,YAAY;QACZ,cAAc;2FAmBT,kBAAkB;kBAxB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,cAAc;qBACjB;oBACD,YAAY,EACZ;wBACI,qBAAqB;wBACrB,wBAAwB;wBACxB,uBAAuB;wBACvB,kBAAkB;wBAClB,4BAA4B;qBAC/B;oBACD,OAAO,EACP;wBACI,qBAAqB;wBACrB,wBAAwB;wBACxB,uBAAuB;wBACvB,kBAAkB;wBAClB,4BAA4B;qBAC/B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgSelectEditDirective} from '../directives/ngSelectEdit/ngSelectEdit.directive';\nimport {EditNormalStateComponent} from '../plugins/normalState/edit/editNormalState.component';\nimport {EditLiveSearchComponent} from '../plugins/liveSearch/edit/editLiveSearch.component';\nimport {EditPopupComponent} from '../plugins/popup/edit/editPopup.component';\nimport {EditKeyboardHandlerComponent} from '../plugins/keyboardHandler/edit/editKeyboardHandler.component';\nimport {NgSelectModule} from './ngSelect.module';\n\n/**\n * Module for select with editation and tags (jira like select)\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n NgSelectModule\n ],\n declarations:\n [\n NgSelectEditDirective,\n EditNormalStateComponent,\n EditLiveSearchComponent,\n EditPopupComponent,\n EditKeyboardHandlerComponent\n ],\n exports:\n [\n NgSelectEditDirective,\n EditNormalStateComponent,\n EditLiveSearchComponent,\n EditPopupComponent,\n EditKeyboardHandlerComponent\n ]\n})\nexport class NgSelectEditModule\n{\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelectHasValue.pipe.js","sourceRoot":"","sources":["../../../src/pipes/ngSelectHasValue.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAIvC;;GAEG;AAEH,MAAM,OAAO,oBAAoB;IAE7B,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,OAA6D;QAE1E,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9E,CAAC;;iHAXQ,oBAAoB;+GAApB,oBAAoB;2FAApB,oBAAoB;kBADhC,IAAI;mBAAC,EAAC,IAAI,EAAE,kBAAkB,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {NgSelectOption} from '../components/option';\n\n/**\n * Pipe that checks whether select has currently any option\n */\n@Pipe({name: 'ngSelectHasValue'})\nexport class NgSelectHasValuePipe<TValue = any> implements PipeTransform\n{\n //######################### public methods #########################\n \n /**\n * Transforms selected option into boolean indication if there is option selected\n * @param options - Selected options to be transformed into boolean\n */ \n public transform(options: NgSelectOption<TValue>|Array<NgSelectOption<TValue>>): boolean\n {\n return !(isBlank(options) || (Array.isArray(options) && !options.length));\n }\n}\n\n"]}
@@ -1,31 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { isBlank } from '@jscrpt/common';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Pipe to transform ng select selected option into
6
- */
7
- export class NgSelectValuePipe {
8
- //######################### public methods #########################
9
- /**
10
- * Transforms selected option into string
11
- * @param options - Selected options to be transformed into text
12
- * @param nothingSelectedText - Text displayed if nothing is selected
13
- * @param optionDisplayText - Function used for transformation of option into display text, defaults to text property of option
14
- */
15
- transform(options, nothingSelectedText, optionDisplayText = option => option.text) {
16
- if (isBlank(options) || (Array.isArray(options) && !options.length)) {
17
- return nothingSelectedText;
18
- }
19
- if (Array.isArray(options)) {
20
- return options.map(optionDisplayText).join(', ');
21
- }
22
- return optionDisplayText(options);
23
- }
24
- }
25
- NgSelectValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
26
- NgSelectValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectValuePipe, name: "ngSelectValue" });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectValuePipe, decorators: [{
28
- type: Pipe,
29
- args: [{ name: 'ngSelectValue' }]
30
- }] });
31
- //# sourceMappingURL=ngSelectValue.pipe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngSelectValue.pipe.js","sourceRoot":"","sources":["../../../src/pipes/ngSelectValue.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAKvC;;GAEG;AAEH,MAAM,OAAO,iBAAiB;IAE1B,oEAAoE;IAEpE;;;;;OAKG;IACI,SAAS,CAAC,OAA6D,EAAE,mBAA2B,EAAE,oBAA6C,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI;QAE3K,IAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAClE;YACI,OAAO,mBAAmB,CAAC;SAC9B;QAED,IAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EACzB;YACI,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACpD;QAED,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;;8GAvBQ,iBAAiB;4GAAjB,iBAAiB;2FAAjB,iBAAiB;kBAD7B,IAAI;mBAAC,EAAC,IAAI,EAAE,eAAe,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {NgSelectOption} from '../components/option';\nimport {DisplayTextFunc} from '../plugins/normalState';\n\n/**\n * Pipe to transform ng select selected option into\n */\n@Pipe({name: 'ngSelectValue'})\nexport class NgSelectValuePipe<TValue = any> implements PipeTransform\n{\n //######################### public methods #########################\n \n /**\n * Transforms selected option into string\n * @param options - Selected options to be transformed into text\n * @param nothingSelectedText - Text displayed if nothing is selected\n * @param optionDisplayText - Function used for transformation of option into display text, defaults to text property of option\n */ \n public transform(options: NgSelectOption<TValue>|Array<NgSelectOption<TValue>>, nothingSelectedText: string, optionDisplayText: DisplayTextFunc<TValue> = option => option.text): string\n {\n if(isBlank(options) || (Array.isArray(options) && !options.length))\n {\n return nothingSelectedText;\n }\n\n if(Array.isArray(options))\n {\n return options.map(optionDisplayText).join(', ');\n }\n\n return optionDisplayText(options);\n }\n}\n\n"]}
@@ -1,145 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
2
- import { extend } from '@jscrpt/common';
3
- import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
4
- import { KEYBOARD_HANDLER_OPTIONS } from '../types';
5
- import { POPUP } from '../../popup/types';
6
- import { PluginBus } from '../../../misc/pluginBus/pluginBus';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "../../../misc/pluginBus/pluginBus";
9
- /**
10
- * Default options for keyboard handler
11
- * @internal
12
- */
13
- const defaultOptions = {};
14
- /**
15
- * Component used for obtaining basic keyboard handler html element
16
- */
17
- export class BasicKeyboardHandlerComponent {
18
- //######################### constructor #########################
19
- constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
20
- this.ngSelectPlugins = ngSelectPlugins;
21
- this.pluginBus = pluginBus;
22
- this.pluginElement = pluginElement;
23
- //######################### protected methods #########################
24
- /**
25
- * Handles keyboard event
26
- * @param event - Keyboard event that occured
27
- */
28
- this._handleKeyboard = (event) => {
29
- if (event.key == 'ArrowDown' || event.key == 'ArrowUp') {
30
- this.pluginBus.showHidePopup.emit(true);
31
- const activeOption = this.availableOptions.find(itm => itm.active);
32
- if (activeOption) {
33
- let index = this.availableOptions.indexOf(activeOption);
34
- activeOption.active = false;
35
- //move down cursor
36
- if (event.key == 'ArrowDown') {
37
- index += 1;
38
- }
39
- //move up cursor
40
- else {
41
- index -= 1;
42
- }
43
- if (index < 0) {
44
- index = this.availableOptions.length - 1;
45
- }
46
- index = index % this.availableOptions.length;
47
- this.availableOptions[index].active = true;
48
- }
49
- //none active before
50
- else if (this.availableOptions.length) {
51
- this.availableOptions[0].active = true;
52
- }
53
- this._popup.invalidateVisuals();
54
- event.preventDefault();
55
- }
56
- //prevent enter if popup is opened
57
- if (event.key == 'Enter' && this._popup.popupElement) {
58
- const activeOption = this.availableOptions.find(itm => itm.active);
59
- if (activeOption) {
60
- this.pluginBus.optionSelect.emit(activeOption);
61
- }
62
- event.preventDefault();
63
- }
64
- if (event.key == 'Tab' || event.key == 'Escape') {
65
- this.pluginBus.showHidePopup.emit(false);
66
- }
67
- };
68
- this._options = extend(true, {}, defaultOptions, options);
69
- }
70
- //######################### protected properties #########################
71
- /**
72
- * Gets currently available options
73
- */
74
- get availableOptions() {
75
- return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
76
- }
77
- //######################### public properties - implementation of BasicKeyboardHandler #########################
78
- /**
79
- * Options for NgSelect plugin
80
- */
81
- get options() {
82
- return this._options;
83
- }
84
- set options(options) {
85
- this._options = extend(true, this._options, options);
86
- }
87
- //######################### public methods - implementation of OnDestroy #########################
88
- /**
89
- * Called when component is destroyed
90
- */
91
- ngOnDestroy() {
92
- if (this.pluginBus.selectElement) {
93
- this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);
94
- }
95
- }
96
- //######################### public methods - implementation of BasicKeyboardHandler #########################
97
- /**
98
- * Initialize plugin, to be ready to use, initialize communication with other plugins
99
- */
100
- initialize() {
101
- if (this.pluginBus.selectElement) {
102
- this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);
103
- }
104
- const popup = this.ngSelectPlugins[POPUP];
105
- if (this._popup && this._popup != popup) {
106
- this._popup = null;
107
- }
108
- if (!this._popup) {
109
- this._popup = popup;
110
- }
111
- }
112
- /**
113
- * Initialize plugin options, all operations required to be done with plugin options are handled here
114
- */
115
- initOptions() {
116
- }
117
- /**
118
- * Explicitly runs invalidation of content (change detection)
119
- */
120
- invalidateVisuals() {
121
- }
122
- }
123
- BasicKeyboardHandlerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicKeyboardHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: KEYBOARD_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
124
- BasicKeyboardHandlerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BasicKeyboardHandlerComponent, selector: "ng-basic-keyboard-handler", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicKeyboardHandlerComponent, decorators: [{
126
- type: Component,
127
- args: [{
128
- selector: 'ng-basic-keyboard-handler',
129
- template: '',
130
- changeDetection: ChangeDetectionStrategy.OnPush
131
- }]
132
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
133
- type: Inject,
134
- args: [NG_SELECT_PLUGIN_INSTANCES]
135
- }, {
136
- type: Optional
137
- }] }, { type: i1.PluginBus, decorators: [{
138
- type: Optional
139
- }] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
140
- type: Inject,
141
- args: [KEYBOARD_HANDLER_OPTIONS]
142
- }, {
143
- type: Optional
144
- }] }]; } });
145
- //# sourceMappingURL=basicKeyboardHandler.component.js.map