@sdcorejs/angular 22.3.1 → 22.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 +166 -11
  19. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-components-badge.mjs +590 -24
  21. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-components-button.mjs +35 -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 +1906 -0
  29. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
  30. package/fesm2022/sdcorejs-angular-components-editor.mjs +461 -757
  31. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  32. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +69 -37
  33. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  34. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2195 -1182
  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 +182 -284
  47. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  48. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -316
  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 +274 -44
  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 +574 -95
  64. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-table.mjs +1034 -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 +932 -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 +498 -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 +483 -126
  85. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  86. package/fesm2022/sdcorejs-angular-forms-chip.mjs +437 -122
  87. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  88. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +86 -13
  89. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  90. package/fesm2022/sdcorejs-angular-forms-date.mjs +81 -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 +90 -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 +63 -6
  101. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  102. package/fesm2022/sdcorejs-angular-forms-input.mjs +60 -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 +95 -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-SJIWI1dX.mjs +509 -0
  125. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs.map +1 -0
  126. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs +232 -0
  127. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs.map +1 -0
  128. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs +294 -0
  129. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs.map +1 -0
  130. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs +1556 -0
  131. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.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 +2178 -38
  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-Cfmr0L_5.mjs +51 -0
  143. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-Cfmr0L_5.mjs.map +1 -0
  144. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-C7-itJqB.mjs +134 -0
  145. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-C7-itJqB.mjs.map +1 -0
  146. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CxgmaNod.mjs +132 -0
  147. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CxgmaNod.mjs.map +1 -0
  148. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-C2GdGhkJ.mjs +100 -0
  149. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-C2GdGhkJ.mjs.map +1 -0
  150. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CzJh4LMR.mjs +119 -0
  151. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CzJh4LMR.mjs.map +1 -0
  152. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DIivNX4o.mjs +469 -0
  153. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DIivNX4o.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-B0nhFd_M.mjs +67 -0
  157. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-B0nhFd_M.mjs.map +1 -0
  158. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-D1dqsKX0.mjs +152 -0
  159. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-D1dqsKX0.mjs.map +1 -0
  160. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Dkmm0a2Y.mjs +479 -0
  161. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Dkmm0a2Y.mjs.map +1 -0
  162. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-WK0AcxNJ.mjs +175 -0
  163. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-WK0AcxNJ.mjs.map +1 -0
  164. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-yJ5fPyYU.mjs +92 -0
  165. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-yJ5fPyYU.mjs.map +1 -0
  166. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BvhEMUgY.mjs +533 -0
  167. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BvhEMUgY.mjs.map +1 -0
  168. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-Ydotvlyc.mjs +64 -0
  169. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-Ydotvlyc.mjs.map +1 -0
  170. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs +92 -0
  171. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs.map +1 -0
  172. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs +242 -0
  173. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs.map +1 -0
  174. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-cxNRkeRU.mjs +179 -0
  175. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-cxNRkeRU.mjs.map +1 -0
  176. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs +72 -0
  177. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs.map +1 -0
  178. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-D1zWXyN6.mjs +100 -0
  179. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-D1zWXyN6.mjs.map +1 -0
  180. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-BK__9Mzb.mjs +541 -0
  181. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-BK__9Mzb.mjs.map +1 -0
  182. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-1Xn1WaAP.mjs +647 -0
  183. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-1Xn1WaAP.mjs.map +1 -0
  184. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B6Ndq542.mjs +120 -0
  185. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B6Ndq542.mjs.map +1 -0
  186. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Bv_l7vnz.mjs +73 -0
  187. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Bv_l7vnz.mjs.map +1 -0
  188. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CaXgC8wK.mjs +172 -0
  189. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CaXgC8wK.mjs.map +1 -0
  190. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-ChwTb4BU.mjs +118 -0
  191. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-ChwTb4BU.mjs.map +1 -0
  192. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-DKK3NmbN.mjs +1069 -0
  193. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-DKK3NmbN.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-GSlXwL2Z.mjs +49 -0
  201. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-GSlXwL2Z.mjs.map +1 -0
  202. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-DPBwMafn.mjs +301 -0
  203. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-DPBwMafn.mjs.map +1 -0
  204. package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kifjm82.mjs +100 -0
  205. package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kifjm82.mjs.map +1 -0
  206. package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z9lJYB.mjs +45 -0
  207. package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z9lJYB.mjs.map +1 -0
  208. package/fesm2022/sdcorejs-angular-modules-pattern-routes-D1fsRfRB.mjs +66 -0
  209. package/fesm2022/sdcorejs-angular-modules-pattern-routes-D1fsRfRB.mjs.map +1 -0
  210. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DdCFCwxY.mjs +50 -0
  211. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DdCFCwxY.mjs.map +1 -0
  212. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DeThmv4f.mjs +74 -0
  213. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DeThmv4f.mjs.map +1 -0
  214. package/fesm2022/sdcorejs-angular-modules-pattern-routes-bQpdxKlY.mjs +166 -0
  215. package/fesm2022/sdcorejs-angular-modules-pattern-routes-bQpdxKlY.mjs.map +1 -0
  216. package/fesm2022/sdcorejs-angular-modules-pattern-routes-h66efEeH.mjs +74 -0
  217. package/fesm2022/sdcorejs-angular-modules-pattern-routes-h66efEeH.mjs.map +1 -0
  218. package/fesm2022/sdcorejs-angular-modules-pattern-routes-t3O2L2J5.mjs +43 -0
  219. package/fesm2022/sdcorejs-angular-modules-pattern-routes-t3O2L2J5.mjs.map +1 -0
  220. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-B6w4N6wo.mjs +413 -0
  221. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-B6w4N6wo.mjs.map +1 -0
  222. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BIYHlzVQ.mjs +325 -0
  223. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BIYHlzVQ.mjs.map +1 -0
  224. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DKgmhJT2.mjs +146 -0
  225. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DKgmhJT2.mjs.map +1 -0
  226. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-nnldn2cz.mjs +135 -0
  227. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-nnldn2cz.mjs.map +1 -0
  228. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-C0Bewuwz.mjs +129 -0
  229. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-C0Bewuwz.mjs.map +1 -0
  230. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Qlh3Lm2p.mjs +360 -0
  231. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Qlh3Lm2p.mjs.map +1 -0
  232. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-p9R5-eou.mjs +101 -0
  233. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-p9R5-eou.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
@@ -546,7 +546,7 @@ Omit `$source` (or use `'core'`) for independent Core colors. Scoped calls emit
546
546
 
547
547
  ### 14.1 Choose a preset
548
548
 
549
- Core ships eight **light** presets in addition to the unchanged `default` palette. They change colors only; typography, spacing, density and corner radius remain unchanged. Only the `default` palette has a dark variant (`$mode`, see [THEME.md](./THEME.md)); combining a named preset with `$mode: 'dark'` or `'auto'` stops the Sass build.
549
+ Core ships nine **light** presets in addition to the unchanged `default` palette. They change colors only; typography, spacing, density and corner radius remain unchanged. Only the `default` palette has a dark variant (`$mode`, see [THEME.md](./THEME.md)); combining a named preset with `$mode: 'dark'` or `'auto'` stops the Sass build.
550
550
 
551
551
  In the consumer's global `styles.scss`, load Core first, then emit the selected palette:
552
552
 
@@ -572,8 +572,9 @@ If `sd-core.scss` is already configured in `angular.json`, do not import it a se
572
572
  | `forest` | Muted natural green | `#356447` | `#E8F0E9` | `#244831` | `#F3F6F0` |
573
573
  | `plum` | Restrained purple | `#7B3F80` | `#F2EAF4` | `#592B60` | `#F7F3F8` |
574
574
  | `rose` | Warm muted pink | `#A33D62` | `#FAEAF0` | `#7D2849` | `#FAF4F5` |
575
+ | `graphite` | Near-black console neutral | `#16181D` | `#E3E5EA` | `#0B0C0F` | `#F3F4F7` |
575
576
 
576
- All eight presets use `surface: #FFFFFF` and `primary-contrast: #FFFFFF`.
577
+ All nine presets use `surface: #FFFFFF` and `primary-contrast: #FFFFFF`.
577
578
 
578
579
  | Preset | Text | Text secondary | Border | Border strong |
579
580
  |---|---|---|---|---|
@@ -585,9 +586,28 @@ All eight presets use `surface: #FFFFFF` and `primary-contrast: #FFFFFF`.
585
586
  | `forest` | `#253128` | `#53634F` | `#CFD9C9` | `#72826C` |
586
587
  | `plum` | `#302334` | `#68576D` | `#DCCFDF` | `#8C7492` |
587
588
  | `rose` | `#35262C` | `#70565F` | `#E1CFD6` | `#997480` |
589
+ | `graphite` | `#16181D` | `#5A606B` | `#DADDE3` | `#737985` |
588
590
 
589
591
  Unlisted tokens inherit the default map in section 3: secondary, info, success, warning, error and their variants keep the same meaning across presets. `text-muted`, `disabled-bg` and `disabled-text` remain derived from `--sd-text`. A preset emits the entire public color token set, not just its differences.
590
592
 
593
+ A named preset may also carry an optional `components` map that overrides component tokens for that preset only (single values, keys checked against `$component-tokens`; see [THEME.md](./THEME.md)). `copper` and `teal` use it to keep Sidebar V4 text on a primary tint at 4.5:1 (`sidebar-v4-active-ink` in `copper`, `sidebar-v4-avatar-ink` in both, set to `var(--sd-primary-dark)`). `graphite` uses it to raise the active Sidebar V4 item as a white surface:
594
+
595
+ ```scss
596
+ // assets/scss/themes/_presets.scss
597
+ 'graphite': (
598
+ primary: #16181d, primary-light: #e3e5ea, primary-dark: #0b0c0f,
599
+ surface: #ffffff, surface-muted: #f3f4f7,
600
+ text: #16181d, text-secondary: #5a606b,
601
+ border: #dadde3, border-strong: #737985,
602
+ components: (
603
+ sidebar-v4-active-bg: var(--sd-surface),
604
+ sidebar-v4-active-shadow: (0 0 0 1px var(--sd-border), 0 1px 2px rgba(20, 22, 28, 0.06)),
605
+ ),
606
+ ),
607
+ ```
608
+
609
+ With `graphite`, `--sd-primary` and `--sd-link` equal the body text color, so links, text and outline buttons, active tab/stepper labels and query-bar values look like body text. No separate link token ships yet; [THEME.md](./THEME.md) lists the affected areas.
610
+
591
611
  ### 14.2 Mixin contract and overrides
592
612
 
593
613
  ```scss
@@ -598,7 +618,7 @@ Unlisted tokens inherit the default map in section 3: secondary, info, success,
598
618
  |---|---|---|
599
619
  | `$theme` | Map of public color tokens from section 3 | `()` |
600
620
  | `$source` | `'core'`, `'material'` | `'core'` |
601
- | `$preset` | `'default'` and the eight lowercase names above | `'default'` |
621
+ | `$preset` | `'default'` and the nine lowercase names above | `'default'` |
602
622
  | `$mode` | `'light'`, `'dark'`, `'auto'` — dark and auto only with `$preset: 'default'` (see [THEME.md](./THEME.md)) | `'light'` |
603
623
 
604
624
  For the Core source, precedence is **default → preset → consumer overrides**. Existing `sd.theme()`, `sd.theme((...))`, and positional `sd.theme((), 'material')` calls remain valid. Unknown preset/source names fail Sass compilation. Combining `$source: 'material'` with any non-default preset also fails: choose one palette owner.
@@ -654,7 +674,7 @@ The preset tests verify white text against primary and primary-dark at **at leas
654
674
  - **Unexpected hover tint after override:** set `primary-light` and `primary-dark` as well as `primary`.
655
675
  - **Overlay differs from screen:** use a root theme or theme the overlay container in the global stylesheet.
656
676
 
657
- Library maintainers can run `npm run test:theme` from the repository root after installing canonical `versions/v19` dependencies. It compiles consumer Sass and covers all eight presets, token completeness, contrast pairs, override precedence, isolated selectors, legacy Material mode and invalid arguments. Edit only v19 and run `npm run sync` for derived versions.
677
+ Library maintainers can run `npm run test:theme` from the repository root after installing canonical `versions/v19` dependencies. It compiles consumer Sass and covers all nine presets, token completeness (Sidebar V4 color tokens included), contrast pairs, override precedence, preset `components` overrides and unknown keys, isolated selectors, legacy Material mode and invalid arguments. Edit only v19 and run `npm run sync` for derived versions.
658
678
 
659
679
  ---
660
680
 
@@ -733,7 +753,7 @@ Khi sinh UI mới, agent phải rà docs Core UI trước và ưu tiên componen
733
753
 
734
754
  - **Spacing layout dùng bội số 4px**: ưu tiên `4`, `8`, `12`, `16`, `24`, `32`... cho margin, padding, gap, gutter. Không sinh spacing lẻ như `3px`, `5px`, `7px` trừ khi có yêu cầu pixel-perfect rõ ràng.
735
755
  - **Hạn chế class CSS cục bộ**: trước khi viết `.field-label`, `.status-pill`, `.detail-row`, `.cell-input`..., kiểm tra có utility class hoặc component `sd-*` phù hợp không. Chỉ thêm SCSS mới khi Core UI không có pattern tương đương.
736
- - **View/read-only label + value**: dùng `<sd-view>` hoặc `[viewed]="true"` trên form component. Không tự dựng cặp label/value bằng class riêng cho các màn hình DETAIL.
756
+ - **View/read-only label + value**: dùng `<sd-view>` hoặc `[viewed]="true"` trên form component. Không tự dựng cặp label/value bằng class riêng cho các màn hình DETAIL; layout đặc thù không dùng được `<sd-view>` thì dùng class `.sd-view-label` / `.sd-view-value` (màu từ token `--sd-view-label-color` / `--sd-view-value-color`, xem [sd-view](../components/view/sd-view.md#styling-tokens)).
737
757
  - **Trạng thái, nhãn, counter**: dùng `<sd-badge>` hoặc `useBadge` của `<sd-table>`. Không tự viết badge/pill/status class trong component nếu chỉ để thể hiện trạng thái.
738
758
  - **Input trong table hoặc vùng dense**: trong `<sd-table>`, inline filter, editable cell, toolbar/cell dày đặc, truyền `size="sm"` cho các form component hỗ trợ size như `<sd-input>`, `<sd-select>`, `<sd-autocomplete>`, `<sd-date>`, `<sd-date-range>`, `<sd-datetime>`, `<sd-input-number>`, `<sd-textarea>`, `<sd-chip>`, `<sd-chip-calendar>`, `<sd-input-color>`.
739
759
  - **Label/required/help trong cell của `sd-table`**: control `sm` không lặp label đã có ở title cột. Cột bắt buộc thêm `*` với `text-error` ngay sau title; guide/help đặt ở icon `info` kèm tooltip trong header, không viết dài hoặc lặp từng hàng. Giữ validator trên control và tên truy cập cho screen reader. Filter/toolbar độc lập và mobile card không có header vẫn cần nhãn nhận diện. Xem quy tắc và mẫu `sdTableTitleDef` trong [sd-table](../components/table/sd-table.md#dense-editable-controls-inside-table-cells).
package/assets/THEME.md CHANGED
@@ -32,9 +32,10 @@ same value, and only adds new custom properties.
32
32
  | --- | --- | --- |
33
33
  | Palette | `--sd-primary`, `--sd-primary-light`, `--sd-primary-dark`, `--sd-primary-contrast`, the same four for `secondary`, `info`, `success`, `warning`, `error`, then `--sd-surface`, `--sd-surface-muted`, `--sd-text`, `--sd-text-secondary`, `--sd-text-muted`, `--sd-border`, `--sd-border-strong`, `--sd-disabled-bg`, `--sd-disabled-text` | The 33 public colours of 2.15, unchanged. Presets and `$theme` set them. |
34
34
  | Ramps | `--sd-{family}-{step}` — families `primary`, `secondary`, `info`, `success`, `warning`, `error`, `neutral`; steps `50 100 200 300 400 500 600 700 800 900 950` | Tints and shades of each family (`color-mix()`), `500` is the base colour. For charts, badges and subtle backgrounds. |
35
- | Semantic roles | `--sd-status-{info,success,warning,error}-{bg,fg}`, `--sd-link`, `--sd-surface-inverse`, `--sd-text-on-solid`, `--sd-border-focus`, `--sd-border-danger`, `--sd-overlay-backdrop`, `--sd-focus-ring-color` | A role instead of a palette slot, so dark mode and custom palettes change the colour without touching the component. |
36
- | Scales | `--sd-space-{0…48}`, `--sd-radius-{2…24, 999}`, `--sd-shadow-{xs,sm,md,lg,xl}`, `--sd-z-{sidebar,header,popover,drawer-mobile,floating,backdrop,drawer,dropdown,overlay,modal,devtools}`, `--sd-duration-{fast,base,slow}`, `--sd-ease-standard`, `--sd-font-size-{10…48}`, `--sd-font-weight-{regular,medium,semibold,bold}`, `--sd-line-height-{16…28}`, `--sd-focus-ring-width`, `--sd-focus-ring-offset` | Non-colour tokens. Each value equals a literal the library already used; names carry the pixel value (`--sd-radius-8` is `8px`). Same in light and dark. |
37
- | Component tokens | `--sd-{component}-{part}`, for example `--sd-table-header-bg`, `--sd-tooltip-bg`, `--sd-query-bar-bg`, `--sd-scrollbar-thumb` | One colour of one component. Light values are the colours the component had in 2.15; each has a dark value. |
35
+ | Semantic roles | `--sd-status-{info,success,warning,error}-{bg,fg}`, `--sd-link`, `--sd-surface-inverse`, `--sd-text-on-solid`, `--sd-border-focus`, `--sd-border-danger`, `--sd-overlay-backdrop`, `--sd-focus-ring-color`, `--sd-control-{border,border-hover,border-focus,border-disabled,ring,ring-error,bg-disabled}` | A role instead of a palette slot, so dark mode and custom palettes change the colour without touching the component. The `--sd-control-*` roles style every box control; see [Control tokens](#control-tokens). |
36
+ | Scales | `--sd-space-{0…48}`, `--sd-radius-{2…24, 999}`, `--sd-shadow-{xs,sm,md,lg,xl}`, `--sd-z-{sidebar,header,popover,drawer-mobile,floating,backdrop,drawer,dropdown,overlay,modal,devtools}`, `--sd-duration-{fast,base,slow}`, `--sd-ease-standard`, `--sd-font-size-{10…48}`, `--sd-font-weight-{regular,medium,semibold,bold}`, `--sd-line-height-{16…28}`, `--sd-focus-ring-width`, `--sd-focus-ring-offset`, `--sd-control-height-{sm,md,lg,coarse}`, `--sd-control-radius`, `--sd-panel-radius` | Non-colour tokens. Each value equals a literal the library already used; names carry the pixel value (`--sd-radius-8` is `8px`). Same in light and dark. The control heights are named by size instead: `sm` / `md` / `lg` are 32 / 40 / 48px, the heights of `sd-button` and of the outlined `mat-form-field` at the same size, and `coarse` is 44px, the minimum height of a control under `@media (pointer: coarse)`. `--sd-control-radius` (8px) is the corner of every box control and `--sd-panel-radius` (10px) the corner of the panels they open. |
37
+ | Component tokens | `--sd-{component}-{part}`, for example `--sd-table-header-bg`, `--sd-tooltip-bg`, `--sd-query-bar-bg`, `--sd-scrollbar-thumb` | One colour of one component. Tokens migrated in 3.0 keep the colour the component had in 2.15 as their light value; tokens added later (`--sd-view-label-color`, `--sd-view-value-color`, `--sd-sidebar-v4-*`) document their own. Each has a dark value. Tokens derived from the palette (`--sd-view-*`, `--sd-sidebar-v4-*` and most `--sd-table-*`, see [Table tokens](#table-tokens)) hold one `var()` / `color-mix()` expression for both modes. |
38
+ | Material tokens | Angular Material component tokens of the form field (outline, label, caret, select arrow), options, checkboxes, radios, pseudo-checkboxes and datepicker, under both the Material 19 names (`--mdc-outlined-text-field-*`, `--mat-full-pseudo-checkbox-*`, …) and the Material 20+ names (`--mat-form-field-outlined-*`, `--mat-pseudo-checkbox-full-*`, …) | Each one points at a Core token (`assets/scss/themes/_material-tokens.scss`): focus and selection use `--sd-primary`, the outline takes its corner and its rest / hover / disabled colours from the control tokens (`--sd-control-radius`, `--sd-control-border`, …), the calendar takes `--sd-panel-radius`, an unchecked checkbox, radio or pseudo-checkbox has a `--sd-border-strong` border (`--sd-text-secondary` on hover and focus), and an error reddens only the outline (`--sd-error`); the floating label keeps the colour of a valid field. Override a Material token on any element to change it for that subtree. |
38
39
 
39
40
  Rules for new code:
40
41
 
@@ -61,8 +62,8 @@ without `sd.theme()` still renders as before.
61
62
  | `'dark'` | The full set with the dark palette, `color-scheme: dark`, and Material's dark colour tokens. |
62
63
  | `'auto'` | Light on the selector; the dark set under `@media (prefers-color-scheme: dark)`, unless the element has `data-sd-theme="light"`. |
63
64
 
64
- - **Dark exists only for the `default` preset.** The eight named presets (`ocean`, `indigo`, `teal`,
65
- `copper`, `slate`, `forest`, `plum`, `rose`) are light palettes: `sd.theme($preset: 'teal', $mode: 'dark')`
65
+ - **Dark exists only for the `default` preset.** The nine named presets (`ocean`, `indigo`, `teal`,
66
+ `copper`, `slate`, `forest`, `plum`, `rose`, `graphite`) are light palettes: `sd.theme($preset: 'teal', $mode: 'dark')`
66
67
  (or `'auto'`) stops the Sass build with an error that points to the `$theme` route below.
67
68
  - `sd-core.scss` already contains `[data-sd-theme=dark] { @include sd.theme($mode: 'dark'); }` and a matching
68
69
  light block, for the default palette from the core source.
@@ -116,12 +117,292 @@ html[data-sd-theme='dark'] { @include sd.theme($brand-dark, $mode: 'dark'); }
116
117
  Set `primary-light` and `primary-dark` whenever you set `primary`: overriding the base does not recompute
117
118
  explicit variants.
118
119
 
120
+ ### Named presets and their `components` map
121
+
122
+ The nine named presets and their values are listed in [STYLE-GUIDE §14.1](./STYLE-GUIDE.md). `graphite` is a
123
+ near-black palette for back-office consoles: `primary` and `text` are both `#16181d`, `primary-contrast`
124
+ stays white, and the semantic families (info, success, warning, error) keep the default values.
125
+
126
+ A named preset may also carry an optional `components` map that replaces component tokens for that preset
127
+ only:
128
+
129
+ - Keys are token names from `$component-tokens` (`assets/scss/themes/_component-tokens.scss`) without the
130
+ `--sd-` prefix. An unknown key stops the Sass build with the list of valid keys.
131
+ - Values are single values, emitted as-is, because named presets are light-only. A comma-separated
132
+ `box-shadow` list stays whole.
133
+ - `sd.theme()` takes the map out before it merges the palette, so every preset emits the same set of
134
+ `--sd-*` names.
135
+
136
+ `$presets` belongs to the library, so `components` is not an app-level option and `$theme` does not accept
137
+ it. An app that needs a different component colour overrides that custom property in its own stylesheet.
138
+
139
+ `graphite` uses the map to turn the active Sidebar V4 item into a raised surface:
140
+
141
+ ```scss
142
+ components: (
143
+ sidebar-v4-active-bg: var(--sd-surface),
144
+ sidebar-v4-active-shadow: (0 0 0 1px var(--sd-border), 0 1px 2px rgba(20, 22, 28, 0.06)),
145
+ ),
146
+ ```
147
+
148
+ `copper` and `teal` use it for contrast. Their `primary` is too light to reach 4.5:1 on its own tint, so the
149
+ Sidebar V4 text that sits on a tint uses `primary-dark` instead: the active item label and the avatar
150
+ initials in `copper`, the avatar initials in `teal`.
151
+
152
+ ```scss
153
+ // copper
154
+ components: (
155
+ sidebar-v4-active-ink: var(--sd-primary-dark),
156
+ sidebar-v4-avatar-ink: var(--sd-primary-dark),
157
+ ),
158
+ // teal
159
+ components: (
160
+ sidebar-v4-avatar-ink: var(--sd-primary-dark),
161
+ ),
162
+ ```
163
+
164
+ ### Links and text buttons under `graphite`
165
+
166
+ `--sd-link` is `var(--sd-primary)`. It is a semantic role, not a palette key, so a preset cannot change it,
167
+ and only the `upload-file` name reads it; most links and text buttons read `--sd-primary` directly. With
168
+ `graphite`, `--sd-primary` is the body text colour, so these elements share the colour of body text:
169
+
170
+ - links: global `a` (it still underlines on hover), links in editor content, the `upload-file` name, the
171
+ API contract builder breadcrumb, the `inform` "show more" button;
172
+ - text buttons: `sd-button` with `type="text"` and `outline`, the `operator`, `preview-video` and
173
+ `job-progress` actions, `image-editor` text buttons, and the form builder add/edit links;
174
+ - active labels: `tab-group`, `anchor-nav`, the current `stepper` step, the shared menu tree of sidebar
175
+ V2/V3 and their mobile variants, and sidebar V1 without `brandColor`;
176
+ - values and tokens: `query-bar`, `query-builder`, the `inline-text` form control, the form builder value
177
+ and expression boxes, the `import-excel` issue counts and the API contract builder field types.
178
+
179
+ No separate link token ships yet. Choose another preset when links and text buttons must stand out by
180
+ colour.
181
+
182
+ ### Sidebar V4 tokens
183
+
184
+ | Token | Value (light and dark) |
185
+ | --- | --- |
186
+ | `--sd-sidebar-v4-bg` | `color-mix(in srgb, var(--sd-text) 4%, var(--sd-surface))` |
187
+ | `--sd-sidebar-v4-line` | `color-mix(in srgb, var(--sd-border) 45%, var(--sd-surface))` |
188
+ | `--sd-sidebar-v4-hover-bg` | `color-mix(in srgb, var(--sd-text) 6%, var(--sd-sidebar-v4-bg))` |
189
+ | `--sd-sidebar-v4-active-bg` | `var(--sd-primary-light)`; `graphite`: `var(--sd-surface)` |
190
+ | `--sd-sidebar-v4-active-shadow` | `none`; `graphite`: the ring and shadow above |
191
+ | `--sd-sidebar-v4-active-ink` | `var(--sd-primary)`; `copper`: `var(--sd-primary-dark)` |
192
+ | `--sd-sidebar-v4-avatar-bg` | `color-mix(in srgb, var(--sd-primary) 14%, var(--sd-surface))` |
193
+ | `--sd-sidebar-v4-avatar-ink` | `var(--sd-primary)`; `copper`, `teal`: `var(--sd-primary-dark)` |
194
+ | `--sd-sidebar-v4-attention` | `var(--sd-warning)` |
195
+ | `--sd-sidebar-v4-live` | `var(--sd-success)` |
196
+
197
+ Each value derives from the palette of its own scope, so one expression serves light, dark and every preset.
198
+ Sizes are not theme tokens: `--sd-sidebar-v4-width`, `-rail-width`, `-item-height`, `-child-height` and
199
+ `-item-radius` are declared on the sidebar host and follow `density`, `itemShape` and the pointer type (see
200
+ `modules/layout/sd-layout.md`).
201
+
202
+ The values resolve where `sd.theme()` emits them. Overriding `--sd-sidebar-v4-bg` lower in the tree
203
+ recolours the drawer but does not move `--sd-sidebar-v4-hover-bg`, which was already computed from the
204
+ background of the theme scope; override `--sd-sidebar-v4-hover-bg` on the same element as well.
205
+
119
206
  ### Scopes
120
207
 
121
208
  `sd.theme()` can be included on any selector; each scope re-declares every token, so a nested scope never
122
209
  inherits values computed from its parent's palette. Overlays (dialogs, select panels) render under `body`:
123
210
  theme the root, or give the overlay container the same scope.
124
211
 
212
+ ## Control tokens
213
+
214
+ Every box control shares one set of tokens: the outlined `mat-form-field` (`sd-input`, `sd-input-number`,
215
+ `sd-textarea`, `sd-select`, `sd-autocomplete`, `sd-date`, `sd-datetime`, `sd-date-range`, `sd-time`, the
216
+ box of `sd-input-color`), the filter input in the `sd-select` panel, `sd-entity-picker` and the other
217
+ inputs the library draws itself. The search boxes of `sd-kanban`, the `sd-table` quick search, the form
218
+ builder palette and the `sd-select` panel share one internal search field that reads these tokens (see
219
+ `forms/directives/sd-form-directives.md`, "Internal (ɵ)"); a disabled search field keeps the
220
+ `--sd-surface-muted` background of its design instead of `--sd-control-bg-disabled`.
221
+
222
+ | State | Token | Value |
223
+ | --- | --- | --- |
224
+ | Corner | `--sd-control-radius` | `8px` |
225
+ | Rest outline | `--sd-control-border` | `color-mix(in srgb, var(--sd-border-strong) 82%, var(--sd-surface))`, at least 3:1 on `surface` |
226
+ | Hover outline | `--sd-control-border-hover` | `var(--sd-border-strong)` |
227
+ | Focus outline | `--sd-control-border-focus` | `var(--sd-border-focus)` |
228
+ | Focus ring | `--sd-control-ring` | `0 0 0 3px color-mix(in srgb, var(--sd-focus-ring-color) 20%, transparent)` |
229
+ | Focus ring of an invalid control | `--sd-control-ring-error` | `0 0 0 3px color-mix(in srgb, var(--sd-error) 18%, transparent)` |
230
+ | Disabled outline | `--sd-control-border-disabled` | `var(--sd-border)` |
231
+ | Disabled background | `--sd-control-bg-disabled` | `var(--sd-disabled-bg)` |
232
+
233
+ - The outline is 1px at rest and on focus; focus adds the ring as a `box-shadow` outside the box. Under
234
+ `forced-colors: active` the ring becomes a 2px `Highlight` outline, since a box-shadow does not show.
235
+ - A focused floating label gets the background `var(--sd-control-label-bg, var(--sd-surface))` so it cuts the
236
+ ring at the notch. A container whose background is not `--sd-surface` sets `--sd-control-label-bg` (the
237
+ column filters and the quick search of `sd-table` set it to `--sd-table-bg`).
238
+ - The select, autocomplete, `sd-operator` menu and calendar panels take `--sd-panel-radius` (10px) on every
239
+ corner, a thin border and `--sd-shadow-md`. The select and autocomplete panels open 6px from the field, use
240
+ `--sd-select-panel-bg` and have 4px of vertical padding. Options keep their 36px height and are inset 4px horizontally
241
+ with a 6px corner, with a 2px gap between neighbouring backgrounds (a transparent 1px border inside the 36px); the
242
+ selected option is `--sd-primary-dark` on `--sd-primary-light`, weight 500.
243
+
244
+ To keep the look of 3.1, set the tokens back at the root (or on any subtree):
245
+
246
+ ```scss
247
+ :root {
248
+ --sd-control-radius: 4px;
249
+ --sd-control-border: var(--sd-border);
250
+ --sd-control-ring: none;
251
+ }
252
+ ```
253
+
254
+ ## Table tokens
255
+
256
+ The colours of `sd-table` derive from the palette and are mixed with `--sd-table-bg` (not `--sd-surface`), with the
257
+ same expression in light and dark, so presets, dark mode and a custom palette change them without new values.
258
+
259
+ | Token | Value |
260
+ | --- | --- |
261
+ | `--sd-table-header-bg` | `color-mix(in srgb, var(--sd-surface-muted) 50%, var(--sd-table-bg))` |
262
+ | `--sd-table-header-text` | `var(--sd-text)` |
263
+ | `--sd-table-group-header-mix` | `var(--sd-table-header-bg)` |
264
+ | `--sd-table-row-divider` | `color-mix(in srgb, var(--sd-border) 45%, var(--sd-table-bg))` |
265
+ | `--sd-table-row-hover-bg` | `color-mix(in srgb, var(--sd-text) 4%, var(--sd-table-bg))` |
266
+ | `--sd-table-row-selected-bg` | `color-mix(in srgb, var(--sd-primary) 9%, var(--sd-table-bg))` |
267
+ | `--sd-table-row-activated-bg` | `color-mix(in srgb, var(--sd-primary) 14%, var(--sd-table-bg))` |
268
+ | `--sd-table-group-row-bg` | `color-mix(in srgb, var(--sd-primary) 4%, var(--sd-table-bg))` |
269
+ | `--sd-table-group-row-border` | `var(--sd-table-row-divider)` |
270
+ | `--sd-table-select-arrow` | `var(--sd-text-secondary)` |
271
+ | `--sd-table-spinner` | `var(--sd-primary)` |
272
+ | `--sd-table-skeleton-bg` | `color-mix(in srgb, var(--sd-text) 8%, var(--sd-table-bg))` |
273
+ | `--sd-table-skeleton-highlight` | `color-mix(in srgb, var(--sd-text) 3%, var(--sd-table-bg))` |
274
+ | `--sd-table-progress-track` | `color-mix(in srgb, var(--sd-primary) 18%, var(--sd-table-bg))` |
275
+
276
+ `--sd-table-bg` (`#ffffff` / `#1d1f23`), the tree level backgrounds and the export panel keep their values.
277
+ The loading layer draws skeleton bars in `--sd-table-skeleton-bg` with a `--sd-table-skeleton-highlight` sweep,
278
+ and the 2px progress bar as a `--sd-table-spinner` streak on `--sd-table-progress-track`. The skeleton is
279
+ decorative (`aria-hidden`), so it has no contrast minimum; with `forced-colors: active` the bars use `GrayText`
280
+ and the progress bar `Canvas`, `CanvasText` and `Highlight`.
281
+ The sort arrows are a mask tinted `--sd-text-secondary` (`--sd-text` on the sorted column); the drag preview,
282
+ the reorder handle, the resize and tree-toggle hovers and the add button shadow use `--sd-table-bg`,
283
+ `--sd-table-row-divider`, `--sd-text-muted`, `color-mix(in srgb, var(--sd-text) 8%, transparent)` and the shadow
284
+ scale. `npm run test:theme` checks header text on the header band and text on a selected or activated row
285
+ (at least 4.5:1) for every preset and dark.
286
+
287
+ ## Kanban tokens
288
+
289
+ `sd-kanban` lanes are neutral and its drop target and card outline derive from the palette, with one expression for
290
+ light and dark. The column colour only marks the 8px dot or the prefix icon.
291
+
292
+ | Token | Value |
293
+ | --- | --- |
294
+ | `--sd-kanban-lane-bg` | `color-mix(in srgb, var(--sd-text) 4%, var(--sd-surface))` |
295
+ | `--sd-kanban-lane-target-bg` | `color-mix(in srgb, var(--sd-primary) 6%, var(--sd-surface))` |
296
+ | `--sd-kanban-lane-target-border` | `color-mix(in srgb, var(--sd-primary) 45%, var(--sd-surface))` |
297
+ | `--sd-kanban-drop-slot-border` | `color-mix(in srgb, var(--sd-primary) 55%, var(--sd-surface))` |
298
+ | `--sd-kanban-card-border` | `color-mix(in srgb, var(--sd-border) 80%, var(--sd-surface))` |
299
+ | `--sd-kanban-card-hover-border` | `color-mix(in srgb, var(--sd-border-strong) 70%, var(--sd-surface))` |
300
+
301
+ `npm run test:theme` checks `--sd-text` and `--sd-text-secondary` on the lane (at least 4.5:1) for every preset and dark.
302
+
303
+ ## Tab router tokens
304
+
305
+ The `sd-tab-router` bar derives from the palette, with one expression for light and dark (design handoff wave 3).
306
+
307
+ | Token | Value |
308
+ | --- | --- |
309
+ | `--sd-tab-router-nav-bg` | `color-mix(in srgb, var(--sd-surface-muted) 60%, var(--sd-surface))` |
310
+ | `--sd-tab-router-item-hover-bg` | `color-mix(in srgb, var(--sd-text) 6%, var(--sd-tab-router-nav-bg))` |
311
+ | `--sd-tab-router-item-active-bg` | `var(--sd-surface)` — the open tab joins the content below it |
312
+ | `--sd-tab-router-item-text` | `var(--sd-text-secondary)` — tabs that are not open; the open tab uses `--sd-text` |
313
+ | `--sd-tab-router-item-divider` | `color-mix(in srgb, var(--sd-border) 70%, var(--sd-tab-router-nav-bg))` |
314
+
315
+ Deprecated, no longer read by the bar and removed in a later release: `--sd-tab-router-item-muted-bg` (now an alias of
316
+ `--sd-tab-router-nav-bg`). `--sd-tab-router-badge-bg` (deprecated in 3.2) is removed: it filled the icon of the old tab, which had
317
+ not been rendered since the tabs moved to `sd-badge`.
318
+
319
+ `npm run test:theme` checks `--sd-tab-router-item-text` on the bar and on a hovered tab, and `--sd-text` on the open
320
+ tab (at least 4.5:1) for every preset and dark.
321
+
322
+ ## Badge size tokens
323
+
324
+ `sd-badge` reads three size tokens with a fallback; they are not part of `sd.theme()` and have no dark value. Set them
325
+ on any ancestor (`:root`, a page, a table). See `components/badge/sd-badge.md`, "Size tokens".
326
+
327
+ | Token | Default |
328
+ | --- | --- |
329
+ | `--sd-badge-height-sm`, `--sd-badge-height-md`, `--sd-badge-height-lg` | `20px`, `24px`, `28px` |
330
+ | `--sd-badge-radius-tag` | `4px` (`md`, `lg` and a tag with a description add 2px) |
331
+ | `--sd-badge-font-weight` | `500` |
332
+
333
+ Badge colours stay on the palette: `*-light` backgrounds, `*-dark` text and icons, the base colour for the dot and
334
+ for `solid` (with `*-contrast` text), `--sd-secondary-light` / `--sd-secondary-dark` for the label of `pair`, and
335
+ `color-mix(in srgb, *-dark 22%, *-light)` for the tag border.
336
+
337
+ ## Avatar status ring token
338
+
339
+ `--sd-avatar-status-ring` (`var(--sd-surface)` in light and dark) is the ring around the `sd-avatar` status dot that
340
+ separates it from the avatar. Set it to the background behind the avatar when that is not `--sd-surface` (a dark
341
+ header, a selected row).
342
+
343
+ ## Button indicator token
344
+
345
+ `--sd-button-indicator-ring` (`var(--sd-surface)` in light and dark) is the 2px ring that separates the `sd-button`
346
+ indicator from the button. Set it to the background behind the button when that is not `--sd-surface`.
347
+
348
+ ## Chip tokens
349
+
350
+ `sd-chip` and `sd-chip-calendar` draw their chips with one mixin, `sd-chip-row()` in `core/form.scss`: a 20 / 24 / 28px chip
351
+ centred in a 32 / 40 / 48px field, 6px radius (`--sd-radius-6`), 1px `--sd-border` outline, `--sd-surface` background and
352
+ `--sd-text` text. Three colours derive from the palette, one expression for light and dark:
353
+
354
+ - `--sd-chip-locked-bg`: the background of a chip that `removable` keeps (55% `--sd-surface-muted` on `--sd-surface`). The chip
355
+ shows a lock icon in place of the remove button.
356
+ - `--sd-chip-more-hover-bg`: the hover background of the “+N” button (6% `--sd-text` on `--sd-surface-muted`, its rest
357
+ background).
358
+ - `--sd-chip-duplicate-bg`: the background of the `sd-chip` chip that a typed value duplicates, for 1.4 seconds (16%
359
+ `--sd-warning` on `--sd-surface` in light, 24% in dark). Its outline uses `--sd-warning` directly.
360
+
361
+ Under `prefers-reduced-motion: reduce` the colours change without a transition. `--sd-chip-bg` stays the hover background of the
362
+ `sdViewDef` face.
363
+
364
+ ## Chip calendar tokens
365
+
366
+ `--sd-chip-calendar-panel-width` (`296px` in light and dark) is the width of the `sd-chip-calendar` popup: 8px padding,
367
+ seven 40px day columns, 8px padding. It is a size, the one non-colour entry of the component tier. The popup itself uses the
368
+ panel surface of the select panel (`--sd-select-panel-bg`, `--sd-panel-radius`, `--sd-shadow-md`), and `--sd-chip-calendar-bg`
369
+ stays the hover background of the `sdViewDef` face.
370
+
371
+ The chips of the field use the shared chip look above. Two colours keep their own names, so an app that set them keeps its
372
+ values; by default they point at the shared tokens:
373
+
374
+ - `--sd-chip-calendar-chip-locked-bg`: `var(--sd-chip-locked-bg)`, the background of a chip that `removable` keeps.
375
+ - `--sd-chip-calendar-more-hover-bg`: `var(--sd-chip-more-hover-bg)`, the hover background of the “+N” button.
376
+
377
+ ## Upload file tokens
378
+
379
+ `sd-upload-file` (design handoff wave 3 · 4b–4d). Field colours come from the palette (`--sd-primary`, `--sd-border-strong`,
380
+ `--sd-status-error-*`, `--sd-surface-muted`); two roles have their own token, one expression for light and dark:
381
+
382
+ | Token | Value | Role |
383
+ | --- | --- | --- |
384
+ | `--sd-upload-file-scrim` | black 24% | Scrim over an image tile on hover or focus |
385
+ | `--sd-upload-file-empty-text` | `--sd-text` 70% on `--sd-surface` | “Chưa có tệp” of the inline variant (4.5:1 in every preset; `--sd-text-muted` is not) |
386
+
387
+ The preview popup is dark in light and dark mode. Its background and text are fixed; the other roles mix from them, and the
388
+ accent, the text on it and the error colour come from the palette ramps:
389
+
390
+ | Token | Light | Dark | Role |
391
+ | --- | --- | --- | --- |
392
+ | `--sd-upload-file-viewer-bg` | `#141518` | `#141518` | Viewer background |
393
+ | `--sd-upload-file-viewer-fg` | `#e3e3e8` | `#e3e3e8` | File name, icon buttons |
394
+ | `--sd-upload-file-viewer-fg-muted` | fg 70% on bg | same | Size, position, filmstrip icons |
395
+ | `--sd-upload-file-viewer-divider` | fg 8% | same | Lines under the top bar and above the filmstrip |
396
+ | `--sd-upload-file-viewer-control-bg` | fg 10% | same | Hover of icon buttons, previous / next buttons |
397
+ | `--sd-upload-file-viewer-thumb-bg` | fg 10% on bg | same | Filmstrip tile of a document |
398
+ | `--sd-upload-file-viewer-accent` | `--sd-primary-200` | `--sd-primary` | File-type icon, focus ring, text buttons, current filmstrip tile |
399
+ | `--sd-upload-file-viewer-on-accent` | `--sd-primary-900` | `--sd-primary-contrast` | Text of the filled “Tải xuống” button |
400
+ | `--sd-upload-file-viewer-error` | `--sd-error-200` | `--sd-error` | Icon of the error state |
401
+ | `--sd-upload-file-viewer-ext-pdf` / `-word` / `-excel` | `--sd-error-300` / `--sd-primary-300` / `--sd-success-300` | same | Extension label of a filmstrip tile |
402
+
403
+ Contrast pairs are in `scripts/theme-contrast.test.mjs`. `--sd-upload-file-overlay-fg` (“+N” over the last visible
404
+ image) keeps its value.
405
+
125
406
  ## Focus ring
126
407
 
127
408
  - Colour: `var(--sd-focus-ring-color)` (the primary colour). Width and offset: `--sd-focus-ring-width` and
@@ -141,8 +422,11 @@ every named preset and the dark palette:
141
422
  | `text`, `text-secondary` | `surface`, `surface-muted` | 4.5 |
142
423
  | `link` | `surface` | 4.5 |
143
424
  | `primary-contrast` | `primary` | 4.5 |
425
+ | `*-contrast` (secondary, info, success, warning, error) | the base colour (badge `solid`) | 4.5 |
426
+ | `*-dark` (all six colours) | `*-light` (badge `round`, `tag`, `pair`) | 4.5 |
144
427
  | `status-*-fg` | `status-*-bg` | 4.5 |
145
428
  | `border-strong`, `focus-ring-color` | `surface`, `surface-muted` | 3 |
429
+ | `control-border` | `surface` | 3 |
146
430
 
147
431
  These are palette checks. Recheck real component states after changing colours, and keep labels or icons
148
432
  for status information.