@sdcorejs/angular 21.3.1 → 21.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/STYLE-GUIDE.md +25 -5
- package/assets/THEME.md +289 -5
- package/assets/licenses/tiptap-oss-NOTICES.txt +332 -0
- package/assets/scss/ckeditor5.scss +2 -88
- package/assets/scss/core/_control.scss +39 -0
- package/assets/scss/core/form.scss +444 -45
- package/assets/scss/core/view.scss +24 -0
- package/assets/scss/editor-content.scss +173 -0
- package/assets/scss/sd-core.scss +1 -0
- package/assets/scss/themes/_component-tokens.scss +123 -32
- package/assets/scss/themes/_material-tokens.scss +112 -0
- package/assets/scss/themes/_presets.scss +25 -0
- package/assets/scss/themes/_scales.scss +10 -0
- package/assets/scss/themes/_semantic.scss +13 -0
- package/assets/scss/themes/default.scss +8 -2
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-avatar.mjs +142 -11
- package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-badge.mjs +542 -24
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +31 -3
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-editor.mjs +457 -756
- package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2118 -1159
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +177 -283
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-operator.mjs +260 -43
- package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +559 -94
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1001 -119
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +887 -174
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-window.mjs +484 -0
- package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +457 -125
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +414 -122
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +79 -13
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +75 -18
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
- package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +56 -6
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +54 -7
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
- package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +87 -33
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +1745 -22
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs +478 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs +214 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs +277 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs +1556 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
- package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +2055 -37
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs +130 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs +131 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs +467 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs +522 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs +293 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs +128 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs +357 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
- package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
- package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
- package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
- package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services.mjs +1 -0
- package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
- package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
- package/modules/pattern/README.md +76 -0
- package/modules/pattern/docs/detail.md +237 -0
- package/modules/pattern/docs/drawer.md +484 -0
- package/modules/pattern/docs/flow.md +631 -0
- package/modules/pattern/docs/form.md +518 -0
- package/modules/pattern/docs/header-actions.md +342 -0
- package/modules/pattern/docs/list.md +247 -0
- package/modules/pattern/docs/relation.md +180 -0
- package/modules/pattern/docs/select.md +206 -0
- package/modules/pattern/docs/split.md +350 -0
- package/modules/pattern/docs/states.md +168 -0
- package/modules/pattern/features/approval/entity.resolver.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
- package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
- package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
- package/modules/pattern/features/approval/routes.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -0
- package/modules/pattern/features/approval/services/approval.service.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -0
- package/modules/pattern/features/category/pages/list/list.component.html +20 -0
- package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
- package/modules/pattern/features/category/routes.ts +42 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -0
- package/modules/pattern/features/category/services/category.service.ts +36 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -0
- package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
- package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
- package/modules/pattern/features/order/pages/list/list.component.html +38 -0
- package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -0
- package/modules/pattern/features/partner/services/partner.service.ts +17 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
- package/modules/pattern/features/product/pages/list/list.component.html +30 -0
- package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
- package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/package.json +44 -7
- package/types/sdcorejs-angular-components-avatar.d.ts +67 -2
- package/types/sdcorejs-angular-components-badge.d.ts +206 -6
- package/types/sdcorejs-angular-components-button.d.ts +20 -1
- package/types/sdcorejs-angular-components-ckeditor-styles.d.ts +3 -18
- package/types/sdcorejs-angular-components-editor-engine.d.ts +246 -0
- package/types/sdcorejs-angular-components-editor.d.ts +20 -17
- package/types/sdcorejs-angular-components-file-explorer.d.ts +4 -2
- package/types/sdcorejs-angular-components-form-generic.d.ts +246 -35
- package/types/sdcorejs-angular-components-mini-editor.d.ts +33 -70
- package/types/sdcorejs-angular-components-modal-resizable.d.ts +1 -124
- package/types/sdcorejs-angular-components-operator.d.ts +137 -8
- package/types/sdcorejs-angular-components-section.d.ts +13 -1
- package/types/sdcorejs-angular-components-splitter.d.ts +1 -1
- package/types/sdcorejs-angular-components-tab-router.d.ts +74 -19
- package/types/sdcorejs-angular-components-table.d.ts +210 -18
- package/types/sdcorejs-angular-components-upload-file.d.ts +181 -21
- package/types/sdcorejs-angular-components-window.d.ts +81 -0
- package/types/sdcorejs-angular-components.d.ts +1 -0
- package/types/sdcorejs-angular-configurations.d.ts +8 -1
- package/types/sdcorejs-angular-forms-autocomplete.d.ts +5 -0
- package/types/sdcorejs-angular-forms-chip-calendar.d.ts +163 -18
- package/types/sdcorejs-angular-forms-chip.d.ts +136 -26
- package/types/sdcorejs-angular-forms-date-range.d.ts +24 -2
- package/types/sdcorejs-angular-forms-date.d.ts +23 -2
- package/types/sdcorejs-angular-forms-directives.d.ts +47 -2
- package/types/sdcorejs-angular-forms-input-number.d.ts +23 -2
- package/types/sdcorejs-angular-forms-input.d.ts +23 -2
- package/types/sdcorejs-angular-forms-models.d.ts +38 -3
- package/types/sdcorejs-angular-forms-select.d.ts +32 -2
- package/types/sdcorejs-angular-i18n.d.ts +344 -2
- package/types/sdcorejs-angular-modules-generic.d.ts +316 -0
- package/types/sdcorejs-angular-modules-icon.d.ts +37 -6
- package/types/sdcorejs-angular-modules-layout.d.ts +622 -89
- package/types/sdcorejs-angular-modules-pattern.d.ts +50 -0
- package/types/sdcorejs-angular-modules.d.ts +1 -0
- package/types/sdcorejs-angular-pipes.d.ts +2 -0
- package/types/sdcorejs-angular-services-date-time.d.ts +57 -0
- package/types/sdcorejs-angular-services-storage.d.ts +8 -1
- package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
- package/types/sdcorejs-angular-services.d.ts +1 -0
- package/types/sdcorejs-angular-utilities-read-state.d.ts +2 -0
- package/types/sdcorejs-angular-utilities-theme.d.ts +1 -1
package/assets/STYLE-GUIDE.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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.
|