@sdcorejs/angular 21.3.1 → 21.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 (386) 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/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
  17. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  18. package/fesm2022/sdcorejs-angular-components-avatar.mjs +142 -11
  19. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-components-badge.mjs +542 -24
  21. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-components-button.mjs +31 -3
  23. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  24. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
  25. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  26. package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
  27. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  28. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
  29. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
  30. package/fesm2022/sdcorejs-angular-components-editor.mjs +457 -756
  31. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  32. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
  33. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  34. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2118 -1159
  35. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  36. package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
  37. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  38. package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
  39. package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
  40. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
  41. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  42. package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
  43. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  44. package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
  45. package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
  46. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +177 -283
  47. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  48. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
  49. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  50. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  51. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  52. package/fesm2022/sdcorejs-angular-components-operator.mjs +260 -43
  53. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  54. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
  55. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  56. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
  57. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  58. package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
  59. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  60. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  61. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  62. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +559 -94
  64. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-table.mjs +1001 -119
  66. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
  68. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +887 -174
  70. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
  72. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-components-window.mjs +484 -0
  74. package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
  75. package/fesm2022/sdcorejs-angular-components.mjs +1 -0
  76. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
  78. package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
  79. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  80. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
  81. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  82. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
  83. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  84. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +457 -125
  85. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  86. package/fesm2022/sdcorejs-angular-forms-chip.mjs +414 -122
  87. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  88. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +79 -13
  89. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  90. package/fesm2022/sdcorejs-angular-forms-date.mjs +75 -18
  91. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  92. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
  93. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  94. package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
  95. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  96. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
  97. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  98. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
  99. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  100. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +56 -6
  101. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  102. package/fesm2022/sdcorejs-angular-forms-input.mjs +54 -7
  103. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  104. package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
  105. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  106. package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
  107. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  108. package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
  109. package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
  110. package/fesm2022/sdcorejs-angular-forms-select.mjs +87 -33
  111. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  112. package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
  113. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  114. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
  115. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  116. package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
  117. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  118. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  119. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  120. package/fesm2022/sdcorejs-angular-i18n.mjs +1745 -22
  121. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  122. package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
  123. package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
  124. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs +478 -0
  125. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs.map +1 -0
  126. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs +214 -0
  127. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map +1 -0
  128. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs +277 -0
  129. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map +1 -0
  130. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs +1556 -0
  131. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs.map +1 -0
  132. package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
  133. package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
  134. package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
  135. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  136. package/fesm2022/sdcorejs-angular-modules-layout.mjs +2055 -37
  137. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  138. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
  139. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
  140. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
  141. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
  142. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs +51 -0
  143. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs.map +1 -0
  144. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs +130 -0
  145. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs.map +1 -0
  146. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs +131 -0
  147. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs.map +1 -0
  148. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs +99 -0
  149. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs.map +1 -0
  150. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs +118 -0
  151. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs.map +1 -0
  152. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs +460 -0
  153. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs.map +1 -0
  154. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
  155. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
  156. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs +66 -0
  157. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs.map +1 -0
  158. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs +148 -0
  159. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs.map +1 -0
  160. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs +467 -0
  161. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs.map +1 -0
  162. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs +172 -0
  163. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs.map +1 -0
  164. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs +90 -0
  165. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs.map +1 -0
  166. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs +514 -0
  167. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs.map +1 -0
  168. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs +61 -0
  169. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs.map +1 -0
  170. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs +232 -0
  171. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs.map +1 -0
  172. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs +87 -0
  173. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs.map +1 -0
  174. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs +170 -0
  175. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs.map +1 -0
  176. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs +70 -0
  177. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs.map +1 -0
  178. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs +100 -0
  179. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs.map +1 -0
  180. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs +522 -0
  181. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs.map +1 -0
  182. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs +71 -0
  183. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs.map +1 -0
  184. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs +629 -0
  185. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs.map +1 -0
  186. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs +115 -0
  187. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs.map +1 -0
  188. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs +118 -0
  189. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs.map +1 -0
  190. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs +164 -0
  191. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs.map +1 -0
  192. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs +1069 -0
  193. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs.map +1 -0
  194. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
  195. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
  196. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
  197. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
  198. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
  199. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
  200. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs +48 -0
  201. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs.map +1 -0
  202. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs +293 -0
  203. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs.map +1 -0
  204. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs +74 -0
  205. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs.map +1 -0
  206. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs +50 -0
  207. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs.map +1 -0
  208. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs +165 -0
  209. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs.map +1 -0
  210. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs +45 -0
  211. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs.map +1 -0
  212. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs +43 -0
  213. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs.map +1 -0
  214. package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs +74 -0
  215. package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs.map +1 -0
  216. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs +99 -0
  217. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs.map +1 -0
  218. package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs +66 -0
  219. package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs.map +1 -0
  220. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs +406 -0
  221. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs.map +1 -0
  222. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs +317 -0
  223. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs.map +1 -0
  224. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs +132 -0
  225. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs.map +1 -0
  226. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs +143 -0
  227. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs.map +1 -0
  228. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs +128 -0
  229. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs.map +1 -0
  230. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs +357 -0
  231. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs.map +1 -0
  232. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs +100 -0
  233. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs.map +1 -0
  234. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
  235. package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
  236. package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
  237. package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
  238. package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
  239. package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
  240. package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
  241. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  242. package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
  243. package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
  244. package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
  245. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  246. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
  247. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  248. package/fesm2022/sdcorejs-angular-services.mjs +1 -0
  249. package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
  250. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
  251. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
  252. package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
  253. package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
  254. package/modules/pattern/README.md +76 -0
  255. package/modules/pattern/docs/detail.md +237 -0
  256. package/modules/pattern/docs/drawer.md +484 -0
  257. package/modules/pattern/docs/flow.md +631 -0
  258. package/modules/pattern/docs/form.md +518 -0
  259. package/modules/pattern/docs/header-actions.md +342 -0
  260. package/modules/pattern/docs/list.md +247 -0
  261. package/modules/pattern/docs/relation.md +180 -0
  262. package/modules/pattern/docs/select.md +206 -0
  263. package/modules/pattern/docs/split.md +350 -0
  264. package/modules/pattern/docs/states.md +168 -0
  265. package/modules/pattern/features/approval/entity.resolver.ts +21 -0
  266. package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
  267. package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
  268. package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
  269. package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
  270. package/modules/pattern/features/approval/routes.ts +30 -0
  271. package/modules/pattern/features/approval/services/approval.model.ts +38 -0
  272. package/modules/pattern/features/approval/services/approval.service.ts +23 -0
  273. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -0
  274. package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
  275. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
  276. package/modules/pattern/features/category/entity.resolver.ts +27 -0
  277. package/modules/pattern/features/category/pages/list/list.component.html +20 -0
  278. package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
  279. package/modules/pattern/features/category/routes.ts +42 -0
  280. package/modules/pattern/features/category/services/category.model.ts +39 -0
  281. package/modules/pattern/features/category/services/category.service.ts +36 -0
  282. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
  283. package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
  284. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
  285. package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
  286. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
  287. package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
  288. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
  289. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
  290. package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
  291. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
  292. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
  293. package/modules/pattern/features/customer/entity.resolver.ts +21 -0
  294. package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
  295. package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
  296. package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
  297. package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
  298. package/modules/pattern/features/customer/routes.ts +59 -0
  299. package/modules/pattern/features/customer/services/customer.model.ts +87 -0
  300. package/modules/pattern/features/customer/services/customer.service.ts +79 -0
  301. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
  302. package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
  303. package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
  304. package/modules/pattern/features/import/routes.ts +19 -0
  305. package/modules/pattern/features/import/services/import.model.ts +82 -0
  306. package/modules/pattern/features/import/services/import.service.ts +18 -0
  307. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
  308. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
  309. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
  310. package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
  311. package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
  312. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
  313. package/modules/pattern/features/order/entity.resolver.ts +37 -0
  314. package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
  315. package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
  316. package/modules/pattern/features/order/pages/list/list.component.html +38 -0
  317. package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
  318. package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
  319. package/modules/pattern/features/order/routes.ts +54 -0
  320. package/modules/pattern/features/order/services/order.model.ts +109 -0
  321. package/modules/pattern/features/order/services/order.service.ts +63 -0
  322. package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
  323. package/modules/pattern/features/partner/routes.ts +20 -0
  324. package/modules/pattern/features/partner/services/partner.model.ts +30 -0
  325. package/modules/pattern/features/partner/services/partner.service.ts +17 -0
  326. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
  327. package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
  328. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
  329. package/modules/pattern/features/product/entity.resolver.ts +21 -0
  330. package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
  331. package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
  332. package/modules/pattern/features/product/pages/list/list.component.html +30 -0
  333. package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
  334. package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
  335. package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
  336. package/modules/pattern/features/product/routes.ts +48 -0
  337. package/modules/pattern/features/product/services/product.model.ts +38 -0
  338. package/modules/pattern/features/product/services/product.service.ts +48 -0
  339. package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
  340. package/modules/pattern/features/settings/routes.ts +24 -0
  341. package/modules/pattern/features/settings/services/settings.model.ts +18 -0
  342. package/modules/pattern/features/settings/services/settings.service.ts +15 -0
  343. package/modules/pattern/features/settings/settings.resolver.ts +8 -0
  344. package/package.json +44 -7
  345. package/types/sdcorejs-angular-components-avatar.d.ts +67 -2
  346. package/types/sdcorejs-angular-components-badge.d.ts +206 -6
  347. package/types/sdcorejs-angular-components-button.d.ts +20 -1
  348. package/types/sdcorejs-angular-components-ckeditor-styles.d.ts +3 -18
  349. package/types/sdcorejs-angular-components-editor-engine.d.ts +246 -0
  350. package/types/sdcorejs-angular-components-editor.d.ts +20 -17
  351. package/types/sdcorejs-angular-components-file-explorer.d.ts +4 -2
  352. package/types/sdcorejs-angular-components-form-generic.d.ts +246 -35
  353. package/types/sdcorejs-angular-components-mini-editor.d.ts +33 -70
  354. package/types/sdcorejs-angular-components-modal-resizable.d.ts +1 -124
  355. package/types/sdcorejs-angular-components-operator.d.ts +137 -8
  356. package/types/sdcorejs-angular-components-section.d.ts +13 -1
  357. package/types/sdcorejs-angular-components-splitter.d.ts +1 -1
  358. package/types/sdcorejs-angular-components-tab-router.d.ts +74 -19
  359. package/types/sdcorejs-angular-components-table.d.ts +210 -18
  360. package/types/sdcorejs-angular-components-upload-file.d.ts +181 -21
  361. package/types/sdcorejs-angular-components-window.d.ts +81 -0
  362. package/types/sdcorejs-angular-components.d.ts +1 -0
  363. package/types/sdcorejs-angular-configurations.d.ts +8 -1
  364. package/types/sdcorejs-angular-forms-autocomplete.d.ts +5 -0
  365. package/types/sdcorejs-angular-forms-chip-calendar.d.ts +163 -18
  366. package/types/sdcorejs-angular-forms-chip.d.ts +136 -26
  367. package/types/sdcorejs-angular-forms-date-range.d.ts +24 -2
  368. package/types/sdcorejs-angular-forms-date.d.ts +23 -2
  369. package/types/sdcorejs-angular-forms-directives.d.ts +47 -2
  370. package/types/sdcorejs-angular-forms-input-number.d.ts +23 -2
  371. package/types/sdcorejs-angular-forms-input.d.ts +23 -2
  372. package/types/sdcorejs-angular-forms-models.d.ts +38 -3
  373. package/types/sdcorejs-angular-forms-select.d.ts +32 -2
  374. package/types/sdcorejs-angular-i18n.d.ts +344 -2
  375. package/types/sdcorejs-angular-modules-generic.d.ts +316 -0
  376. package/types/sdcorejs-angular-modules-icon.d.ts +37 -6
  377. package/types/sdcorejs-angular-modules-layout.d.ts +622 -89
  378. package/types/sdcorejs-angular-modules-pattern.d.ts +50 -0
  379. package/types/sdcorejs-angular-modules.d.ts +1 -0
  380. package/types/sdcorejs-angular-pipes.d.ts +2 -0
  381. package/types/sdcorejs-angular-services-date-time.d.ts +57 -0
  382. package/types/sdcorejs-angular-services-storage.d.ts +8 -1
  383. package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
  384. package/types/sdcorejs-angular-services.d.ts +1 -0
  385. package/types/sdcorejs-angular-utilities-read-state.d.ts +2 -0
  386. package/types/sdcorejs-angular-utilities-theme.d.ts +1 -1
@@ -1,27 +1,58 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { AfterViewInit, OnDestroy, ElementRef, TemplateRef } from '@angular/core';
3
- import { FormGroup, FormControl, FormGroupDirective, NgForm } from '@angular/forms';
4
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
3
+ import { ConnectedPosition } from '@angular/cdk/overlay';
4
+ import { FormGroup, FormControl } from '@angular/forms';
5
5
  import { ErrorStateMatcher } from '@angular/material/core';
6
- import { MatCalendar } from '@angular/material/datepicker';
6
+ import { MatCalendarHeader, MatCalendar } from '@angular/material/datepicker';
7
7
  import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
8
- import { MatMenuTrigger } from '@angular/material/menu';
9
8
  import { SdViewDefDirective, SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
10
- import { SdLabelPlacement, SdViewed, SdViewedInput, SdFormControl } from '@sdcorejs/angular/forms/models';
9
+ import { SdLabelPlacement, SdViewed, SdViewedInput, SdTemporalValueTransform, SdFormControl } from '@sdcorejs/angular/forms/models';
11
10
  import { Size } from '@sdcorejs/utils/models';
12
11
 
13
- declare class SdChipCalendarErrorStateMatcher implements ErrorStateMatcher {
14
- private formControl;
15
- constructor(formControl: FormControl);
16
- isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
12
+ /**
13
+ * Header of the `<sd-chip-calendar>` popup (design handoff 3 · 2): previous button, period label, next button, in that
14
+ * tab order. Extends Material's header for the paging rules, the min/max limits and the `MatDatepickerIntl` labels;
15
+ * only the markup and the month label change. The month label is the current locale's long month and year
16
+ * (`Intl.DateTimeFormat`), capitalised; the year and multi-year views keep Material's labels.
17
+ *
18
+ * Internal (`ɵ`): not covered by SemVer.
19
+ */
20
+ declare class ɵSdChipCalendarHeader extends MatCalendarHeader<Date> {
21
+ #private;
22
+ /** Visible period text: "Tháng 10 năm 2026" in month view, Material's text in the other views. */
23
+ get periodText(): string;
24
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ɵSdChipCalendarHeader, never>;
25
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ɵSdChipCalendarHeader, "sd-chip-calendar-header", never, {}, {}, never, never, true, never>;
17
26
  }
27
+
28
+ /** One date of the model: canonical `yyyy/MM/dd`, ISO / RFC-1123 string, `Date` or timestamp (read like `<sd-date>`). */
29
+ type SdChipCalendarValue = string | number | Date;
30
+ /** Model of `<sd-chip-calendar>`: read wide, written back as `string[]` (see `transform`). */
31
+ type SdChipCalendarModel = SdChipCalendarValue[] | null | undefined;
32
+ /** A date input (`minDate`, `maxDate`, `startAt`): read like an item of the model; `'TODAY'` is today in the configured zone. */
33
+ type SdChipCalendarDate = Date | string | number | null | undefined;
34
+ /** `removable`: all chips, none, or a predicate that receives the normalised `yyyy/MM/dd` day. */
35
+ type SdChipCalendarRemovable = boolean | ((day: string) => boolean);
18
36
  declare class SdChipCalendar implements AfterViewInit, OnDestroy {
19
37
  #private;
20
38
  /** why: id ổn định của <mat-error> để ô nhập chip trỏ `aria-describedby` sang — thông báo
21
39
  * lỗi phải đọc được từ chính control, không chỉ hiện ra màn hình. */
22
40
  readonly errorId: string;
23
- menuTrigger: _angular_core.Signal<MatMenuTrigger | undefined>;
24
41
  calendar: _angular_core.Signal<MatCalendar<Date> | undefined>;
42
+ private readonly field;
43
+ /** Header of the popup calendar (handoff 3 · 2). */
44
+ readonly calendarHeader: typeof ɵSdChipCalendarHeader;
45
+ readonly panelId: string;
46
+ /** Whether the popup is open. */
47
+ readonly isOpen: _angular_core.WritableSignal<boolean>;
48
+ /** Month the popup opened at (4.2), fixed for one opening. */
49
+ readonly openAt: _angular_core.WritableSignal<Date | null>;
50
+ /**
51
+ * The popup hangs from the field box (the outline), like the select panel. Read in `open()`: `_textField` of
52
+ * `MatFormField` is a view query, and read too early the origin falls back to the whole field with its subscript row.
53
+ */
54
+ readonly overlayOrigin: _angular_core.WritableSignal<ElementRef<HTMLElement> | undefined>;
55
+ readonly positions: ConnectedPosition[];
25
56
  autoIdInput: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
26
57
  autoId: _angular_core.Signal<string | undefined>;
27
58
  readonly dataDisabled: _angular_core.Signal<"true" | "false">;
@@ -48,36 +79,147 @@ declare class SdChipCalendar implements AfterViewInit, OnDestroy {
48
79
  form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
49
80
  label: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
50
81
  placeholder: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
51
- removable: _angular_core.InputSignalWithTransform<boolean | ((item: any) => boolean), boolean | ((item: any) => boolean) | null | undefined>;
82
+ /**
83
+ * `true` / `false` for every chip, or a predicate. The predicate receives the normalised `yyyy/MM/dd` day and is
84
+ * applied on every removal path: the ✕ button, Backspace / Delete on a chip, pressing the day again in the
85
+ * calendar and clearing.
86
+ */
87
+ removable: _angular_core.InputSignalWithTransform<SdChipCalendarRemovable, SdChipCalendarRemovable | null | undefined>;
52
88
  hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
53
89
  required: _angular_core.InputSignalWithTransform<boolean, unknown>;
90
+ /** Fewest days to pick; > 0 adds `Validators.minLength`. Replaces `min`. */
91
+ minCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
92
+ /** Most days to pick; > 0 adds `Validators.maxLength` and blocks picking more in the calendar (4.3). Replaces `max`. */
93
+ maxCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
94
+ /** @deprecated Use `minCount`; `minCount` wins when both are set. */
54
95
  min: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
96
+ /** @deprecated Use `maxCount`; `maxCount` wins when both are set. */
55
97
  max: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
98
+ /** Earliest day that can be picked; same reading as `minDate` of `<sd-date>` (`'TODAY'` = today in the zone). */
99
+ minDate: _angular_core.InputSignal<SdChipCalendarDate>;
100
+ /** Latest day that can be picked; same reading as `maxDate` of `<sd-date>`. */
101
+ maxDate: _angular_core.InputSignal<SdChipCalendarDate>;
102
+ /** `false` makes a day unpickable. A chosen day stays removable even when the filter refuses it. Name of `mat-calendar`. */
103
+ dateFilter: _angular_core.InputSignal<((date: Date) => boolean) | null | undefined>;
104
+ /** Month the popup opens at; without it, the chosen day nearest to today, else today (4.2). */
105
+ startAt: _angular_core.InputSignal<SdChipCalendarDate>;
106
+ /** Shows “Xoá hết” in the popup (and the clear button of the field). Off by default, like `clearable` of `<sd-date>`. */
107
+ clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
108
+ /**
109
+ * Chips shown while the popup is closed; the rest fold into a “+N” button that opens it. `null` shows them all.
110
+ * `2` is the suggestion inside `<sd-table>` filters.
111
+ */
112
+ maxVisible: _angular_core.InputSignal<number | null | undefined>;
113
+ /** Date format of the chips and of the viewed text, in Angular `DatePipe` syntax. */
114
+ displayFormat: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
56
115
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
57
116
  /** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
58
117
  viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
118
+ /**
119
+ * String form of each day when the value leaves the component, same contract as `<sd-date>`: `undefined` →
120
+ * `yyyy/MM/dd`, `'ISOString'` / `'UTCString'` → the start of the day (in `ISdCoreConfiguration.timeZone` when
121
+ * configured). Display is not affected.
122
+ */
123
+ transform: _angular_core.InputSignal<SdTemporalValueTransform | undefined>;
59
124
  /** `true` when the static view should render (`viewed===true`, or disabled `'inline'`). */
60
125
  readonly isViewed: _angular_core.Signal<boolean>;
61
126
  hyperlink: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
62
- model: _angular_core.ModelSignal<(string | number)[] | undefined>;
63
- sdChange: _angular_core.OutputEmitterRef<any[]>;
127
+ /**
128
+ * Two-way model. Read wide (each item `string | number | Date`, like `<sd-date>`), written back only on a user
129
+ * action, as `string[]`. A model from the parent is never rewritten.
130
+ */
131
+ model: _angular_core.ModelSignal<SdChipCalendarModel>;
132
+ sdChange: _angular_core.OutputEmitterRef<string[]>;
64
133
  input: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
65
134
  sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
66
135
  sdLabelDef: _angular_core.Signal<SdLabelDefDirective | undefined>;
67
136
  sdLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
68
137
  sdValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
69
138
  isFocused: boolean;
70
- readonly separatorKeysCodes: number[];
139
+ /** `minCount`, else the deprecated `min`. */
140
+ readonly effectiveMinCount: _angular_core.Signal<number>;
141
+ /** `maxCount`, else the deprecated `max`. */
142
+ readonly effectiveMaxCount: _angular_core.Signal<number>;
143
+ /** Chosen days, normalised (`yyyy/MM/dd`, model order). */
144
+ readonly days: _angular_core.Signal<string[]>;
145
+ /** `maxCount` reached: unchosen days are disabled and the popup says so (4.3). */
146
+ readonly full: _angular_core.Signal<boolean>;
147
+ /** At least one chosen day may be removed (enables “Xoá hết”). */
148
+ readonly hasRemovable: _angular_core.Signal<boolean>;
149
+ /** Chosen days by date (B2). Display only: the model keeps its order. `yyyy/MM/dd` sorts as text in date order. */
150
+ readonly sortedDays: _angular_core.Signal<string[]>;
151
+ /** Chips on screen: all while the popup is open, else at most `maxVisible` (B3). */
152
+ readonly visibleDays: _angular_core.Signal<string[]>;
153
+ /** Icon sizes of the chips and suffix buttons for the current size. */
154
+ readonly iconSizes: _angular_core.Signal<{
155
+ readonly chip: "12px";
156
+ readonly clear: "16px";
157
+ readonly open: "18px";
158
+ } | {
159
+ readonly chip: "14px";
160
+ readonly clear: "18px";
161
+ readonly open: "20px";
162
+ } | {
163
+ readonly chip: "16px";
164
+ readonly clear: "20px";
165
+ readonly open: "22px";
166
+ }>;
167
+ /** Days folded into “+N”. */
168
+ readonly hiddenCount: _angular_core.Signal<number>;
169
+ /** Viewed text: days by date in `displayFormat`, joined by “, ” (C3). */
170
+ readonly viewText: _angular_core.Signal<string>;
171
+ /** Placeholder while no day is chosen: the input, else “Chọn ngày” — no longer the label (B1). Empty once there are chips. */
172
+ readonly effectivePlaceholder: _angular_core.Signal<string>;
173
+ readonly resolvedMinDate: _angular_core.Signal<Date | null>;
174
+ readonly resolvedMaxDate: _angular_core.Signal<Date | null>;
175
+ /**
176
+ * `dateFilter` handed to `mat-calendar` (4.1): a chosen day is pickable exactly when it may be removed (even against the
177
+ * consumer filter), an unchosen one when the limit is not reached and the consumer filter allows it. A new function on
178
+ * every change makes `mat-calendar` render its cells again.
179
+ */
180
+ readonly calendarFilter: _angular_core.Signal<(date: Date | null) => boolean>;
181
+ /** Cell classes: `sd-chip-calendar-selected`, plus `sd-chip-calendar-locked` for a chosen day that cannot go. */
182
+ readonly calendarDateClass: _angular_core.Signal<(date: Date, view?: "month" | "year" | "multi-year") => string>;
71
183
  constructor();
72
184
  get formControl(): SdFormControl;
73
185
  get inputControl(): FormControl<any>;
74
186
  readonly errorMessage: _angular_core.Signal<string | undefined>;
75
- get matcher(): SdChipCalendarErrorStateMatcher;
187
+ get matcher(): ErrorStateMatcher;
188
+ /**
189
+ * The one place that decides whether the error shows (A4): `ErrorStateMatcher`, `<mat-error>`, `aria-invalid` and
190
+ * the `hideInlineError` icon all read it. Invalid and touched, or the parent form was submitted; a selection that
191
+ * is still too short while the user picks (dirty only) shows nothing.
192
+ */
193
+ isErrorShown(): boolean;
194
+ /** Whether `day` (`yyyy/MM/dd`) may be removed, per `removable`. */
195
+ isRemovable(day: string): boolean;
196
+ /** Accessible name of a chip: the full date in the current locale, plus the locked note. */
197
+ chipLabel(day: string): string;
198
+ /** A chip day in `displayFormat` (Angular `DatePipe` / `formatDate` syntax, as the chips used before). */
199
+ formatDay(day: string): string;
200
+ /** Accessible name of the ✕ button of a chip. */
201
+ removeLabel(day: string): string;
202
+ /** Opens the popup at the month of 4.2. No-op when disabled, viewed or already open. */
203
+ open(): void;
204
+ /** Closes the popup and marks the field touched (A4); `returnFocus` puts focus back on the input (Esc, “Xong”). */
205
+ close(returnFocus?: boolean): void;
206
+ /** Focus goes to the active day of the grid once the panel is attached. */
207
+ onAttach(): void;
208
+ onOverlayKeydown(event: KeyboardEvent): void;
209
+ /** A click outside closes; a click on the field itself is left to the field (it keeps the popup open). */
210
+ onOutsideClick(event: MouseEvent): void;
211
+ /** Click on the empty part of the field or on the input opens the popup; chips stop the click (3 · 2). */
212
+ onFieldClick(): void;
213
+ /** Calendar button of the suffix: opens or closes the popup without the field click opening it again. */
214
+ onToggleClick(event: Event): void;
215
+ /** “+N” opens the popup, where every chip shows. */
216
+ onMoreClick(event: Event): void;
217
+ /** Enter, Space, ArrowDown and Alt+ArrowDown on the input open the popup. */
218
+ onInputKeydown(event: KeyboardEvent): void;
76
219
  ngAfterViewInit(): void;
77
220
  ngOnDestroy(): void;
78
221
  onClickChip: (event: Event, item: any) => void;
79
222
  onRemove: (item: string) => void;
80
- onSelect: (event: MatAutocompleteSelectedEvent) => void;
81
223
  onClick: () => void;
82
224
  /**
83
225
  * why: khi `sdViewDef` đang hiển thị thì bên trong KHÔNG còn phần tử nào focus được, nên
@@ -88,10 +230,13 @@ declare class SdChipCalendar implements AfterViewInit, OnDestroy {
88
230
  onViewKeydown: (event: Event) => void;
89
231
  onClear: (evt?: any) => void;
90
232
  onSelectDate: (date: Date | null) => void;
233
+ /** Closes the popup without moving focus (outside click); marks the field touched. */
91
234
  onCloseCalendar: () => void;
92
- dateClass: (cellDate: Date) => "" | "sd-chip-calendar-selected-date";
235
+ /** Classes of a month-view cell; see `calendarDateClass`. */
236
+ dateClass: (cellDate: Date) => string;
93
237
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdChipCalendar, never>;
94
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChipCalendar, "sd-chip-calendar", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
238
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChipCalendar, "sd-chip-calendar", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minCount": { "alias": "minCount"; "required": false; "isSignal": true; }; "maxCount": { "alias": "maxCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "displayFormat": { "alias": "displayFormat"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
95
239
  }
96
240
 
97
241
  export { SdChipCalendar };
242
+ export type { SdChipCalendarDate, SdChipCalendarModel, SdChipCalendarRemovable, SdChipCalendarValue };
@@ -1,28 +1,17 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { PipeTransform, AfterViewInit, OnDestroy, ElementRef, TemplateRef } from '@angular/core';
3
- import { FormGroup, FormControl, FormGroupDirective, NgForm } from '@angular/forms';
4
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
5
- import { MatChipInputEvent } from '@angular/material/chips';
2
+ import { ElementRef, TemplateRef } from '@angular/core';
3
+ import { FormGroup, FormControl } from '@angular/forms';
4
+ import { MatChipGrid, MatChipInputEvent } from '@angular/material/chips';
6
5
  import { ErrorStateMatcher } from '@angular/material/core';
7
6
  import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
8
7
  import { SdViewDefDirective, SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
9
8
  import { SdLabelPlacement, SdViewed, SdViewedInput, SdFormControl } from '@sdcorejs/angular/forms/models';
10
9
  import { Size } from '@sdcorejs/utils/models';
11
10
 
12
- declare class SdRemovableChipPipe implements PipeTransform {
13
- constructor();
14
- transform(item: any, removable: boolean | ((item: any) => boolean)): boolean;
15
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdRemovableChipPipe, never>;
16
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<SdRemovableChipPipe, "sdRemovableChip", true>;
17
- }
18
-
19
- declare class SdChipErrorStateMatcher implements ErrorStateMatcher {
20
- private formControl;
21
- constructor(formControl: FormControl);
22
- isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
23
- }
24
- declare class SdChip implements AfterViewInit, OnDestroy {
11
+ declare class SdChip {
25
12
  #private;
13
+ /** why: id ổn định của lỗi (`<mat-error>` hoặc chữ ẩn của `hideInlineError`) để ô nhập trỏ `aria-describedby` sang (A8). */
14
+ readonly errorId: string;
26
15
  autoIdInput: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
27
16
  autoId: _angular_core.Signal<string | undefined>;
28
17
  readonly dataDisabled: _angular_core.Signal<"true" | "false">;
@@ -52,9 +41,31 @@ declare class SdChip implements AfterViewInit, OnDestroy {
52
41
  removable: _angular_core.InputSignalWithTransform<boolean | ((item: any) => boolean), boolean | ((item: any) => boolean) | null | undefined>;
53
42
  hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
54
43
  required: _angular_core.InputSignalWithTransform<boolean, unknown>;
44
+ /** Fewest chips; > 0 adds `Validators.minLength`. Replaces `min`. */
45
+ minCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
46
+ /** Most chips; > 0 adds `Validators.maxLength` (for a model set from outside) and stops adding once reached. Replaces `max`. */
47
+ maxCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
48
+ /** @deprecated Use `minCount`; `minCount` wins when both are set. */
55
49
  min: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
50
+ /** @deprecated Use `maxCount`; `maxCount` wins when both are set. */
56
51
  max: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
52
+ /** `false` keeps the field read-only for typing: the input stays (mat-chip-grid needs it) but is read-only and out of the Tab order. */
57
53
  addable: _angular_core.InputSignalWithTransform<boolean, unknown>;
54
+ /** Leaving the field turns the typed text into a chip. `false` drops the text instead, as before. */
55
+ addOnBlur: _angular_core.InputSignalWithTransform<boolean, unknown>;
56
+ /** Keys that commit the typed text (`KeyboardEvent.key`). A paste also splits on these characters, new lines and tabs. */
57
+ separators: _angular_core.InputSignalWithTransform<readonly string[], readonly string[] | null | undefined>;
58
+ /** Normalises typed or pasted text before it is compared and stored; `null` or `''` drops it. Default: trim. */
59
+ chipTransform: _angular_core.InputSignalWithTransform<(raw: string) => string | number | null, ((raw: string) => string | number | null) | null | undefined>;
60
+ /**
61
+ * Checks a normalised value: an i18n key (or the message itself) when it is refused, else `null`. A refused value does
62
+ * not become a chip; its text stays in the input and the message shows under the field.
63
+ */
64
+ chipValidator: _angular_core.InputSignal<((value: string | number) => string | null) | null | undefined>;
65
+ /** Shows a button that removes every chip `removable` allows. Off by default, like `clearable` of `<sd-date>`. */
66
+ clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
67
+ /** Chips shown while the field is not focused; the rest fold into “+N”. `null` shows them all. `2` suits `<sd-table>` cells. */
68
+ maxVisible: _angular_core.InputSignal<number | null | undefined>;
58
69
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
59
70
  /** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
60
71
  viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
@@ -64,31 +75,130 @@ declare class SdChip implements AfterViewInit, OnDestroy {
64
75
  model: _angular_core.ModelSignal<(string | number)[] | undefined>;
65
76
  sdChange: _angular_core.OutputEmitterRef<any[]>;
66
77
  input: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
78
+ readonly chipGrid: _angular_core.Signal<MatChipGrid | undefined>;
79
+ private readonly chipTextElements;
67
80
  sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
68
81
  sdLabelDef: _angular_core.Signal<SdLabelDefDirective | undefined>;
69
82
  sdLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
70
83
  sdValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
71
- isFocused: boolean;
72
- readonly separatorKeysCodes: number[];
73
- readonly selectable = true;
84
+ /** The field is being edited: the `sdViewDef` face gives way to the field. A signal, so OnPush redraws without `detectChanges()` (D1). */
85
+ readonly isFocused: _angular_core.WritableSignal<boolean>;
86
+ /**
87
+ * Control of `mat-chip-grid` only. why: the grid is a ControlValueAccessor that writes the text of the rendered chips
88
+ * into its control on blur, after a timeout (numbers became strings, a form reset was undone). It still needs an
89
+ * ngControl to work out its error state on every check, so it gets this one; nothing reads its value.
90
+ */
91
+ readonly gridControl: FormControl<unknown>;
92
+ /** `minCount`, else the deprecated `min`. */
93
+ readonly effectiveMinCount: _angular_core.Signal<number>;
94
+ /** `maxCount`, else the deprecated `max`. */
95
+ readonly effectiveMaxCount: _angular_core.Signal<number>;
96
+ /** why: phím tách do `separators` + onInputKeydown xử lý, nên Material không nhận phím nào. */
97
+ readonly noSeparatorKeys: number[];
98
+ /**
99
+ * Items rendered as chips: every value except `null`, `undefined` and `''`, so `0` shows (A2). Display only: the
100
+ * model is never rewritten. why: exact duplicates are dropped too, because the chips are tracked by value.
101
+ */
102
+ readonly chips: _angular_core.Signal<(string | number)[]>;
103
+ /** Message of a typed or pasted value that `chipValidator` refused; it shows under the field until the text changes (B4). */
104
+ readonly inputError: _angular_core.WritableSignal<string | null>;
105
+ /** Last polite announcement; a new id re-renders the text so a repeated message is read again. */
106
+ readonly liveMessage: _angular_core.WritableSignal<{
107
+ id: number;
108
+ text: string;
109
+ } | null>;
110
+ /** Chip that the typed value duplicates, highlighted for 1.4s (B3). */
111
+ readonly duplicateChip: _angular_core.WritableSignal<string | number | null>;
112
+ /** Text of the chips that the 240px limit cuts; only they get a tooltip (B7). */
113
+ readonly truncatedChips: _angular_core.WritableSignal<ReadonlySet<string>>;
114
+ /** `maxCount` reached: typing and pasting add nothing more (B3). */
115
+ readonly full: _angular_core.Signal<boolean>;
116
+ /** Chips on screen: all while the field has focus, else at most `maxVisible` (B7). */
117
+ readonly visibleChips: _angular_core.Signal<(string | number)[]>;
118
+ /** Chips folded into “+N”. */
119
+ readonly hiddenCount: _angular_core.Signal<number>;
120
+ /** At least one chip may be removed, so the clear button has something to do (B6). */
121
+ readonly hasRemovable: _angular_core.Signal<boolean>;
122
+ /**
123
+ * Placeholder: “Đã đủ …” once full, else the input, else “Nhập rồi nhấn Enter” — never the label (B5). None when not
124
+ * addable, or while chips are folded into “+N”: nobody types then, and the input only fills the rest of the line (C1).
125
+ */
126
+ readonly effectivePlaceholder: _angular_core.Signal<string | null>;
127
+ readonly clearLabel: _angular_core.Signal<string>;
128
+ /** Tooltip of the lock on a chip that `removable` keeps (C3). */
129
+ readonly lockedLabel: _angular_core.Signal<string>;
130
+ /** Sizes of the chip ✕ / lock and of the clear-button icon for the current `size` (C1). */
131
+ readonly iconSizes: _angular_core.Signal<{
132
+ readonly chip: "12px";
133
+ readonly clear: "16px";
134
+ } | {
135
+ readonly chip: "14px";
136
+ readonly clear: "18px";
137
+ } | {
138
+ readonly chip: "16px";
139
+ readonly clear: "20px";
140
+ }>;
141
+ readonly moreLabel: _angular_core.Signal<string>;
74
142
  constructor();
75
143
  get formControl(): SdFormControl;
76
144
  get inputControl(): FormControl<any>;
77
145
  readonly errorMessage: _angular_core.Signal<string | undefined>;
78
- get matcher(): SdChipErrorStateMatcher;
79
- ngAfterViewInit(): void;
80
- ngOnDestroy(): void;
146
+ get matcher(): ErrorStateMatcher;
147
+ /**
148
+ * The one place that decides whether the error shows (A5): the `ErrorStateMatcher` of the chip grid and the input,
149
+ * `<mat-error>`, the `hideInlineError` icon and `aria-invalid` all read it. Invalid and touched, or the parent form
150
+ * was submitted; a field that is only dirty shows nothing.
151
+ */
152
+ isErrorShown(): boolean;
153
+ /** Text under the field: the `chipValidator` message of the typed value first, else the form error. */
154
+ readonly errorText: _angular_core.Signal<string | undefined>;
155
+ /** Whether `item` may be removed, per `removable`; applied on every removal path (A1). */
156
+ isRemovable(item: string | number): boolean;
157
+ /** Accessible name of the ✕ button of a chip (A6). */
158
+ removeLabel(item: string | number): string;
159
+ /** Accessible name of a chip that `removable` keeps: its text plus “, Không xoá được” (C3). A removable chip keeps its text. */
160
+ chipLabel(item: string | number): string | null;
161
+ /** Text of a chip, also its key for `truncatedChips`. */
162
+ chipText(item: string | number): string;
163
+ /** A separator key (`separators`) commits the typed text; the key itself is not typed (B2 / separators). */
164
+ onInputKeydown(event: KeyboardEvent): void;
165
+ /** The refused-value message goes as soon as the text changes (B4). */
166
+ onInputText(): void;
167
+ /**
168
+ * A paste that holds a separator, a new line or a tab becomes several chips in one change (B2). Duplicates are
169
+ * skipped, refused values and values past `maxCount` stay in the input, and the result is announced. A paste with
170
+ * no separator is left to the browser.
171
+ */
172
+ onPaste(event: ClipboardEvent): void;
173
+ /** Backspace / Delete on a chip that `removable` keeps says why nothing happened (A1, B3). */
174
+ onChipKeydown(event: KeyboardEvent, item: string | number): void;
175
+ /** “+N” moves focus to the input, where every chip shows (B7). */
176
+ onMoreClick(event: Event): void;
177
+ /** Focus entering the input or a chip unfolds “+N”; focus on the “+N” button itself does not (B7). */
178
+ onFocusIn(event: FocusEvent): void;
179
+ /**
180
+ * Marks the field touched once focus leaves it; moving between the input and the chips does not count.
181
+ * why: `mat-chip-grid` is no longer bound to the control. As a ControlValueAccessor it wrote the text of the rendered
182
+ * chips back into the control on blur (numbers became strings, a form reset was undone), so the component marks
183
+ * touched itself, like the grid did.
184
+ */
185
+ onFocusOut(event: FocusEvent): void;
81
186
  onAdd: (event: MatChipInputEvent) => void;
82
187
  onClickChip: (event: Event, item: any) => void;
83
188
  onRemove: (item: any) => void;
84
- onSelect: (event: MatAutocompleteSelectedEvent) => void;
85
189
  onFocus: () => void;
86
190
  onBlur: () => void;
87
191
  onClick: () => void;
192
+ /**
193
+ * why: khi `sdViewDef` đang hiển thị thì bên trong không còn phần tử nào focus được, nên phần tử view là lối vào
194
+ * duy nhất để chuyển sang chế độ sửa. Bàn phím phải mở được y hệt chuột → Enter/Space chạy chung handler;
195
+ * preventDefault chặn Space cuộn trang (A7).
196
+ */
197
+ onViewKeydown: (event: Event) => void;
88
198
  focus: () => void;
89
199
  onClear: ($event?: any) => void;
90
200
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdChip, never>;
91
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChip, "sd-chip", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
201
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChip, "sd-chip", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minCount": { "alias": "minCount"; "required": false; "isSignal": true; }; "maxCount": { "alias": "maxCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; "isSignal": true; }; "separators": { "alias": "separators"; "required": false; "isSignal": true; }; "chipTransform": { "alias": "chipTransform"; "required": false; "isSignal": true; }; "chipValidator": { "alias": "chipValidator"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
92
202
  }
93
203
 
94
- export { SdChip, SdRemovableChipPipe };
204
+ export { SdChip };
@@ -6,7 +6,7 @@ import { FormGroup, FormControl } from '@angular/forms';
6
6
  import { MatDateRangePicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
7
7
  import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
8
8
  import { SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
9
- import { Size } from '@sdcorejs/utils/models';
9
+ import { Size, Operator } from '@sdcorejs/utils/models';
10
10
 
11
11
  interface SdDateRangeValue {
12
12
  from?: string | null;
@@ -35,6 +35,28 @@ declare class SdDateRange {
35
35
  readonly dataErrorMessage: _angular_core.Signal<string | null>;
36
36
  name: _angular_core.InputSignal<string>;
37
37
  size: _angular_core.InputSignal<Size>;
38
+ /**
39
+ * Operator cho phép trong chip tiền tố của ô (thiết kế đợt 2 · G), theo thứ tự hiển thị. Từ hai operator
40
+ * thì chip hiện; đúng một thì control dùng luôn operator đó và không hiện chip.
41
+ */
42
+ readonly operators: _angular_core.InputSignal<readonly Operator[]>;
43
+ /** Operator hiện tại — `[(operator)]`. Đổi operator không xoá giá trị; nút xoá chỉ xoá giá trị. */
44
+ readonly operator: _angular_core.ModelSignal<Operator | undefined>;
45
+ protected readonly operatorChip: _angular_core.Signal<boolean>;
46
+ protected readonly operatorHasValue: _angular_core.Signal<boolean>;
47
+ /**
48
+ * NULL / NOT_NULL không cần giá trị: chọn trong chip thì xoá giá trị, ô bị khoá (disabled) tới khi đổi sang
49
+ * operator khác; chip vẫn dùng được.
50
+ */
51
+ protected readonly operatorLocked: _angular_core.Signal<boolean>;
52
+ private readonly operatorChipRef;
53
+ private readonly startInput;
54
+ /**
55
+ * Chọn xong operator trong chip (thiết kế đợt 2 · G): focus về ô nhập. NULL / NOT_NULL thì xoá giá trị và giữ focus
56
+ * ở chip. why: xoá ngay trong handler chọn (không trong effect) để giá trị two-way của cha đổi trong event, không
57
+ * đổi giữa lượt change detection.
58
+ */
59
+ protected onOperatorChosen(): void;
38
60
  form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
39
61
  label: _angular_core.InputSignal<string | undefined>;
40
62
  helperText: _angular_core.InputSignal<string | undefined>;
@@ -96,7 +118,7 @@ declare class SdDateRange {
96
118
  onClosePicker: () => void;
97
119
  onOpenPicker: (event: MouseEvent) => void;
98
120
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdDateRange, never>;
99
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDateRange, "sd-date-range", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; }, ["sdLabelDef", "sdValueTemplate"], never, true, never>;
121
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDateRange, "sd-date-range", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "valueModel": "modelChange"; "sdChange": "sdChange"; }, ["sdLabelDef", "sdValueTemplate"], never, true, never>;
100
122
  }
101
123
 
102
124
  export { SdDateRange };
@@ -5,7 +5,7 @@ import { MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepi
5
5
  import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
6
6
  import { SdViewDefDirective, SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
7
7
  import { SdViewed, SdViewedInput, SdLabelPlacement, SdTemporalValueTransform, SdFormControl } from '@sdcorejs/angular/forms/models';
8
- import { Size } from '@sdcorejs/utils/models';
8
+ import { Size, Operator } from '@sdcorejs/utils/models';
9
9
 
10
10
  type SdDateModelValue = string | number | Date | undefined | null;
11
11
  type SdDateKeyupEvent = Event | {
@@ -40,6 +40,27 @@ declare class SdDate implements OnDestroy, OnInit {
40
40
  readonly dataErrorMessage: _angular_core.Signal<string | null>;
41
41
  name: _angular_core.InputSignal<string>;
42
42
  size: _angular_core.InputSignal<Size>;
43
+ /**
44
+ * Operator cho phép trong chip tiền tố của ô (thiết kế đợt 2 · G), theo thứ tự hiển thị. Từ hai operator
45
+ * thì chip hiện; đúng một thì control dùng luôn operator đó và không hiện chip.
46
+ */
47
+ readonly operators: _angular_core.InputSignal<readonly Operator[]>;
48
+ /** Operator hiện tại — `[(operator)]`. Đổi operator không xoá giá trị; nút xoá chỉ xoá giá trị. */
49
+ readonly operator: _angular_core.ModelSignal<Operator | undefined>;
50
+ protected readonly operatorChip: _angular_core.Signal<boolean>;
51
+ protected readonly operatorHasValue: _angular_core.Signal<boolean>;
52
+ /**
53
+ * NULL / NOT_NULL không cần giá trị: chọn trong chip thì xoá giá trị, ô bị khoá (disabled) tới khi đổi sang
54
+ * operator khác; chip vẫn dùng được.
55
+ */
56
+ protected readonly operatorLocked: _angular_core.Signal<boolean>;
57
+ private readonly operatorChipRef;
58
+ /**
59
+ * Chọn xong operator trong chip (thiết kế đợt 2 · G): focus về ô nhập. NULL / NOT_NULL thì xoá giá trị và giữ focus
60
+ * ở chip. why: xoá ngay trong handler chọn (không trong effect) để giá trị two-way của cha đổi trong event, không
61
+ * đổi giữa lượt change detection.
62
+ */
63
+ protected onOperatorChosen(): void;
43
64
  form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
44
65
  label: _angular_core.InputSignal<string | undefined>;
45
66
  helperText: _angular_core.InputSignal<string | undefined>;
@@ -108,7 +129,7 @@ declare class SdDate implements OnDestroy, OnInit {
108
129
  onChange: (event: MatDatepickerInputEvent<Date>) => void;
109
130
  clear: ($event: any) => void;
110
131
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdDate, never>;
111
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDate, "sd-date", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "minDateInput": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "maxDateInput": { "alias": "maxDate"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdFocus": "sdFocus"; }, ["sdLabelTemplate", "sdValueTemplate", "sdViewDef", "sdLabelDef"], ["[sdLabel]"], true, never>;
132
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDate, "sd-date", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "minDateInput": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "maxDateInput": { "alias": "maxDate"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "valueModel": "modelChange"; "sdChange": "sdChange"; "sdFocus": "sdFocus"; }, ["sdLabelTemplate", "sdValueTemplate", "sdViewDef", "sdLabelDef"], ["[sdLabel]"], true, never>;
112
133
  }
113
134
 
114
135
  export { SdDate };