@anglr/select 15.0.0 → 16.0.0-beta.20260226142137

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 (741) hide show
  1. package/changelog.md +153 -0
  2. package/es2022/extensions/src/extensions/getValue.js +16 -1
  3. package/es2022/extensions/src/extensions/getValue.js.map +1 -1
  4. package/es2022/extensions/src/extensions/onFocus.js +14 -1
  5. package/es2022/extensions/src/extensions/onFocus.js.map +1 -1
  6. package/es2022/extensions/src/extensions/patchOptions.js +15 -11
  7. package/es2022/extensions/src/extensions/patchOptions.js.map +1 -1
  8. package/es2022/extensions/src/extensions/reinitializeOptions.js +19 -14
  9. package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -1
  10. package/es2022/extensions/src/extensions/setReadonly.js +21 -1
  11. package/es2022/extensions/src/extensions/setReadonly.js.map +1 -1
  12. package/es2022/extensions/src/extensions/setValue.js +17 -1
  13. package/es2022/extensions/src/extensions/setValue.js.map +1 -1
  14. package/es2022/extensions/src/extensions/valueChange.js +17 -1
  15. package/es2022/extensions/src/extensions/valueChange.js.map +1 -1
  16. package/es2022/extensions/src/index.js +1 -7
  17. package/es2022/extensions/src/index.js.map +1 -1
  18. package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +100 -72
  19. package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -1
  20. package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +26 -1
  21. package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -1
  22. package/es2022/material/src/components/basicDialogPopup/index.js +2 -1
  23. package/es2022/material/src/components/basicDialogPopup/index.js.map +1 -1
  24. package/es2022/material/src/components/basicDialogPopup/types.js +2 -1
  25. package/es2022/material/src/components/basicDialogPopup/types.js.map +1 -1
  26. package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js +73 -74
  27. package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -1
  28. package/es2022/material/src/index.js +1 -7
  29. package/es2022/material/src/index.js.map +1 -1
  30. package/es2022/material/src/modules/dialogPopup.module.js +33 -40
  31. package/es2022/material/src/modules/dialogPopup.module.js.map +1 -1
  32. package/es2022/material/src/modules/virtualEditPopup.module.js +27 -30
  33. package/es2022/material/src/modules/virtualEditPopup.module.js.map +1 -1
  34. package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js +172 -140
  35. package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -1
  36. package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js +65 -1
  37. package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -1
  38. package/es2022/material/src/plugins/popup/index.js +1 -2
  39. package/es2022/material/src/plugins/popup/index.js.map +1 -1
  40. package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +120 -88
  41. package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -1
  42. package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +20 -1
  43. package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -1
  44. package/es2022/src/components/index.js +4 -0
  45. package/es2022/src/components/index.js.map +1 -0
  46. package/es2022/src/components/option/option.component.js +22 -19
  47. package/es2022/src/components/option/option.component.js.map +1 -1
  48. package/es2022/src/components/optionGroup/optgroup.component.js +29 -0
  49. package/es2022/src/components/optionGroup/optgroup.component.js.map +1 -0
  50. package/es2022/src/components/select/select.component.js +356 -450
  51. package/es2022/src/components/select/select.component.js.map +1 -1
  52. package/es2022/src/decorators/index.js +2 -0
  53. package/es2022/src/decorators/index.js.map +1 -0
  54. package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js +12 -0
  55. package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js.map +1 -0
  56. package/es2022/src/directives/index.js +5 -0
  57. package/es2022/src/directives/index.js.map +1 -0
  58. package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js +30 -0
  59. package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js.map +1 -0
  60. package/es2022/src/directives/optionTemplate/optionTemplate.directive.js +30 -0
  61. package/es2022/src/directives/optionTemplate/optionTemplate.directive.js.map +1 -0
  62. package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js +25 -0
  63. package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js.map +1 -0
  64. package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js +210 -0
  65. package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js.map +1 -0
  66. package/es2022/src/directives/selectEdit/selectEdit.directive.js +51 -0
  67. package/es2022/src/directives/selectEdit/selectEdit.directive.js.map +1 -0
  68. package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js +48 -0
  69. package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js.map +1 -0
  70. package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js +17 -0
  71. package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js.map +1 -0
  72. package/es2022/src/index.js +8 -41
  73. package/es2022/src/index.js.map +1 -1
  74. package/es2022/src/interfaces/index.js +20 -0
  75. package/es2022/src/interfaces/index.js.map +1 -0
  76. package/es2022/src/interfaces/initState/initState.interface.js +2 -0
  77. package/es2022/src/interfaces/initState/initState.interface.js.map +1 -0
  78. package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js +2 -0
  79. package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js.map +1 -0
  80. package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js +2 -0
  81. package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js.map +1 -0
  82. package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js +2 -0
  83. package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js.map +1 -0
  84. package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js +2 -0
  85. package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js.map +1 -0
  86. package/es2022/src/interfaces/plugins/index.js +10 -0
  87. package/es2022/src/interfaces/plugins/index.js.map +1 -0
  88. package/es2022/src/interfaces/plugins/interactions/interactions.interface.js +2 -0
  89. package/es2022/src/interfaces/plugins/interactions/interactions.interface.js.map +1 -0
  90. package/es2022/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
  91. package/es2022/src/interfaces/plugins/liveSearch/liveSearch.interface.js.map +1 -0
  92. package/es2022/src/interfaces/plugins/normalState/normalState.interface.js.map +1 -0
  93. package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js +2 -0
  94. package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js.map +1 -0
  95. package/es2022/src/interfaces/plugins/popup/popup.interface.js.map +1 -0
  96. package/es2022/src/interfaces/plugins/positioner/positioner.interface.js.map +1 -0
  97. package/es2022/src/interfaces/plugins/readonlyState/readonlyState.interface.js.map +1 -0
  98. package/es2022/src/interfaces/plugins/valueHandler/valueHandler.interface.js.map +1 -0
  99. package/es2022/src/interfaces/popupContext/popupContext.interface.js +2 -0
  100. package/es2022/src/interfaces/popupContext/popupContext.interface.js.map +1 -0
  101. package/es2022/src/interfaces/selectApi/selectApi.interface.js +2 -0
  102. package/es2022/src/interfaces/selectApi/selectApi.interface.js.map +1 -0
  103. package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js +2 -0
  104. package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js.map +1 -0
  105. package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js +2 -0
  106. package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js.map +1 -0
  107. package/es2022/src/interfaces/selectEvent/selectEvent.interface.js +2 -0
  108. package/es2022/src/interfaces/selectEvent/selectEvent.interface.js.map +1 -0
  109. package/es2022/src/interfaces/selectEvents/selectEvents.interface.js +2 -0
  110. package/es2022/src/interfaces/selectEvents/selectEvents.interface.js.map +1 -0
  111. package/es2022/src/interfaces/selectOption/selectOption.interface.js +2 -0
  112. package/es2022/src/interfaces/selectOption/selectOption.interface.js.map +1 -0
  113. package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js +2 -0
  114. package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js.map +1 -0
  115. package/es2022/src/interfaces/selectOptions/selectOptions.interface.js +2 -0
  116. package/es2022/src/interfaces/selectOptions/selectOptions.interface.js.map +1 -0
  117. package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js +2 -0
  118. package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js.map +1 -0
  119. package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js +2 -0
  120. package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js.map +1 -0
  121. package/es2022/src/interfaces/templateGatherer/templateGatherer.interface.js.map +1 -0
  122. package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js +2 -0
  123. package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js.map +1 -0
  124. package/es2022/src/misc/classes/index.js +3 -0
  125. package/es2022/src/misc/classes/index.js.map +1 -0
  126. package/es2022/src/misc/{pluginBus/pluginBus.js → classes/selectBus/selectBus.js} +17 -8
  127. package/es2022/src/misc/classes/selectBus/selectBus.js.map +1 -0
  128. package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js +163 -0
  129. package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js.map +1 -0
  130. package/es2022/src/misc/enums.js +43 -0
  131. package/es2022/src/misc/enums.js.map +1 -0
  132. package/es2022/src/misc/extensions/getValue.js +16 -11
  133. package/es2022/src/misc/extensions/getValue.js.map +1 -1
  134. package/es2022/src/misc/extensions/index.js +6 -5
  135. package/es2022/src/misc/extensions/index.js.map +1 -1
  136. package/es2022/src/misc/extensions/onFocus.js +14 -9
  137. package/es2022/src/misc/extensions/onFocus.js.map +1 -1
  138. package/es2022/src/misc/extensions/setReadonly.js +22 -17
  139. package/es2022/src/misc/extensions/setReadonly.js.map +1 -1
  140. package/es2022/src/misc/extensions/setValue.js +17 -12
  141. package/es2022/src/misc/extensions/setValue.js.map +1 -1
  142. package/es2022/src/misc/extensions/valueChange.js +17 -11
  143. package/es2022/src/misc/extensions/valueChange.js.map +1 -1
  144. package/es2022/src/misc/ngSelectOptions.interface.js.map +1 -1
  145. package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js +119 -82
  146. package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -1
  147. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +31 -1
  148. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -1
  149. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js +178 -117
  150. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -1
  151. package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js +155 -109
  152. package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -1
  153. package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js +55 -1
  154. package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -1
  155. package/es2022/src/misc/optionsGatherer/types.js +4 -3
  156. package/es2022/src/misc/optionsGatherer/types.js.map +1 -1
  157. package/es2022/src/misc/providers.js +102 -0
  158. package/es2022/src/misc/providers.js.map +1 -0
  159. package/es2022/src/misc/tokens.js +78 -0
  160. package/es2022/src/misc/tokens.js.map +1 -0
  161. package/es2022/src/misc/types.js +1 -33
  162. package/es2022/src/misc/types.js.map +1 -1
  163. package/es2022/src/modules/index.js +2 -0
  164. package/es2022/src/modules/index.js.map +1 -0
  165. package/es2022/src/modules/ngSelect.module.js +31 -75
  166. package/es2022/src/modules/ngSelect.module.js.map +1 -1
  167. package/es2022/src/modules/ngSelectEdit.module.js +39 -50
  168. package/es2022/src/modules/ngSelectEdit.module.js.map +1 -1
  169. package/es2022/src/pipes/getPlugin/getPlugin.pipe.js +17 -0
  170. package/es2022/src/pipes/getPlugin/getPlugin.pipe.js.map +1 -0
  171. package/es2022/src/pipes/index.js +4 -0
  172. package/es2022/src/pipes/index.js.map +1 -0
  173. package/es2022/src/pipes/{ngSelectHasValue.pipe.js → selectHasValue/selectHasValue.pipe.js} +7 -7
  174. package/es2022/src/pipes/selectHasValue/selectHasValue.pipe.js.map +1 -0
  175. package/es2022/src/pipes/selectValue/selectValue.pipe.js +31 -0
  176. package/es2022/src/pipes/selectValue/selectValue.pipe.js.map +1 -0
  177. package/es2022/src/plugins/index.js +10 -0
  178. package/es2022/src/plugins/index.js.map +1 -0
  179. package/es2022/src/plugins/interactions/index.js +2 -0
  180. package/es2022/src/plugins/interactions/index.js.map +1 -0
  181. package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js +36 -0
  182. package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js.map +1 -0
  183. package/es2022/src/plugins/keyboardHandler/index.js +1 -3
  184. package/es2022/src/plugins/keyboardHandler/index.js.map +1 -1
  185. package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js +36 -0
  186. package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js.map +1 -0
  187. package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js +36 -0
  188. package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js.map +1 -0
  189. package/es2022/src/plugins/liveSearch/index.js +2 -4
  190. package/es2022/src/plugins/liveSearch/index.js.map +1 -1
  191. package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js +36 -0
  192. package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js.map +1 -0
  193. package/es2022/src/plugins/normalState/index.js +1 -3
  194. package/es2022/src/plugins/normalState/index.js.map +1 -1
  195. package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js +36 -0
  196. package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js.map +1 -0
  197. package/es2022/src/plugins/optionsHandler/index.js +2 -0
  198. package/es2022/src/plugins/optionsHandler/index.js.map +1 -0
  199. package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js +50 -0
  200. package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js.map +1 -0
  201. package/es2022/src/plugins/popup/index.js +1 -3
  202. package/es2022/src/plugins/popup/index.js.map +1 -1
  203. package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js +36 -0
  204. package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js.map +1 -0
  205. package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js +36 -0
  206. package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js.map +1 -0
  207. package/es2022/src/plugins/positioner/index.js +1 -3
  208. package/es2022/src/plugins/positioner/index.js.map +1 -1
  209. package/es2022/src/plugins/readonlyState/index.js +1 -1
  210. package/es2022/src/plugins/readonlyState/index.js.map +1 -1
  211. package/es2022/src/plugins/valueHandler/index.js +1 -4
  212. package/es2022/src/plugins/valueHandler/index.js.map +1 -1
  213. package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js +81 -0
  214. package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js.map +1 -0
  215. package/extensions/src/extensions/getValue.d.ts +0 -1
  216. package/extensions/src/extensions/getValue.d.ts.map +1 -1
  217. package/extensions/src/extensions/onFocus.d.ts +0 -1
  218. package/extensions/src/extensions/onFocus.d.ts.map +1 -1
  219. package/extensions/src/extensions/patchOptions.d.ts +0 -6
  220. package/extensions/src/extensions/patchOptions.d.ts.map +1 -1
  221. package/extensions/src/extensions/reinitializeOptions.d.ts +0 -6
  222. package/extensions/src/extensions/reinitializeOptions.d.ts.map +1 -1
  223. package/extensions/src/extensions/setReadonly.d.ts +0 -1
  224. package/extensions/src/extensions/setReadonly.d.ts.map +1 -1
  225. package/extensions/src/extensions/setValue.d.ts +0 -1
  226. package/extensions/src/extensions/setValue.d.ts.map +1 -1
  227. package/extensions/src/extensions/valueChange.d.ts +0 -1
  228. package/extensions/src/extensions/valueChange.d.ts.map +1 -1
  229. package/extensions/src/index.d.ts +1 -7
  230. package/extensions/src/index.d.ts.map +1 -1
  231. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +0 -46
  232. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
  233. package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +0 -23
  234. package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts.map +1 -1
  235. package/material/src/components/basicDialogPopup/index.d.ts +0 -1
  236. package/material/src/components/basicDialogPopup/index.d.ts.map +1 -1
  237. package/material/src/components/basicDialogPopup/types.d.ts +0 -1
  238. package/material/src/components/basicDialogPopup/types.d.ts.map +1 -1
  239. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +0 -26
  240. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
  241. package/material/src/index.d.ts +1 -7
  242. package/material/src/index.d.ts.map +1 -1
  243. package/material/src/modules/dialogPopup.module.d.ts +0 -14
  244. package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
  245. package/material/src/modules/virtualEditPopup.module.d.ts +0 -12
  246. package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
  247. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +0 -82
  248. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
  249. package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +0 -59
  250. package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
  251. package/material/src/plugins/popup/index.d.ts +1 -2
  252. package/material/src/plugins/popup/index.d.ts.map +1 -1
  253. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +0 -29
  254. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
  255. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +0 -16
  256. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts.map +1 -1
  257. package/package.json +27 -19
  258. package/src/components/index.d.ts +4 -0
  259. package/src/components/index.d.ts.map +1 -0
  260. package/src/components/option/option.component.d.ts +15 -14
  261. package/src/components/option/option.component.d.ts.map +1 -1
  262. package/src/components/optionGroup/optgroup.component.d.ts +25 -0
  263. package/src/components/optionGroup/optgroup.component.d.ts.map +1 -0
  264. package/src/components/select/select.component.css +5 -0
  265. package/src/components/select/select.component.d.ts +94 -179
  266. package/src/components/select/select.component.d.ts.map +1 -1
  267. package/src/components/select/select.component.html +10 -16
  268. package/src/decorators/index.d.ts +2 -0
  269. package/src/{components/select → decorators}/index.d.ts.map +1 -1
  270. package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts +5 -0
  271. package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts.map +1 -0
  272. package/src/directives/index.d.ts +5 -0
  273. package/src/directives/index.d.ts.map +1 -0
  274. package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts +19 -0
  275. package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts.map +1 -0
  276. package/src/directives/optionTemplate/optionTemplate.directive.d.ts +19 -0
  277. package/src/directives/optionTemplate/optionTemplate.directive.d.ts.map +1 -0
  278. package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts +12 -0
  279. package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts.map +1 -0
  280. package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts +1 -0
  281. package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts.map +1 -0
  282. package/src/directives/selectEdit/selectEdit.directive.d.ts +1 -0
  283. package/src/directives/selectEdit/selectEdit.directive.d.ts.map +1 -0
  284. package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts +1 -0
  285. package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts.map +1 -0
  286. package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts +9 -0
  287. package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts.map +1 -0
  288. package/src/index.d.ts +8 -41
  289. package/src/index.d.ts.map +1 -1
  290. package/src/interfaces/index.d.ts +20 -0
  291. package/src/interfaces/index.d.ts.map +1 -0
  292. package/src/interfaces/initState/initState.interface.d.ts +10 -0
  293. package/src/interfaces/initState/initState.interface.d.ts.map +1 -0
  294. package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts +11 -0
  295. package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts.map +1 -0
  296. package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts +12 -0
  297. package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -0
  298. package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts +21 -0
  299. package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts.map +1 -0
  300. package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts +6 -0
  301. package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts.map +1 -0
  302. package/src/interfaces/plugins/index.d.ts +10 -0
  303. package/src/interfaces/plugins/index.d.ts.map +1 -0
  304. package/src/interfaces/plugins/interactions/interactions.interface.d.ts +13 -0
  305. package/src/interfaces/plugins/interactions/interactions.interface.d.ts.map +1 -0
  306. package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts +13 -0
  307. package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +1 -0
  308. package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts +13 -0
  309. package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts.map +1 -0
  310. package/src/interfaces/plugins/normalState/normalState.interface.d.ts +31 -0
  311. package/src/interfaces/plugins/normalState/normalState.interface.d.ts.map +1 -0
  312. package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts +19 -0
  313. package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts.map +1 -0
  314. package/src/interfaces/plugins/popup/popup.interface.d.ts +13 -0
  315. package/src/interfaces/plugins/popup/popup.interface.d.ts.map +1 -0
  316. package/src/interfaces/plugins/positioner/positioner.interface.d.ts +13 -0
  317. package/src/interfaces/plugins/positioner/positioner.interface.d.ts.map +1 -0
  318. package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts +12 -0
  319. package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts.map +1 -0
  320. package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts +23 -0
  321. package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts.map +1 -0
  322. package/src/interfaces/popupContext/popupContext.interface.d.ts +16 -0
  323. package/src/interfaces/popupContext/popupContext.interface.d.ts.map +1 -0
  324. package/src/interfaces/selectApi/selectApi.interface.d.ts +50 -0
  325. package/src/interfaces/selectApi/selectApi.interface.d.ts.map +1 -0
  326. package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts +29 -0
  327. package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts.map +1 -0
  328. package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts +6 -0
  329. package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts.map +1 -0
  330. package/src/interfaces/selectEvent/selectEvent.interface.d.ts +20 -0
  331. package/src/interfaces/selectEvent/selectEvent.interface.d.ts.map +1 -0
  332. package/src/interfaces/selectEvents/selectEvents.interface.d.ts +37 -0
  333. package/src/interfaces/selectEvents/selectEvents.interface.d.ts.map +1 -0
  334. package/src/interfaces/selectOption/selectOption.interface.d.ts +33 -0
  335. package/src/interfaces/selectOption/selectOption.interface.d.ts.map +1 -0
  336. package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts +21 -0
  337. package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts.map +1 -0
  338. package/src/interfaces/selectOptions/selectOptions.interface.d.ts +27 -0
  339. package/src/interfaces/selectOptions/selectOptions.interface.d.ts.map +1 -0
  340. package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts +33 -0
  341. package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts.map +1 -0
  342. package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts +44 -0
  343. package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts.map +1 -0
  344. package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts +17 -0
  345. package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts.map +1 -0
  346. package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts +11 -0
  347. package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts.map +1 -0
  348. package/src/misc/classes/index.d.ts +3 -0
  349. package/src/misc/classes/index.d.ts.map +1 -0
  350. package/src/misc/classes/selectBus/selectBus.d.ts +54 -0
  351. package/src/misc/classes/selectBus/selectBus.d.ts.map +1 -0
  352. package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts +90 -0
  353. package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts.map +1 -0
  354. package/src/misc/enums.d.ts +42 -0
  355. package/src/misc/enums.d.ts.map +1 -0
  356. package/src/misc/extensions/getValue.d.ts +0 -6
  357. package/src/misc/extensions/getValue.d.ts.map +1 -1
  358. package/src/misc/extensions/index.d.ts +0 -5
  359. package/src/misc/extensions/index.d.ts.map +1 -1
  360. package/src/misc/extensions/onFocus.d.ts +0 -7
  361. package/src/misc/extensions/onFocus.d.ts.map +1 -1
  362. package/src/misc/extensions/setReadonly.d.ts +0 -7
  363. package/src/misc/extensions/setReadonly.d.ts.map +1 -1
  364. package/src/misc/extensions/setValue.d.ts +0 -7
  365. package/src/misc/extensions/setValue.d.ts.map +1 -1
  366. package/src/misc/extensions/valueChange.d.ts +0 -7
  367. package/src/misc/extensions/valueChange.d.ts.map +1 -1
  368. package/src/misc/ngSelectOptions.interface.d.ts +0 -71
  369. package/src/misc/ngSelectOptions.interface.d.ts.map +1 -1
  370. package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +0 -69
  371. package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts.map +1 -1
  372. package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +0 -85
  373. package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts.map +1 -1
  374. package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +0 -28
  375. package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts.map +1 -1
  376. package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +0 -72
  377. package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts.map +1 -1
  378. package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +0 -52
  379. package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -1
  380. package/src/misc/optionsGatherer/types.d.ts +0 -3
  381. package/src/misc/optionsGatherer/types.d.ts.map +1 -1
  382. package/src/misc/providers.d.ts +54 -0
  383. package/src/misc/providers.d.ts.map +1 -0
  384. package/src/misc/tokens.d.ts +81 -0
  385. package/src/misc/tokens.d.ts.map +1 -0
  386. package/src/misc/types.d.ts +11 -31
  387. package/src/misc/types.d.ts.map +1 -1
  388. package/src/modules/index.d.ts +2 -0
  389. package/src/modules/index.d.ts.map +1 -0
  390. package/src/modules/ngSelect.module.d.ts +7 -20
  391. package/src/modules/ngSelect.module.d.ts.map +1 -1
  392. package/src/modules/ngSelectEdit.module.d.ts +0 -16
  393. package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
  394. package/src/pipes/getPlugin/getPlugin.pipe.d.ts +25 -0
  395. package/src/pipes/getPlugin/getPlugin.pipe.d.ts.map +1 -0
  396. package/src/pipes/index.d.ts +4 -0
  397. package/src/pipes/index.d.ts.map +1 -0
  398. package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts +16 -0
  399. package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts.map +1 -0
  400. package/src/pipes/selectValue/selectValue.pipe.d.ts +19 -0
  401. package/src/pipes/selectValue/selectValue.pipe.d.ts.map +1 -0
  402. package/src/plugins/index.d.ts +9 -0
  403. package/src/plugins/index.d.ts.map +1 -0
  404. package/src/plugins/interactions/index.d.ts +2 -0
  405. package/src/plugins/interactions/index.d.ts.map +1 -0
  406. package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts +28 -0
  407. package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts.map +1 -0
  408. package/src/plugins/keyboardHandler/index.d.ts +1 -3
  409. package/src/plugins/keyboardHandler/index.d.ts.map +1 -1
  410. package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts +28 -0
  411. package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts.map +1 -0
  412. package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts +28 -0
  413. package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts.map +1 -0
  414. package/src/plugins/liveSearch/index.d.ts +2 -4
  415. package/src/plugins/liveSearch/index.d.ts.map +1 -1
  416. package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts +28 -0
  417. package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts.map +1 -0
  418. package/src/plugins/normalState/index.d.ts +1 -3
  419. package/src/plugins/normalState/index.d.ts.map +1 -1
  420. package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts +28 -0
  421. package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts.map +1 -0
  422. package/src/plugins/optionsHandler/index.d.ts +2 -0
  423. package/src/plugins/optionsHandler/index.d.ts.map +1 -0
  424. package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts +41 -0
  425. package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts.map +1 -0
  426. package/src/plugins/popup/index.d.ts +1 -3
  427. package/src/plugins/popup/index.d.ts.map +1 -1
  428. package/src/plugins/popup/simplePopup/simplePopup.component.d.ts +28 -0
  429. package/src/plugins/popup/simplePopup/simplePopup.component.d.ts.map +1 -0
  430. package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts +28 -0
  431. package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts.map +1 -0
  432. package/src/plugins/positioner/index.d.ts +1 -3
  433. package/src/plugins/positioner/index.d.ts.map +1 -1
  434. package/src/plugins/readonlyState/index.d.ts +0 -1
  435. package/src/plugins/readonlyState/index.d.ts.map +1 -1
  436. package/src/plugins/valueHandler/index.d.ts +1 -4
  437. package/src/plugins/valueHandler/index.d.ts.map +1 -1
  438. package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts +46 -0
  439. package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts.map +1 -0
  440. package/styles/components/_grid.scss +9 -0
  441. package/styles/core/_functions.scss +10 -0
  442. package/styles/core/_misc.scss +146 -0
  443. package/styles/core/_mixins.scss +44 -0
  444. package/styles/core/_theme.scss +16 -0
  445. package/styles/index.scss +2 -0
  446. package/styles/themes/dark.scss +19 -0
  447. package/styles/themes/light.scss +19 -0
  448. package/version.bak +1 -1
  449. package/es2022/material/src/directives/types.js +0 -2
  450. package/es2022/material/src/directives/types.js.map +0 -1
  451. package/es2022/material/src/plugins/popup/components.js +0 -3
  452. package/es2022/material/src/plugins/popup/components.js.map +0 -1
  453. package/es2022/src/components/option/index.js +0 -3
  454. package/es2022/src/components/option/index.js.map +0 -1
  455. package/es2022/src/components/option/optgroup.component.js +0 -54
  456. package/es2022/src/components/option/optgroup.component.js.map +0 -1
  457. package/es2022/src/components/option/optgroup.interface.js +0 -2
  458. package/es2022/src/components/option/optgroup.interface.js.map +0 -1
  459. package/es2022/src/components/option/option.interface.js +0 -2
  460. package/es2022/src/components/option/option.interface.js.map +0 -1
  461. package/es2022/src/components/select/index.js +0 -2
  462. package/es2022/src/components/select/index.js.map +0 -1
  463. package/es2022/src/components/select/select.interface.js +0 -2
  464. package/es2022/src/components/select/select.interface.js.map +0 -1
  465. package/es2022/src/components/select/types.js +0 -6
  466. package/es2022/src/components/select/types.js.map +0 -1
  467. package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
  468. package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
  469. package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
  470. package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
  471. package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
  472. package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
  473. package/es2022/src/index.ssr.js +0 -10
  474. package/es2022/src/index.ssr.js.map +0 -1
  475. package/es2022/src/misc/index.js +0 -6
  476. package/es2022/src/misc/index.js.map +0 -1
  477. package/es2022/src/misc/ngSelectControlValueAccessor.directive.js +0 -162
  478. package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
  479. package/es2022/src/misc/plugin.interface.js +0 -2
  480. package/es2022/src/misc/plugin.interface.js.map +0 -1
  481. package/es2022/src/misc/pluginBus/pluginBus.interface.js +0 -2
  482. package/es2022/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
  483. package/es2022/src/misc/pluginBus/pluginBus.js.map +0 -1
  484. package/es2022/src/misc/templateGatherer.interface.js.map +0 -1
  485. package/es2022/src/modules/ngSelectDynamic.module.js +0 -20
  486. package/es2022/src/modules/ngSelectDynamic.module.js.map +0 -1
  487. package/es2022/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
  488. package/es2022/src/pipes/ngSelectValue.pipe.js +0 -31
  489. package/es2022/src/pipes/ngSelectValue.pipe.js.map +0 -1
  490. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -146
  491. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
  492. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
  493. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
  494. package/es2022/src/plugins/keyboardHandler/components.js +0 -3
  495. package/es2022/src/plugins/keyboardHandler/components.js.map +0 -1
  496. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -197
  497. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
  498. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
  499. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
  500. package/es2022/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
  501. package/es2022/src/plugins/keyboardHandler/types.js +0 -10
  502. package/es2022/src/plugins/keyboardHandler/types.js.map +0 -1
  503. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -164
  504. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
  505. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
  506. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
  507. package/es2022/src/plugins/liveSearch/components.js +0 -4
  508. package/es2022/src/plugins/liveSearch/components.js.map +0 -1
  509. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -313
  510. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
  511. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
  512. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
  513. package/es2022/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
  514. package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -65
  515. package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
  516. package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
  517. package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
  518. package/es2022/src/plugins/liveSearch/types.js +0 -10
  519. package/es2022/src/plugins/liveSearch/types.js.map +0 -1
  520. package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
  521. package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
  522. package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
  523. package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
  524. package/es2022/src/plugins/normalState/components.js +0 -4
  525. package/es2022/src/plugins/normalState/components.js.map +0 -1
  526. package/es2022/src/plugins/normalState/edit/editNormalState.component.js +0 -88
  527. package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
  528. package/es2022/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
  529. package/es2022/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
  530. package/es2022/src/plugins/normalState/normalState.interface.js.map +0 -1
  531. package/es2022/src/plugins/normalState/normalStateAbstract.component.js +0 -89
  532. package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
  533. package/es2022/src/plugins/normalState/types.js +0 -10
  534. package/es2022/src/plugins/normalState/types.js.map +0 -1
  535. package/es2022/src/plugins/popup/basic/basicPopup.component.js +0 -62
  536. package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
  537. package/es2022/src/plugins/popup/basic/basicPopup.interface.js +0 -2
  538. package/es2022/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
  539. package/es2022/src/plugins/popup/component.js +0 -4
  540. package/es2022/src/plugins/popup/component.js.map +0 -1
  541. package/es2022/src/plugins/popup/edit/editPopup.component.js +0 -85
  542. package/es2022/src/plugins/popup/edit/editPopup.component.js.map +0 -1
  543. package/es2022/src/plugins/popup/edit/editPopup.interface.js +0 -2
  544. package/es2022/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
  545. package/es2022/src/plugins/popup/popup.interface.js.map +0 -1
  546. package/es2022/src/plugins/popup/popupAbstract.component.js +0 -200
  547. package/es2022/src/plugins/popup/popupAbstract.component.js.map +0 -1
  548. package/es2022/src/plugins/popup/types.js +0 -10
  549. package/es2022/src/plugins/popup/types.js.map +0 -1
  550. package/es2022/src/plugins/positioner/components.js +0 -3
  551. package/es2022/src/plugins/positioner/components.js.map +0 -1
  552. package/es2022/src/plugins/positioner/default/defaultPositioner.component.js +0 -160
  553. package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
  554. package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
  555. package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
  556. package/es2022/src/plugins/positioner/no/noPositioner.component.js +0 -78
  557. package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
  558. package/es2022/src/plugins/positioner/no/noPositioner.interface.js +0 -2
  559. package/es2022/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
  560. package/es2022/src/plugins/positioner/positioner.interface.js.map +0 -1
  561. package/es2022/src/plugins/positioner/types.js +0 -10
  562. package/es2022/src/plugins/positioner/types.js.map +0 -1
  563. package/es2022/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
  564. package/es2022/src/plugins/readonlyState/types.js +0 -10
  565. package/es2022/src/plugins/readonlyState/types.js.map +0 -1
  566. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -159
  567. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
  568. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
  569. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
  570. package/es2022/src/plugins/valueHandler/components.js +0 -3
  571. package/es2022/src/plugins/valueHandler/components.js.map +0 -1
  572. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -179
  573. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
  574. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
  575. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
  576. package/es2022/src/plugins/valueHandler/types.js +0 -10
  577. package/es2022/src/plugins/valueHandler/types.js.map +0 -1
  578. package/es2022/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
  579. package/es2022/src/plugins/valueHandler/valueHandlerBase.js +0 -145
  580. package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
  581. package/material/src/directives/types.d.ts +0 -2
  582. package/material/src/directives/types.d.ts.map +0 -1
  583. package/material/src/plugins/popup/components.d.ts +0 -3
  584. package/material/src/plugins/popup/components.d.ts.map +0 -1
  585. package/src/components/option/index.d.ts +0 -3
  586. package/src/components/option/index.d.ts.map +0 -1
  587. package/src/components/option/optgroup.component.d.ts +0 -37
  588. package/src/components/option/optgroup.component.d.ts.map +0 -1
  589. package/src/components/option/optgroup.interface.d.ts +0 -20
  590. package/src/components/option/optgroup.interface.d.ts.map +0 -1
  591. package/src/components/option/option.interface.d.ts +0 -31
  592. package/src/components/option/option.interface.d.ts.map +0 -1
  593. package/src/components/select/index.d.ts +0 -2
  594. package/src/components/select/select.interface.d.ts +0 -68
  595. package/src/components/select/select.interface.d.ts.map +0 -1
  596. package/src/components/select/types.d.ts +0 -7
  597. package/src/components/select/types.d.ts.map +0 -1
  598. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +0 -11
  599. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +0 -1
  600. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +0 -11
  601. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +0 -1
  602. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +0 -21
  603. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +0 -1
  604. package/src/index.ssr.d.ts +0 -1
  605. package/src/index.ssr.d.ts.map +0 -1
  606. package/src/misc/index.d.ts +0 -6
  607. package/src/misc/index.d.ts.map +0 -1
  608. package/src/misc/ngSelectControlValueAccessor.directive.d.ts +0 -63
  609. package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +0 -1
  610. package/src/misc/plugin.interface.d.ts +0 -108
  611. package/src/misc/plugin.interface.d.ts.map +0 -1
  612. package/src/misc/pluginBus/pluginBus.d.ts +0 -49
  613. package/src/misc/pluginBus/pluginBus.d.ts.map +0 -1
  614. package/src/misc/pluginBus/pluginBus.interface.d.ts +0 -36
  615. package/src/misc/pluginBus/pluginBus.interface.d.ts.map +0 -1
  616. package/src/misc/templateGatherer.interface.d.ts +0 -17
  617. package/src/misc/templateGatherer.interface.d.ts.map +0 -1
  618. package/src/modules/ngSelectDynamic.module.d.ts +0 -11
  619. package/src/modules/ngSelectDynamic.module.d.ts.map +0 -1
  620. package/src/pipes/ngSelectHasValue.pipe.d.ts +0 -16
  621. package/src/pipes/ngSelectHasValue.pipe.d.ts.map +0 -1
  622. package/src/pipes/ngSelectValue.pipe.d.ts +0 -19
  623. package/src/pipes/ngSelectValue.pipe.d.ts.map +0 -1
  624. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +0 -58
  625. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +0 -1
  626. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +0 -12
  627. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts.map +0 -1
  628. package/src/plugins/keyboardHandler/components.d.ts +0 -3
  629. package/src/plugins/keyboardHandler/components.d.ts.map +0 -1
  630. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +0 -68
  631. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +0 -1
  632. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +0 -12
  633. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts.map +0 -1
  634. package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +0 -12
  635. package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +0 -1
  636. package/src/plugins/keyboardHandler/types.d.ts +0 -11
  637. package/src/plugins/keyboardHandler/types.d.ts.map +0 -1
  638. package/src/plugins/liveSearch/basic/basicLiveSearch.component.css +0 -11
  639. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +0 -98
  640. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +0 -1
  641. package/src/plugins/liveSearch/basic/basicLiveSearch.component.html +0 -5
  642. package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +0 -29
  643. package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts.map +0 -1
  644. package/src/plugins/liveSearch/components.d.ts +0 -4
  645. package/src/plugins/liveSearch/components.d.ts.map +0 -1
  646. package/src/plugins/liveSearch/edit/editLiveSearch.component.css +0 -13
  647. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +0 -141
  648. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +0 -1
  649. package/src/plugins/liveSearch/edit/editLiveSearch.component.html +0 -13
  650. package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +0 -37
  651. package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts.map +0 -1
  652. package/src/plugins/liveSearch/liveSearch.interface.d.ts +0 -38
  653. package/src/plugins/liveSearch/liveSearch.interface.d.ts.map +0 -1
  654. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +0 -54
  655. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +0 -1
  656. package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +0 -12
  657. package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts.map +0 -1
  658. package/src/plugins/liveSearch/types.d.ts +0 -11
  659. package/src/plugins/liveSearch/types.d.ts.map +0 -1
  660. package/src/plugins/normalState/basic/basicNormalState.component.css +0 -38
  661. package/src/plugins/normalState/basic/basicNormalState.component.d.ts +0 -17
  662. package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +0 -1
  663. package/src/plugins/normalState/basic/basicNormalState.component.html +0 -6
  664. package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +0 -29
  665. package/src/plugins/normalState/basic/basicNormalState.interface.d.ts.map +0 -1
  666. package/src/plugins/normalState/components.d.ts +0 -4
  667. package/src/plugins/normalState/components.d.ts.map +0 -1
  668. package/src/plugins/normalState/edit/editNormalState.component.css +0 -77
  669. package/src/plugins/normalState/edit/editNormalState.component.d.ts +0 -26
  670. package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +0 -1
  671. package/src/plugins/normalState/edit/editNormalState.component.html +0 -19
  672. package/src/plugins/normalState/edit/editNormalState.interface.d.ts +0 -53
  673. package/src/plugins/normalState/edit/editNormalState.interface.d.ts.map +0 -1
  674. package/src/plugins/normalState/normalState.interface.d.ts +0 -49
  675. package/src/plugins/normalState/normalState.interface.d.ts.map +0 -1
  676. package/src/plugins/normalState/normalStateAbstract.component.d.ts +0 -65
  677. package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +0 -1
  678. package/src/plugins/normalState/types.d.ts +0 -11
  679. package/src/plugins/normalState/types.d.ts.map +0 -1
  680. package/src/plugins/popup/basic/basicPopup.component.css +0 -61
  681. package/src/plugins/popup/basic/basicPopup.component.d.ts +0 -17
  682. package/src/plugins/popup/basic/basicPopup.component.d.ts.map +0 -1
  683. package/src/plugins/popup/basic/basicPopup.component.html +0 -21
  684. package/src/plugins/popup/basic/basicPopup.interface.d.ts +0 -33
  685. package/src/plugins/popup/basic/basicPopup.interface.d.ts.map +0 -1
  686. package/src/plugins/popup/component.d.ts +0 -4
  687. package/src/plugins/popup/component.d.ts.map +0 -1
  688. package/src/plugins/popup/edit/editPopup.component.css +0 -61
  689. package/src/plugins/popup/edit/editPopup.component.d.ts +0 -32
  690. package/src/plugins/popup/edit/editPopup.component.d.ts.map +0 -1
  691. package/src/plugins/popup/edit/editPopup.component.html +0 -19
  692. package/src/plugins/popup/edit/editPopup.interface.d.ts +0 -33
  693. package/src/plugins/popup/edit/editPopup.interface.d.ts.map +0 -1
  694. package/src/plugins/popup/popup.interface.d.ts +0 -52
  695. package/src/plugins/popup/popup.interface.d.ts.map +0 -1
  696. package/src/plugins/popup/popupAbstract.component.d.ts +0 -130
  697. package/src/plugins/popup/popupAbstract.component.d.ts.map +0 -1
  698. package/src/plugins/popup/types.d.ts +0 -11
  699. package/src/plugins/popup/types.d.ts.map +0 -1
  700. package/src/plugins/positioner/components.d.ts +0 -3
  701. package/src/plugins/positioner/components.d.ts.map +0 -1
  702. package/src/plugins/positioner/default/defaultPositioner.component.d.ts +0 -89
  703. package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +0 -1
  704. package/src/plugins/positioner/default/defaultPositioner.interface.d.ts +0 -12
  705. package/src/plugins/positioner/default/defaultPositioner.interface.d.ts.map +0 -1
  706. package/src/plugins/positioner/no/noPositioner.component.d.ts +0 -50
  707. package/src/plugins/positioner/no/noPositioner.component.d.ts.map +0 -1
  708. package/src/plugins/positioner/no/noPositioner.interface.d.ts +0 -12
  709. package/src/plugins/positioner/no/noPositioner.interface.d.ts.map +0 -1
  710. package/src/plugins/positioner/positioner.interface.d.ts +0 -22
  711. package/src/plugins/positioner/positioner.interface.d.ts.map +0 -1
  712. package/src/plugins/positioner/types.d.ts +0 -11
  713. package/src/plugins/positioner/types.d.ts.map +0 -1
  714. package/src/plugins/readonlyState/readonlyState.interface.d.ts +0 -12
  715. package/src/plugins/readonlyState/readonlyState.interface.d.ts.map +0 -1
  716. package/src/plugins/readonlyState/types.d.ts +0 -11
  717. package/src/plugins/readonlyState/types.d.ts.map +0 -1
  718. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +0 -51
  719. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +0 -1
  720. package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +0 -12
  721. package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts.map +0 -1
  722. package/src/plugins/valueHandler/components.d.ts +0 -3
  723. package/src/plugins/valueHandler/components.d.ts.map +0 -1
  724. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +0 -52
  725. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +0 -1
  726. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +0 -21
  727. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts.map +0 -1
  728. package/src/plugins/valueHandler/types.d.ts +0 -11
  729. package/src/plugins/valueHandler/types.d.ts.map +0 -1
  730. package/src/plugins/valueHandler/valueHandler.interface.d.ts +0 -31
  731. package/src/plugins/valueHandler/valueHandler.interface.d.ts.map +0 -1
  732. package/src/plugins/valueHandler/valueHandlerBase.d.ts +0 -115
  733. package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +0 -1
  734. /package/es2022/src/{plugins → interfaces/plugins}/keyboardHandler/keyboardHandler.interface.js +0 -0
  735. /package/es2022/src/{plugins → interfaces/plugins}/liveSearch/liveSearch.interface.js +0 -0
  736. /package/es2022/src/{plugins → interfaces/plugins}/normalState/normalState.interface.js +0 -0
  737. /package/es2022/src/{plugins → interfaces/plugins}/popup/popup.interface.js +0 -0
  738. /package/es2022/src/{plugins → interfaces/plugins}/positioner/positioner.interface.js +0 -0
  739. /package/es2022/src/{plugins → interfaces/plugins}/readonlyState/readonlyState.interface.js +0 -0
  740. /package/es2022/src/{plugins → interfaces/plugins}/valueHandler/valueHandler.interface.js +0 -0
  741. /package/es2022/src/{misc → interfaces/templateGatherer}/templateGatherer.interface.js +0 -0
@@ -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 +0,0 @@
1
- {"version":3,"file":"pluginBus.js","sourceRoot":"","sources":["../../../../src/misc/pluginBus/pluginBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;;AAMnE;;GAEG;AAEH,MAAM,OAAO,SAAS;IADtB;QAeI,gFAAgF;QAEhF;;WAEG;QACI,gBAAW,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAElE;;WAEG;QACI,kBAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;QAE1E;;WAEG;QACI,iBAAY,GAAiC,IAAI,YAAY,EAAkB,CAAC;QAEvF;;WAEG;QACI,iBAAY,GAAiC,IAAI,YAAY,EAAkB,CAAC;QAEvF;;WAEG;QACI,UAAK,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAE5D;;WAEG;QACI,oBAAe,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAEtE;;WAEG;QACM,yBAAoB,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAChF;8GAlDY,SAAS;kHAAT,SAAS;;2FAAT,SAAS;kBADrB,UAAU","sourcesContent":["import {Injectable, EventEmitter, ElementRef} from '@angular/core';\n\nimport {PluginBusOptions} from '../ngSelectOptions.interface';\nimport {NgSelectOption} from '../../components/option';\nimport {PluginBusEvents} from './pluginBus.interface';\n\n/**\n * Class represents centralized bus for plugin communications\n */\n@Injectable()\nexport class PluginBus<TValue = any> implements PluginBusEvents\n{\n //######################### public properties #########################\n\n /**\n * Options passed to select\n */\n public selectOptions: PluginBusOptions<TValue>;\n\n /**\n * HTML element that represents select itself\n */\n public selectElement: ElementRef<HTMLElement>;\n\n //######################### public properties - events #########################\n\n /**\n * Occurs when popup visibility should be toggled\n */\n public togglePopup: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Occurs when popup visibility should be changed\n */\n public showHidePopup: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /**\n * Occurs when option should be selected\n */\n public optionSelect: EventEmitter<NgSelectOption> = new EventEmitter<NgSelectOption>();\n\n /**\n * Occurs when option should be canceled\n */\n public optionCancel: EventEmitter<NgSelectOption> = new EventEmitter<NgSelectOption>();\n\n /**\n * Occurs when any part of select gains focus\n */\n public focus: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Occurs when live search should gain focus\n */\n public liveSearchFocus: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Occurs when there is need for updating displayed value\n */\n readonly updateDisplayedValue: EventEmitter<void> = new EventEmitter<void>();\n}"]}
@@ -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,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
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectDynamicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: NgSelectDynamicModule, declarations: [DynamicValueHandlerComponent] }); }
10
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectDynamicModule }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", 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;8GAArB,qBAAqB;+GAArB,qBAAqB,iBAH1B,4BAA4B;+GAGvB,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":"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;8GAXQ,oBAAoB;4GAApB,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"]}
@@ -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
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
25
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: NgSelectValuePipe, isStandalone: true, name: "ngSelectValue" }); }
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", 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,CAAC;YACG,OAAO,mBAAmB,CAAC;QAC/B,CAAC;QAED,IAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EACzB,CAAC;YACG,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;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"]}
@@ -1,146 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
2
- import { extend } from '@jscrpt/common/extend';
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
- //######################### protected properties #########################
19
- /**
20
- * Gets currently available options
21
- */
22
- get availableOptions() {
23
- return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
24
- }
25
- //######################### public properties - implementation of BasicKeyboardHandler #########################
26
- /**
27
- * Options for NgSelect plugin
28
- */
29
- get options() {
30
- return this._options;
31
- }
32
- set options(options) {
33
- this._options = extend(true, this._options, options);
34
- }
35
- //######################### constructor #########################
36
- constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
37
- this.ngSelectPlugins = ngSelectPlugins;
38
- this.pluginBus = pluginBus;
39
- this.pluginElement = pluginElement;
40
- //######################### protected methods #########################
41
- /**
42
- * Handles keyboard event
43
- * @param event - Keyboard event that occured
44
- */
45
- this._handleKeyboard = (event) => {
46
- if (event.key == 'ArrowDown' || event.key == 'ArrowUp') {
47
- this.pluginBus.showHidePopup.emit(true);
48
- const activeOption = this.availableOptions.find(itm => itm.active);
49
- if (activeOption) {
50
- let index = this.availableOptions.indexOf(activeOption);
51
- activeOption.active = false;
52
- //move down cursor
53
- if (event.key == 'ArrowDown') {
54
- index += 1;
55
- }
56
- //move up cursor
57
- else {
58
- index -= 1;
59
- }
60
- if (index < 0) {
61
- index = this.availableOptions.length - 1;
62
- }
63
- index = index % this.availableOptions.length;
64
- this.availableOptions[index].active = true;
65
- }
66
- //none active before
67
- else if (this.availableOptions.length) {
68
- this.availableOptions[0].active = true;
69
- }
70
- this._popup.invalidateVisuals();
71
- event.preventDefault();
72
- }
73
- //prevent enter if popup is opened
74
- if (event.key == 'Enter' && this._popup.popupElement) {
75
- const activeOption = this.availableOptions.find(itm => itm.active);
76
- if (activeOption) {
77
- this.pluginBus.optionSelect.emit(activeOption);
78
- }
79
- event.preventDefault();
80
- }
81
- if (event.key == 'Tab' || event.key == 'Escape') {
82
- this.pluginBus.showHidePopup.emit(false);
83
- }
84
- };
85
- this._options = extend(true, {}, defaultOptions, 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
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", 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 }); }
123
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: BasicKeyboardHandlerComponent, isStandalone: false, selector: "ng-basic-keyboard-handler", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
124
- }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicKeyboardHandlerComponent, decorators: [{
126
- type: Component,
127
- args: [{
128
- selector: 'ng-basic-keyboard-handler',
129
- template: '',
130
- standalone: false,
131
- changeDetection: ChangeDetectionStrategy.OnPush
132
- }]
133
- }], ctorParameters: () => [{ type: undefined, decorators: [{
134
- type: Inject,
135
- args: [NG_SELECT_PLUGIN_INSTANCES]
136
- }, {
137
- type: Optional
138
- }] }, { type: i1.PluginBus, decorators: [{
139
- type: Optional
140
- }] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
141
- type: Inject,
142
- args: [KEYBOARD_HANDLER_OPTIONS]
143
- }, {
144
- type: Optional
145
- }] }] });
146
- //# sourceMappingURL=basicKeyboardHandler.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"basicKeyboardHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAK7C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PzC,SAAS;mBACV;oBACI,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAwCgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,wBAAwB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy} from '@angular/core';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {BasicKeyboardHandlerOptions, BasicKeyboardHandler} from './basicKeyboardHandler.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {KEYBOARD_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for keyboard handler\n * @internal\n */\nconst defaultOptions: BasicKeyboardHandlerOptions =\n{\n};\n\n/**\n * Component used for obtaining basic keyboard handler html element\n */\n@Component(\n{\n selector: 'ng-basic-keyboard-handler',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicKeyboardHandlerComponent implements BasicKeyboardHandler, NgSelectPlugin<BasicKeyboardHandlerOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: BasicKeyboardHandlerOptions;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n //######################### protected properties #########################\n\n /**\n * Gets currently available options\n */\n protected get availableOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.availableOptions;\n }\n\n //######################### public properties - implementation of BasicKeyboardHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicKeyboardHandlerOptions\n {\n return this._options;\n }\n public set options(options: BasicKeyboardHandlerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(KEYBOARD_HANDLER_OPTIONS) @Optional() options?: BasicKeyboardHandlerOptions)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);\n }\n }\n\n //######################### public methods - implementation of BasicKeyboardHandler #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);\n }\n\n const popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._popup = null;\n }\n\n if(!this._popup)\n {\n this._popup = popup;\n }\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles keyboard event\n * @param event - Keyboard event that occured\n */\n protected _handleKeyboard = (event: KeyboardEvent) =>\n {\n if(event.key == 'ArrowDown' || event.key == 'ArrowUp')\n {\n this.pluginBus.showHidePopup.emit(true);\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n if(activeOption)\n {\n let index = this.availableOptions.indexOf(activeOption);\n activeOption.active = false;\n\n //move down cursor\n if(event.key == 'ArrowDown')\n {\n index += 1;\n }\n //move up cursor\n else\n {\n index -= 1;\n }\n\n if(index < 0)\n {\n index = this.availableOptions.length - 1;\n }\n\n index = index % this.availableOptions.length;\n\n this.availableOptions[index].active = true;\n }\n //none active before\n else if(this.availableOptions.length)\n {\n this.availableOptions[0].active = true;\n }\n\n this._popup.invalidateVisuals();\n event.preventDefault();\n }\n\n //prevent enter if popup is opened\n if(event.key == 'Enter' && this._popup.popupElement)\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n if(activeOption)\n {\n this.pluginBus.optionSelect.emit(activeOption);\n }\n\n event.preventDefault();\n }\n\n if(event.key == 'Tab' || event.key == 'Escape')\n {\n this.pluginBus.showHidePopup.emit(false);\n }\n };\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=basicKeyboardHandler.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"basicKeyboardHandler.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {KeyboardHandler, KeyboardHandlerOptions} from '../keyboardHandler.interface';\n\n/**\n * Basic keyboard handler options\n */\nexport interface BasicKeyboardHandlerOptions extends KeyboardHandlerOptions\n{\n}\n\n/**\n * Public API for 'BasicKeyboardHandlerComponent'\n */\nexport interface BasicKeyboardHandler extends KeyboardHandler\n{\n}"]}
@@ -1,3 +0,0 @@
1
- export * from './basic/basicKeyboardHandler.component';
2
- export * from './edit/editKeyboardHandler.component';
3
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/keyboardHandler/components.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC","sourcesContent":["export * from './basic/basicKeyboardHandler.component';\nexport * from './edit/editKeyboardHandler.component';"]}
@@ -1,197 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
2
- import { extend } from '@jscrpt/common/extend';
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 { VALUE_HANDLER } from '../../valueHandler/types';
8
- import { LIVE_SEARCH } from '../../liveSearch/types';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "../../../misc/pluginBus/pluginBus";
11
- /**
12
- * Default options for keyboard handler
13
- * @internal
14
- */
15
- const defaultOptions = {};
16
- /**
17
- * Component used for obtaining edit keyboard handler html element
18
- */
19
- export class EditKeyboardHandlerComponent {
20
- //######################### protected properties #########################
21
- /**
22
- * Gets currently available options
23
- */
24
- get availableOptions() {
25
- return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
26
- }
27
- //######################### public properties - implementation of EditKeyboardHandler #########################
28
- /**
29
- * Options for NgSelect plugin
30
- */
31
- get options() {
32
- return this._options;
33
- }
34
- set options(options) {
35
- this._options = extend(true, this._options, options);
36
- }
37
- //######################### constructor #########################
38
- constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
39
- this.ngSelectPlugins = ngSelectPlugins;
40
- this.pluginBus = pluginBus;
41
- this.pluginElement = pluginElement;
42
- //######################### protected methods #########################
43
- /**
44
- * Handles keyboard event
45
- * @param event - Keyboard event that occured
46
- */
47
- this._handleKeyboard = (event) => {
48
- if (event.key == 'ArrowDown' || event.key == 'ArrowUp') {
49
- this.pluginBus.showHidePopup.emit(true);
50
- const activeOption = this.availableOptions.find(itm => itm.active);
51
- //update active option
52
- if (activeOption) {
53
- let index = this.availableOptions.indexOf(activeOption);
54
- activeOption.active = false;
55
- //move down cursor
56
- if (event.key == 'ArrowDown') {
57
- index += 1;
58
- }
59
- //move up cursor
60
- else {
61
- index -= 1;
62
- }
63
- if (index < 0) {
64
- index = this.availableOptions.length - 1;
65
- }
66
- //first if oveflow
67
- index = index % this.availableOptions.length;
68
- this.availableOptions[index].active = true;
69
- }
70
- //none active before
71
- else if (this.availableOptions.length) {
72
- this.availableOptions[0].active = true;
73
- }
74
- this._popup.invalidateVisuals();
75
- event.preventDefault();
76
- }
77
- //prevent enter if popup is opened and select option
78
- if (event.key == 'Enter' && this._popup.popupElement) {
79
- const activeOption = this.availableOptions.find(itm => itm.active);
80
- if (activeOption) {
81
- this.pluginBus.optionSelect.emit(activeOption);
82
- }
83
- //add non existing
84
- else if (this.pluginBus.selectOptions.useNonExistingAsValue) {
85
- this.pluginBus.optionSelect.emit({
86
- text: this._liveSearch.searchValue,
87
- value: this._liveSearch.searchValue,
88
- selected: true
89
- });
90
- }
91
- event.preventDefault();
92
- }
93
- //select if active if popup is opened
94
- if (event.key == 'Tab' && this._popup.popupElement) {
95
- const active = this.availableOptions.find(itm => itm.active);
96
- if (active) {
97
- this.pluginBus.optionSelect.emit(active);
98
- }
99
- //add non existing
100
- else if (this.pluginBus.selectOptions.useNonExistingAsValue) {
101
- this.pluginBus.optionSelect.emit({
102
- text: this._liveSearch.searchValue,
103
- value: this._liveSearch.searchValue,
104
- selected: true
105
- });
106
- }
107
- this.pluginBus.showHidePopup.emit(false);
108
- this.pluginBus.updateDisplayedValue.emit();
109
- }
110
- //cancel event if multi and empty
111
- if (event.key == 'Backspace' && this.pluginBus.selectOptions.multiple && !this._liveSearch.searchValue) {
112
- const options = this._valueHandler.selectedOptions;
113
- if (options && Array.isArray(options) && options.length) {
114
- this.pluginBus.optionCancel.emit(options[options.length - 1]);
115
- }
116
- }
117
- //close on esc
118
- if (event.key == 'Escape') {
119
- this.pluginBus.showHidePopup.emit(false);
120
- }
121
- };
122
- this._options = extend(true, {}, defaultOptions, options);
123
- }
124
- //######################### public methods - implementation of OnDestroy #########################
125
- /**
126
- * Called when component is destroyed
127
- */
128
- ngOnDestroy() {
129
- if (this.pluginBus.selectElement) {
130
- this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);
131
- }
132
- }
133
- //######################### public methods - implementation of EditKeyboardHandler #########################
134
- /**
135
- * Initialize plugin, to be ready to use, initialize communication with other plugins
136
- */
137
- initialize() {
138
- if (this.pluginBus.selectElement) {
139
- this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);
140
- }
141
- const popup = this.ngSelectPlugins[POPUP];
142
- if (this._popup && this._popup != popup) {
143
- this._popup = null;
144
- }
145
- if (!this._popup) {
146
- this._popup = popup;
147
- }
148
- const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
149
- if (this._valueHandler && this._valueHandler != valueHandler) {
150
- this._valueHandler = null;
151
- }
152
- if (!this._valueHandler) {
153
- this._valueHandler = valueHandler;
154
- }
155
- const liveSearch = this.ngSelectPlugins[LIVE_SEARCH];
156
- if (this._liveSearch && this._liveSearch != liveSearch) {
157
- this._liveSearch = null;
158
- }
159
- if (!this._liveSearch) {
160
- this._liveSearch = liveSearch;
161
- }
162
- }
163
- /**
164
- * Initialize plugin options, all operations required to be done with plugin options are handled here
165
- */
166
- initOptions() {
167
- }
168
- /**
169
- * Explicitly runs invalidation of content (change detection)
170
- */
171
- invalidateVisuals() {
172
- }
173
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditKeyboardHandlerComponent, 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 }); }
174
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: EditKeyboardHandlerComponent, isStandalone: false, selector: "ng-edit-keyboard-handler", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
175
- }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditKeyboardHandlerComponent, decorators: [{
177
- type: Component,
178
- args: [{
179
- selector: 'ng-edit-keyboard-handler',
180
- template: '',
181
- standalone: false,
182
- changeDetection: ChangeDetectionStrategy.OnPush
183
- }]
184
- }], ctorParameters: () => [{ type: undefined, decorators: [{
185
- type: Inject,
186
- args: [NG_SELECT_PLUGIN_INSTANCES]
187
- }, {
188
- type: Optional
189
- }] }, { type: i1.PluginBus, decorators: [{
190
- type: Optional
191
- }] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
192
- type: Inject,
193
- args: [KEYBOARD_HANDLER_OPTIONS]
194
- }, {
195
- type: Optional
196
- }] }] });
197
- //# sourceMappingURL=editKeyboardHandler.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editKeyboardHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/keyboardHandler/edit/editKeyboardHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAK7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,wBAAwB,EAAC,MAAM,UAAU,CAAC;AAGlD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAE5D,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;;;AAEnD;;;GAGG;AACH,MAAM,cAAc,GACpB,EACC,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,4BAA4B;IAwBrC,0EAA0E;IAE1E;;OAEG;IACH,IAAc,gBAAgB;QAE1B,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,gBAAgB,CAAC;IACzE,CAAC;IAED,+GAA+G;IAE/G;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CA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IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,IAAI,UAAU,EACrD,CAAC;YACG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAC5B,CAAC;QAED,IAAG,CAAC,IAAI,CAAC,WAAW,EACpB,CAAC;YACG,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAClC,CAAC;IACL,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;8GAnIQ,4BAA4B,kBAiDjB,0BAA0B,gGAG1B,wBAAwB;kGApDnC,4BAA4B,qFAJ3B,EAAE;;2FAIH,4BAA4B;kBAPxC,SAAS;mBACV;oBACI,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAkDgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,wBAAwB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy} from '@angular/core';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {EditKeyboardHandlerOptions, EditKeyboardHandler} from './editKeyboardHandler.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {KEYBOARD_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {ValueHandler} from '../../valueHandler';\nimport {VALUE_HANDLER} from '../../valueHandler/types';\nimport {LiveSearch} from '../../liveSearch';\nimport {LIVE_SEARCH} from '../../liveSearch/types';\n\n/**\n * Default options for keyboard handler\n * @internal\n */\nconst defaultOptions: EditKeyboardHandlerOptions =\n{\n};\n\n/**\n * Component used for obtaining edit keyboard handler html element\n */\n@Component(\n{\n selector: 'ng-edit-keyboard-handler',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EditKeyboardHandlerComponent implements EditKeyboardHandler, NgSelectPlugin<EditKeyboardHandlerOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: EditKeyboardHandlerOptions;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Value handler used for hanling current value\n */\n protected _valueHandler: ValueHandler;\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n //######################### protected properties #########################\n\n /**\n * Gets currently available options\n */\n protected get availableOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.availableOptions;\n }\n\n //######################### public properties - implementation of EditKeyboardHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): EditKeyboardHandlerOptions\n {\n return this._options;\n }\n public set options(options: EditKeyboardHandlerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(KEYBOARD_HANDLER_OPTIONS) @Optional() options?: EditKeyboardHandlerOptions)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);\n }\n }\n\n //######################### public methods - implementation of EditKeyboardHandler #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);\n }\n\n const popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._popup = null;\n }\n\n if(!this._popup)\n {\n this._popup = popup;\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n }\n\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._liveSearch = null;\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n }\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles keyboard event\n * @param event - Keyboard event that occured\n */\n protected _handleKeyboard = (event: KeyboardEvent) =>\n {\n if(event.key == 'ArrowDown' || event.key == 'ArrowUp')\n {\n this.pluginBus.showHidePopup.emit(true);\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n //update active option\n if(activeOption)\n {\n let index = this.availableOptions.indexOf(activeOption);\n activeOption.active = false;\n\n //move down cursor\n if(event.key == 'ArrowDown')\n {\n index += 1;\n }\n //move up cursor\n else\n {\n index -= 1;\n }\n\n if(index < 0)\n {\n index = this.availableOptions.length - 1;\n }\n\n //first if oveflow\n index = index % this.availableOptions.length;\n\n this.availableOptions[index].active = true;\n }\n //none active before\n else if(this.availableOptions.length)\n {\n this.availableOptions[0].active = true;\n }\n\n this._popup.invalidateVisuals();\n event.preventDefault();\n }\n\n //prevent enter if popup is opened and select option\n if(event.key == 'Enter' && this._popup.popupElement)\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n if(activeOption)\n {\n this.pluginBus.optionSelect.emit(activeOption);\n }\n //add non existing\n else if(this.pluginBus.selectOptions.useNonExistingAsValue)\n {\n this.pluginBus.optionSelect.emit(\n <ɵNgSelectOption>\n {\n text: this._liveSearch.searchValue,\n value: this._liveSearch.searchValue,\n selected: true\n });\n }\n\n event.preventDefault();\n }\n\n //select if active if popup is opened\n if(event.key == 'Tab' && this._popup.popupElement)\n {\n const active = this.availableOptions.find(itm => itm.active);\n\n if(active)\n {\n this.pluginBus.optionSelect.emit(active);\n }\n //add non existing\n else if(this.pluginBus.selectOptions.useNonExistingAsValue)\n {\n this.pluginBus.optionSelect.emit(\n <ɵNgSelectOption>\n {\n text: this._liveSearch.searchValue,\n value: this._liveSearch.searchValue,\n selected: true\n });\n }\n\n this.pluginBus.showHidePopup.emit(false);\n this.pluginBus.updateDisplayedValue.emit();\n }\n\n //cancel event if multi and empty\n if(event.key == 'Backspace' && this.pluginBus.selectOptions.multiple && !this._liveSearch.searchValue)\n {\n const options = this._valueHandler.selectedOptions;\n\n if(options && Array.isArray(options) && options.length)\n {\n this.pluginBus.optionCancel.emit(options[options.length - 1]);\n }\n }\n\n //close on esc\n if(event.key == 'Escape')\n {\n this.pluginBus.showHidePopup.emit(false);\n }\n };\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=editKeyboardHandler.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editKeyboardHandler.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {KeyboardHandler, KeyboardHandlerOptions} from '../keyboardHandler.interface';\n\n/**\n * Edit keyboard handler options\n */\nexport interface EditKeyboardHandlerOptions extends KeyboardHandlerOptions\n{\n}\n\n/**\n * Public API for 'EditKeyboardHandlerComponent'\n */\nexport interface EditKeyboardHandler extends KeyboardHandler\n{\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyboardHandler.interface.js","sourceRoot":"","sources":["../../../../src/plugins/keyboardHandler/keyboardHandler.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {PluginOptions, NgSelectPlugin} from '../../misc';\n\n/**\n * Options for keyboard handler plugin\n */\nexport interface KeyboardHandlerOptions extends PluginOptions\n{\n}\n\n/**\n * Keyboard handler plugin interface\n */\nexport interface KeyboardHandler extends NgSelectPlugin\n{\n}"]}
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Constant used for accessing keyboard handler plugin in NgSelect
4
- */
5
- export const KEYBOARD_HANDLER = 'KEYBOARD_HANDLER';
6
- /**
7
- * Token for injecting options for keyboard handler plugin
8
- */
9
- export const KEYBOARD_HANDLER_OPTIONS = new InjectionToken('KEYBOARD_HANDLER_OPTIONS');
10
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/keyboardHandler/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA2C,IAAI,cAAc,CAAyB,0BAA0B,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {KeyboardHandlerOptions} from './keyboardHandler.interface';\n\n/**\n * Constant used for accessing keyboard handler plugin in NgSelect\n */\nexport const KEYBOARD_HANDLER = 'KEYBOARD_HANDLER';\n\n/**\n * Token for injecting options for keyboard handler plugin\n */\nexport const KEYBOARD_HANDLER_OPTIONS: InjectionToken<KeyboardHandlerOptions> = new InjectionToken<KeyboardHandlerOptions>('KEYBOARD_HANDLER_OPTIONS');"]}