@anglr/select 15.0.0 → 16.0.0-beta.20260225131351

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 (737) hide show
  1. package/changelog.md +130 -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 +355 -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 +4 -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/index.js +8 -41
  71. package/es2022/src/index.js.map +1 -1
  72. package/es2022/src/interfaces/index.js +20 -0
  73. package/es2022/src/interfaces/index.js.map +1 -0
  74. package/es2022/src/interfaces/initState/initState.interface.js +2 -0
  75. package/es2022/src/interfaces/initState/initState.interface.js.map +1 -0
  76. package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js +2 -0
  77. package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js.map +1 -0
  78. package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js +2 -0
  79. package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js.map +1 -0
  80. package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js +2 -0
  81. package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js.map +1 -0
  82. package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js +2 -0
  83. package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js.map +1 -0
  84. package/es2022/src/interfaces/plugins/index.js +10 -0
  85. package/es2022/src/interfaces/plugins/index.js.map +1 -0
  86. package/es2022/src/interfaces/plugins/interactions/interactions.interface.js +2 -0
  87. package/es2022/src/interfaces/plugins/interactions/interactions.interface.js.map +1 -0
  88. package/es2022/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
  89. package/es2022/src/interfaces/plugins/liveSearch/liveSearch.interface.js.map +1 -0
  90. package/es2022/src/interfaces/plugins/normalState/normalState.interface.js.map +1 -0
  91. package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js +2 -0
  92. package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js.map +1 -0
  93. package/es2022/src/interfaces/plugins/popup/popup.interface.js.map +1 -0
  94. package/es2022/src/interfaces/plugins/positioner/positioner.interface.js.map +1 -0
  95. package/es2022/src/interfaces/plugins/readonlyState/readonlyState.interface.js.map +1 -0
  96. package/es2022/src/interfaces/plugins/valueHandler/valueHandler.interface.js.map +1 -0
  97. package/es2022/src/interfaces/popupContext/popupContext.interface.js +2 -0
  98. package/es2022/src/interfaces/popupContext/popupContext.interface.js.map +1 -0
  99. package/es2022/src/interfaces/selectApi/selectApi.interface.js +2 -0
  100. package/es2022/src/interfaces/selectApi/selectApi.interface.js.map +1 -0
  101. package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js +2 -0
  102. package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js.map +1 -0
  103. package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js +2 -0
  104. package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js.map +1 -0
  105. package/es2022/src/interfaces/selectEvent/selectEvent.interface.js +2 -0
  106. package/es2022/src/interfaces/selectEvent/selectEvent.interface.js.map +1 -0
  107. package/es2022/src/interfaces/selectEvents/selectEvents.interface.js +2 -0
  108. package/es2022/src/interfaces/selectEvents/selectEvents.interface.js.map +1 -0
  109. package/es2022/src/interfaces/selectOption/selectOption.interface.js +2 -0
  110. package/es2022/src/interfaces/selectOption/selectOption.interface.js.map +1 -0
  111. package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js +2 -0
  112. package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js.map +1 -0
  113. package/es2022/src/interfaces/selectOptions/selectOptions.interface.js +2 -0
  114. package/es2022/src/interfaces/selectOptions/selectOptions.interface.js.map +1 -0
  115. package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js +2 -0
  116. package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js.map +1 -0
  117. package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js +2 -0
  118. package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js.map +1 -0
  119. package/es2022/src/interfaces/templateGatherer/templateGatherer.interface.js.map +1 -0
  120. package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js +2 -0
  121. package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js.map +1 -0
  122. package/es2022/src/misc/classes/index.js +3 -0
  123. package/es2022/src/misc/classes/index.js.map +1 -0
  124. package/es2022/src/misc/{pluginBus/pluginBus.js → classes/selectBus/selectBus.js} +13 -8
  125. package/es2022/src/misc/classes/selectBus/selectBus.js.map +1 -0
  126. package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js +163 -0
  127. package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js.map +1 -0
  128. package/es2022/src/misc/enums.js +43 -0
  129. package/es2022/src/misc/enums.js.map +1 -0
  130. package/es2022/src/misc/extensions/getValue.js +16 -11
  131. package/es2022/src/misc/extensions/getValue.js.map +1 -1
  132. package/es2022/src/misc/extensions/index.js +6 -5
  133. package/es2022/src/misc/extensions/index.js.map +1 -1
  134. package/es2022/src/misc/extensions/onFocus.js +14 -9
  135. package/es2022/src/misc/extensions/onFocus.js.map +1 -1
  136. package/es2022/src/misc/extensions/setReadonly.js +22 -17
  137. package/es2022/src/misc/extensions/setReadonly.js.map +1 -1
  138. package/es2022/src/misc/extensions/setValue.js +17 -12
  139. package/es2022/src/misc/extensions/setValue.js.map +1 -1
  140. package/es2022/src/misc/extensions/valueChange.js +17 -11
  141. package/es2022/src/misc/extensions/valueChange.js.map +1 -1
  142. package/es2022/src/misc/ngSelectOptions.interface.js.map +1 -1
  143. package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js +119 -82
  144. package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -1
  145. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +31 -1
  146. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -1
  147. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js +178 -117
  148. package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -1
  149. package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js +155 -109
  150. package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -1
  151. package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js +55 -1
  152. package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -1
  153. package/es2022/src/misc/optionsGatherer/types.js +4 -3
  154. package/es2022/src/misc/optionsGatherer/types.js.map +1 -1
  155. package/es2022/src/misc/providers.js +102 -0
  156. package/es2022/src/misc/providers.js.map +1 -0
  157. package/es2022/src/misc/tokens.js +42 -0
  158. package/es2022/src/misc/tokens.js.map +1 -0
  159. package/es2022/src/misc/types.js +1 -33
  160. package/es2022/src/misc/types.js.map +1 -1
  161. package/es2022/src/modules/index.js +2 -0
  162. package/es2022/src/modules/index.js.map +1 -0
  163. package/es2022/src/modules/ngSelect.module.js +31 -75
  164. package/es2022/src/modules/ngSelect.module.js.map +1 -1
  165. package/es2022/src/modules/ngSelectEdit.module.js +39 -50
  166. package/es2022/src/modules/ngSelectEdit.module.js.map +1 -1
  167. package/es2022/src/pipes/getPlugin/getPlugin.pipe.js +17 -0
  168. package/es2022/src/pipes/getPlugin/getPlugin.pipe.js.map +1 -0
  169. package/es2022/src/pipes/index.js +4 -0
  170. package/es2022/src/pipes/index.js.map +1 -0
  171. package/es2022/src/pipes/{ngSelectHasValue.pipe.js → selectHasValue/selectHasValue.pipe.js} +7 -7
  172. package/es2022/src/pipes/selectHasValue/selectHasValue.pipe.js.map +1 -0
  173. package/es2022/src/pipes/selectValue/selectValue.pipe.js +31 -0
  174. package/es2022/src/pipes/selectValue/selectValue.pipe.js.map +1 -0
  175. package/es2022/src/plugins/index.js +10 -0
  176. package/es2022/src/plugins/index.js.map +1 -0
  177. package/es2022/src/plugins/interactions/index.js +2 -0
  178. package/es2022/src/plugins/interactions/index.js.map +1 -0
  179. package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js +41 -0
  180. package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js.map +1 -0
  181. package/es2022/src/plugins/keyboardHandler/index.js +1 -3
  182. package/es2022/src/plugins/keyboardHandler/index.js.map +1 -1
  183. package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js +41 -0
  184. package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js.map +1 -0
  185. package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js +41 -0
  186. package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js.map +1 -0
  187. package/es2022/src/plugins/liveSearch/index.js +2 -4
  188. package/es2022/src/plugins/liveSearch/index.js.map +1 -1
  189. package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js +41 -0
  190. package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js.map +1 -0
  191. package/es2022/src/plugins/normalState/index.js +1 -3
  192. package/es2022/src/plugins/normalState/index.js.map +1 -1
  193. package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js +41 -0
  194. package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js.map +1 -0
  195. package/es2022/src/plugins/optionsHandler/index.js +2 -0
  196. package/es2022/src/plugins/optionsHandler/index.js.map +1 -0
  197. package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js +41 -0
  198. package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js.map +1 -0
  199. package/es2022/src/plugins/popup/index.js +1 -3
  200. package/es2022/src/plugins/popup/index.js.map +1 -1
  201. package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js +41 -0
  202. package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js.map +1 -0
  203. package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js +41 -0
  204. package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js.map +1 -0
  205. package/es2022/src/plugins/positioner/index.js +1 -3
  206. package/es2022/src/plugins/positioner/index.js.map +1 -1
  207. package/es2022/src/plugins/readonlyState/index.js +1 -1
  208. package/es2022/src/plugins/readonlyState/index.js.map +1 -1
  209. package/es2022/src/plugins/valueHandler/basicValueHandler/basicValueHandler.component.js +41 -0
  210. package/es2022/src/plugins/valueHandler/basicValueHandler/basicValueHandler.component.js.map +1 -0
  211. package/es2022/src/plugins/valueHandler/index.js +1 -4
  212. package/es2022/src/plugins/valueHandler/index.js.map +1 -1
  213. package/extensions/src/extensions/getValue.d.ts +0 -1
  214. package/extensions/src/extensions/getValue.d.ts.map +1 -1
  215. package/extensions/src/extensions/onFocus.d.ts +0 -1
  216. package/extensions/src/extensions/onFocus.d.ts.map +1 -1
  217. package/extensions/src/extensions/patchOptions.d.ts +0 -6
  218. package/extensions/src/extensions/patchOptions.d.ts.map +1 -1
  219. package/extensions/src/extensions/reinitializeOptions.d.ts +0 -6
  220. package/extensions/src/extensions/reinitializeOptions.d.ts.map +1 -1
  221. package/extensions/src/extensions/setReadonly.d.ts +0 -1
  222. package/extensions/src/extensions/setReadonly.d.ts.map +1 -1
  223. package/extensions/src/extensions/setValue.d.ts +0 -1
  224. package/extensions/src/extensions/setValue.d.ts.map +1 -1
  225. package/extensions/src/extensions/valueChange.d.ts +0 -1
  226. package/extensions/src/extensions/valueChange.d.ts.map +1 -1
  227. package/extensions/src/index.d.ts +1 -7
  228. package/extensions/src/index.d.ts.map +1 -1
  229. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +0 -46
  230. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
  231. package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +0 -23
  232. package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts.map +1 -1
  233. package/material/src/components/basicDialogPopup/index.d.ts +0 -1
  234. package/material/src/components/basicDialogPopup/index.d.ts.map +1 -1
  235. package/material/src/components/basicDialogPopup/types.d.ts +0 -1
  236. package/material/src/components/basicDialogPopup/types.d.ts.map +1 -1
  237. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +0 -26
  238. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
  239. package/material/src/index.d.ts +1 -7
  240. package/material/src/index.d.ts.map +1 -1
  241. package/material/src/modules/dialogPopup.module.d.ts +0 -14
  242. package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
  243. package/material/src/modules/virtualEditPopup.module.d.ts +0 -12
  244. package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
  245. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +0 -82
  246. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
  247. package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +0 -59
  248. package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
  249. package/material/src/plugins/popup/index.d.ts +1 -2
  250. package/material/src/plugins/popup/index.d.ts.map +1 -1
  251. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +0 -29
  252. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
  253. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +0 -16
  254. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts.map +1 -1
  255. package/package.json +25 -19
  256. package/src/components/index.d.ts +4 -0
  257. package/src/components/index.d.ts.map +1 -0
  258. package/src/components/option/option.component.d.ts +15 -14
  259. package/src/components/option/option.component.d.ts.map +1 -1
  260. package/src/components/optionGroup/optgroup.component.d.ts +25 -0
  261. package/src/components/optionGroup/optgroup.component.d.ts.map +1 -0
  262. package/src/components/select/select.component.css +5 -0
  263. package/src/components/select/select.component.d.ts +94 -179
  264. package/src/components/select/select.component.d.ts.map +1 -1
  265. package/src/components/select/select.component.html +10 -16
  266. package/src/decorators/index.d.ts +2 -0
  267. package/src/{components/select → decorators}/index.d.ts.map +1 -1
  268. package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts +5 -0
  269. package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts.map +1 -0
  270. package/src/directives/index.d.ts +4 -0
  271. package/src/directives/index.d.ts.map +1 -0
  272. package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts +19 -0
  273. package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts.map +1 -0
  274. package/src/directives/optionTemplate/optionTemplate.directive.d.ts +19 -0
  275. package/src/directives/optionTemplate/optionTemplate.directive.d.ts.map +1 -0
  276. package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts +12 -0
  277. package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts.map +1 -0
  278. package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts +1 -0
  279. package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts.map +1 -0
  280. package/src/directives/selectEdit/selectEdit.directive.d.ts +1 -0
  281. package/src/directives/selectEdit/selectEdit.directive.d.ts.map +1 -0
  282. package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts +1 -0
  283. package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts.map +1 -0
  284. package/src/index.d.ts +8 -41
  285. package/src/index.d.ts.map +1 -1
  286. package/src/interfaces/index.d.ts +20 -0
  287. package/src/interfaces/index.d.ts.map +1 -0
  288. package/src/interfaces/initState/initState.interface.d.ts +10 -0
  289. package/src/interfaces/initState/initState.interface.d.ts.map +1 -0
  290. package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts +11 -0
  291. package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts.map +1 -0
  292. package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts +12 -0
  293. package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -0
  294. package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts +21 -0
  295. package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts.map +1 -0
  296. package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts +6 -0
  297. package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts.map +1 -0
  298. package/src/interfaces/plugins/index.d.ts +10 -0
  299. package/src/interfaces/plugins/index.d.ts.map +1 -0
  300. package/src/interfaces/plugins/interactions/interactions.interface.d.ts +13 -0
  301. package/src/interfaces/plugins/interactions/interactions.interface.d.ts.map +1 -0
  302. package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts +13 -0
  303. package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +1 -0
  304. package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts +13 -0
  305. package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts.map +1 -0
  306. package/src/interfaces/plugins/normalState/normalState.interface.d.ts +31 -0
  307. package/src/interfaces/plugins/normalState/normalState.interface.d.ts.map +1 -0
  308. package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts +13 -0
  309. package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts.map +1 -0
  310. package/src/interfaces/plugins/popup/popup.interface.d.ts +13 -0
  311. package/src/interfaces/plugins/popup/popup.interface.d.ts.map +1 -0
  312. package/src/interfaces/plugins/positioner/positioner.interface.d.ts +13 -0
  313. package/src/interfaces/plugins/positioner/positioner.interface.d.ts.map +1 -0
  314. package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts +12 -0
  315. package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts.map +1 -0
  316. package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts +13 -0
  317. package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts.map +1 -0
  318. package/src/interfaces/popupContext/popupContext.interface.d.ts +16 -0
  319. package/src/interfaces/popupContext/popupContext.interface.d.ts.map +1 -0
  320. package/src/interfaces/selectApi/selectApi.interface.d.ts +50 -0
  321. package/src/interfaces/selectApi/selectApi.interface.d.ts.map +1 -0
  322. package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts +24 -0
  323. package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts.map +1 -0
  324. package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts +6 -0
  325. package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts.map +1 -0
  326. package/src/interfaces/selectEvent/selectEvent.interface.d.ts +20 -0
  327. package/src/interfaces/selectEvent/selectEvent.interface.d.ts.map +1 -0
  328. package/src/interfaces/selectEvents/selectEvents.interface.d.ts +37 -0
  329. package/src/interfaces/selectEvents/selectEvents.interface.d.ts.map +1 -0
  330. package/src/interfaces/selectOption/selectOption.interface.d.ts +33 -0
  331. package/src/interfaces/selectOption/selectOption.interface.d.ts.map +1 -0
  332. package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts +21 -0
  333. package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts.map +1 -0
  334. package/src/interfaces/selectOptions/selectOptions.interface.d.ts +27 -0
  335. package/src/interfaces/selectOptions/selectOptions.interface.d.ts.map +1 -0
  336. package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts +33 -0
  337. package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts.map +1 -0
  338. package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts +44 -0
  339. package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts.map +1 -0
  340. package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts +17 -0
  341. package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts.map +1 -0
  342. package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts +11 -0
  343. package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts.map +1 -0
  344. package/src/misc/classes/index.d.ts +3 -0
  345. package/src/misc/classes/index.d.ts.map +1 -0
  346. package/src/misc/classes/selectBus/selectBus.d.ts +50 -0
  347. package/src/misc/classes/selectBus/selectBus.d.ts.map +1 -0
  348. package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts +90 -0
  349. package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts.map +1 -0
  350. package/src/misc/enums.d.ts +42 -0
  351. package/src/misc/enums.d.ts.map +1 -0
  352. package/src/misc/extensions/getValue.d.ts +0 -6
  353. package/src/misc/extensions/getValue.d.ts.map +1 -1
  354. package/src/misc/extensions/index.d.ts +0 -5
  355. package/src/misc/extensions/index.d.ts.map +1 -1
  356. package/src/misc/extensions/onFocus.d.ts +0 -7
  357. package/src/misc/extensions/onFocus.d.ts.map +1 -1
  358. package/src/misc/extensions/setReadonly.d.ts +0 -7
  359. package/src/misc/extensions/setReadonly.d.ts.map +1 -1
  360. package/src/misc/extensions/setValue.d.ts +0 -7
  361. package/src/misc/extensions/setValue.d.ts.map +1 -1
  362. package/src/misc/extensions/valueChange.d.ts +0 -7
  363. package/src/misc/extensions/valueChange.d.ts.map +1 -1
  364. package/src/misc/ngSelectOptions.interface.d.ts +0 -71
  365. package/src/misc/ngSelectOptions.interface.d.ts.map +1 -1
  366. package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +0 -69
  367. package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts.map +1 -1
  368. package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +0 -85
  369. package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts.map +1 -1
  370. package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +0 -28
  371. package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts.map +1 -1
  372. package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +0 -72
  373. package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts.map +1 -1
  374. package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +0 -52
  375. package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -1
  376. package/src/misc/optionsGatherer/types.d.ts +0 -3
  377. package/src/misc/optionsGatherer/types.d.ts.map +1 -1
  378. package/src/misc/providers.d.ts +54 -0
  379. package/src/misc/providers.d.ts.map +1 -0
  380. package/src/misc/tokens.d.ts +45 -0
  381. package/src/misc/tokens.d.ts.map +1 -0
  382. package/src/misc/types.d.ts +7 -35
  383. package/src/misc/types.d.ts.map +1 -1
  384. package/src/modules/index.d.ts +2 -0
  385. package/src/modules/index.d.ts.map +1 -0
  386. package/src/modules/ngSelect.module.d.ts +7 -20
  387. package/src/modules/ngSelect.module.d.ts.map +1 -1
  388. package/src/modules/ngSelectEdit.module.d.ts +0 -16
  389. package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
  390. package/src/pipes/getPlugin/getPlugin.pipe.d.ts +25 -0
  391. package/src/pipes/getPlugin/getPlugin.pipe.d.ts.map +1 -0
  392. package/src/pipes/index.d.ts +4 -0
  393. package/src/pipes/index.d.ts.map +1 -0
  394. package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts +16 -0
  395. package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts.map +1 -0
  396. package/src/pipes/selectValue/selectValue.pipe.d.ts +19 -0
  397. package/src/pipes/selectValue/selectValue.pipe.d.ts.map +1 -0
  398. package/src/plugins/index.d.ts +9 -0
  399. package/src/plugins/index.d.ts.map +1 -0
  400. package/src/plugins/interactions/index.d.ts +2 -0
  401. package/src/plugins/interactions/index.d.ts.map +1 -0
  402. package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts +32 -0
  403. package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts.map +1 -0
  404. package/src/plugins/keyboardHandler/index.d.ts +1 -3
  405. package/src/plugins/keyboardHandler/index.d.ts.map +1 -1
  406. package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts +32 -0
  407. package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts.map +1 -0
  408. package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts +32 -0
  409. package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts.map +1 -0
  410. package/src/plugins/liveSearch/index.d.ts +2 -4
  411. package/src/plugins/liveSearch/index.d.ts.map +1 -1
  412. package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts +32 -0
  413. package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts.map +1 -0
  414. package/src/plugins/normalState/index.d.ts +1 -3
  415. package/src/plugins/normalState/index.d.ts.map +1 -1
  416. package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts +32 -0
  417. package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts.map +1 -0
  418. package/src/plugins/optionsHandler/index.d.ts +2 -0
  419. package/src/plugins/optionsHandler/index.d.ts.map +1 -0
  420. package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts +32 -0
  421. package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts.map +1 -0
  422. package/src/plugins/popup/index.d.ts +1 -3
  423. package/src/plugins/popup/index.d.ts.map +1 -1
  424. package/src/plugins/popup/simplePopup/simplePopup.component.d.ts +32 -0
  425. package/src/plugins/popup/simplePopup/simplePopup.component.d.ts.map +1 -0
  426. package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts +32 -0
  427. package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts.map +1 -0
  428. package/src/plugins/positioner/index.d.ts +1 -3
  429. package/src/plugins/positioner/index.d.ts.map +1 -1
  430. package/src/plugins/readonlyState/index.d.ts +0 -1
  431. package/src/plugins/readonlyState/index.d.ts.map +1 -1
  432. package/src/plugins/valueHandler/basicValueHandler/basicValueHandler.component.d.ts +32 -0
  433. package/src/plugins/valueHandler/basicValueHandler/basicValueHandler.component.d.ts.map +1 -0
  434. package/src/plugins/valueHandler/index.d.ts +1 -4
  435. package/src/plugins/valueHandler/index.d.ts.map +1 -1
  436. package/styles/components/_grid.scss +9 -0
  437. package/styles/core/_functions.scss +10 -0
  438. package/styles/core/_misc.scss +146 -0
  439. package/styles/core/_mixins.scss +44 -0
  440. package/styles/core/_theme.scss +16 -0
  441. package/styles/index.scss +2 -0
  442. package/styles/themes/dark.scss +19 -0
  443. package/styles/themes/light.scss +19 -0
  444. package/version.bak +1 -1
  445. package/es2022/material/src/directives/types.js +0 -2
  446. package/es2022/material/src/directives/types.js.map +0 -1
  447. package/es2022/material/src/plugins/popup/components.js +0 -3
  448. package/es2022/material/src/plugins/popup/components.js.map +0 -1
  449. package/es2022/src/components/option/index.js +0 -3
  450. package/es2022/src/components/option/index.js.map +0 -1
  451. package/es2022/src/components/option/optgroup.component.js +0 -54
  452. package/es2022/src/components/option/optgroup.component.js.map +0 -1
  453. package/es2022/src/components/option/optgroup.interface.js +0 -2
  454. package/es2022/src/components/option/optgroup.interface.js.map +0 -1
  455. package/es2022/src/components/option/option.interface.js +0 -2
  456. package/es2022/src/components/option/option.interface.js.map +0 -1
  457. package/es2022/src/components/select/index.js +0 -2
  458. package/es2022/src/components/select/index.js.map +0 -1
  459. package/es2022/src/components/select/select.interface.js +0 -2
  460. package/es2022/src/components/select/select.interface.js.map +0 -1
  461. package/es2022/src/components/select/types.js +0 -6
  462. package/es2022/src/components/select/types.js.map +0 -1
  463. package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
  464. package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
  465. package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
  466. package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
  467. package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
  468. package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
  469. package/es2022/src/index.ssr.js +0 -10
  470. package/es2022/src/index.ssr.js.map +0 -1
  471. package/es2022/src/misc/index.js +0 -6
  472. package/es2022/src/misc/index.js.map +0 -1
  473. package/es2022/src/misc/ngSelectControlValueAccessor.directive.js +0 -162
  474. package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
  475. package/es2022/src/misc/plugin.interface.js +0 -2
  476. package/es2022/src/misc/plugin.interface.js.map +0 -1
  477. package/es2022/src/misc/pluginBus/pluginBus.interface.js +0 -2
  478. package/es2022/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
  479. package/es2022/src/misc/pluginBus/pluginBus.js.map +0 -1
  480. package/es2022/src/misc/templateGatherer.interface.js.map +0 -1
  481. package/es2022/src/modules/ngSelectDynamic.module.js +0 -20
  482. package/es2022/src/modules/ngSelectDynamic.module.js.map +0 -1
  483. package/es2022/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
  484. package/es2022/src/pipes/ngSelectValue.pipe.js +0 -31
  485. package/es2022/src/pipes/ngSelectValue.pipe.js.map +0 -1
  486. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -146
  487. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
  488. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
  489. package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
  490. package/es2022/src/plugins/keyboardHandler/components.js +0 -3
  491. package/es2022/src/plugins/keyboardHandler/components.js.map +0 -1
  492. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -197
  493. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
  494. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
  495. package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
  496. package/es2022/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
  497. package/es2022/src/plugins/keyboardHandler/types.js +0 -10
  498. package/es2022/src/plugins/keyboardHandler/types.js.map +0 -1
  499. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -164
  500. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
  501. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
  502. package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
  503. package/es2022/src/plugins/liveSearch/components.js +0 -4
  504. package/es2022/src/plugins/liveSearch/components.js.map +0 -1
  505. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -313
  506. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
  507. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
  508. package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
  509. package/es2022/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
  510. package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -65
  511. package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
  512. package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
  513. package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
  514. package/es2022/src/plugins/liveSearch/types.js +0 -10
  515. package/es2022/src/plugins/liveSearch/types.js.map +0 -1
  516. package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
  517. package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
  518. package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
  519. package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
  520. package/es2022/src/plugins/normalState/components.js +0 -4
  521. package/es2022/src/plugins/normalState/components.js.map +0 -1
  522. package/es2022/src/plugins/normalState/edit/editNormalState.component.js +0 -88
  523. package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
  524. package/es2022/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
  525. package/es2022/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
  526. package/es2022/src/plugins/normalState/normalState.interface.js.map +0 -1
  527. package/es2022/src/plugins/normalState/normalStateAbstract.component.js +0 -89
  528. package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
  529. package/es2022/src/plugins/normalState/types.js +0 -10
  530. package/es2022/src/plugins/normalState/types.js.map +0 -1
  531. package/es2022/src/plugins/popup/basic/basicPopup.component.js +0 -62
  532. package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
  533. package/es2022/src/plugins/popup/basic/basicPopup.interface.js +0 -2
  534. package/es2022/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
  535. package/es2022/src/plugins/popup/component.js +0 -4
  536. package/es2022/src/plugins/popup/component.js.map +0 -1
  537. package/es2022/src/plugins/popup/edit/editPopup.component.js +0 -85
  538. package/es2022/src/plugins/popup/edit/editPopup.component.js.map +0 -1
  539. package/es2022/src/plugins/popup/edit/editPopup.interface.js +0 -2
  540. package/es2022/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
  541. package/es2022/src/plugins/popup/popup.interface.js.map +0 -1
  542. package/es2022/src/plugins/popup/popupAbstract.component.js +0 -200
  543. package/es2022/src/plugins/popup/popupAbstract.component.js.map +0 -1
  544. package/es2022/src/plugins/popup/types.js +0 -10
  545. package/es2022/src/plugins/popup/types.js.map +0 -1
  546. package/es2022/src/plugins/positioner/components.js +0 -3
  547. package/es2022/src/plugins/positioner/components.js.map +0 -1
  548. package/es2022/src/plugins/positioner/default/defaultPositioner.component.js +0 -160
  549. package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
  550. package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
  551. package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
  552. package/es2022/src/plugins/positioner/no/noPositioner.component.js +0 -78
  553. package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
  554. package/es2022/src/plugins/positioner/no/noPositioner.interface.js +0 -2
  555. package/es2022/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
  556. package/es2022/src/plugins/positioner/positioner.interface.js.map +0 -1
  557. package/es2022/src/plugins/positioner/types.js +0 -10
  558. package/es2022/src/plugins/positioner/types.js.map +0 -1
  559. package/es2022/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
  560. package/es2022/src/plugins/readonlyState/types.js +0 -10
  561. package/es2022/src/plugins/readonlyState/types.js.map +0 -1
  562. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -159
  563. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
  564. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
  565. package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
  566. package/es2022/src/plugins/valueHandler/components.js +0 -3
  567. package/es2022/src/plugins/valueHandler/components.js.map +0 -1
  568. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -179
  569. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
  570. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
  571. package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
  572. package/es2022/src/plugins/valueHandler/types.js +0 -10
  573. package/es2022/src/plugins/valueHandler/types.js.map +0 -1
  574. package/es2022/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
  575. package/es2022/src/plugins/valueHandler/valueHandlerBase.js +0 -145
  576. package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
  577. package/material/src/directives/types.d.ts +0 -2
  578. package/material/src/directives/types.d.ts.map +0 -1
  579. package/material/src/plugins/popup/components.d.ts +0 -3
  580. package/material/src/plugins/popup/components.d.ts.map +0 -1
  581. package/src/components/option/index.d.ts +0 -3
  582. package/src/components/option/index.d.ts.map +0 -1
  583. package/src/components/option/optgroup.component.d.ts +0 -37
  584. package/src/components/option/optgroup.component.d.ts.map +0 -1
  585. package/src/components/option/optgroup.interface.d.ts +0 -20
  586. package/src/components/option/optgroup.interface.d.ts.map +0 -1
  587. package/src/components/option/option.interface.d.ts +0 -31
  588. package/src/components/option/option.interface.d.ts.map +0 -1
  589. package/src/components/select/index.d.ts +0 -2
  590. package/src/components/select/select.interface.d.ts +0 -68
  591. package/src/components/select/select.interface.d.ts.map +0 -1
  592. package/src/components/select/types.d.ts +0 -7
  593. package/src/components/select/types.d.ts.map +0 -1
  594. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +0 -11
  595. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +0 -1
  596. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +0 -11
  597. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +0 -1
  598. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +0 -21
  599. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +0 -1
  600. package/src/index.ssr.d.ts +0 -1
  601. package/src/index.ssr.d.ts.map +0 -1
  602. package/src/misc/index.d.ts +0 -6
  603. package/src/misc/index.d.ts.map +0 -1
  604. package/src/misc/ngSelectControlValueAccessor.directive.d.ts +0 -63
  605. package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +0 -1
  606. package/src/misc/plugin.interface.d.ts +0 -108
  607. package/src/misc/plugin.interface.d.ts.map +0 -1
  608. package/src/misc/pluginBus/pluginBus.d.ts +0 -49
  609. package/src/misc/pluginBus/pluginBus.d.ts.map +0 -1
  610. package/src/misc/pluginBus/pluginBus.interface.d.ts +0 -36
  611. package/src/misc/pluginBus/pluginBus.interface.d.ts.map +0 -1
  612. package/src/misc/templateGatherer.interface.d.ts +0 -17
  613. package/src/misc/templateGatherer.interface.d.ts.map +0 -1
  614. package/src/modules/ngSelectDynamic.module.d.ts +0 -11
  615. package/src/modules/ngSelectDynamic.module.d.ts.map +0 -1
  616. package/src/pipes/ngSelectHasValue.pipe.d.ts +0 -16
  617. package/src/pipes/ngSelectHasValue.pipe.d.ts.map +0 -1
  618. package/src/pipes/ngSelectValue.pipe.d.ts +0 -19
  619. package/src/pipes/ngSelectValue.pipe.d.ts.map +0 -1
  620. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +0 -58
  621. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +0 -1
  622. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +0 -12
  623. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts.map +0 -1
  624. package/src/plugins/keyboardHandler/components.d.ts +0 -3
  625. package/src/plugins/keyboardHandler/components.d.ts.map +0 -1
  626. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +0 -68
  627. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +0 -1
  628. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +0 -12
  629. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts.map +0 -1
  630. package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +0 -12
  631. package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +0 -1
  632. package/src/plugins/keyboardHandler/types.d.ts +0 -11
  633. package/src/plugins/keyboardHandler/types.d.ts.map +0 -1
  634. package/src/plugins/liveSearch/basic/basicLiveSearch.component.css +0 -11
  635. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +0 -98
  636. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +0 -1
  637. package/src/plugins/liveSearch/basic/basicLiveSearch.component.html +0 -5
  638. package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +0 -29
  639. package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts.map +0 -1
  640. package/src/plugins/liveSearch/components.d.ts +0 -4
  641. package/src/plugins/liveSearch/components.d.ts.map +0 -1
  642. package/src/plugins/liveSearch/edit/editLiveSearch.component.css +0 -13
  643. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +0 -141
  644. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +0 -1
  645. package/src/plugins/liveSearch/edit/editLiveSearch.component.html +0 -13
  646. package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +0 -37
  647. package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts.map +0 -1
  648. package/src/plugins/liveSearch/liveSearch.interface.d.ts +0 -38
  649. package/src/plugins/liveSearch/liveSearch.interface.d.ts.map +0 -1
  650. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +0 -54
  651. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +0 -1
  652. package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +0 -12
  653. package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts.map +0 -1
  654. package/src/plugins/liveSearch/types.d.ts +0 -11
  655. package/src/plugins/liveSearch/types.d.ts.map +0 -1
  656. package/src/plugins/normalState/basic/basicNormalState.component.css +0 -38
  657. package/src/plugins/normalState/basic/basicNormalState.component.d.ts +0 -17
  658. package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +0 -1
  659. package/src/plugins/normalState/basic/basicNormalState.component.html +0 -6
  660. package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +0 -29
  661. package/src/plugins/normalState/basic/basicNormalState.interface.d.ts.map +0 -1
  662. package/src/plugins/normalState/components.d.ts +0 -4
  663. package/src/plugins/normalState/components.d.ts.map +0 -1
  664. package/src/plugins/normalState/edit/editNormalState.component.css +0 -77
  665. package/src/plugins/normalState/edit/editNormalState.component.d.ts +0 -26
  666. package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +0 -1
  667. package/src/plugins/normalState/edit/editNormalState.component.html +0 -19
  668. package/src/plugins/normalState/edit/editNormalState.interface.d.ts +0 -53
  669. package/src/plugins/normalState/edit/editNormalState.interface.d.ts.map +0 -1
  670. package/src/plugins/normalState/normalState.interface.d.ts +0 -49
  671. package/src/plugins/normalState/normalState.interface.d.ts.map +0 -1
  672. package/src/plugins/normalState/normalStateAbstract.component.d.ts +0 -65
  673. package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +0 -1
  674. package/src/plugins/normalState/types.d.ts +0 -11
  675. package/src/plugins/normalState/types.d.ts.map +0 -1
  676. package/src/plugins/popup/basic/basicPopup.component.css +0 -61
  677. package/src/plugins/popup/basic/basicPopup.component.d.ts +0 -17
  678. package/src/plugins/popup/basic/basicPopup.component.d.ts.map +0 -1
  679. package/src/plugins/popup/basic/basicPopup.component.html +0 -21
  680. package/src/plugins/popup/basic/basicPopup.interface.d.ts +0 -33
  681. package/src/plugins/popup/basic/basicPopup.interface.d.ts.map +0 -1
  682. package/src/plugins/popup/component.d.ts +0 -4
  683. package/src/plugins/popup/component.d.ts.map +0 -1
  684. package/src/plugins/popup/edit/editPopup.component.css +0 -61
  685. package/src/plugins/popup/edit/editPopup.component.d.ts +0 -32
  686. package/src/plugins/popup/edit/editPopup.component.d.ts.map +0 -1
  687. package/src/plugins/popup/edit/editPopup.component.html +0 -19
  688. package/src/plugins/popup/edit/editPopup.interface.d.ts +0 -33
  689. package/src/plugins/popup/edit/editPopup.interface.d.ts.map +0 -1
  690. package/src/plugins/popup/popup.interface.d.ts +0 -52
  691. package/src/plugins/popup/popup.interface.d.ts.map +0 -1
  692. package/src/plugins/popup/popupAbstract.component.d.ts +0 -130
  693. package/src/plugins/popup/popupAbstract.component.d.ts.map +0 -1
  694. package/src/plugins/popup/types.d.ts +0 -11
  695. package/src/plugins/popup/types.d.ts.map +0 -1
  696. package/src/plugins/positioner/components.d.ts +0 -3
  697. package/src/plugins/positioner/components.d.ts.map +0 -1
  698. package/src/plugins/positioner/default/defaultPositioner.component.d.ts +0 -89
  699. package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +0 -1
  700. package/src/plugins/positioner/default/defaultPositioner.interface.d.ts +0 -12
  701. package/src/plugins/positioner/default/defaultPositioner.interface.d.ts.map +0 -1
  702. package/src/plugins/positioner/no/noPositioner.component.d.ts +0 -50
  703. package/src/plugins/positioner/no/noPositioner.component.d.ts.map +0 -1
  704. package/src/plugins/positioner/no/noPositioner.interface.d.ts +0 -12
  705. package/src/plugins/positioner/no/noPositioner.interface.d.ts.map +0 -1
  706. package/src/plugins/positioner/positioner.interface.d.ts +0 -22
  707. package/src/plugins/positioner/positioner.interface.d.ts.map +0 -1
  708. package/src/plugins/positioner/types.d.ts +0 -11
  709. package/src/plugins/positioner/types.d.ts.map +0 -1
  710. package/src/plugins/readonlyState/readonlyState.interface.d.ts +0 -12
  711. package/src/plugins/readonlyState/readonlyState.interface.d.ts.map +0 -1
  712. package/src/plugins/readonlyState/types.d.ts +0 -11
  713. package/src/plugins/readonlyState/types.d.ts.map +0 -1
  714. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +0 -51
  715. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +0 -1
  716. package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +0 -12
  717. package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts.map +0 -1
  718. package/src/plugins/valueHandler/components.d.ts +0 -3
  719. package/src/plugins/valueHandler/components.d.ts.map +0 -1
  720. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +0 -52
  721. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +0 -1
  722. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +0 -21
  723. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts.map +0 -1
  724. package/src/plugins/valueHandler/types.d.ts +0 -11
  725. package/src/plugins/valueHandler/types.d.ts.map +0 -1
  726. package/src/plugins/valueHandler/valueHandler.interface.d.ts +0 -31
  727. package/src/plugins/valueHandler/valueHandler.interface.d.ts.map +0 -1
  728. package/src/plugins/valueHandler/valueHandlerBase.d.ts +0 -115
  729. package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +0 -1
  730. /package/es2022/src/{plugins → interfaces/plugins}/keyboardHandler/keyboardHandler.interface.js +0 -0
  731. /package/es2022/src/{plugins → interfaces/plugins}/liveSearch/liveSearch.interface.js +0 -0
  732. /package/es2022/src/{plugins → interfaces/plugins}/normalState/normalState.interface.js +0 -0
  733. /package/es2022/src/{plugins → interfaces/plugins}/popup/popup.interface.js +0 -0
  734. /package/es2022/src/{plugins → interfaces/plugins}/positioner/positioner.interface.js +0 -0
  735. /package/es2022/src/{plugins → interfaces/plugins}/readonlyState/readonlyState.interface.js +0 -0
  736. /package/es2022/src/{plugins → interfaces/plugins}/valueHandler/valueHandler.interface.js +0 -0
  737. /package/es2022/src/{misc → interfaces/templateGatherer}/templateGatherer.interface.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"basicLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/basic/basicLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearch, LiveSearchOptions} from '../liveSearch.interface';\n\n/**\n * Css classes for basic live search\n */\nexport interface CssClassesBasicLiveSearch\n{\n /**\n * Applied to wrapper div around input\n */\n wrapperDiv?: string;\n\n /**\n * Applied to input that represents live search\n */\n input?: string;\n}\n\n/**\n * Basic live search options\n */\nexport interface BasicLiveSearchOptions extends LiveSearchOptions<CssClassesBasicLiveSearch>\n{\n /**\n * Indication whether keep search value after popup close\n */\n keepSearchValue?: boolean;\n}\n\n/**\n * Public API for 'BasicLiveSearchComponent'\n */\nexport interface BasicLiveSearch extends LiveSearch\n{\n}"]}
@@ -1,4 +0,0 @@
1
- export * from './no/noLiveSearch.component';
2
- export * from './basic/basicLiveSearch.component';
3
- export * from './edit/editLiveSearch.component';
4
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/liveSearch/components.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './no/noLiveSearch.component';\nexport * from './basic/basicLiveSearch.component';\nexport * from './edit/editLiveSearch.component';"]}
@@ -1,313 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter } from '@angular/core';
2
- import { STRING_LOCALIZATION } from '@anglr/common';
3
- import { isPresent } from '@jscrpt/common';
4
- import { extend } from '@jscrpt/common/extend';
5
- import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
6
- import { LIVE_SEARCH_OPTIONS } from '../types';
7
- import { VALUE_HANDLER } from '../../valueHandler/types';
8
- import { POPUP } from '../../popup/types';
9
- import { PluginBus } from '../../../misc/pluginBus/pluginBus';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "../../../misc/pluginBus/pluginBus";
12
- import * as i2 from "@angular/common";
13
- /**
14
- * Default options for live search
15
- * @internal
16
- */
17
- const defaultOptions = {
18
- cssClasses: {
19
- wrapperDiv: 'edit-wrapper-div',
20
- input: 'edit-control'
21
- },
22
- texts: {
23
- inputPlaceholder: 'Select item'
24
- },
25
- keepSearchValue: false,
26
- nonExistingCancel: false,
27
- emptyCancel: false
28
- };
29
- /**
30
- * Component used for obtaining edit live search html element
31
- */
32
- export class EditLiveSearchComponent {
33
- //######################### protected properties #########################
34
- /**
35
- * Gets currently available options
36
- */
37
- get availableOptions() {
38
- return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
39
- }
40
- //######################### public properties - implementation of EditLiveSearch #########################
41
- /**
42
- * Options for NgSelect plugin
43
- */
44
- get options() {
45
- return this._options;
46
- }
47
- set options(options) {
48
- this._options = extend(true, this._options, options);
49
- }
50
- /**
51
- * HTML element that represents live search
52
- */
53
- get liveSearchElement() {
54
- return this.liveSearchElementChild.nativeElement;
55
- }
56
- //######################### constructor #########################
57
- constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _stringLocalization, options) {
58
- this.ngSelectPlugins = ngSelectPlugins;
59
- this.pluginBus = pluginBus;
60
- this.pluginElement = pluginElement;
61
- this._changeDetector = _changeDetector;
62
- this._stringLocalization = _stringLocalization;
63
- /**
64
- * Current value of live search
65
- */
66
- this.searchValue = null;
67
- /**
68
- * Occurs when current value of live search changes
69
- */
70
- this.searchValueChange = new EventEmitter();
71
- //######################### public properties - template bindings #########################
72
- /**
73
- * Current value that is displayed
74
- * @internal
75
- */
76
- this.searchValueDisplayed = null;
77
- /**
78
- * Object containing available texts
79
- * @internal
80
- */
81
- this.texts = {};
82
- this._options = extend(true, {}, defaultOptions, options);
83
- }
84
- //######################### public methods - implementation of OnDestroy #########################
85
- /**
86
- * Called when component is destroyed
87
- */
88
- ngOnDestroy() {
89
- this._optionsChangeSubscription?.unsubscribe();
90
- this._optionsChangeSubscription = null;
91
- this._valueChangedSubscription?.unsubscribe();
92
- this._valueChangedSubscription = null;
93
- this._liveSearchFocusSubscription?.unsubscribe();
94
- this._liveSearchFocusSubscription = null;
95
- this._updateDisplayedValueSubscription?.unsubscribe();
96
- this._updateDisplayedValueSubscription = null;
97
- }
98
- //######################### public methods - implementation of EditLiveSearch #########################
99
- /**
100
- * Initialize plugin, to be ready to use, initialize communication with other plugins
101
- */
102
- initialize() {
103
- if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
104
- this._optionsChangeSubscription.unsubscribe();
105
- this._optionsChangeSubscription = null;
106
- this._optionsGatherer = null;
107
- }
108
- if (!this._optionsGatherer) {
109
- this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
110
- this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => {
111
- //do not change active if active is visible
112
- if (!this.pluginBus.selectOptions.optionsGatherer.availableOptions.find((option) => option.active)) {
113
- //only when input is filled at least with one char
114
- if (this.searchValue) {
115
- const option = this.pluginBus.selectOptions.optionsGatherer.availableOptions.find(itm => this.pluginBus.selectOptions.liveSearchFilter(this.searchValue, this.pluginBus.selectOptions.normalizer)(itm));
116
- if (option) {
117
- this.pluginBus.selectOptions.optionsGatherer.options.forEach((option) => option.active = false);
118
- option.active = true;
119
- this._popup.invalidateVisuals();
120
- }
121
- }
122
- //select first
123
- else {
124
- this._activateSelectedOrFirst();
125
- }
126
- }
127
- });
128
- }
129
- const popup = this.ngSelectPlugins[POPUP];
130
- if (this._popup && this._popup != popup) {
131
- this._popup = null;
132
- }
133
- if (!this._popup) {
134
- this._popup = popup;
135
- }
136
- if (!this._liveSearchFocusSubscription) {
137
- this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() => {
138
- this.inputElementChild?.nativeElement.focus();
139
- });
140
- }
141
- if (!this._updateDisplayedValueSubscription) {
142
- this._updateDisplayedValueSubscription = this.pluginBus.updateDisplayedValue.subscribe(() => {
143
- this.handleBlur();
144
- });
145
- }
146
- const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
147
- if (this._valueHandler && this._valueHandler != valueHandler) {
148
- this._valueChangedSubscription.unsubscribe();
149
- this._valueChangedSubscription = null;
150
- this._valueHandler = null;
151
- }
152
- if (!this._valueHandler) {
153
- this._valueHandler = valueHandler;
154
- this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
155
- const selected = this._valueHandler.selectedOptions;
156
- if (!selected) {
157
- this.searchValueDisplayed = '';
158
- this.handleInput('');
159
- this._changeDetector.detectChanges();
160
- return;
161
- }
162
- //reset filtering of available options
163
- this.handleInput(null);
164
- if (Array.isArray(selected)) {
165
- this.searchValueDisplayed = '';
166
- this.inputElementChild?.nativeElement.focus();
167
- this._changeDetector.detectChanges();
168
- }
169
- else {
170
- //set selected into live search
171
- this.searchValueDisplayed = selected.text;
172
- this._changeDetector.detectChanges();
173
- //select current text
174
- this.inputElementChild?.nativeElement.select();
175
- }
176
- });
177
- }
178
- this._initTexts();
179
- }
180
- /**
181
- * Initialize plugin options, all operations required to be done with plugin options are handled here
182
- */
183
- initOptions() {
184
- }
185
- /**
186
- * Explicitly runs invalidation of content (change detection)
187
- */
188
- invalidateVisuals() {
189
- this._changeDetector.detectChanges();
190
- }
191
- //######################### public methods - template bindings #########################
192
- /**
193
- * Handle input value
194
- * @param value - Value of input
195
- * @param inputChange - Indication that change was by input event of input
196
- * @internal
197
- */
198
- handleInput(value, inputChange = false) {
199
- this.searchValue = value;
200
- this.searchValueChange.emit();
201
- if (inputChange) {
202
- this.pluginBus.showHidePopup.emit(true);
203
- this.searchValueDisplayed = value;
204
- //single value select
205
- if (!this.pluginBus.selectOptions.multiple) {
206
- //cancel value
207
- if (this._options.nonExistingCancel) {
208
- this._valueHandler.setValue(null);
209
- }
210
- //empty string cancels value
211
- else if (this._options.emptyCancel && isPresent(value) && !value.length) {
212
- this._valueHandler.setValue(null);
213
- }
214
- //otherwise keep last value
215
- }
216
- }
217
- }
218
- /**
219
- * Handles focus event
220
- * @param element - Element that got focus
221
- * @param show - Indication whether show popup
222
- * @internal
223
- */
224
- handleFocus(element, show = false) {
225
- element.select();
226
- this._activateSelectedOrFirst();
227
- if (show) {
228
- this.pluginBus.showHidePopup.emit(true);
229
- }
230
- this.pluginBus.focus.emit();
231
- }
232
- /**
233
- * Handles blur of live search
234
- */
235
- handleBlur() {
236
- //not multiple and selected value
237
- if (!this.pluginBus.selectOptions.multiple) {
238
- //use selected text
239
- if (this._valueHandler.selectedOptions && !Array.isArray(this._valueHandler.selectedOptions)) {
240
- this.searchValueDisplayed = this._valueHandler.selectedOptions.text;
241
- }
242
- //reset text
243
- else {
244
- this.searchValueDisplayed = '';
245
- }
246
- }
247
- //reset text
248
- else {
249
- this.searchValueDisplayed = '';
250
- }
251
- //reset available options
252
- this.searchValue = null;
253
- this.searchValueChange.emit();
254
- this._changeDetector.detectChanges();
255
- }
256
- //######################### protected methods #########################
257
- /**
258
- * Initialize texts
259
- */
260
- _initTexts() {
261
- Object.keys(this.options.texts).forEach(key => {
262
- this.texts[key] = this._stringLocalization.get(this.options.texts[key], null, true)();
263
- });
264
- this._changeDetector.detectChanges();
265
- }
266
- /**
267
- * Activates first available option or selected option
268
- */
269
- _activateSelectedOrFirst() {
270
- const activeOption = this.availableOptions.find(itm => itm.active);
271
- const selectedOptions = this.availableOptions.filter(itm => itm.selected);
272
- //nothing active, nothing selected
273
- if (!activeOption && !selectedOptions.length) {
274
- const first = this.availableOptions[0];
275
- if (first) {
276
- first.active = true;
277
- }
278
- }
279
- //nothing active
280
- else if (!activeOption) {
281
- //last selected as sactive
282
- selectedOptions[selectedOptions.length - 1].active = true;
283
- }
284
- }
285
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: STRING_LOCALIZATION }, { token: LIVE_SEARCH_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
286
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: EditLiveSearchComponent, isStandalone: false, selector: "ng-edit-live-search", viewQueries: [{ propertyName: "liveSearchElementChild", first: true, predicate: ["liveSearchElement"], descendants: true }, { propertyName: "inputElementChild", first: true, predicate: ["inputElement"], descendants: true }], ngImport: i0, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>", styles: [".edit-wrapper-div\r\n{\r\n width: 100%;\r\n}\r\n\r\n.edit-control\r\n{\r\n padding: 4px;\r\n height: 26px;\r\n width: 100%;\r\n border: none;\r\n outline: none;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
287
- }
288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditLiveSearchComponent, decorators: [{
289
- type: Component,
290
- args: [{ selector: 'ng-edit-live-search', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>", styles: [".edit-wrapper-div\r\n{\r\n width: 100%;\r\n}\r\n\r\n.edit-control\r\n{\r\n padding: 4px;\r\n height: 26px;\r\n width: 100%;\r\n border: none;\r\n outline: none;\r\n}"] }]
291
- }], ctorParameters: () => [{ type: undefined, decorators: [{
292
- type: Inject,
293
- args: [NG_SELECT_PLUGIN_INSTANCES]
294
- }, {
295
- type: Optional
296
- }] }, { type: i1.PluginBus, decorators: [{
297
- type: Optional
298
- }] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
299
- type: Inject,
300
- args: [STRING_LOCALIZATION]
301
- }] }, { type: undefined, decorators: [{
302
- type: Inject,
303
- args: [LIVE_SEARCH_OPTIONS]
304
- }, {
305
- type: Optional
306
- }] }], propDecorators: { liveSearchElementChild: [{
307
- type: ViewChild,
308
- args: ['liveSearchElement']
309
- }], inputElementChild: [{
310
- type: ViewChild,
311
- args: ['inputElement']
312
- }] } });
313
- //# sourceMappingURL=editLiveSearch.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/edit/editLiveSearch.component.ts","../../../../../src/plugins/liveSearch/edit/editLiveSearch.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAC,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAM7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;;;AAG5D;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,UAAU,EACV;QACI,UAAU,EA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BAAmB;;0BAAG,QAAQ;;sBAhBjD,SAAS;uBAAC,mBAAmB;;sBAO7B,SAAS;uBAAC,cAAc","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter, OnDestroy} from '@angular/core';\nimport {STRING_LOCALIZATION, StringLocalization} from '@anglr/common';\nimport {isPresent} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {EditLiveSearchOptions, EditLiveSearch} from './editLiveSearch.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {LIVE_SEARCH_OPTIONS} from '../types';\nimport {ValueHandler} from '../../valueHandler';\nimport {VALUE_HANDLER} from '../../valueHandler/types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {LiveSearchTexts} from '../liveSearch.interface';\n\n/**\n * Default options for live search\n * @internal\n */\nconst defaultOptions: EditLiveSearchOptions =\n{\n cssClasses:\n {\n wrapperDiv: 'edit-wrapper-div',\n input: 'edit-control'\n },\n texts:\n {\n inputPlaceholder: 'Select item'\n\n },\n keepSearchValue: false,\n nonExistingCancel: false,\n emptyCancel: false\n};\n\n/**\n * Component used for obtaining edit live search html element\n */\n@Component(\n{\n selector: 'ng-edit-live-search',\n templateUrl: 'editLiveSearch.component.html',\n styleUrl: 'editLiveSearch.component.css',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EditLiveSearchComponent implements EditLiveSearch, NgSelectPlugin<EditLiveSearchOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Popup plugin used within `NgSelect`\n */\n protected _popup: Popup;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Subscription for live search focus request\n */\n protected _liveSearchFocusSubscription: Subscription;\n\n /**\n * Subscription for update displayed value request\n */\n protected _updateDisplayedValueSubscription: Subscription;\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: EditLiveSearchOptions;\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 EditLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): EditLiveSearchOptions\n {\n return this._options;\n }\n public set options(options: EditLiveSearchOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this.liveSearchElementChild.nativeElement;\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - template bindings #########################\n\n /**\n * Current value that is displayed\n * @internal\n */\n public searchValueDisplayed: string = null;\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: LiveSearchTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * View child that represents live search element\n * @internal\n */\n @ViewChild('liveSearchElement')\n public liveSearchElementChild: ElementRef<HTMLElement>;\n\n /**\n * View child that represents input element\n * @internal\n */\n @ViewChild('inputElement')\n public inputElementChild: ElementRef<HTMLInputElement>;\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(STRING_LOCALIZATION) protected _stringLocalization: StringLocalization,\n @Inject(LIVE_SEARCH_OPTIONS) @Optional() options?: EditLiveSearchOptions)\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 this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._liveSearchFocusSubscription?.unsubscribe();\n this._liveSearchFocusSubscription = null;\n\n this._updateDisplayedValueSubscription?.unsubscribe();\n this._updateDisplayedValueSubscription = null;\n }\n\n //######################### public methods - implementation of EditLiveSearch #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() =>\n {\n //do not change active if active is visible\n if(!this.pluginBus.selectOptions.optionsGatherer.availableOptions.find((option: ɵNgSelectOption) => option.active))\n {\n //only when input is filled at least with one char\n if(this.searchValue)\n {\n const option: ɵNgSelectOption = this.pluginBus.selectOptions.optionsGatherer.availableOptions.find(itm => this.pluginBus.selectOptions.liveSearchFilter(this.searchValue, this.pluginBus.selectOptions.normalizer)(itm));\n\n if(option)\n {\n this.pluginBus.selectOptions.optionsGatherer.options.forEach((option: ɵNgSelectOption) => option.active = false);\n option.active = true;\n this._popup.invalidateVisuals();\n }\n }\n //select first\n else\n {\n this._activateSelectedOrFirst();\n }\n }\n });\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 if(!this._liveSearchFocusSubscription)\n {\n this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() =>\n {\n this.inputElementChild?.nativeElement.focus();\n });\n }\n\n if(!this._updateDisplayedValueSubscription)\n {\n this._updateDisplayedValueSubscription = this.pluginBus.updateDisplayedValue.subscribe(() =>\n {\n this.handleBlur();\n });\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n const selected = this._valueHandler.selectedOptions;\n\n if(!selected)\n {\n this.searchValueDisplayed = '';\n this.handleInput('');\n this._changeDetector.detectChanges();\n\n return;\n }\n\n //reset filtering of available options\n this.handleInput(null);\n\n if(Array.isArray(selected))\n {\n this.searchValueDisplayed = '';\n this.inputElementChild?.nativeElement.focus();\n this._changeDetector.detectChanges();\n }\n else\n {\n //set selected into live search\n this.searchValueDisplayed = selected.text;\n this._changeDetector.detectChanges();\n\n //select current text\n this.inputElementChild?.nativeElement.select();\n }\n });\n }\n\n this._initTexts();\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 this._changeDetector.detectChanges();\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handle input value\n * @param value - Value of input\n * @param inputChange - Indication that change was by input event of input\n * @internal\n */\n public handleInput(value: string, inputChange: boolean = false)\n {\n this.searchValue = value;\n this.searchValueChange.emit();\n\n if(inputChange)\n {\n this.pluginBus.showHidePopup.emit(true);\n this.searchValueDisplayed = value;\n\n //single value select\n if(!this.pluginBus.selectOptions.multiple)\n {\n //cancel value\n if(this._options.nonExistingCancel)\n {\n this._valueHandler.setValue(null);\n }\n //empty string cancels value\n else if(this._options.emptyCancel && isPresent(value) && !value.length)\n {\n this._valueHandler.setValue(null);\n }\n //otherwise keep last value\n }\n }\n }\n\n /**\n * Handles focus event\n * @param element - Element that got focus\n * @param show - Indication whether show popup\n * @internal\n */\n public handleFocus(element: HTMLInputElement, show: boolean = false)\n {\n element.select();\n\n this._activateSelectedOrFirst();\n\n if(show)\n {\n this.pluginBus.showHidePopup.emit(true);\n }\n\n this.pluginBus.focus.emit();\n }\n\n /**\n * Handles blur of live search\n */\n public handleBlur()\n {\n //not multiple and selected value\n if(!this.pluginBus.selectOptions.multiple)\n {\n //use selected text\n if(this._valueHandler.selectedOptions && !Array.isArray(this._valueHandler.selectedOptions))\n {\n this.searchValueDisplayed = this._valueHandler.selectedOptions.text;\n }\n //reset text\n else\n {\n this.searchValueDisplayed = '';\n }\n }\n //reset text\n else\n {\n this.searchValueDisplayed = '';\n }\n\n //reset available options\n this.searchValue = null;\n this.searchValueChange.emit();\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof LiveSearchTexts] = this._stringLocalization.get(this.options.texts[key as keyof LiveSearchTexts], null, true)();\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Activates first available option or selected option\n */\n protected _activateSelectedOrFirst()\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n const selectedOptions = this.availableOptions.filter(itm => itm.selected);\n\n //nothing active, nothing selected\n if(!activeOption && !selectedOptions.length)\n {\n const first = this.availableOptions[0];\n\n if(first)\n {\n first.active = true;\n }\n }\n //nothing active\n else if(!activeOption)\n {\n //last selected as sactive\n selectedOptions[selectedOptions.length - 1].active = true;\n }\n }\n}\n","<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=editLiveSearch.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/edit/editLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearch, LiveSearchOptions} from '../liveSearch.interface';\n\n/**\n * Css classes for edit live search\n */\nexport interface CssClassesEditLiveSearch\n{\n /**\n * Applied to wrapper div around input\n */\n wrapperDiv?: string;\n\n /**\n * Applied to input that represents live search\n */\n input?: string;\n}\n\n/**\n * Edit live search options\n */\nexport interface EditLiveSearchOptions extends LiveSearchOptions<CssClassesEditLiveSearch>\n{\n /**\n * Indication whether keep search value after popup close\n */\n keepSearchValue?: boolean;\n\n /**\n * Indication whether cancel selected value if non existing value is in live search, works for single value\n */\n nonExistingCancel?: boolean;\n\n /**\n * Indicaiton whether empty string in live search cancel selected value\n */\n emptyCancel?: boolean;\n}\n\n/**\n * Public API for 'EditLiveSearchComponent'\n */\nexport interface EditLiveSearch extends LiveSearch\n{\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveSearch.interface.js","sourceRoot":"","sources":["../../../../src/plugins/liveSearch/liveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectPlugin, VisualPluginOptions} from '../../misc';\n\n/**\n * Texts that are used within LiveSearch\n */\nexport interface LiveSearchTexts\n{\n /**\n * Displayed when nothing was entered into input\n */\n inputPlaceholder?: string;\n}\n\n/**\n * Options for live search plugin\n */\nexport interface LiveSearchOptions<TCssClasses = any> extends VisualPluginOptions<TCssClasses>\n{\n /**\n * Texts that are used within any LiveSearch\n */\n texts?: LiveSearchTexts;\n}\n\n/**\n * Keyboard handler plugin interface\n */\nexport interface LiveSearch extends NgSelectPlugin\n{\n /**\n * HTML element that represents live search\n */\n readonly liveSearchElement: HTMLElement;\n\n /**\n * Current value of live search\n */\n readonly searchValue: string;\n\n /**\n * Occurs when current value of live search changes\n */\n readonly searchValueChange: EventEmitter<void>;\n}"]}
@@ -1,65 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, EventEmitter } from '@angular/core';
2
- import { DOCUMENT } from '@angular/common';
3
- import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Component used for no live search
7
- */
8
- export class NoLiveSearchComponent {
9
- /**
10
- * HTML element that represents live search
11
- */
12
- get liveSearchElement() {
13
- return this._document.createElement('span');
14
- }
15
- //######################### constructor #########################
16
- constructor(ngSelectPlugins, pluginElement, _document) {
17
- this.ngSelectPlugins = ngSelectPlugins;
18
- this.pluginElement = pluginElement;
19
- this._document = _document;
20
- /**
21
- * Current value of live search
22
- */
23
- this.searchValue = null;
24
- /**
25
- * Occurs when current value of live search changes
26
- */
27
- this.searchValueChange = new EventEmitter();
28
- }
29
- //######################### public methods - implementation of NoLiveSearch #########################
30
- /**
31
- * Initialize plugin, to be ready to use, initialize communication with other plugins
32
- */
33
- initialize() {
34
- }
35
- /**
36
- * Initialize plugin options, all operations required to be done with plugin options are handled here
37
- */
38
- initOptions() {
39
- }
40
- /**
41
- * Explicitly runs invalidation of content (change detection)
42
- */
43
- invalidateVisuals() {
44
- }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
46
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: NoLiveSearchComponent, isStandalone: false, selector: "ng-no-live-search", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoLiveSearchComponent, decorators: [{
49
- type: Component,
50
- args: [{
51
- selector: 'ng-no-live-search',
52
- template: '',
53
- standalone: false,
54
- changeDetection: ChangeDetectionStrategy.OnPush
55
- }]
56
- }], ctorParameters: () => [{ type: undefined, decorators: [{
57
- type: Inject,
58
- args: [NG_SELECT_PLUGIN_INSTANCES]
59
- }, {
60
- type: Optional
61
- }] }, { type: i0.ElementRef }, { type: Document, decorators: [{
62
- type: Inject,
63
- args: [DOCUMENT]
64
- }] }] });
65
- //# sourceMappingURL=noLiveSearch.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/no/noLiveSearch.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAKzC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;;AAG5E;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAqB9B;;OAEG;IACH,IAAW,iBAAiB;QAExB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IAYD,iEAAiE;IACjE,YAAmE,eAAwC,EACxF,aAAyB,EACN,SAAmB;QAFU,oBAAe,GAAf,eAAe,CAAyB;QACxF,kBAAa,GAAb,aAAa,CAAY;QACN,cAAS,GAAT,SAAS,CAAU;QAbzD;;WAEG;QACI,gBAAW,GAAW,IAAI,CAAC;QAElC;;WAEG;QACI,sBAAiB,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAOxE,CAAC;IAED,qGAAqG;IAErG;;OAEG;IACI,UAAU;IAEjB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;8GAnEQ,qBAAqB,kBAwCV,0BAA0B,uDAE1B,QAAQ;kGA1CnB,qBAAqB,8EAJpB,EAAE;;2FAIH,qBAAqB;kBAPjC,SAAS;mBACV;oBACI,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyCgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAE5C,MAAM;2BAAC,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, EventEmitter} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {NoLiveSearchOptions, NoLiveSearch} from './noLiveSearch.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Component used for no live search\n */\n@Component(\n{\n selector: 'ng-no-live-search',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoLiveSearchComponent implements NoLiveSearch, NgSelectPlugin<NoLiveSearchOptions>\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: NoLiveSearchOptions;\n\n //######################### public properties - implementation of NoLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public options: NoLiveSearchOptions;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this._document.createElement('span');\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(DOCUMENT) private _document: Document)\n {\n }\n\n //######################### public methods - implementation of NoLiveSearch #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\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}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=noLiveSearch.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noLiveSearch.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/no/noLiveSearch.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {LiveSearch, LiveSearchOptions} from '../liveSearch.interface';\n\n/**\n * No live search options\n */\nexport interface NoLiveSearchOptions extends LiveSearchOptions\n{\n}\n\n/**\n * Public API for 'NoLiveSearchComponent'\n */\nexport interface NoLiveSearch extends LiveSearch\n{\n}"]}
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Constant used for accessing live search plugin in NgSelect
4
- */
5
- export const LIVE_SEARCH = 'LIVE_SEARCH';
6
- /**
7
- * Token for injecting options for live search plugin
8
- */
9
- export const LIVE_SEARCH_OPTIONS = new InjectionToken('LIVE_SEARCH_OPTIONS');
10
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/liveSearch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAsC,IAAI,cAAc,CAAoB,qBAAqB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {LiveSearchOptions} from './liveSearch.interface';\n\n/**\n * Constant used for accessing live search plugin in NgSelect\n */\nexport const LIVE_SEARCH = 'LIVE_SEARCH';\n\n/**\n * Token for injecting options for live search plugin\n */\nexport const LIVE_SEARCH_OPTIONS: InjectionToken<LiveSearchOptions> = new InjectionToken<LiveSearchOptions>('LIVE_SEARCH_OPTIONS');"]}
@@ -1,58 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef } from '@angular/core';
2
- import { STRING_LOCALIZATION } from '@anglr/common';
3
- import { extend } from '@jscrpt/common/extend';
4
- import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
5
- import { NORMAL_STATE_OPTIONS } from '../types';
6
- import { PluginBus } from '../../../misc/pluginBus/pluginBus';
7
- import { NormalStateAbstractComponent } from '../normalStateAbstract.component';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "../../../misc/pluginBus/pluginBus";
10
- import * as i2 from "@angular/common";
11
- import * as i3 from "../../../pipes/ngSelectValue.pipe";
12
- /**
13
- * Default options for normal state
14
- * @internal
15
- */
16
- const defaultOptions = {
17
- cssClasses: {
18
- normalStateElement: 'btn btn-select',
19
- selectedCarret: 'selected-caret fa fa-caret-down',
20
- selectedValue: 'selected-value'
21
- },
22
- texts: {
23
- nothingSelected: 'Nothing selected'
24
- },
25
- optionDisplayText: option => option.text
26
- };
27
- /**
28
- * Component used for rendering basic simple normal state of select
29
- */
30
- export class BasicNormalStateComponent extends NormalStateAbstractComponent {
31
- //######################### constructor #########################
32
- constructor(ngSelectPlugins, pluginBus, pluginElement, changeDetector, stringLocalization, options) {
33
- super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, stringLocalization);
34
- this._options = extend(true, {}, defaultOptions, options);
35
- }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicNormalStateComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: STRING_LOCALIZATION }, { token: NORMAL_STATE_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: BasicNormalStateComponent, isStandalone: false, selector: "div.normal-state", usesInheritance: true, ngImport: i0, template: "<ng-template #defaultLook>{{valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected: options?.optionDisplayText}}</ng-template>\r\n\r\n<button [ngClass]=\"options?.cssClasses?.normalStateElement\" (click)=\"pluginBus?.togglePopup.emit(); pluginBus?.liveSearchFocus.emit()\" (focus)=\"pluginBus?.focus?.emit()\" [disabled]=\"!!pluginBus?.selectOptions?.readonly\" type=\"button\" [title]=\"valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected\">\r\n <span [ngClass]=\"options?.cssClasses?.selectedValue\"><ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.normalStateTemplate || defaultLook; context: {$implicit: this}\"></ng-container></span>\r\n <span [ngClass]=\"options?.cssClasses?.selectedCarret\"></span>\r\n</button>", styles: ["button.btn-select\r\n{\r\n display: flex;\r\n width: 100%;\r\n padding: 5px 0px 4px 6px;\r\n background-color: #ffffff;\r\n background-image: none;\r\n border: 1px solid #cccccc;\r\n border-radius: 4px;\r\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;\r\n height: 28px;\r\n overflow: hidden;\r\n}\r\n\r\nbutton.btn-select:hover\r\n{\r\n background-color: #F2F2F2;\r\n}\r\n\r\nbutton.btn-select:active\r\n{\r\n box-shadow: 0 0 5px -1px #888888 inset;\r\n}\r\n\r\nbutton.btn-select .selected-value\r\n{\r\n flex: 1;\r\n text-align: left;\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\nbutton.btn-select .selected-caret\r\n{\r\n flex: 0 0 20px;\r\n align-self: center;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i3.NgSelectValuePipe, name: "ngSelectValue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicNormalStateComponent, decorators: [{
40
- type: Component,
41
- args: [{ selector: 'div.normal-state', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultLook>{{valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected: options?.optionDisplayText}}</ng-template>\r\n\r\n<button [ngClass]=\"options?.cssClasses?.normalStateElement\" (click)=\"pluginBus?.togglePopup.emit(); pluginBus?.liveSearchFocus.emit()\" (focus)=\"pluginBus?.focus?.emit()\" [disabled]=\"!!pluginBus?.selectOptions?.readonly\" type=\"button\" [title]=\"valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected\">\r\n <span [ngClass]=\"options?.cssClasses?.selectedValue\"><ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.normalStateTemplate || defaultLook; context: {$implicit: this}\"></ng-container></span>\r\n <span [ngClass]=\"options?.cssClasses?.selectedCarret\"></span>\r\n</button>", styles: ["button.btn-select\r\n{\r\n display: flex;\r\n width: 100%;\r\n padding: 5px 0px 4px 6px;\r\n background-color: #ffffff;\r\n background-image: none;\r\n border: 1px solid #cccccc;\r\n border-radius: 4px;\r\n box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;\r\n height: 28px;\r\n overflow: hidden;\r\n}\r\n\r\nbutton.btn-select:hover\r\n{\r\n background-color: #F2F2F2;\r\n}\r\n\r\nbutton.btn-select:active\r\n{\r\n box-shadow: 0 0 5px -1px #888888 inset;\r\n}\r\n\r\nbutton.btn-select .selected-value\r\n{\r\n flex: 1;\r\n text-align: left;\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n\r\nbutton.btn-select .selected-caret\r\n{\r\n flex: 0 0 20px;\r\n align-self: center;\r\n}"] }]
42
- }], ctorParameters: () => [{ type: undefined, decorators: [{
43
- type: Inject,
44
- args: [NG_SELECT_PLUGIN_INSTANCES]
45
- }, {
46
- type: Optional
47
- }] }, { type: i1.PluginBus, decorators: [{
48
- type: Optional
49
- }] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
50
- type: Inject,
51
- args: [STRING_LOCALIZATION]
52
- }] }, { type: undefined, decorators: [{
53
- type: Inject,
54
- args: [NORMAL_STATE_OPTIONS]
55
- }, {
56
- type: Optional
57
- }] }] });
58
- //# sourceMappingURL=basicNormalState.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"basicNormalState.component.js","sourceRoot":"","sources":["../../../../../src/plugins/normalState/basic/basicNormalState.component.ts","../../../../../src/plugins/normalState/basic/basicNormalState.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AAC7H,OAAO,EAAqB,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAK7C,O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';\nimport {StringLocalization, STRING_LOCALIZATION} from '@anglr/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {BasicNormalStateOptions, BasicNormalState, CssClassesBasicNormalState} from './basicNormalState.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {NORMAL_STATE_OPTIONS} from '../types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {NormalStateAbstractComponent} from '../normalStateAbstract.component';\n\n/**\n * Default options for normal state\n * @internal\n */\nconst defaultOptions: BasicNormalStateOptions =\n{\n cssClasses:\n {\n normalStateElement: 'btn btn-select',\n selectedCarret: 'selected-caret fa fa-caret-down',\n selectedValue: 'selected-value'\n },\n texts:\n {\n nothingSelected: 'Nothing selected'\n },\n optionDisplayText: option => option.text\n};\n\n/**\n * Component used for rendering basic simple normal state of select\n */\n@Component(\n{\n selector: 'div.normal-state',\n templateUrl: 'basicNormalState.component.html',\n styleUrl: 'basicNormalState.component.css',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicNormalStateComponent<TValue = any> extends NormalStateAbstractComponent<CssClassesBasicNormalState, BasicNormalStateOptions<TValue>, TValue> implements BasicNormalState, NgSelectPlugin<BasicNormalStateOptions>, OnDestroy\n{\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() ngSelectPlugins: NgSelectPluginInstances,\n @Optional() pluginBus: PluginBus,\n pluginElement: ElementRef,\n changeDetector: ChangeDetectorRef,\n @Inject(STRING_LOCALIZATION) stringLocalization: StringLocalization,\n @Inject(NORMAL_STATE_OPTIONS) @Optional() options?: BasicNormalStateOptions)\n {\n super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, stringLocalization);\n\n this._options = extend(true, {}, defaultOptions, options);\n }\n}\n","<ng-template #defaultLook>{{valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected: options?.optionDisplayText}}</ng-template>\r\n\r\n<button [ngClass]=\"options?.cssClasses?.normalStateElement\" (click)=\"pluginBus?.togglePopup.emit(); pluginBus?.liveSearchFocus.emit()\" (focus)=\"pluginBus?.focus?.emit()\" [disabled]=\"!!pluginBus?.selectOptions?.readonly\" type=\"button\" [title]=\"valueHandler?.selectedOptions | ngSelectValue: texts?.nothingSelected\">\r\n <span [ngClass]=\"options?.cssClasses?.selectedValue\"><ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.normalStateTemplate || defaultLook; context: {$implicit: this}\"></ng-container></span>\r\n <span [ngClass]=\"options?.cssClasses?.selectedCarret\"></span>\r\n</button>"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=basicNormalState.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"basicNormalState.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/normalState/basic/basicNormalState.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NormalState, NormalStateOptions} from '../normalState.interface';\n\n/**\n * Css classes for basic normal state\n */\nexport interface CssClassesBasicNormalState\n{\n /**\n * Applied to currently selected value, which is visible to user (default template)\n */\n selectedValue?: string;\n\n /**\n * Applied to \"carret\", indicating that it is select and there is more options available\n */\n selectedCarret?: string;\n\n /**\n * Applied to HTML element that represents normal default state visible to user\n */\n normalStateElement?: string;\n}\n\n/**\n * Basic normal state options\n */\nexport interface BasicNormalStateOptions<TValue = any> extends NormalStateOptions<CssClassesBasicNormalState, TValue>\n{\n}\n\n/**\n * Public API for 'BasicNormalStateComponent'\n */\nexport interface BasicNormalState extends NormalState\n{\n}"]}
@@ -1,4 +0,0 @@
1
- export * from './normalStateAbstract.component';
2
- export * from './basic/basicNormalState.component';
3
- export * from './edit/editNormalState.component';
4
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/normalState/components.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './normalStateAbstract.component';\nexport * from './basic/basicNormalState.component';\nexport * from './edit/editNormalState.component';"]}