@sdcorejs/angular 20.3.1 → 20.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/components/avatar/index.d.ts +67 -2
  17. package/components/badge/index.d.ts +206 -6
  18. package/components/button/index.d.ts +20 -1
  19. package/components/ckeditor-styles/index.d.ts +3 -18
  20. package/components/editor/index.d.ts +20 -17
  21. package/components/editor-engine/index.d.ts +246 -0
  22. package/components/file-explorer/index.d.ts +4 -2
  23. package/components/form-generic/index.d.ts +246 -35
  24. package/components/index.d.ts +1 -0
  25. package/components/mini-editor/index.d.ts +33 -70
  26. package/components/modal-resizable/index.d.ts +1 -124
  27. package/components/operator/index.d.ts +137 -8
  28. package/components/section/index.d.ts +13 -1
  29. package/components/splitter/index.d.ts +1 -1
  30. package/components/tab-router/index.d.ts +74 -19
  31. package/components/table/index.d.ts +210 -18
  32. package/components/upload-file/index.d.ts +181 -21
  33. package/components/window/index.d.ts +81 -0
  34. package/configurations/index.d.ts +8 -1
  35. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
  36. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  37. package/fesm2022/sdcorejs-angular-components-avatar.mjs +142 -11
  38. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  39. package/fesm2022/sdcorejs-angular-components-badge.mjs +548 -24
  40. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  41. package/fesm2022/sdcorejs-angular-components-button.mjs +33 -3
  42. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  43. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
  44. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  45. package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
  46. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  47. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
  48. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
  49. package/fesm2022/sdcorejs-angular-components-editor.mjs +457 -756
  50. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  51. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
  52. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  53. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2118 -1159
  54. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  55. package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
  56. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  57. package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
  58. package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
  59. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
  60. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  61. package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
  62. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
  64. package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +177 -283
  66. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
  68. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  70. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-components-operator.mjs +262 -43
  72. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
  74. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  75. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
  76. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
  78. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  79. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  80. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  81. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  82. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +559 -94
  83. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  84. package/fesm2022/sdcorejs-angular-components-table.mjs +1001 -119
  85. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  86. package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
  87. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  88. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +887 -174
  89. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  90. package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
  91. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  92. package/fesm2022/sdcorejs-angular-components-window.mjs +486 -0
  93. package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
  94. package/fesm2022/sdcorejs-angular-components.mjs +1 -0
  95. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  96. package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
  97. package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
  98. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  99. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
  100. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  101. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
  102. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  103. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +463 -125
  104. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  105. package/fesm2022/sdcorejs-angular-forms-chip.mjs +422 -122
  106. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  107. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +79 -13
  108. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  109. package/fesm2022/sdcorejs-angular-forms-date.mjs +75 -18
  110. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  111. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
  112. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  113. package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
  114. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  115. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
  116. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  117. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
  118. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  119. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +56 -6
  120. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  121. package/fesm2022/sdcorejs-angular-forms-input.mjs +54 -7
  122. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  123. package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
  124. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  125. package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
  126. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  127. package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
  128. package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
  129. package/fesm2022/sdcorejs-angular-forms-select.mjs +87 -33
  130. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  131. package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
  132. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  133. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
  134. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  135. package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
  136. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  137. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  138. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  139. package/fesm2022/sdcorejs-angular-i18n.mjs +1745 -22
  140. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  141. package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
  142. package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
  143. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-D_1BxDC9.mjs +478 -0
  144. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-D_1BxDC9.mjs.map +1 -0
  145. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CgH8Qi25.mjs +214 -0
  146. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CgH8Qi25.mjs.map +1 -0
  147. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-CyCGqW9W.mjs +277 -0
  148. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-CyCGqW9W.mjs.map +1 -0
  149. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DTmU8Te4.mjs +1556 -0
  150. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DTmU8Te4.mjs.map +1 -0
  151. package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
  152. package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
  153. package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
  154. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  155. package/fesm2022/sdcorejs-angular-modules-layout.mjs +2055 -37
  156. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  157. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
  158. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
  159. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
  160. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
  161. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-BubUwgBK.mjs +51 -0
  162. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-BubUwgBK.mjs.map +1 -0
  163. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-C9WQdsEi.mjs +131 -0
  164. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-C9WQdsEi.mjs.map +1 -0
  165. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-s7ZXoakT.mjs +130 -0
  166. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-s7ZXoakT.mjs.map +1 -0
  167. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BxfQux1Q.mjs +99 -0
  168. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BxfQux1Q.mjs.map +1 -0
  169. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-D4GrcahQ.mjs +460 -0
  170. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-D4GrcahQ.mjs.map +1 -0
  171. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlYVJqHo.mjs +118 -0
  172. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlYVJqHo.mjs.map +1 -0
  173. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
  174. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
  175. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Bfx6_CmA.mjs +66 -0
  176. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Bfx6_CmA.mjs.map +1 -0
  177. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-3PUIy1Vi.mjs +148 -0
  178. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-3PUIy1Vi.mjs.map +1 -0
  179. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CbYMo3D1.mjs +172 -0
  180. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CbYMo3D1.mjs.map +1 -0
  181. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-awjgX7ph.mjs +90 -0
  182. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-awjgX7ph.mjs.map +1 -0
  183. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-c__NdSt3.mjs +467 -0
  184. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-c__NdSt3.mjs.map +1 -0
  185. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-Bjvq6wJz.mjs +514 -0
  186. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-Bjvq6wJz.mjs.map +1 -0
  187. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-FwmYVkag.mjs +61 -0
  188. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-FwmYVkag.mjs.map +1 -0
  189. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BRsdOwWy.mjs +87 -0
  190. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BRsdOwWy.mjs.map +1 -0
  191. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DalxHa8D.mjs +232 -0
  192. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DalxHa8D.mjs.map +1 -0
  193. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-pqT7lnS6.mjs +170 -0
  194. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-pqT7lnS6.mjs.map +1 -0
  195. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-kdEZ9s7K.mjs +70 -0
  196. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-kdEZ9s7K.mjs.map +1 -0
  197. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DZXPZuM4.mjs +100 -0
  198. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DZXPZuM4.mjs.map +1 -0
  199. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-BjMOON6K.mjs +522 -0
  200. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-BjMOON6K.mjs.map +1 -0
  201. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Bf9QWXBp.mjs +115 -0
  202. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Bf9QWXBp.mjs.map +1 -0
  203. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CuDjsIzi.mjs +118 -0
  204. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CuDjsIzi.mjs.map +1 -0
  205. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DkVrMSPZ.mjs +164 -0
  206. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DkVrMSPZ.mjs.map +1 -0
  207. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DkxheDVz.mjs +629 -0
  208. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DkxheDVz.mjs.map +1 -0
  209. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-E8rkFCkK.mjs +71 -0
  210. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-E8rkFCkK.mjs.map +1 -0
  211. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-DgmM-wTI.mjs +1069 -0
  212. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-DgmM-wTI.mjs.map +1 -0
  213. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
  214. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
  215. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
  216. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
  217. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
  218. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
  219. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-C3coYwmZ.mjs +48 -0
  220. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-C3coYwmZ.mjs.map +1 -0
  221. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-YsWsrKWJ.mjs +297 -0
  222. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-YsWsrKWJ.mjs.map +1 -0
  223. package/fesm2022/sdcorejs-angular-modules-pattern-routes-9ujH01cX.mjs +74 -0
  224. package/fesm2022/sdcorejs-angular-modules-pattern-routes-9ujH01cX.mjs.map +1 -0
  225. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BfpsCkim.mjs +45 -0
  226. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BfpsCkim.mjs.map +1 -0
  227. package/fesm2022/sdcorejs-angular-modules-pattern-routes-C7b5dRrJ.mjs +165 -0
  228. package/fesm2022/sdcorejs-angular-modules-pattern-routes-C7b5dRrJ.mjs.map +1 -0
  229. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CGeqkySv.mjs +66 -0
  230. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CGeqkySv.mjs.map +1 -0
  231. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DoBxGoRE.mjs +74 -0
  232. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DoBxGoRE.mjs.map +1 -0
  233. package/fesm2022/sdcorejs-angular-modules-pattern-routes-dBuQqYkO.mjs +43 -0
  234. package/fesm2022/sdcorejs-angular-modules-pattern-routes-dBuQqYkO.mjs.map +1 -0
  235. package/fesm2022/sdcorejs-angular-modules-pattern-routes-quSIwMOx.mjs +50 -0
  236. package/fesm2022/sdcorejs-angular-modules-pattern-routes-quSIwMOx.mjs.map +1 -0
  237. package/fesm2022/sdcorejs-angular-modules-pattern-routes-rR-MpQFh.mjs +99 -0
  238. package/fesm2022/sdcorejs-angular-modules-pattern-routes-rR-MpQFh.mjs.map +1 -0
  239. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-LQNpFSmN.mjs +406 -0
  240. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-LQNpFSmN.mjs.map +1 -0
  241. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-CcmrUIvP.mjs +317 -0
  242. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-CcmrUIvP.mjs.map +1 -0
  243. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Cq72tG9h.mjs +143 -0
  244. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Cq72tG9h.mjs.map +1 -0
  245. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-xFbutFLY.mjs +132 -0
  246. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-xFbutFLY.mjs.map +1 -0
  247. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CsfGgGJb.mjs +128 -0
  248. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CsfGgGJb.mjs.map +1 -0
  249. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DYPI_CRD.mjs +100 -0
  250. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DYPI_CRD.mjs.map +1 -0
  251. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-lHmdUXWT.mjs +357 -0
  252. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-lHmdUXWT.mjs.map +1 -0
  253. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
  254. package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
  255. package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
  256. package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
  257. package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
  258. package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
  259. package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
  260. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  261. package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
  262. package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
  263. package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
  264. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  265. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
  266. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  267. package/fesm2022/sdcorejs-angular-services.mjs +1 -0
  268. package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
  269. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
  270. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
  271. package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
  272. package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
  273. package/forms/autocomplete/index.d.ts +5 -0
  274. package/forms/chip/index.d.ts +136 -26
  275. package/forms/chip-calendar/index.d.ts +163 -18
  276. package/forms/date/index.d.ts +23 -2
  277. package/forms/date-range/index.d.ts +24 -2
  278. package/forms/directives/index.d.ts +47 -2
  279. package/forms/input/index.d.ts +23 -2
  280. package/forms/input-number/index.d.ts +23 -2
  281. package/forms/models/index.d.ts +38 -3
  282. package/forms/select/index.d.ts +32 -2
  283. package/i18n/index.d.ts +344 -2
  284. package/modules/generic/index.d.ts +316 -0
  285. package/modules/icon/index.d.ts +37 -6
  286. package/modules/index.d.ts +1 -0
  287. package/modules/layout/index.d.ts +622 -89
  288. package/modules/pattern/README.md +76 -0
  289. package/modules/pattern/docs/detail.md +237 -0
  290. package/modules/pattern/docs/drawer.md +484 -0
  291. package/modules/pattern/docs/flow.md +631 -0
  292. package/modules/pattern/docs/form.md +518 -0
  293. package/modules/pattern/docs/header-actions.md +342 -0
  294. package/modules/pattern/docs/list.md +247 -0
  295. package/modules/pattern/docs/relation.md +180 -0
  296. package/modules/pattern/docs/select.md +206 -0
  297. package/modules/pattern/docs/split.md +350 -0
  298. package/modules/pattern/docs/states.md +168 -0
  299. package/modules/pattern/features/approval/entity.resolver.ts +21 -0
  300. package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
  301. package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
  302. package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
  303. package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
  304. package/modules/pattern/features/approval/routes.ts +30 -0
  305. package/modules/pattern/features/approval/services/approval.model.ts +38 -0
  306. package/modules/pattern/features/approval/services/approval.service.ts +23 -0
  307. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -0
  308. package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
  309. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
  310. package/modules/pattern/features/category/entity.resolver.ts +27 -0
  311. package/modules/pattern/features/category/pages/list/list.component.html +20 -0
  312. package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
  313. package/modules/pattern/features/category/routes.ts +42 -0
  314. package/modules/pattern/features/category/services/category.model.ts +39 -0
  315. package/modules/pattern/features/category/services/category.service.ts +36 -0
  316. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
  317. package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
  318. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
  319. package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
  320. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
  321. package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
  322. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
  323. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
  324. package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
  325. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
  326. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
  327. package/modules/pattern/features/customer/entity.resolver.ts +21 -0
  328. package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
  329. package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
  330. package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
  331. package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
  332. package/modules/pattern/features/customer/routes.ts +59 -0
  333. package/modules/pattern/features/customer/services/customer.model.ts +87 -0
  334. package/modules/pattern/features/customer/services/customer.service.ts +79 -0
  335. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
  336. package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
  337. package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
  338. package/modules/pattern/features/import/routes.ts +19 -0
  339. package/modules/pattern/features/import/services/import.model.ts +82 -0
  340. package/modules/pattern/features/import/services/import.service.ts +18 -0
  341. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
  342. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
  343. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
  344. package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
  345. package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
  346. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
  347. package/modules/pattern/features/order/entity.resolver.ts +37 -0
  348. package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
  349. package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
  350. package/modules/pattern/features/order/pages/list/list.component.html +38 -0
  351. package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
  352. package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
  353. package/modules/pattern/features/order/routes.ts +54 -0
  354. package/modules/pattern/features/order/services/order.model.ts +109 -0
  355. package/modules/pattern/features/order/services/order.service.ts +63 -0
  356. package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
  357. package/modules/pattern/features/partner/routes.ts +20 -0
  358. package/modules/pattern/features/partner/services/partner.model.ts +30 -0
  359. package/modules/pattern/features/partner/services/partner.service.ts +17 -0
  360. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
  361. package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
  362. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
  363. package/modules/pattern/features/product/entity.resolver.ts +21 -0
  364. package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
  365. package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
  366. package/modules/pattern/features/product/pages/list/list.component.html +30 -0
  367. package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
  368. package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
  369. package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
  370. package/modules/pattern/features/product/routes.ts +48 -0
  371. package/modules/pattern/features/product/services/product.model.ts +38 -0
  372. package/modules/pattern/features/product/services/product.service.ts +48 -0
  373. package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
  374. package/modules/pattern/features/settings/routes.ts +24 -0
  375. package/modules/pattern/features/settings/services/settings.model.ts +18 -0
  376. package/modules/pattern/features/settings/services/settings.service.ts +15 -0
  377. package/modules/pattern/features/settings/settings.resolver.ts +8 -0
  378. package/modules/pattern/index.d.ts +50 -0
  379. package/package.json +45 -8
  380. package/pipes/index.d.ts +2 -0
  381. package/services/date-time/index.d.ts +57 -0
  382. package/services/index.d.ts +1 -0
  383. package/services/storage/index.d.ts +8 -1
  384. package/services/unsaved-changes/index.d.ts +11 -0
  385. package/utilities/read-state/index.d.ts +2 -0
  386. package/utilities/theme/index.d.ts +1 -1
@@ -1,124 +1 @@
1
- import * as _angular_core from '@angular/core';
2
- import { CdkPortal } from '@angular/cdk/portal';
3
-
4
- /**
5
- * `<sd-modal-resizable>` — right-docked, non-modal panel that can be minimized, expanded or pushed
6
- * fullscreen. Several panels stack side by side along the right edge of the viewport, so the user
7
- * can keep multiple records open at once while still working with the page behind them.
8
- *
9
- * Use it for side-by-side comparison / inspector workflows. Use `<sd-modal>` when the task is
10
- * blocking, and `<sd-side-drawer>` when a single overlay with a backdrop is enough.
11
- *
12
- * NOTE ON DOCS: this component deliberately has **no** sibling `sd-modal-resizable.md`. Every `*.md`
13
- * under the library is swept into `published-docs/<version>/index.json` by `scripts/collect-docs.mjs`,
14
- * and `scripts/generate-showcase-example-sources.test.mjs` asserts that list is 1:1 with the
15
- * `publishedDocId` set in the showcase documentation registry. A published doc with no showcase page
16
- * therefore turns that release guard red. Keep the reference here until the component ships a
17
- * showcase demo + registry entry; only then add the `.md`.
18
- *
19
- * ```ts
20
- * import { SdModalResizable } from '@sdcorejs/angular/components/modal-resizable';
21
- * ```
22
- *
23
- * ```html
24
- * <sd-button title="Open detail" type="fill" color="primary" (click)="panel.open()"></sd-button>
25
- *
26
- * <sd-modal-resizable #panel width="520px">
27
- * <span sdTitle>Đơn hàng #1024</span>
28
- *
29
- * <div sdBody class="panel-body">
30
- * <sd-section icon="receipt" title="Thông tin chung">
31
- * <sd-section-item label="Khách hàng">Nguyen Van An</sd-section-item>
32
- * </sd-section>
33
- * </div>
34
- *
35
- * <sd-button sdFooterRight type="text" title="Đóng" (click)="panel.close()"></sd-button>
36
- * </sd-modal-resizable>
37
- * ```
38
- *
39
- * ### Slots
40
- * | Selector | Where it renders |
41
- * | ----------------- | ------------------------- |
42
- * | `[sdTitle]` | Header title area. |
43
- * | `[sdBody]` | Scrollable content area. |
44
- * | `[sdFooterLeft]` | Footer left action group. |
45
- * | `[sdFooterRight]` | Footer right action group.|
46
- *
47
- * Header, body and footer only render while the panel is open.
48
- *
49
- * ### Panel stacking
50
- * The panel is portalled onto `document.body` (via `CdkPortal` + `DomPortalOutlet`), so laying panels
51
- * out is a concern shared by all live instances rather than by a single view. Arrangement is scoped
52
- * through the root-provided `SdModalResizableRegistry`: each instance registers its panel id on
53
- * construction and unregisters it on destroy. `open`, `close`, `minimize`, `maximize` and
54
- * `toggleMaximum` re-run the arrangement and rewrite inline `width` / `right` **only on registered,
55
- * still-mounted panels**, in registration order. Consequences worth knowing:
56
- * - Markup of your own that happens to carry the `.modal-resizable` class is **not** touched.
57
- * (Earlier builds ran `document.querySelectorAll('.modal-resizable')` and rewrote every match.)
58
- * - A destroyed panel immediately stops taking up a slot for the instances that outlive it.
59
- * - Panels marked `c-closed`, and expanded panels with no captured `data-width`, are skipped.
60
- *
61
- * ### Lifecycle / teardown
62
- * `open()`, `close()` and the arrangement pass each schedule a short `setTimeout` (100ms / 100ms /
63
- * 200ms) that mutates DOM. All of them are tracked and cleared in `DestroyRef.onDestroy`, together
64
- * with unregistering from the registry and destroying the portal view. Destroying the component
65
- * mid-animation cannot run layout work against a detached panel.
66
- *
67
- * ### Anti-patterns
68
- * - Rendering it inside a scroll container and expecting it to be clipped — it lives on `<body>`.
69
- * - Reusing the `.modal-resizable` class on your own elements to "join" the stack; register a real
70
- * component instead.
71
- * - Writing inline `width` / `right` on a panel yourself — the next arrangement pass overwrites both.
72
- *
73
- * ### Tests
74
- * `src/modal-resizable.component.spec.ts` — portal attach, open/close/minimize/maximize math,
75
- * loading, editing, timer teardown, registry scoping. Run:
76
- * `npx ng test sdcorejs-angular --watch=false --browsers=ChromeHeadless --include='projects/sdcorejs-angular/components/modal-resizable/src/modal-resizable.component.spec.ts'`
77
- *
78
- * ### Related
79
- * `<sd-modal>` (blocking dialog / bottom-sheet), `<sd-side-drawer>` (single right-side overlay with
80
- * a body scroll lock), `SdLoadingService` (powers `startLoading()` / `stopLoading()`).
81
- */
82
- declare class SdModalResizable {
83
- #private;
84
- /** Generated DOM id of the panel element (`I<uuid>`). */
85
- readonly id: string;
86
- readonly portal: _angular_core.Signal<CdkPortal>;
87
- /** Marks the panel as editable. Bare attribute = `true`. Default `false`. */
88
- readonly editable: _angular_core.InputSignalWithTransform<boolean, boolean | "">;
89
- /** CSS width used while the panel is expanded (not a minimum). Default `'480px'`. */
90
- readonly width: _angular_core.InputSignal<string>;
91
- /** Emitted by `toggleEditable()` with the new editing state. */
92
- readonly editingChanged: _angular_core.OutputEmitterRef<boolean>;
93
- readonly isEditing: _angular_core.WritableSignal<boolean>;
94
- readonly isOpened: _angular_core.WritableSignal<boolean>;
95
- readonly isHover: _angular_core.WritableSignal<boolean>;
96
- readonly isLoading: _angular_core.WritableSignal<boolean>;
97
- readonly isMinimum: _angular_core.WritableSignal<boolean>;
98
- readonly isMaximum: _angular_core.WritableSignal<boolean>;
99
- constructor();
100
- /** Opens the panel, captures its rendered width, and expands it. */
101
- open: () => void;
102
- /** Collapses the panel to zero width and stops loading. */
103
- close: () => void;
104
- /** Shrinks the panel to the 300px minimum strip. */
105
- minimize: () => void;
106
- /** Restores the panel to its expanded width. */
107
- maximize: () => void;
108
- /** Toggles fullscreen (`calc(100% - 16px)`). */
109
- toggleMaximum: () => void;
110
- /** Drives the scoped loading overlay through `SdLoadingService`. */
111
- startLoading: () => void;
112
- /** Stops the scoped loading overlay. */
113
- stopLoading: () => void;
114
- /** Flips `isEditing` and emits `editingChanged`. */
115
- toggleEditable(): void;
116
- /** Hover state hook bound in the template. */
117
- onFocus: () => void;
118
- /** Hover state hook bound in the template. */
119
- onBlur: () => void;
120
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdModalResizable, never>;
121
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdModalResizable, "sd-modal-resizable", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "editingChanged": "editingChanged"; }, never, ["[sdTitle]", "[sdBody]", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
122
- }
123
-
124
- export { SdModalResizable };
1
+ export { /** @deprecated Use SdWindow from @sdcorejs/angular/components/window. This alias has the same component identity. */ SdWindow as SdModalResizable } from '@sdcorejs/angular/components/window';
@@ -1,12 +1,61 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import { ModelSignal, Signal } from '@angular/core';
3
+ import * as _angular_platform_browser from '@angular/platform-browser';
2
4
  import { SafeHtml } from '@angular/platform-browser';
3
- import { Operator } from '@sdcorejs/utils/models';
5
+ import { Operator, Size } from '@sdcorejs/utils/models';
6
+ import * as _sdcorejs_angular_components_operator from '@sdcorejs/angular/components/operator';
7
+ import { MenuCloseReason } from '@angular/material/menu';
4
8
 
5
- interface OperatorItem {
9
+ /** Inner SVG markup (hình phễu) dùng khi chưa chọn operator. */
10
+ declare const ɵSD_OPERATOR_FALLBACK_ICON = "<path d=\"M4 5h16l-6.5 7.5V19l-3 2v-8.5z\"/>";
11
+ /** Cỡ và độ dày nét của một glyph operator (handoff sd-operator mục 3.1 và 4). */
12
+ interface ɵSdOperatorGlyph {
13
+ readonly size: number;
14
+ readonly stroke: number;
15
+ }
16
+ /** Glyph theo cỡ trigger: nét dày dần khi glyph nhỏ lại để vẫn đọc được (C7). Hàng menu dùng cỡ `md`. */
17
+ declare const ɵSD_OPERATOR_GLYPHS: {
18
+ readonly xs: {
19
+ readonly size: 14;
20
+ readonly stroke: 2.5;
21
+ };
22
+ readonly sm: {
23
+ readonly size: 16;
24
+ readonly stroke: 2.25;
25
+ };
26
+ readonly md: {
27
+ readonly size: 18;
28
+ readonly stroke: 2.1;
29
+ };
30
+ };
31
+ interface ɵSdOperatorItem {
6
32
  value: Operator;
7
33
  icon: SafeHtml;
8
34
  display: string;
35
+ /** Mục mở đầu một họ khác mục trước: menu vẽ đường chia phía trên. */
36
+ separated: boolean;
37
+ }
38
+ /** Icon, nhãn đã dịch và danh sách item của các operator — dùng chung cho `sd-operator` và chip operator. */
39
+ interface ɵSdOperatorResolver {
40
+ /**
41
+ * Operator cho phép → item theo đúng thứ tự truyền vào (không sắp xếp lại); operator không có trong `OPERATORS` bị
42
+ * bỏ. Icon ở cỡ hàng menu.
43
+ */
44
+ items(operators: readonly Operator[]): ɵSdOperatorItem[];
45
+ /** Icon SVG của operator ở `glyph` (mặc định cỡ `md`), hoặc hình phễu khi chưa chọn / không tìm thấy. */
46
+ icon(value: Operator | undefined, glyph?: ɵSdOperatorGlyph): SafeHtml;
47
+ /** Nhãn đã dịch, '' khi chưa chọn / không tìm thấy. */
48
+ label(value: Operator | undefined): string;
9
49
  }
50
+ /**
51
+ * Tạo resolver cho bảng `OPERATORS` dùng chung. Gọi trong injection context.
52
+ *
53
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
54
+ */
55
+ declare function ɵsdOperatorResolver(): ɵSdOperatorResolver;
56
+
57
+ /** Cỡ trigger của `sd-operator`: `xs` glyph trơn 14px (vùng bấm 24px), `sm` chip 24px, `md` chip 28px. */
58
+ type SdOperatorSize = 'xs' | 'sm' | 'md';
10
59
  declare class SdOperator {
11
60
  #private;
12
61
  static readonly FALLBACK_ICON = "<path d=\"M4 5h16l-6.5 7.5V19l-3 2v-8.5z\"/>";
@@ -14,23 +63,103 @@ declare class SdOperator {
14
63
  model: _angular_core.ModelSignal<Operator | undefined>;
15
64
  /** Danh sách operator cho phép, giữ nguyên thứ tự truyền vào. */
16
65
  operators: _angular_core.InputSignal<Operator[]>;
17
- /** Vô hiệu hóa trigger (không mở được menu). */
66
+ /** Vô hiệu hóa trigger (không mở được menu). Thắng `readonly`. */
18
67
  disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
19
68
  /** data-autoId cho e2e selector. */
20
69
  autoId: _angular_core.InputSignal<string | undefined>;
70
+ /** Cỡ trigger: `xs` glyph trơn có vùng bấm 24px, `sm` / `md` là chip giống chip operator trong control. */
71
+ size: _angular_core.InputSignalWithTransform<SdOperatorSize, SdOperatorSize | null | undefined>;
72
+ /** Chỉ hiện glyph và tooltip: không mở menu, không nhận Tab (chip chỉ-xem của query-bar). */
73
+ readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
74
+ /** Điều kiện đang có giá trị: chip đổi sang tông primary. */
75
+ active: _angular_core.InputSignalWithTransform<boolean, unknown>;
76
+ /** Hiện mã operator (`EQUAL`…) sau nhãn trong menu. */
77
+ showCode: _angular_core.InputSignalWithTransform<boolean, unknown>;
21
78
  /** Allowed operators map sang { value, icon, display } theo thứ tự input. */
22
- readonly items: _angular_core.Signal<OperatorItem[]>;
23
- /** Icon SVG ở trigger — fallback phễu khi model chưa set / không tìm thấy. */
79
+ readonly items: _angular_core.Signal<ɵSdOperatorItem[]>;
80
+ /** Icon SVG của operator hiện tại ở cỡ trigger — fallback phễu khi model chưa set / không tìm thấy. */
24
81
  readonly currentIcon: _angular_core.Signal<SafeHtml>;
25
82
  /** Tooltip = i18n label của operator hiện tại ('' khi chưa chọn). */
26
83
  readonly currentLabel: _angular_core.Signal<string>;
27
- private readonly trigger;
84
+ /** `readonly` chỉ có hiệu lực khi không `disabled`. */
85
+ readonly isReadonly: _angular_core.Signal<boolean>;
86
+ private readonly chip;
28
87
  /** Open the operator menu programmatically (used by the query-bar build flow). */
29
88
  open(): void;
30
89
  /** Chọn operator từ menu. */
31
90
  select(value: Operator): void;
32
91
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdOperator, never>;
33
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdOperator, "sd-operator", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, never, true, never>;
92
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdOperator, "sd-operator", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "showCode": { "alias": "showCode"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, never, true, never>;
93
+ }
94
+
95
+ /**
96
+ * Chip operator đặt làm `matPrefix` trong ô của sd-input, sd-input-number, sd-select, sd-date, sd-date-range
97
+ * (thiết kế đợt 2 · G). Dùng chung bảng `OPERATORS`, i18n và icon với `sd-operator`; menu dùng panel của mục D.
98
+ *
99
+ * Bàn phím: Enter / Space / Alt+↓ mở menu; chọn xong phát `chosen` để control đưa focus về ô nhập; Escape
100
+ * đóng menu và trả focus về chip.
101
+ *
102
+ * `sd-operator` cũng render chip này cho trigger của nó (`standalone`): không cách mép ô, chọn xong focus về chip, và
103
+ * thêm cỡ `xs` (glyph trơn, vùng bấm 24px) — handoff sd-operator mục 3.
104
+ *
105
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
106
+ */
107
+ declare class ɵSdOperatorChip {
108
+ #private;
109
+ /** Operator cho phép, theo thứ tự hiển thị. */
110
+ readonly operators: _angular_core.InputSignal<readonly Operator[]>;
111
+ /** Operator hiện tại. */
112
+ readonly operator: ModelSignal<Operator | undefined>;
113
+ /** Cỡ của ô chứa chip; `lg` dùng hình học của `md`. `xs` là glyph trơn của `sd-operator`. */
114
+ readonly size: _angular_core.InputSignal<"xs" | Size>;
115
+ /** Ô đang có giá trị: chip đổi sang tông primary. */
116
+ readonly hasValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
117
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
118
+ readonly autoId: _angular_core.InputSignal<string | undefined>;
119
+ /** Hiện mã operator (`EQUAL`…) sau nhãn trong menu (B1). */
120
+ readonly showCode: _angular_core.InputSignalWithTransform<boolean, unknown>;
121
+ /** Trigger của `sd-operator`: không cách mép ô, chọn xong focus về chip. */
122
+ readonly standalone: _angular_core.InputSignalWithTransform<boolean, unknown>;
123
+ /** Đã chọn một operator trong menu (control đưa focus về ô nhập). */
124
+ readonly chosen: _angular_core.OutputEmitterRef<Operator>;
125
+ protected readonly items: Signal<_sdcorejs_angular_components_operator.ɵSdOperatorItem[]>;
126
+ protected readonly currentIcon: Signal<_angular_platform_browser.SafeHtml>;
127
+ protected readonly currentLabel: Signal<string>;
128
+ protected readonly ariaLabel: Signal<string>;
129
+ protected readonly menuOpen: _angular_core.WritableSignal<boolean>;
130
+ private readonly trigger;
131
+ private readonly menu;
132
+ private readonly button;
133
+ /** Mở menu bằng code (dùng cho Alt+↓ và spec). */
134
+ open(): void;
135
+ /** Focus nút chip. */
136
+ focus(): void;
137
+ protected onMenuOpened(): void;
138
+ protected onKeydown(event: KeyboardEvent): void;
139
+ protected choose(value: Operator): void;
140
+ protected onClosed(reason: MenuCloseReason): void;
141
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ɵSdOperatorChip, never>;
142
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ɵSdOperatorChip, "sd-operator-chip", never, { "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hasValue": { "alias": "hasValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "showCode": { "alias": "showCode"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "chosen": "chosen"; }, never, never, true, never>;
34
143
  }
144
+ /**
145
+ * Giá trị của control có "đang có" không, để chip đổi tông: `null`, `undefined`, `''`, mảng rỗng và object mà
146
+ * mọi trường đều trống (vd khoảng ngày `{ from: null, to: null }`) là chưa có.
147
+ *
148
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
149
+ */
150
+ declare function ɵsdOperatorHasValue(value: unknown): boolean;
151
+ /**
152
+ * `NULL` / `NOT_NULL` không cần giá trị: control khoá ô nhập và xoá giá trị khi chọn một trong hai.
153
+ *
154
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
155
+ */
156
+ declare function ɵsdIsNoDataOperator(operator: Operator | null | undefined): boolean;
157
+ /**
158
+ * Có đúng một operator thì control dùng luôn operator đó và không hiện chip. Gọi trong injection context.
159
+ *
160
+ * Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
161
+ */
162
+ declare function ɵsdSingleOperator(operators: Signal<readonly Operator[]>, operator: ModelSignal<Operator | undefined>): void;
35
163
 
36
- export { SdOperator };
164
+ export { SdOperator, ɵSD_OPERATOR_FALLBACK_ICON, ɵSD_OPERATOR_GLYPHS, ɵSdOperatorChip, ɵsdIsNoDataOperator, ɵsdOperatorHasValue, ɵsdOperatorResolver, ɵsdSingleOperator };
165
+ export type { SdOperatorSize, ɵSdOperatorGlyph, ɵSdOperatorItem, ɵSdOperatorResolver };
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import { Color } from '@sdcorejs/utils/models';
3
4
  import { SdIconShape } from '@sdcorejs/angular/modules/icon';
4
5
 
@@ -33,4 +34,15 @@ declare class SdSectionItem {
33
34
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSectionItem, "sd-section-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; }, {}, never, ["[itemLeft]", "*"], true, never>;
34
35
  }
35
36
 
36
- export { SdSection, SdSectionItem };
37
+ /**
38
+ * A container that lists the sections inside it, such as the table of contents of `sd-page`. Every outermost
39
+ * `sd-section` below the provider registers itself, also one inside a child component of the container.
40
+ */
41
+ interface SdSectionRegistry {
42
+ /** Adds a section; returns the function that removes it. */
43
+ register(section: SdSection, element: HTMLElement): () => void;
44
+ }
45
+ declare const SD_SECTION_REGISTRY: InjectionToken<SdSectionRegistry>;
46
+
47
+ export { SD_SECTION_REGISTRY, SdSection, SdSectionItem };
48
+ export type { SdSectionRegistry };
@@ -74,4 +74,4 @@ declare class SdSplitterComponent {
74
74
  }
75
75
 
76
76
  export { SdSplitterComponent, SdSplitterPanelComponent };
77
- export type { SplitterLayoutState, SplitterOrientation, SplitterPanelState, SplitterPanelUnit };
77
+ export type { SdSplitterOption, SplitterLayoutState, SplitterOrientation, SplitterPanelState, SplitterPanelUnit };
@@ -1,14 +1,20 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Type, ElementRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken, Type, ElementRef, OnDestroy } from '@angular/core';
3
3
  import { Color } from '@sdcorejs/utils/models';
4
4
  import { Subject, BehaviorSubject } from 'rxjs';
5
5
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
6
+ import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
6
7
 
7
8
  interface SdTabInfo {
8
9
  name: string;
9
10
  icon?: string;
10
11
  tooltip?: string;
11
12
  color?: Color;
13
+ /**
14
+ * Màn có thay đổi chưa lưu: tab hiện chấm ở chỗ nút đóng, và `syncBrowserTitle` thêm "● " vào đầu tiêu đề. Dùng
15
+ * cùng nguồn trạng thái với `beforeClose`.
16
+ */
17
+ dirty?: boolean;
12
18
  }
13
19
  interface SdTabRouterTab {
14
20
  component: Type<any>;
@@ -24,33 +30,77 @@ interface SdTabRouterTab {
24
30
  }
25
31
  declare const SD_TAB: InjectionToken<SdTabRouterTab>;
26
32
 
33
+ /** Menu chuột phải đang mở: tab của nó và chỗ treo (con trỏ, hoặc chính tab khi mở bằng bàn phím). */
34
+ interface SdTabRouterContextMenu {
35
+ tab: SdTabRouterTab;
36
+ origin: FlexibleConnectedPositionStrategyOrigin;
37
+ positions: ConnectedPosition[];
38
+ /** Mở bằng Shift+F10 / phím Menu: sự kiện `contextmenu` trình duyệt phát ngay sau đó không mở lại menu. */
39
+ byKeyboard: boolean;
40
+ }
27
41
  declare class SdTabRouterNavComponent {
28
- tabRouterNav: i0.Signal<ElementRef<any> | undefined>;
29
- tabs: i0.InputSignal<SdTabRouterTab[]>;
30
- mode: 'default' | 'compact';
31
- cdRef: ChangeDetectorRef;
32
- elementRef: ElementRef<any>;
33
- onResize(): void;
34
- checkUI: () => void;
42
+ #private;
43
+ readonly tabs: _angular_core.ModelSignal<SdTabRouterTab[]>;
44
+ readonly elementRef: ElementRef<HTMLElement>;
45
+ readonly scroller: _angular_core.Signal<ElementRef<HTMLElement>>;
46
+ readonly listButton: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
47
+ readonly contextMenu: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
48
+ /** Tổng `min-width` của các tab vượt bề rộng thanh: thanh cuộn ngang và có nút danh sách tab. */
49
+ readonly overflowing: _angular_core.WritableSignal<boolean>;
50
+ /** Còn tab khuất ở cạnh đầu / cạnh cuối: hiện lớp mờ ở cạnh đó. */
51
+ readonly fadeStart: _angular_core.WritableSignal<boolean>;
52
+ readonly fadeEnd: _angular_core.WritableSignal<boolean>;
53
+ readonly listOpen: _angular_core.WritableSignal<boolean>;
54
+ readonly menu: _angular_core.WritableSignal<SdTabRouterContextMenu | null>;
55
+ /**
56
+ * Roving tabindex: điểm dừng Tab duy nhất của thanh. Là tab đang có focus khi người dùng di chuyển bằng phím, nếu
57
+ * không thì tab đang mở (focus vào lại thanh luôn rơi vào tab đang mở).
58
+ */
59
+ readonly tabStopKey: _angular_core.Signal<string>;
60
+ readonly listPositions: ConnectedPosition[];
61
+ /** Menu chuột phải mở bằng bàn phím: dưới tab, thẳng mép trái. */
62
+ readonly menuAtTab: ConnectedPosition[];
63
+ constructor();
64
+ toggleList: () => void;
65
+ closeList: (restoreFocus?: boolean) => void;
66
+ onListKeydown: (event: KeyboardEvent) => void;
67
+ /** Chọn một tab trong menu: đóng menu (focus về nút) rồi chuyển tab như khi bấm tab trên thanh. */
68
+ pickTab: (tab: SdTabRouterTab) => void;
69
+ closeTab: (tab: SdTabRouterTab) => void;
35
70
  onDrop: (event: CdkDragDrop<SdTabRouterTab[]>) => void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<SdTabRouterNavComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<SdTabRouterNavComponent, "sd-tab-router-nav", never, { "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
71
+ onKeydown: (event: KeyboardEvent) => void;
72
+ onFocusin: (event: FocusEvent) => void;
73
+ onFocusout: (event: FocusEvent) => void;
74
+ onContextmenu: (event: MouseEvent) => void;
75
+ /** Menu vừa gắn vào overlay: focus mục đầu. */
76
+ focusMenu: () => void;
77
+ closeMenu: (restoreFocus?: boolean) => void;
78
+ onMenuKeydown: (event: KeyboardEvent) => void;
79
+ closeFromMenu: () => void;
80
+ closeOthersFromMenu: () => void;
81
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabRouterNavComponent, never>;
82
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabRouterNavComponent, "sd-tab-router-nav", never, { "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; }, { "tabs": "tabsChange"; }, never, never, true, never>;
38
83
  }
39
84
 
40
85
  declare class SdTabRouterOutletComponent implements OnDestroy {
41
86
  #private;
42
- disabled: i0.InputSignalWithTransform<boolean, unknown>;
43
- tabRouterNav: i0.Signal<SdTabRouterNavComponent | undefined>;
44
- tabs: i0.WritableSignal<SdTabRouterTab[]>;
87
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
88
+ /**
89
+ * Đặt tiêu đề trình duyệt theo tab đang mở: `{tên tab} – {tên app}`, thêm "● " ở đầu khi tab `dirty`. Tên app là
90
+ * tiêu đề lúc outlet khởi tạo; tắt, `disabled` hay huỷ outlet thì trả lại tiêu đề đó. Mặc định tắt.
91
+ */
92
+ syncBrowserTitle: _angular_core.InputSignalWithTransform<boolean, unknown>;
93
+ tabRouterNav: _angular_core.Signal<SdTabRouterNavComponent | undefined>;
94
+ tabs: _angular_core.WritableSignal<SdTabRouterTab[]>;
45
95
  constructor();
46
96
  ngOnDestroy(): void;
47
97
  tabTrackBy: (index: number, tab: SdTabRouterTab) => string;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<SdTabRouterOutletComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<SdTabRouterOutletComponent, "sd-tab-router-outlet", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
98
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabRouterOutletComponent, never>;
99
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabRouterOutletComponent, "sd-tab-router-outlet", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "syncBrowserTitle": { "alias": "syncBrowserTitle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
50
100
  }
51
101
 
52
102
  interface SdTabAction {
53
- type: 'close';
103
+ type: 'close' | 'close-others';
54
104
  tab: SdTabRouterTab;
55
105
  }
56
106
 
@@ -95,9 +145,14 @@ declare class SdTabRouterService {
95
145
  pushEvent: (tab: SdTabRouterTab, Event: Type<SdTabEvent>) => void;
96
146
  setOptions: () => void;
97
147
  close: (tab?: SdTabRouterTab) => void;
148
+ /**
149
+ * Đóng mọi tab trừ `tab` (mặc định tab hiện tại). Outlet chạy `beforeClose` của từng tab; tab trả về false thì được
150
+ * giữ lại. Tab hiện tại nằm trong số bị đóng thì `tab` được mở.
151
+ */
152
+ closeOthers: (tab?: SdTabRouterTab) => void;
98
153
  updateTab: (tab: SdTabRouterTab) => void;
99
- static ɵfac: i0.ɵɵFactoryDeclaration<SdTabRouterService, never>;
100
- static ɵprov: i0.ɵɵInjectableDeclaration<SdTabRouterService>;
154
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabRouterService, never>;
155
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<SdTabRouterService>;
101
156
  }
102
157
 
103
158
  export { SD_TAB, SdTabComponent, SdTabRouterOutletComponent, SdTabRouterService };