@sdcorejs/angular 19.3.5 → 19.3.6
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 +78 -1
- package/assets/THEME.md +45 -3
- package/assets/scss/core/_popover-panel.scss +90 -0
- package/assets/scss/core/form.scss +5 -2
- package/assets/scss/core/utilities/_grid.scss +15 -0
- package/assets/scss/core/utilities/_sizing.scss +4 -0
- package/assets/scss/themes/_component-tokens.scss +9 -4
- package/assets/scss/themes/_semantic.scss +6 -5
- package/components/anchor/src/components/anchor/anchor.component.d.ts +6 -1
- package/components/button/src/button-item.component.d.ts +7 -1
- package/components/calendar/index.d.ts +12 -0
- package/components/calendar/src/calendar-edge-scroll.d.ts +27 -0
- package/components/calendar/src/calendar-format.d.ts +51 -0
- package/components/calendar/src/calendar-host.d.ts +33 -0
- package/components/calendar/src/calendar-loader.d.ts +18 -0
- package/components/calendar/src/calendar-move.d.ts +189 -0
- package/components/calendar/src/calendar.component.d.ts +325 -0
- package/components/calendar/src/calendar.configuration.d.ts +24 -0
- package/components/calendar/src/calendar.model.d.ts +121 -0
- package/components/calendar/src/calendar.templates.d.ts +65 -0
- package/components/calendar/src/calendar.utils.d.ts +242 -0
- package/components/card/index.d.ts +3 -0
- package/components/card/src/card-actions.directive.d.ts +13 -0
- package/components/card/src/card-group.component.d.ts +32 -1
- package/components/card/src/card.component.d.ts +71 -5
- package/components/card/src/card.configuration.d.ts +20 -0
- package/components/card/src/card.format.d.ts +50 -0
- package/components/card/src/card.model.d.ts +83 -0
- package/components/card/src/card.utils.d.ts +5 -0
- package/components/file-explorer/src/file-explorer.utils.d.ts +1 -4
- package/components/index.d.ts +3 -1
- package/components/kanban/src/kanban-card-outlet.d.ts +16 -0
- package/components/kanban/src/kanban-loader.d.ts +45 -0
- package/components/kanban/src/kanban.component.d.ts +97 -37
- package/components/kanban/src/kanban.model.d.ts +93 -37
- package/components/kanban/src/kanban.utils.d.ts +38 -5
- package/components/modal/src/modal.component.d.ts +10 -1
- package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +6 -2
- package/components/query-bar/src/components/chip-popover/chip-popover.component.d.ts +26 -22
- package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +52 -31
- package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +20 -1
- package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +5 -1
- package/components/query-bar/src/components/panel/query-panel.d.ts +110 -0
- package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +15 -8
- package/components/query-bar/src/components/saved-filters-menu/saved-filters-menu.component.d.ts +35 -18
- package/components/query-bar/src/components/saved-filters-menu/saved-filters-storage.d.ts +13 -0
- package/components/query-bar/src/query-bar-filter.d.ts +8 -0
- package/components/query-bar/src/query-bar.component.d.ts +62 -7
- package/components/query-bar/src/query-bar.model.d.ts +2 -0
- package/components/quick-action/index.d.ts +2 -0
- package/components/quick-action/src/selection-bar/selection-bar.component.d.ts +39 -0
- package/components/quick-action/src/selection-bar/selection-bar.model.d.ts +24 -0
- package/components/scheduler/index.d.ts +4 -0
- package/components/scheduler/src/scheduler.component.d.ts +345 -0
- package/components/scheduler/src/scheduler.model.d.ts +123 -0
- package/components/scheduler/src/scheduler.templates.d.ts +76 -0
- package/components/scheduler/src/scheduler.utils.d.ts +99 -0
- package/components/tab/src/tab-group.component.d.ts +6 -1
- package/components/tab-router/src/utils/tab-activated-route.d.ts +17 -0
- package/components/table/src/components/filter/quick-search/quick-search.component.d.ts +3 -1
- package/components/table/src/components/selector-action/action-filter.pipe.d.ts +3 -24
- package/components/table/src/components/selector-action/selector-action.component.d.ts +0 -10
- package/components/table/src/configurations/table.configuration.d.ts +44 -2
- package/components/table/src/models/table-option.model.d.ts +6 -0
- package/components/table/src/services/config.service.d.ts +0 -2
- package/components/table/src/services/table-filter/table-filter-callbacks.util.d.ts +25 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +9 -0
- package/components/table/src/services/table-filter/table-query-bar.util.d.ts +1 -1
- package/components/table/src/services/table-query-params/table-query-params.util.d.ts +48 -0
- package/components/table/src/table.component.d.ts +21 -5
- package/components/timeline/index.d.ts +3 -0
- package/components/timeline/src/timeline.component.d.ts +95 -0
- package/components/timeline/src/timeline.model.d.ts +82 -0
- package/components/timeline/src/timeline.templates.d.ts +28 -0
- package/components/timeline/src/timeline.utils.d.ts +41 -0
- package/components/tree/index.d.ts +1 -0
- package/components/tree/src/tree-empty-def.directive.d.ts +13 -0
- package/components/tree/src/tree.component.d.ts +79 -5
- package/components/tree/src/tree.model.d.ts +29 -0
- package/directives/src/sd-scroll-pointer.service.d.ts +18 -0
- package/directives/src/sd-scroll.directive.d.ts +4 -2
- package/fesm2022/sdcorejs-angular-components-anchor.mjs +61 -2
- package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +13 -5
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-calendar.mjs +2481 -0
- package/fesm2022/sdcorejs-angular-components-calendar.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-card.mjs +485 -22
- package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +4 -18
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +7 -7
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-kanban.mjs +832 -153
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +23 -6
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1304 -212
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs +68 -2
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-scheduler.mjs +1934 -0
- package/fesm2022/sdcorejs-angular-components-scheduler.mjs.map +1 -0
- 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-tab-router.mjs +126 -26
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +30 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +612 -101
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-timeline.mjs +473 -0
- package/fesm2022/sdcorejs-angular-components-timeline.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-tree.mjs +596 -35
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components.mjs +3 -1
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +109 -22
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +140 -42
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +70 -21
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +4 -3
- package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.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 +622 -52
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-DHrM12Z3.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-DHrM12Z3.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-f7ysKltl.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-f7ysKltl.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs → sdcorejs-angular-modules-generic-generic-list.page-BdGxuquq.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-BdGxuquq.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DtPfIB97.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DtPfIB97.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +7 -2
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs → sdcorejs-angular-modules-pattern-base-api.service-Bj3iKGg_.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-Bj3iKGg_.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs → sdcorejs-angular-modules-pattern-create.component-C27vASfj.mjs} +11 -7
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-C27vASfj.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs → sdcorejs-angular-modules-pattern-create.component-C63mUjRM.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs.map → sdcorejs-angular-modules-pattern-create.component-C63mUjRM.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs → sdcorejs-angular-modules-pattern-create.component-DYn8jkTD.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs.map → sdcorejs-angular-modules-pattern-create.component-DYn8jkTD.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs → sdcorejs-angular-modules-pattern-customer.service-BNVk2VIb.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs.map → sdcorejs-angular-modules-pattern-customer.service-BNVk2VIb.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs → sdcorejs-angular-modules-pattern-detail.component-Bh8UD7ft.mjs} +57 -54
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Bh8UD7ft.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs → sdcorejs-angular-modules-pattern-detail.component-S7x8j9i5.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs.map → sdcorejs-angular-modules-pattern-detail.component-S7x8j9i5.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs → sdcorejs-angular-modules-pattern-flow.component-CHtskh2X.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs.map → sdcorejs-angular-modules-pattern-flow.component-CHtskh2X.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs → sdcorejs-angular-modules-pattern-index.component-W8icBRPe.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs.map → sdcorejs-angular-modules-pattern-index.component-W8icBRPe.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs → sdcorejs-angular-modules-pattern-lines-table-form.component-DEwUiNkq.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs.map → sdcorejs-angular-modules-pattern-lines-table-form.component-DEwUiNkq.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-8m-QmfUX.mjs +501 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-8m-QmfUX.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs → sdcorejs-angular-modules-pattern-list.component-BDEm2v0W.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs.map → sdcorejs-angular-modules-pattern-list.component-BDEm2v0W.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BgwTyRhE.mjs +506 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BgwTyRhE.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs → sdcorejs-angular-modules-pattern-list.component-BhFkL7tX.mjs} +30 -39
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BhFkL7tX.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs → sdcorejs-angular-modules-pattern-list.component-j7ZFxvlG.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs.map → sdcorejs-angular-modules-pattern-list.component-j7ZFxvlG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-CPAV_J3j.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-CPAV_J3j.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs → sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs} +4 -22
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs → sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs} +26 -27
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs → sdcorejs-angular-modules-pattern-product.service-B9Dc2NUr.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs.map → sdcorejs-angular-modules-pattern-product.service-B9Dc2NUr.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs → sdcorejs-angular-modules-pattern-profile.component-097Hf7Bc.mjs} +24 -14
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-097Hf7Bc.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs → sdcorejs-angular-modules-pattern-routes-CahNEP9-.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs.map → sdcorejs-angular-modules-pattern-routes-CahNEP9-.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CjfWGMvJ.mjs +65 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CjfWGMvJ.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs → sdcorejs-angular-modules-pattern-routes-DeE5hp5x.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs.map → sdcorejs-angular-modules-pattern-routes-DeE5hp5x.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Di2ceIlM.mjs +56 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Di2ceIlM.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs → sdcorejs-angular-modules-pattern-routes-MEcCUESx.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs.map → sdcorejs-angular-modules-pattern-routes-MEcCUESx.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs → sdcorejs-angular-modules-pattern-routes-hKorxavO.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs.map → sdcorejs-angular-modules-pattern-routes-hKorxavO.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs → sdcorejs-angular-modules-pattern-routes-sJfnmrVg.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs.map → sdcorejs-angular-modules-pattern-routes-sJfnmrVg.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs → sdcorejs-angular-modules-pattern-routes-ygWsDRk9.mjs} +8 -8
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs.map → sdcorejs-angular-modules-pattern-routes-ygWsDRk9.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-C5IG0tkk.mjs} +12 -12
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-C5IG0tkk.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs → sdcorejs-angular-modules-pattern-shell.component-BPgXiYkB.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs.map → sdcorejs-angular-modules-pattern-shell.component-BPgXiYkB.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DF0pm6_f.mjs +480 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DF0pm6_f.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs → sdcorejs-angular-modules-pattern-update.component-BXBxoTdB.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs.map → sdcorejs-angular-modules-pattern-update.component-BXBxoTdB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs → sdcorejs-angular-modules-pattern-update.component-DS253vcu.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs.map → sdcorejs-angular-modules-pattern-update.component-DS253vcu.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs → sdcorejs-angular-modules-pattern-update.component-OOYioclV.mjs} +9 -6
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-OOYioclV.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +171 -158
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-query-params.mjs +226 -0
- package/fesm2022/sdcorejs-angular-services-query-params.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +24 -1
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
- package/forms/date/src/date.component.d.ts +2 -0
- package/forms/directives/src/search-field.component.d.ts +1 -1
- package/i18n/src/en.d.ts +121 -9
- package/modules/layout/components/page-list/page-list.component.d.ts +2 -1
- package/modules/pattern/README.md +5 -4
- package/modules/pattern/docs/detail.md +18 -9
- package/modules/pattern/docs/drawer.md +185 -83
- package/modules/pattern/docs/header-actions.md +1 -1
- package/modules/pattern/docs/list.md +3 -3
- package/modules/pattern/docs/states.md +1 -1
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.d.ts +6 -4
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +12 -16
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.d.ts +13 -5
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +58 -29
- package/modules/pattern/features/category/pages/list/list.component.d.ts +15 -3
- package/modules/pattern/features/category/pages/list/list.component.html +11 -3
- package/modules/pattern/features/category/pages/list/list.component.ts +36 -10
- package/modules/pattern/features/category/routes.d.ts +4 -1
- package/modules/pattern/features/category/routes.ts +5 -22
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.d.ts +6 -5
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +7 -11
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.d.ts +20 -8
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +70 -27
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.d.ts +5 -3
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +9 -53
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.d.ts +18 -7
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +53 -19
- package/modules/pattern/features/customer/entity.resolver.d.ts +1 -1
- package/modules/pattern/features/customer/entity.resolver.ts +1 -1
- package/modules/pattern/features/customer/pages/list/list.component.d.ts +21 -3
- package/modules/pattern/features/customer/pages/list/list.component.html +18 -3
- package/modules/pattern/features/customer/pages/list/list.component.ts +43 -16
- package/modules/pattern/features/customer/pages/profile/profile.component.d.ts +5 -2
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +17 -8
- package/modules/pattern/features/customer/routes.d.ts +3 -2
- package/modules/pattern/features/customer/routes.ts +6 -27
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +11 -3
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +37 -56
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.d.ts +7 -4
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +14 -76
- package/modules/pattern/features/order/pages/create/create.component.d.ts +1 -1
- package/modules/pattern/features/order/pages/create/create.component.ts +7 -3
- package/modules/pattern/features/order/pages/detail/detail.component.ts +1 -1
- package/modules/pattern/features/order/pages/update/update.component.d.ts +1 -1
- package/modules/pattern/features/order/pages/update/update.component.ts +5 -2
- package/package.json +29 -17
- package/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.d.ts +6 -1
- package/services/confirm/src/lib/confirm.service.d.ts +23 -12
- package/services/confirm/src/public-api.d.ts +0 -1
- package/services/query-params/index.d.ts +1 -0
- package/services/query-params/src/query-param-sync.d.ts +63 -0
- package/utilities/extensions/index.d.ts +1 -0
- package/utilities/extensions/src/format-bytes.d.ts +8 -0
- package/components/history/index.d.ts +0 -1
- package/components/history/models/history.model.d.ts +0 -13
- package/components/history/pipes/view-date.pipe.d.ts +0 -9
- package/components/history/src/history.component.d.ts +0 -7
- package/fesm2022/sdcorejs-angular-components-history.mjs +0 -54
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs +0 -145
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs +0 -144
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +0 -18
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs +0 -148
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +0 -87
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +0 -232
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +0 -70
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs +0 -164
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs +0 -118
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs +0 -74
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs +0 -99
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs +0 -143
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs +0 -132
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs.map +0 -1
- package/modules/pattern/features/category/entity.resolver.d.ts +0 -6
- package/modules/pattern/features/category/entity.resolver.ts +0 -27
package/assets/STYLE-GUIDE.md
CHANGED
|
@@ -357,13 +357,90 @@ w-{n} h-{n}
|
|
|
357
357
|
| `h-full` / `h-100` | `height: 100%` |
|
|
358
358
|
| `h-auto` | `height: auto` |
|
|
359
359
|
| `h-screen` | `height: 100vh` |
|
|
360
|
+
| `h-dvh` | `height: 100dvh`, fallback `100vh` |
|
|
361
|
+
| `h-svh` | `height: 100svh`, fallback `100vh` |
|
|
360
362
|
| `h-fit` | `height: fit-content` |
|
|
361
363
|
| `min-h-full` | `min-height: 100%` |
|
|
362
364
|
| `min-h-screen` | `min-height: 100vh` |
|
|
365
|
+
| `min-h-dvh` | `min-height: 100dvh`, fallback `100vh` |
|
|
366
|
+
| `min-h-svh` | `min-height: 100svh`, fallback `100vh` |
|
|
363
367
|
| `min-w-full` | `min-width: 100%` |
|
|
364
368
|
| `max-h-full` | `max-height: 100%` |
|
|
365
369
|
| `max-w-full` | `max-width: 100%` |
|
|
366
370
|
|
|
371
|
+
`h-screen` / `min-h-screen` giữ nguyên nghĩa để tương thích với consumer cũ. Chọn `h-dvh` cho shell toàn màn hình có
|
|
372
|
+
vùng cuộn riêng; chọn `min-h-svh` cho trang cuộn tự nhiên cần ổn định khi thanh công cụ hiện/thu. Thành phần nằm dưới
|
|
373
|
+
header hoặc trong dialog nên lấy phần chiều cao còn lại từ flex/grid của parent, không tự lấy một viewport nữa.
|
|
374
|
+
Xem [Mobile viewport](#83-mobile-viewport) về browser support, safe-area, bàn phím và kiểm chứng trên thiết bị thật.
|
|
375
|
+
|
|
376
|
+
### 8.3 Mobile viewport
|
|
377
|
+
|
|
378
|
+
#### Choosing a height contract
|
|
379
|
+
|
|
380
|
+
Use one viewport-sized owner per fullscreen surface. Its header/footer should not shrink; its scrollable flex child
|
|
381
|
+
needs `min-height: 0` and `overflow: auto`. Children below an application header should fill the remaining parent
|
|
382
|
+
space rather than request another `100dvh`.
|
|
383
|
+
|
|
384
|
+
| Layout | Choice | Tradeoff |
|
|
385
|
+
| --- | --- | --- |
|
|
386
|
+
| Fullscreen shell or file viewer with internal scrolling | `height: 100vh; height: 100dvh` on the outer owner | Follows browser chrome; content can reflow during resize. |
|
|
387
|
+
| Normal document that should fill the screen and continue scrolling | `min-height: 100vh; min-height: 100svh` | Stable while chrome changes; may leave spare space when chrome collapses. |
|
|
388
|
+
| Dialog or bottom sheet | Dynamic `max-height` on the container; one scrollable body | Keep actions outside the body and include padding in the height budget. |
|
|
389
|
+
| Embedded page, table or tab outlet | Parent flex/grid sizing | Do not add a second viewport height below the parent's header. |
|
|
390
|
+
|
|
391
|
+
The `h-dvh`, `h-svh`, `min-h-dvh` and `min-h-svh` utilities are opt-in. Existing `h-screen` and `min-h-screen` retain
|
|
392
|
+
their `100vh` meaning. The upload viewer follows the pane's available height; fit zoom adjusts to the stage, while
|
|
393
|
+
explicit zoom and pan are preserved on resize.
|
|
394
|
+
|
|
395
|
+
#### Browser support and fallback
|
|
396
|
+
|
|
397
|
+
Native `dvh` / `svh` support starts at Safari 15.4, Chrome 108 and Firefox 101. These are feature-support thresholds,
|
|
398
|
+
not a promise that every older browser supports the Angular version or all features of this package. Applications
|
|
399
|
+
must also satisfy their Angular major's browser support policy.
|
|
400
|
+
|
|
401
|
+
Viewport fixes retain a preceding `vh` declaration as a CSS fallback. This preserves usable CSS on older engines;
|
|
402
|
+
it does not reproduce dynamic viewport behavior there. Do not add a global JavaScript `--vh` update on every scroll
|
|
403
|
+
or change the meaning of `SdViewportService.height()` to compensate. If a consumer needs older browsers, validate
|
|
404
|
+
that requirement separately and scope any fallback to the affected surface.
|
|
405
|
+
|
|
406
|
+
References: [viewport units](https://web.dev/blog/viewport-units),
|
|
407
|
+
[Chrome keyboard viewport behavior](https://developer.chrome.com/blog/viewport-resize-behavior).
|
|
408
|
+
|
|
409
|
+
#### Safe area and keyboard
|
|
410
|
+
|
|
411
|
+
Safe-area padding is independent of viewport height. Edge controls use `env(safe-area-inset-*, 0px)`, including in
|
|
412
|
+
landscape. An application opting into `viewport-fit=cover` must account for all exposed edges, not just the bottom.
|
|
413
|
+
Do not add that viewport option solely to fix a height calculation. Contained drawers may sit away from the screen
|
|
414
|
+
edge; inspect the final composition before adding further inset padding.
|
|
415
|
+
|
|
416
|
+
`dvh` does not guarantee that the virtual keyboard is excluded. On browsers where the keyboard only resizes the
|
|
417
|
+
visual viewport, fixed controls can still be obscured. `SdViewportService.height()` continues to expose
|
|
418
|
+
`window.innerHeight`; it is not a keyboard-visible-height API. Only introduce a scoped `visualViewport` adapter after
|
|
419
|
+
reproducing a problem. Such an adapter must consider `height`, `offsetTop`, resize/scroll events, cleanup, SSR and
|
|
420
|
+
pinch zoom. Chrome's `interactive-widget=resizes-content` is not a cross-browser Safari solution.
|
|
421
|
+
|
|
422
|
+
#### Verification matrix
|
|
423
|
+
|
|
424
|
+
Desktop/headless viewport resizing verifies layout constraints, not mobile browser chrome. The repository's
|
|
425
|
+
`showcase/e2e/mobile-viewport.e2e.ts` covers resize behavior on the freshly built library. A simulated small height
|
|
426
|
+
is not a virtual keyboard test; WebKit automation is not a physical Safari toolbar test.
|
|
427
|
+
|
|
428
|
+
Run the following on both Android Chrome and iPhone Safari, recording device, OS/browser versions, orientation,
|
|
429
|
+
viewport meta settings and browser/tab versus installed-app mode. Test toolbar expanded, collapsed, and transitioning.
|
|
430
|
+
|
|
431
|
+
| Case | Steps | Acceptance |
|
|
432
|
+
| --- | --- | --- |
|
|
433
|
+
| V1 shell | Mount `sd-layout` V1 as the actual app root, with a long page and a bottom action. Scroll to the end, change toolbar state, rotate. | Last content and action reachable; no unintended document scrollbar or nested scrolling. Do not rely on the clipped showcase fixture. |
|
|
434
|
+
| Upload viewer | Open multiple files, select the last thumbnail, zoom/pan, change toolbar state, rotate with the viewer open. | Toolbar and filmstrip inside the visible area; explicit zoom/pan retained; fitted image recomputes without losing controls. |
|
|
435
|
+
| Confirm sheet | Open long text or a vertical choice list; scroll to the last choice in both orientations. | Only content scrolls; title can be reached and both actions remain visible and tappable. |
|
|
436
|
+
| Table sheets | Open full filter, individual field and sort sheets with many choices. | Apply/Cancel and the last choice remain reachable; safe-area padding survives shared styles. |
|
|
437
|
+
| Keyboard | Focus the last editable field in a modal, drawer and filter; type, dismiss the keyboard, rotate and repeat. | Focused field can be revealed; actions reachable without losing input or moving the entire page unexpectedly. |
|
|
438
|
+
| Safe area | On a notched iPhone, test a consumer that actually uses `viewport-fit=cover`; include landscape and installed mode if supported by the app. | Controls avoid top/bottom/side insets; no doubled inset from parent and child. |
|
|
439
|
+
| Docs search | Search for a term with many results; rotate beyond 760px width while open; focus the search field. | Results scroll, footer remains reachable, no clipped close button. |
|
|
440
|
+
|
|
441
|
+
Record physical-device results separately from automated resize results. A passing automated run does not close
|
|
442
|
+
the toolbar, keyboard or nonzero-safe-area checks above.
|
|
443
|
+
|
|
367
444
|
---
|
|
368
445
|
|
|
369
446
|
## 9. Border & radius
|
|
@@ -664,7 +741,7 @@ These presets own **Core color tokens**, not the full Material palette. They do
|
|
|
664
741
|
|
|
665
742
|
Table quick-search/footer backgrounds follow the component token `--sd-table-bg` (white in every light palette, dark with `$mode: 'dark'`); a global `surface` override does not change those regions — override `--sd-table-bg` instead. Tab header/body classes and inline styles also take precedence where supplied.
|
|
666
743
|
|
|
667
|
-
The preset tests verify white text against primary and primary-dark at **at least 4.5:1**, primary/secondary body text against surface and surface-muted at **at least 4.5:1**, and strong
|
|
744
|
+
The preset tests verify white text against primary and primary-dark at **at least 4.5:1**, primary/secondary body text against surface and surface-muted at **at least 4.5:1**, and `border-strong` (the hover outline, checkbox and radio boxes) against those surfaces at **at least 3:1**. The rest outline of box controls (`--sd-control-border`) is lighter by design: **at least 2:1** on `surface` and always above `border`, so an empty field never looks disabled; the label, the hover outline and the focus ring identify the field. To restore a 3:1 rest outline, see `THEME.md` "Control tokens". Subtle `border` is for dividers and disabled outlines, not the sole boundary of an enabled control. These checks are palette checks, not a claim that every component/state is accessibility-certified. Recheck actual rendered states after consumer overrides; retain labels/icons for status information.
|
|
668
745
|
|
|
669
746
|
### 14.5 Troubleshooting and verification
|
|
670
747
|
|
package/assets/THEME.md
CHANGED
|
@@ -222,7 +222,7 @@ builder palette and the `sd-select` panel share one internal search field that r
|
|
|
222
222
|
| State | Token | Value |
|
|
223
223
|
| --- | --- | --- |
|
|
224
224
|
| Corner | `--sd-control-radius` | `8px` |
|
|
225
|
-
| Rest outline | `--sd-control-border` | `color-mix(in srgb, var(--sd-border-strong)
|
|
225
|
+
| Rest outline | `--sd-control-border` | `color-mix(in srgb, var(--sd-border-strong) 60%, var(--sd-surface))`, at least 2:1 on `surface`, above `--sd-border` |
|
|
226
226
|
| Hover outline | `--sd-control-border-hover` | `var(--sd-border-strong)` |
|
|
227
227
|
| Focus outline | `--sd-control-border-focus` | `var(--sd-border-focus)` |
|
|
228
228
|
| Focus ring | `--sd-control-ring` | `0 0 0 3px color-mix(in srgb, var(--sd-focus-ring-color) 20%, transparent)` |
|
|
@@ -241,6 +241,18 @@ builder palette and the `sd-select` panel share one internal search field that r
|
|
|
241
241
|
with a 6px corner, with a 2px gap between neighbouring backgrounds (a transparent 1px border inside the 36px); the
|
|
242
242
|
selected option is `--sd-primary-dark` on `--sd-primary-light`, weight 500.
|
|
243
243
|
|
|
244
|
+
The rest outline stays under the 3:1 that WCAG 1.4.11 asks of a component boundary: about 2.1–2.3:1 on
|
|
245
|
+
`surface` in light (every preset) and 2.9:1 in dark, so a form with many fields does not look heavier than the
|
|
246
|
+
cards and dividers around it. The label identifies the field, hover (`--sd-border-strong`) and focus reach 3:1,
|
|
247
|
+
and the rest outline stays darker than `--sd-border`, so an empty field never looks disabled. To bring the rest
|
|
248
|
+
outline back to 3:1 (the value up to 3.5):
|
|
249
|
+
|
|
250
|
+
```scss
|
|
251
|
+
:root {
|
|
252
|
+
--sd-control-border: color-mix(in srgb, var(--sd-border-strong) 82%, var(--sd-surface));
|
|
253
|
+
}
|
|
254
|
+
```
|
|
255
|
+
|
|
244
256
|
To keep the look of 3.1, set the tokens back at the root (or on any subtree):
|
|
245
257
|
|
|
246
258
|
```scss
|
|
@@ -287,7 +299,8 @@ scale. `npm run test:theme` checks header text on the header band and text on a
|
|
|
287
299
|
## Kanban tokens
|
|
288
300
|
|
|
289
301
|
`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.
|
|
302
|
+
light and dark. The column colour only marks the 8px dot or the prefix icon. The dashed drop slot shows only with
|
|
303
|
+
`option.move.reorder`; the selected card and "Show more" mix `--sd-primary` and need no token of their own.
|
|
291
304
|
|
|
292
305
|
| Token | Value |
|
|
293
306
|
| --- | --- |
|
|
@@ -374,6 +387,35 @@ values; by default they point at the shared tokens:
|
|
|
374
387
|
- `--sd-chip-calendar-chip-locked-bg`: `var(--sd-chip-locked-bg)`, the background of a chip that `removable` keeps.
|
|
375
388
|
- `--sd-chip-calendar-more-hover-bg`: `var(--sd-chip-more-hover-bg)`, the hover background of the “+N” button.
|
|
376
389
|
|
|
390
|
+
## Calendar tokens
|
|
391
|
+
|
|
392
|
+
`sd-calendar` (and `sd-scheduler`, which reuses them) draws its grid with five tokens:
|
|
393
|
+
|
|
394
|
+
| Token | Value (light and dark) | Default light |
|
|
395
|
+
| --- | --- | --- |
|
|
396
|
+
| `--sd-calendar-line` | `color-mix(in srgb, var(--sd-border) 55%, var(--sd-surface))` | `#dedee5` |
|
|
397
|
+
| `--sd-calendar-line-half` | `color-mix(in srgb, var(--sd-border) 25%, var(--sd-surface))` | `#efeef3` |
|
|
398
|
+
| `--sd-calendar-off-hours` | `color-mix(in srgb, var(--sd-surface-muted) 45%, var(--sd-surface))` | `#f3f3f7` |
|
|
399
|
+
| `--sd-calendar-now` | `var(--sd-error)` | `#ba1a1a` |
|
|
400
|
+
| `--sd-calendar-today` | `var(--sd-primary)` | `#005cbb` |
|
|
401
|
+
|
|
402
|
+
`-line` draws hour lines and borders, `-line-half` the half-hour lines, `-off-hours` the background outside working
|
|
403
|
+
hours, on days off and outside `minDate`/`maxDate`, `-now` the current-time line and `-today` the marker of today.
|
|
404
|
+
Each value derives from the palette of its own scope, so one expression serves light, dark and every preset.
|
|
405
|
+
Sizes are not theme tokens: `--sd-calendar-hour-height` (48px), `--sd-calendar-gutter-width` (56px, 48px when
|
|
406
|
+
compact) and `--sd-calendar-event-radius` are declared on the calendar host.
|
|
407
|
+
|
|
408
|
+
`sd-scheduler` adds no colour token. Its sizes are declared on its host: `--sd-scheduler-resource-width` (240px, 120px
|
|
409
|
+
when compact), `--sd-scheduler-hour-width` (80px, 64px), `--sd-scheduler-day-min-width` (120px, 96px),
|
|
410
|
+
`--sd-scheduler-month-day-min-width` (28px), `--sd-scheduler-lane-height` (28px), `--sd-scheduler-row-min-height`
|
|
411
|
+
(48px), `--sd-scheduler-group-height` (32px, 44px) and `--sd-scheduler-event-radius`. Set the four widths in `px`: the
|
|
412
|
+
scheduler reads them with `getComputedStyle` to size the content of a block and to place a drag.
|
|
413
|
+
|
|
414
|
+
## Timeline token
|
|
415
|
+
|
|
416
|
+
`--sd-timeline-line` (`var(--sd-border)` in light and dark) is the 1px connector between the markers of `sd-timeline`.
|
|
417
|
+
Set it to a stronger or tinted colour when the timeline sits on a background close to `--sd-border`.
|
|
418
|
+
|
|
377
419
|
## Upload file tokens
|
|
378
420
|
|
|
379
421
|
`sd-upload-file` (design handoff wave 3 · 4b–4d). Field colours come from the palette (`--sd-primary`, `--sd-border-strong`,
|
|
@@ -426,7 +468,7 @@ every named preset and the dark palette:
|
|
|
426
468
|
| `*-dark` (all six colours) | `*-light` (badge `round`, `tag`, `pair`) | 4.5 |
|
|
427
469
|
| `status-*-fg` | `status-*-bg` | 4.5 |
|
|
428
470
|
| `border-strong`, `focus-ring-color` | `surface`, `surface-muted` | 3 |
|
|
429
|
-
| `control-border` | `surface` |
|
|
471
|
+
| `control-border` | `surface` | 2, and above `border` on `surface` |
|
|
430
472
|
|
|
431
473
|
These are palette checks. Recheck real component states after changing colours, and keep labels or icons
|
|
432
474
|
for status information.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Khung panel nổi dạng Action Popover — dùng chung cho panel hành động của sd-button và ba panel của sd-query-bar
|
|
2
|
+
// (field picker, chip popover, bộ lọc đã lưu). Tách nguyên giá trị từ `components/button/src/action-popover.scss`
|
|
3
|
+
// (handoff query bar, mục 2.1): đổi giá trị ở đây là đổi cả hai nơi.
|
|
4
|
+
//
|
|
5
|
+
// Mixin đặt lên phần tử gốc của nội dung panel (nằm trong template của component, nên style của component vẫn áp
|
|
6
|
+
// khi nội dung được gắn vào overlay — không cần `::ng-deep`).
|
|
7
|
+
|
|
8
|
+
/// Khung: giới hạn kích thước, viền, bo, nền, bóng. Không có padding — panel biểu mẫu tự lo phần đệm.
|
|
9
|
+
@mixin panel {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
min-width: min(160px, calc(100vw - 16px));
|
|
12
|
+
max-width: min(320px, calc(100vw - 16px));
|
|
13
|
+
max-height: min(360px, calc(100dvh - 16px));
|
|
14
|
+
overflow: auto;
|
|
15
|
+
border: 1px solid var(--sd-border, #dde0e5);
|
|
16
|
+
border-radius: var(--sd-radius-8, 8px);
|
|
17
|
+
background: var(--sd-surface, var(--sd-white, #fff));
|
|
18
|
+
color: var(--sd-text, #1a1b1f);
|
|
19
|
+
box-shadow:
|
|
20
|
+
0 4px 12px rgb(15 23 42 / 14%),
|
|
21
|
+
0 1px 3px rgb(15 23 42 / 10%);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/// Khung của panel danh sách (hàng `item`): khung + đệm 4px.
|
|
25
|
+
@mixin panel-list {
|
|
26
|
+
@include panel;
|
|
27
|
+
padding: 4px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/// Một hàng bấm được (thường là `<button>`): 40px, chữ 14/20, nền 8% khi hover / focus, mờ khi disabled.
|
|
31
|
+
/// `--sd-action-accent` đổi màu nền nhấn và icon theo hàng.
|
|
32
|
+
@mixin item {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
width: 100%;
|
|
38
|
+
min-height: 40px;
|
|
39
|
+
padding: 8px 12px;
|
|
40
|
+
border: 0;
|
|
41
|
+
border-radius: var(--sd-radius-4, 4px);
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: inherit;
|
|
44
|
+
font: inherit;
|
|
45
|
+
font-size: var(--sd-font-size-14, 14px);
|
|
46
|
+
line-height: var(--sd-line-height-20, 20px);
|
|
47
|
+
text-align: start;
|
|
48
|
+
overflow-wrap: anywhere;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
|
|
51
|
+
&:hover:not(:disabled),
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
background: color-mix(in srgb, var(--sd-action-accent, var(--sd-text, #1a1b1f)) 8%, transparent);
|
|
54
|
+
}
|
|
55
|
+
&:focus-visible {
|
|
56
|
+
outline: var(--sd-focus-ring-width, 2px) solid var(--sd-focus-ring-color, var(--sd-primary));
|
|
57
|
+
outline-offset: -2px;
|
|
58
|
+
}
|
|
59
|
+
&:disabled {
|
|
60
|
+
opacity: 0.45;
|
|
61
|
+
cursor: default;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Cỡ chạm.
|
|
65
|
+
@media (pointer: coarse) {
|
|
66
|
+
min-height: 44px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/// Icon đầu hàng: 18px, màu nhấn của hàng.
|
|
71
|
+
@mixin icon {
|
|
72
|
+
flex: 0 0 18px;
|
|
73
|
+
width: 18px;
|
|
74
|
+
height: 18px;
|
|
75
|
+
font-size: var(--sd-font-size-18, 18px);
|
|
76
|
+
color: var(--sd-action-accent, inherit);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/// Tiêu đề nhóm.
|
|
80
|
+
@mixin heading {
|
|
81
|
+
padding: 4px 12px;
|
|
82
|
+
font-size: var(--sd-font-size-12, 12px);
|
|
83
|
+
color: var(--sd-text-secondary, #555);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/// Đường kẻ giữa hai nhóm hàng.
|
|
87
|
+
@mixin divider {
|
|
88
|
+
border-top: 1px solid var(--sd-border, #dde0e5);
|
|
89
|
+
margin: 4px 8px;
|
|
90
|
+
}
|
|
@@ -103,10 +103,13 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.mat-mdc-form-field-infix {
|
|
106
|
+
// why: ở Material 22, panel của mat-select là popover nằm ngay trong mat-select (tức trong infix),
|
|
107
|
+
// nên input/textarea bên trong panel (ô lọc của sd-select) cũng khớp rule này, nhận margin-top 10px và
|
|
108
|
+
// lệch xuống 5px so với icon tìm kiếm. Rule chỉ dành cho control của chính form-field.
|
|
106
109
|
mat-select.mat-mdc-select,
|
|
107
110
|
mat-date-range-input.mat-mdc-date-range-input,
|
|
108
|
-
input.mat-mdc-input-element,
|
|
109
|
-
textarea.mat-mdc-input-element {
|
|
111
|
+
input.mat-mdc-input-element:not(.mat-mdc-select-panel *),
|
|
112
|
+
textarea.mat-mdc-input-element:not(.mat-mdc-select-panel *) {
|
|
110
113
|
font-size: var(--sd-font-size-14, 14px);
|
|
111
114
|
margin-top: 10px; // Text hiển thị trong auto complete
|
|
112
115
|
}
|
|
@@ -147,3 +147,18 @@ $grid-breakpoints: (
|
|
|
147
147
|
grid-row: 1 / -1;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
+
|
|
151
|
+
// --------------------------------------------------------------------------
|
|
152
|
+
// sd-card group layout: auto-fit tiles (md) or a wrapping row (sm)
|
|
153
|
+
// --------------------------------------------------------------------------
|
|
154
|
+
.sd-card-grid {
|
|
155
|
+
display: grid;
|
|
156
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
157
|
+
gap: 12px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.sd-card-grid--sm {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-wrap: wrap;
|
|
163
|
+
gap: 8px;
|
|
164
|
+
}
|
|
@@ -18,10 +18,14 @@
|
|
|
18
18
|
.h-100 { height: 100% !important; } // alias of h-full
|
|
19
19
|
.h-auto { height: auto !important; }
|
|
20
20
|
.h-screen { height: 100vh !important; }
|
|
21
|
+
.h-dvh { height: 100vh !important; height: 100dvh !important; }
|
|
22
|
+
.h-svh { height: 100vh !important; height: 100svh !important; }
|
|
21
23
|
.h-fit { height: fit-content !important; }
|
|
22
24
|
|
|
23
25
|
.min-h-full { min-height: 100% !important; }
|
|
24
26
|
.min-h-screen { min-height: 100vh !important; }
|
|
27
|
+
.min-h-dvh { min-height: 100vh !important; min-height: 100dvh !important; }
|
|
28
|
+
.min-h-svh { min-height: 100vh !important; min-height: 100svh !important; }
|
|
25
29
|
.min-w-full { min-width: 100% !important; }
|
|
26
30
|
|
|
27
31
|
.max-h-full { max-height: 100% !important; }
|
|
@@ -65,6 +65,13 @@ $component-tokens: (
|
|
|
65
65
|
'avatar-color-17': (#c0392b, #c0392b),
|
|
66
66
|
'avatar-color-18': (#bdc3c7, #bdc3c7),
|
|
67
67
|
'avatar-color-19': (#7f8c8d, #7f8c8d),
|
|
68
|
+
// calendar (sd-calendar, shared by sd-scheduler) — grid lines, off hours, the now line and the today marker.
|
|
69
|
+
// Every value mixes from the palette of its own scope, so one expression serves both modes and every preset.
|
|
70
|
+
'calendar-line': (color-mix(in srgb, var(--sd-border) 55%, var(--sd-surface)), color-mix(in srgb, var(--sd-border) 55%, var(--sd-surface))),
|
|
71
|
+
'calendar-line-half': (color-mix(in srgb, var(--sd-border) 25%, var(--sd-surface)), color-mix(in srgb, var(--sd-border) 25%, var(--sd-surface))),
|
|
72
|
+
'calendar-off-hours': (color-mix(in srgb, var(--sd-surface-muted) 45%, var(--sd-surface)), color-mix(in srgb, var(--sd-surface-muted) 45%, var(--sd-surface))),
|
|
73
|
+
'calendar-now': (var(--sd-error), var(--sd-error)),
|
|
74
|
+
'calendar-today': (var(--sd-primary), var(--sd-primary)),
|
|
68
75
|
// code-editor — always dark
|
|
69
76
|
'code-editor-bg': (#1e1e1e, #1e1e1e),
|
|
70
77
|
'code-editor-header-bg': (#2d2d2d, #2d2d2d),
|
|
@@ -115,10 +122,6 @@ $component-tokens: (
|
|
|
115
122
|
'form-builder-outline-mix': (#d6d2da, #49454f),
|
|
116
123
|
'form-builder-mix-tint': (#ffffff, #1d1f23),
|
|
117
124
|
'form-builder-expression-bg': (#e6e6e6, #34373d),
|
|
118
|
-
// history
|
|
119
|
-
'history-line': (#94b0ff, #5d78c9),
|
|
120
|
-
'history-meta': (#757575, #a4a6b0),
|
|
121
|
-
'history-meta-strong': (#000000, #e3e2e6),
|
|
122
125
|
// kanban — neutral lanes, drop target and card outline derived from the palette, one expression for light
|
|
123
126
|
// and dark (design handoff wave 1).
|
|
124
127
|
'kanban-lane-bg': (color-mix(in srgb, var(--sd-text) 4%, var(--sd-surface)), color-mix(in srgb, var(--sd-text) 4%, var(--sd-surface))),
|
|
@@ -269,6 +272,8 @@ $component-tokens: (
|
|
|
269
272
|
'table-tree-root-text': (#1f2330, #e3e2e6),
|
|
270
273
|
'table-export-panel-bg': (#f6f6f6, #25272c),
|
|
271
274
|
'table-export-text': (#000000, #e3e2e6),
|
|
275
|
+
// timeline — connector between entries; the theme border by default.
|
|
276
|
+
'timeline-line': (var(--sd-border), var(--sd-border)),
|
|
272
277
|
// tree
|
|
273
278
|
'tree-selected-mix': (#ffffff, #1d1f23),
|
|
274
279
|
'tree-text': (#102047, #e3e2e6),
|
|
@@ -21,11 +21,12 @@ $states: info, success, warning, error;
|
|
|
21
21
|
--sd-overlay-backdrop: color-mix(in srgb, black #{if($scheme == dark, 60%, 32%)}, transparent);
|
|
22
22
|
--sd-focus-ring-color: var(--sd-primary);
|
|
23
23
|
// Box controls (form fields, search box, entity picker): outline per state, focus ring and disabled
|
|
24
|
-
// background. why:
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
|
|
24
|
+
// background. why: viền nghỉ trộn border-strong 82% (3:1) đậm hơn mọi đường kẻ khác trên trang (viền card,
|
|
25
|
+
// divider 1.25–1.66:1), làm form nhiều ô bị nặng. 60% cho khoảng 2.1–2.3:1 ở light với mọi preset, khoảng
|
|
26
|
+
// 2.9:1 ở dark: dưới mốc 3:1 của WCAG 1.4.11, ô được nhận diện nhờ label, nhưng vẫn đậm hơn --sd-border
|
|
27
|
+
// (1.4–2:1) nên ô trống không trông như ô vô hiệu (scripts/theme-contrast.test.mjs giữ điều này). Hover
|
|
28
|
+
// (border-strong) và focus vẫn đạt 3:1. Cùng một biểu thức dùng được cho cả hai mode.
|
|
29
|
+
--sd-control-border: color-mix(in srgb, var(--sd-border-strong) 60%, var(--sd-surface));
|
|
29
30
|
--sd-control-border-hover: var(--sd-border-strong);
|
|
30
31
|
--sd-control-border-focus: var(--sd-border-focus);
|
|
31
32
|
--sd-control-border-disabled: var(--sd-border);
|
|
@@ -14,11 +14,16 @@ export declare class SdAnchor implements OnDestroy {
|
|
|
14
14
|
hideNav: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
15
|
hideNavOnMobile: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
16
|
color: import("@angular/core").InputSignal<Color>;
|
|
17
|
+
/**
|
|
18
|
+
* Ghi mục đang xem lên query param `anchor-<autoId>` (giá trị `key` của `sd-anchor-item`, mục không có `key` dùng vị
|
|
19
|
+
* trí 0-based) và cuộn tới mục đó khi mở link. Cần `autoId`. Mục đầu tiên thì param bị xoá. Mặc định tắt.
|
|
20
|
+
*/
|
|
21
|
+
readonly syncQueryParams: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
22
|
readonly navHidden: import("@angular/core").Signal<boolean>;
|
|
18
23
|
activeSectionId: import("@angular/core").WritableSignal<string>;
|
|
19
24
|
constructor();
|
|
20
25
|
scrollSectionByClick(idSectionTarget: string): void;
|
|
21
26
|
ngOnDestroy(): void;
|
|
22
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdAnchor, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdAnchor, "sd-anchor", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "sidebarWidth": { "alias": "sidebarWidth"; "required": false; "isSignal": true; }; "ellipsis": { "alias": "ellipsis"; "required": false; "isSignal": true; }; "overScroll": { "alias": "overScroll"; "required": false; "isSignal": true; }; "hideNav": { "alias": "hideNav"; "required": false; "isSignal": true; }; "hideNavOnMobile": { "alias": "hideNavOnMobile"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, ["sections"], ["*"], true, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdAnchor, "sd-anchor", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "sidebarWidth": { "alias": "sidebarWidth"; "required": false; "isSignal": true; }; "ellipsis": { "alias": "ellipsis"; "required": false; "isSignal": true; }; "overScroll": { "alias": "overScroll"; "required": false; "isSignal": true; }; "hideNav": { "alias": "hideNav"; "required": false; "isSignal": true; }; "hideNavOnMobile": { "alias": "hideNavOnMobile"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "syncQueryParams": { "alias": "syncQueryParams"; "required": false; "isSignal": true; }; }, {}, ["sections"], ["*"], true, never>;
|
|
24
29
|
}
|
|
@@ -11,10 +11,16 @@ export declare class SdButtonItem {
|
|
|
11
11
|
readonly suffixIcon: import("@angular/core").InputSignal<string | null | undefined>;
|
|
12
12
|
readonly fontSet: import("@angular/core").InputSignalWithTransform<SdIconSet | undefined, SdIconSet | null | undefined>;
|
|
13
13
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Bật/tắt: `true`/`false` biến mục thành `menuitemcheckbox` có `aria-checked` và ô chọn ở đầu mục; kích hoạt bằng
|
|
16
|
+
* chuột, Enter hay Space phát `click` mà không đóng menu, để bật tắt nhiều mục liền nhau. `null`/`undefined` (mặc
|
|
17
|
+
* định): mục lệnh thường, đóng menu rồi mới phát `click`.
|
|
18
|
+
*/
|
|
19
|
+
readonly checked: import("@angular/core").InputSignalWithTransform<boolean | undefined, boolean | null | undefined>;
|
|
14
20
|
readonly tooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
15
21
|
readonly autoId: import("@angular/core").InputSignal<string | null | undefined>;
|
|
16
22
|
readonly click: import("@angular/core").OutputEmitterRef<Event>;
|
|
17
23
|
readonly template: import("@angular/core").Signal<TemplateRef<any>>;
|
|
18
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdButtonItem, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdButtonItem, "sd-button-item", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "fontSet": { "alias": "fontSet"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdButtonItem, "sd-button-item", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "fontSet": { "alias": "fontSet"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, ["*"], true, never>;
|
|
20
26
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './src/calendar.component';
|
|
2
|
+
export * from './src/calendar.configuration';
|
|
3
|
+
export type * from './src/calendar.model';
|
|
4
|
+
export { SdCalendarAgendaItemTemplateDirective, SdCalendarDayCellTemplateDirective, SdCalendarEmptyTemplateDirective, SdCalendarEventTemplateDirective, } from './src/calendar.templates';
|
|
5
|
+
export type { SdCalendarAgendaItemTemplateContext, SdCalendarDayCellTemplateContext, SdCalendarEmptyTemplateContext, SdCalendarEventTemplateContext, } from './src/calendar.templates';
|
|
6
|
+
export { SdCalendarEdgeScroller as ɵSdCalendarEdgeScroller, sdCalendarEdgeSpeed as ɵsdCalendarEdgeSpeed, type SdCalendarEdgeArea as ɵSdCalendarEdgeArea, } from './src/calendar-edge-scroll';
|
|
7
|
+
export { SdCalendarHostWidth as ɵSdCalendarHostWidth, SdCalendarMinuteTimer as ɵSdCalendarMinuteTimer, SdCalendarReporter as ɵSdCalendarReporter, sdCalendarIsRtl as ɵsdCalendarIsRtl, } from './src/calendar-host';
|
|
8
|
+
export { sdCalendarDateText as ɵsdCalendarDateText, sdCalendarFormats as ɵsdCalendarFormats, sdCalendarMovedText as ɵsdCalendarMovedText, sdCalendarTitle as ɵsdCalendarTitle, sdCalendarUtcDay as ɵsdCalendarUtcDay, sdCalendarWeekdayLong as ɵsdCalendarWeekdayLong, type SdCalendarFormats as ɵSdCalendarFormats, type SdCalendarTitleKind as ɵSdCalendarTitleKind, type SdCalendarTranslate as ɵSdCalendarTranslate, } from './src/calendar-format';
|
|
9
|
+
export { SdCalendarLoader as ɵSdCalendarLoader, type SdCalendarLoadPhase as ɵSdCalendarLoadPhase } from './src/calendar-loader';
|
|
10
|
+
export { SdCalendarAnnouncer as ɵSdCalendarAnnouncer, SdCalendarCreateRunner as ɵSdCalendarCreateRunner, SdCalendarFocusKeeper as ɵSdCalendarFocusKeeper, SdCalendarMoveRunner as ɵSdCalendarMoveRunner, SdCalendarOperation as ɵSdCalendarOperation, SdCalendarScopeBar as ɵSdCalendarScopeBar, type SdCalendarCreateHost as ɵSdCalendarCreateHost, type SdCalendarCreatePlan as ɵSdCalendarCreatePlan, type SdCalendarMoveHost as ɵSdCalendarMoveHost, type SdCalendarMovePlan as ɵSdCalendarMovePlan, sdCalendarAllows as ɵsdCalendarAllows, sdCalendarCallMove as ɵsdCalendarCallMove, type SdCalendarMoveOutcome as ɵSdCalendarMoveOutcome, } from './src/calendar-move';
|
|
11
|
+
export { sdCalendarBoundDay as ɵsdCalendarBoundDay, sdCalendarBrokenWeekdays as ɵsdCalendarBrokenWeekdays, sdCalendarCarrierDay as ɵsdCalendarCarrierDay, sdCalendarColor as ɵsdCalendarColor, sdCalendarInvalidItems as ɵsdCalendarInvalidItems, sdCalendarIsOffDay as ɵsdCalendarIsOffDay, sdCalendarSelectionGone as ɵsdCalendarSelectionGone, sdCalendarMoveTarget as ɵsdCalendarMoveTarget, sdCalendarOutOfRange as ɵsdCalendarOutOfRange, sdCalendarShiftDays as ɵsdCalendarShiftDays, sdCalendarCssEscape as ɵsdCalendarCssEscape, sdCalendarDaysBetween as ɵsdCalendarDaysBetween, sdCalendarHolidayMap as ɵsdCalendarHolidayMap, sdCalendarLastDayOf as ɵsdCalendarLastDayOf, sdCalendarPointOf as ɵsdCalendarPointOf, sdCalendarRangeKey as ɵsdCalendarRangeKey, sdCalendarResolveFirstDayOfWeek as ɵsdCalendarResolveFirstDayOfWeek, sdCalendarResolveStep as ɵsdCalendarResolveStep, sdCalendarResolveWorkingHours as ɵsdCalendarResolveWorkingHours, sdCalendarSameList as ɵsdCalendarSameList, sdCalendarTargetOf as ɵsdCalendarTargetOf, sdCalendarAddDays as ɵsdCalendarAddDays, sdCalendarAddMonths as ɵsdCalendarAddMonths, sdCalendarAddMonthsKeepDay as ɵsdCalendarAddMonthsKeepDay, sdCalendarAllDayLayout as ɵsdCalendarAllDayLayout, sdCalendarClampAgendaDays as ɵsdCalendarClampAgendaDays, sdCalendarClockText as ɵsdCalendarClockText, sdCalendarDay as ɵsdCalendarDay, sdCalendarDayDiff as ɵsdCalendarDayDiff, sdCalendarDayParts as ɵsdCalendarDayParts, sdCalendarInitialScroll as ɵsdCalendarInitialScroll, sdCalendarIsWeekend as ɵsdCalendarIsWeekend, sdCalendarMonthWeeks as ɵsdCalendarMonthWeeks, sdCalendarMoveStep as ɵsdCalendarMoveStep, sdCalendarNormalizeStep as ɵsdCalendarNormalizeStep, sdCalendarOffSegments as ɵsdCalendarOffSegments, sdCalendarPlace as ɵsdCalendarPlace, sdCalendarRangeOf as ɵsdCalendarRangeOf, sdCalendarReadDay as ɵsdCalendarReadDay, sdCalendarReadWallClock as ɵsdCalendarReadWallClock, sdCalendarResizeEnd as ɵsdCalendarResizeEnd, sdCalendarSerialize as ɵsdCalendarSerialize, sdCalendarShiftDate as ɵsdCalendarShiftDate, sdCalendarSlot as ɵsdCalendarSlot, sdCalendarSnapMove as ɵsdCalendarSnapMove, sdCalendarStack as ɵsdCalendarStack, sdCalendarStartOfWeek as ɵsdCalendarStartOfWeek, sdCalendarSweep as ɵsdCalendarSweep, sdCalendarTimeToMinutes as ɵsdCalendarTimeToMinutes, sdCalendarVisibleDays as ɵsdCalendarVisibleDays, sdCalendarVisibleRange as ɵsdCalendarVisibleRange, sdCalendarWeekday as ɵsdCalendarWeekday, sdCalendarWorkingRanges as ɵsdCalendarWorkingRanges, SD_CALENDAR_STEPS as ɵSD_CALENDAR_STEPS, } from './src/calendar.utils';
|
|
12
|
+
export type { SdCalendarAllDayLayout as ɵSdCalendarAllDayLayout, SdCalendarBar as ɵSdCalendarBar, SdCalendarClock as ɵSdCalendarClock, SdCalendarDayParts as ɵSdCalendarDayParts, SdCalendarDaySpan as ɵSdCalendarDaySpan, SdCalendarPlacement as ɵSdCalendarPlacement, SdCalendarRangeInput as ɵSdCalendarRangeInput, SdCalendarSpan as ɵSdCalendarSpan, SdCalendarStacked as ɵSdCalendarStacked, SdCalendarTarget as ɵSdCalendarTarget, } from './src/calendar.utils';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { NgZone } from '@angular/core';
|
|
2
|
+
/** Part of the scroll area that shows content, in client coordinates (the sticky header and column left out). */
|
|
3
|
+
export interface SdCalendarEdgeArea {
|
|
4
|
+
readonly top: number;
|
|
5
|
+
readonly bottom: number;
|
|
6
|
+
readonly left: number;
|
|
7
|
+
readonly right: number;
|
|
8
|
+
}
|
|
9
|
+
/** Speed (px per frame) on one axis: negative within 40px of the start edge, positive within 40px of the end edge. */
|
|
10
|
+
export declare function sdCalendarEdgeSpeed(position: number, start: number, end: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* One `requestAnimationFrame` loop outside the zone. `update` is called on every pointer move of a drag; while the
|
|
13
|
+
* pointer stays near an edge the loop scrolls and calls `onFrame` (inside the zone) after each step.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SdCalendarEdgeScroller {
|
|
16
|
+
#private;
|
|
17
|
+
private readonly zone;
|
|
18
|
+
constructor(zone: NgZone);
|
|
19
|
+
update(scroller: HTMLElement | null | undefined, area: SdCalendarEdgeArea | null, pointer: {
|
|
20
|
+
readonly x: number;
|
|
21
|
+
readonly y: number;
|
|
22
|
+
} | null, axes: {
|
|
23
|
+
readonly x: boolean;
|
|
24
|
+
readonly y: boolean;
|
|
25
|
+
}, onFrame: () => void): void;
|
|
26
|
+
stop(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { SdCalendarMoveSource } from './calendar.model';
|
|
2
|
+
/** `Intl` formatters of one locale; build them once per locale (a `computed` on the i18n locale). */
|
|
3
|
+
export interface SdCalendarFormats {
|
|
4
|
+
/** English names months ("Oct 22"); other languages write numeric dates ("22/10"). */
|
|
5
|
+
readonly named: boolean;
|
|
6
|
+
readonly weekday: Intl.DateTimeFormat;
|
|
7
|
+
readonly monthShort: Intl.DateTimeFormat;
|
|
8
|
+
readonly monthLong: Intl.DateTimeFormat;
|
|
9
|
+
readonly date: Intl.DateTimeFormat;
|
|
10
|
+
readonly dateYear: Intl.DateTimeFormat;
|
|
11
|
+
}
|
|
12
|
+
/** Translation function of `I18nService.t`. */
|
|
13
|
+
export type SdCalendarTranslate = (key: string, params?: Record<string, string | number>) => string;
|
|
14
|
+
/** What the title names: a month, one day, a week of the calendar or any other span of days. */
|
|
15
|
+
export type SdCalendarTitleKind = 'month' | 'day' | 'week' | 'range';
|
|
16
|
+
export declare function sdCalendarFormats(locale: string, language: string): SdCalendarFormats;
|
|
17
|
+
/** Noon UTC of a calendar day, only to name it with `Intl` in `timeZone: 'UTC'`. */
|
|
18
|
+
export declare function sdCalendarUtcDay(day: string): Date;
|
|
19
|
+
export declare function sdCalendarWeekdayLong(formats: SdCalendarFormats, day: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Short date of a day: "Oct 22" / "Oct 22, 2026" in English, otherwise the numeric parts in the order of the
|
|
22
|
+
* locale joined by "/" ("22/10/2026", "2026/10/22").
|
|
23
|
+
*
|
|
24
|
+
* why: `Intl` writes vi-VN numeric dates with "-" in current Chromium, while the design shows "22/10".
|
|
25
|
+
*/
|
|
26
|
+
export declare function sdCalendarDateText(formats: SdCalendarFormats, day: string, withYear: boolean): string;
|
|
27
|
+
/**
|
|
28
|
+
* Toolbar title. `month` names the month of `anchor`; `day` the day `from`; `week` the days `from`–`to` in one
|
|
29
|
+
* month ("19–25 Thg 10, 2026"), and any span across months or a `range` falls back to "22/10 – 04/11/2026".
|
|
30
|
+
*/
|
|
31
|
+
export declare function sdCalendarTitle(kind: SdCalendarTitleKind, span: {
|
|
32
|
+
readonly anchor: string;
|
|
33
|
+
readonly from: string;
|
|
34
|
+
readonly to: string;
|
|
35
|
+
}, formats: SdCalendarFormats, t: SdCalendarTranslate): string;
|
|
36
|
+
/**
|
|
37
|
+
* Live-region text of an accepted move (calendar.md §15): "resized" when only the end changed (or the move was a
|
|
38
|
+
* resize), otherwise "moved" with the new day and time.
|
|
39
|
+
*/
|
|
40
|
+
export declare function sdCalendarMovedText(title: string, target: {
|
|
41
|
+
readonly allDay: boolean;
|
|
42
|
+
readonly startDay: string;
|
|
43
|
+
readonly startMinutes: number;
|
|
44
|
+
readonly endMinutes: number;
|
|
45
|
+
}, from: {
|
|
46
|
+
readonly start: string;
|
|
47
|
+
readonly end: string;
|
|
48
|
+
}, to: {
|
|
49
|
+
readonly start: string;
|
|
50
|
+
readonly end: string;
|
|
51
|
+
}, source: SdCalendarMoveSource, formats: SdCalendarFormats, t: SdCalendarTranslate): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type NgZone } from '@angular/core';
|
|
2
|
+
/** Width of the host from a `ResizeObserver` (SC-32); `null` until known, and always without `ResizeObserver` (SSR, tests). */
|
|
3
|
+
export declare class SdCalendarHostWidth {
|
|
4
|
+
#private;
|
|
5
|
+
private readonly host;
|
|
6
|
+
readonly width: import("@angular/core").Signal<number | null>;
|
|
7
|
+
constructor(host: HTMLElement, zone: NgZone);
|
|
8
|
+
/** Width before the first observer callback, so the first render already fits a narrow host. */
|
|
9
|
+
measureOnce(): void;
|
|
10
|
+
disconnect(): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Calls `tick` every minute while running, outside the zone so the timer does not run change detection; `tick` itself
|
|
14
|
+
* enters the zone.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SdCalendarMinuteTimer {
|
|
17
|
+
#private;
|
|
18
|
+
private readonly zone;
|
|
19
|
+
private readonly tick;
|
|
20
|
+
constructor(zone: NgZone, tick: () => void);
|
|
21
|
+
/** Starts or stops the timer. */
|
|
22
|
+
run(active: boolean): void;
|
|
23
|
+
stop(): void;
|
|
24
|
+
}
|
|
25
|
+
/** Logs a dev-mode diagnostic once per instance and key, with the component's prefix (`[sd-calendar]`). */
|
|
26
|
+
export declare class SdCalendarReporter {
|
|
27
|
+
#private;
|
|
28
|
+
private readonly prefix;
|
|
29
|
+
constructor(prefix: string);
|
|
30
|
+
report(level: 'error' | 'warn', key: string, message: string): void;
|
|
31
|
+
}
|
|
32
|
+
/** The element is laid out right-to-left. */
|
|
33
|
+
export declare function sdCalendarIsRtl(element: Element): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** `loading`: first load or a new range (the grid is empty); `reloading`: same range, the items stay. */
|
|
2
|
+
export type SdCalendarLoadPhase = 'idle' | 'loading' | 'reloading' | 'error';
|
|
3
|
+
export declare class SdCalendarLoader<T> {
|
|
4
|
+
#private;
|
|
5
|
+
/** Items of the last successful load; updated in place by accepted creates and moves. */
|
|
6
|
+
readonly items: import("@angular/core").WritableSignal<readonly T[]>;
|
|
7
|
+
readonly phase: import("@angular/core").WritableSignal<SdCalendarLoadPhase>;
|
|
8
|
+
/** At least one load succeeded: later loads show the progress bar only, never the skeleton. */
|
|
9
|
+
readonly everLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Aborts the running load and calls `call` for `key`. A different key clears the items first; the same key keeps
|
|
12
|
+
* them until the result arrives. A late or aborted result is dropped. `onError` runs for a real failure only, after
|
|
13
|
+
* the items were cleared (§13).
|
|
14
|
+
*/
|
|
15
|
+
load(key: string, call: (signal: AbortSignal) => readonly T[] | Promise<readonly T[]>, onError: (error: unknown) => void): Promise<void>;
|
|
16
|
+
/** Aborts the running load (destroy). */
|
|
17
|
+
abort(): void;
|
|
18
|
+
}
|