@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,200 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, ViewChildren, Directive } from '@angular/core';
2
- import { isDescendant } from '@jscrpt/common';
3
- import { extend } from '@jscrpt/common/extend';
4
- import { PluginBus } from '../../misc/pluginBus/pluginBus';
5
- import { VALUE_HANDLER } from '../valueHandler/types';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "../../misc/pluginBus/pluginBus";
8
- /**
9
- * Base abstract class for popup with options
10
- */
11
- export class PopupAbstractComponent {
12
- //######################### protected properties #########################
13
- /**
14
- * Gets indication whether keep open popup after value change
15
- */
16
- get keepOpen() {
17
- return this.pluginBus.selectOptions.multiple;
18
- }
19
- //######################### public properties - implementation of Popup #########################
20
- /**
21
- * Options for NgSelect plugin
22
- */
23
- get options() {
24
- return this._options;
25
- }
26
- set options(options) {
27
- this._options = extend(true, this._options, options);
28
- }
29
- /**
30
- * Html element that represents popup itself
31
- */
32
- get popupElement() {
33
- const ref = this.popupElementChildren.first;
34
- if (!ref) {
35
- return null;
36
- }
37
- return ref.nativeElement;
38
- }
39
- //######################### constructor #########################
40
- constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _document, _stringLocalization) {
41
- this.ngSelectPlugins = ngSelectPlugins;
42
- this.pluginBus = pluginBus;
43
- this.pluginElement = pluginElement;
44
- this._changeDetector = _changeDetector;
45
- this._document = _document;
46
- this._stringLocalization = _stringLocalization;
47
- /**
48
- * Indication whether is popup visible
49
- */
50
- this._popupVisible = false;
51
- /**
52
- * Occurs when visibility of popup has changed
53
- */
54
- this.visibilityChange = new EventEmitter();
55
- /**
56
- * Object containing available texts
57
- * @internal
58
- */
59
- this.texts = {};
60
- /**
61
- * Handles click outside of select element
62
- * @param event - Mouse event object
63
- */
64
- this._handleClickOutside = (event) => {
65
- if (this.pluginBus.selectElement.nativeElement != event.target &&
66
- !isDescendant(this.pluginBus.selectElement.nativeElement, event.target) &&
67
- this.pluginElement.nativeElement != event.target &&
68
- !isDescendant(this.pluginElement.nativeElement, event.target)) {
69
- this.togglePopup();
70
- this.pluginBus.updateDisplayedValue.emit();
71
- }
72
- };
73
- /**
74
- * Handles visibility change
75
- */
76
- this._handleVisibilityChange = (visible) => {
77
- if (this.options.visible != visible) {
78
- this.options.visible = visible;
79
- this._changeDetector.detectChanges();
80
- }
81
- };
82
- }
83
- //######################### public methods - implementation of AfterViewInit #########################
84
- /**
85
- * Called when view was initialized
86
- */
87
- ngAfterViewInit() {
88
- this.popupElementChildren.changes.subscribe(() => {
89
- if (!!this.popupElementChildren.first == this._popupVisible) {
90
- return;
91
- }
92
- //handle click outside
93
- if (this.popupElementChildren.first) {
94
- this._document.addEventListener('mouseup', this._handleClickOutside);
95
- }
96
- //unregister handle click outside
97
- else {
98
- this._document.removeEventListener('mouseup', this._handleClickOutside);
99
- }
100
- this._popupVisible = !!this.popupElementChildren.first;
101
- this.visibilityChange.emit();
102
- });
103
- }
104
- //######################### public methods - implementation of OnDestroy #########################
105
- /**
106
- * Called when component is destroyed
107
- */
108
- ngOnDestroy() {
109
- this._optionsChangeSubscription?.unsubscribe();
110
- this._optionsChangeSubscription = null;
111
- this._popupToggleSubscription?.unsubscribe();
112
- this._popupToggleSubscription = null;
113
- this._valueChangedSubscription?.unsubscribe();
114
- this._valueChangedSubscription = null;
115
- this._visibilityRequestSubscription?.unsubscribe();
116
- this._visibilityRequestSubscription = null;
117
- this._document.removeEventListener('mouseup', this._handleClickOutside);
118
- }
119
- //######################### public methods - implementation of Popup #########################
120
- /**
121
- * Initialize plugin, to be ready to use, initialize communication with other plugins
122
- */
123
- initialize() {
124
- if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
125
- this._optionsChangeSubscription.unsubscribe();
126
- this._optionsChangeSubscription = null;
127
- this._optionsGatherer = null;
128
- }
129
- if (!this._optionsGatherer) {
130
- this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
131
- this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());
132
- }
133
- if (!this._popupToggleSubscription) {
134
- this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());
135
- }
136
- if (!this._visibilityRequestSubscription) {
137
- this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);
138
- }
139
- const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
140
- if (this._valueHandler && this._valueHandler != valueHandler) {
141
- this._valueChangedSubscription.unsubscribe();
142
- this._valueChangedSubscription = null;
143
- this._valueHandler = null;
144
- }
145
- if (!this._valueHandler) {
146
- this._valueHandler = valueHandler;
147
- this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
148
- if (!this.keepOpen) {
149
- this._handleVisibilityChange(false);
150
- }
151
- });
152
- }
153
- this.loadOptions();
154
- this._initTexts();
155
- }
156
- /**
157
- * Initialize plugin options, all operations required to be done with plugin options are handled here
158
- */
159
- initOptions() {
160
- }
161
- /**
162
- * Explicitly runs invalidation of content (change detection)
163
- */
164
- invalidateVisuals() {
165
- this._changeDetector.detectChanges();
166
- }
167
- //######################### protected methods #########################
168
- /**
169
- * Initialize texts
170
- */
171
- _initTexts() {
172
- Object.keys(this.options.texts).forEach(key => {
173
- this.texts[key] = this._stringLocalization.get(this.options.texts[key], null, true)();
174
- });
175
- this._changeDetector.detectChanges();
176
- }
177
- /**
178
- * Loads options
179
- */
180
- loadOptions() {
181
- this.selectOptions = this._optionsGatherer.availableOptions;
182
- this._changeDetector.detectChanges();
183
- }
184
- /**
185
- * Toggles popup visibility
186
- */
187
- togglePopup() {
188
- this.options.visible = !this.options.visible;
189
- this._changeDetector.detectChanges();
190
- }
191
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PopupAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
192
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: PopupAbstractComponent, isStandalone: true, viewQueries: [{ propertyName: "popupElementChildren", predicate: ["popupDiv"], descendants: true }], ngImport: i0 }); }
193
- }
194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PopupAbstractComponent, decorators: [{
195
- type: Directive
196
- }], ctorParameters: () => [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: Document }, { type: undefined }], propDecorators: { popupElementChildren: [{
197
- type: ViewChildren,
198
- args: ['popupDiv']
199
- }] } });
200
- //# sourceMappingURL=popupAbstract.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/popup/popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAa,SAAS,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAExI,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAM7C,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAGzD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;;;AAEpD;;GAEG;AAEH,MAAM,OAAO,sBAAsB;IA4C/B,0EAA0E;IAE1E;;OAEG;IACH,IAAc,QAAQ;QAElB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;IACjD,CAAC;IAED,iGAAiG;IAEjG;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAW,OAAO,CAAC,OAAiB;QAEhC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAOD;;OAEG;IACH,IAAW,YAAY;QAEnB,MAAM,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;QAE5C,IAAG,CAAC,GAAG,EACP,CAAC;YACG,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,GAAG,CAAC,aAAa,CAAC;IAC7B,CAAC;IAyBD,iEAAiE;IACjE,YAAmB,eAAwC,EACxC,SAAoB,EACpB,aAAyB,EACtB,eAAkC,EAClC,SAAmB,EACnB,mBAAuC;QAL1C,oBAAe,GAAf,eAAe,CAAyB;QACxC,cAAS,GAAT,SAAS,CAA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ourcesContent":["import {AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {isDescendant} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {NgSelectPlugin, OptionsGatherer} from '../../misc';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\nimport {Popup, PopupOptions, PopupTexts} from './popup.interface';\nimport {ValueHandler} from '../valueHandler';\nimport {VALUE_HANDLER} from '../valueHandler/types';\n\n/**\n * Base abstract class for popup with options\n */\n@Directive()\nexport class PopupAbstractComponent<TCssClasses = any, TOptions extends PopupOptions<TCssClasses> = any> implements Popup, NgSelectPlugin<TOptions>, AfterViewInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\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 toggle popup event\n */\n protected _popupToggleSubscription: Subscription;\n\n /**\n * Subscription for popup visibility change request\n */\n protected _visibilityRequestSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Indication whether is popup visible\n */\n protected _popupVisible: boolean = false;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### protected properties #########################\n\n /**\n * Gets indication whether keep open popup after value change\n */\n protected get keepOpen(): boolean\n {\n return this.pluginBus.selectOptions.multiple;\n }\n\n //######################### public properties - implementation of Popup #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): TOptions\n {\n return this._options;\n }\n public set options(options: TOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Occurs when visibility of popup has changed\n */\n public visibilityChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Html element that represents popup itself\n */\n public get popupElement(): HTMLElement\n {\n const ref = this.popupElementChildren.first;\n\n if(!ref)\n {\n return null;\n }\n\n return ref.nativeElement;\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of select options available\n * @internal\n */\n public selectOptions: ɵNgSelectOption[];\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: PopupTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * Watch for visibility of popup div element\n * @internal\n */\n @ViewChildren('popupDiv')\n public popupElementChildren: QueryList<ElementRef<HTMLElement>>;\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n protected _document: Document,\n protected _stringLocalization: StringLocalization)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.popupElementChildren.changes.subscribe(() =>\n {\n if(!!this.popupElementChildren.first == this._popupVisible)\n {\n return;\n }\n\n //handle click outside\n if(this.popupElementChildren.first)\n {\n this._document.addEventListener('mouseup', this._handleClickOutside);\n }\n //unregister handle click outside\n else\n {\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n this._popupVisible = !!this.popupElementChildren.first;\n this.visibilityChange.emit();\n });\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._popupToggleSubscription?.unsubscribe();\n this._popupToggleSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._visibilityRequestSubscription?.unsubscribe();\n this._visibilityRequestSubscription = null;\n\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n //######################### public methods - implementation of Popup #########################\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(() => this.loadOptions());\n }\n\n if(!this._popupToggleSubscription)\n {\n this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());\n }\n\n if(!this._visibilityRequestSubscription)\n {\n this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);\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 if(!this.keepOpen)\n {\n this._handleVisibilityChange(false);\n }\n });\n }\n\n this.loadOptions();\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 //######################### 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 PopupTexts] = this._stringLocalization.get(this.options.texts[key as keyof PopupTexts], null, true)();\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Loads options\n */\n protected loadOptions()\n {\n this.selectOptions = this._optionsGatherer.availableOptions;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Toggles popup visibility\n */\n protected togglePopup()\n {\n this.options.visible = !this.options.visible;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Handles click outside of select element\n * @param event - Mouse event object\n */\n protected _handleClickOutside = (event: MouseEvent) =>\n {\n if(this.pluginBus.selectElement.nativeElement != event.target &&\n !isDescendant(this.pluginBus.selectElement.nativeElement, event.target as HTMLElement) &&\n this.pluginElement.nativeElement != event.target &&\n !isDescendant(this.pluginElement.nativeElement, event.target as HTMLElement))\n {\n this.togglePopup();\n\n this.pluginBus.updateDisplayedValue.emit();\n }\n };\n\n /**\n * Handles visibility change\n */\n protected _handleVisibilityChange = (visible: boolean) =>\n {\n if(this.options.visible != visible)\n {\n this.options.visible = visible;\n this._changeDetector.detectChanges();\n }\n };\n}\n"]}
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Constant used for accessing popup plugin in NgSelect
4
- */
5
- export const POPUP = 'POPUP';
6
- /**
7
- * Token for injecting options for popup plugin
8
- */
9
- export const POPUP_OPTIONS = new InjectionToken('POPUP_OPTIONS');
10
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/popup/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,IAAI,cAAc,CAAe,eAAe,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {PopupOptions} from './popup.interface';\n\n/**\n * Constant used for accessing popup plugin in NgSelect\n */\nexport const POPUP = 'POPUP';\n\n/**\n * Token for injecting options for popup plugin\n */\nexport const POPUP_OPTIONS: InjectionToken<PopupOptions> = new InjectionToken<PopupOptions>('POPUP_OPTIONS');"]}
@@ -1,3 +0,0 @@
1
- export * from './default/defaultPositioner.component';
2
- export * from './no/noPositioner.component';
3
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/components.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './default/defaultPositioner.component';\nexport * from './no/noPositioner.component';"]}
@@ -1,160 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, PLATFORM_ID, EventEmitter } from '@angular/core';
2
- import { isPlatformBrowser } from '@angular/common';
3
- import { applyPositionResult, POSITION, PositionOffset, PositionPlacement } from '@anglr/common';
4
- import { extend } from '@jscrpt/common/extend';
5
- import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
6
- import { POSITIONER_OPTIONS } from '../types';
7
- import { POPUP } from '../../popup/types';
8
- import { PluginBus } from '../../../misc/pluginBus/pluginBus';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "../../../misc/pluginBus/pluginBus";
11
- /**
12
- * Default options for positioner
13
- */
14
- const defaultOptions = {
15
- positionOptions: {
16
- offset: PositionOffset.None,
17
- placement: PositionPlacement.BottomStart,
18
- }
19
- };
20
- /**
21
- * Component used for positioning popup element, handles resize, scroll and collision using `Position`
22
- */
23
- export class DefaultPositionerComponent {
24
- //######################### public properties - implementation of DefaultPositioner #########################
25
- /**
26
- * Options for NgSelect plugin
27
- */
28
- get options() {
29
- return this.ɵoptions;
30
- }
31
- set options(options) {
32
- this.ɵoptions = extend(true, this.ɵoptions, options);
33
- }
34
- /**
35
- * @inheritdoc
36
- */
37
- get flip() {
38
- return this.ɵflip;
39
- }
40
- //######################### constructor #########################
41
- constructor(ngSelectPlugins, pluginBus, pluginElement, position, options, platformId) {
42
- this.ngSelectPlugins = ngSelectPlugins;
43
- this.pluginBus = pluginBus;
44
- this.pluginElement = pluginElement;
45
- this.position = position;
46
- this.platformId = platformId;
47
- /**
48
- * Occurs when flip occured during positining of popup
49
- */
50
- this.ɵflip = new EventEmitter();
51
- /**
52
- * Indication whether is code running in browser
53
- */
54
- this.isBrowser = isPlatformBrowser(this.platformId);
55
- this.ɵoptions = extend(true, {}, defaultOptions, options);
56
- }
57
- //######################### public methods - implementation of OnDestroy #########################
58
- /**
59
- * Called when component is destroyed
60
- */
61
- ngOnDestroy() {
62
- this.visibilitySubscription?.unsubscribe();
63
- this.visibilitySubscription = null;
64
- this.positioningDispose?.();
65
- this.positioningSubscription?.unsubscribe();
66
- this.positioningSubscription = null;
67
- }
68
- //######################### public methods - implementation of DefaultPositioner #########################
69
- /**
70
- * Initialize plugin, to be ready to use, initialize communication with other plugins
71
- */
72
- initialize() {
73
- const popup = this.ngSelectPlugins[POPUP];
74
- if (this.popup && this.popup != popup) {
75
- this.visibilitySubscription?.unsubscribe();
76
- this.visibilitySubscription = null;
77
- this.popup = null;
78
- }
79
- if (!this.popup) {
80
- this.popup = popup;
81
- this.visibilitySubscription = this.popup.visibilityChange.subscribe(() => this.initPosition());
82
- }
83
- this.initPosition();
84
- }
85
- /**
86
- * @inheritdoc
87
- */
88
- initOptions() {
89
- }
90
- /**
91
- * @inheritdoc
92
- */
93
- invalidateVisuals() {
94
- }
95
- //######################### protected methods #########################
96
- /**
97
- * Initialize positioning of popup
98
- */
99
- initPosition() {
100
- this.popupElement = this.popup.popupElement;
101
- if (this.isBrowser) {
102
- //register events and handle position of opened popup
103
- if (this.popupElement) {
104
- this.positioningSubscription?.unsubscribe();
105
- this.positioningDispose?.();
106
- this.positioningSubscription = null;
107
- this.positioningDispose = null;
108
- this.positioningSubscription = this.position.placeElement(this.popupElement, this.pluginBus.selectElement.nativeElement, {
109
- autoUpdate: true,
110
- flip: true,
111
- ...this.options.positionOptions
112
- })
113
- .subscribe(result => {
114
- applyPositionResult(result);
115
- this.positioningDispose = result.dispose;
116
- if (result.flip) {
117
- this.flip.emit();
118
- }
119
- });
120
- }
121
- //unregister events
122
- else {
123
- this.positioningSubscription?.unsubscribe();
124
- this.positioningDispose?.();
125
- this.positioningSubscription = null;
126
- this.positioningDispose = null;
127
- }
128
- }
129
- }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DefaultPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: POSITION }, { token: POSITIONER_OPTIONS, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
131
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: DefaultPositionerComponent, isStandalone: false, selector: "ng-default-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
132
- }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DefaultPositionerComponent, decorators: [{
134
- type: Component,
135
- args: [{
136
- selector: 'ng-default-positioner',
137
- template: '',
138
- standalone: false,
139
- changeDetection: ChangeDetectionStrategy.OnPush
140
- }]
141
- }], ctorParameters: () => [{ type: undefined, decorators: [{
142
- type: Inject,
143
- args: [NG_SELECT_PLUGIN_INSTANCES]
144
- }, {
145
- type: Optional
146
- }] }, { type: i1.PluginBus, decorators: [{
147
- type: Optional
148
- }] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
149
- type: Inject,
150
- args: [POSITION]
151
- }] }, { type: undefined, decorators: [{
152
- type: Inject,
153
- args: [POSITIONER_OPTIONS]
154
- }, {
155
- type: Optional
156
- }] }, { type: undefined, decorators: [{
157
- type: Inject,
158
- args: [PLATFORM_ID]
159
- }] }] });
160
- //# sourceMappingURL=defaultPositioner.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/default/defaultPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,E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,kBAwEf,0BAA0B,gGAG1B,QAAQ,aACR,kBAAkB,6BAClB,WAAW;kGA7EtB,0BAA0B,kFAJzB,EAAE;;2FAIH,0BAA0B;kBAPtC,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyEgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ;;0BACpC,MAAM;2BAAC,WAAW","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy, PLATFORM_ID, EventEmitter} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\nimport {applyPositionResult, Position, POSITION, PositionOffset, PositionPlacement} from '@anglr/common';\nimport {NoopAction} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {DefaultPositionerOptions, DefaultPositioner} from './defaultPositioner.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n */\nconst defaultOptions: DefaultPositionerOptions =\n{\n positionOptions:\n {\n offset: PositionOffset.None,\n placement: PositionPlacement.BottomStart,\n }\n};\n\n/**\n * Component used for positioning popup element, handles resize, scroll and collision using `Position`\n */\n@Component(\n{\n selector: 'ng-default-positioner',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DefaultPositionerComponent implements DefaultPositioner, NgSelectPlugin<DefaultPositionerOptions>, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected optionsGatherer: OptionsGatherer;\n\n /**\n * Occurs when flip occured during positining of popup\n */\n protected ɵflip: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Options for NgSelect plugin\n */\n protected ɵoptions: DefaultPositionerOptions;\n\n /**\n * Subscription for visibility change of popup\n */\n protected visibilitySubscription: Subscription|undefined|null;\n\n /**\n * Subscription for positioning event that occured\n */\n protected positioningSubscription: Subscription|undefined|null;\n\n /**\n * Function used for disposing of positining watch\n */\n protected positioningDispose: NoopAction;\n\n /**\n * Popup that is displayed\n */\n protected popup: Popup;\n\n /**\n * Html element of popup plugin\n */\n protected popupElement: HTMLElement;\n\n /**\n * Indication whether is code running in browser\n */\n protected isBrowser: boolean = isPlatformBrowser(this.platformId);\n\n //######################### public properties - implementation of DefaultPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): DefaultPositionerOptions\n {\n return this.ɵoptions;\n }\n public set options(options: DefaultPositionerOptions)\n {\n this.ɵoptions = extend(true, this.ɵoptions, options);\n }\n\n /**\n * @inheritdoc\n */\n public get flip(): EventEmitter<void>\n {\n return this.ɵflip;\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(POSITION) protected position: Position<HTMLElement>,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: DefaultPositionerOptions,\n @Inject(PLATFORM_ID) protected platformId?: object,)\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.visibilitySubscription?.unsubscribe();\n this.visibilitySubscription = null;\n\n this.positioningDispose?.();\n\n this.positioningSubscription?.unsubscribe();\n this.positioningSubscription = null;\n }\n\n //######################### public methods - implementation of DefaultPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this.popup && this.popup != popup)\n {\n this.visibilitySubscription?.unsubscribe();\n this.visibilitySubscription = null;\n\n this.popup = null;\n }\n\n if(!this.popup)\n {\n this.popup = popup;\n\n this.visibilitySubscription = this.popup.visibilityChange.subscribe(() => this.initPosition());\n }\n\n this.initPosition();\n }\n\n /**\n * @inheritdoc\n */\n public initOptions()\n {\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize positioning of popup\n */\n protected initPosition()\n {\n this.popupElement = this.popup.popupElement;\n\n if(this.isBrowser)\n {\n //register events and handle position of opened popup\n if(this.popupElement)\n {\n this.positioningSubscription?.unsubscribe();\n this.positioningDispose?.();\n\n this.positioningSubscription = null;\n this.positioningDispose = null;\n\n this.positioningSubscription = this.position.placeElement(this.popupElement,\n this.pluginBus.selectElement.nativeElement,\n {\n autoUpdate: true,\n flip: true,\n ...this.options.positionOptions\n },)\n .subscribe(result =>\n {\n applyPositionResult(result);\n this.positioningDispose = result.dispose;\n\n if(result.flip)\n {\n this.flip.emit();\n }\n });\n }\n //unregister events\n else\n {\n this.positioningSubscription?.unsubscribe();\n this.positioningDispose?.();\n\n this.positioningSubscription = null;\n this.positioningDispose = null;\n }\n }\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=defaultPositioner.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/default/defaultPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Default positioner options\n */\nexport interface DefaultPositionerOptions extends PositionerOptions\n{\n}\n\n/**\n * Public API for 'DefaultPositionerComponent'\n */\nexport interface DefaultPositioner extends Positioner\n{\n}"]}
@@ -1,78 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Inject, Optional } from '@angular/core';
2
- import { extend } from '@jscrpt/common/extend';
3
- import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
4
- import { POSITIONER_OPTIONS } from '../types';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Default options for positioner
8
- */
9
- const defaultOptions = {};
10
- /**
11
- * Component used for not positioning popup
12
- */
13
- export class NoPositionerComponent {
14
- //######################### public properties - implementation of NoPositioner #########################
15
- /**
16
- * Options for NgSelect plugin
17
- */
18
- get options() {
19
- return this.ɵoptions;
20
- }
21
- set options(options) {
22
- this.ɵoptions = extend(true, this.ɵoptions, options);
23
- }
24
- /**
25
- * @inheritdoc
26
- */
27
- get flip() {
28
- return this.ɵflip;
29
- }
30
- //######################### constructor #########################
31
- constructor(ngSelectPlugins, pluginElement, options) {
32
- this.ngSelectPlugins = ngSelectPlugins;
33
- this.pluginElement = pluginElement;
34
- /**
35
- * Occurs when flip occured during positining of popup
36
- */
37
- this.ɵflip = new EventEmitter();
38
- this.ɵoptions = extend(true, {}, defaultOptions, options);
39
- }
40
- //######################### public methods - implementation of NoPositioner #########################
41
- /**
42
- * Initialize plugin, to be ready to use, initialize communication with other plugins
43
- */
44
- initialize() {
45
- }
46
- /**
47
- * Initialize plugin options, all operations required to be done with plugin options are handled here
48
- */
49
- initOptions() {
50
- }
51
- /**
52
- * Explicitly runs invalidation of content (change detection)
53
- */
54
- invalidateVisuals() {
55
- }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: POSITIONER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
57
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: NoPositionerComponent, isStandalone: false, selector: "ng-no-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoPositionerComponent, decorators: [{
60
- type: Component,
61
- args: [{
62
- selector: 'ng-no-positioner',
63
- template: '',
64
- standalone: false,
65
- changeDetection: ChangeDetectionStrategy.OnPush
66
- }]
67
- }], ctorParameters: () => [{ type: undefined, decorators: [{
68
- type: Inject,
69
- args: [NG_SELECT_PLUGIN_INSTANCES]
70
- }, {
71
- type: Optional
72
- }] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
73
- type: Inject,
74
- args: [POSITIONER_OPTIONS]
75
- }, {
76
- type: Optional
77
- }] }] });
78
- //# sourceMappingURL=noPositioner.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAK7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;;AAG5C;;GAEG;AACH,MAAM,cAAc,GACpB,EACC,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,qBAAqB;IAc9B,wGAAwG;IAExG;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAW,OAAO,CAAC,OAA4B;QAE3C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QAEX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAQD,iEAAiE;IACjE,YAAmE,eAAwC,EACxF,aAAyB,EACQ,OAA6B;QAFd,oBAAe,GAAf,eAAe,CAAyB;QACxF,kBAAa,GAAb,aAAa,CAAY;QAnC5C;;WAEG;QACO,UAAK,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAmC3D,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,qGAAqG;IAErG;;OAEG;IACI,UAAU;IAEjB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;8GAvEQ,qBAAqB,kBA2CV,0BAA0B,uDAE1B,kBAAkB;kGA7C7B,qBAAqB,6EAJpB,EAAE;;2FAIH,qBAAqB;kBAPjC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BA4CgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAE5C,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ","sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Inject, Optional} from '@angular/core';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {NoPositioner, NoPositionerOptions} from './noPositioner.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n */\nconst defaultOptions: NoPositionerOptions =\n{\n};\n\n/**\n * Component used for not positioning popup\n */\n@Component(\n{\n selector: 'ng-no-positioner',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoPositionerComponent implements NoPositioner, NgSelectPlugin<NoPositionerOptions>\n{\n //######################### protected properties #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected ɵoptions: NoPositionerOptions;\n\n /**\n * Occurs when flip occured during positining of popup\n */\n protected ɵflip: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - implementation of NoPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): NoPositionerOptions\n {\n return this.ɵoptions;\n }\n public set options(options: NoPositionerOptions)\n {\n this.ɵoptions = extend(true, this.ɵoptions, options);\n }\n\n /**\n * @inheritdoc\n */\n public get flip(): EventEmitter<void>\n {\n return this.ɵflip;\n }\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: NoPositionerOptions)\n {\n this.ɵoptions = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of NoPositioner #########################\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}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=noPositioner.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Public API for 'NoPositionerComponent'\n */\nexport interface NoPositioner extends Positioner\n{}\n\n/**\n * No positioner options\n */\nexport interface NoPositionerOptions extends PositionerOptions\n{}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"positioner.interface.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/positioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {PositionOptions} from '@anglr/common';\n\nimport {PluginOptions, NgSelectPlugin} from '../../misc';\n\n/**\n * Options for positioner plugin\n */\nexport interface PositionerOptions extends PluginOptions\n{\n /**\n * Options used for positioning\n */\n positionOptions?: Partial<Omit<PositionOptions, 'mouseEvent'|'autoUpdate'|'flip'>>;\n}\n\n/**\n * Positioner plugin interface\n */\nexport interface Positioner extends NgSelectPlugin\n{\n /**\n * Occurs when flip occured during positining of popup\n */\n readonly flip: EventEmitter<void>;\n}"]}
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Constant used for accessing positioner plugin in NgSelect
4
- */
5
- export const POSITIONER = 'POSITIONER';
6
- /**
7
- * Token for injecting options for positioner plugin
8
- */
9
- export const POSITIONER_OPTIONS = new InjectionToken('POSITIONER_OPTIONS');
10
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsC,IAAI,cAAc,CAAoB,oBAAoB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {PositionerOptions} from './positioner.interface';\n\n/**\n * Constant used for accessing positioner plugin in NgSelect\n */\nexport const POSITIONER = 'POSITIONER';\n\n/**\n * Token for injecting options for positioner plugin\n */\nexport const POSITIONER_OPTIONS: InjectionToken<PositionerOptions> = new InjectionToken<PositionerOptions>('POSITIONER_OPTIONS');"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"readonlyState.interface.js","sourceRoot":"","sources":["../../../../src/plugins/readonlyState/readonlyState.interface.ts"],"names":[],"mappings":"","sourcesContent":["\nimport {NormalStateOptions, NormalState} from '../normalState';\n\n/**\n * Options for readonly state plugin\n */\nexport interface ReadonlyStateOptions<TCssClasses = any> extends NormalStateOptions<TCssClasses>\n{\n}\n\n/**\n * Readonly state plugin interface\n */\nexport interface ReadonlyState extends NormalState\n{\n}"]}
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Constant used for accessing readonly state plugin in NgSelect
4
- */
5
- export const READONLY_STATE = 'READONLY_STATE';
6
- /**
7
- * Token for injecting options for readonly state plugin
8
- */
9
- export const READONLY_STATE_OPTIONS = new InjectionToken('READONLY_STATE_OPTIONS');
10
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/readonlyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAyC,IAAI,cAAc,CAAuB,wBAAwB,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {ReadonlyStateOptions} from './readonlyState.interface';\n\n/**\n * Constant used for accessing readonly state plugin in NgSelect\n */\nexport const READONLY_STATE = 'READONLY_STATE';\n\n/**\n * Token for injecting options for readonly state plugin\n */\nexport const READONLY_STATE_OPTIONS: InjectionToken<ReadonlyStateOptions> = new InjectionToken<ReadonlyStateOptions>('READONLY_STATE_OPTIONS');"]}