@sdcorejs/angular 19.3.1 → 19.3.3

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 (660) hide show
  1. package/assets/STYLE-GUIDE.md +25 -5
  2. package/assets/THEME.md +289 -5
  3. package/assets/licenses/tiptap-oss-NOTICES.txt +332 -0
  4. package/assets/scss/ckeditor5.scss +2 -88
  5. package/assets/scss/core/_control.scss +39 -0
  6. package/assets/scss/core/form.scss +444 -45
  7. package/assets/scss/core/view.scss +24 -0
  8. package/assets/scss/editor-content.scss +173 -0
  9. package/assets/scss/sd-core.scss +1 -0
  10. package/assets/scss/themes/_component-tokens.scss +123 -32
  11. package/assets/scss/themes/_material-tokens.scss +112 -0
  12. package/assets/scss/themes/_presets.scss +25 -0
  13. package/assets/scss/themes/_scales.scss +10 -0
  14. package/assets/scss/themes/_semantic.scss +13 -0
  15. package/assets/scss/themes/default.scss +8 -2
  16. package/components/avatar/index.d.ts +1 -0
  17. package/components/avatar/src/avatar-group.component.d.ts +43 -0
  18. package/components/avatar/src/avatar.component.d.ts +23 -1
  19. package/components/badge/index.d.ts +3 -0
  20. package/components/badge/src/badge-picker.component.d.ts +148 -0
  21. package/components/badge/src/badge-picker.constants.d.ts +18 -0
  22. package/components/badge/src/badge.component.d.ts +24 -3
  23. package/components/badge/src/badge.model.d.ts +19 -0
  24. package/components/button/src/button.component.d.ts +20 -1
  25. package/components/ckeditor-styles/src/ckeditor-styles.component.d.ts +3 -18
  26. package/components/editor/index.d.ts +1 -0
  27. package/components/editor/src/editor.component.d.ts +17 -15
  28. package/components/editor/src/models/editor.model.d.ts +5 -4
  29. package/components/editor/src/plugins/image-upload/utils/validate.utils.d.ts +5 -2
  30. package/components/editor/src/upload-manager.d.ts +21 -0
  31. package/components/editor-engine/index.d.ts +3 -0
  32. package/components/editor-engine/src/engine/editor-engine.d.ts +68 -0
  33. package/components/editor-engine/src/engine/editor-engine.models.d.ts +51 -0
  34. package/components/editor-engine/src/engine/editor-html-boundary.d.ts +6 -0
  35. package/components/editor-engine/src/engine/editor-schema.d.ts +3 -0
  36. package/components/editor-engine/src/surface/editor-surface.component.d.ts +50 -0
  37. package/components/editor-engine/src/toolbar/editor-button.directive.d.ts +17 -0
  38. package/components/editor-engine/src/toolbar/editor-toolbar.component.d.ts +78 -0
  39. package/components/file-explorer/src/components/actions.component.d.ts +1 -0
  40. package/components/file-explorer/src/file-explorer.model.d.ts +4 -2
  41. package/components/file-explorer/src/file-explorer.utils.d.ts +6 -2
  42. package/components/form-generic/src/components/elements/button-element.component.d.ts +16 -0
  43. package/components/form-generic/src/components/elements/index.d.ts +2 -0
  44. package/components/form-generic/src/components/elements/static-element.component.d.ts +26 -0
  45. package/components/form-generic/src/components/form-builder/canvas/field-preview.component.d.ts +10 -0
  46. package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +9 -4
  47. package/components/form-generic/src/components/form-builder/inspector/inspector.component.d.ts +46 -0
  48. package/components/form-generic/src/components/form-builder/state/builder-document.d.ts +9 -1
  49. package/components/form-generic/src/components/form-builder/state/builder-palette.d.ts +2 -2
  50. package/components/form-generic/src/components/form-builder/state/builder-store.d.ts +13 -1
  51. package/components/form-generic/src/components/form-render/components/item/components/index.d.ts +2 -0
  52. package/components/form-generic/src/components/form-render/components/item/components/json/json.component.d.ts +26 -0
  53. package/components/form-generic/src/components/form-render/components/item/components/time/time.component.d.ts +17 -0
  54. package/components/form-generic/src/components/form-render/form-render.component.d.ts +64 -6
  55. package/components/form-generic/src/models/form-generic-element.model.d.ts +128 -0
  56. package/components/form-generic/src/models/form-generic-field.model.d.ts +5 -1
  57. package/components/form-generic/src/models/form-generic-schema.d.ts +9 -1
  58. package/components/form-generic/src/models/form-generic-schema.model.d.ts +7 -3
  59. package/components/form-generic/src/models/index.d.ts +1 -0
  60. package/components/form-generic/src/rules/form-generic-button.d.ts +21 -0
  61. package/components/form-generic/src/rules/form-generic-display.d.ts +2 -0
  62. package/components/form-generic/src/rules/form-generic-filter.d.ts +21 -3
  63. package/components/form-generic/src/rules/form-generic-url.d.ts +10 -0
  64. package/components/form-generic/src/rules/form-generic-validation.d.ts +13 -0
  65. package/components/history/pipes/view-date.pipe.d.ts +1 -0
  66. package/components/import-excel/src/pipes/column-transform.pipe.d.ts +1 -0
  67. package/components/index.d.ts +1 -0
  68. package/components/mini-editor/index.d.ts +1 -0
  69. package/components/mini-editor/src/mini-editor.component.d.ts +25 -62
  70. package/components/mini-editor/src/mini-editor.model.d.ts +9 -9
  71. package/components/modal-resizable/src/modal-resizable.component.d.ts +3 -121
  72. package/components/operator/index.d.ts +2 -0
  73. package/components/operator/src/operator-chip.component.d.ts +72 -0
  74. package/components/operator/src/operator-items.d.ts +49 -0
  75. package/components/operator/src/operator.component.d.ts +18 -11
  76. package/components/section/index.d.ts +1 -0
  77. package/components/section/src/section-registry.d.ts +11 -0
  78. package/components/splitter/index.d.ts +1 -1
  79. package/components/tab-router/src/actions/tab-router.action.d.ts +1 -1
  80. package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +8 -1
  81. package/components/tab-router/src/components/tab-router-list-item/tab-router-list-item.component.d.ts +17 -0
  82. package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +50 -9
  83. package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +6 -1
  84. package/components/tab-router/src/models/tab-router.model.d.ts +5 -0
  85. package/components/tab-router/src/pipes/tab-info.pipe.d.ts +7 -0
  86. package/components/tab-router/src/services/tab-router.service.d.ts +5 -0
  87. package/components/table/index.d.ts +2 -0
  88. package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +7 -0
  89. package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +5 -1
  90. package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +4 -0
  91. package/components/table/src/components/unknown-total-paginator/unknown-total-paginator.component.d.ts +52 -0
  92. package/components/table/src/configurations/index.d.ts +1 -0
  93. package/components/table/src/configurations/table-layout.d.ts +16 -0
  94. package/components/table/src/configurations/table.configuration.d.ts +3 -1
  95. package/components/table/src/models/index.d.ts +1 -0
  96. package/components/table/src/models/table-column.model.d.ts +3 -10
  97. package/components/table/src/models/table-item.model.d.ts +4 -1
  98. package/components/table/src/models/table-option-loading.model.d.ts +42 -0
  99. package/components/table/src/models/table-option-paginate.model.d.ts +14 -0
  100. package/components/table/src/models/table-option.model.d.ts +31 -5
  101. package/components/table/src/services/table-aggregate.util.d.ts +6 -1
  102. package/components/table/src/services/table-export/table-export.service.d.ts +4 -3
  103. package/components/table/src/services/table-filter/table-filter-operator.util.d.ts +16 -0
  104. package/components/table/src/services/table-filter/table-filter.model.d.ts +12 -0
  105. package/components/table/src/services/table-loading/table-loading.util.d.ts +91 -0
  106. package/components/table/src/services/table-local/table-local-sort.util.d.ts +8 -2
  107. package/components/table/src/services/table-local/table-local.util.d.ts +7 -2
  108. package/components/table/src/services/table-paging/unknown-total.util.d.ts +28 -0
  109. package/components/table/src/services/tree/tree.util.d.ts +2 -0
  110. package/components/table/src/table.component.d.ts +39 -0
  111. package/components/upload-file/src/components/file-type-icon/file-type-icon.component.d.ts +15 -0
  112. package/components/upload-file/src/components/preview/preview.component.d.ts +88 -10
  113. package/components/upload-file/src/configurations/upload-file.configuration.d.ts +1 -1
  114. package/components/upload-file/src/helpers/file-type.d.ts +25 -0
  115. package/components/upload-file/src/pipes/file-meta.pipe.d.ts +9 -0
  116. package/components/upload-file/src/pipes/file-reason.pipe.d.ts +11 -0
  117. package/components/upload-file/src/pipes/index.d.ts +2 -0
  118. package/components/upload-file/src/upload-file.component.d.ts +89 -8
  119. package/components/window/index.d.ts +1 -0
  120. package/components/window/src/window.component.d.ts +77 -0
  121. package/components/{modal-resizable/src/modal-resizable.registry.d.ts → window/src/window.registry.d.ts} +7 -4
  122. package/configurations/src/sd-core.configuration.d.ts +7 -0
  123. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
  124. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  125. package/fesm2022/sdcorejs-angular-components-avatar.mjs +141 -10
  126. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  127. package/fesm2022/sdcorejs-angular-components-badge.mjs +546 -22
  128. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  129. package/fesm2022/sdcorejs-angular-components-button.mjs +32 -2
  130. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  131. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
  132. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  133. package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
  134. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  135. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
  136. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
  137. package/fesm2022/sdcorejs-angular-components-editor.mjs +456 -755
  138. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  139. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
  140. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  141. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2119 -1160
  142. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  143. package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
  144. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  145. package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
  146. package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
  147. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
  148. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  149. package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
  150. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  151. package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
  152. package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
  153. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +175 -281
  154. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  155. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
  156. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  157. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  158. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  159. package/fesm2022/sdcorejs-angular-components-operator.mjs +261 -42
  160. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  161. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
  162. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  163. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
  164. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  165. package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
  166. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  167. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  168. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  169. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  170. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +557 -92
  171. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  172. package/fesm2022/sdcorejs-angular-components-table.mjs +1000 -118
  173. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  174. package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
  175. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  176. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +886 -173
  177. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  178. package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
  179. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  180. package/fesm2022/sdcorejs-angular-components-window.mjs +486 -0
  181. package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
  182. package/fesm2022/sdcorejs-angular-components.mjs +1 -0
  183. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  184. package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
  185. package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
  186. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  187. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
  188. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  189. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
  190. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  191. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +462 -124
  192. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  193. package/fesm2022/sdcorejs-angular-forms-chip.mjs +421 -121
  194. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  195. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +78 -12
  196. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  197. package/fesm2022/sdcorejs-angular-forms-date.mjs +74 -17
  198. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  199. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
  200. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  201. package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
  202. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  203. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
  204. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  205. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
  206. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  207. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +55 -5
  208. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  209. package/fesm2022/sdcorejs-angular-forms-input.mjs +53 -6
  210. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  211. package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
  212. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  213. package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
  214. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  215. package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
  216. package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
  217. package/fesm2022/sdcorejs-angular-forms-select.mjs +86 -32
  218. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  219. package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
  220. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  221. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
  222. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  223. package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
  224. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  225. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  226. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  227. package/fesm2022/sdcorejs-angular-i18n.mjs +1745 -22
  228. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  229. package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
  230. package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
  231. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs +478 -0
  232. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map +1 -0
  233. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs +214 -0
  234. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map +1 -0
  235. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs +277 -0
  236. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map +1 -0
  237. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs +1556 -0
  238. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs.map +1 -0
  239. package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
  240. package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
  241. package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
  242. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  243. package/fesm2022/sdcorejs-angular-modules-layout.mjs +2053 -35
  244. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  245. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
  246. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
  247. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
  248. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
  249. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs +51 -0
  250. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs.map +1 -0
  251. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs +130 -0
  252. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs.map +1 -0
  253. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs +131 -0
  254. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs.map +1 -0
  255. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs +99 -0
  256. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs.map +1 -0
  257. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs +460 -0
  258. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs.map +1 -0
  259. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs +118 -0
  260. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs.map +1 -0
  261. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
  262. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
  263. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs +66 -0
  264. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs.map +1 -0
  265. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs +148 -0
  266. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs.map +1 -0
  267. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs +172 -0
  268. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs.map +1 -0
  269. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs +467 -0
  270. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs.map +1 -0
  271. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs +90 -0
  272. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs.map +1 -0
  273. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs +514 -0
  274. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs.map +1 -0
  275. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs +61 -0
  276. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs.map +1 -0
  277. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs +170 -0
  278. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs.map +1 -0
  279. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +87 -0
  280. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +1 -0
  281. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +232 -0
  282. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +1 -0
  283. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +70 -0
  284. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +1 -0
  285. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs +100 -0
  286. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs.map +1 -0
  287. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs +522 -0
  288. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs.map +1 -0
  289. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs +164 -0
  290. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs.map +1 -0
  291. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs +629 -0
  292. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs.map +1 -0
  293. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs +71 -0
  294. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs.map +1 -0
  295. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs +115 -0
  296. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs.map +1 -0
  297. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs +118 -0
  298. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs.map +1 -0
  299. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs +1069 -0
  300. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs.map +1 -0
  301. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
  302. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
  303. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
  304. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
  305. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
  306. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
  307. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs +48 -0
  308. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs.map +1 -0
  309. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs +295 -0
  310. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs.map +1 -0
  311. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs +74 -0
  312. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs.map +1 -0
  313. package/fesm2022/sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs +165 -0
  314. package/fesm2022/sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs.map +1 -0
  315. package/fesm2022/sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs +74 -0
  316. package/fesm2022/sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs.map +1 -0
  317. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs +50 -0
  318. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs.map +1 -0
  319. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs +66 -0
  320. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs.map +1 -0
  321. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs +99 -0
  322. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs.map +1 -0
  323. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs +45 -0
  324. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs.map +1 -0
  325. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs +43 -0
  326. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs.map +1 -0
  327. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs +406 -0
  328. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs.map +1 -0
  329. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs +317 -0
  330. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs.map +1 -0
  331. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs +132 -0
  332. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs.map +1 -0
  333. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs +143 -0
  334. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs.map +1 -0
  335. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs +100 -0
  336. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs.map +1 -0
  337. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs +357 -0
  338. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs.map +1 -0
  339. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs +128 -0
  340. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs.map +1 -0
  341. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
  342. package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
  343. package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
  344. package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
  345. package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
  346. package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
  347. package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
  348. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  349. package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
  350. package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
  351. package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
  352. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  353. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
  354. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  355. package/fesm2022/sdcorejs-angular-services.mjs +1 -0
  356. package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
  357. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
  358. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
  359. package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
  360. package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
  361. package/forms/autocomplete/src/autocomplete.component.d.ts +5 -0
  362. package/forms/chip/src/chip.component.d.ts +135 -19
  363. package/forms/chip/src/index.d.ts +0 -1
  364. package/forms/chip-calendar/src/chip-calendar-header.component.d.ts +17 -0
  365. package/forms/chip-calendar/src/chip-calendar.component.d.ts +147 -19
  366. package/forms/date/src/date.component.d.ts +23 -2
  367. package/forms/date-range/src/date-range.component.d.ts +24 -2
  368. package/forms/datetime/src/datetime-time-zone.adapter.d.ts +15 -0
  369. package/forms/directives/index.d.ts +1 -0
  370. package/forms/directives/src/search-field.component.d.ts +45 -0
  371. package/forms/input/src/input.component.d.ts +23 -2
  372. package/forms/input-number/src/input-number.component.d.ts +23 -2
  373. package/forms/models/index.d.ts +1 -0
  374. package/forms/models/src/sd-calendar-day.d.ts +22 -0
  375. package/forms/models/src/sd-model-facing-control.d.ts +3 -1
  376. package/forms/models/src/sd-strict-date-adapter.d.ts +3 -0
  377. package/forms/models/src/sd-temporal-transform.d.ts +7 -0
  378. package/forms/select/src/select.component.d.ts +33 -4
  379. package/i18n/src/en.d.ts +344 -2
  380. package/modules/generic/index.d.ts +4 -0
  381. package/modules/generic/src/components/configuration-form/generic-configuration-form.component.d.ts +33 -0
  382. package/modules/generic/src/components/configuration-general/generic-configuration-general.component.d.ts +28 -0
  383. package/modules/generic/src/components/configuration-import/generic-configuration-import.component.d.ts +27 -0
  384. package/modules/generic/src/components/configuration-list/generic-configuration-list.component.d.ts +39 -0
  385. package/modules/generic/src/components/import-dialog/generic-import-dialog.component.d.ts +15 -0
  386. package/modules/generic/src/components/property-identity/generic-property-identity.component.d.ts +15 -0
  387. package/modules/generic/src/core/generic-columns.d.ts +19 -0
  388. package/modules/generic/src/core/generic-defaults.d.ts +14 -0
  389. package/modules/generic/src/core/generic-form.d.ts +17 -0
  390. package/modules/generic/src/core/generic-import.d.ts +49 -0
  391. package/modules/generic/src/core/generic-merge.d.ts +21 -0
  392. package/modules/generic/src/core/generic-permission.d.ts +3 -0
  393. package/modules/generic/src/core/generic-property-icon.d.ts +8 -0
  394. package/modules/generic/src/core/generic-search.d.ts +19 -0
  395. package/modules/generic/src/core/generic-title.d.ts +11 -0
  396. package/modules/generic/src/core/generic-validate.d.ts +8 -0
  397. package/modules/generic/src/core/index.d.ts +10 -0
  398. package/modules/generic/src/models/generic-adapter.model.d.ts +49 -0
  399. package/modules/generic/src/models/generic-entity.model.d.ts +71 -0
  400. package/modules/generic/src/models/generic-issue.model.d.ts +29 -0
  401. package/modules/generic/src/models/generic-schema.model.d.ts +133 -0
  402. package/modules/generic/src/models/index.d.ts +4 -0
  403. package/modules/generic/src/pages/configuration/generic-configuration.page.d.ts +26 -0
  404. package/modules/generic/src/pages/form/generic-form-host.page.d.ts +42 -0
  405. package/modules/generic/src/pages/list/generic-list.page.d.ts +39 -0
  406. package/modules/generic/src/registry/generic-registry.d.ts +35 -0
  407. package/modules/generic/src/registry/index.d.ts +2 -0
  408. package/modules/generic/src/registry/provide-sd-generic.d.ts +15 -0
  409. package/modules/generic/src/routes/generic-route.guards.d.ts +24 -0
  410. package/modules/generic/src/routes/sd-generic.routes.d.ts +10 -0
  411. package/modules/generic/src/services/generic-configuration-store.d.ts +13 -0
  412. package/modules/generic/src/services/generic-data.service.d.ts +34 -0
  413. package/modules/generic/src/services/generic-import.service.d.ts +21 -0
  414. package/modules/generic/src/services/generic-permission.service.d.ts +26 -0
  415. package/modules/generic/src/services/generic-relation-catalog.d.ts +14 -0
  416. package/modules/generic/src/services/generic-schema.service.d.ts +28 -0
  417. package/modules/generic/src/services/index.d.ts +6 -0
  418. package/modules/icon/src/data-type-icon.d.ts +30 -0
  419. package/modules/icon/src/icon.model.d.ts +2 -1
  420. package/modules/icon/src/index.d.ts +1 -0
  421. package/modules/index.d.ts +1 -0
  422. package/modules/layout/components/index.d.ts +5 -0
  423. package/modules/layout/components/layout-main/layout-main.component.d.ts +2 -1
  424. package/modules/layout/components/page/page-form-leave.guard.d.ts +9 -0
  425. package/modules/layout/components/page/page.component.d.ts +38 -2
  426. package/modules/layout/components/page-list/page-list.component.d.ts +42 -0
  427. package/modules/layout/components/shared/context-switcher/context-switcher.component.d.ts +71 -0
  428. package/modules/layout/components/shared/user-menu/user-menu.component.d.ts +1 -1
  429. package/modules/layout/components/sidebar-mobile-v4/main.component.d.ts +95 -0
  430. package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +1 -0
  431. package/modules/layout/components/sidebar-v3/main.component.d.ts +3 -0
  432. package/modules/layout/components/sidebar-v4/main.component.d.ts +69 -0
  433. package/modules/layout/components/sidebar-v4/menu-tree/sidebar-v4-menu-tree.component.d.ts +174 -0
  434. package/modules/layout/configurations/layout.configuration.d.ts +46 -1
  435. package/modules/layout/services/context/context.model.d.ts +16 -0
  436. package/modules/layout/services/context/context.runtime.d.ts +14 -0
  437. package/modules/layout/services/context/context.service.d.ts +54 -0
  438. package/modules/layout/services/context/index.d.ts +3 -0
  439. package/modules/layout/services/index.d.ts +1 -0
  440. package/modules/layout/services/menu/menu.model.d.ts +33 -0
  441. package/modules/layout/services/menu/menu.utils.d.ts +32 -1
  442. package/modules/layout/services/storage/storage.service.d.ts +20 -1
  443. package/modules/pattern/README.md +76 -0
  444. package/modules/pattern/configurations/pattern.configuration.d.ts +30 -0
  445. package/modules/pattern/configurations/provide-sd-patterns.d.ts +19 -0
  446. package/modules/pattern/core/mock-api/mock-api.interceptor.d.ts +8 -0
  447. package/modules/pattern/core/mock-api/mock-api.model.d.ts +62 -0
  448. package/modules/pattern/core/mock-api/mock-api.state.d.ts +36 -0
  449. package/modules/pattern/core/mock-api/mock-backend.d.ts +18 -0
  450. package/modules/pattern/core/mock-api/mock-backend.factory.d.ts +3 -0
  451. package/modules/pattern/core/mock-api/prng.d.ts +4 -0
  452. package/modules/pattern/core/mock-api/resources/approval.resource.d.ts +14 -0
  453. package/modules/pattern/core/mock-api/resources/category.resource.d.ts +9 -0
  454. package/modules/pattern/core/mock-api/resources/customer.resource.d.ts +22 -0
  455. package/modules/pattern/core/mock-api/resources/index.d.ts +3 -0
  456. package/modules/pattern/core/mock-api/resources/names.d.ts +5 -0
  457. package/modules/pattern/core/mock-api/resources/order.resource.d.ts +44 -0
  458. package/modules/pattern/core/mock-api/resources/partner.resource.d.ts +16 -0
  459. package/modules/pattern/core/mock-api/resources/product.resource.d.ts +13 -0
  460. package/modules/pattern/core/mock-api/resources/settings.resource.d.ts +18 -0
  461. package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +22 -0
  462. package/modules/pattern/core/pattern-shell/index/index.component.d.ts +9 -0
  463. package/modules/pattern/core/pattern-shell/settings/pattern-settings.store.d.ts +57 -0
  464. package/modules/pattern/core/pattern-shell/settings/settings-button.component.d.ts +44 -0
  465. package/modules/pattern/core/pattern-shell/shell/pattern-source-viewer.d.ts +8 -0
  466. package/modules/pattern/core/pattern-shell/shell/shell.component.d.ts +13 -0
  467. package/modules/pattern/core/pattern-shell/source/pattern-source.generated.d.ts +1 -0
  468. package/modules/pattern/core/pattern-shell/source/source-drawer.component.d.ts +27 -0
  469. package/modules/pattern/core/pattern-shell/toolbar/toolbar.component.d.ts +24 -0
  470. package/modules/pattern/core/permission/pattern-permission.d.ts +15 -0
  471. package/modules/pattern/core/permission/pattern-role.store.d.ts +13 -0
  472. package/modules/pattern/core/session-state.d.ts +4 -0
  473. package/modules/pattern/docs/detail.md +237 -0
  474. package/modules/pattern/docs/drawer.md +484 -0
  475. package/modules/pattern/docs/flow.md +631 -0
  476. package/modules/pattern/docs/form.md +518 -0
  477. package/modules/pattern/docs/header-actions.md +342 -0
  478. package/modules/pattern/docs/list.md +247 -0
  479. package/modules/pattern/docs/relation.md +180 -0
  480. package/modules/pattern/docs/select.md +206 -0
  481. package/modules/pattern/docs/split.md +350 -0
  482. package/modules/pattern/docs/states.md +168 -0
  483. package/modules/pattern/features/approval/entity.resolver.d.ts +4 -0
  484. package/modules/pattern/features/approval/entity.resolver.ts +21 -0
  485. package/modules/pattern/features/approval/pages/detail/detail.component.d.ts +13 -0
  486. package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
  487. package/modules/pattern/features/approval/pages/list/approval-inbox.d.ts +7 -0
  488. package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
  489. package/modules/pattern/features/approval/pages/list/list.component.d.ts +26 -0
  490. package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
  491. package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
  492. package/modules/pattern/features/approval/routes.d.ts +3 -0
  493. package/modules/pattern/features/approval/routes.ts +30 -0
  494. package/modules/pattern/features/approval/services/approval.model.d.ts +37 -0
  495. package/modules/pattern/features/approval/services/approval.model.ts +38 -0
  496. package/modules/pattern/features/approval/services/approval.service.d.ts +12 -0
  497. package/modules/pattern/features/approval/services/approval.service.ts +23 -0
  498. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.d.ts +23 -0
  499. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -0
  500. package/modules/pattern/features/category/components/general-information-form/general-information-form.component.d.ts +20 -0
  501. package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
  502. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.d.ts +23 -0
  503. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
  504. package/modules/pattern/features/category/entity.resolver.d.ts +6 -0
  505. package/modules/pattern/features/category/entity.resolver.ts +27 -0
  506. package/modules/pattern/features/category/pages/list/list.component.d.ts +17 -0
  507. package/modules/pattern/features/category/pages/list/list.component.html +20 -0
  508. package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
  509. package/modules/pattern/features/category/routes.d.ts +3 -0
  510. package/modules/pattern/features/category/routes.ts +42 -0
  511. package/modules/pattern/features/category/services/category.model.d.ts +34 -0
  512. package/modules/pattern/features/category/services/category.model.ts +39 -0
  513. package/modules/pattern/features/category/services/category.service.d.ts +17 -0
  514. package/modules/pattern/features/category/services/category.service.ts +36 -0
  515. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.d.ts +24 -0
  516. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
  517. package/modules/pattern/features/customer/components/customer-select/customer-select.component.d.ts +20 -0
  518. package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
  519. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.d.ts +20 -0
  520. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
  521. package/modules/pattern/features/customer/components/debts-view/debts-view.component.d.ts +11 -0
  522. package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
  523. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.d.ts +20 -0
  524. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
  525. package/modules/pattern/features/customer/components/documents-view/documents-view.component.d.ts +14 -0
  526. package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
  527. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.d.ts +33 -0
  528. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
  529. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.d.ts +9 -0
  530. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
  531. package/modules/pattern/features/customer/components/orders-view/orders-view.component.d.ts +11 -0
  532. package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
  533. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.d.ts +22 -0
  534. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
  535. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.d.ts +24 -0
  536. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
  537. package/modules/pattern/features/customer/entity.resolver.d.ts +4 -0
  538. package/modules/pattern/features/customer/entity.resolver.ts +21 -0
  539. package/modules/pattern/features/customer/pages/list/list.component.d.ts +19 -0
  540. package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
  541. package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
  542. package/modules/pattern/features/customer/pages/profile/profile.component.d.ts +31 -0
  543. package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
  544. package/modules/pattern/features/customer/pipes/customer-detail.pipe.d.ts +14 -0
  545. package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
  546. package/modules/pattern/features/customer/routes.d.ts +6 -0
  547. package/modules/pattern/features/customer/routes.ts +59 -0
  548. package/modules/pattern/features/customer/services/customer.model.d.ts +77 -0
  549. package/modules/pattern/features/customer/services/customer.model.ts +87 -0
  550. package/modules/pattern/features/customer/services/customer.service.d.ts +24 -0
  551. package/modules/pattern/features/customer/services/customer.service.ts +79 -0
  552. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.d.ts +21 -0
  553. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
  554. package/modules/pattern/features/import/components/preview-view/preview-view.component.d.ts +10 -0
  555. package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
  556. package/modules/pattern/features/import/pages/flow/flow.component.d.ts +43 -0
  557. package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
  558. package/modules/pattern/features/import/routes.d.ts +2 -0
  559. package/modules/pattern/features/import/routes.ts +19 -0
  560. package/modules/pattern/features/import/services/import.model.d.ts +38 -0
  561. package/modules/pattern/features/import/services/import.model.ts +82 -0
  562. package/modules/pattern/features/import/services/import.service.d.ts +15 -0
  563. package/modules/pattern/features/import/services/import.service.ts +18 -0
  564. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +9 -0
  565. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
  566. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.d.ts +22 -0
  567. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
  568. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.d.ts +30 -0
  569. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
  570. package/modules/pattern/features/order/components/lines-form/lines-form.component.d.ts +33 -0
  571. package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
  572. package/modules/pattern/features/order/components/lines-view/lines-view.component.d.ts +12 -0
  573. package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
  574. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.d.ts +25 -0
  575. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
  576. package/modules/pattern/features/order/entity.resolver.d.ts +9 -0
  577. package/modules/pattern/features/order/entity.resolver.ts +37 -0
  578. package/modules/pattern/features/order/pages/create/create.component.d.ts +16 -0
  579. package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
  580. package/modules/pattern/features/order/pages/detail/detail.component.d.ts +26 -0
  581. package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
  582. package/modules/pattern/features/order/pages/list/list.component.d.ts +29 -0
  583. package/modules/pattern/features/order/pages/list/list.component.html +38 -0
  584. package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
  585. package/modules/pattern/features/order/pages/update/update.component.d.ts +20 -0
  586. package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
  587. package/modules/pattern/features/order/routes.d.ts +7 -0
  588. package/modules/pattern/features/order/routes.ts +54 -0
  589. package/modules/pattern/features/order/services/order.model.d.ts +106 -0
  590. package/modules/pattern/features/order/services/order.model.ts +109 -0
  591. package/modules/pattern/features/order/services/order.service.d.ts +25 -0
  592. package/modules/pattern/features/order/services/order.service.ts +63 -0
  593. package/modules/pattern/features/partner/pages/create/create.component.d.ts +41 -0
  594. package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
  595. package/modules/pattern/features/partner/routes.d.ts +2 -0
  596. package/modules/pattern/features/partner/routes.ts +20 -0
  597. package/modules/pattern/features/partner/services/partner.model.d.ts +30 -0
  598. package/modules/pattern/features/partner/services/partner.model.ts +30 -0
  599. package/modules/pattern/features/partner/services/partner.service.d.ts +13 -0
  600. package/modules/pattern/features/partner/services/partner.service.ts +17 -0
  601. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.d.ts +23 -0
  602. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
  603. package/modules/pattern/features/product/components/product-select/product-select.component.d.ts +20 -0
  604. package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
  605. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.d.ts +22 -0
  606. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
  607. package/modules/pattern/features/product/entity.resolver.d.ts +4 -0
  608. package/modules/pattern/features/product/entity.resolver.ts +21 -0
  609. package/modules/pattern/features/product/pages/create/create.component.d.ts +15 -0
  610. package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
  611. package/modules/pattern/features/product/pages/detail/detail.component.d.ts +10 -0
  612. package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
  613. package/modules/pattern/features/product/pages/list/list.component.d.ts +15 -0
  614. package/modules/pattern/features/product/pages/list/list.component.html +30 -0
  615. package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
  616. package/modules/pattern/features/product/pages/update/update.component.d.ts +16 -0
  617. package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
  618. package/modules/pattern/features/product/pipes/product-detail.pipe.d.ts +14 -0
  619. package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
  620. package/modules/pattern/features/product/routes.d.ts +3 -0
  621. package/modules/pattern/features/product/routes.ts +48 -0
  622. package/modules/pattern/features/product/services/product.model.d.ts +34 -0
  623. package/modules/pattern/features/product/services/product.model.ts +38 -0
  624. package/modules/pattern/features/product/services/product.service.d.ts +17 -0
  625. package/modules/pattern/features/product/services/product.service.ts +48 -0
  626. package/modules/pattern/features/settings/pages/update/update.component.d.ts +26 -0
  627. package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
  628. package/modules/pattern/features/settings/routes.d.ts +3 -0
  629. package/modules/pattern/features/settings/routes.ts +24 -0
  630. package/modules/pattern/features/settings/services/settings.model.d.ts +17 -0
  631. package/modules/pattern/features/settings/services/settings.model.ts +18 -0
  632. package/modules/pattern/features/settings/services/settings.service.d.ts +10 -0
  633. package/modules/pattern/features/settings/services/settings.service.ts +15 -0
  634. package/modules/pattern/features/settings/settings.resolver.d.ts +4 -0
  635. package/modules/pattern/features/settings/settings.resolver.ts +8 -0
  636. package/modules/pattern/index.d.ts +3 -0
  637. package/modules/pattern/routes.d.ts +6 -0
  638. package/modules/pattern/services/base-api.service.d.ts +16 -0
  639. package/modules/pattern/utils/api-error.d.ts +4 -0
  640. package/modules/pattern/utils/focus-first-invalid.d.ts +5 -0
  641. package/modules/pattern/utils/form-api-errors.d.ts +16 -0
  642. package/modules/pattern/utils/resource-url.d.ts +2 -0
  643. package/package.json +49 -12
  644. package/pipes/src/format-date.pipe.d.ts +1 -0
  645. package/pipes/src/format-datetime.pipe.d.ts +1 -0
  646. package/services/date-time/index.d.ts +1 -0
  647. package/services/date-time/src/date-time.service.d.ts +54 -0
  648. package/services/index.d.ts +1 -0
  649. package/services/storage/src/storage.model.d.ts +8 -1
  650. package/services/unsaved-changes/src/unsaved-changes.adapters.d.ts +9 -0
  651. package/services/unsaved-changes/src/unsaved-changes.model.d.ts +2 -0
  652. package/utilities/read-state/src/read-state.d.ts +2 -0
  653. package/utilities/theme/src/theme-tokens.d.ts +1 -1
  654. package/components/editor/src/plugins/image-upload/image-upload.plugin.d.ts +0 -22
  655. package/components/editor/src/plugins/image-upload/utils/batch.utils.d.ts +0 -14
  656. package/components/editor/src/plugins/image-upload/utils/index.d.ts +0 -3
  657. package/forms/chip/src/pipes/index.d.ts +0 -1
  658. package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
  659. package/forms/chip-calendar/src/pipes/index.d.ts +0 -1
  660. package/forms/chip-calendar/src/pipes/removable-chip.pipe.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-forms-datetime.mjs","sources":["../../../projects/sdcorejs-angular/forms/datetime/src/datetime.component.ts","../../../projects/sdcorejs-angular/forms/datetime/src/datetime.component.html","../../../projects/sdcorejs-angular/forms/datetime/sdcorejs-angular-forms-datetime.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n input,\n model,\n computed,\n OnDestroy,\n OnInit,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n contentChild,\n} from '@angular/core';\nimport { AbstractControl, FormGroup, FormsModule, NgForm, ReactiveFormsModule, ValidatorFn } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport { FloatLabelType, MatFormFieldAppearance, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { SdView } from '@sdcorejs/angular/components/view';\nimport { SdViewDefDirective } from '@sdcorejs/angular/forms/directives';\nimport { SdLabel } from '@sdcorejs/angular/forms/label';\nimport {\n SD_FORM_CONFIGURATION,\n SdFormControl,\n SdInlineErrorValidator,\n sdFormControlState,\n SdTemporalValueTransform,\n SdViewed,\n SdViewedInput,\n sdParseTransformedTemporal,\n sdSerializeTemporalValue,\n sdViewedInline,\n sdViewedTransform,\n ɵsdFormControlConnector,\n ɵsdModelFacingControl,\n ɵsdTimerScope,\n} from '@sdcorejs/angular/forms/models';\nimport type { SdLabelPlacement } from '@sdcorejs/angular/forms/models';\nimport { sdSerializeDataValue, sdIsEmpty } from '@sdcorejs/angular/utilities/data-state';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { Size } from '@sdcorejs/utils/models';\nimport { DateUtilities } from '@sdcorejs/utils/fns';\nimport { BrowserUtilities, Utilities } from '@sdcorejs/utils/fns';\nimport { isValid as isValidDate, parse as parseDate } from 'date-fns';\nimport { Subscription } from 'rxjs';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\nimport {\n SD_DATE_FORMATS,\n SD_NATIVE_DATE_FORMATS,\n SdDateAdapter,\n SdDatetimePicker as SdMaterialDatetimePicker,\n SdDatetimePickerActions,\n SdDatetimePickerApply,\n SdDatetimePickerCancel,\n SdDatetimePickerNow,\n SdNativeDateAdapter,\n} from '@sdcorejs/angular-material-datetime';\n\ntype SdDatetimeModelValue = string | number | Date | undefined | null;\n\n/**\n * Thử parse `value` theo lần lượt nhiều format; trả về Date đầu tiên hợp lệ.\n * date-fns không hỗ trợ multi-format parse như moment(value, [fmt1, fmt2], true).\n */\nfunction parseFirstValid(value: string, formats: string[]): Date | null {\n for (const fmt of formats) {\n const d = parseDate(value, fmt, new Date());\n if (isValidDate(d)) return d;\n }\n return null;\n}\n\n/**\n * why: `DateUtilities.isDate` nhận Date, timestamp, canonical `yyyy/MM/dd HH:mm[:ss]` và ISO, nhưng\n * KHÔNG nhận chuỗi RFC-1123 của `toUTCString()`. Không có nhánh dự phòng này thì\n * `<sd-datetime transform=\"UTCString\">` không đọc lại được chính output của nó.\n */\nfunction coerceDatetimeSource(value: SdDatetimeModelValue): SdDatetimeModelValue {\n if (DateUtilities.isDate(value)) return value;\n return sdParseTransformedTemporal(value) ?? value;\n}\n\nfunction datetimeModelToControl(value: SdDatetimeModelValue, showSeconds: boolean): string | null {\n const source = coerceDatetimeSource(value);\n if (!DateUtilities.isDate(source)) return null;\n const normalized = DateUtilities.toFormat(source, showSeconds ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm');\n if (!normalized) return null;\n return DateUtilities.toFormat(normalized, showSeconds ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm') || null;\n}\n\nfunction datetimeControlToStored(value: string | null, showSeconds: boolean): string | null {\n if (!value) return null;\n const parsed = parseFirstValid(value, ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm']);\n if (!parsed) return null;\n return DateUtilities.toFormat(parsed, showSeconds ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm:00') || null;\n}\n\nfunction normalizeDatetimeModel(value: SdDatetimeModelValue, showSeconds: boolean): string | null {\n const source = coerceDatetimeSource(value);\n if (!DateUtilities.isDate(source)) return null;\n return DateUtilities.toFormat(source, showSeconds ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm:00') || null;\n}\n\n/** Parses the committed display string back to the local instant it denotes. */\nfunction datetimeControlToDate(value: string | null): Date | null {\n if (!value) return null;\n return parseFirstValid(value, ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm']);\n}\n\n@Component({\n selector: 'sd-datetime',\n templateUrl: './datetime.component.html',\n styleUrl: './datetime.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.sd-bare]': 'isInline()',\n '[class.sd-viewed]': 'isViewed() || isInline()',\n '[class.sd-has-label]': '!!label()',\n '[class.sd-label-top]': \"labelPlacement() === 'top'\",\n },\n providers: [\n Platform,\n SdNativeDateAdapter,\n { provide: MAT_DATE_LOCALE, useValue: 'en-US' },\n { provide: DateAdapter, useExisting: SdNativeDateAdapter },\n { provide: SdDateAdapter, useExisting: SdNativeDateAdapter },\n { provide: MAT_DATE_FORMATS, useValue: SD_NATIVE_DATE_FORMATS },\n { provide: SD_DATE_FORMATS, useValue: SD_NATIVE_DATE_FORMATS },\n ],\n standalone: true,\n imports: [\n SdIcon,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatInputModule,\n MatTooltipModule,\n MatFormFieldModule,\n SdLabel,\n SdView,\n SdTranslatePipe,\n SdMaterialDatetimePicker,\n SdDatetimePickerActions,\n SdDatetimePickerApply,\n SdDatetimePickerCancel,\n SdDatetimePickerNow,\n ],\n})\nexport class SdDatetime implements OnDestroy, OnInit {\n id = `I${Utilities.generateUuid()}`;\n /** why: id ổn định của <mat-error> để control trỏ `aria-describedby` sang — thông báo lỗi\n * phải đọc được từ chính control, không chỉ hiện ra màn hình. */\n readonly errorId = `${this.id}-error`;\n /** id của nhãn/helper khi `labelPlacement='top'`. */\n readonly labelId = `${this.id}-label`;\n readonly hintId = `${this.id}-hint`;\n\n // ==========================================\n // 1. SIGNAL QUERIES\n // ==========================================\n inputRef = viewChild<ElementRef<HTMLInputElement>>('input');\n private readonly dateTimePicker = viewChild<SdMaterialDatetimePicker<Date>>(SdMaterialDatetimePicker);\n\n sdLabelTemplate = contentChild<TemplateRef<any>>('sdLabel');\n sdValueTemplate = contentChild<TemplateRef<any>>('sdValue');\n sdViewDef = contentChild(SdViewDefDirective);\n\n // ==========================================\n // 2. INJECTS\n // ==========================================\n private ref = inject(ChangeDetectorRef);\n private elementRef = inject(ElementRef);\n private formConfig = inject(SD_FORM_CONFIGURATION, { optional: true });\n readonly #i18n = inject(I18nService);\n // why: focus + mở picker hoãn 100ms; handle phải bị clear khi destroy, nếu không open()\n // dựng overlay mồ côi trên view đã tháo.\n readonly #timers = ɵsdTimerScope();\n\n // ==========================================\n // 3. SIGNAL INPUTS & MODEL\n // ==========================================\n autoIdInput = input<string | undefined | null>(undefined, { alias: 'autoId' });\n autoId = computed(() => (this.autoIdInput() ? `forms-datetime-${this.autoIdInput()}` : undefined));\n\n readonly #state = sdFormControlState(computed(() => this.formControl));\n readonly dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));\n readonly dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'));\n readonly dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));\n readonly dataValue = computed(() => sdSerializeDataValue(this.#state().value));\n\n readonly dataRequired = computed(() => (this.required() ? 'true' : 'false'));\n readonly dataErrorMessage = computed(() => {\n void this.#state();\n const msg = this.errorMessage();\n return msg && msg.length > 0 ? msg : null;\n });\n\n name = input<string>(Utilities.generateUuid());\n\n size = input<Size>('md');\n // Ghi (TransformT): any (để không bị lỗi typing khi cha truyền vào)\n form = input<FormGroup | undefined, any>(undefined, {\n transform: (val: any): FormGroup | undefined => {\n if (!val) return undefined;\n // Nếu cha truyền vào NgForm (template-driven) -> Bóc lấy FormGroup bên trong\n if (val instanceof NgForm) return val.form;\n // Nếu cha truyền sẵn FormGroup (reactive) -> Lấy luôn\n if (val instanceof FormGroup) return val;\n // Fallback an toàn phòng trường hợp cha truyền 1 object chứa form\n if (val?.form instanceof FormGroup) return val.form;\n return undefined;\n },\n });\n label = input<string | undefined>();\n helperText = input<string | undefined>();\n placeholder = input<string | undefined>();\n\n hideInlineError = input(false, { transform: booleanAttribute });\n required = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n /** Display mode: `false` edit · `true` static view · `'inline'` view + click-to-edit (datetime overlay). */\n viewed = input<SdViewed, SdViewedInput>(false, { transform: sdViewedTransform });\n /** Hiển thị thêm cột giây trong picker. Mặc định: chỉ HH:MM. */\n showSeconds = input(false, { transform: booleanAttribute });\n\n /** Whether to show the value-gated clear button in edit and inline modes. */\n clearable = input(false, { transform: booleanAttribute });\n\n // Tri-state `viewed` — shared primitive. In `'inline'` the datetime editor is always mounted\n // (chrome hidden via CSS); the sd-view text face opens the overlay on click.\n readonly #viewedState = sdViewedInline(this.viewed, () => this.open(), this.disabled);\n /** `true` when `viewed === 'inline'`. */\n readonly isInline = this.#viewedState.isInline;\n /** `true` when `viewed === true` (static view, no editor). */\n readonly isViewed = this.#viewedState.isViewed;\n /** Open the datetime overlay from the inline text face. No-op unless `viewed='inline'`. */\n enterInlineEdit = (): void => this.#viewedState.enterInlineEdit();\n /** View display template: `sdViewDef` overrides the projected `#sdValue` (unified). */\n readonly viewTemplate = computed<TemplateRef<any> | undefined>(() => this.sdViewDef()?.templateRef ?? this.sdValueTemplate());\n\n inlineError = input<string | undefined>();\n\n /**\n * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.\n */\n readonly errorMessage = computed<string | undefined>(() => {\n void this.#state();\n const errors = this.formControl.errors;\n if (!errors) return undefined;\n\n if (errors['required']) return this.#i18n.t('core.form.datetime.required');\n if (errors['matDatepickerMin']) {\n const d = this.resolvedMin();\n return this.#i18n.t('core.form.datetime.min-date', { date: d ? new Date(d).toLocaleDateString(this.#i18n.locale()) : '' });\n }\n if (errors['matDatepickerMax']) {\n const d = this.resolvedMax();\n return this.#i18n.t('core.form.datetime.max-date', { date: d ? new Date(d).toLocaleDateString(this.#i18n.locale()) : '' });\n }\n if (errors['date']) return errors['date'] as string;\n if (errors['customValidator']) return errors['customValidator'] as string;\n if (errors['inlineError']) return this.inlineError();\n return undefined;\n });\n\n hyperlink = input<string | null | undefined>();\n\n appearanceInput = input<MatFormFieldAppearance | undefined>(undefined, { alias: 'appearance' });\n appearance = computed(() => this.appearanceInput() ?? this.formConfig?.appearance ?? 'outline');\n\n floatLabel = input<FloatLabelType>('auto');\n /** `'float'` (mặc định) hoặc `'top'` — nhãn `<label for>` tĩnh phía trên, helper text dưới control. */\n labelPlacement = input<SdLabelPlacement>('float');\n\n // Min/max — chấp nhận 'TODAY', Date, hoặc string ISO\n minInput = input<any>(undefined, { alias: 'min' });\n minDateInput = input<any>(undefined, { alias: 'minDate' });\n resolvedMin = computed(() => this.#parseDateBoundary(this.minInput() ?? this.minDateInput()));\n\n maxInput = input<any>(undefined, { alias: 'max' });\n maxDateInput = input<any>(undefined, { alias: 'maxDate' });\n resolvedMax = computed(() => this.#parseDateBoundary(this.maxInput() ?? this.maxDateInput()));\n\n /**\n * Output serialization strategy for the committed value. Affects `model` / `modelChange` /\n * `sdChange` and the registered form field only — the field keeps displaying\n * `dd/MM/yyyy HH:mm[:ss]` per `showSeconds`. Left unset, the canonical string is emitted.\n */\n transform = input<SdTemporalValueTransform | undefined>();\n\n valueModel = model<SdDatetimeModelValue>(undefined, { alias: 'model' });\n\n // viewed-mode: formControl.value là chuỗi display (dd/MM/yyyy HH:mm) nên DatePipe không parse được.\n // Lấy thẳng từ valueModel (nguồn dữ liệu thật) rồi convert sang Date cho DatePipe.\n viewedDate = computed<Date | null>(() => {\n const v = this.valueModel();\n if (v == null || !DateUtilities.isDate(v)) return null;\n const iso = DateUtilities.toFormat(v as any, 'yyyy/MM/dd HH:mm:ss');\n if (!iso) return null;\n const d = parseDate(iso, 'yyyy/MM/dd HH:mm:ss', new Date());\n return isValidDate(d) ? d : null;\n });\n\n // ==========================================\n // 4. SIGNAL OUTPUTS\n // ==========================================\n sdChange = output<any>();\n sdFocus = output<void>();\n\n // ==========================================\n // 5. INTERNAL STATE\n // ==========================================\n isMobileOrTablet = BrowserUtilities.isMobile();\n formControl = new SdFormControl();\n\n /** `true` khi text vừa nhập không phải datetime dd/MM/yyyy HH:mm(:ss) hợp lệ. */\n readonly #invalidFormat = signal(false);\n\n /**\n * why: lỗi format PHẢI đi qua pipeline validator. Trước đây nó bị nhét thẳng vào control bằng\n * `setErrors()` — tức là nằm NGOÀI pipeline — nên bất kỳ `updateValueAndValidity` nào chạy sau\n * (effect validators của connector, hay chính `setValue`) đều xoá sạch lỗi mà không ai hay biết.\n * Nhánh xoá lỗi cũ còn sai thêm một lần nữa: `setErrors({ ...errors, date: null })` để lại một\n * object errors KHÔNG rỗng, mà `AbstractControl._calculateStatus()` coi mọi object errors non-null\n * là INVALID → một datetime hoàn toàn hợp lệ vẫn bị đánh dấu invalid (và phát `statusChanges`\n * INVALID ra cho form cha) cho tới khi `updateValueAndValidity` kế tiếp che đi. Trả `null` từ\n * validator thì key `date` biến mất hẳn, không còn `date: null` treo lại.\n * Validator giữ identity ổn định (connector chỉ gắn 1 lần) và đọc cờ qua `untracked` để không\n * tự biến mình thành dependency reactive khi bị gọi trong effect/computed.\n */\n readonly #datetimeFormatValidator: ValidatorFn = () =>\n untracked(() => (this.#invalidFormat() ? { date: this.#i18n.t('core.form.datetime.invalid-format') } : null));\n\n readonly #validators = computed<readonly ValidatorFn[]>(() =>\n this.inlineError() ? [this.#datetimeFormatValidator, SdInlineErrorValidator] : [this.#datetimeFormatValidator]\n );\n\n /**\n * why: control gắn vào editor nên nó giữ CHUỖI HIỂN THỊ `dd/MM/yyyy HH:mm[:ss]` — không phải model.\n * Có `transform` thì consumer được hứa `form.get(name).value` bằng `model`, nên form phải nhận\n * control này. Không có transform thì `registered` trả null và form vẫn nhận control của editor.\n */\n readonly #modelFacing = ɵsdModelFacingControl<SdDatetimeModelValue>({\n active: computed(() => !!this.transform()),\n model: this.valueModel,\n writeModel: value => {\n this.valueModel.set(value);\n this.sdChange.emit(value);\n },\n source: computed<AbstractControl>(() => this.formControl),\n modelEquals: (left, right) => this.#modelsEqual(left, right),\n });\n /** Control registered in the parent form while a `transform` is active; holds the public model. */\n readonly modelControl = this.#modelFacing.control;\n\n /**\n * Serializes a committed datetime, applying the precision `showSeconds` already governs: seconds\n * are kept only when they are shown, and milliseconds are always dropped.\n */\n #serializeCommitted(display: string | null): SdDatetimeModelValue {\n const parsed = datetimeControlToDate(display);\n const transform = this.transform();\n if (!parsed || !transform) return display ? (datetimeControlToStored(display, this.showSeconds()) ?? this.valueModel()) : null;\n\n const seconds = this.showSeconds() ? parsed.getSeconds() : 0;\n const normalized = new Date(\n parsed.getFullYear(),\n parsed.getMonth(),\n parsed.getDate(),\n parsed.getHours(),\n parsed.getMinutes(),\n seconds,\n 0\n );\n return sdSerializeTemporalValue(normalized, transform) ?? this.valueModel();\n }\n\n /**\n * why: `normalizeDatetimeModel` gộp về canonical string, nên hai chuỗi transform khác nhau của\n * cùng một thời điểm so ra bằng nhau và `writeModel` bị bỏ qua — đổi `transform` lúc runtime rồi\n * commit lại sẽ không phát ra chuỗi mới. Khi có transform thì so nguyên văn.\n */\n #modelsEqual(left: SdDatetimeModelValue, right: SdDatetimeModelValue): boolean {\n if (this.transform()) return Object.is(left, right);\n return normalizeDatetimeModel(left, this.showSeconds()) === normalizeDatetimeModel(right, this.showSeconds());\n }\n\n readonly #formConnector = ɵsdFormControlConnector<SdDatetimeModelValue, string | null>({\n form: this.form,\n name: this.name,\n control: computed<AbstractControl<string | null>>(() => this.formControl),\n registeredControl: this.#modelFacing.registered,\n model: this.valueModel,\n writeModel: value => {\n this.valueModel.set(value);\n this.sdChange.emit(value);\n },\n modelToControl: value => datetimeModelToControl(value, this.showSeconds()),\n controlToModel: value => this.#serializeCommitted(value),\n modelEquals: (left, right) => this.#modelsEqual(left, right),\n validators: this.#validators,\n required: this.required,\n disabled: this.disabled,\n viewed: this.viewed,\n validationError: computed(() => this.errorMessage()),\n });\n isFocused = false;\n isValid?: boolean;\n\n /** State popup — true khi picker package đang mở. */\n pickerOpened = computed(() => this.dateTimePicker()?.opened() ?? false);\n\n #subscription = new Subscription();\n\n ngOnInit() {\n this.#subscription.add(\n this.formControl.sdChanges.subscribe(() => {\n this.ref.markForCheck();\n })\n );\n }\n\n ngOnDestroy() {\n this.#subscription.unsubscribe();\n }\n\n // ==========================================\n // 6. POPUP MANAGEMENT — package-backed Material datetime picker\n // ==========================================\n\n /** Mở popup chọn datetime, neo vào input. */\n open() {\n if (this.formControl.disabled || this.pickerOpened()) return;\n const picker = this.dateTimePicker();\n if (!picker) return;\n picker.setAnchor(this.inputRef()?.nativeElement ?? (this.elementRef.nativeElement as HTMLElement));\n // why: open() rebuilds the draft from committed state, so seed that state before opening.\n picker.setValue(this.#currentValueAsDate() ?? new Date());\n picker.open();\n this.ref.markForCheck();\n }\n\n /** Đóng popup (public — gọi từ template nếu cần). */\n close() {\n this.dateTimePicker()?.close();\n }\n\n onPickerConfirm(value: Date) {\n // why: chọn được datetime từ picker nghĩa là text sai định dạng đã bị thay thế — cờ phải tắt.\n // Cờ chỉ được reset trong `onConfirmInput`, nên trước đây gõ bậy rồi chọn từ lịch để lại lỗi\n // `date` VĨNH VIỄN: control invalid + hiện \"Sai định dạng\" trên một giá trị hoàn toàn hợp lệ.\n // Đây là regression MỚI của việc đưa lỗi vào pipeline validator — bản `setErrors` cũ tình cờ\n // bị `updateValueAndValidity` kế tiếp xoá hộ.\n this.#setDatetimeError(false);\n const display = DateUtilities.toFormat(value, this.showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm') || null;\n if (this.formControl.value !== display) {\n this.formControl.setValue(display);\n }\n }\n\n /** Lấy giá trị hiện tại dưới dạng native Date để truyền vào popup. */\n #currentValueAsDate(): Date | null {\n const v = this.valueModel();\n if (!v || !DateUtilities.isDate(v)) return null;\n const fmtted = DateUtilities.toFormat(v as any, 'yyyy/MM/dd HH:mm:ss');\n if (!fmtted) return null;\n const parsed = parseDate(fmtted, 'yyyy/MM/dd HH:mm:ss', new Date());\n return isValidDate(parsed) ? parsed : null;\n }\n\n // ==========================================\n // 7. PARSE/VALIDATE HELPERS\n // ==========================================\n #parseDateBoundary(val: any): Date | null {\n if (val === 'TODAY') return new Date();\n if (val && DateUtilities.isDate(val)) return new Date(val);\n return null;\n }\n\n // ==========================================\n // 8. INPUT EVENT HANDLERS\n // ==========================================\n onFocus = () => {\n this.isFocused = true;\n this.sdFocus.emit();\n };\n\n onBlur = () => {\n this.isFocused = false;\n };\n\n onClick = () => {\n if (this.sdViewDef()?.templateRef) {\n if (!this.formControl.disabled && !this.isFocused) {\n this.focus();\n }\n }\n };\n\n blur = () => {\n this.inputRef()?.nativeElement?.blur();\n };\n\n focus = () => {\n this.isFocused = true;\n // why: vẫn 100ms như cũ — chỉ scope handle theo DestroyRef.\n this.#timers.schedule(() => {\n this.inputRef()?.nativeElement?.focus();\n this.open();\n }, 100);\n };\n\n focusInputElement() {\n this.inputRef()?.nativeElement?.focus();\n }\n\n onKeyDown = (event: KeyboardEvent) => {\n const key = event.keyCode || event.charCode;\n const isShift = key === 16;\n\n if (event.ctrlKey && (key === 67 || key === 86)) return true;\n\n if (\n ((key >= 48 && key <= 57) ||\n key === 8 ||\n key <= 37 ||\n key <= 39 ||\n (key >= 96 && key <= 105) ||\n key === 191 ||\n key === 186 ||\n key === 59) &&\n !isShift\n ) {\n return true;\n }\n return false;\n };\n\n /**\n * Khi user gõ trực tiếp vào input và rời focus → validate format dd/MM/yyyy HH:mm\n * Hỗ trợ cả format có giây.\n */\n onConfirmInput = (event: any) => {\n const currentVal: string = event.target.value;\n const formControl: AbstractControl = this.formControl;\n const regexToMinutes = /^([1-9]|([012][0-9])|(3[01]))\\/([0]{0,1}[1-9]|1[012])\\/\\d\\d\\d\\d [012]{0,1}[0-9]:[0-6][0-9]$/g;\n const regexToSecond = /^([1-9]|([012][0-9])|(3[01]))\\/([0]{0,1}[1-9]|1[012])\\/\\d\\d\\d\\d [012]{0,1}[0-9]:[0-6][0-9]:[0-6][0-9]$/g;\n\n if (currentVal && !(regexToMinutes.test(currentVal) || regexToSecond.test(currentVal))) {\n formControl.markAsDirty();\n formControl.markAsTouched();\n this.#setDatetimeError(true);\n return;\n }\n\n this.#setDatetimeError(false);\n\n // Đồng bộ qua canonical control; connector sở hữu conversion và model/output timing.\n if (currentVal) {\n const parsed = parseFirstValid(currentVal, ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm']);\n if (parsed) {\n const display = DateUtilities.toFormat(parsed, this.showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm');\n if (this.formControl.value !== display) {\n this.formControl.setValue(display);\n }\n }\n } else if (this.valueModel()) {\n this.formControl.setValue(null);\n }\n };\n\n /**\n * Bật/tắt cờ format rồi chạy lại pipeline NGAY.\n * why: chạy lại đồng bộ để lỗi xuất hiện/biến mất đúng nhịp nhập, đồng thời phát `events` cho\n * `sdFormControlState` tick — connector gắn validator bằng `emitEvent: false` nên không tick hộ.\n * Early-return khi cờ không đổi để một datetime hợp lệ không bị phát thừa một vòng status.\n */\n #setDatetimeError(invalid: boolean): void {\n if (this.#invalidFormat() === invalid) return;\n this.#invalidFormat.set(invalid);\n this.formControl.updateValueAndValidity();\n }\n\n clear = ($event: any) => {\n $event?.stopPropagation();\n // why: phải tắt cờ TRƯỚC và NGOÀI nhánh `if` — sau khi gõ text sai, `onConfirmInput` return sớm\n // nên `formControl.value` vẫn là null; nhánh `if` không chạy và lỗi `date` sẽ treo lại trên một\n // field vừa được xoá trắng.\n this.#setDatetimeError(false);\n if (this.formControl.value) {\n this.formControl.setValue(null);\n }\n };\n}\n","@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _errorMessage = errorMessage();\r\n@let _helperText = helperText();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n@let _labelTop = labelPlacement() === 'top';\r\n@let _placeholder = placeholder() || (_labelTop ? '' : _label) || '';\r\n@let _bare = _isInline;\r\n@let _hasValue = !!formControl.value;\r\n<!-- why: một cổng gate duy nhất cho <mat-error>, aria-invalid và aria-describedby — message\r\n hiện mà control không báo invalid thì screen reader không biết ô đang lỗi. -->\r\n@let _errorVisible = !!_errorMessage && formControl.touched;\r\n@let _showInlineError = !_hideInlineError && _errorVisible;\r\n\r\n@let _resolvedMin = resolvedMin();\r\n@let _resolvedMax = resolvedMax();\r\n\r\n@let _viewedDate = viewedDate();\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"_viewedDate\"\r\n [display]=\"_viewedDate | date: (showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm')\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else {\r\n @if (_isInline) {\r\n <!-- why: inline — sd-view là \"mặt\" + trigger; datetime editor render ẩn (.sd-inline-editor) chỉ để mở overlay. -->\r\n <span class=\"sd-inline-view\" role=\"button\" tabindex=\"0\" (click)=\"enterInlineEdit()\" (keydown.enter)=\"enterInlineEdit()\">\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"_viewedDate\"\r\n [display]=\"_viewedDate | date: (showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm')\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n @if (clearable() && _hasValue && !_required && !formControl.disabled) {\r\n <button type=\"button\" class=\"sd-inline-clear\" (click)=\"clear($event)\" title=\"Xóa\" aria-label=\"Xóa\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n </span>\r\n }\r\n @if (!_appearance || _labelTop) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label\r\n [label]=\"_label\"\r\n [required]=\"_required\"\r\n [for]=\"_labelTop ? id : null\"\r\n [labelId]=\"_labelTop ? labelId : null\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div chỉ là hộp layout. aria-hidden=\"true\" cũ ẩn CẢ cây con — label, <input>,\r\n <mat-error>, nút clear, nút mở picker — khỏi accessibility tree. role=\"presentation\" chỉ\r\n vô hiệu hoá chính div, KHÔNG lan xuống con; (click) là tiện ích chuột mà bàn phím đã có\r\n qua Tab vào <input>. -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n role=\"presentation\"\r\n [class.sd-inline-editor]=\"_isInline\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <mat-form-field\r\n class=\"c-form-field-datetime-input\"\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [class.sd-label-top]=\"_labelTop\"\r\n [appearance]=\"_appearance || 'outline'\"\r\n [floatLabel]=\"floatLabel()\">\r\n @if (_appearance && _label && !_labelTop) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: BỎ aria-hidden trên chính <input> — ô vẫn Tab tới được, aria-hidden chỉ khiến\r\n screen reader đọc ra khoảng lặng. -->\r\n <input\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [id]=\"id\"\r\n (blur)=\"onConfirmInput($event)\"\r\n (keyup.enter)=\"onConfirmInput($event)\"\r\n (keydown)=\"onKeyDown($event)\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [formControl]=\"formControl\"\r\n [required]=\"_required\"\r\n [placeholder]=\"_placeholder\"\r\n [min]=\"_resolvedMin\"\r\n [max]=\"_resolvedMax\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [attr.aria-invalid]=\"_errorVisible ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n #input\r\n matInput />\r\n\r\n @if (_hideInlineError && _errorVisible) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorVisible) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n } @else if (_labelTop && _helperText) {\r\n <mat-hint [id]=\"hintId\">{{ _helperText }}</mat-hint>\r\n }\r\n\r\n @if (clearable() && formControl.value && !_required && !formControl.disabled && !_bare) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"Xóa\" aria-label=\"Xóa\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n <!-- why: <span (click)> không Tab tới được và không có tên; trước đây nó \"hợp lệ\" chỉ vì\r\n cả cụm bị aria-hidden nên lint bỏ qua. <button type=\"button\"> có sẵn Enter/Space +\r\n `disabled` thật; sd-icon được ẩn khỏi accessibility tree vì nó chỉ lặp lại nhãn của nút. -->\r\n <button\r\n type=\"button\"\r\n matSuffix\r\n class=\"cursor-pointer sd-suffix-icon sd-suffix-btn\"\r\n [disabled]=\"formControl.disabled\"\r\n [attr.aria-label]=\"'core.form.datetime.open-picker' | sdTranslate\"\r\n (click)=\"open()\">\r\n <sd-icon name=\"today\"></sd-icon>\r\n </button>\r\n </mat-form-field>\r\n\r\n <sd-datetime-picker\r\n [showSeconds]=\"showSeconds()\"\r\n [disabled]=\"formControl.disabled\"\r\n [minDate]=\"_resolvedMin\"\r\n [maxDate]=\"_resolvedMax\"\r\n [startAt]=\"_viewedDate\"\r\n (applied)=\"onPickerConfirm($event)\">\r\n <sd-datetime-picker-actions>\r\n <button mat-button type=\"button\" sdDatetimePickerNow>\r\n <sd-icon name=\"schedule\"></sd-icon>\r\n <span>{{ 'core.form.datetime.now' | sdTranslate }}</span>\r\n </button>\r\n <button mat-button type=\"button\" sdDatetimePickerCancel>{{ 'core.common.cancel' | sdTranslate }}</button>\r\n <button mat-flat-button type=\"button\" sdDatetimePickerApply>{{ 'core.form.datetime.confirm' | sdTranslate }}</button>\r\n </sd-datetime-picker-actions>\r\n </sd-datetime-picker>\r\n </div>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["parseDate","isValidDate","SdMaterialDatet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EAAE,mBAAmB,EAAE;AAC5D,wBAAA,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,sBAAsB,EAAE;AAC/D,wBAAA,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,sBAAsB,EAAE;AAC/D,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,OAAA,EACP;wBACP,MAAM;wBACN,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,eAAe;wBACf,cAAc;wBACd,gBAAgB;wBAChB,kBAAkB;wBAClB,OAAO;wBACP,MAAM;wBACN,eAAe;wBACfA,gBAAwB;wBACxB,uBAAuB;wBACvB,qBAAqB;wBACrB,sBAAsB;wBACtB,mBAAmB;AACpB,qBAAA,EAAA,QAAA,EAAA,oxPAAA,EAAA,MAAA,EAAA,CAAA,yyQAAA,CAAA,EAAA;;;AE5JH;;AAEG;;;;"}
1
+ {"version":3,"file":"sdcorejs-angular-forms-datetime.mjs","sources":["../../../projects/sdcorejs-angular/forms/datetime/src/datetime-time-zone.adapter.ts","../../../projects/sdcorejs-angular/forms/datetime/src/datetime.component.ts","../../../projects/sdcorejs-angular/forms/datetime/src/datetime.component.html","../../../projects/sdcorejs-angular/forms/datetime/sdcorejs-angular-forms-datetime.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { ɵsdInjectDateTime } from '@sdcorejs/angular/services/date-time';\nimport { SdNativeDateAdapter } from '@sdcorejs/angular-material-datetime';\n\n/**\n * `SdNativeDateAdapter` whose `today()` follows `ISdCoreConfiguration.timeZone`.\n *\n * The picker's Now button and the calendar's today marker both come from `today()`, and Now uses it\n * as date AND time, so this returns the current wall clock in the zone (not 00:00). Without a zone it\n * is the base adapter unchanged.\n */\n@Injectable()\nexport class SdDatetimeTimeZoneAdapter extends SdNativeDateAdapter {\n readonly #dateTime = ɵsdInjectDateTime();\n\n override today(): Date {\n return this.#dateTime && this.#dateTime.timeZone !== 'local' ? this.#dateTime.now() : super.today();\n }\n}\n","import { Platform } from '@angular/cdk/platform';\nimport { CommonModule } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n input,\n model,\n computed,\n OnDestroy,\n OnInit,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n contentChild,\n} from '@angular/core';\nimport { AbstractControl, FormGroup, FormsModule, NgForm, ReactiveFormsModule, ValidatorFn } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport { FloatLabelType, MatFormFieldAppearance, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { SdView } from '@sdcorejs/angular/components/view';\nimport { SdViewDefDirective } from '@sdcorejs/angular/forms/directives';\nimport { SdLabel } from '@sdcorejs/angular/forms/label';\nimport {\n SD_FORM_CONFIGURATION,\n SdFormControl,\n SdInlineErrorValidator,\n sdFormControlState,\n SdTemporalValueTransform,\n SdViewed,\n SdViewedInput,\n sdParseTransformedTemporal,\n ɵsdParseTransformedInstant,\n sdSerializeTemporalValue,\n sdViewedInline,\n sdViewedTransform,\n ɵsdFormControlConnector,\n ɵsdModelFacingControl,\n ɵsdTimerScope,\n} from '@sdcorejs/angular/forms/models';\nimport type { SdLabelPlacement } from '@sdcorejs/angular/forms/models';\nimport { sdSerializeDataValue, sdIsEmpty } from '@sdcorejs/angular/utilities/data-state';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdDateTimeService } from '@sdcorejs/angular/services/date-time';\nimport { SdDatetimeTimeZoneAdapter } from './datetime-time-zone.adapter';\nimport { Size } from '@sdcorejs/utils/models';\nimport { DateUtilities } from '@sdcorejs/utils/fns';\nimport { BrowserUtilities, Utilities } from '@sdcorejs/utils/fns';\nimport { isValid as isValidDate, parse as parseDate } from 'date-fns';\nimport { Subscription } from 'rxjs';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\nimport {\n SD_DATE_FORMATS,\n SD_NATIVE_DATE_FORMATS,\n SdDateAdapter,\n SdDatetimePicker as SdMaterialDatetimePicker,\n SdDatetimePickerActions,\n SdDatetimePickerApply,\n SdDatetimePickerCancel,\n SdDatetimePickerNow,\n SdNativeDateAdapter,\n} from '@sdcorejs/angular-material-datetime';\n\ntype SdDatetimeModelValue = string | number | Date | undefined | null;\n\n/**\n * Thử parse `value` theo lần lượt nhiều format; trả về Date đầu tiên hợp lệ.\n * date-fns không hỗ trợ multi-format parse như moment(value, [fmt1, fmt2], true).\n */\nfunction parseFirstValid(value: string, formats: string[]): Date | null {\n for (const fmt of formats) {\n const d = parseDate(value, fmt, new Date());\n if (isValidDate(d)) return d;\n }\n return null;\n}\n\n/**\n * why: `DateUtilities.isDate` nhận Date, timestamp, canonical `yyyy/MM/dd HH:mm[:ss]` và ISO, nhưng\n * KHÔNG nhận chuỗi RFC-1123 của `toUTCString()`. Không có nhánh dự phòng này thì\n * `<sd-datetime transform=\"UTCString\">` không đọc lại được chính output của nó.\n */\nfunction coerceDatetimeSource(value: SdDatetimeModelValue): SdDatetimeModelValue {\n if (DateUtilities.isDate(value)) return value;\n return sdParseTransformedTemporal(value) ?? value;\n}\n\nfunction datetimeModelToControl(value: SdDatetimeModelValue, showSeconds: boolean): string | null {\n const source = coerceDatetimeSource(value);\n if (!DateUtilities.isDate(source)) return null;\n const normalized = DateUtilities.toFormat(source, showSeconds ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm');\n if (!normalized) return null;\n return DateUtilities.toFormat(normalized, showSeconds ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm') || null;\n}\n\nfunction datetimeControlToStored(value: string | null, showSeconds: boolean): string | null {\n if (!value) return null;\n const parsed = parseFirstValid(value, ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm']);\n if (!parsed) return null;\n return DateUtilities.toFormat(parsed, showSeconds ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm:00') || null;\n}\n\nfunction normalizeDatetimeModel(value: SdDatetimeModelValue, showSeconds: boolean): string | null {\n const source = coerceDatetimeSource(value);\n if (!DateUtilities.isDate(source)) return null;\n return DateUtilities.toFormat(source, showSeconds ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm:00') || null;\n}\n\n/** Parses the committed display string back to the local instant it denotes. */\nfunction datetimeControlToDate(value: string | null): Date | null {\n if (!value) return null;\n return parseFirstValid(value, ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm']);\n}\n\n@Component({\n selector: 'sd-datetime',\n templateUrl: './datetime.component.html',\n styleUrl: './datetime.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.sd-bare]': 'isInline()',\n '[class.sd-viewed]': 'isViewed() || isInline()',\n '[class.sd-has-label]': '!!label()',\n '[class.sd-label-top]': \"labelPlacement() === 'top'\",\n },\n providers: [\n Platform,\n // why: the subclass makes today() (Now button, calendar today marker) follow ISdCoreConfiguration.timeZone.\n SdDatetimeTimeZoneAdapter,\n { provide: SdNativeDateAdapter, useExisting: SdDatetimeTimeZoneAdapter },\n { provide: MAT_DATE_LOCALE, useValue: 'en-US' },\n { provide: DateAdapter, useExisting: SdDatetimeTimeZoneAdapter },\n { provide: SdDateAdapter, useExisting: SdDatetimeTimeZoneAdapter },\n { provide: MAT_DATE_FORMATS, useValue: SD_NATIVE_DATE_FORMATS },\n { provide: SD_DATE_FORMATS, useValue: SD_NATIVE_DATE_FORMATS },\n ],\n standalone: true,\n imports: [\n SdIcon,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatInputModule,\n MatTooltipModule,\n MatFormFieldModule,\n SdLabel,\n SdView,\n SdTranslatePipe,\n SdMaterialDatetimePicker,\n SdDatetimePickerActions,\n SdDatetimePickerApply,\n SdDatetimePickerCancel,\n SdDatetimePickerNow,\n ],\n})\nexport class SdDatetime implements OnDestroy, OnInit {\n id = `I${Utilities.generateUuid()}`;\n /** why: id ổn định của <mat-error> để control trỏ `aria-describedby` sang — thông báo lỗi\n * phải đọc được từ chính control, không chỉ hiện ra màn hình. */\n readonly errorId = `${this.id}-error`;\n /** id của nhãn/helper khi `labelPlacement='top'`. */\n readonly labelId = `${this.id}-label`;\n readonly hintId = `${this.id}-hint`;\n\n // ==========================================\n // 1. SIGNAL QUERIES\n // ==========================================\n inputRef = viewChild<ElementRef<HTMLInputElement>>('input');\n private readonly dateTimePicker = viewChild<SdMaterialDatetimePicker<Date>>(SdMaterialDatetimePicker);\n\n sdLabelTemplate = contentChild<TemplateRef<any>>('sdLabel');\n sdValueTemplate = contentChild<TemplateRef<any>>('sdValue');\n sdViewDef = contentChild(SdViewDefDirective);\n\n // ==========================================\n // 2. INJECTS\n // ==========================================\n private ref = inject(ChangeDetectorRef);\n private elementRef = inject(ElementRef);\n private formConfig = inject(SD_FORM_CONFIGURATION, { optional: true });\n readonly #i18n = inject(I18nService);\n readonly #dateTime = inject(SdDateTimeService);\n /** why: with `ISdCoreConfiguration.timeZone` set, model values are converted in that zone at the model/control boundary. */\n readonly #zoned = this.#dateTime.timeZone !== 'local';\n // why: focus + mở picker hoãn 100ms; handle phải bị clear khi destroy, nếu không open()\n // dựng overlay mồ côi trên view đã tháo.\n readonly #timers = ɵsdTimerScope();\n\n // ==========================================\n // 3. SIGNAL INPUTS & MODEL\n // ==========================================\n autoIdInput = input<string | undefined | null>(undefined, { alias: 'autoId' });\n autoId = computed(() => (this.autoIdInput() ? `forms-datetime-${this.autoIdInput()}` : undefined));\n\n readonly #state = sdFormControlState(computed(() => this.formControl));\n readonly dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));\n readonly dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'));\n readonly dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));\n readonly dataValue = computed(() => sdSerializeDataValue(this.#state().value));\n\n readonly dataRequired = computed(() => (this.required() ? 'true' : 'false'));\n readonly dataErrorMessage = computed(() => {\n void this.#state();\n const msg = this.errorMessage();\n return msg && msg.length > 0 ? msg : null;\n });\n\n name = input<string>(Utilities.generateUuid());\n\n size = input<Size>('md');\n // Ghi (TransformT): any (để không bị lỗi typing khi cha truyền vào)\n form = input<FormGroup | undefined, any>(undefined, {\n transform: (val: any): FormGroup | undefined => {\n if (!val) return undefined;\n // Nếu cha truyền vào NgForm (template-driven) -> Bóc lấy FormGroup bên trong\n if (val instanceof NgForm) return val.form;\n // Nếu cha truyền sẵn FormGroup (reactive) -> Lấy luôn\n if (val instanceof FormGroup) return val;\n // Fallback an toàn phòng trường hợp cha truyền 1 object chứa form\n if (val?.form instanceof FormGroup) return val.form;\n return undefined;\n },\n });\n label = input<string | undefined>();\n helperText = input<string | undefined>();\n placeholder = input<string | undefined>();\n\n hideInlineError = input(false, { transform: booleanAttribute });\n required = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n /** Display mode: `false` edit · `true` static view · `'inline'` view + click-to-edit (datetime overlay). */\n viewed = input<SdViewed, SdViewedInput>(false, { transform: sdViewedTransform });\n /** Hiển thị thêm cột giây trong picker. Mặc định: chỉ HH:MM. */\n showSeconds = input(false, { transform: booleanAttribute });\n\n /** Whether to show the value-gated clear button in edit and inline modes. */\n clearable = input(false, { transform: booleanAttribute });\n\n // Tri-state `viewed` — shared primitive. In `'inline'` the datetime editor is always mounted\n // (chrome hidden via CSS); the sd-view text face opens the overlay on click.\n readonly #viewedState = sdViewedInline(this.viewed, () => this.open(), this.disabled);\n /** `true` when `viewed === 'inline'`. */\n readonly isInline = this.#viewedState.isInline;\n /** `true` when `viewed === true` (static view, no editor). */\n readonly isViewed = this.#viewedState.isViewed;\n /** Open the datetime overlay from the inline text face. No-op unless `viewed='inline'`. */\n enterInlineEdit = (): void => this.#viewedState.enterInlineEdit();\n /** View display template: `sdViewDef` overrides the projected `#sdValue` (unified). */\n readonly viewTemplate = computed<TemplateRef<any> | undefined>(() => this.sdViewDef()?.templateRef ?? this.sdValueTemplate());\n\n inlineError = input<string | undefined>();\n\n /**\n * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.\n */\n readonly errorMessage = computed<string | undefined>(() => {\n void this.#state();\n const errors = this.formControl.errors;\n if (!errors) return undefined;\n\n if (errors['required']) return this.#i18n.t('core.form.datetime.required');\n if (errors['matDatepickerMin']) {\n const d = this.resolvedMin();\n return this.#i18n.t('core.form.datetime.min-date', { date: d ? new Date(d).toLocaleDateString(this.#i18n.locale()) : '' });\n }\n if (errors['matDatepickerMax']) {\n const d = this.resolvedMax();\n return this.#i18n.t('core.form.datetime.max-date', { date: d ? new Date(d).toLocaleDateString(this.#i18n.locale()) : '' });\n }\n if (errors['date']) return errors['date'] as string;\n if (errors['customValidator']) return errors['customValidator'] as string;\n if (errors['inlineError']) return this.inlineError();\n return undefined;\n });\n\n hyperlink = input<string | null | undefined>();\n\n appearanceInput = input<MatFormFieldAppearance | undefined>(undefined, { alias: 'appearance' });\n appearance = computed(() => this.appearanceInput() ?? this.formConfig?.appearance ?? 'outline');\n\n floatLabel = input<FloatLabelType>('auto');\n /** `'float'` (mặc định) hoặc `'top'` — nhãn `<label for>` tĩnh phía trên, helper text dưới control. */\n labelPlacement = input<SdLabelPlacement>('float');\n\n // Min/max — chấp nhận 'TODAY', Date, hoặc string ISO\n minInput = input<any>(undefined, { alias: 'min' });\n minDateInput = input<any>(undefined, { alias: 'minDate' });\n resolvedMin = computed(() => this.#parseDateBoundary(this.minInput() ?? this.minDateInput()));\n\n maxInput = input<any>(undefined, { alias: 'max' });\n maxDateInput = input<any>(undefined, { alias: 'maxDate' });\n resolvedMax = computed(() => this.#parseDateBoundary(this.maxInput() ?? this.maxDateInput()));\n\n /**\n * Output serialization strategy for the committed value. Affects `model` / `modelChange` /\n * `sdChange` and the registered form field only — the field keeps displaying\n * `dd/MM/yyyy HH:mm[:ss]` per `showSeconds`. Left unset, the canonical string is emitted.\n */\n transform = input<SdTemporalValueTransform | undefined>();\n\n valueModel = model<SdDatetimeModelValue>(undefined, { alias: 'model' });\n\n // viewed-mode: formControl.value là chuỗi display (dd/MM/yyyy HH:mm) nên DatePipe không parse được.\n // Lấy thẳng từ valueModel (nguồn dữ liệu thật) rồi convert sang Date cho DatePipe.\n viewedDate = computed<Date | null>(() => {\n const v = this.valueModel();\n if (this.#zoned) return this.#modelToCarrier(v);\n if (v == null || !DateUtilities.isDate(v)) return null;\n const iso = DateUtilities.toFormat(v as any, 'yyyy/MM/dd HH:mm:ss');\n if (!iso) return null;\n const d = parseDate(iso, 'yyyy/MM/dd HH:mm:ss', new Date());\n return isValidDate(d) ? d : null;\n });\n\n // ==========================================\n // 4. SIGNAL OUTPUTS\n // ==========================================\n sdChange = output<any>();\n sdFocus = output<void>();\n\n // ==========================================\n // 5. INTERNAL STATE\n // ==========================================\n isMobileOrTablet = BrowserUtilities.isMobile();\n formControl = new SdFormControl();\n\n /** `true` khi text vừa nhập không phải datetime dd/MM/yyyy HH:mm(:ss) hợp lệ. */\n readonly #invalidFormat = signal(false);\n\n /**\n * why: lỗi format PHẢI đi qua pipeline validator. Trước đây nó bị nhét thẳng vào control bằng\n * `setErrors()` — tức là nằm NGOÀI pipeline — nên bất kỳ `updateValueAndValidity` nào chạy sau\n * (effect validators của connector, hay chính `setValue`) đều xoá sạch lỗi mà không ai hay biết.\n * Nhánh xoá lỗi cũ còn sai thêm một lần nữa: `setErrors({ ...errors, date: null })` để lại một\n * object errors KHÔNG rỗng, mà `AbstractControl._calculateStatus()` coi mọi object errors non-null\n * là INVALID → một datetime hoàn toàn hợp lệ vẫn bị đánh dấu invalid (và phát `statusChanges`\n * INVALID ra cho form cha) cho tới khi `updateValueAndValidity` kế tiếp che đi. Trả `null` từ\n * validator thì key `date` biến mất hẳn, không còn `date: null` treo lại.\n * Validator giữ identity ổn định (connector chỉ gắn 1 lần) và đọc cờ qua `untracked` để không\n * tự biến mình thành dependency reactive khi bị gọi trong effect/computed.\n */\n readonly #datetimeFormatValidator: ValidatorFn = () =>\n untracked(() => (this.#invalidFormat() ? { date: this.#i18n.t('core.form.datetime.invalid-format') } : null));\n\n readonly #validators = computed<readonly ValidatorFn[]>(() =>\n this.inlineError() ? [this.#datetimeFormatValidator, SdInlineErrorValidator] : [this.#datetimeFormatValidator]\n );\n\n /**\n * why: control gắn vào editor nên nó giữ CHUỖI HIỂN THỊ `dd/MM/yyyy HH:mm[:ss]` — không phải model.\n * Có `transform` thì consumer được hứa `form.get(name).value` bằng `model`, nên form phải nhận\n * control này. Không có transform thì `registered` trả null và form vẫn nhận control của editor.\n */\n readonly #modelFacing = ɵsdModelFacingControl<SdDatetimeModelValue>({\n // why: with a zone the form gets the model, not the editor's display string.\n active: computed(() => !!this.transform() || this.#zoned),\n model: this.valueModel,\n writeModel: value => {\n this.valueModel.set(value);\n this.sdChange.emit(value);\n },\n source: computed<AbstractControl>(() => this.formControl),\n modelEquals: (left, right) => this.#modelsEqual(left, right),\n });\n /** Control registered in the parent form while a `transform` is active; holds the public model. */\n readonly modelControl = this.#modelFacing.control;\n\n /**\n * Serializes a committed datetime, applying the precision `showSeconds` already governs: seconds\n * are kept only when they are shown, and milliseconds are always dropped.\n */\n #serializeCommitted(display: string | null): SdDatetimeModelValue {\n const parsed = datetimeControlToDate(display);\n const transform = this.transform();\n if (!parsed || !transform) return display ? (datetimeControlToStored(display, this.showSeconds()) ?? this.valueModel()) : null;\n\n const seconds = this.showSeconds() ? parsed.getSeconds() : 0;\n const normalized = new Date(\n parsed.getFullYear(),\n parsed.getMonth(),\n parsed.getDate(),\n parsed.getHours(),\n parsed.getMinutes(),\n seconds,\n 0\n );\n return sdSerializeTemporalValue(this.#zoned ? this.#dateTime.fromWallClock(normalized) : normalized, transform) ?? this.valueModel();\n }\n\n /** Model → wall-clock carrier in the zone (zone-less values keep their fields). */\n #modelToCarrier(value: SdDatetimeModelValue): Date | null {\n const carrier = this.#dateTime.toWallClock(value);\n if (carrier) return carrier;\n const instant = ɵsdParseTransformedInstant(value);\n return instant ? this.#dateTime.toWallClock(instant) : null;\n }\n\n /** Model → display string `dd/MM/yyyy HH:mm[:ss]`. */\n #modelToDisplay(value: SdDatetimeModelValue): string | null {\n if (!this.#zoned) return datetimeModelToControl(value, this.showSeconds());\n const carrier = this.#modelToCarrier(value);\n return carrier ? DateUtilities.toFormat(carrier, this.showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm') || null : null;\n }\n\n /** Model → canonical `yyyy/MM/dd HH:mm:ss` for equality. */\n #normalizeModel(value: SdDatetimeModelValue): string | null {\n if (!this.#zoned) return normalizeDatetimeModel(value, this.showSeconds());\n const carrier = this.#modelToCarrier(value);\n return carrier ? DateUtilities.toFormat(carrier, this.showSeconds() ? 'yyyy/MM/dd HH:mm:ss' : 'yyyy/MM/dd HH:mm:00') || null : null;\n }\n\n /**\n * why: `normalizeDatetimeModel` gộp về canonical string, nên hai chuỗi transform khác nhau của\n * cùng một thời điểm so ra bằng nhau và `writeModel` bị bỏ qua — đổi `transform` lúc runtime rồi\n * commit lại sẽ không phát ra chuỗi mới. Khi có transform thì so nguyên văn.\n */\n #modelsEqual(left: SdDatetimeModelValue, right: SdDatetimeModelValue): boolean {\n if (this.transform()) return Object.is(left, right);\n return this.#normalizeModel(left) === this.#normalizeModel(right);\n }\n\n readonly #formConnector = ɵsdFormControlConnector<SdDatetimeModelValue, string | null>({\n form: this.form,\n name: this.name,\n control: computed<AbstractControl<string | null>>(() => this.formControl),\n registeredControl: this.#modelFacing.registered,\n model: this.valueModel,\n writeModel: value => {\n this.valueModel.set(value);\n this.sdChange.emit(value);\n },\n modelToControl: value => this.#modelToDisplay(value),\n controlToModel: value => this.#serializeCommitted(value),\n modelEquals: (left, right) => this.#modelsEqual(left, right),\n validators: this.#validators,\n required: this.required,\n disabled: this.disabled,\n viewed: this.viewed,\n validationError: computed(() => this.errorMessage()),\n });\n isFocused = false;\n isValid?: boolean;\n\n /** State popup — true khi picker package đang mở. */\n pickerOpened = computed(() => this.dateTimePicker()?.opened() ?? false);\n\n #subscription = new Subscription();\n\n ngOnInit() {\n this.#subscription.add(\n this.formControl.sdChanges.subscribe(() => {\n this.ref.markForCheck();\n })\n );\n }\n\n ngOnDestroy() {\n this.#subscription.unsubscribe();\n }\n\n // ==========================================\n // 6. POPUP MANAGEMENT — package-backed Material datetime picker\n // ==========================================\n\n /** Mở popup chọn datetime, neo vào input. */\n open() {\n if (this.formControl.disabled || this.pickerOpened()) return;\n const picker = this.dateTimePicker();\n if (!picker) return;\n picker.setAnchor(this.inputRef()?.nativeElement ?? (this.elementRef.nativeElement as HTMLElement));\n // why: open() rebuilds the draft from committed state, so seed that state before opening.\n picker.setValue(this.#currentValueAsDate() ?? (this.#zoned ? this.#dateTime.now() : new Date()));\n picker.open();\n this.ref.markForCheck();\n }\n\n /** Đóng popup (public — gọi từ template nếu cần). */\n close() {\n this.dateTimePicker()?.close();\n }\n\n onPickerConfirm(value: Date) {\n // why: chọn được datetime từ picker nghĩa là text sai định dạng đã bị thay thế — cờ phải tắt.\n // Cờ chỉ được reset trong `onConfirmInput`, nên trước đây gõ bậy rồi chọn từ lịch để lại lỗi\n // `date` VĨNH VIỄN: control invalid + hiện \"Sai định dạng\" trên một giá trị hoàn toàn hợp lệ.\n // Đây là regression MỚI của việc đưa lỗi vào pipeline validator — bản `setErrors` cũ tình cờ\n // bị `updateValueAndValidity` kế tiếp xoá hộ.\n this.#setDatetimeError(false);\n const display = DateUtilities.toFormat(value, this.showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm') || null;\n if (this.formControl.value !== display) {\n // why: người dùng sửa thì control của form phải dirty trước khi nhận giá trị, như value accessor của Angular;\n // giá trị chọn trên picker và nút xoá không đi qua value accessor của ô nhập.\n this.formControl.markAsDirty();\n this.formControl.setValue(display);\n }\n }\n\n /** Lấy giá trị hiện tại dưới dạng native Date để truyền vào popup. */\n #currentValueAsDate(): Date | null {\n const v = this.valueModel();\n if (this.#zoned) return v ? this.#modelToCarrier(v) : null;\n if (!v || !DateUtilities.isDate(v)) return null;\n const fmtted = DateUtilities.toFormat(v as any, 'yyyy/MM/dd HH:mm:ss');\n if (!fmtted) return null;\n const parsed = parseDate(fmtted, 'yyyy/MM/dd HH:mm:ss', new Date());\n return isValidDate(parsed) ? parsed : null;\n }\n\n // ==========================================\n // 7. PARSE/VALIDATE HELPERS\n // ==========================================\n #parseDateBoundary(val: any): Date | null {\n if (this.#zoned) {\n if (val === 'TODAY') return this.#dateTime.now();\n return val ? this.#modelToCarrier(val) : null;\n }\n if (val === 'TODAY') return new Date();\n if (val && DateUtilities.isDate(val)) return new Date(val);\n return null;\n }\n\n // ==========================================\n // 8. INPUT EVENT HANDLERS\n // ==========================================\n onFocus = () => {\n this.isFocused = true;\n this.sdFocus.emit();\n };\n\n onBlur = () => {\n this.isFocused = false;\n };\n\n onClick = () => {\n if (this.sdViewDef()?.templateRef) {\n if (!this.formControl.disabled && !this.isFocused) {\n this.focus();\n }\n }\n };\n\n blur = () => {\n this.inputRef()?.nativeElement?.blur();\n };\n\n focus = () => {\n this.isFocused = true;\n // why: vẫn 100ms như cũ — chỉ scope handle theo DestroyRef.\n this.#timers.schedule(() => {\n this.inputRef()?.nativeElement?.focus();\n this.open();\n }, 100);\n };\n\n focusInputElement() {\n this.inputRef()?.nativeElement?.focus();\n }\n\n onKeyDown = (event: KeyboardEvent) => {\n const key = event.keyCode || event.charCode;\n const isShift = key === 16;\n\n if (event.ctrlKey && (key === 67 || key === 86)) return true;\n\n if (\n ((key >= 48 && key <= 57) ||\n key === 8 ||\n key <= 37 ||\n key <= 39 ||\n (key >= 96 && key <= 105) ||\n key === 191 ||\n key === 186 ||\n key === 59) &&\n !isShift\n ) {\n return true;\n }\n return false;\n };\n\n /**\n * Khi user gõ trực tiếp vào input và rời focus → validate format dd/MM/yyyy HH:mm\n * Hỗ trợ cả format có giây.\n */\n onConfirmInput = (event: any) => {\n const currentVal: string = event.target.value;\n const formControl: AbstractControl = this.formControl;\n const regexToMinutes = /^([1-9]|([012][0-9])|(3[01]))\\/([0]{0,1}[1-9]|1[012])\\/\\d\\d\\d\\d [012]{0,1}[0-9]:[0-6][0-9]$/g;\n const regexToSecond = /^([1-9]|([012][0-9])|(3[01]))\\/([0]{0,1}[1-9]|1[012])\\/\\d\\d\\d\\d [012]{0,1}[0-9]:[0-6][0-9]:[0-6][0-9]$/g;\n\n if (currentVal && !(regexToMinutes.test(currentVal) || regexToSecond.test(currentVal))) {\n formControl.markAsDirty();\n formControl.markAsTouched();\n this.#setDatetimeError(true);\n return;\n }\n\n this.#setDatetimeError(false);\n\n // Đồng bộ qua canonical control; connector sở hữu conversion và model/output timing.\n if (currentVal) {\n const parsed = parseFirstValid(currentVal, ['dd/MM/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm']);\n if (parsed) {\n const display = DateUtilities.toFormat(parsed, this.showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm');\n if (this.formControl.value !== display) {\n this.formControl.setValue(display);\n }\n }\n } else if (this.valueModel()) {\n this.formControl.setValue(null);\n }\n };\n\n /**\n * Bật/tắt cờ format rồi chạy lại pipeline NGAY.\n * why: chạy lại đồng bộ để lỗi xuất hiện/biến mất đúng nhịp nhập, đồng thời phát `events` cho\n * `sdFormControlState` tick — connector gắn validator bằng `emitEvent: false` nên không tick hộ.\n * Early-return khi cờ không đổi để một datetime hợp lệ không bị phát thừa một vòng status.\n */\n #setDatetimeError(invalid: boolean): void {\n if (this.#invalidFormat() === invalid) return;\n this.#invalidFormat.set(invalid);\n this.formControl.updateValueAndValidity();\n }\n\n clear = ($event: any) => {\n $event?.stopPropagation();\n // why: phải tắt cờ TRƯỚC và NGOÀI nhánh `if` — sau khi gõ text sai, `onConfirmInput` return sớm\n // nên `formControl.value` vẫn là null; nhánh `if` không chạy và lỗi `date` sẽ treo lại trên một\n // field vừa được xoá trắng.\n this.#setDatetimeError(false);\n if (this.formControl.value) {\n this.formControl.markAsDirty();\n this.formControl.setValue(null);\n }\n };\n}\n","@let _label = label();\r\n@let _appearance = appearance();\r\n@let _hideInlineError = hideInlineError();\r\n@let _errorMessage = errorMessage();\r\n@let _helperText = helperText();\r\n@let _required = required();\r\n@let _isInline = isInline();\r\n@let _labelTop = labelPlacement() === 'top';\r\n@let _placeholder = placeholder() || (_labelTop ? '' : _label) || '';\r\n@let _bare = _isInline;\r\n@let _hasValue = !!formControl.value;\r\n<!-- why: một cổng gate duy nhất cho <mat-error>, aria-invalid và aria-describedby — message\r\n hiện mà control không báo invalid thì screen reader không biết ô đang lỗi. -->\r\n@let _errorVisible = !!_errorMessage && formControl.touched;\r\n@let _showInlineError = !_hideInlineError && _errorVisible;\r\n\r\n@let _resolvedMin = resolvedMin();\r\n@let _resolvedMax = resolvedMax();\r\n\r\n@let _viewedDate = viewedDate();\r\n@if (isViewed()) {\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"_viewedDate\"\r\n [display]=\"_viewedDate | date: (showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm')\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n} @else {\r\n @if (_isInline) {\r\n <!-- why: inline — sd-view là \"mặt\" + trigger; datetime editor render ẩn (.sd-inline-editor) chỉ để mở overlay. -->\r\n <span class=\"sd-inline-view\" role=\"button\" tabindex=\"0\" (click)=\"enterInlineEdit()\" (keydown.enter)=\"enterInlineEdit()\">\r\n <sd-view\r\n [label]=\"_label\"\r\n [labelTemplate]=\"sdLabelTemplate()\"\r\n [value]=\"_viewedDate\"\r\n [display]=\"_viewedDate | date: (showSeconds() ? 'dd/MM/yyyy HH:mm:ss' : 'dd/MM/yyyy HH:mm')\"\r\n [hyperlink]=\"hyperlink()\"\r\n [valueTemplate]=\"viewTemplate()\">\r\n </sd-view>\r\n @if (clearable() && _hasValue && !_required && !formControl.disabled) {\r\n <button type=\"button\" class=\"sd-inline-clear\" (click)=\"clear($event)\" title=\"Xóa\" aria-label=\"Xóa\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n </span>\r\n }\r\n @if (!_appearance || _labelTop) {\r\n <ng-content select=\"[sdLabel]\">\r\n @if (_label) {\r\n <sd-label\r\n [label]=\"_label\"\r\n [required]=\"_required\"\r\n [for]=\"_labelTop ? id : null\"\r\n [labelId]=\"_labelTop ? labelId : null\"></sd-label>\r\n }\r\n </ng-content>\r\n }\r\n\r\n <!-- why: div chỉ là hộp layout. aria-hidden=\"true\" cũ ẩn CẢ cây con — label, <input>,\r\n <mat-error>, nút clear, nút mở picker — khỏi accessibility tree. role=\"presentation\" chỉ\r\n vô hiệu hoá chính div, KHÔNG lan xuống con; (click) là tiện ích chuột mà bàn phím đã có\r\n qua Tab vào <input>. -->\r\n <div\r\n class=\"d-flex align-items-center\"\r\n role=\"presentation\"\r\n [class.sd-inline-editor]=\"_isInline\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <mat-form-field\r\n class=\"c-form-field-datetime-input\"\r\n [class.sd-md]=\"size() === 'md'\"\r\n [class.sd-sm]=\"size() === 'sm'\"\r\n [class.hide-inline-error]=\"_hideInlineError\"\r\n [class.sd-label-top]=\"_labelTop\"\r\n [appearance]=\"_appearance || 'outline'\"\r\n [floatLabel]=\"floatLabel()\">\r\n @if (_appearance && _label && !_labelTop) {\r\n <mat-label class=\"sd-form-field-label\">\r\n <span>{{ _label }}</span>\r\n @if (_helperText) {\r\n <sd-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"below\" name=\"info\"></sd-icon>\r\n }\r\n </mat-label>\r\n }\r\n\r\n <!-- why: BỎ aria-hidden trên chính <input> — ô vẫn Tab tới được, aria-hidden chỉ khiến\r\n screen reader đọc ra khoảng lặng. -->\r\n <input\r\n [attr.data-autoId]=\"autoId()\"\r\n [attr.data-disabled]=\"dataDisabled()\"\r\n [attr.data-invalid]=\"dataInvalid()\"\r\n [attr.data-empty]=\"dataEmpty()\"\r\n [attr.data-value]=\"dataValue()\"\r\n [attr.data-required]=\"dataRequired()\"\r\n [attr.data-error-message]=\"dataErrorMessage()\"\r\n [id]=\"id\"\r\n (blur)=\"onConfirmInput($event)\"\r\n (keyup.enter)=\"onConfirmInput($event)\"\r\n (keydown)=\"onKeyDown($event)\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [formControl]=\"formControl\"\r\n [required]=\"_required\"\r\n [placeholder]=\"_placeholder\"\r\n [min]=\"_resolvedMin\"\r\n [max]=\"_resolvedMax\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [attr.aria-invalid]=\"_errorVisible ? 'true' : null\"\r\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\r\n #input\r\n matInput />\r\n\r\n @if (_hideInlineError && _errorVisible) {\r\n <sd-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\" name=\"error\"></sd-icon>\n }\r\n @if (_hideInlineError && _errorVisible) {\r\n <span class=\"sd-visually-hidden\" [id]=\"errorId\" matSuffix>{{ _errorMessage }}</span>\r\r\n }\r\n\r\n @if (_showInlineError) {\r\n <mat-error [id]=\"errorId\">{{ _errorMessage }}</mat-error>\r\n } @else if (_labelTop && _helperText) {\r\n <mat-hint [id]=\"hintId\">{{ _helperText }}</mat-hint>\r\n }\r\n\r\n @if (clearable() && formControl.value && !_required && !formControl.disabled && !_bare) {\r\n <button type=\"button\" class=\"sd-clear-btn sd-hover\" matSuffix (click)=\"clear($event)\" title=\"Xóa\" aria-label=\"Xóa\">\r\n <sd-icon name=\"close\"></sd-icon>\r\n </button>\r\n }\r\n\r\n <!-- why: <span (click)> không Tab tới được và không có tên; trước đây nó \"hợp lệ\" chỉ vì\r\n cả cụm bị aria-hidden nên lint bỏ qua. <button type=\"button\"> có sẵn Enter/Space +\r\n `disabled` thật; sd-icon được ẩn khỏi accessibility tree vì nó chỉ lặp lại nhãn của nút. -->\r\n <button\r\n type=\"button\"\r\n matSuffix\r\n class=\"cursor-pointer sd-suffix-icon sd-suffix-btn\"\r\n [disabled]=\"formControl.disabled\"\r\n [attr.aria-label]=\"'core.form.datetime.open-picker' | sdTranslate\"\r\n (click)=\"open()\">\r\n <sd-icon name=\"today\"></sd-icon>\r\n </button>\r\n </mat-form-field>\r\n\r\n <sd-datetime-picker\r\n [showSeconds]=\"showSeconds()\"\r\n [disabled]=\"formControl.disabled\"\r\n [minDate]=\"_resolvedMin\"\r\n [maxDate]=\"_resolvedMax\"\r\n [startAt]=\"_viewedDate\"\r\n (applied)=\"onPickerConfirm($event)\">\r\n <sd-datetime-picker-actions>\r\n <button mat-button type=\"button\" sdDatetimePickerNow>\r\n <sd-icon name=\"schedule\"></sd-icon>\r\n <span>{{ 'core.form.datetime.now' | sdTranslate }}</span>\r\n </button>\r\n <button mat-button type=\"button\" sdDatetimePickerCancel>{{ 'core.common.cancel' | sdTranslate }}</button>\r\n <button mat-flat-button type=\"button\" sdDatetimePickerApply>{{ 'core.form.datetime.confirm' | sdTranslate }}</button>\r\n </sd-datetime-picker-actions>\r\n </sd-datetime-picker>\r\n </div>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ɵsdInjectDateTime","parseDate","isValidDate","SdMaterialDatetimePicker","ɵsdTimerScope","ɵsdModelFacingControl","ɵsdParseTransformedInstant","ɵsdFormControlConnector"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;;;;;AAMG;AAEG,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;IACvD,SAAS,GAAGA,iBAAiB,EAAE;IAE/B,KAAK,GAAA;QACZ,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ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gBAAwB;wBACxB,uBAAuB;wBACvB,qBAAqB;wBACrB,sBAAsB;wBACtB,mBAAmB;AACpB,qBAAA,EAAA,QAAA,EAAA,oxPAAA,EAAA,MAAA,EAAA,CAAA,8oQAAA,CAAA,EAAA;;;AEjKH;;AAEG;;;;"}
@@ -1,5 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, TemplateRef, Directive } from '@angular/core';
2
+ import { inject, TemplateRef, Directive, ElementRef, signal, input, booleanAttribute, output, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { SdTranslatePipe } from '@sdcorejs/angular/i18n';
4
+ import { SdIcon } from '@sdcorejs/angular/modules/icon';
3
5
 
4
6
  class SdSuffixDefDirective {
5
7
  templateRef = inject(TemplateRef);
@@ -59,9 +61,87 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
59
61
  }]
60
62
  }] });
61
63
 
64
+ /**
65
+ * Gắn lên `<input>` thật được chiếu vào `<sd-search-field>`. Chỉ đọc trạng thái của input (có giá trị,
66
+ * disabled) cho khung; mọi binding, phím và accessible name vẫn đặt ở nơi dùng.
67
+ *
68
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
69
+ */
70
+ class ɵSdSearchFieldInputDirective {
71
+ #element = inject(ElementRef).nativeElement;
72
+ #hasValue = signal(false);
73
+ #disabled = signal(false);
74
+ hasValue = this.#hasValue.asReadonly();
75
+ disabled = this.#disabled.asReadonly();
76
+ // why: value/disabled thường đến qua property binding của nơi dùng (`[value]`, `[disabled]`), không phát
77
+ // event nào — đọc lại sau mỗi lượt check của view chứa input. Gõ phím thì đã có `(input)`.
78
+ ngDoCheck() {
79
+ this.sync();
80
+ }
81
+ focus() {
82
+ this.#element.focus();
83
+ }
84
+ sync() {
85
+ this.#hasValue.set(this.#element.value !== '');
86
+ this.#disabled.set(this.#element.disabled);
87
+ }
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: ɵSdSearchFieldInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
89
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.21", type: ɵSdSearchFieldInputDirective, isStandalone: true, selector: "input[sdSearchFieldInput]", host: { listeners: { "input": "sync()" } }, ngImport: i0 });
90
+ }
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: ɵSdSearchFieldInputDirective, decorators: [{
92
+ type: Directive,
93
+ args: [{
94
+ selector: 'input[sdSearchFieldInput]',
95
+ host: { '(input)': 'sync()' },
96
+ }]
97
+ }] });
98
+ /**
99
+ * Khung ô tìm kiếm dùng chung cho các ô tự viết (kanban, quick search của table, palette form builder,
100
+ * ô lọc trong panel sd-select). Primitive chỉ lo hình dạng: cỡ, viền/focus theo token control, icon
101
+ * `search`, nút xoá và slot cuối `[sdSearchFieldEnd]`. Logic (debounce, Enter để áp dụng, Escape để xoá)
102
+ * thuộc component dùng nó.
103
+ *
104
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
105
+ */
106
+ class ɵSdSearchField {
107
+ #host = inject(ElementRef).nativeElement;
108
+ size = input('md');
109
+ /** Hiện nút xoá khi input có giá trị. Nút chỉ phát `cleared`; xoá giá trị là việc của nơi dùng. */
110
+ clearable = input(false, { transform: booleanAttribute });
111
+ /** Accessible name của nút xoá; mặc định là key `core.form.search-field.clear`. */
112
+ clearLabel = input();
113
+ /** Nút xoá nhận `data-autoid="<autoId>-clear"`. */
114
+ autoId = input();
115
+ cleared = output();
116
+ // why: query signal không đặt được trên field ES private (#).
117
+ searchInput = contentChild(ɵSdSearchFieldInputDirective);
118
+ disabled = computed(() => this.searchInput()?.disabled() ?? false);
119
+ showClear = computed(() => this.clearable() && (this.searchInput()?.hasValue() ?? false));
120
+ // why: các ô cũ bọc input bằng <label>, nên bấm vào icon hay phần đệm cũng focus ô nhập — giữ hành vi đó.
121
+ // Nút xoá, slot cuối và chính input tự xử lý click của chúng.
122
+ focusInput(event) {
123
+ const hit = event.target?.closest('input, button, a, [sdSearchFieldEnd]');
124
+ if (hit && this.#host.contains(hit))
125
+ return;
126
+ this.searchInput()?.focus();
127
+ }
128
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: ɵSdSearchField, deps: [], target: i0.ɵɵFactoryTarget.Component });
129
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: ɵSdSearchField, isStandalone: true, selector: "sd-search-field", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, autoId: { classPropertyName: "autoId", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cleared: "cleared" }, host: { listeners: { "click": "focusInput($event)" }, properties: { "class.sd-sm": "size() === 'sm'", "class.sd-md": "size() !== 'sm'", "class.sd-disabled": "disabled()" }, classAttribute: "sd-search-field" }, queries: [{ propertyName: "searchInput", first: true, predicate: ɵSdSearchFieldInputDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@let _sm = size() === 'sm';\n@let _autoId = autoId();\n<sd-icon class=\"sd-search-field__icon\" name=\"search\" [size]=\"_sm ? '18px' : '20px'\" aria-hidden=\"true\" />\n<ng-content />\n@if (showClear()) {\n <button\n class=\"sd-search-field__clear\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-clear' : null\"\n [attr.aria-label]=\"clearLabel() || ('core.form.search-field.clear' | sdTranslate)\"\n (click)=\"cleared.emit()\">\n <sd-icon name=\"close\" [size]=\"_sm ? '16px' : '18px'\" aria-hidden=\"true\" />\n </button>\n}\n<ng-content select=\"[sdSearchFieldEnd]\" />\n", styles: [":host{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-width:0;height:var(--sd-control-height-md, 40px);padding:0 12px;background:var(--sd-surface);color:var(--sd-text-secondary);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);border:1px solid var(--sd-control-border, var(--sd-border));border-radius:var(--sd-control-radius, 8px)}:host:hover{border-color:var(--sd-control-border-hover, var(--sd-border-strong))}:host:focus-within{border-color:var(--sd-control-border-focus, var(--sd-primary));box-shadow:var(--sd-control-ring, none);outline:none}@media(forced-colors:active){:host:focus-within{--sd-control-focus-ring: Highlight;outline:2px solid var(--sd-control-focus-ring);outline-offset:2px}}:host(.sd-sm){height:var(--sd-control-height-sm, 32px);padding:0 8px;gap:6px}:host(.sd-disabled){border-color:var(--sd-control-border-disabled, var(--sd-border));background:var(--sd-surface-muted);color:var(--sd-disabled-text)}.sd-search-field__icon{flex:0 0 auto}:host ::ng-deep input[sdSearchFieldInput]{flex:1 1 auto;width:100%;min-width:0;margin:0;padding:0;border:0;outline:none;background:transparent;color:var(--sd-text);font:inherit}:host ::ng-deep input[sdSearchFieldInput]::placeholder{color:var(--sd-text-secondary);opacity:1}:host ::ng-deep input[sdSearchFieldInput]:disabled{color:inherit}:host ::ng-deep input[sdSearchFieldInput]:disabled::placeholder{color:inherit}.sd-search-field__clear{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:var(--sd-search-field-clear-size, 28px);height:var(--sd-search-field-clear-size, 28px);margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.sd-search-field__clear:hover:not(:disabled){background:color-mix(in srgb,var(--sd-text) 8%,transparent)}.sd-search-field__clear:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color);outline-offset:2px}.sd-search-field__clear:disabled{cursor:default}:host(.sd-sm) .sd-search-field__clear{width:var(--sd-search-field-clear-size, 24px);height:var(--sd-search-field-clear-size, 24px)}@media(pointer:coarse){:host{min-height:var(--sd-control-height-coarse, 44px);font-size:var(--sd-font-size-16, 16px)}:host .sd-search-field__clear,:host(.sd-sm) .sd-search-field__clear{width:var(--sd-search-field-clear-size, 40px);height:var(--sd-search-field-clear-size, 40px)}}\n"], dependencies: [{ kind: "component", type: SdIcon, selector: "sd-icon", inputs: ["name", "fontIcon", "color", "set", "fontSet", "size", "strokeWidth", "absoluteStrokeWidth", "ariaLabel"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
130
+ }
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: ɵSdSearchField, decorators: [{
132
+ type: Component,
133
+ args: [{ selector: 'sd-search-field', imports: [SdIcon, SdTranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, host: {
134
+ class: 'sd-search-field',
135
+ '[class.sd-sm]': "size() === 'sm'",
136
+ '[class.sd-md]': "size() !== 'sm'",
137
+ '[class.sd-disabled]': 'disabled()',
138
+ '(click)': 'focusInput($event)',
139
+ }, template: "@let _sm = size() === 'sm';\n@let _autoId = autoId();\n<sd-icon class=\"sd-search-field__icon\" name=\"search\" [size]=\"_sm ? '18px' : '20px'\" aria-hidden=\"true\" />\n<ng-content />\n@if (showClear()) {\n <button\n class=\"sd-search-field__clear\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-clear' : null\"\n [attr.aria-label]=\"clearLabel() || ('core.form.search-field.clear' | sdTranslate)\"\n (click)=\"cleared.emit()\">\n <sd-icon name=\"close\" [size]=\"_sm ? '16px' : '18px'\" aria-hidden=\"true\" />\n </button>\n}\n<ng-content select=\"[sdSearchFieldEnd]\" />\n", styles: [":host{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-width:0;height:var(--sd-control-height-md, 40px);padding:0 12px;background:var(--sd-surface);color:var(--sd-text-secondary);font-size:var(--sd-font-size-14, 14px);line-height:var(--sd-line-height-20, 20px);border:1px solid var(--sd-control-border, var(--sd-border));border-radius:var(--sd-control-radius, 8px)}:host:hover{border-color:var(--sd-control-border-hover, var(--sd-border-strong))}:host:focus-within{border-color:var(--sd-control-border-focus, var(--sd-primary));box-shadow:var(--sd-control-ring, none);outline:none}@media(forced-colors:active){:host:focus-within{--sd-control-focus-ring: Highlight;outline:2px solid var(--sd-control-focus-ring);outline-offset:2px}}:host(.sd-sm){height:var(--sd-control-height-sm, 32px);padding:0 8px;gap:6px}:host(.sd-disabled){border-color:var(--sd-control-border-disabled, var(--sd-border));background:var(--sd-surface-muted);color:var(--sd-disabled-text)}.sd-search-field__icon{flex:0 0 auto}:host ::ng-deep input[sdSearchFieldInput]{flex:1 1 auto;width:100%;min-width:0;margin:0;padding:0;border:0;outline:none;background:transparent;color:var(--sd-text);font:inherit}:host ::ng-deep input[sdSearchFieldInput]::placeholder{color:var(--sd-text-secondary);opacity:1}:host ::ng-deep input[sdSearchFieldInput]:disabled{color:inherit}:host ::ng-deep input[sdSearchFieldInput]:disabled::placeholder{color:inherit}.sd-search-field__clear{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:var(--sd-search-field-clear-size, 28px);height:var(--sd-search-field-clear-size, 28px);margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.sd-search-field__clear:hover:not(:disabled){background:color-mix(in srgb,var(--sd-text) 8%,transparent)}.sd-search-field__clear:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color);outline-offset:2px}.sd-search-field__clear:disabled{cursor:default}:host(.sd-sm) .sd-search-field__clear{width:var(--sd-search-field-clear-size, 24px);height:var(--sd-search-field-clear-size, 24px)}@media(pointer:coarse){:host{min-height:var(--sd-control-height-coarse, 44px);font-size:var(--sd-font-size-16, 16px)}:host .sd-search-field__clear,:host(.sd-sm) .sd-search-field__clear{width:var(--sd-search-field-clear-size, 40px);height:var(--sd-search-field-clear-size, 40px)}}\n"] }]
140
+ }] });
141
+
62
142
  /**
63
143
  * Generated bundle index. Do not edit.
64
144
  */
65
145
 
66
- export { SdItemDefDefDirective, SdLabelDefDirective, SdSuffixDefDirective, SdViewDefDirective };
146
+ export { SdItemDefDefDirective, SdLabelDefDirective, SdSuffixDefDirective, SdViewDefDirective, ɵSdSearchField, ɵSdSearchFieldInputDirective };
67
147
  //# sourceMappingURL=sdcorejs-angular-forms-directives.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-forms-directives.mjs","sources":["../../../projects/sdcorejs-angular/forms/directives/src/suffix-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/label-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/view-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/item-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/sdcorejs-angular-forms-directives.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\ntype Context = Record<string, never>;\n\n@Directive({\n selector: '[sdSuffixDef]',\n standalone: true,\n})\nexport class SdSuffixDefDirective {\n readonly templateRef: TemplateRef<Context> = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\ntype Context = Record<string, never>;\n\n@Directive({\n selector: '[sdLabelDef]',\n standalone: true,\n})\nexport class SdLabelDefDirective {\n readonly templateRef: TemplateRef<Context> = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\ninterface Context<TValue = unknown, TItem = unknown> {\n value?: TValue | null;\n selectedItem?: TItem | null;\n selectedItems?: TItem[] | null;\n}\n\n@Directive({\n selector: '[sdViewDef]',\n standalone: true,\n})\nexport class SdViewDefDirective<TValue = unknown, TItem = unknown> {\n static ngTemplateContextGuard<TValue, TItem>(_dir: SdViewDefDirective<TValue, TItem>, _ctx: unknown): _ctx is Context<TValue, TItem> {\n return true;\n }\n\n readonly templateRef: TemplateRef<Context<TValue, TItem>> = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\ninterface Context<T = unknown> {\n $implicit?: T;\n item: T;\n}\n\n@Directive({\n selector: '[sdItemDef]',\n standalone: true,\n})\nexport class SdItemDefDefDirective<T = unknown> {\n static ngTemplateContextGuard<T>(_dir: SdItemDefDefDirective<T>, _ctx: unknown): _ctx is Context<T> {\n return true;\n }\n\n readonly templateRef: TemplateRef<Context<T>> = inject(TemplateRef);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,oBAAoB,CAAA;AACtB,IAAA,WAAW,GAAyB,MAAM,CAAC,WAAW,CAAC;wGADrD,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;MCCY,mBAAmB,CAAA;AACrB,IAAA,WAAW,GAAyB,MAAM,CAAC,WAAW,CAAC;wGADrD,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;MCKY,kBAAkB,CAAA;AAC7B,IAAA,OAAO,sBAAsB,CAAgB,IAAuC,EAAE,IAAa,EAAA;AACjG,QAAA,OAAO,IAAI;IACb;AAES,IAAA,WAAW,GAAwC,MAAM,CAAC,WAAW,CAAC;wGALpE,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;MCAY,qBAAqB,CAAA;AAChC,IAAA,OAAO,sBAAsB,CAAI,IAA8B,EAAE,IAAa,EAAA;AAC5E,QAAA,OAAO,IAAI;IACb;AAES,IAAA,WAAW,GAA4B,MAAM,CAAC,WAAW,CAAC;wGALxD,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"sdcorejs-angular-forms-directives.mjs","sources":["../../../projects/sdcorejs-angular/forms/directives/src/suffix-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/label-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/view-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/item-def.directive.ts","../../../projects/sdcorejs-angular/forms/directives/src/search-field.component.ts","../../../projects/sdcorejs-angular/forms/directives/src/search-field.component.html","../../../projects/sdcorejs-angular/forms/directives/sdcorejs-angular-forms-directives.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\ntype Context = Record<string, never>;\n\n@Directive({\n selector: '[sdSuffixDef]',\n standalone: true,\n})\nexport class SdSuffixDefDirective {\n readonly templateRef: TemplateRef<Context> = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\ntype Context = Record<string, never>;\n\n@Directive({\n selector: '[sdLabelDef]',\n standalone: true,\n})\nexport class SdLabelDefDirective {\n readonly templateRef: TemplateRef<Context> = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\ninterface Context<TValue = unknown, TItem = unknown> {\n value?: TValue | null;\n selectedItem?: TItem | null;\n selectedItems?: TItem[] | null;\n}\n\n@Directive({\n selector: '[sdViewDef]',\n standalone: true,\n})\nexport class SdViewDefDirective<TValue = unknown, TItem = unknown> {\n static ngTemplateContextGuard<TValue, TItem>(_dir: SdViewDefDirective<TValue, TItem>, _ctx: unknown): _ctx is Context<TValue, TItem> {\n return true;\n }\n\n readonly templateRef: TemplateRef<Context<TValue, TItem>> = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\ninterface Context<T = unknown> {\n $implicit?: T;\n item: T;\n}\n\n@Directive({\n selector: '[sdItemDef]',\n standalone: true,\n})\nexport class SdItemDefDefDirective<T = unknown> {\n static ngTemplateContextGuard<T>(_dir: SdItemDefDefDirective<T>, _ctx: unknown): _ctx is Context<T> {\n return true;\n }\n\n readonly templateRef: TemplateRef<Context<T>> = inject(TemplateRef);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n DoCheck,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdIcon } from '@sdcorejs/angular/modules/icon';\nimport { Size } from '@sdcorejs/utils/models';\n\nexport type ɵSdSearchFieldSize = Extract<Size, 'sm' | 'md'>;\n\n/**\n * Gắn lên `<input>` thật được chiếu vào `<sd-search-field>`. Chỉ đọc trạng thái của input (có giá trị,\n * disabled) cho khung; mọi binding, phím và accessible name vẫn đặt ở nơi dùng.\n *\n * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.\n */\n@Directive({\n selector: 'input[sdSearchFieldInput]',\n host: { '(input)': 'sync()' },\n})\nexport class ɵSdSearchFieldInputDirective implements DoCheck {\n readonly #element = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n readonly #hasValue = signal(false);\n readonly #disabled = signal(false);\n\n readonly hasValue = this.#hasValue.asReadonly();\n readonly disabled = this.#disabled.asReadonly();\n\n // why: value/disabled thường đến qua property binding của nơi dùng (`[value]`, `[disabled]`), không phát\n // event nào — đọc lại sau mỗi lượt check của view chứa input. Gõ phím thì đã có `(input)`.\n ngDoCheck(): void {\n this.sync();\n }\n\n focus(): void {\n this.#element.focus();\n }\n\n sync(): void {\n this.#hasValue.set(this.#element.value !== '');\n this.#disabled.set(this.#element.disabled);\n }\n}\n\n/**\n * Khung ô tìm kiếm dùng chung cho các ô tự viết (kanban, quick search của table, palette form builder,\n * ô lọc trong panel sd-select). Primitive chỉ lo hình dạng: cỡ, viền/focus theo token control, icon\n * `search`, nút xoá và slot cuối `[sdSearchFieldEnd]`. Logic (debounce, Enter để áp dụng, Escape để xoá)\n * thuộc component dùng nó.\n *\n * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.\n */\n@Component({\n selector: 'sd-search-field',\n imports: [SdIcon, SdTranslatePipe],\n templateUrl: './search-field.component.html',\n styleUrl: './search-field.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'sd-search-field',\n '[class.sd-sm]': \"size() === 'sm'\",\n '[class.sd-md]': \"size() !== 'sm'\",\n '[class.sd-disabled]': 'disabled()',\n '(click)': 'focusInput($event)',\n },\n})\nexport class ɵSdSearchField {\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n readonly size = input<ɵSdSearchFieldSize>('md');\n /** Hiện nút xoá khi input có giá trị. Nút chỉ phát `cleared`; xoá giá trị là việc của nơi dùng. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** Accessible name của nút xoá; mặc định là key `core.form.search-field.clear`. */\n readonly clearLabel = input<string>();\n /** Nút xoá nhận `data-autoid=\"<autoId>-clear\"`. */\n readonly autoId = input<string>();\n readonly cleared = output<void>();\n\n // why: query signal không đặt được trên field ES private (#).\n private readonly searchInput = contentChild(ɵSdSearchFieldInputDirective);\n\n protected readonly disabled = computed(() => this.searchInput()?.disabled() ?? false);\n protected readonly showClear = computed(() => this.clearable() && (this.searchInput()?.hasValue() ?? false));\n\n // why: các ô cũ bọc input bằng <label>, nên bấm vào icon hay phần đệm cũng focus ô nhập — giữ hành vi đó.\n // Nút xoá, slot cuối và chính input tự xử lý click của chúng.\n protected focusInput(event: MouseEvent): void {\n const hit = (event.target as Element | null)?.closest('input, button, a, [sdSearchFieldEnd]');\n if (hit && this.#host.contains(hit)) return;\n this.searchInput()?.focus();\n }\n}\n","@let _sm = size() === 'sm';\n@let _autoId = autoId();\n<sd-icon class=\"sd-search-field__icon\" name=\"search\" [size]=\"_sm ? '18px' : '20px'\" aria-hidden=\"true\" />\n<ng-content />\n@if (showClear()) {\n <button\n class=\"sd-search-field__clear\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.data-autoid]=\"_autoId ? _autoId + '-clear' : null\"\n [attr.aria-label]=\"clearLabel() || ('core.form.search-field.clear' | sdTranslate)\"\n (click)=\"cleared.emit()\">\n <sd-icon name=\"close\" [size]=\"_sm ? '16px' : '18px'\" aria-hidden=\"true\" />\n </button>\n}\n<ng-content select=\"[sdSearchFieldEnd]\" />\n","/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A,qoBAAA,EAAA,MAAA,EAAA,CAAA,g3EAAA,CAAA,EAAA;;;AE1EH;;AAEG;;;;"}
@@ -367,7 +367,7 @@ class SdEntityPicker {
367
367
  return keys.some(value => this.compareWith()(value, key));
368
368
  }
369
369
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdEntityPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
370
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdEntityPicker, isStandalone: true, selector: "sd-entity-picker", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, modalTitle: { classPropertyName: "modalTitle", publicName: "modalTitle", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, queryFields: { classPropertyName: "queryFields", publicName: "queryFields", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, keySelector: { classPropertyName: "keySelector", publicName: "keySelector", isSignal: true, isRequired: false, transformFunction: null }, displayField: { classPropertyName: "displayField", publicName: "displayField", isSignal: true, isRequired: false, transformFunction: null }, displayWith: { classPropertyName: "displayWith", publicName: "displayWith", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, disabledEntity: { classPropertyName: "disabledEntity", publicName: "disabledEntity", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, addable: { classPropertyName: "addable", publicName: "addable", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { model: "modelChange", sdChange: "sdChange", sdAdd: "sdAdd", loadError: "loadError" }, host: { properties: { "class.sd-viewed": "connectorState().isViewed", "class.sd-inline": "connectorState().isInline", "attr.data-disabled": "formControl.disabled" } }, queries: [{ propertyName: "selectedTemplate", first: true, predicate: (SdEntityPickerSelectedTemplateDirective), descendants: true, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: (SdEntityPickerRowTemplateDirective), descendants: true, isSignal: true }, { propertyName: "detailTemplate", first: true, predicate: (SdEntityPickerDetailTemplateDirective), descendants: true, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "modal", first: true, predicate: SdModal, descendants: true, isSignal: true }, { propertyName: "table", first: true, predicate: (SdTable), descendants: true, isSignal: true }], ngImport: i0, template: "@let _selectedTemplate = selectedTemplate();\n@let _detailTemplate = detailTemplate();\n@let _errorMessage = visibleErrorMessage();\n\n<div class=\"sd-entity-picker__control\">\n @if (connectorState().isViewed) {\n <div data-entity-picker-view class=\"sd-entity-picker__view\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n {{ displayText() || '\u2014' }}\n }\n </div>\n } @else {\n <button\n #trigger\n type=\"button\"\n data-entity-picker-trigger\n class=\"sd-entity-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() || label() || effectivePlaceholder()\"\n [attr.aria-expanded]=\"modal()?.isOpened() ?? false\"\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\n [disabled]=\"formControl.disabled || readonly()\"\n (click)=\"open()\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n <span [class.sd-entity-picker__placeholder]=\"!displayText()\">{{ displayText() || effectivePlaceholder() }}</span>\n }\n </button>\n @if (clearable() && modelKeys().length > 0 && !formControl.disabled && !readonly()) {\n <button\n type=\"button\"\n class=\"sd-entity-picker__clear\"\n [attr.aria-label]=\"'core.form.entity-picker.clear' | sdTranslate\"\n (click)=\"clear($event)\">\n \u00D7\n </button>\n }\n }\n</div>\n\n@if (_errorMessage) {\n <div [id]=\"errorId\" data-entity-picker-error class=\"sd-entity-picker__error\" role=\"alert\">{{ _errorMessage }}</div>\n}\n\n<sd-modal [autoId]=\"autoId()\" [title]=\"effectiveModalTitle()\" width=\"lg\" (sdClosed)=\"onModalClosed()\">\n <div class=\"sd-entity-picker__body\">\n <sd-query-bar\n [fields]=\"queryFields()\"\n [filters]=\"query().filters\"\n [search]=\"query().search ?? ''\"\n showSearch\n (queryChange)=\"onQueryChange($event)\" />\n\n @if (loadErrorState()) {\n <sd-data-state state=\"error\" compact retryable (sdRetry)=\"retry()\"></sd-data-state>\n } @else {\n <sd-table [option]=\"tableOption()\"></sd-table>\n }\n\n @if (_detailTemplate) {\n <div class=\"sd-entity-picker__detail\">\n <ng-container [ngTemplateOutlet]=\"_detailTemplate.template\" [ngTemplateOutletContext]=\"detailTemplateContext()\"></ng-container>\n </div>\n }\n </div>\n\n @if (addable()) {\n <button type=\"button\" sdFooterLeft data-entity-picker-add (click)=\"add()\">{{ 'core.form.entity-picker.add' | sdTranslate }}</button>\n }\n <button type=\"button\" sdFooterRight data-entity-picker-cancel (click)=\"cancel()\">\n {{ 'core.form.entity-picker.cancel' | sdTranslate }}\n </button>\n <button type=\"button\" sdFooterRight data-entity-picker-apply (click)=\"applySelection()\">\n {{ 'core.form.entity-picker.apply' | sdTranslate }}\n </button>\n</sd-modal>\n", styles: [":host{display:block;min-width:0}.sd-entity-picker__control{display:flex;align-items:center;min-width:0;border:1px solid var(--sd-border, #d0d5dd);border-radius:var(--sd-radius-6, 6px);background:var(--sd-entity-picker-bg, #ffffff)}.sd-entity-picker__trigger,.sd-entity-picker__view{flex:1 1 auto;min-width:0;min-height:40px;padding:9px 12px;border:0;background:transparent;color:var(--sd-text, #2f3136);font:inherit;text-align:start}.sd-entity-picker__trigger{cursor:pointer}.sd-entity-picker__trigger:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-entity-picker__trigger:disabled{cursor:default;opacity:.6}.sd-entity-picker__placeholder{color:var(--sd-text-secondary, #667085)}.sd-entity-picker__clear{flex:0 0 36px;min-height:36px;border:0;background:transparent;font:inherit;cursor:pointer}.sd-entity-picker__error{margin-top:4px;color:var(--sd-error, #d92d20);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px)}.sd-entity-picker__body{display:grid;gap:12px;min-height:320px}.sd-entity-picker__detail{padding:12px;border-top:1px solid var(--sd-border, #d0d5dd)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdQueryBar, selector: "sd-query-bar", inputs: ["option", "autoId", "fields", "filters", "logic", "search", "mode", "density", "showSearch", "showSavedFilters", "savedFiltersKey", "showLogicToggle", "showClearAll", "showOperatorOnChip"], outputs: ["filtersChange", "logicChange", "searchChange", "queryChange", "apply"] }, { kind: "component", type: SdTable, selector: "sd-table", inputs: ["autoId", "option", "hideReadError"], outputs: ["sdReadStateChange"] }, { kind: "component", type: SdDataState, selector: "sd-data-state", inputs: ["state", "title", "message", "icon", "fontSet", "iconShape", "retryable", "retryLabel", "actionLabel", "compact", "fullPage"], outputs: ["sdRetry", "sdAction"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
370
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdEntityPicker, isStandalone: true, selector: "sd-entity-picker", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, modalTitle: { classPropertyName: "modalTitle", publicName: "modalTitle", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, queryFields: { classPropertyName: "queryFields", publicName: "queryFields", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, keySelector: { classPropertyName: "keySelector", publicName: "keySelector", isSignal: true, isRequired: false, transformFunction: null }, displayField: { classPropertyName: "displayField", publicName: "displayField", isSignal: true, isRequired: false, transformFunction: null }, displayWith: { classPropertyName: "displayWith", publicName: "displayWith", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, disabledEntity: { classPropertyName: "disabledEntity", publicName: "disabledEntity", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, addable: { classPropertyName: "addable", publicName: "addable", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { model: "modelChange", sdChange: "sdChange", sdAdd: "sdAdd", loadError: "loadError" }, host: { properties: { "class.sd-viewed": "connectorState().isViewed", "class.sd-inline": "connectorState().isInline", "attr.data-disabled": "formControl.disabled" } }, queries: [{ propertyName: "selectedTemplate", first: true, predicate: (SdEntityPickerSelectedTemplateDirective), descendants: true, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: (SdEntityPickerRowTemplateDirective), descendants: true, isSignal: true }, { propertyName: "detailTemplate", first: true, predicate: (SdEntityPickerDetailTemplateDirective), descendants: true, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "modal", first: true, predicate: SdModal, descendants: true, isSignal: true }, { propertyName: "table", first: true, predicate: (SdTable), descendants: true, isSignal: true }], ngImport: i0, template: "@let _selectedTemplate = selectedTemplate();\n@let _detailTemplate = detailTemplate();\n@let _errorMessage = visibleErrorMessage();\n\n<div class=\"sd-entity-picker__control\" [class.sd-entity-picker__control--invalid]=\"!!_errorMessage\">\n @if (connectorState().isViewed) {\n <div data-entity-picker-view class=\"sd-entity-picker__view\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n {{ displayText() || '\u2014' }}\n }\n </div>\n } @else {\n <button\n #trigger\n type=\"button\"\n data-entity-picker-trigger\n class=\"sd-entity-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() || label() || effectivePlaceholder()\"\n [attr.aria-expanded]=\"modal()?.isOpened() ?? false\"\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\n [disabled]=\"formControl.disabled || readonly()\"\n (click)=\"open()\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n <span [class.sd-entity-picker__placeholder]=\"!displayText()\">{{ displayText() || effectivePlaceholder() }}</span>\n }\n </button>\n @if (clearable() && modelKeys().length > 0 && !formControl.disabled && !readonly()) {\n <button\n type=\"button\"\n class=\"sd-entity-picker__clear\"\n [attr.aria-label]=\"'core.form.entity-picker.clear' | sdTranslate\"\n (click)=\"clear($event)\">\n \u00D7\n </button>\n }\n }\n</div>\n\n@if (_errorMessage) {\n <div [id]=\"errorId\" data-entity-picker-error class=\"sd-entity-picker__error\" role=\"alert\">{{ _errorMessage }}</div>\n}\n\n<sd-modal [autoId]=\"autoId()\" [title]=\"effectiveModalTitle()\" width=\"lg\" (sdClosed)=\"onModalClosed()\">\n <div class=\"sd-entity-picker__body\">\n <sd-query-bar\n [fields]=\"queryFields()\"\n [filters]=\"query().filters\"\n [search]=\"query().search ?? ''\"\n showSearch\n (queryChange)=\"onQueryChange($event)\" />\n\n @if (loadErrorState()) {\n <sd-data-state state=\"error\" compact retryable (sdRetry)=\"retry()\"></sd-data-state>\n } @else {\n <sd-table [option]=\"tableOption()\"></sd-table>\n }\n\n @if (_detailTemplate) {\n <div class=\"sd-entity-picker__detail\">\n <ng-container [ngTemplateOutlet]=\"_detailTemplate.template\" [ngTemplateOutletContext]=\"detailTemplateContext()\"></ng-container>\n </div>\n }\n </div>\n\n @if (addable()) {\n <button type=\"button\" sdFooterLeft data-entity-picker-add (click)=\"add()\">{{ 'core.form.entity-picker.add' | sdTranslate }}</button>\n }\n <button type=\"button\" sdFooterRight data-entity-picker-cancel (click)=\"cancel()\">\n {{ 'core.form.entity-picker.cancel' | sdTranslate }}\n </button>\n <button type=\"button\" sdFooterRight data-entity-picker-apply (click)=\"applySelection()\">\n {{ 'core.form.entity-picker.apply' | sdTranslate }}\n </button>\n</sd-modal>\n", styles: [":host{display:block;min-width:0}.sd-entity-picker__control{display:flex;align-items:center;min-width:0;background:var(--sd-entity-picker-bg, #ffffff);border:1px solid var(--sd-control-border, var(--sd-border));border-radius:var(--sd-control-radius, 8px)}.sd-entity-picker__control:hover{border-color:var(--sd-control-border-hover, var(--sd-border-strong))}.sd-entity-picker__control:focus-within{border-color:var(--sd-control-border-focus, var(--sd-primary));box-shadow:var(--sd-control-ring, none);outline:none}@media(forced-colors:active){.sd-entity-picker__control:focus-within{--sd-control-focus-ring: Highlight;outline:2px solid var(--sd-control-focus-ring);outline-offset:2px}}.sd-entity-picker__control--invalid,.sd-entity-picker__control--invalid:hover,.sd-entity-picker__control--invalid:focus-within{border-color:var(--sd-error)}.sd-entity-picker__control--invalid:focus-within{box-shadow:var(--sd-control-ring-error, none)}:host(.sd-viewed) .sd-entity-picker__control{border-color:transparent}:host([data-disabled=true]) .sd-entity-picker__control{border-color:var(--sd-control-border-disabled, var(--sd-border));background:var(--sd-control-bg-disabled, var(--sd-disabled-bg))}.sd-entity-picker__trigger,.sd-entity-picker__view{flex:1 1 auto;min-width:0;min-height:40px;padding:9px 12px;border:0;background:transparent;color:var(--sd-text, #2f3136);font:inherit;text-align:start}.sd-entity-picker__trigger{cursor:pointer}.sd-entity-picker__trigger:focus-visible{outline:none}.sd-entity-picker__trigger:disabled{cursor:default;opacity:.6}.sd-entity-picker__placeholder{color:var(--sd-text-secondary, #667085)}.sd-entity-picker__clear{flex:0 0 36px;min-height:36px;border:0;background:transparent;font:inherit;cursor:pointer}.sd-entity-picker__error{margin-top:4px;color:var(--sd-error, #d92d20);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px)}.sd-entity-picker__body{display:grid;gap:12px;min-height:320px}.sd-entity-picker__detail{padding:12px;border-top:1px solid var(--sd-border, #d0d5dd)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }, { kind: "component", type: SdModal, selector: "sd-modal", inputs: ["autoId", "title", "color", "width", "height", "view", "modalClass", "lazyLoadContent", "hideClose", "disableBackdropClose", "beforeClose"], outputs: ["sdClosed", "sdCloseError"] }, { kind: "component", type: SdQueryBar, selector: "sd-query-bar", inputs: ["option", "autoId", "fields", "filters", "logic", "search", "mode", "density", "showSearch", "showSavedFilters", "savedFiltersKey", "showLogicToggle", "showClearAll", "showOperatorOnChip"], outputs: ["filtersChange", "logicChange", "searchChange", "queryChange", "apply"] }, { kind: "component", type: SdTable, selector: "sd-table", inputs: ["autoId", "option", "hideReadError"], outputs: ["sdReadStateChange"] }, { kind: "component", type: SdDataState, selector: "sd-data-state", inputs: ["state", "title", "message", "icon", "fontSet", "iconShape", "retryable", "retryLabel", "actionLabel", "compact", "fullPage"], outputs: ["sdRetry", "sdAction"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
371
371
  }
372
372
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdEntityPicker, decorators: [{
373
373
  type: Component,
@@ -375,7 +375,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
375
375
  '[class.sd-viewed]': 'connectorState().isViewed',
376
376
  '[class.sd-inline]': 'connectorState().isInline',
377
377
  '[attr.data-disabled]': 'formControl.disabled',
378
- }, template: "@let _selectedTemplate = selectedTemplate();\n@let _detailTemplate = detailTemplate();\n@let _errorMessage = visibleErrorMessage();\n\n<div class=\"sd-entity-picker__control\">\n @if (connectorState().isViewed) {\n <div data-entity-picker-view class=\"sd-entity-picker__view\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n {{ displayText() || '\u2014' }}\n }\n </div>\n } @else {\n <button\n #trigger\n type=\"button\"\n data-entity-picker-trigger\n class=\"sd-entity-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() || label() || effectivePlaceholder()\"\n [attr.aria-expanded]=\"modal()?.isOpened() ?? false\"\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\n [disabled]=\"formControl.disabled || readonly()\"\n (click)=\"open()\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n <span [class.sd-entity-picker__placeholder]=\"!displayText()\">{{ displayText() || effectivePlaceholder() }}</span>\n }\n </button>\n @if (clearable() && modelKeys().length > 0 && !formControl.disabled && !readonly()) {\n <button\n type=\"button\"\n class=\"sd-entity-picker__clear\"\n [attr.aria-label]=\"'core.form.entity-picker.clear' | sdTranslate\"\n (click)=\"clear($event)\">\n \u00D7\n </button>\n }\n }\n</div>\n\n@if (_errorMessage) {\n <div [id]=\"errorId\" data-entity-picker-error class=\"sd-entity-picker__error\" role=\"alert\">{{ _errorMessage }}</div>\n}\n\n<sd-modal [autoId]=\"autoId()\" [title]=\"effectiveModalTitle()\" width=\"lg\" (sdClosed)=\"onModalClosed()\">\n <div class=\"sd-entity-picker__body\">\n <sd-query-bar\n [fields]=\"queryFields()\"\n [filters]=\"query().filters\"\n [search]=\"query().search ?? ''\"\n showSearch\n (queryChange)=\"onQueryChange($event)\" />\n\n @if (loadErrorState()) {\n <sd-data-state state=\"error\" compact retryable (sdRetry)=\"retry()\"></sd-data-state>\n } @else {\n <sd-table [option]=\"tableOption()\"></sd-table>\n }\n\n @if (_detailTemplate) {\n <div class=\"sd-entity-picker__detail\">\n <ng-container [ngTemplateOutlet]=\"_detailTemplate.template\" [ngTemplateOutletContext]=\"detailTemplateContext()\"></ng-container>\n </div>\n }\n </div>\n\n @if (addable()) {\n <button type=\"button\" sdFooterLeft data-entity-picker-add (click)=\"add()\">{{ 'core.form.entity-picker.add' | sdTranslate }}</button>\n }\n <button type=\"button\" sdFooterRight data-entity-picker-cancel (click)=\"cancel()\">\n {{ 'core.form.entity-picker.cancel' | sdTranslate }}\n </button>\n <button type=\"button\" sdFooterRight data-entity-picker-apply (click)=\"applySelection()\">\n {{ 'core.form.entity-picker.apply' | sdTranslate }}\n </button>\n</sd-modal>\n", styles: [":host{display:block;min-width:0}.sd-entity-picker__control{display:flex;align-items:center;min-width:0;border:1px solid var(--sd-border, #d0d5dd);border-radius:var(--sd-radius-6, 6px);background:var(--sd-entity-picker-bg, #ffffff)}.sd-entity-picker__trigger,.sd-entity-picker__view{flex:1 1 auto;min-width:0;min-height:40px;padding:9px 12px;border:0;background:transparent;color:var(--sd-text, #2f3136);font:inherit;text-align:start}.sd-entity-picker__trigger{cursor:pointer}.sd-entity-picker__trigger:focus-visible{outline:var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));outline-offset:2px}.sd-entity-picker__trigger:disabled{cursor:default;opacity:.6}.sd-entity-picker__placeholder{color:var(--sd-text-secondary, #667085)}.sd-entity-picker__clear{flex:0 0 36px;min-height:36px;border:0;background:transparent;font:inherit;cursor:pointer}.sd-entity-picker__error{margin-top:4px;color:var(--sd-error, #d92d20);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px)}.sd-entity-picker__body{display:grid;gap:12px;min-height:320px}.sd-entity-picker__detail{padding:12px;border-top:1px solid var(--sd-border, #d0d5dd)}\n"] }]
378
+ }, template: "@let _selectedTemplate = selectedTemplate();\n@let _detailTemplate = detailTemplate();\n@let _errorMessage = visibleErrorMessage();\n\n<div class=\"sd-entity-picker__control\" [class.sd-entity-picker__control--invalid]=\"!!_errorMessage\">\n @if (connectorState().isViewed) {\n <div data-entity-picker-view class=\"sd-entity-picker__view\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n {{ displayText() || '\u2014' }}\n }\n </div>\n } @else {\n <button\n #trigger\n type=\"button\"\n data-entity-picker-trigger\n class=\"sd-entity-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"ariaLabel() || label() || effectivePlaceholder()\"\n [attr.aria-expanded]=\"modal()?.isOpened() ?? false\"\n [attr.aria-invalid]=\"_errorMessage ? 'true' : null\"\n [attr.aria-describedby]=\"_errorMessage ? errorId : null\"\n [disabled]=\"formControl.disabled || readonly()\"\n (click)=\"open()\">\n @if (_selectedTemplate) {\n <ng-container [ngTemplateOutlet]=\"_selectedTemplate.template\" [ngTemplateOutletContext]=\"selectedTemplateContext()\"></ng-container>\n } @else {\n <span [class.sd-entity-picker__placeholder]=\"!displayText()\">{{ displayText() || effectivePlaceholder() }}</span>\n }\n </button>\n @if (clearable() && modelKeys().length > 0 && !formControl.disabled && !readonly()) {\n <button\n type=\"button\"\n class=\"sd-entity-picker__clear\"\n [attr.aria-label]=\"'core.form.entity-picker.clear' | sdTranslate\"\n (click)=\"clear($event)\">\n \u00D7\n </button>\n }\n }\n</div>\n\n@if (_errorMessage) {\n <div [id]=\"errorId\" data-entity-picker-error class=\"sd-entity-picker__error\" role=\"alert\">{{ _errorMessage }}</div>\n}\n\n<sd-modal [autoId]=\"autoId()\" [title]=\"effectiveModalTitle()\" width=\"lg\" (sdClosed)=\"onModalClosed()\">\n <div class=\"sd-entity-picker__body\">\n <sd-query-bar\n [fields]=\"queryFields()\"\n [filters]=\"query().filters\"\n [search]=\"query().search ?? ''\"\n showSearch\n (queryChange)=\"onQueryChange($event)\" />\n\n @if (loadErrorState()) {\n <sd-data-state state=\"error\" compact retryable (sdRetry)=\"retry()\"></sd-data-state>\n } @else {\n <sd-table [option]=\"tableOption()\"></sd-table>\n }\n\n @if (_detailTemplate) {\n <div class=\"sd-entity-picker__detail\">\n <ng-container [ngTemplateOutlet]=\"_detailTemplate.template\" [ngTemplateOutletContext]=\"detailTemplateContext()\"></ng-container>\n </div>\n }\n </div>\n\n @if (addable()) {\n <button type=\"button\" sdFooterLeft data-entity-picker-add (click)=\"add()\">{{ 'core.form.entity-picker.add' | sdTranslate }}</button>\n }\n <button type=\"button\" sdFooterRight data-entity-picker-cancel (click)=\"cancel()\">\n {{ 'core.form.entity-picker.cancel' | sdTranslate }}\n </button>\n <button type=\"button\" sdFooterRight data-entity-picker-apply (click)=\"applySelection()\">\n {{ 'core.form.entity-picker.apply' | sdTranslate }}\n </button>\n</sd-modal>\n", styles: [":host{display:block;min-width:0}.sd-entity-picker__control{display:flex;align-items:center;min-width:0;background:var(--sd-entity-picker-bg, #ffffff);border:1px solid var(--sd-control-border, var(--sd-border));border-radius:var(--sd-control-radius, 8px)}.sd-entity-picker__control:hover{border-color:var(--sd-control-border-hover, var(--sd-border-strong))}.sd-entity-picker__control:focus-within{border-color:var(--sd-control-border-focus, var(--sd-primary));box-shadow:var(--sd-control-ring, none);outline:none}@media(forced-colors:active){.sd-entity-picker__control:focus-within{--sd-control-focus-ring: Highlight;outline:2px solid var(--sd-control-focus-ring);outline-offset:2px}}.sd-entity-picker__control--invalid,.sd-entity-picker__control--invalid:hover,.sd-entity-picker__control--invalid:focus-within{border-color:var(--sd-error)}.sd-entity-picker__control--invalid:focus-within{box-shadow:var(--sd-control-ring-error, none)}:host(.sd-viewed) .sd-entity-picker__control{border-color:transparent}:host([data-disabled=true]) .sd-entity-picker__control{border-color:var(--sd-control-border-disabled, var(--sd-border));background:var(--sd-control-bg-disabled, var(--sd-disabled-bg))}.sd-entity-picker__trigger,.sd-entity-picker__view{flex:1 1 auto;min-width:0;min-height:40px;padding:9px 12px;border:0;background:transparent;color:var(--sd-text, #2f3136);font:inherit;text-align:start}.sd-entity-picker__trigger{cursor:pointer}.sd-entity-picker__trigger:focus-visible{outline:none}.sd-entity-picker__trigger:disabled{cursor:default;opacity:.6}.sd-entity-picker__placeholder{color:var(--sd-text-secondary, #667085)}.sd-entity-picker__clear{flex:0 0 36px;min-height:36px;border:0;background:transparent;font:inherit;cursor:pointer}.sd-entity-picker__error{margin-top:4px;color:var(--sd-error, #d92d20);font-size:var(--sd-font-size-12, 12px);line-height:var(--sd-line-height-16, 16px)}.sd-entity-picker__body{display:grid;gap:12px;min-height:320px}.sd-entity-picker__detail{padding:12px;border-top:1px solid var(--sd-border, #d0d5dd)}\n"] }]
379
379
  }], ctorParameters: () => [] });
380
380
  function normalizePickerKeys(value, multiple) {
381
381
  if (value == null)