@ngstarter-ui/components 22.3.6 → 22.4.1

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 (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -1,158 +1,358 @@
1
- import * as i0 from '@angular/core';
2
- import { viewChild, input, signal, inject, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { NgControl } from '@angular/forms';
4
- import { FormFieldControl } from '@ngstarter-ui/components/form-field';
5
- import { Select, Option } from '@ngstarter-ui/components/select';
6
- import { Subject, takeUntil } from 'rxjs';
7
- import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
- import { outputToObservable } from '@angular/core/rxjs-interop';
9
-
10
- class DateFormatSelect {
11
- static nextId = 0;
12
- matSelect = viewChild.required(Select, /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "matSelect" }] : /* istanbul ignore next */ []));
14
- dateFormats = input([
15
- { value: 'MM/dd/yyyy', name: 'MM/DD/YYYY' },
16
- { value: 'dd.MM.yyyy', name: 'DD.MM.YYYY' },
17
- { value: 'yyyy-MM-dd', name: 'YYYY-MM-DD' },
18
- ], /* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "dateFormats" }] : /* istanbul ignore next */ []));
20
- _value = signal(null, /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []));
22
- _focused = signal(false, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "_focused" }] : /* istanbul ignore next */ []));
24
- _describedBy = signal('', /* @ts-ignore */
25
- ...(ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []));
26
- stateChanges = new Subject();
27
- id = `date-format-input-${DateFormatSelect.nextId++}`;
28
- controlType = 'date-format-input';
29
- autofilled = false;
30
- get focused() {
31
- return this._focused();
32
- }
33
- get empty() {
34
- return !this._value();
35
- }
36
- get shouldLabelFloat() {
37
- return this.focused || !this.empty;
38
- }
39
- get errorState() {
40
- return this.ngControl?.invalid === true && this.ngControl.touched === true;
41
- }
42
- get value() {
43
- return this._value();
44
- }
45
- set value(val) {
46
- this._value.set(val);
47
- this.stateChanges.next();
48
- }
49
- ngControl = inject(NgControl, { self: true, optional: true });
50
- placeholderInput = input('', { ...(ngDevMode ? { debugName: "placeholderInput" } : /* istanbul ignore next */ {}), alias: 'placeholder' });
51
- get placeholder() {
52
- return this.placeholderInput();
53
- }
54
- _destroy$ = new Subject();
55
- constructor() {
56
- if (this.ngControl) {
57
- this.ngControl.valueAccessor = this;
58
- }
59
- }
60
- ngOnInit() {
61
- outputToObservable(this.matSelect().closed)
62
- .pipe(takeUntil(this._destroy$))
63
- .subscribe(() => {
64
- this._focused.set(this.matSelect().focused);
65
- this.onTouched();
66
- this.stateChanges.next();
67
- });
68
- }
69
- _required = false;
70
- get required() {
71
- return this._required;
72
- }
73
- set required(value) {
74
- this._required = coerceBooleanProperty(value);
75
- this.stateChanges.next();
76
- }
77
- _disabled = false;
78
- get disabled() {
79
- return this._disabled;
80
- }
81
- set disabled(value) {
82
- this._disabled = coerceBooleanProperty(value);
83
- this.matSelect().setDisabledState(this._disabled);
84
- this.stateChanges.next();
85
- }
86
- ngOnDestroy() {
87
- this._destroy$.next();
88
- this._destroy$.complete();
89
- this.stateChanges.complete();
90
- }
91
- onFocus() {
92
- if (!this.focused) {
93
- this._focused.set(true);
94
- this.stateChanges.next();
95
- }
96
- }
97
- onBlur() {
98
- if (!this.matSelect().panelOpen()) {
99
- this._focused.set(false);
100
- this.onTouched();
101
- this.stateChanges.next();
102
- }
103
- }
104
- onSelectionChange(event) {
105
- this.value = event.value;
106
- this.onChange(this.value);
107
- }
108
- setDescribedByIds(ids) {
109
- this._describedBy.set(ids.join(' '));
110
- }
111
- onContainerClick(event) {
112
- if (!this.disabled) {
113
- this.matSelect().onContainerClick(event);
114
- }
115
- }
116
- onChange = () => { };
117
- onTouched = () => { };
118
- writeValue(value) {
119
- this.value = value;
120
- }
121
- registerOnChange(fn) {
122
- this.onChange = fn;
123
- }
124
- registerOnTouched(fn) {
125
- this.onTouched = fn;
126
- }
127
- setDisabledState(isDisabled) {
128
- this.disabled = isDisabled;
129
- }
130
- focus() {
131
- this.matSelect().focus();
132
- }
133
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DateFormatSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
134
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: DateFormatSelect, isStandalone: true, selector: "ngs-date-format-select", inputs: { dateFormats: { classPropertyName: "dateFormats", publicName: "dateFormats", isSignal: true, isRequired: false, transformFunction: null }, placeholderInput: { classPropertyName: "placeholderInput", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "id": "id", "attr.required": "required || null" } }, providers: [{
135
- provide: FormFieldControl,
136
- useExisting: DateFormatSelect
137
- }], viewQueries: [{ propertyName: "matSelect", first: true, predicate: Select, descendants: true, isSignal: true }], exportAs: ["ngsDateFormatSelect"], ngImport: i0, template: "<ngs-select\n [value]=\"value\"\n (selectionChange)=\"onSelectionChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\">\n @for (format of dateFormats(); track format.value) {\n <ngs-option [value]=\"format.value\">{{ format.name }}</ngs-option>\n }\n</ngs-select>\n", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: Select, selector: "ngs-select", inputs: ["id", "placeholder", "disabled", "required", "multiple", "hideCheckIcon", "clearable", "dataSource", "pageSize", "searchable", "searchDebounce", "minSearchLength", "loadOnOpen", "aria-label", "tabIndex", "aria-describedby", "value"], outputs: ["selectionChange", "opened", "closed", "valueChange"], exportAs: ["ngsSelect"] }, { kind: "component", type: Option, selector: "ngs-option", inputs: ["id", "value", "data", "disabled", "selected"], outputs: ["onSelectionChange"], exportAs: ["ngsOption"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
138
- }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: DateFormatSelect, decorators: [{
140
- type: Component,
141
- args: [{ selector: 'ngs-date-format-select', exportAs: 'ngsDateFormatSelect', imports: [
142
- Select,
143
- Option
144
- ], providers: [{
145
- provide: FormFieldControl,
146
- useExisting: DateFormatSelect
147
- }], changeDetection: ChangeDetectionStrategy.Eager, host: {
148
- '[id]': 'id',
149
- '[attr.required]': 'required || null',
150
- }, template: "<ngs-select\n [value]=\"value\"\n (selectionChange)=\"onSelectionChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\">\n @for (format of dateFormats(); track format.value) {\n <ngs-option [value]=\"format.value\">{{ format.name }}</ngs-option>\n }\n</ngs-select>\n", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
151
- }], ctorParameters: () => [], propDecorators: { matSelect: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Select), { isSignal: true }] }], dateFormats: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormats", required: false }] }], placeholderInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
152
-
153
- /**
154
- * Generated bundle index. Do not edit.
155
- */
156
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, booleanAttribute, inject, input, model, output, signal, viewChild } from "@angular/core";
3
+ import { outputToObservable } from "@angular/core/rxjs-interop";
4
+ import { Subject, takeUntil } from "rxjs";
5
+ import { FormFieldControl } from "@ngstarter-ui/components/form-field";
6
+ import { NgControl } from "@angular/forms";
7
+ import { Option, Select } from "@ngstarter-ui/components/select";
8
+ var DateFormatSelect = class DateFormatSelect {
9
+ static nextId = 0;
10
+ matSelect = viewChild.required(Select, ...ngDevMode ? [{ debugName: "matSelect" }] : /* istanbul ignore next */ []);
11
+ dateFormats = input([
12
+ {
13
+ value: "MM/dd/yyyy",
14
+ name: "MM/DD/YYYY"
15
+ },
16
+ {
17
+ value: "dd.MM.yyyy",
18
+ name: "DD.MM.YYYY"
19
+ },
20
+ {
21
+ value: "yyyy-MM-dd",
22
+ name: "YYYY-MM-DD"
23
+ }
24
+ ], ...ngDevMode ? [{ debugName: "dateFormats" }] : /* istanbul ignore next */ []);
25
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
26
+ _focused = signal(false, ...ngDevMode ? [{ debugName: "_focused" }] : /* istanbul ignore next */ []);
27
+ _describedBy = signal("", ...ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []);
28
+ stateChanges = new Subject();
29
+ id = `date-format-input-${DateFormatSelect.nextId++}`;
30
+ controlType = "date-format-input";
31
+ autofilled = false;
32
+ get focused() {
33
+ return this._focused();
34
+ }
35
+ get empty() {
36
+ return !this.value();
37
+ }
38
+ get shouldLabelFloat() {
39
+ return this.focused || !this.empty;
40
+ }
41
+ get errorState() {
42
+ return !!(this.invalid() || this.ngControl?.invalid) && this.touched();
43
+ }
44
+ readonly = input(false, {
45
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
46
+ transform: booleanAttribute
47
+ });
48
+ invalid = input(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
49
+ touched = input(false, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
50
+ touch = output();
51
+ ngControl = inject(NgControl, {
52
+ self: true,
53
+ optional: true
54
+ });
55
+ placeholderInput = input("", {
56
+ ...ngDevMode ? { debugName: "placeholderInput" } : /* istanbul ignore next */ {},
57
+ alias: "placeholder"
58
+ });
59
+ get placeholder() {
60
+ return this.placeholderInput();
61
+ }
62
+ _destroy$ = new Subject();
63
+ ngOnInit() {
64
+ outputToObservable(this.matSelect().closed).pipe(takeUntil(this._destroy$)).subscribe(() => {
65
+ this._focused.set(this.matSelect().focused);
66
+ this.stateChanges.next();
67
+ });
68
+ }
69
+ required = input(false, {
70
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
71
+ transform: booleanAttribute
72
+ });
73
+ disabled = input(false, {
74
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
75
+ transform: booleanAttribute
76
+ });
77
+ ngOnDestroy() {
78
+ this._destroy$.next();
79
+ this._destroy$.complete();
80
+ this.stateChanges.complete();
81
+ }
82
+ onFocus() {
83
+ if (!this.focused) {
84
+ this._focused.set(true);
85
+ this.stateChanges.next();
86
+ }
87
+ }
88
+ onBlur() {
89
+ if (!this.matSelect().panelOpen()) {
90
+ this._focused.set(false);
91
+ this.stateChanges.next();
92
+ }
93
+ }
94
+ onSelectionChange(event) {
95
+ this.value.set(event.value);
96
+ }
97
+ setDescribedByIds(ids) {
98
+ this._describedBy.set(ids.join(" "));
99
+ }
100
+ onContainerClick(event) {
101
+ if (!this.disabled()) this.matSelect().onContainerClick(event);
102
+ }
103
+ focus() {
104
+ this.matSelect().focus();
105
+ }
106
+ static ɵfac = i0.ɵɵngDeclareFactory({
107
+ minVersion: "12.0.0",
108
+ version: "22.3.0",
109
+ ngImport: i0,
110
+ type: DateFormatSelect,
111
+ deps: [],
112
+ target: i0.ɵɵFactoryTarget.Component
113
+ });
114
+ static ɵcmp = i0.ɵɵngDeclareComponent({
115
+ minVersion: "17.0.0",
116
+ version: "22.3.0",
117
+ type: DateFormatSelect,
118
+ isStandalone: true,
119
+ selector: "ngs-date-format-select",
120
+ inputs: {
121
+ dateFormats: {
122
+ classPropertyName: "dateFormats",
123
+ publicName: "dateFormats",
124
+ isSignal: true,
125
+ isRequired: false,
126
+ transformFunction: null
127
+ },
128
+ value: {
129
+ classPropertyName: "value",
130
+ publicName: "value",
131
+ isSignal: true,
132
+ isRequired: false,
133
+ transformFunction: null
134
+ },
135
+ readonly: {
136
+ classPropertyName: "readonly",
137
+ publicName: "readonly",
138
+ isSignal: true,
139
+ isRequired: false,
140
+ transformFunction: null
141
+ },
142
+ invalid: {
143
+ classPropertyName: "invalid",
144
+ publicName: "invalid",
145
+ isSignal: true,
146
+ isRequired: false,
147
+ transformFunction: null
148
+ },
149
+ touched: {
150
+ classPropertyName: "touched",
151
+ publicName: "touched",
152
+ isSignal: true,
153
+ isRequired: false,
154
+ transformFunction: null
155
+ },
156
+ placeholderInput: {
157
+ classPropertyName: "placeholderInput",
158
+ publicName: "placeholder",
159
+ isSignal: true,
160
+ isRequired: false,
161
+ transformFunction: null
162
+ },
163
+ required: {
164
+ classPropertyName: "required",
165
+ publicName: "required",
166
+ isSignal: true,
167
+ isRequired: false,
168
+ transformFunction: null
169
+ },
170
+ disabled: {
171
+ classPropertyName: "disabled",
172
+ publicName: "disabled",
173
+ isSignal: true,
174
+ isRequired: false,
175
+ transformFunction: null
176
+ }
177
+ },
178
+ outputs: {
179
+ value: "valueChange",
180
+ touch: "touch"
181
+ },
182
+ host: { properties: {
183
+ "attr.aria-readonly": "readonly() || null",
184
+ "id": "id",
185
+ "attr.required": "required() || null"
186
+ } },
187
+ providers: [{
188
+ provide: FormFieldControl,
189
+ useExisting: DateFormatSelect
190
+ }],
191
+ viewQueries: [{
192
+ propertyName: "matSelect",
193
+ first: true,
194
+ predicate: Select,
195
+ descendants: true,
196
+ isSignal: true
197
+ }],
198
+ exportAs: ["ngsDateFormatSelect"],
199
+ ngImport: i0,
200
+ template: "<ngs-select\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (touch)=\"touch.emit()\"\n (selectionChange)=\"onSelectionChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\">\n @for (format of dateFormats(); track format.value) {\n <ngs-option [value]=\"format.value\">{{ format.name }}</ngs-option>\n }\n</ngs-select>\n",
201
+ styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
202
+ dependencies: [{
203
+ kind: "component",
204
+ type: Select,
205
+ selector: "ngs-select",
206
+ inputs: [
207
+ "readonly",
208
+ "invalid",
209
+ "touched",
210
+ "id",
211
+ "placeholder",
212
+ "disabled",
213
+ "required",
214
+ "multiple",
215
+ "hideCheckIcon",
216
+ "clearable",
217
+ "dataSource",
218
+ "pageSize",
219
+ "searchable",
220
+ "searchDebounce",
221
+ "minSearchLength",
222
+ "loadOnOpen",
223
+ "aria-label",
224
+ "tabIndex",
225
+ "aria-describedby",
226
+ "value"
227
+ ],
228
+ outputs: [
229
+ "touch",
230
+ "selectionChange",
231
+ "opened",
232
+ "closed",
233
+ "valueChange"
234
+ ],
235
+ exportAs: ["ngsSelect"]
236
+ }, {
237
+ kind: "component",
238
+ type: Option,
239
+ selector: "ngs-option",
240
+ inputs: [
241
+ "id",
242
+ "value",
243
+ "data",
244
+ "disabled",
245
+ "selected"
246
+ ],
247
+ outputs: ["onSelectionChange"],
248
+ exportAs: ["ngsOption"]
249
+ }],
250
+ changeDetection: i0.ChangeDetectionStrategy.Eager
251
+ });
252
+ };
253
+ i0.ɵɵngDeclareClassMetadata({
254
+ minVersion: "12.0.0",
255
+ version: "22.3.0",
256
+ ngImport: i0,
257
+ type: DateFormatSelect,
258
+ decorators: [{
259
+ type: Component,
260
+ args: [{
261
+ selector: "ngs-date-format-select",
262
+ exportAs: "ngsDateFormatSelect",
263
+ imports: [Select, Option],
264
+ providers: [{
265
+ provide: FormFieldControl,
266
+ useExisting: DateFormatSelect
267
+ }],
268
+ changeDetection: ChangeDetectionStrategy.Eager,
269
+ host: {
270
+ "[attr.aria-readonly]": "readonly() || null",
271
+ "[id]": "id",
272
+ "[attr.required]": "required() || null"
273
+ },
274
+ template: "<ngs-select\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (touch)=\"touch.emit()\"\n (selectionChange)=\"onSelectionChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\">\n @for (format of dateFormats(); track format.value) {\n <ngs-option [value]=\"format.value\">{{ format.name }}</ngs-option>\n }\n</ngs-select>\n",
275
+ styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
276
+ }]
277
+ }],
278
+ propDecorators: {
279
+ matSelect: [{
280
+ type: i0.ViewChild,
281
+ args: [i0.forwardRef(() => Select), { isSignal: true }]
282
+ }],
283
+ dateFormats: [{
284
+ type: i0.Input,
285
+ args: [{
286
+ isSignal: true,
287
+ alias: "dateFormats",
288
+ required: false
289
+ }]
290
+ }],
291
+ value: [{
292
+ type: i0.Input,
293
+ args: [{
294
+ isSignal: true,
295
+ alias: "value",
296
+ required: false
297
+ }]
298
+ }, {
299
+ type: i0.Output,
300
+ args: ["valueChange"]
301
+ }],
302
+ readonly: [{
303
+ type: i0.Input,
304
+ args: [{
305
+ isSignal: true,
306
+ alias: "readonly",
307
+ required: false
308
+ }]
309
+ }],
310
+ invalid: [{
311
+ type: i0.Input,
312
+ args: [{
313
+ isSignal: true,
314
+ alias: "invalid",
315
+ required: false
316
+ }]
317
+ }],
318
+ touched: [{
319
+ type: i0.Input,
320
+ args: [{
321
+ isSignal: true,
322
+ alias: "touched",
323
+ required: false
324
+ }]
325
+ }],
326
+ touch: [{
327
+ type: i0.Output,
328
+ args: ["touch"]
329
+ }],
330
+ placeholderInput: [{
331
+ type: i0.Input,
332
+ args: [{
333
+ isSignal: true,
334
+ alias: "placeholder",
335
+ required: false
336
+ }]
337
+ }],
338
+ required: [{
339
+ type: i0.Input,
340
+ args: [{
341
+ isSignal: true,
342
+ alias: "required",
343
+ required: false
344
+ }]
345
+ }],
346
+ disabled: [{
347
+ type: i0.Input,
348
+ args: [{
349
+ isSignal: true,
350
+ alias: "disabled",
351
+ required: false
352
+ }]
353
+ }]
354
+ }
355
+ });
157
356
  export { DateFormatSelect };
158
- //# sourceMappingURL=ngstarter-ui-components-date-format-select.mjs.map
357
+
358
+ //# sourceMappingURL=ngstarter-ui-components-date-format-select.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-date-format-select.mjs","sources":["../../../projects/components/date-format-select/src/date-format-select/date-format-select.ts","../../../projects/components/date-format-select/src/date-format-select/date-format-select.html","../../../projects/components/date-format-select/ngstarter-ui-components-date-format-select.ts"],"sourcesContent":["import {\n Component,\n inject,\n input,\n OnDestroy,\n signal, viewChild, OnInit,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { ControlValueAccessor, NgControl } from '@angular/forms';\nimport { FormFieldControl } from '@ngstarter-ui/components/form-field';\nimport { Select, Option, SelectChange } from '@ngstarter-ui/components/select';\nimport { Subject, takeUntil } from 'rxjs';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\n\nexport type DateFormat = {\n value: string;\n name: string;\n};\n\n@Component({\n selector: 'ngs-date-format-select',\n exportAs: 'ngsDateFormatSelect',\n imports: [\n Select,\n Option\n ],\n templateUrl: './date-format-select.html',\n styleUrl: './date-format-select.scss',\n providers: [{\n provide: FormFieldControl,\n useExisting: DateFormatSelect\n }],\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n '[id]': 'id',\n '[attr.required]': 'required || null',\n },\n})\nexport class DateFormatSelect implements FormFieldControl<string>, ControlValueAccessor, OnDestroy, OnInit {\n private static nextId = 0;\n\n readonly matSelect = viewChild.required(Select);\n\n readonly dateFormats = input<DateFormat[]>([\n { value: 'MM/dd/yyyy', name: 'MM/DD/YYYY' },\n { value: 'dd.MM.yyyy', name: 'DD.MM.YYYY' },\n { value: 'yyyy-MM-dd', name: 'YYYY-MM-DD' },\n ]);\n\n private readonly _value = signal<string | null>(null);\n private readonly _focused = signal(false);\n readonly _describedBy = signal('');\n\n readonly stateChanges = new Subject<void>();\n readonly id = `date-format-input-${DateFormatSelect.nextId++}`;\n readonly controlType = 'date-format-input';\n readonly autofilled = false;\n\n get focused(): boolean {\n return this._focused();\n }\n\n get empty(): boolean {\n return !this._value();\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n return this.ngControl?.invalid === true && this.ngControl.touched === true;\n }\n\n get value(): string | null {\n return this._value();\n }\n set value(val: string | null) {\n this._value.set(val);\n this.stateChanges.next();\n }\n\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n readonly placeholderInput = input<string>('', { alias: 'placeholder' });\n\n get placeholder(): string {\n return this.placeholderInput();\n }\n\n private readonly _destroy$ = new Subject<void>();\n\n constructor() {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n ngOnInit(): void {\n outputToObservable(this.matSelect().closed)\n .pipe(takeUntil(this._destroy$))\n .subscribe(() => {\n this._focused.set(this.matSelect().focused);\n this.onTouched();\n this.stateChanges.next();\n });\n }\n\n private _required = false;\n\n get required(): boolean {\n return this._required;\n }\n set required(value: boolean | string) {\n this._required = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n\n private _disabled = false;\n\n get disabled(): boolean {\n return this._disabled;\n }\n set disabled(value: boolean | string) {\n this._disabled = coerceBooleanProperty(value);\n this.matSelect().setDisabledState(this._disabled);\n this.stateChanges.next();\n }\n\n ngOnDestroy(): void {\n this._destroy$.next();\n this._destroy$.complete();\n this.stateChanges.complete();\n }\n\n onFocus(): void {\n if (!this.focused) {\n this._focused.set(true);\n this.stateChanges.next();\n }\n }\n\n onBlur(): void {\n if (!this.matSelect().panelOpen()) {\n this._focused.set(false);\n this.onTouched();\n this.stateChanges.next();\n }\n }\n\n onSelectionChange(event: SelectChange): void {\n this.value = event.value;\n this.onChange(this.value);\n }\n\n setDescribedByIds(ids: string[]): void {\n this._describedBy.set(ids.join(' '));\n }\n\n onContainerClick(event: MouseEvent): void {\n if (!this.disabled) {\n this.matSelect().onContainerClick(event);\n }\n }\n\n private onChange: (value: unknown) => void = () => {};\n private onTouched: () => void = () => {};\n\n writeValue(value: string | null): void {\n this.value = value;\n }\n\n registerOnChange(fn: (value: unknown) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n focus(): void {\n this.matSelect().focus();\n }\n}\n","<ngs-select\n [value]=\"value\"\n (selectionChange)=\"onSelectionChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\">\n @for (format of dateFormats(); track format.value) {\n <ngs-option [value]=\"format.value\">{{ format.name }}</ngs-option>\n }\n</ngs-select>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAuCa,gBAAgB,CAAA;AACnB,IAAA,OAAO,MAAM,GAAG,CAAC;AAEhB,IAAA,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM;kFAAC;IAEtC,WAAW,GAAG,KAAK,CAAe;AACzC,QAAA,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE;AAC3C,QAAA,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE;AAC3C,QAAA,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE;AAC5C,KAAA;oFAAC;IAEe,MAAM,GAAG,MAAM,CAAgB,IAAI;+EAAC;IACpC,QAAQ,GAAG,MAAM,CAAC,KAAK;iFAAC;IAChC,YAAY,GAAG,MAAM,CAAC,EAAE;qFAAC;AAEzB,IAAA,YAAY,GAAG,IAAI,OAAO,EAAQ;AAClC,IAAA,EAAE,GAAG,CAAA,kBAAA,EAAqB,gBAAgB,CAAC,MAAM,EAAE,EAAE;IACrD,WAAW,GAAG,mBAAmB;IACjC,UAAU,GAAG,KA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A,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1ChD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-date-format-select.mjs","names":[],"sources":["../../../projects/components/date-format-select/src/date-format-select/date-format-select.ts","../../../projects/components/date-format-select/src/date-format-select/date-format-select.html"],"sourcesContent":["import {\n Component,\n inject,\n input,\n model,\n output,\n booleanAttribute,\n OnDestroy,\n signal, viewChild, OnInit,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { FormValueControl } from '@angular/forms/signals';\nimport { FormFieldControl } from '@ngstarter-ui/components/form-field';\nimport { Select, Option, SelectChange } from '@ngstarter-ui/components/select';\nimport { Subject, takeUntil } from 'rxjs';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\n\nexport type DateFormat = {\n value: string;\n name: string;\n};\n\n@Component({\n selector: 'ngs-date-format-select',\n exportAs: 'ngsDateFormatSelect',\n imports: [\n Select,\n Option\n ],\n templateUrl: './date-format-select.html',\n styleUrl: './date-format-select.scss',\n providers: [{\n provide: FormFieldControl,\n useExisting: DateFormatSelect\n }],\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n '[attr.aria-readonly]': 'readonly() || null',\n '[id]': 'id',\n '[attr.required]': 'required() || null',\n },\n})\nexport class DateFormatSelect implements FormFieldControl<string>, FormValueControl<string | null>, OnDestroy, OnInit {\n private static nextId = 0;\n\n readonly matSelect = viewChild.required(Select);\n\n readonly dateFormats = input<DateFormat[]>([\n { value: 'MM/dd/yyyy', name: 'MM/DD/YYYY' },\n { value: 'dd.MM.yyyy', name: 'DD.MM.YYYY' },\n { value: 'yyyy-MM-dd', name: 'YYYY-MM-DD' },\n ]);\n\n readonly value = model<string | null>(null);\n private readonly _focused = signal(false);\n readonly _describedBy = signal('');\n\n readonly stateChanges = new Subject<void>();\n readonly id = `date-format-input-${DateFormatSelect.nextId++}`;\n readonly controlType = 'date-format-input';\n readonly autofilled = false;\n\n get focused(): boolean {\n return this._focused();\n }\n\n get empty(): boolean {\n return !this.value();\n }\n\n get shouldLabelFloat(): boolean {\n return this.focused || !this.empty;\n }\n\n get errorState(): boolean {\n return !!(this.invalid() || this.ngControl?.invalid) && this.touched();\n }\n\n readonly readonly = input(false, { transform: booleanAttribute });\n readonly invalid = input(false);\n readonly touched = input(false);\n readonly touch = output<void>();\n readonly ngControl = inject(NgControl, { self: true, optional: true });\n readonly placeholderInput = input<string>('', { alias: 'placeholder' });\n\n get placeholder(): string {\n return this.placeholderInput();\n }\n\n private readonly _destroy$ = new Subject<void>();\n\n ngOnInit(): void {\n outputToObservable(this.matSelect().closed)\n .pipe(takeUntil(this._destroy$))\n .subscribe(() => {\n this._focused.set(this.matSelect().focused);\n this.stateChanges.next();\n });\n }\n\n readonly required = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n\n ngOnDestroy(): void {\n this._destroy$.next();\n this._destroy$.complete();\n this.stateChanges.complete();\n }\n\n onFocus(): void {\n if (!this.focused) {\n this._focused.set(true);\n this.stateChanges.next();\n }\n }\n\n onBlur(): void {\n if (!this.matSelect().panelOpen()) {\n this._focused.set(false);\n this.stateChanges.next();\n }\n }\n\n onSelectionChange(event: SelectChange): void {\n this.value.set(event.value);\n }\n\n setDescribedByIds(ids: string[]): void {\n this._describedBy.set(ids.join(' '));\n }\n\n onContainerClick(event: MouseEvent): void {\n if (!this.disabled()) {\n this.matSelect().onContainerClick(event);\n }\n }\n\n focus(): void {\n this.matSelect().focus();\n }\n}\n","<ngs-select\n [value]=\"value()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (touch)=\"touch.emit()\"\n (selectionChange)=\"onSelectionChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholder\">\n @for (format of dateFormats(); track format.value) {\n <ngs-option [value]=\"format.value\">{{ format.name }}</ngs-option>\n }\n</ngs-select>\n"],"mappings":";;;;;;;AA2CA,IAAa,mBAAb,MAAa,iBAAgB;CACnB,OAAO,SAAS;CAEf,YAAY,UAAU,SAAS,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAEtC,cAAc,MAAoB;EACzC;GAAE,OAAO;GAAc,MAAM;EAAY;EACzC;GAAE,OAAO;GAAc,MAAM;EAAY;EACzC;GAAE,OAAO;GAAc,MAAM;EAAY;CAC1C,GAAC,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAEO,QAAQ,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC1B,WAAW,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAChC,eAAe,OAAO,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;CAEzB,eAAe,IAAI,QAAO;CAC1B,KAAK,qBAAqB,iBAAiB;CAC3C,cAAc;CACd,aAAa;CAEtB,IAAI,UAAO;EACT,OAAO,KAAK,SAAQ;CACtB;CAEA,IAAI,QAAK;EACP,OAAO,CAAC,KAAK,MAAK;CACpB;CAEA,IAAI,mBAAgB;EAClB,OAAO,KAAK,WAAW,CAAC,KAAK;CAC/B;CAEA,I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