@anglr/select 10.0.0 → 11.0.1-beta.20220222062944

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 (1082) hide show
  1. package/changelog.md +18 -0
  2. package/elements/package.json +7 -6
  3. package/elements/src/components/ngSelectElements.component.d.ts +66 -63
  4. package/elements/src/components/ngSelectElements.component.d.ts.map +1 -1
  5. package/elements/src/components/ngSelectElements.interface.d.ts +46 -46
  6. package/elements/src/components/ngSelectElements.interface.d.ts.map +1 -1
  7. package/elements/src/index.d.ts +3 -3
  8. package/elements/src/modules/ngSelectElements.module.d.ts +20 -11
  9. package/elements/src/modules/ngSelectElements.module.d.ts.map +1 -1
  10. package/es2015/elements/src/components/ngSelectElements.component.js +187 -0
  11. package/es2015/elements/src/components/ngSelectElements.component.js.map +1 -0
  12. package/es2015/elements/src/components/ngSelectElements.interface.js +2 -0
  13. package/es2015/elements/src/components/ngSelectElements.interface.js.map +1 -0
  14. package/es2015/elements/src/index.js +4 -0
  15. package/es2015/elements/src/index.js.map +1 -0
  16. package/es2015/elements/src/modules/ngSelectElements.module.js +52 -0
  17. package/es2015/elements/src/modules/ngSelectElements.module.js.map +1 -0
  18. package/es2015/extensions/src/extensions/getValue.js +2 -0
  19. package/es2015/extensions/src/extensions/getValue.js.map +1 -0
  20. package/es2015/extensions/src/extensions/onFocus.js +2 -0
  21. package/es2015/extensions/src/extensions/onFocus.js.map +1 -0
  22. package/es2015/extensions/src/extensions/patchOptions.js +12 -0
  23. package/es2015/extensions/src/extensions/patchOptions.js.map +1 -0
  24. package/es2015/extensions/src/extensions/reinitializeOptions.js +15 -0
  25. package/es2015/extensions/src/extensions/reinitializeOptions.js.map +1 -0
  26. package/es2015/extensions/src/extensions/setReadonly.js +2 -0
  27. package/es2015/extensions/src/extensions/setReadonly.js.map +1 -0
  28. package/es2015/extensions/src/extensions/setValue.js +2 -0
  29. package/es2015/extensions/src/extensions/setValue.js.map +1 -0
  30. package/es2015/extensions/src/extensions/valueChange.js +2 -0
  31. package/es2015/extensions/src/extensions/valueChange.js.map +1 -0
  32. package/es2015/extensions/src/index.js +8 -0
  33. package/es2015/extensions/src/index.js.map +1 -0
  34. package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +74 -0
  35. package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
  36. package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +2 -0
  37. package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -0
  38. package/es2015/material/src/components/basicDialogPopup/index.js +2 -0
  39. package/es2015/material/src/components/basicDialogPopup/index.js.map +1 -0
  40. package/es2015/material/src/components/basicDialogPopup/types.js +2 -0
  41. package/es2015/material/src/components/basicDialogPopup/types.js.map +1 -0
  42. package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +75 -0
  43. package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
  44. package/es2015/material/src/directives/types.js +2 -0
  45. package/es2015/material/src/directives/types.js.map +1 -0
  46. package/es2015/material/src/index.js +8 -0
  47. package/es2015/material/src/index.js.map +1 -0
  48. package/es2015/material/src/modules/dialogPopup.module.js +43 -0
  49. package/es2015/material/src/modules/dialogPopup.module.js.map +1 -0
  50. package/es2015/material/src/modules/virtualEditPopup.module.js +33 -0
  51. package/es2015/material/src/modules/virtualEditPopup.module.js.map +1 -0
  52. package/es2015/material/src/plugins/popup/components.js +3 -0
  53. package/es2015/material/src/plugins/popup/components.js.map +1 -0
  54. package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +143 -0
  55. package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
  56. package/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js +2 -0
  57. package/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -0
  58. package/es2015/material/src/plugins/popup/index.js +3 -0
  59. package/es2015/material/src/plugins/popup/index.js.map +1 -0
  60. package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +92 -0
  61. package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
  62. package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +2 -0
  63. package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -0
  64. package/es2015/popperJs/src/index.js +4 -0
  65. package/es2015/popperJs/src/index.js.map +1 -0
  66. package/es2015/popperJs/src/modules/popperjsPositioner.module.js +23 -0
  67. package/es2015/popperJs/src/modules/popperjsPositioner.module.js.map +1 -0
  68. package/es2015/popperJs/src/plugins/positioner/components.js +2 -0
  69. package/es2015/popperJs/src/plugins/positioner/components.js.map +1 -0
  70. package/es2015/popperJs/src/plugins/positioner/index.js +2 -0
  71. package/es2015/popperJs/src/plugins/positioner/index.js.map +1 -0
  72. package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +151 -0
  73. package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +1 -0
  74. package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +2 -0
  75. package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +1 -0
  76. package/es2015/src/components/option/index.js +3 -0
  77. package/es2015/src/components/option/index.js.map +1 -0
  78. package/es2015/src/components/option/optgroup.component.js +53 -0
  79. package/es2015/src/components/option/optgroup.component.js.map +1 -0
  80. package/es2015/src/components/option/optgroup.interface.js +2 -0
  81. package/es2015/src/components/option/optgroup.interface.js.map +1 -0
  82. package/es2015/src/components/option/option.component.js +38 -0
  83. package/es2015/src/components/option/option.component.js.map +1 -0
  84. package/es2015/src/components/option/option.interface.js +2 -0
  85. package/es2015/src/components/option/option.interface.js.map +1 -0
  86. package/es2015/src/components/select/index.js +2 -0
  87. package/es2015/src/components/select/index.js.map +1 -0
  88. package/es2015/src/components/select/select.component.js +605 -0
  89. package/es2015/src/components/select/select.component.js.map +1 -0
  90. package/es2015/src/components/select/select.interface.js +2 -0
  91. package/es2015/src/components/select/select.interface.js.map +1 -0
  92. package/es2015/src/components/select/types.js +6 -0
  93. package/es2015/src/components/select/types.js.map +1 -0
  94. package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
  95. package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -0
  96. package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +66 -0
  97. package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
  98. package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +42 -0
  99. package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
  100. package/es2015/src/index.js +40 -0
  101. package/es2015/src/index.js.map +1 -0
  102. package/es2015/src/index.ssr.js +10 -0
  103. package/es2015/src/index.ssr.js.map +1 -0
  104. package/es2015/src/misc/extensions/getValue.js +12 -0
  105. package/es2015/src/misc/extensions/getValue.js.map +1 -0
  106. package/es2015/src/misc/extensions/index.js +6 -0
  107. package/es2015/src/misc/extensions/index.js.map +1 -0
  108. package/es2015/src/misc/extensions/onFocus.js +10 -0
  109. package/es2015/src/misc/extensions/onFocus.js.map +1 -0
  110. package/es2015/src/misc/extensions/setReadonly.js +18 -0
  111. package/es2015/src/misc/extensions/setReadonly.js.map +1 -0
  112. package/es2015/src/misc/extensions/setValue.js +13 -0
  113. package/es2015/src/misc/extensions/setValue.js.map +1 -0
  114. package/es2015/src/misc/extensions/valueChange.js +12 -0
  115. package/es2015/src/misc/extensions/valueChange.js.map +1 -0
  116. package/es2015/src/misc/index.js +6 -0
  117. package/es2015/src/misc/index.js.map +1 -0
  118. package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +163 -0
  119. package/es2015/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
  120. package/es2015/src/misc/ngSelectOptions.interface.js +2 -0
  121. package/es2015/src/misc/ngSelectOptions.interface.js.map +1 -0
  122. package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js +83 -0
  123. package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
  124. package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +2 -0
  125. package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -0
  126. package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +123 -0
  127. package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
  128. package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +111 -0
  129. package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
  130. package/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js +2 -0
  131. package/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -0
  132. package/es2015/src/misc/optionsGatherer/types.js +4 -0
  133. package/es2015/src/misc/optionsGatherer/types.js.map +1 -0
  134. package/es2015/src/misc/plugin.interface.js +2 -0
  135. package/es2015/src/misc/plugin.interface.js.map +1 -0
  136. package/es2015/src/misc/pluginBus/pluginBus.interface.js +2 -0
  137. package/es2015/src/misc/pluginBus/pluginBus.interface.js.map +1 -0
  138. package/es2015/src/misc/pluginBus/pluginBus.js +44 -0
  139. package/es2015/src/misc/pluginBus/pluginBus.js.map +1 -0
  140. package/es2015/src/misc/templateGatherer.interface.js +2 -0
  141. package/es2015/src/misc/templateGatherer.interface.js.map +1 -0
  142. package/es2015/src/misc/types.js +34 -0
  143. package/es2015/src/misc/types.js.map +1 -0
  144. package/es2015/src/modules/ngSelect.module.js +92 -0
  145. package/es2015/src/modules/ngSelect.module.js.map +1 -0
  146. package/es2015/src/modules/ngSelectDynamic.module.js +20 -0
  147. package/es2015/src/modules/ngSelectDynamic.module.js.map +1 -0
  148. package/es2015/src/modules/ngSelectEdit.module.js +53 -0
  149. package/es2015/src/modules/ngSelectEdit.module.js.map +1 -0
  150. package/es2015/src/pipes/ngSelectHasValue.pipe.js +23 -0
  151. package/es2015/src/pipes/ngSelectHasValue.pipe.js.map +1 -0
  152. package/es2015/src/pipes/ngSelectValue.pipe.js +31 -0
  153. package/es2015/src/pipes/ngSelectValue.pipe.js.map +1 -0
  154. package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +145 -0
  155. package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
  156. package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +2 -0
  157. package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +1 -0
  158. package/es2015/src/plugins/keyboardHandler/components.js +3 -0
  159. package/es2015/src/plugins/keyboardHandler/components.js.map +1 -0
  160. package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +196 -0
  161. package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
  162. package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +2 -0
  163. package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +1 -0
  164. package/es2015/src/plugins/keyboardHandler/index.js +4 -0
  165. package/es2015/src/plugins/keyboardHandler/index.js.map +1 -0
  166. package/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js +2 -0
  167. package/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
  168. package/es2015/src/plugins/keyboardHandler/types.js +10 -0
  169. package/es2015/src/plugins/keyboardHandler/types.js.map +1 -0
  170. package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +169 -0
  171. package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
  172. package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +2 -0
  173. package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +1 -0
  174. package/es2015/src/plugins/liveSearch/components.js +4 -0
  175. package/es2015/src/plugins/liveSearch/components.js.map +1 -0
  176. package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +318 -0
  177. package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
  178. package/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js +2 -0
  179. package/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +1 -0
  180. package/es2015/src/plugins/liveSearch/index.js +5 -0
  181. package/es2015/src/plugins/liveSearch/index.js.map +1 -0
  182. package/es2015/src/plugins/liveSearch/liveSearch.interface.js +2 -0
  183. package/es2015/src/plugins/liveSearch/liveSearch.interface.js.map +1 -0
  184. package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +64 -0
  185. package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
  186. package/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js +2 -0
  187. package/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +1 -0
  188. package/es2015/src/plugins/liveSearch/types.js +10 -0
  189. package/es2015/src/plugins/liveSearch/types.js.map +1 -0
  190. package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
  191. package/es2015/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
  192. package/es2015/src/plugins/normalState/basic/basicNormalState.interface.js +2 -0
  193. package/es2015/src/plugins/normalState/basic/basicNormalState.interface.js.map +1 -0
  194. package/es2015/src/plugins/normalState/components.js +4 -0
  195. package/es2015/src/plugins/normalState/components.js.map +1 -0
  196. package/es2015/src/plugins/normalState/edit/editNormalState.component.js +89 -0
  197. package/es2015/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
  198. package/es2015/src/plugins/normalState/edit/editNormalState.interface.js +2 -0
  199. package/es2015/src/plugins/normalState/edit/editNormalState.interface.js.map +1 -0
  200. package/es2015/src/plugins/normalState/index.js +4 -0
  201. package/es2015/src/plugins/normalState/index.js.map +1 -0
  202. package/es2015/src/plugins/normalState/normalState.interface.js +2 -0
  203. package/es2015/src/plugins/normalState/normalState.interface.js.map +1 -0
  204. package/es2015/src/plugins/normalState/normalStateAbstract.component.js +93 -0
  205. package/es2015/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
  206. package/es2015/src/plugins/normalState/types.js +10 -0
  207. package/es2015/src/plugins/normalState/types.js.map +1 -0
  208. package/es2015/src/plugins/popup/basic/basicPopup.component.js +62 -0
  209. package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
  210. package/es2015/src/plugins/popup/basic/basicPopup.interface.js +2 -0
  211. package/es2015/src/plugins/popup/basic/basicPopup.interface.js.map +1 -0
  212. package/es2015/src/plugins/popup/component.js +4 -0
  213. package/es2015/src/plugins/popup/component.js.map +1 -0
  214. package/es2015/src/plugins/popup/edit/editPopup.component.js +85 -0
  215. package/es2015/src/plugins/popup/edit/editPopup.component.js.map +1 -0
  216. package/es2015/src/plugins/popup/edit/editPopup.interface.js +2 -0
  217. package/es2015/src/plugins/popup/edit/editPopup.interface.js.map +1 -0
  218. package/es2015/src/plugins/popup/index.js +4 -0
  219. package/es2015/src/plugins/popup/index.js.map +1 -0
  220. package/es2015/src/plugins/popup/popup.interface.js +2 -0
  221. package/es2015/src/plugins/popup/popup.interface.js.map +1 -0
  222. package/es2015/src/plugins/popup/popupAbstract.component.js +203 -0
  223. package/es2015/src/plugins/popup/popupAbstract.component.js.map +1 -0
  224. package/es2015/src/plugins/popup/types.js +10 -0
  225. package/es2015/src/plugins/popup/types.js.map +1 -0
  226. package/es2015/src/plugins/positioner/basic/basicPositioner.component.js +193 -0
  227. package/es2015/src/plugins/positioner/basic/basicPositioner.component.js.map +1 -0
  228. package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +2 -0
  229. package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js.map +1 -0
  230. package/es2015/src/plugins/positioner/basic/types.js +36 -0
  231. package/es2015/src/plugins/positioner/basic/types.js.map +1 -0
  232. package/es2015/src/plugins/positioner/components.js +3 -0
  233. package/es2015/src/plugins/positioner/components.js.map +1 -0
  234. package/es2015/src/plugins/positioner/index.js +4 -0
  235. package/es2015/src/plugins/positioner/index.js.map +1 -0
  236. package/es2015/src/plugins/positioner/no/noPositioner.component.js +68 -0
  237. package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
  238. package/es2015/src/plugins/positioner/no/noPositioner.interface.js +2 -0
  239. package/es2015/src/plugins/positioner/no/noPositioner.interface.js.map +1 -0
  240. package/es2015/src/plugins/positioner/positioner.interface.js +2 -0
  241. package/es2015/src/plugins/positioner/positioner.interface.js.map +1 -0
  242. package/es2015/src/plugins/positioner/types.js +11 -0
  243. package/es2015/src/plugins/positioner/types.js.map +1 -0
  244. package/es2015/src/plugins/readonlyState/index.js +2 -0
  245. package/es2015/src/plugins/readonlyState/index.js.map +1 -0
  246. package/es2015/src/plugins/readonlyState/readonlyState.interface.js +2 -0
  247. package/es2015/src/plugins/readonlyState/readonlyState.interface.js.map +1 -0
  248. package/es2015/src/plugins/readonlyState/types.js +10 -0
  249. package/es2015/src/plugins/readonlyState/types.js.map +1 -0
  250. package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +157 -0
  251. package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
  252. package/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js +2 -0
  253. package/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +1 -0
  254. package/es2015/src/plugins/valueHandler/components.js +3 -0
  255. package/es2015/src/plugins/valueHandler/components.js.map +1 -0
  256. package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +182 -0
  257. package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
  258. package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +2 -0
  259. package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +1 -0
  260. package/es2015/src/plugins/valueHandler/index.js +5 -0
  261. package/es2015/src/plugins/valueHandler/index.js.map +1 -0
  262. package/es2015/src/plugins/valueHandler/types.js +10 -0
  263. package/es2015/src/plugins/valueHandler/types.js.map +1 -0
  264. package/es2015/src/plugins/valueHandler/valueHandler.interface.js +2 -0
  265. package/es2015/src/plugins/valueHandler/valueHandler.interface.js.map +1 -0
  266. package/es2015/src/plugins/valueHandler/valueHandlerBase.js +150 -0
  267. package/es2015/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
  268. package/es2020/elements/src/components/ngSelectElements.component.js +187 -0
  269. package/es2020/elements/src/components/ngSelectElements.component.js.map +1 -0
  270. package/es2020/elements/src/components/ngSelectElements.interface.js +2 -0
  271. package/es2020/elements/src/components/ngSelectElements.interface.js.map +1 -0
  272. package/es2020/elements/src/index.js +4 -0
  273. package/es2020/elements/src/index.js.map +1 -0
  274. package/es2020/elements/src/modules/ngSelectElements.module.js +52 -0
  275. package/es2020/elements/src/modules/ngSelectElements.module.js.map +1 -0
  276. package/es2020/extensions/src/extensions/getValue.js +2 -0
  277. package/es2020/extensions/src/extensions/getValue.js.map +1 -0
  278. package/es2020/extensions/src/extensions/onFocus.js +2 -0
  279. package/es2020/extensions/src/extensions/onFocus.js.map +1 -0
  280. package/es2020/extensions/src/extensions/patchOptions.js +12 -0
  281. package/es2020/extensions/src/extensions/patchOptions.js.map +1 -0
  282. package/es2020/extensions/src/extensions/reinitializeOptions.js +15 -0
  283. package/es2020/extensions/src/extensions/reinitializeOptions.js.map +1 -0
  284. package/es2020/extensions/src/extensions/setReadonly.js +2 -0
  285. package/es2020/extensions/src/extensions/setReadonly.js.map +1 -0
  286. package/es2020/extensions/src/extensions/setValue.js +2 -0
  287. package/es2020/extensions/src/extensions/setValue.js.map +1 -0
  288. package/es2020/extensions/src/extensions/valueChange.js +2 -0
  289. package/es2020/extensions/src/extensions/valueChange.js.map +1 -0
  290. package/es2020/extensions/src/index.js +8 -0
  291. package/es2020/extensions/src/index.js.map +1 -0
  292. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +73 -0
  293. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
  294. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +2 -0
  295. package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -0
  296. package/es2020/material/src/components/basicDialogPopup/index.js +2 -0
  297. package/es2020/material/src/components/basicDialogPopup/index.js.map +1 -0
  298. package/es2020/material/src/components/basicDialogPopup/types.js +2 -0
  299. package/es2020/material/src/components/basicDialogPopup/types.js.map +1 -0
  300. package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js +75 -0
  301. package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
  302. package/es2020/material/src/directives/types.js +2 -0
  303. package/es2020/material/src/directives/types.js.map +1 -0
  304. package/es2020/material/src/index.js +8 -0
  305. package/es2020/material/src/index.js.map +1 -0
  306. package/es2020/material/src/modules/dialogPopup.module.js +43 -0
  307. package/es2020/material/src/modules/dialogPopup.module.js.map +1 -0
  308. package/es2020/material/src/modules/virtualEditPopup.module.js +33 -0
  309. package/es2020/material/src/modules/virtualEditPopup.module.js.map +1 -0
  310. package/es2020/material/src/plugins/popup/components.js +3 -0
  311. package/es2020/material/src/plugins/popup/components.js.map +1 -0
  312. package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js +140 -0
  313. package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
  314. package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js +2 -0
  315. package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -0
  316. package/es2020/material/src/plugins/popup/index.js +3 -0
  317. package/es2020/material/src/plugins/popup/index.js.map +1 -0
  318. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +89 -0
  319. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
  320. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +2 -0
  321. package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -0
  322. package/es2020/popperJs/src/index.js +4 -0
  323. package/es2020/popperJs/src/index.js.map +1 -0
  324. package/es2020/popperJs/src/modules/popperjsPositioner.module.js +23 -0
  325. package/es2020/popperJs/src/modules/popperjsPositioner.module.js.map +1 -0
  326. package/es2020/popperJs/src/plugins/positioner/components.js +2 -0
  327. package/es2020/popperJs/src/plugins/positioner/components.js.map +1 -0
  328. package/es2020/popperJs/src/plugins/positioner/index.js +2 -0
  329. package/es2020/popperJs/src/plugins/positioner/index.js.map +1 -0
  330. package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +148 -0
  331. package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +1 -0
  332. package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +2 -0
  333. package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +1 -0
  334. package/es2020/src/components/option/index.js +3 -0
  335. package/es2020/src/components/option/index.js.map +1 -0
  336. package/es2020/src/components/option/optgroup.component.js +53 -0
  337. package/es2020/src/components/option/optgroup.component.js.map +1 -0
  338. package/es2020/src/components/option/optgroup.interface.js +2 -0
  339. package/es2020/src/components/option/optgroup.interface.js.map +1 -0
  340. package/es2020/src/components/option/option.component.js +38 -0
  341. package/es2020/src/components/option/option.component.js.map +1 -0
  342. package/es2020/src/components/option/option.interface.js +2 -0
  343. package/es2020/src/components/option/option.interface.js.map +1 -0
  344. package/es2020/src/components/select/index.js +2 -0
  345. package/es2020/src/components/select/index.js.map +1 -0
  346. package/es2020/src/components/select/select.component.js +603 -0
  347. package/es2020/src/components/select/select.component.js.map +1 -0
  348. package/es2020/src/components/select/select.interface.js +2 -0
  349. package/es2020/src/components/select/select.interface.js.map +1 -0
  350. package/es2020/src/components/select/types.js +6 -0
  351. package/es2020/src/components/select/types.js.map +1 -0
  352. package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
  353. package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -0
  354. package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +66 -0
  355. package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
  356. package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +42 -0
  357. package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
  358. package/es2020/src/index.js +40 -0
  359. package/es2020/src/index.js.map +1 -0
  360. package/es2020/src/index.ssr.js +10 -0
  361. package/es2020/src/index.ssr.js.map +1 -0
  362. package/es2020/src/misc/extensions/getValue.js +12 -0
  363. package/es2020/src/misc/extensions/getValue.js.map +1 -0
  364. package/es2020/src/misc/extensions/index.js +6 -0
  365. package/es2020/src/misc/extensions/index.js.map +1 -0
  366. package/es2020/src/misc/extensions/onFocus.js +10 -0
  367. package/es2020/src/misc/extensions/onFocus.js.map +1 -0
  368. package/es2020/src/misc/extensions/setReadonly.js +18 -0
  369. package/es2020/src/misc/extensions/setReadonly.js.map +1 -0
  370. package/es2020/src/misc/extensions/setValue.js +13 -0
  371. package/es2020/src/misc/extensions/setValue.js.map +1 -0
  372. package/es2020/src/misc/extensions/valueChange.js +12 -0
  373. package/es2020/src/misc/extensions/valueChange.js.map +1 -0
  374. package/es2020/src/misc/index.js +6 -0
  375. package/es2020/src/misc/index.js.map +1 -0
  376. package/es2020/src/misc/ngSelectControlValueAccessor.directive.js +162 -0
  377. package/es2020/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
  378. package/es2020/src/misc/ngSelectOptions.interface.js +2 -0
  379. package/es2020/src/misc/ngSelectOptions.interface.js.map +1 -0
  380. package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js +83 -0
  381. package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
  382. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +2 -0
  383. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -0
  384. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js +118 -0
  385. package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
  386. package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js +110 -0
  387. package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
  388. package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js +2 -0
  389. package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -0
  390. package/es2020/src/misc/optionsGatherer/types.js +4 -0
  391. package/es2020/src/misc/optionsGatherer/types.js.map +1 -0
  392. package/es2020/src/misc/plugin.interface.js +2 -0
  393. package/es2020/src/misc/plugin.interface.js.map +1 -0
  394. package/es2020/src/misc/pluginBus/pluginBus.interface.js +2 -0
  395. package/es2020/src/misc/pluginBus/pluginBus.interface.js.map +1 -0
  396. package/es2020/src/misc/pluginBus/pluginBus.js +44 -0
  397. package/es2020/src/misc/pluginBus/pluginBus.js.map +1 -0
  398. package/es2020/src/misc/templateGatherer.interface.js +2 -0
  399. package/es2020/src/misc/templateGatherer.interface.js.map +1 -0
  400. package/es2020/src/misc/types.js +34 -0
  401. package/es2020/src/misc/types.js.map +1 -0
  402. package/es2020/src/modules/ngSelect.module.js +92 -0
  403. package/es2020/src/modules/ngSelect.module.js.map +1 -0
  404. package/es2020/src/modules/ngSelectDynamic.module.js +20 -0
  405. package/es2020/src/modules/ngSelectDynamic.module.js.map +1 -0
  406. package/es2020/src/modules/ngSelectEdit.module.js +53 -0
  407. package/es2020/src/modules/ngSelectEdit.module.js.map +1 -0
  408. package/es2020/src/pipes/ngSelectHasValue.pipe.js +23 -0
  409. package/es2020/src/pipes/ngSelectHasValue.pipe.js.map +1 -0
  410. package/es2020/src/pipes/ngSelectValue.pipe.js +31 -0
  411. package/es2020/src/pipes/ngSelectValue.pipe.js.map +1 -0
  412. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +145 -0
  413. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
  414. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +2 -0
  415. package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +1 -0
  416. package/es2020/src/plugins/keyboardHandler/components.js +3 -0
  417. package/es2020/src/plugins/keyboardHandler/components.js.map +1 -0
  418. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +196 -0
  419. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
  420. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +2 -0
  421. package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +1 -0
  422. package/es2020/src/plugins/keyboardHandler/index.js +4 -0
  423. package/es2020/src/plugins/keyboardHandler/index.js.map +1 -0
  424. package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js +2 -0
  425. package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
  426. package/es2020/src/plugins/keyboardHandler/types.js +10 -0
  427. package/es2020/src/plugins/keyboardHandler/types.js.map +1 -0
  428. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js +167 -0
  429. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
  430. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +2 -0
  431. package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +1 -0
  432. package/es2020/src/plugins/liveSearch/components.js +4 -0
  433. package/es2020/src/plugins/liveSearch/components.js.map +1 -0
  434. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js +315 -0
  435. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
  436. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js +2 -0
  437. package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +1 -0
  438. package/es2020/src/plugins/liveSearch/index.js +5 -0
  439. package/es2020/src/plugins/liveSearch/index.js.map +1 -0
  440. package/es2020/src/plugins/liveSearch/liveSearch.interface.js +2 -0
  441. package/es2020/src/plugins/liveSearch/liveSearch.interface.js.map +1 -0
  442. package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js +64 -0
  443. package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
  444. package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js +2 -0
  445. package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +1 -0
  446. package/es2020/src/plugins/liveSearch/types.js +10 -0
  447. package/es2020/src/plugins/liveSearch/types.js.map +1 -0
  448. package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
  449. package/es2020/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
  450. package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js +2 -0
  451. package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js.map +1 -0
  452. package/es2020/src/plugins/normalState/components.js +4 -0
  453. package/es2020/src/plugins/normalState/components.js.map +1 -0
  454. package/es2020/src/plugins/normalState/edit/editNormalState.component.js +88 -0
  455. package/es2020/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
  456. package/es2020/src/plugins/normalState/edit/editNormalState.interface.js +2 -0
  457. package/es2020/src/plugins/normalState/edit/editNormalState.interface.js.map +1 -0
  458. package/es2020/src/plugins/normalState/index.js +4 -0
  459. package/es2020/src/plugins/normalState/index.js.map +1 -0
  460. package/es2020/src/plugins/normalState/normalState.interface.js +2 -0
  461. package/es2020/src/plugins/normalState/normalState.interface.js.map +1 -0
  462. package/es2020/src/plugins/normalState/normalStateAbstract.component.js +92 -0
  463. package/es2020/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
  464. package/es2020/src/plugins/normalState/types.js +10 -0
  465. package/es2020/src/plugins/normalState/types.js.map +1 -0
  466. package/es2020/src/plugins/popup/basic/basicPopup.component.js +62 -0
  467. package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
  468. package/es2020/src/plugins/popup/basic/basicPopup.interface.js +2 -0
  469. package/es2020/src/plugins/popup/basic/basicPopup.interface.js.map +1 -0
  470. package/es2020/src/plugins/popup/component.js +4 -0
  471. package/es2020/src/plugins/popup/component.js.map +1 -0
  472. package/es2020/src/plugins/popup/edit/editPopup.component.js +85 -0
  473. package/es2020/src/plugins/popup/edit/editPopup.component.js.map +1 -0
  474. package/es2020/src/plugins/popup/edit/editPopup.interface.js +2 -0
  475. package/es2020/src/plugins/popup/edit/editPopup.interface.js.map +1 -0
  476. package/es2020/src/plugins/popup/index.js +4 -0
  477. package/es2020/src/plugins/popup/index.js.map +1 -0
  478. package/es2020/src/plugins/popup/popup.interface.js +2 -0
  479. package/es2020/src/plugins/popup/popup.interface.js.map +1 -0
  480. package/es2020/src/plugins/popup/popupAbstract.component.js +202 -0
  481. package/es2020/src/plugins/popup/popupAbstract.component.js.map +1 -0
  482. package/es2020/src/plugins/popup/types.js +10 -0
  483. package/es2020/src/plugins/popup/types.js.map +1 -0
  484. package/es2020/src/plugins/positioner/basic/basicPositioner.component.js +190 -0
  485. package/es2020/src/plugins/positioner/basic/basicPositioner.component.js.map +1 -0
  486. package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js +2 -0
  487. package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js.map +1 -0
  488. package/es2020/src/plugins/positioner/basic/types.js +36 -0
  489. package/es2020/src/plugins/positioner/basic/types.js.map +1 -0
  490. package/es2020/src/plugins/positioner/components.js +3 -0
  491. package/es2020/src/plugins/positioner/components.js.map +1 -0
  492. package/es2020/src/plugins/positioner/index.js +4 -0
  493. package/es2020/src/plugins/positioner/index.js.map +1 -0
  494. package/es2020/src/plugins/positioner/no/noPositioner.component.js +68 -0
  495. package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
  496. package/es2020/src/plugins/positioner/no/noPositioner.interface.js +2 -0
  497. package/es2020/src/plugins/positioner/no/noPositioner.interface.js.map +1 -0
  498. package/es2020/src/plugins/positioner/positioner.interface.js +2 -0
  499. package/es2020/src/plugins/positioner/positioner.interface.js.map +1 -0
  500. package/es2020/src/plugins/positioner/types.js +11 -0
  501. package/es2020/src/plugins/positioner/types.js.map +1 -0
  502. package/es2020/src/plugins/readonlyState/index.js +2 -0
  503. package/es2020/src/plugins/readonlyState/index.js.map +1 -0
  504. package/es2020/src/plugins/readonlyState/readonlyState.interface.js +2 -0
  505. package/es2020/src/plugins/readonlyState/readonlyState.interface.js.map +1 -0
  506. package/es2020/src/plugins/readonlyState/types.js +10 -0
  507. package/es2020/src/plugins/readonlyState/types.js.map +1 -0
  508. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js +157 -0
  509. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
  510. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js +2 -0
  511. package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +1 -0
  512. package/es2020/src/plugins/valueHandler/components.js +3 -0
  513. package/es2020/src/plugins/valueHandler/components.js.map +1 -0
  514. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +177 -0
  515. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
  516. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +2 -0
  517. package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +1 -0
  518. package/es2020/src/plugins/valueHandler/index.js +5 -0
  519. package/es2020/src/plugins/valueHandler/index.js.map +1 -0
  520. package/es2020/src/plugins/valueHandler/types.js +10 -0
  521. package/es2020/src/plugins/valueHandler/types.js.map +1 -0
  522. package/es2020/src/plugins/valueHandler/valueHandler.interface.js +2 -0
  523. package/es2020/src/plugins/valueHandler/valueHandler.interface.js.map +1 -0
  524. package/es2020/src/plugins/valueHandler/valueHandlerBase.js +145 -0
  525. package/es2020/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
  526. package/extensions/package.json +7 -6
  527. package/extensions/src/extensions/getValue.d.ts +1 -1
  528. package/extensions/src/extensions/onFocus.d.ts +1 -1
  529. package/extensions/src/extensions/patchOptions.d.ts +6 -6
  530. package/extensions/src/extensions/reinitializeOptions.d.ts +6 -6
  531. package/extensions/src/extensions/setReadonly.d.ts +1 -1
  532. package/extensions/src/extensions/setValue.d.ts +1 -1
  533. package/extensions/src/extensions/valueChange.d.ts +1 -1
  534. package/extensions/src/index.d.ts +8 -0
  535. package/extensions/src/index.d.ts.map +1 -0
  536. package/material/package.json +7 -7
  537. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +46 -43
  538. package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
  539. package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +23 -23
  540. package/material/src/components/basicDialogPopup/index.d.ts +1 -1
  541. package/material/src/components/basicDialogPopup/types.d.ts +1 -1
  542. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +26 -23
  543. package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
  544. package/material/src/directives/types.d.ts +1 -1
  545. package/material/src/index.d.ts +8 -0
  546. package/material/src/index.d.ts.map +1 -0
  547. package/material/src/modules/dialogPopup.module.d.ts +14 -5
  548. package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
  549. package/material/src/modules/virtualEditPopup.module.d.ts +12 -5
  550. package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
  551. package/material/src/plugins/popup/components.d.ts +2 -2
  552. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +82 -79
  553. package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
  554. package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +59 -59
  555. package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
  556. package/material/src/plugins/popup/index.d.ts +2 -2
  557. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +29 -26
  558. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
  559. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +16 -16
  560. package/package.json +123 -63
  561. package/popperJs/package.json +8 -8
  562. package/popperJs/src/index.d.ts +4 -0
  563. package/popperJs/src/index.d.ts.map +1 -0
  564. package/popperJs/src/modules/popperjsPositioner.module.d.ts +10 -5
  565. package/popperJs/src/modules/popperjsPositioner.module.d.ts.map +1 -1
  566. package/popperJs/src/plugins/positioner/components.d.ts +1 -1
  567. package/popperJs/src/plugins/positioner/index.d.ts +1 -1
  568. package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts +77 -74
  569. package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts.map +1 -1
  570. package/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.d.ts +11 -11
  571. package/src/components/option/index.d.ts +2 -2
  572. package/src/components/option/optgroup.component.d.ts +36 -33
  573. package/src/components/option/optgroup.component.d.ts.map +1 -1
  574. package/src/components/option/optgroup.interface.d.ts +19 -19
  575. package/src/components/option/option.component.d.ts +29 -26
  576. package/src/components/option/option.component.d.ts.map +1 -1
  577. package/src/components/option/option.interface.d.ts +30 -30
  578. package/src/components/select/index.d.ts +1 -1
  579. package/src/components/select/select.component.d.ts +255 -270
  580. package/src/components/select/select.component.d.ts.map +1 -1
  581. package/src/components/select/select.interface.d.ts +67 -67
  582. package/src/components/select/types.d.ts +6 -6
  583. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +10 -7
  584. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +1 -1
  585. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +10 -7
  586. package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +1 -1
  587. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +20 -17
  588. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +1 -1
  589. package/src/index.d.ts +40 -0
  590. package/src/index.d.ts.map +1 -0
  591. package/src/index.ssr.d.ts +1 -0
  592. package/src/index.ssr.d.ts.map +1 -0
  593. package/src/misc/extensions/getValue.d.ts +6 -5
  594. package/src/misc/extensions/getValue.d.ts.map +1 -1
  595. package/src/misc/extensions/index.d.ts +5 -5
  596. package/src/misc/extensions/onFocus.d.ts +7 -6
  597. package/src/misc/extensions/onFocus.d.ts.map +1 -1
  598. package/src/misc/extensions/setReadonly.d.ts +7 -6
  599. package/src/misc/extensions/setReadonly.d.ts.map +1 -1
  600. package/src/misc/extensions/setValue.d.ts +7 -6
  601. package/src/misc/extensions/setValue.d.ts.map +1 -1
  602. package/src/misc/extensions/valueChange.d.ts +7 -6
  603. package/src/misc/extensions/valueChange.d.ts.map +1 -1
  604. package/src/misc/index.d.ts +5 -5
  605. package/src/misc/ngSelectControlValueAccessor.directive.d.ts +62 -64
  606. package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +1 -1
  607. package/src/misc/ngSelectOptions.interface.d.ts +86 -86
  608. package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +69 -69
  609. package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +85 -85
  610. package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +28 -28
  611. package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +72 -72
  612. package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +52 -52
  613. package/src/misc/optionsGatherer/types.d.ts +3 -3
  614. package/src/misc/plugin.interface.d.ts +107 -107
  615. package/src/misc/plugin.interface.d.ts.map +1 -1
  616. package/src/misc/pluginBus/pluginBus.d.ts +48 -45
  617. package/src/misc/pluginBus/pluginBus.d.ts.map +1 -1
  618. package/src/misc/pluginBus/pluginBus.interface.d.ts +35 -35
  619. package/src/misc/templateGatherer.interface.d.ts +16 -16
  620. package/src/misc/types.d.ts +41 -41
  621. package/src/modules/ngSelect.module.d.ts +27 -5
  622. package/src/modules/ngSelect.module.d.ts.map +1 -1
  623. package/src/modules/ngSelectDynamic.module.d.ts +10 -5
  624. package/src/modules/ngSelectDynamic.module.d.ts.map +1 -1
  625. package/src/modules/ngSelectEdit.module.d.ts +16 -5
  626. package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
  627. package/src/pipes/ngSelectHasValue.pipe.d.ts +15 -12
  628. package/src/pipes/ngSelectHasValue.pipe.d.ts.map +1 -1
  629. package/src/pipes/ngSelectValue.pipe.d.ts +18 -15
  630. package/src/pipes/ngSelectValue.pipe.d.ts.map +1 -1
  631. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +57 -54
  632. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +1 -1
  633. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +11 -11
  634. package/src/plugins/keyboardHandler/components.d.ts +2 -2
  635. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +67 -64
  636. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
  637. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +11 -11
  638. package/src/plugins/keyboardHandler/index.d.ts +3 -3
  639. package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +11 -11
  640. package/src/plugins/keyboardHandler/types.d.ts +10 -10
  641. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +101 -98
  642. package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
  643. package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +28 -28
  644. package/src/plugins/liveSearch/components.d.ts +3 -3
  645. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +144 -141
  646. package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
  647. package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +36 -36
  648. package/src/plugins/liveSearch/index.d.ts +4 -4
  649. package/src/plugins/liveSearch/liveSearch.interface.d.ts +37 -37
  650. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +53 -50
  651. package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +1 -1
  652. package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +11 -11
  653. package/src/plugins/liveSearch/types.d.ts +10 -10
  654. package/src/plugins/normalState/basic/basicNormalState.component.d.ts +16 -13
  655. package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +1 -1
  656. package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +28 -28
  657. package/src/plugins/normalState/components.d.ts +3 -3
  658. package/src/plugins/normalState/edit/editNormalState.component.d.ts +25 -22
  659. package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +1 -1
  660. package/src/plugins/normalState/edit/editNormalState.interface.d.ts +52 -52
  661. package/src/plugins/normalState/index.d.ts +3 -3
  662. package/src/plugins/normalState/normalState.interface.d.ts +48 -48
  663. package/src/plugins/normalState/normalStateAbstract.component.d.ts +69 -66
  664. package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +1 -1
  665. package/src/plugins/normalState/types.d.ts +10 -10
  666. package/src/plugins/popup/basic/basicPopup.component.d.ts +16 -13
  667. package/src/plugins/popup/basic/basicPopup.component.d.ts.map +1 -1
  668. package/src/plugins/popup/basic/basicPopup.interface.d.ts +32 -32
  669. package/src/plugins/popup/component.d.ts +3 -3
  670. package/src/plugins/popup/edit/editPopup.component.d.ts +31 -28
  671. package/src/plugins/popup/edit/editPopup.component.d.ts.map +1 -1
  672. package/src/plugins/popup/edit/editPopup.interface.d.ts +32 -32
  673. package/src/plugins/popup/index.d.ts +3 -3
  674. package/src/plugins/popup/popup.interface.d.ts +51 -51
  675. package/src/plugins/popup/popupAbstract.component.d.ts +133 -130
  676. package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
  677. package/src/plugins/popup/types.d.ts +10 -10
  678. package/src/plugins/positioner/basic/basicPositioner.component.d.ts +89 -86
  679. package/src/plugins/positioner/basic/basicPositioner.component.d.ts.map +1 -1
  680. package/src/plugins/positioner/basic/basicPositioner.interface.d.ts +28 -28
  681. package/src/plugins/positioner/basic/types.d.ts +21 -18
  682. package/src/plugins/positioner/basic/types.d.ts.map +1 -1
  683. package/src/plugins/positioner/components.d.ts +2 -2
  684. package/src/plugins/positioner/index.d.ts +3 -3
  685. package/src/plugins/positioner/no/noPositioner.component.d.ts +41 -38
  686. package/src/plugins/positioner/no/noPositioner.component.d.ts.map +1 -1
  687. package/src/plugins/positioner/no/noPositioner.interface.d.ts +11 -11
  688. package/src/plugins/positioner/positioner.interface.d.ts +20 -20
  689. package/src/plugins/positioner/positioner.interface.d.ts.map +1 -1
  690. package/src/plugins/positioner/types.d.ts +11 -11
  691. package/src/plugins/positioner/types.d.ts.map +1 -1
  692. package/src/plugins/readonlyState/index.d.ts +1 -1
  693. package/src/plugins/readonlyState/readonlyState.interface.d.ts +11 -11
  694. package/src/plugins/readonlyState/types.d.ts +10 -10
  695. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +50 -47
  696. package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +1 -1
  697. package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +11 -11
  698. package/src/plugins/valueHandler/components.d.ts +2 -2
  699. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +51 -48
  700. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +1 -1
  701. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +20 -20
  702. package/src/plugins/valueHandler/index.d.ts +4 -4
  703. package/src/plugins/valueHandler/types.d.ts +10 -10
  704. package/src/plugins/valueHandler/valueHandler.interface.d.ts +30 -30
  705. package/src/plugins/valueHandler/valueHandlerBase.d.ts +114 -111
  706. package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
  707. package/version.bak +1 -1
  708. package/appveyor.yml +0 -67
  709. package/dist/es2015/public_api.js +0 -7
  710. package/dist/es2015/select.js +0 -14
  711. package/dist/es2015/src/components/option/index.js +0 -8
  712. package/dist/es2015/src/components/option/optgroup.component.js +0 -80
  713. package/dist/es2015/src/components/option/optgroup.interface.js +0 -29
  714. package/dist/es2015/src/components/option/option.component.js +0 -68
  715. package/dist/es2015/src/components/option/option.interface.js +0 -47
  716. package/dist/es2015/src/components/select/index.js +0 -7
  717. package/dist/es2015/src/components/select/select.component.js +0 -867
  718. package/dist/es2015/src/components/select/select.interface.js +0 -77
  719. package/dist/es2015/src/components/select/types.js +0 -12
  720. package/dist/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -32
  721. package/dist/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -58
  722. package/dist/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -63
  723. package/dist/es2015/src/misc/extensions/getValue.js +0 -23
  724. package/dist/es2015/src/misc/extensions/index.js +0 -11
  725. package/dist/es2015/src/misc/extensions/onFocus.js +0 -21
  726. package/dist/es2015/src/misc/extensions/setReadonly.js +0 -28
  727. package/dist/es2015/src/misc/extensions/setValue.js +0 -24
  728. package/dist/es2015/src/misc/extensions/valueChange.js +0 -27
  729. package/dist/es2015/src/misc/index.js +0 -11
  730. package/dist/es2015/src/misc/ngSelectControlValueAccessor.directive.js +0 -254
  731. package/dist/es2015/src/misc/ngSelectOptions.interface.js +0 -99
  732. package/dist/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -157
  733. package/dist/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -35
  734. package/dist/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -230
  735. package/dist/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -201
  736. package/dist/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -65
  737. package/dist/es2015/src/misc/optionsGatherer/types.js +0 -9
  738. package/dist/es2015/src/misc/plugin.interface.js +0 -132
  739. package/dist/es2015/src/misc/pluginBus/pluginBus.interface.js +0 -48
  740. package/dist/es2015/src/misc/pluginBus/pluginBus.js +0 -95
  741. package/dist/es2015/src/misc/templateGatherer.interface.js +0 -23
  742. package/dist/es2015/src/misc/types.js +0 -47
  743. package/dist/es2015/src/modules/ngSelect.module.js +0 -66
  744. package/dist/es2015/src/modules/ngSelectDynamic.module.js +0 -20
  745. package/dist/es2015/src/modules/ngSelectEdit.module.js +0 -41
  746. package/dist/es2015/src/pipes/ngSelectHasValue.pipe.js +0 -26
  747. package/dist/es2015/src/pipes/ngSelectValue.pipe.js +0 -38
  748. package/dist/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -201
  749. package/dist/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -16
  750. package/dist/es2015/src/plugins/keyboardHandler/components.js +0 -8
  751. package/dist/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -272
  752. package/dist/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -16
  753. package/dist/es2015/src/plugins/keyboardHandler/index.js +0 -9
  754. package/dist/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -16
  755. package/dist/es2015/src/plugins/keyboardHandler/types.js +0 -17
  756. package/dist/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -277
  757. package/dist/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -40
  758. package/dist/es2015/src/plugins/liveSearch/components.js +0 -9
  759. package/dist/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -494
  760. package/dist/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -50
  761. package/dist/es2015/src/plugins/liveSearch/index.js +0 -10
  762. package/dist/es2015/src/plugins/liveSearch/liveSearch.interface.js +0 -53
  763. package/dist/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -109
  764. package/dist/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -16
  765. package/dist/es2015/src/plugins/liveSearch/types.js +0 -17
  766. package/dist/es2015/src/plugins/normalState/basic/basicNormalState.component.js +0 -71
  767. package/dist/es2015/src/plugins/normalState/basic/basicNormalState.interface.js +0 -39
  768. package/dist/es2015/src/plugins/normalState/components.js +0 -9
  769. package/dist/es2015/src/plugins/normalState/edit/editNormalState.component.js +0 -108
  770. package/dist/es2015/src/plugins/normalState/edit/editNormalState.interface.js +0 -71
  771. package/dist/es2015/src/plugins/normalState/index.js +0 -9
  772. package/dist/es2015/src/plugins/normalState/normalState.interface.js +0 -59
  773. package/dist/es2015/src/plugins/normalState/normalStateAbstract.component.js +0 -178
  774. package/dist/es2015/src/plugins/normalState/types.js +0 -17
  775. package/dist/es2015/src/plugins/popup/basic/basicPopup.component.js +0 -68
  776. package/dist/es2015/src/plugins/popup/basic/basicPopup.interface.js +0 -43
  777. package/dist/es2015/src/plugins/popup/component.js +0 -9
  778. package/dist/es2015/src/plugins/popup/edit/editPopup.component.js +0 -100
  779. package/dist/es2015/src/plugins/popup/edit/editPopup.interface.js +0 -43
  780. package/dist/es2015/src/plugins/popup/index.js +0 -9
  781. package/dist/es2015/src/plugins/popup/popup.interface.js +0 -70
  782. package/dist/es2015/src/plugins/popup/popupAbstract.component.js +0 -383
  783. package/dist/es2015/src/plugins/popup/types.js +0 -17
  784. package/dist/es2015/src/plugins/positioner/basic/basicPositioner.component.js +0 -302
  785. package/dist/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +0 -38
  786. package/dist/es2015/src/plugins/positioner/basic/types.js +0 -52
  787. package/dist/es2015/src/plugins/positioner/components.js +0 -8
  788. package/dist/es2015/src/plugins/positioner/index.js +0 -9
  789. package/dist/es2015/src/plugins/positioner/no/noPositioner.component.js +0 -96
  790. package/dist/es2015/src/plugins/positioner/no/noPositioner.interface.js +0 -16
  791. package/dist/es2015/src/plugins/positioner/positioner.interface.js +0 -28
  792. package/dist/es2015/src/plugins/positioner/types.js +0 -18
  793. package/dist/es2015/src/plugins/readonlyState/index.js +0 -7
  794. package/dist/es2015/src/plugins/readonlyState/readonlyState.interface.js +0 -17
  795. package/dist/es2015/src/plugins/readonlyState/types.js +0 -17
  796. package/dist/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -205
  797. package/dist/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -17
  798. package/dist/es2015/src/plugins/valueHandler/components.js +0 -8
  799. package/dist/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -235
  800. package/dist/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -30
  801. package/dist/es2015/src/plugins/valueHandler/index.js +0 -10
  802. package/dist/es2015/src/plugins/valueHandler/types.js +0 -17
  803. package/dist/es2015/src/plugins/valueHandler/valueHandler.interface.js +0 -40
  804. package/dist/es2015/src/plugins/valueHandler/valueHandlerBase.js +0 -286
  805. package/dist/es2015/src/select.js +0 -45
  806. package/dist/es2015/src/select.ssr.js +0 -21
  807. package/dist/es5/public_api.js +0 -7
  808. package/dist/es5/select.js +0 -14
  809. package/dist/es5/src/components/option/index.js +0 -8
  810. package/dist/es5/src/components/option/optgroup.component.js +0 -109
  811. package/dist/es5/src/components/option/optgroup.interface.js +0 -29
  812. package/dist/es5/src/components/option/option.component.js +0 -70
  813. package/dist/es5/src/components/option/option.interface.js +0 -47
  814. package/dist/es5/src/components/select/index.js +0 -7
  815. package/dist/es5/src/components/select/select.component.js +0 -1149
  816. package/dist/es5/src/components/select/select.interface.js +0 -77
  817. package/dist/es5/src/components/select/types.js +0 -12
  818. package/dist/es5/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -31
  819. package/dist/es5/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -57
  820. package/dist/es5/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -72
  821. package/dist/es5/src/misc/extensions/getValue.js +0 -23
  822. package/dist/es5/src/misc/extensions/index.js +0 -11
  823. package/dist/es5/src/misc/extensions/onFocus.js +0 -21
  824. package/dist/es5/src/misc/extensions/setReadonly.js +0 -29
  825. package/dist/es5/src/misc/extensions/setValue.js +0 -24
  826. package/dist/es5/src/misc/extensions/valueChange.js +0 -27
  827. package/dist/es5/src/misc/index.js +0 -11
  828. package/dist/es5/src/misc/ngSelectControlValueAccessor.directive.js +0 -303
  829. package/dist/es5/src/misc/ngSelectOptions.interface.js +0 -99
  830. package/dist/es5/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -208
  831. package/dist/es5/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -35
  832. package/dist/es5/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -329
  833. package/dist/es5/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -271
  834. package/dist/es5/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -65
  835. package/dist/es5/src/misc/optionsGatherer/types.js +0 -9
  836. package/dist/es5/src/misc/plugin.interface.js +0 -132
  837. package/dist/es5/src/misc/pluginBus/pluginBus.interface.js +0 -48
  838. package/dist/es5/src/misc/pluginBus/pluginBus.js +0 -97
  839. package/dist/es5/src/misc/templateGatherer.interface.js +0 -23
  840. package/dist/es5/src/misc/types.js +0 -47
  841. package/dist/es5/src/modules/ngSelect.module.js +0 -70
  842. package/dist/es5/src/modules/ngSelectDynamic.module.js +0 -24
  843. package/dist/es5/src/modules/ngSelectEdit.module.js +0 -45
  844. package/dist/es5/src/pipes/ngSelectHasValue.pipe.js +0 -42
  845. package/dist/es5/src/pipes/ngSelectValue.pipe.js +0 -59
  846. package/dist/es5/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -250
  847. package/dist/es5/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -16
  848. package/dist/es5/src/plugins/keyboardHandler/components.js +0 -8
  849. package/dist/es5/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -321
  850. package/dist/es5/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -16
  851. package/dist/es5/src/plugins/keyboardHandler/index.js +0 -9
  852. package/dist/es5/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -16
  853. package/dist/es5/src/plugins/keyboardHandler/types.js +0 -17
  854. package/dist/es5/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -348
  855. package/dist/es5/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -40
  856. package/dist/es5/src/plugins/liveSearch/components.js +0 -9
  857. package/dist/es5/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -606
  858. package/dist/es5/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -50
  859. package/dist/es5/src/plugins/liveSearch/index.js +0 -10
  860. package/dist/es5/src/plugins/liveSearch/liveSearch.interface.js +0 -53
  861. package/dist/es5/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -137
  862. package/dist/es5/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -16
  863. package/dist/es5/src/plugins/liveSearch/types.js +0 -17
  864. package/dist/es5/src/plugins/normalState/basic/basicNormalState.component.js +0 -80
  865. package/dist/es5/src/plugins/normalState/basic/basicNormalState.interface.js +0 -39
  866. package/dist/es5/src/plugins/normalState/components.js +0 -9
  867. package/dist/es5/src/plugins/normalState/edit/editNormalState.component.js +0 -144
  868. package/dist/es5/src/plugins/normalState/edit/editNormalState.interface.js +0 -71
  869. package/dist/es5/src/plugins/normalState/index.js +0 -9
  870. package/dist/es5/src/plugins/normalState/normalState.interface.js +0 -59
  871. package/dist/es5/src/plugins/normalState/normalStateAbstract.component.js +0 -229
  872. package/dist/es5/src/plugins/normalState/types.js +0 -17
  873. package/dist/es5/src/plugins/popup/basic/basicPopup.component.js +0 -76
  874. package/dist/es5/src/plugins/popup/basic/basicPopup.interface.js +0 -43
  875. package/dist/es5/src/plugins/popup/component.js +0 -9
  876. package/dist/es5/src/plugins/popup/edit/editPopup.component.js +0 -138
  877. package/dist/es5/src/plugins/popup/edit/editPopup.interface.js +0 -43
  878. package/dist/es5/src/plugins/popup/index.js +0 -9
  879. package/dist/es5/src/plugins/popup/popup.interface.js +0 -70
  880. package/dist/es5/src/plugins/popup/popupAbstract.component.js +0 -477
  881. package/dist/es5/src/plugins/popup/types.js +0 -17
  882. package/dist/es5/src/plugins/positioner/basic/basicPositioner.component.js +0 -364
  883. package/dist/es5/src/plugins/positioner/basic/basicPositioner.interface.js +0 -38
  884. package/dist/es5/src/plugins/positioner/basic/types.js +0 -75
  885. package/dist/es5/src/plugins/positioner/components.js +0 -8
  886. package/dist/es5/src/plugins/positioner/index.js +0 -9
  887. package/dist/es5/src/plugins/positioner/no/noPositioner.component.js +0 -126
  888. package/dist/es5/src/plugins/positioner/no/noPositioner.interface.js +0 -16
  889. package/dist/es5/src/plugins/positioner/positioner.interface.js +0 -28
  890. package/dist/es5/src/plugins/positioner/types.js +0 -18
  891. package/dist/es5/src/plugins/readonlyState/index.js +0 -7
  892. package/dist/es5/src/plugins/readonlyState/readonlyState.interface.js +0 -17
  893. package/dist/es5/src/plugins/readonlyState/types.js +0 -17
  894. package/dist/es5/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -277
  895. package/dist/es5/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -17
  896. package/dist/es5/src/plugins/valueHandler/components.js +0 -8
  897. package/dist/es5/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -364
  898. package/dist/es5/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -30
  899. package/dist/es5/src/plugins/valueHandler/index.js +0 -10
  900. package/dist/es5/src/plugins/valueHandler/types.js +0 -17
  901. package/dist/es5/src/plugins/valueHandler/valueHandler.interface.js +0 -40
  902. package/dist/es5/src/plugins/valueHandler/valueHandlerBase.js +0 -369
  903. package/dist/es5/src/select.js +0 -45
  904. package/dist/es5/src/select.ssr.js +0 -21
  905. package/elements/dist/es2015/elements/index.js +0 -10
  906. package/elements/dist/es2015/elements/public_api.js +0 -7
  907. package/elements/dist/es2015/elements/src/components/ngSelectElements.component.js +0 -292
  908. package/elements/dist/es2015/elements/src/components/ngSelectElements.interface.js +0 -64
  909. package/elements/dist/es2015/elements/src/index.js +0 -9
  910. package/elements/dist/es2015/elements/src/modules/ngSelectElements.module.js +0 -54
  911. package/elements/dist/es5/elements/index.js +0 -10
  912. package/elements/dist/es5/elements/public_api.js +0 -7
  913. package/elements/dist/es5/elements/src/components/ngSelectElements.component.js +0 -332
  914. package/elements/dist/es5/elements/src/components/ngSelectElements.interface.js +0 -64
  915. package/elements/dist/es5/elements/src/index.js +0 -9
  916. package/elements/dist/es5/elements/src/modules/ngSelectElements.module.js +0 -63
  917. package/elements/index.d.ts +0 -5
  918. package/elements/index.d.ts.map +0 -1
  919. package/elements/index.metadata.json +0 -1
  920. package/elements/public_api.d.ts +0 -2
  921. package/elements/public_api.d.ts.map +0 -1
  922. package/elements/src/components/ngSelectElements.component.ngfactory.d.ts.map +0 -1
  923. package/elements/src/modules/ngSelectElements.module.ngfactory.d.ts.map +0 -1
  924. package/extensions/dist/es2015/extensions/index.js +0 -10
  925. package/extensions/dist/es2015/extensions/public_api.js +0 -7
  926. package/extensions/dist/es2015/extensions/src/extensions/getValue.js +0 -7
  927. package/extensions/dist/es2015/extensions/src/extensions/onFocus.js +0 -7
  928. package/extensions/dist/es2015/extensions/src/extensions/patchOptions.js +0 -23
  929. package/extensions/dist/es2015/extensions/src/extensions/reinitializeOptions.js +0 -26
  930. package/extensions/dist/es2015/extensions/src/extensions/setReadonly.js +0 -7
  931. package/extensions/dist/es2015/extensions/src/extensions/setValue.js +0 -7
  932. package/extensions/dist/es2015/extensions/src/extensions/valueChange.js +0 -7
  933. package/extensions/dist/es2015/extensions/src/extensions.js +0 -13
  934. package/extensions/dist/es5/extensions/index.js +0 -10
  935. package/extensions/dist/es5/extensions/public_api.js +0 -7
  936. package/extensions/dist/es5/extensions/src/extensions/getValue.js +0 -7
  937. package/extensions/dist/es5/extensions/src/extensions/onFocus.js +0 -7
  938. package/extensions/dist/es5/extensions/src/extensions/patchOptions.js +0 -23
  939. package/extensions/dist/es5/extensions/src/extensions/reinitializeOptions.js +0 -26
  940. package/extensions/dist/es5/extensions/src/extensions/setReadonly.js +0 -7
  941. package/extensions/dist/es5/extensions/src/extensions/setValue.js +0 -7
  942. package/extensions/dist/es5/extensions/src/extensions/valueChange.js +0 -7
  943. package/extensions/dist/es5/extensions/src/extensions.js +0 -13
  944. package/extensions/index.d.ts +0 -5
  945. package/extensions/index.d.ts.map +0 -1
  946. package/extensions/index.metadata.json +0 -1
  947. package/extensions/public_api.d.ts +0 -2
  948. package/extensions/public_api.d.ts.map +0 -1
  949. package/extensions/src/extensions.d.ts +0 -8
  950. package/extensions/src/extensions.d.ts.map +0 -1
  951. package/material/dist/es2015/extensions/src/extensions/getValue.js +0 -7
  952. package/material/dist/es2015/extensions/src/extensions/onFocus.js +0 -7
  953. package/material/dist/es2015/extensions/src/extensions/patchOptions.js +0 -23
  954. package/material/dist/es2015/extensions/src/extensions/reinitializeOptions.js +0 -26
  955. package/material/dist/es2015/extensions/src/extensions/setReadonly.js +0 -7
  956. package/material/dist/es2015/extensions/src/extensions/setValue.js +0 -7
  957. package/material/dist/es2015/extensions/src/extensions/valueChange.js +0 -7
  958. package/material/dist/es2015/extensions/src/extensions.js +0 -13
  959. package/material/dist/es2015/material/index.js +0 -10
  960. package/material/dist/es2015/material/public_api.js +0 -7
  961. package/material/dist/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -127
  962. package/material/dist/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -33
  963. package/material/dist/es2015/material/src/components/basicDialogPopup/index.js +0 -7
  964. package/material/dist/es2015/material/src/components/basicDialogPopup/types.js +0 -7
  965. package/material/dist/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -99
  966. package/material/dist/es2015/material/src/directives/types.js +0 -7
  967. package/material/dist/es2015/material/src/material.js +0 -13
  968. package/material/dist/es2015/material/src/modules/dialogPopup.module.js +0 -35
  969. package/material/dist/es2015/material/src/modules/virtualEditPopup.module.js +0 -29
  970. package/material/dist/es2015/material/src/plugins/popup/components.js +0 -8
  971. package/material/dist/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -236
  972. package/material/dist/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -82
  973. package/material/dist/es2015/material/src/plugins/popup/index.js +0 -8
  974. package/material/dist/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -151
  975. package/material/dist/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -21
  976. package/material/dist/es5/extensions/src/extensions/getValue.js +0 -7
  977. package/material/dist/es5/extensions/src/extensions/onFocus.js +0 -7
  978. package/material/dist/es5/extensions/src/extensions/patchOptions.js +0 -23
  979. package/material/dist/es5/extensions/src/extensions/reinitializeOptions.js +0 -26
  980. package/material/dist/es5/extensions/src/extensions/setReadonly.js +0 -7
  981. package/material/dist/es5/extensions/src/extensions/setValue.js +0 -7
  982. package/material/dist/es5/extensions/src/extensions/valueChange.js +0 -7
  983. package/material/dist/es5/extensions/src/extensions.js +0 -13
  984. package/material/dist/es5/material/index.js +0 -10
  985. package/material/dist/es5/material/public_api.js +0 -7
  986. package/material/dist/es5/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -155
  987. package/material/dist/es5/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -33
  988. package/material/dist/es5/material/src/components/basicDialogPopup/index.js +0 -7
  989. package/material/dist/es5/material/src/components/basicDialogPopup/types.js +0 -7
  990. package/material/dist/es5/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -109
  991. package/material/dist/es5/material/src/directives/types.js +0 -7
  992. package/material/dist/es5/material/src/material.js +0 -13
  993. package/material/dist/es5/material/src/modules/dialogPopup.module.js +0 -39
  994. package/material/dist/es5/material/src/modules/virtualEditPopup.module.js +0 -33
  995. package/material/dist/es5/material/src/plugins/popup/components.js +0 -8
  996. package/material/dist/es5/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -290
  997. package/material/dist/es5/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -82
  998. package/material/dist/es5/material/src/plugins/popup/index.js +0 -8
  999. package/material/dist/es5/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -196
  1000. package/material/dist/es5/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -21
  1001. package/material/index.d.ts +0 -6
  1002. package/material/index.d.ts.map +0 -1
  1003. package/material/index.metadata.json +0 -1
  1004. package/material/public_api.d.ts +0 -2
  1005. package/material/public_api.d.ts.map +0 -1
  1006. package/material/src/components/basicDialogPopup/basicDialogPopup.component.css.shim.ngstyle.d.ts.map +0 -1
  1007. package/material/src/components/basicDialogPopup/basicDialogPopup.component.ngfactory.d.ts.map +0 -1
  1008. package/material/src/directives/dialogPopup/dialogPopup.directive.ngfactory.d.ts.map +0 -1
  1009. package/material/src/material.d.ts +0 -8
  1010. package/material/src/material.d.ts.map +0 -1
  1011. package/material/src/modules/dialogPopup.module.ngfactory.d.ts.map +0 -1
  1012. package/material/src/modules/virtualEditPopup.module.ngfactory.d.ts.map +0 -1
  1013. package/material/src/plugins/popup/dialog/dialogPopup.component.ngfactory.d.ts.map +0 -1
  1014. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.ngfactory.d.ts.map +0 -1
  1015. package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.scss.shim.ngstyle.d.ts.map +0 -1
  1016. package/popperJs/dist/es2015/popperjs/index.js +0 -10
  1017. package/popperJs/dist/es2015/popperjs/public_api.js +0 -7
  1018. package/popperJs/dist/es2015/popperjs/src/modules/popperjsPositioner.module.js +0 -23
  1019. package/popperJs/dist/es2015/popperjs/src/plugins/positioner/components.js +0 -7
  1020. package/popperJs/dist/es2015/popperjs/src/plugins/positioner/index.js +0 -7
  1021. package/popperJs/dist/es2015/popperjs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -242
  1022. package/popperJs/dist/es2015/popperjs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -16
  1023. package/popperJs/dist/es2015/popperjs/src/popperJs.js +0 -9
  1024. package/popperJs/dist/es5/popperjs/index.js +0 -10
  1025. package/popperJs/dist/es5/popperjs/public_api.js +0 -7
  1026. package/popperJs/dist/es5/popperjs/src/modules/popperjsPositioner.module.js +0 -27
  1027. package/popperJs/dist/es5/popperjs/src/plugins/positioner/components.js +0 -7
  1028. package/popperJs/dist/es5/popperjs/src/plugins/positioner/index.js +0 -7
  1029. package/popperJs/dist/es5/popperjs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -290
  1030. package/popperJs/dist/es5/popperjs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -16
  1031. package/popperJs/dist/es5/popperjs/src/popperJs.js +0 -9
  1032. package/popperJs/index.d.ts +0 -6
  1033. package/popperJs/index.d.ts.map +0 -1
  1034. package/popperJs/index.metadata.json +0 -1
  1035. package/popperJs/public_api.d.ts +0 -2
  1036. package/popperJs/public_api.d.ts.map +0 -1
  1037. package/popperJs/src/modules/popperjsPositioner.module.ngfactory.d.ts.map +0 -1
  1038. package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.ngfactory.d.ts.map +0 -1
  1039. package/popperJs/src/popperJs.d.ts +0 -4
  1040. package/popperJs/src/popperJs.d.ts.map +0 -1
  1041. package/public_api.d.ts +0 -2
  1042. package/public_api.d.ts.map +0 -1
  1043. package/select.d.ts +0 -26
  1044. package/select.d.ts.map +0 -1
  1045. package/select.metadata.json +0 -1
  1046. package/src/components/option/optgroup.component.ngfactory.d.ts.map +0 -1
  1047. package/src/components/option/option.component.ngfactory.d.ts.map +0 -1
  1048. package/src/components/select/select.component.ngfactory.d.ts.map +0 -1
  1049. package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.ngfactory.d.ts.map +0 -1
  1050. package/src/directives/ngSelectEdit/ngSelectEdit.directive.ngfactory.d.ts.map +0 -1
  1051. package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.ngfactory.d.ts.map +0 -1
  1052. package/src/misc/ngSelectControlValueAccessor.directive.ngfactory.d.ts.map +0 -1
  1053. package/src/misc/pluginBus/pluginBus.ngfactory.d.ts.map +0 -1
  1054. package/src/modules/ngSelect.module.ngfactory.d.ts.map +0 -1
  1055. package/src/modules/ngSelectDynamic.module.ngfactory.d.ts.map +0 -1
  1056. package/src/modules/ngSelectEdit.module.ngfactory.d.ts.map +0 -1
  1057. package/src/pipes/ngSelectHasValue.pipe.ngfactory.d.ts.map +0 -1
  1058. package/src/pipes/ngSelectValue.pipe.ngfactory.d.ts.map +0 -1
  1059. package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.ngfactory.d.ts.map +0 -1
  1060. package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.ngfactory.d.ts.map +0 -1
  1061. package/src/plugins/liveSearch/basic/basicLiveSearch.component.css.shim.ngstyle.d.ts.map +0 -1
  1062. package/src/plugins/liveSearch/basic/basicLiveSearch.component.ngfactory.d.ts.map +0 -1
  1063. package/src/plugins/liveSearch/edit/editLiveSearch.component.css.shim.ngstyle.d.ts.map +0 -1
  1064. package/src/plugins/liveSearch/edit/editLiveSearch.component.ngfactory.d.ts.map +0 -1
  1065. package/src/plugins/liveSearch/no/noLiveSearch.component.ngfactory.d.ts.map +0 -1
  1066. package/src/plugins/normalState/basic/basicNormalState.component.css.shim.ngstyle.d.ts.map +0 -1
  1067. package/src/plugins/normalState/basic/basicNormalState.component.ngfactory.d.ts.map +0 -1
  1068. package/src/plugins/normalState/edit/editNormalState.component.css.shim.ngstyle.d.ts.map +0 -1
  1069. package/src/plugins/normalState/edit/editNormalState.component.ngfactory.d.ts.map +0 -1
  1070. package/src/plugins/popup/basic/basicPopup.component.css.shim.ngstyle.d.ts.map +0 -1
  1071. package/src/plugins/popup/basic/basicPopup.component.ngfactory.d.ts.map +0 -1
  1072. package/src/plugins/popup/edit/editPopup.component.css.shim.ngstyle.d.ts.map +0 -1
  1073. package/src/plugins/popup/edit/editPopup.component.ngfactory.d.ts.map +0 -1
  1074. package/src/plugins/positioner/basic/basicPositioner.component.ngfactory.d.ts.map +0 -1
  1075. package/src/plugins/positioner/basic/types.ngfactory.d.ts.map +0 -1
  1076. package/src/plugins/positioner/no/noPositioner.component.ngfactory.d.ts.map +0 -1
  1077. package/src/plugins/valueHandler/basic/basicValueHandler.component.ngfactory.d.ts.map +0 -1
  1078. package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.ngfactory.d.ts.map +0 -1
  1079. package/src/select.d.ts +0 -40
  1080. package/src/select.d.ts.map +0 -1
  1081. package/src/select.ssr.d.ts +0 -1
  1082. package/src/select.ssr.d.ts.map +0 -1
@@ -0,0 +1,202 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, ViewChildren, Directive } from '@angular/core';
2
+ import { extend, isDescendant } from '@jscrpt/common';
3
+ import { PluginBus } from '../../misc/pluginBus/pluginBus';
4
+ import { VALUE_HANDLER } from '../valueHandler/types';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "../../misc/pluginBus/pluginBus";
7
+ /**
8
+ * Base abstract class for popup with options
9
+ */
10
+ export class PopupAbstractComponent {
11
+ //######################### constructor #########################
12
+ constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _document, _stringLocalization) {
13
+ this.ngSelectPlugins = ngSelectPlugins;
14
+ this.pluginBus = pluginBus;
15
+ this.pluginElement = pluginElement;
16
+ this._changeDetector = _changeDetector;
17
+ this._document = _document;
18
+ this._stringLocalization = _stringLocalization;
19
+ /**
20
+ * Indication whether is popup visible
21
+ */
22
+ this._popupVisible = false;
23
+ /**
24
+ * Occurs when visibility of popup has changed
25
+ */
26
+ this.visibilityChange = new EventEmitter();
27
+ /**
28
+ * Object containing available texts
29
+ * @internal
30
+ */
31
+ this.texts = {};
32
+ /**
33
+ * Handles click outside of select element
34
+ * @param event - Mouse event object
35
+ */
36
+ this._handleClickOutside = (event) => {
37
+ if (this.pluginBus.selectElement.nativeElement != event.target &&
38
+ !isDescendant(this.pluginBus.selectElement.nativeElement, event.target) &&
39
+ this.pluginElement.nativeElement != event.target &&
40
+ !isDescendant(this.pluginElement.nativeElement, event.target)) {
41
+ this.togglePopup();
42
+ this.pluginBus.updateDisplayedValue.emit();
43
+ }
44
+ };
45
+ /**
46
+ * Handles visibility change
47
+ */
48
+ this._handleVisibilityChange = (visible) => {
49
+ if (this.options.visible != visible) {
50
+ this.options.visible = visible;
51
+ this._changeDetector.detectChanges();
52
+ }
53
+ };
54
+ }
55
+ //######################### protected properties #########################
56
+ /**
57
+ * Gets indication whether keep open popup after value change
58
+ */
59
+ get keepOpen() {
60
+ return this.pluginBus.selectOptions.multiple;
61
+ }
62
+ //######################### public properties - implementation of Popup #########################
63
+ /**
64
+ * Options for NgSelect plugin
65
+ */
66
+ get options() {
67
+ return this._options;
68
+ }
69
+ set options(options) {
70
+ this._options = extend(true, this._options, options);
71
+ }
72
+ /**
73
+ * Html element that represents popup itself
74
+ */
75
+ get popupElement() {
76
+ const ref = this.popupElementChildren.first;
77
+ if (!ref) {
78
+ return null;
79
+ }
80
+ return ref.nativeElement;
81
+ }
82
+ //######################### public methods - implementation of AfterViewInit #########################
83
+ /**
84
+ * Called when view was initialized
85
+ */
86
+ ngAfterViewInit() {
87
+ this.popupElementChildren.changes.subscribe(() => {
88
+ if (!!this.popupElementChildren.first == this._popupVisible) {
89
+ return;
90
+ }
91
+ //handle click outside
92
+ if (this.popupElementChildren.first) {
93
+ this._document.addEventListener('mouseup', this._handleClickOutside);
94
+ }
95
+ //unregister handle click outside
96
+ else {
97
+ this._document.removeEventListener('mouseup', this._handleClickOutside);
98
+ }
99
+ this._popupVisible = !!this.popupElementChildren.first;
100
+ this.visibilityChange.emit();
101
+ });
102
+ }
103
+ //######################### public methods - implementation of OnDestroy #########################
104
+ /**
105
+ * Called when component is destroyed
106
+ */
107
+ ngOnDestroy() {
108
+ this._optionsChangeSubscription?.unsubscribe();
109
+ this._optionsChangeSubscription = null;
110
+ this._popupToggleSubscription?.unsubscribe();
111
+ this._popupToggleSubscription = null;
112
+ this._valueChangedSubscription?.unsubscribe();
113
+ this._valueChangedSubscription = null;
114
+ this._visibilityRequestSubscription?.unsubscribe();
115
+ this._visibilityRequestSubscription = null;
116
+ this._textsChangedSubscription?.unsubscribe();
117
+ this._textsChangedSubscription = null;
118
+ this._document.removeEventListener('mouseup', this._handleClickOutside);
119
+ }
120
+ //######################### public methods - implementation of Popup #########################
121
+ /**
122
+ * Initialize plugin, to be ready to use, initialize communication with other plugins
123
+ */
124
+ initialize() {
125
+ this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
126
+ if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
127
+ this._optionsChangeSubscription.unsubscribe();
128
+ this._optionsChangeSubscription = null;
129
+ this._optionsGatherer = null;
130
+ }
131
+ if (!this._optionsGatherer) {
132
+ this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
133
+ this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());
134
+ }
135
+ if (!this._popupToggleSubscription) {
136
+ this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());
137
+ }
138
+ if (!this._visibilityRequestSubscription) {
139
+ this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);
140
+ }
141
+ const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
142
+ if (this._valueHandler && this._valueHandler != valueHandler) {
143
+ this._valueChangedSubscription.unsubscribe();
144
+ this._valueChangedSubscription = null;
145
+ this._valueHandler = null;
146
+ }
147
+ if (!this._valueHandler) {
148
+ this._valueHandler = valueHandler;
149
+ this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
150
+ if (!this.keepOpen) {
151
+ this._handleVisibilityChange(false);
152
+ }
153
+ });
154
+ }
155
+ this.loadOptions();
156
+ this._initTexts();
157
+ }
158
+ /**
159
+ * Initialize plugin options, all operations required to be done with plugin options are handled here
160
+ */
161
+ initOptions() {
162
+ }
163
+ /**
164
+ * Explicitly runs invalidation of content (change detection)
165
+ */
166
+ invalidateVisuals() {
167
+ this._changeDetector.detectChanges();
168
+ }
169
+ //######################### protected methods #########################
170
+ /**
171
+ * Initialize texts
172
+ */
173
+ _initTexts() {
174
+ Object.keys(this.options.texts).forEach(key => {
175
+ this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
176
+ });
177
+ this._changeDetector.detectChanges();
178
+ }
179
+ /**
180
+ * Loads options
181
+ */
182
+ loadOptions() {
183
+ this.selectOptions = this._optionsGatherer.availableOptions;
184
+ this._changeDetector.detectChanges();
185
+ }
186
+ /**
187
+ * Toggles popup visibility
188
+ */
189
+ togglePopup() {
190
+ this.options.visible = !this.options.visible;
191
+ this._changeDetector.detectChanges();
192
+ }
193
+ }
194
+ PopupAbstractComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PopupAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
195
+ PopupAbstractComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: PopupAbstractComponent, viewQueries: [{ propertyName: "popupElementChildren", predicate: ["popupDiv"], descendants: true }], ngImport: i0 });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PopupAbstractComponent, decorators: [{
197
+ type: Directive
198
+ }], ctorParameters: function () { return [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: Document }, { type: undefined }]; }, propDecorators: { popupElementChildren: [{
199
+ type: ViewChildren,
200
+ args: ['popupDiv']
201
+ }] } });
202
+ //# sourceMappingURL=popupAbstract.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/popup/pop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ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {extend, isDescendant} from '@jscrpt/common';\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/**\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 * Subscription for changes in texts\n */\n protected _textsChangedSubscription: 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._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = 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 this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\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]);\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}"]}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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');"]}
@@ -0,0 +1,190 @@
1
+ import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, PLATFORM_ID, ChangeDetectorRef } from '@angular/core';
2
+ import { DOCUMENT, isPlatformBrowser } from '@angular/common';
3
+ import { positionsWithFlip } from '@anglr/common/positions';
4
+ import { extend, isNumber } from '@jscrpt/common';
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 { ScrollTargetSelector } from './types';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "../../../misc/pluginBus/pluginBus";
12
+ import * as i2 from "./types";
13
+ /**
14
+ * Default options for positioner
15
+ * @internal
16
+ */
17
+ const defaultOptions = {
18
+ optionsCoordinates: 'top left',
19
+ selectCoordinates: 'bottom left',
20
+ flipCallback: () => { },
21
+ scrollTarget: null,
22
+ activateOnResize: true,
23
+ activateOnScroll: true
24
+ };
25
+ /**
26
+ * Component used for positioning popup element, handles resize, scroll and collision with viewport
27
+ */
28
+ export class BasicPositionerComponent {
29
+ //######################### constructor #########################
30
+ constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, options, _document, _platformId, _scrollTargetSelector) {
31
+ this.ngSelectPlugins = ngSelectPlugins;
32
+ this.pluginBus = pluginBus;
33
+ this.pluginElement = pluginElement;
34
+ this._changeDetector = _changeDetector;
35
+ this._document = _document;
36
+ this._platformId = _platformId;
37
+ this._scrollTargetSelector = _scrollTargetSelector;
38
+ /**
39
+ * Indication whether is code running in browser
40
+ */
41
+ this._isBrowser = isPlatformBrowser(this._platformId);
42
+ //######################### protected methods #########################
43
+ /**
44
+ * Handles resize and scroll event
45
+ */
46
+ this._handleResizeAndScroll = () => {
47
+ this._updateMinWidth();
48
+ positionsWithFlip(this._popupElement, this.options.optionsCoordinates, this.pluginBus.selectElement.nativeElement, this.options.selectCoordinates, this._document, this.options.flipCallback);
49
+ };
50
+ this._options = extend(true, {}, defaultOptions, options);
51
+ }
52
+ //######################### public properties - implementation of BasicPositioner #########################
53
+ /**
54
+ * Options for NgSelect plugin
55
+ */
56
+ get options() {
57
+ return this._options;
58
+ }
59
+ set options(options) {
60
+ this._options = extend(true, this._options, options);
61
+ }
62
+ //######################### protected properties #########################
63
+ /**
64
+ * Gets scroll target
65
+ */
66
+ get scrollTarget() {
67
+ return this._options.scrollTarget || this._scrollTargetSelector.scrollTarget;
68
+ }
69
+ //######################### public methods - implementation of OnDestroy #########################
70
+ /**
71
+ * Called when component is destroyed
72
+ */
73
+ ngOnDestroy() {
74
+ this._visibilitySubscription?.unsubscribe();
75
+ this._visibilitySubscription = null;
76
+ this._optionsChangeSubscription?.unsubscribe();
77
+ this._optionsChangeSubscription = null;
78
+ if (this._isBrowser) {
79
+ window.removeEventListener('resize', this._handleResizeAndScroll);
80
+ this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);
81
+ }
82
+ }
83
+ //######################### public methods - implementation of BasicPositioner #########################
84
+ /**
85
+ * Initialize plugin, to be ready to use, initialize communication with other plugins
86
+ */
87
+ initialize() {
88
+ if (this._optionsGatherer && this._optionsGatherer != this.pluginBus?.selectOptions.optionsGatherer) {
89
+ this._optionsChangeSubscription.unsubscribe();
90
+ this._optionsChangeSubscription = null;
91
+ this._optionsGatherer = null;
92
+ }
93
+ if (!this._optionsGatherer) {
94
+ this._optionsGatherer = this.pluginBus?.selectOptions.optionsGatherer;
95
+ this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => {
96
+ if (this._popup.popupElement && this._optionsGatherer.availableOptions) {
97
+ this._handlePosition();
98
+ }
99
+ });
100
+ }
101
+ const popup = this.ngSelectPlugins[POPUP];
102
+ if (this._popup && this._popup != popup) {
103
+ this._visibilitySubscription.unsubscribe();
104
+ this._visibilitySubscription = null;
105
+ this._popup = null;
106
+ }
107
+ if (!this._popup) {
108
+ this._popup = popup;
109
+ this._visibilitySubscription = this._popup.visibilityChange.subscribe(() => this._handlePosition());
110
+ }
111
+ this._handlePosition();
112
+ }
113
+ /**
114
+ * Initialize plugin options, all operations required to be done with plugin options are handled here
115
+ */
116
+ initOptions() {
117
+ }
118
+ /**
119
+ * Explicitly runs invalidation of content (change detection)
120
+ */
121
+ invalidateVisuals() {
122
+ }
123
+ /**
124
+ * Handles position of popup
125
+ */
126
+ _handlePosition() {
127
+ this._popupElement = this._popup.popupElement;
128
+ //this has meaning only when popup is outside of ng-element
129
+ this._changeDetector.markForCheck();
130
+ if (this._isBrowser) {
131
+ //register events and handle position of opened popup
132
+ if (this._popupElement) {
133
+ if (this._options.activateOnResize) {
134
+ window.addEventListener('resize', this._handleResizeAndScroll);
135
+ }
136
+ if (this._options.activateOnScroll) {
137
+ this.scrollTarget?.addEventListener('scroll', this._handleResizeAndScroll);
138
+ }
139
+ this._handleResizeAndScroll();
140
+ }
141
+ //unregister events
142
+ else {
143
+ window.removeEventListener('resize', this._handleResizeAndScroll);
144
+ this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);
145
+ }
146
+ }
147
+ }
148
+ /**
149
+ * Updates min width of popup
150
+ */
151
+ _updateMinWidth() {
152
+ if (!this._popupElement) {
153
+ return;
154
+ }
155
+ const minWidth = this.pluginBus.selectElement.nativeElement.clientWidth;
156
+ if (isNaN(minWidth) || !isNumber(minWidth)) {
157
+ return;
158
+ }
159
+ this._popupElement.style.minWidth = `${minWidth}px`;
160
+ }
161
+ }
162
+ BasicPositionerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BasicPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: POSITIONER_OPTIONS, optional: true }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i2.ScrollTargetSelector }], target: i0.ɵɵFactoryTarget.Component });
163
+ BasicPositionerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: BasicPositionerComponent, selector: "ng-basic-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BasicPositionerComponent, decorators: [{
165
+ type: Component,
166
+ args: [{
167
+ selector: 'ng-basic-positioner',
168
+ template: '',
169
+ changeDetection: ChangeDetectionStrategy.OnPush
170
+ }]
171
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
172
+ type: Inject,
173
+ args: [NG_SELECT_PLUGIN_INSTANCES]
174
+ }, {
175
+ type: Optional
176
+ }] }, { type: i1.PluginBus, decorators: [{
177
+ type: Optional
178
+ }] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
179
+ type: Inject,
180
+ args: [POSITIONER_OPTIONS]
181
+ }, {
182
+ type: Optional
183
+ }] }, { type: Document, decorators: [{
184
+ type: Inject,
185
+ args: [DOCUMENT]
186
+ }] }, { type: Object, decorators: [{
187
+ type: Inject,
188
+ args: [PLATFORM_ID]
189
+ }] }, { type: i2.ScrollTargetSelector }]; } });
190
+ //# sourceMappingURL=basicPositioner.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/basic/basicPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAa,WAAW,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAC1I,OAAO,EAAC,QAAQ,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1D,OAAO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AAE,qBAAqB;oBAC/B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAiEgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ;8BACG,QAAQ;0BAA/C,MAAM;2BAAC,QAAQ;8BAC6B,MAAM;0BAAlD,MAAM;2BAAC,WAAW","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy, PLATFORM_ID, ChangeDetectorRef} from '@angular/core';\nimport {DOCUMENT, isPlatformBrowser} from '@angular/common';\nimport {positionsWithFlip} from '@anglr/common/positions';\nimport {extend, isNumber} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {BasicPositionerOptions, BasicPositioner} from './basicPositioner.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';\nimport {ScrollTargetSelector} from './types';\n\n/**\n * Default options for positioner\n * @internal\n */\nconst defaultOptions: BasicPositionerOptions =\n{\n optionsCoordinates: 'top left',\n selectCoordinates: 'bottom left',\n flipCallback: () => {},\n scrollTarget: null,\n activateOnResize: true,\n activateOnScroll: true\n};\n\n/**\n * Component used for positioning popup element, handles resize, scroll and collision with viewport\n */\n@Component(\n{\n selector: 'ng-basic-positioner',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicPositionerComponent implements BasicPositioner, NgSelectPlugin<BasicPositionerOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: BasicPositionerOptions;\n\n /**\n * Subscription for visibility change of popup\n */\n protected _visibilitySubscription: Subscription;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\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 BasicPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicPositionerOptions\n {\n return this._options;\n }\n public set options(options: BasicPositionerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### protected properties #########################\n\n /**\n * Gets scroll target\n */\n public get scrollTarget(): EventTarget\n {\n return this._options.scrollTarget || this._scrollTargetSelector.scrollTarget;\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 protected _changeDetector: ChangeDetectorRef,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: BasicPositionerOptions,\n @Inject(DOCUMENT) protected _document?: Document,\n @Inject(PLATFORM_ID) protected _platformId?: Object,\n protected _scrollTargetSelector?: ScrollTargetSelector)\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._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n if(this._isBrowser)\n {\n window.removeEventListener('resize', this._handleResizeAndScroll);\n this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);\n }\n }\n\n //######################### public methods - implementation of BasicPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus?.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus?.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() =>\n {\n if(this._popup.popupElement && this._optionsGatherer.availableOptions)\n {\n this._handlePosition();\n }\n });\n }\n\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._visibilitySubscription.unsubscribe();\n this._visibilitySubscription = null;\n\n this._popup = null;\n }\n\n if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilitySubscription = this._popup.visibilityChange.subscribe(() => this._handlePosition());\n }\n\n this._handlePosition();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles resize and scroll event\n */\n protected _handleResizeAndScroll = () =>\n {\n this._updateMinWidth();\n positionsWithFlip(this._popupElement, this.options.optionsCoordinates, this.pluginBus.selectElement.nativeElement, this.options.selectCoordinates, this._document, this.options.flipCallback);\n };\n\n /**\n * Handles position of popup\n */\n protected _handlePosition()\n {\n this._popupElement = this._popup.popupElement;\n\n //this has meaning only when popup is outside of ng-element\n this._changeDetector.markForCheck();\n\n if(this._isBrowser)\n {\n //register events and handle position of opened popup\n if(this._popupElement)\n {\n if(this._options.activateOnResize)\n {\n window.addEventListener('resize', this._handleResizeAndScroll);\n }\n\n if(this._options.activateOnScroll)\n {\n this.scrollTarget?.addEventListener('scroll', this._handleResizeAndScroll);\n }\n \n this._handleResizeAndScroll();\n }\n //unregister events\n else\n {\n window.removeEventListener('resize', this._handleResizeAndScroll);\n this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);\n }\n }\n }\n\n /**\n * Updates min width of popup\n */\n protected _updateMinWidth()\n {\n if(!this._popupElement)\n {\n return;\n }\n\n const minWidth = this.pluginBus.selectElement.nativeElement.clientWidth;\n\n if(isNaN(minWidth) || !isNumber(minWidth))\n {\n return;\n }\n\n this._popupElement.style.minWidth = `${minWidth}px`;\n }\n}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=basicPositioner.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basicPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/basic/basicPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {FlipCallback} from '@anglr/common/positions';\n\nimport {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Basic positioner options\n */\nexport interface BasicPositionerOptions extends PositionerOptions\n{\n /**\n * Callback that is called when flip occurs during positioning\n */\n flipCallback?: FlipCallback;\n\n /**\n * Target element that is used for handling scroll event\n */\n scrollTarget?: EventTarget;\n\n /**\n * Indication whether positioner should be sensitive/activated also to scroll of scrollTarget\n */\n activateOnScroll?: boolean;\n\n /**\n * Indication whether positioner should be sensitive/activated also on resize of window\n */\n activateOnResize?: boolean;\n}\n\n/**\n * Public API for 'BasicPositionerComponent'\n */\nexport interface BasicPositioner extends Positioner\n{\n}"]}
@@ -0,0 +1,36 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Scroll target selector that is used for obtaining scroll target
5
+ */
6
+ export class ScrollTargetSelector {
7
+ constructor() {
8
+ //######################### private fields #########################
9
+ /**
10
+ * Callback used for getting scroll target for scrolling
11
+ */
12
+ this._scrollTargetCallback = () => window;
13
+ }
14
+ //######################### public properties #########################
15
+ /**
16
+ * Gets scroll target that is used for scrolling
17
+ */
18
+ get scrollTarget() {
19
+ return this._scrollTargetCallback();
20
+ }
21
+ //######################### public methods #########################
22
+ /**
23
+ * Sets callback used for obtaining scroll target
24
+ * @param callback - Callback that is used for obtaining scroll target element
25
+ */
26
+ setScrollTarget(callback) {
27
+ this._scrollTargetCallback = callback;
28
+ }
29
+ }
30
+ ScrollTargetSelector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ScrollTargetSelector, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
31
+ ScrollTargetSelector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ScrollTargetSelector, providedIn: 'root' });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ScrollTargetSelector, decorators: [{
33
+ type: Injectable,
34
+ args: [{ providedIn: 'root' }]
35
+ }] });
36
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/basic/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;;AAEzC;;GAEG;AAEH,MAAM,OAAO,oBAAoB;IADjC;QAGI,oEAAoE;QAEpE;;WAEG;QACK,0BAAqB,GAAsB,GAAG,EAAE,CAAC,MAAM,CAAC;KAsBnE;IApBG,uEAAuE;IAEvE;;OAEG;IACH,IAAW,YAAY;QAEnB,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACxC,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,eAAe,CAAC,QAA2B;QAE9C,IAAI,CAAC,qBAAqB,GAAG,QAAQ,CAAC;IAC1C,CAAC;;iHA5BQ,oBAAoB;qHAApB,oBAAoB,cADR,MAAM;2FAClB,oBAAoB;kBADhC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable} from '@angular/core';\n\n/**\n * Scroll target selector that is used for obtaining scroll target\n */\n@Injectable({providedIn: 'root'})\nexport class ScrollTargetSelector\n{\n //######################### private fields #########################\n\n /**\n * Callback used for getting scroll target for scrolling\n */\n private _scrollTargetCallback: () => EventTarget = () => window;\n\n //######################### public properties #########################\n\n /**\n * Gets scroll target that is used for scrolling\n */\n public get scrollTarget(): EventTarget\n {\n return this._scrollTargetCallback();\n }\n\n //######################### public methods #########################\n\n /**\n * Sets callback used for obtaining scroll target\n * @param callback - Callback that is used for obtaining scroll target element\n */\n public setScrollTarget(callback: () => EventTarget)\n {\n this._scrollTargetCallback = callback;\n }\n}"]}
@@ -0,0 +1,3 @@
1
+ export * from './basic/basicPositioner.component';
2
+ export * from './no/noPositioner.component';
3
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/components.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './basic/basicPositioner.component';\nexport * from './no/noPositioner.component';"]}
@@ -0,0 +1,4 @@
1
+ export * from './positioner.interface';
2
+ export * from './basic/basicPositioner.interface';
3
+ export * from './no/noPositioner.interface';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './positioner.interface';\n\nexport * from './basic/basicPositioner.interface';\nexport * from './no/noPositioner.interface';"]}
@@ -0,0 +1,68 @@
1
+ import { ChangeDetectionStrategy, Component, ElementRef, Inject, Optional } from '@angular/core';
2
+ import { extend } from '@jscrpt/common';
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
+ * @internal
9
+ */
10
+ const defaultOptions = {};
11
+ /**
12
+ * Component used for not positioning popup
13
+ */
14
+ export class NoPositionerComponent {
15
+ //######################### constructor #########################
16
+ constructor(ngSelectPlugins, pluginElement, options) {
17
+ this.ngSelectPlugins = ngSelectPlugins;
18
+ this.pluginElement = pluginElement;
19
+ this._options = extend(true, {}, defaultOptions, options);
20
+ }
21
+ //######################### public properties - implementation of NoPositioner #########################
22
+ /**
23
+ * Options for NgSelect plugin
24
+ */
25
+ get options() {
26
+ return this._options;
27
+ }
28
+ set options(options) {
29
+ this._options = extend(true, this._options, options);
30
+ }
31
+ //######################### public methods - implementation of NoPositioner #########################
32
+ /**
33
+ * Initialize plugin, to be ready to use, initialize communication with other plugins
34
+ */
35
+ initialize() {
36
+ }
37
+ /**
38
+ * Initialize plugin options, all operations required to be done with plugin options are handled here
39
+ */
40
+ initOptions() {
41
+ }
42
+ /**
43
+ * Explicitly runs invalidation of content (change detection)
44
+ */
45
+ invalidateVisuals() {
46
+ }
47
+ }
48
+ NoPositionerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.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 });
49
+ NoPositionerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: NoPositionerComponent, selector: "ng-no-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NoPositionerComponent, decorators: [{
51
+ type: Component,
52
+ args: [{
53
+ selector: 'ng-no-positioner',
54
+ template: '',
55
+ changeDetection: ChangeDetectionStrategy.OnPush
56
+ }]
57
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
58
+ type: Inject,
59
+ args: [NG_SELECT_PLUGIN_INSTANCES]
60
+ }, {
61
+ type: Optional
62
+ }] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
63
+ type: Inject,
64
+ args: [POSITIONER_OPTIONS]
65
+ }, {
66
+ type: Optional
67
+ }] }]; } });
68
+ //# sourceMappingURL=noPositioner.component.js.map
@@ -0,0 +1 @@
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,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;;AAG5C;;;GAGG;AACH,MAAM,cAAc,GACpB,EACC,CAAC;AAEF;;GAEG;AAOH,MAAM,OAAO,qBAAqB;IA6B9B,iEAAiE;IACjE,YAAmE,eAAwC,EACxF,aAAyB,EACQ,OAA6B;QAFd,oBAAe,GAAf,eAAe,CAAyB;QACxF,kBAAa,GAAb,aAAa,CAAY;QAGxC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IA1BD,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;IAgBD,qGAAqG;IAErG;;OAEG;IACI,UAAU;IAEjB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;;kHA1DQ,qBAAqB,kBA8BV,0BAA0B,uDAE1B,kBAAkB;sGAhC7B,qBAAqB,wDAHpB,EAAE;2FAGH,qBAAqB;kBANjC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BA+BgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAE5C,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ","sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, Inject, Optional} from '@angular/core';\nimport {extend} from '@jscrpt/common';\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 * @internal\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 changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoPositionerComponent implements NoPositioner, NgSelectPlugin<NoPositionerOptions>\n{\n //######################### private properties #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: NoPositionerOptions;\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 * 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}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=noPositioner.interface.js.map
@@ -0,0 +1 @@
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{}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=positioner.interface.js.map