@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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { SdCardStatData } from './card.model';
|
|
2
|
+
type SdCardNumberFormat = 'number' | 'compact' | 'percent';
|
|
3
|
+
/** Locale context for card number formatting. */
|
|
4
|
+
export interface SdCardFormatContext {
|
|
5
|
+
readonly locale: string;
|
|
6
|
+
readonly compactDisplay?: 'short' | 'long';
|
|
7
|
+
}
|
|
8
|
+
/** Placeholder for a missing or failed value. */
|
|
9
|
+
export declare const SD_CARD_EMPTY_VALUE = "\u2014";
|
|
10
|
+
/** Formats `value` for display using one of the stat number formats (`card.md` §5). */
|
|
11
|
+
export declare function sdCardFormatNumber(value: number, format: SdCardNumberFormat, precision: number | undefined, context: SdCardFormatContext): string;
|
|
12
|
+
/**
|
|
13
|
+
* Unabridged number for `title` and the accessible name: plain grouping, never compact. Percent keeps the percent
|
|
14
|
+
* style, since a ratio such as 0.427 reads wrong as a plain number.
|
|
15
|
+
*/
|
|
16
|
+
export declare function sdCardFormatFull(value: number, format: SdCardNumberFormat, precision: number | undefined, context: SdCardFormatContext): string;
|
|
17
|
+
/** Display state of a stat value. */
|
|
18
|
+
export interface SdCardStatValue {
|
|
19
|
+
/** Text shown in the card. */
|
|
20
|
+
readonly display: string;
|
|
21
|
+
/** Unabridged text for `title` and the accessible name. */
|
|
22
|
+
readonly full: string;
|
|
23
|
+
/** A string value arrived with a numeric format and is shown as is. */
|
|
24
|
+
readonly mismatch: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** Resolves what a stat shows for its value. */
|
|
27
|
+
export declare function sdCardStatValue(data: SdCardStatData, context: SdCardFormatContext): SdCardStatValue;
|
|
28
|
+
/** Direction and tone of a stat delta chip. */
|
|
29
|
+
export interface SdCardStatDelta {
|
|
30
|
+
readonly tone: 'good' | 'bad' | 'flat';
|
|
31
|
+
readonly direction: 'up' | 'down' | 'flat';
|
|
32
|
+
/** Absolute delta in the stat's format; empty for `flat`. */
|
|
33
|
+
readonly display: string;
|
|
34
|
+
}
|
|
35
|
+
/** Resolves the delta chip: good is up for `positive: 'up'` (default) and down for `positive: 'down'`. */
|
|
36
|
+
export declare function sdCardStatDelta(data: SdCardStatData, context: SdCardFormatContext): SdCardStatDelta | null;
|
|
37
|
+
/** File family of the `file` layout (`card.md` §4.4). */
|
|
38
|
+
export type SdCardFileKind = 'pdf' | 'sheet' | 'doc' | 'image' | 'other';
|
|
39
|
+
/** Resolved presentation of a file card. */
|
|
40
|
+
export interface SdCardFileInfo {
|
|
41
|
+
readonly kind: SdCardFileKind;
|
|
42
|
+
readonly icon: string;
|
|
43
|
+
/** Upper-case extension shown in the meta line, or empty. */
|
|
44
|
+
readonly extension: string;
|
|
45
|
+
/** Formatted size, or empty. */
|
|
46
|
+
readonly size: string;
|
|
47
|
+
}
|
|
48
|
+
/** Kind, icon, extension and size label of a file; `type` (MIME or extension) wins over the name's extension. */
|
|
49
|
+
export declare function sdCardFileInfo(name: string, type: string | undefined, size: string): SdCardFileInfo;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
2
|
+
import type { Color as SdColor } from '@sdcorejs/utils/models';
|
|
3
|
+
/**
|
|
4
|
+
* How a card reacts to the user.
|
|
5
|
+
* - `static`: read-only surface; no role, no focus, native clicks pass through untouched.
|
|
6
|
+
* - `link`: the whole card is one `<a>` (router `link` or external `href`).
|
|
7
|
+
* - `select`: toggles selection (standalone) or drives the nearest `sd-card-group` model.
|
|
8
|
+
*/
|
|
9
|
+
export type SdCardBehavior = 'static' | 'link' | 'select';
|
|
10
|
+
/** Card density. `sm` is a single compact row; layouts without an `sm` variant always render `md`. */
|
|
11
|
+
export type SdCardSize = 'md' | 'sm';
|
|
12
|
+
/** Built-in content layout chosen by `layout`; without `content` the card projects `ng-content`. */
|
|
13
|
+
export type SdCardContent = {
|
|
14
|
+
layout: 'stat';
|
|
15
|
+
data: SdCardStatData;
|
|
16
|
+
} | {
|
|
17
|
+
layout: 'option';
|
|
18
|
+
data: SdCardOptionData;
|
|
19
|
+
} | {
|
|
20
|
+
layout: 'entity';
|
|
21
|
+
data: SdCardEntityData;
|
|
22
|
+
} | {
|
|
23
|
+
layout: 'file';
|
|
24
|
+
data: SdCardFileData;
|
|
25
|
+
} | {
|
|
26
|
+
layout: 'shortcut';
|
|
27
|
+
data: SdCardShortcutData;
|
|
28
|
+
};
|
|
29
|
+
/** Metric tile: label, formatted value, optional delta chip and context line. */
|
|
30
|
+
export interface SdCardStatData {
|
|
31
|
+
label: string;
|
|
32
|
+
value: number | string | null;
|
|
33
|
+
/** Defaults to `'number'`. `'text'` renders the string as is. */
|
|
34
|
+
format?: 'number' | 'compact' | 'percent' | 'text';
|
|
35
|
+
/** Fraction digits for `'number'`; defaults to 0. */
|
|
36
|
+
precision?: number;
|
|
37
|
+
context?: string;
|
|
38
|
+
/** Color of the context line; defaults to the secondary text color. */
|
|
39
|
+
contextColor?: SdColor;
|
|
40
|
+
delta?: {
|
|
41
|
+
value: number;
|
|
42
|
+
positive?: 'up' | 'down';
|
|
43
|
+
};
|
|
44
|
+
icon?: string;
|
|
45
|
+
}
|
|
46
|
+
/** Choice tile for a selection group: title, description, icon and a check mark. */
|
|
47
|
+
export interface SdCardOptionData {
|
|
48
|
+
title: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
icon?: string;
|
|
51
|
+
badge?: SdBadgeData;
|
|
52
|
+
}
|
|
53
|
+
/** Record summary: avatar, title, subtitle, badge and up to three meta fields. */
|
|
54
|
+
export interface SdCardEntityData {
|
|
55
|
+
title: string;
|
|
56
|
+
subtitle?: string;
|
|
57
|
+
avatar?: {
|
|
58
|
+
text?: string;
|
|
59
|
+
src?: string;
|
|
60
|
+
icon?: string;
|
|
61
|
+
};
|
|
62
|
+
badge?: SdBadgeData;
|
|
63
|
+
/** At most 3; rendered only at size `md`. */
|
|
64
|
+
meta?: readonly {
|
|
65
|
+
label: string;
|
|
66
|
+
value: string;
|
|
67
|
+
}[];
|
|
68
|
+
}
|
|
69
|
+
/** File tile: thumbnail or type icon, name, type and size. */
|
|
70
|
+
export interface SdCardFileData {
|
|
71
|
+
name: string;
|
|
72
|
+
/** MIME type or extension; inferred from the extension of `name` when absent. */
|
|
73
|
+
type?: string;
|
|
74
|
+
/** Bytes. */
|
|
75
|
+
size?: number;
|
|
76
|
+
thumbnail?: string;
|
|
77
|
+
}
|
|
78
|
+
/** Navigation tile: icon, label and optional description. */
|
|
79
|
+
export interface SdCardShortcutData {
|
|
80
|
+
label: string;
|
|
81
|
+
icon: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SdCardBehavior, SdCardContent } from './card.model';
|
|
2
|
+
type SdCardLayout = SdCardContent['layout'];
|
|
3
|
+
/** Whether `behavior` is valid for `layout` (`undefined` = projected content). */
|
|
4
|
+
export declare function sdCardBehaviorAllowed(layout: SdCardLayout | undefined, behavior: SdCardBehavior): boolean;
|
|
5
|
+
export {};
|
|
@@ -21,10 +21,7 @@ export declare function sdFileExplorerIconName(item: Pick<SdFileExplorerItem, 'k
|
|
|
21
21
|
export declare function sdFileExplorerIconUrl(name: SdFileExplorerIconName): string;
|
|
22
22
|
/** Preview renderer for a file type. */
|
|
23
23
|
export declare function sdFileExplorerPreviewKind(type: SdFileExplorerFileType): SdFileExplorerPreviewKind;
|
|
24
|
-
/**
|
|
25
|
-
* Human-readable size: `846 KB`, `2,4 MB` (vi) / `2.4 MB` (en).
|
|
26
|
-
* One decimal below 10 units, none above — the precision users expect from file managers.
|
|
27
|
-
*/
|
|
24
|
+
/** Human-readable size: `846 KB`, `2,4 MB` (vi) / `2.4 MB` (en). Same rules as `sd-card` file sizes. */
|
|
28
25
|
export declare function sdFileExplorerFormatSize(bytes: number | null | undefined, locale: string): string;
|
|
29
26
|
/** Parses `SdFileExplorerItem.modifiedAt`; `null` when missing or invalid. */
|
|
30
27
|
export declare function sdFileExplorerParseDate(value: Date | string | number | null | undefined): Date | null;
|
package/components/index.d.ts
CHANGED
|
@@ -32,7 +32,9 @@ export * from '@sdcorejs/angular/components/data-state';
|
|
|
32
32
|
export * from '@sdcorejs/angular/components/job-progress';
|
|
33
33
|
export * from '@sdcorejs/angular/components/audit-diff';
|
|
34
34
|
export * from '@sdcorejs/angular/components/ckeditor-styles';
|
|
35
|
-
export * from '@sdcorejs/angular/components/
|
|
35
|
+
export * from '@sdcorejs/angular/components/calendar';
|
|
36
|
+
export * from '@sdcorejs/angular/components/scheduler';
|
|
37
|
+
export * from '@sdcorejs/angular/components/timeline';
|
|
36
38
|
export * from '@sdcorejs/angular/components/operator';
|
|
37
39
|
export * from '@sdcorejs/angular/components/stepper';
|
|
38
40
|
export * from '@sdcorejs/angular/components/tab';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Renders a card template or a card actions template of the consumer in an OnPush view of its own, so a change of the
|
|
5
|
+
* board's state (a drag starts or ends, a card is selected or saved) checks only the cards whose context changed, not
|
|
6
|
+
* every card of every column (kanban A-15, PD 2026-11-11). The board gives each card the same context object while the
|
|
7
|
+
* card, its column, its index, `pending` and `selected` stay the same.
|
|
8
|
+
*
|
|
9
|
+
* `display: contents`: the outlet adds no box, so the template lays out as if it were rendered in place.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SdKanbanCardOutlet<C extends object = object> {
|
|
12
|
+
readonly template: import("@angular/core").InputSignal<TemplateRef<C>>;
|
|
13
|
+
readonly context: import("@angular/core").InputSignal<C>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKanbanCardOutlet<any>, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdKanbanCardOutlet<any>, "sd-kanban-card-outlet", never, { "template": { "alias": "template"; "required": true; "isSignal": true; }; "context": { "alias": "context"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SdKanbanCard, SdKanbanLoadError, SdKanbanOption } from './kanban.model';
|
|
2
|
+
export type KanbanColumnStatus = 'idle' | 'loading' | 'loading-more' | 'error';
|
|
3
|
+
/** One column of a board fed by `option.dataSource` (kanban.md §5.2). */
|
|
4
|
+
export interface KanbanColumnState<T> {
|
|
5
|
+
readonly cards: readonly SdKanbanCard<T>[];
|
|
6
|
+
readonly nextCursor: string | null;
|
|
7
|
+
/** The server's `total` of the first page; `null` while unknown. */
|
|
8
|
+
readonly total: number | null;
|
|
9
|
+
readonly summary: string | null;
|
|
10
|
+
readonly status: KanbanColumnStatus;
|
|
11
|
+
/** The cursor of the load that failed, so Retry asks for the same page; `null` is the first page. */
|
|
12
|
+
readonly failedCursor: string | null;
|
|
13
|
+
/** `true` once the first page arrived (also after an error of a later page). */
|
|
14
|
+
readonly loaded: boolean;
|
|
15
|
+
/** Grows on every load from `cursor: null`; a move proposed against an older generation is stale. */
|
|
16
|
+
readonly generation: number;
|
|
17
|
+
/** The keyword the first page was asked with; later pages and their retries keep it with the cursor. */
|
|
18
|
+
readonly keyword: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Per-column paging for the board's data source: one `AbortController` per column, late results dropped, invalid
|
|
22
|
+
* and duplicate cards left out with a dev-mode warning. Not part of the public API.
|
|
23
|
+
*/
|
|
24
|
+
export declare class KanbanColumnLoader<T> {
|
|
25
|
+
#private;
|
|
26
|
+
private readonly onError;
|
|
27
|
+
private readonly onLoaded;
|
|
28
|
+
readonly states: import("@angular/core").Signal<ReadonlyMap<string, KanbanColumnState<T>>>;
|
|
29
|
+
constructor(onError: (error: SdKanbanLoadError) => void, onLoaded?: () => void);
|
|
30
|
+
state(columnId: string): KanbanColumnState<T>;
|
|
31
|
+
/** Loads the first page; the cards on screen stay until the result arrives (SC-23). */
|
|
32
|
+
load(columnId: string, option: SdKanbanOption<T>, keyword: string): void;
|
|
33
|
+
/** The next page, with the keyword of the first page; ignored while loading or when there is none. */
|
|
34
|
+
loadMore(columnId: string, option: SdKanbanOption<T>): void;
|
|
35
|
+
/** Asks again for the page that failed; a first page with `keyword`, a later one with the keyword of the first. */
|
|
36
|
+
retry(columnId: string, option: SdKanbanOption<T>, keyword: string): void;
|
|
37
|
+
abort(columnId?: string): void;
|
|
38
|
+
/** Forgets columns that left the board. */
|
|
39
|
+
drop(keep: ReadonlySet<string>): void;
|
|
40
|
+
/**
|
|
41
|
+
* An accepted move (§5.2): the card leaves its column (`total` − 1) and goes to the top of the target column, or
|
|
42
|
+
* before `beforeId` when `reorder` is on (after the last loaded card for `null`); `total` + 1. No load.
|
|
43
|
+
*/
|
|
44
|
+
applyMove(card: SdKanbanCard<T>, toColumnId: string, beforeId: string | null, reorder: boolean): void;
|
|
45
|
+
}
|
|
@@ -1,46 +1,96 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { SdKanbanColumn,
|
|
2
|
+
import { SdKanbanCard, SdKanbanCardTemplateContext, SdKanbanColumn, SdKanbanColumnTemplateContext, SdKanbanLoadError, SdKanbanMoveError, SdKanbanMoveRequest, SdKanbanMoveSource, SdKanbanOption } from './kanban.model';
|
|
3
3
|
import { SdKanbanCardActionsTemplateDirective, SdKanbanCardTemplateDirective, SdKanbanColumnActionsTemplateDirective, SdKanbanColumnTemplateDirective } from './kanban.templates';
|
|
4
|
+
import { type KanbanColumnStatus } from './kanban-loader';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
interface CardView<T> {
|
|
6
|
-
readonly
|
|
7
|
-
|
|
8
|
-
readonly title: string;
|
|
7
|
+
readonly card: SdKanbanCard<T>;
|
|
8
|
+
/** Index in the loaded cards of its column (before the keyword). */
|
|
9
9
|
readonly index: number;
|
|
10
|
+
/** `beforeId` of one step up / down in the loaded cards; `undefined` at the edge. */
|
|
11
|
+
readonly up: string | null | undefined;
|
|
12
|
+
readonly down: string | null | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* `option.move.movable` when the board renders (SC-06), and with a data source the column has its first page and is
|
|
15
|
+
* not loading it again; `#move` evaluates both again right before `onMove`.
|
|
16
|
+
*/
|
|
17
|
+
readonly movable: boolean;
|
|
18
|
+
/** `encodeURIComponent(id)` for the data attributes. */
|
|
19
|
+
readonly token: string;
|
|
10
20
|
}
|
|
11
21
|
interface ColumnView<T> {
|
|
12
22
|
readonly column: SdKanbanColumn;
|
|
13
23
|
readonly cards: readonly CardView<T>[];
|
|
24
|
+
/** Cards of the column: the server's total, or the loaded / given cards. */
|
|
14
25
|
readonly count: number;
|
|
26
|
+
/** §3 column context: the server's `total`, or the column's cards in `items`; `null` while unknown. */
|
|
27
|
+
readonly total: number | null;
|
|
28
|
+
/** Header count (§6): "n", "visible/total" while filtering items, "n+" with more pages, "–" while unknown. */
|
|
29
|
+
readonly countText: string;
|
|
30
|
+
readonly summary: string | null;
|
|
31
|
+
/** Data source only: the column's load state; `null` with items. */
|
|
32
|
+
readonly status: KanbanColumnStatus | null;
|
|
33
|
+
readonly loaded: boolean;
|
|
34
|
+
readonly nextCursor: string | null;
|
|
35
|
+
/** Cards the "Show more" button announces. */
|
|
36
|
+
readonly moreCount: number;
|
|
15
37
|
}
|
|
16
|
-
|
|
38
|
+
interface MoveTarget {
|
|
39
|
+
readonly columnId: string;
|
|
40
|
+
readonly beforeId?: string | null;
|
|
41
|
+
}
|
|
42
|
+
/** Generic board of cards in columns, with one consumer-confirmed, serial move pipeline. */
|
|
17
43
|
export declare class SdKanban<T = unknown> {
|
|
18
44
|
#private;
|
|
45
|
+
/** SC-32: under 600px of host width, not of the viewport. */
|
|
46
|
+
protected readonly compact: import("@angular/core").Signal<boolean>;
|
|
19
47
|
readonly id: string;
|
|
20
48
|
readonly columns: import("@angular/core").InputSignal<readonly SdKanbanColumn[]>;
|
|
21
49
|
readonly option: import("@angular/core").InputSignal<SdKanbanOption<T>>;
|
|
22
|
-
|
|
50
|
+
/** Cards already on the client. Ignored when `option.dataSource` is set. */
|
|
51
|
+
readonly items: import("@angular/core").InputSignal<readonly SdKanbanCard<T>[] | undefined>;
|
|
23
52
|
readonly keyword: import("@angular/core").ModelSignal<string>;
|
|
24
|
-
|
|
53
|
+
/** Shows the board search; `keyword` works without it (the consumer's own search box). */
|
|
54
|
+
readonly searchable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
readonly collapsible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
56
|
+
readonly collapsedColumns: import("@angular/core").ModelSignal<readonly string[]>;
|
|
25
57
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
58
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
-
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
-
readonly error: import("@angular/core").InputSignal<string | null | undefined>;
|
|
29
59
|
readonly ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
|
|
30
60
|
readonly autoId: import("@angular/core").InputSignal<string | null | undefined>;
|
|
31
|
-
|
|
61
|
+
/** Id of the selected card; back to `null` when that card is no longer in the data (SC-26, SC-27). */
|
|
62
|
+
readonly selectedId: import("@angular/core").ModelSignal<string | null>;
|
|
63
|
+
/** Click, tap, Enter or Space on a card; also sets `selectedId`. */
|
|
64
|
+
readonly sdSelect: import("@angular/core").OutputEmitterRef<SdKanbanCard<T>>;
|
|
32
65
|
readonly sdMove: import("@angular/core").OutputEmitterRef<SdKanbanMoveRequest<T>>;
|
|
66
|
+
/** `option.dataSource.onLoad` threw or rejected, for the first page or a later one; never for an aborted load. */
|
|
67
|
+
readonly sdLoadError: import("@angular/core").OutputEmitterRef<SdKanbanLoadError>;
|
|
33
68
|
readonly sdMoveError: import("@angular/core").OutputEmitterRef<SdKanbanMoveError<T>>;
|
|
34
|
-
|
|
35
|
-
readonly pendingId: import("@angular/core").
|
|
69
|
+
/** Id of the card whose move waits for `onMove`; read-only. */
|
|
70
|
+
readonly pendingId: import("@angular/core").Signal<string | null>;
|
|
36
71
|
protected readonly cardTemplate: import("@angular/core").Signal<SdKanbanCardTemplateDirective<T> | undefined>;
|
|
37
72
|
protected readonly cardActionsTemplate: import("@angular/core").Signal<SdKanbanCardActionsTemplateDirective<T> | undefined>;
|
|
38
73
|
protected readonly columnTemplate: import("@angular/core").Signal<SdKanbanColumnTemplateDirective | undefined>;
|
|
39
74
|
protected readonly columnActionsTemplate: import("@angular/core").Signal<SdKanbanColumnActionsTemplateDirective | undefined>;
|
|
40
75
|
protected readonly announcement: import("@angular/core").WritableSignal<string>;
|
|
76
|
+
/** The card being dragged, from `cdkDragStarted` to `cdkDragEnded`. */
|
|
77
|
+
protected readonly draggingId: import("@angular/core").WritableSignal<string | null>;
|
|
78
|
+
/** Height of the dragged card, for the mark of its old place while `reorder` is off. */
|
|
79
|
+
protected readonly originHeight: import("@angular/core").WritableSignal<number>;
|
|
80
|
+
/** §7.2: a touch has to hold 400ms before a drag, so a tap selects and a swipe scrolls the board. */
|
|
81
|
+
protected readonly dragStartDelay: {
|
|
82
|
+
touch: number;
|
|
83
|
+
mouse: number;
|
|
84
|
+
};
|
|
85
|
+
protected readonly reorder: import("@angular/core").Signal<boolean>;
|
|
86
|
+
protected readonly hasMove: import("@angular/core").Signal<boolean>;
|
|
41
87
|
protected readonly moveFailure: import("@angular/core").WritableSignal<string | undefined>;
|
|
42
88
|
/** Card the current failure belongs to; `null` for failures without a card (invalid configuration). */
|
|
43
|
-
protected readonly failedId: import("@angular/core").WritableSignal<
|
|
89
|
+
protected readonly failedId: import("@angular/core").WritableSignal<string | null>;
|
|
90
|
+
/** `option.dataSource` wins over `items` (SC-25). */
|
|
91
|
+
protected readonly dataMode: import("@angular/core").Signal<boolean>;
|
|
92
|
+
/** Every card the board holds: the copy of `items`, or the loaded pages of the columns in column order. */
|
|
93
|
+
protected readonly cards: import("@angular/core").Signal<readonly SdKanbanCard<T>[]>;
|
|
44
94
|
protected readonly dataInvalid: import("@angular/core").Signal<boolean>;
|
|
45
95
|
protected readonly locked: import("@angular/core").Signal<boolean>;
|
|
46
96
|
protected readonly moveBlocked: import("@angular/core").Signal<boolean>;
|
|
@@ -50,34 +100,44 @@ export declare class SdKanban<T = unknown> {
|
|
|
50
100
|
protected readonly failureAnchored: import("@angular/core").Signal<boolean>;
|
|
51
101
|
protected readonly enterPredicate: (_drag: CdkDrag<CardView<T>>, drop: CdkDropList<ColumnView<T>>) => boolean;
|
|
52
102
|
constructor();
|
|
103
|
+
/** Loads the first page of one column, or of every loaded column, again (data source only). */
|
|
104
|
+
reload(columnId?: string): void;
|
|
105
|
+
/** Loads the next page of a column (data source only); ignored while it loads or at the end. */
|
|
106
|
+
loadMore(columnId: string): void;
|
|
107
|
+
/** Retry of a column's load error: the same page again. */
|
|
108
|
+
protected retry(columnId: string): void;
|
|
53
109
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
110
|
+
* Runs the move pipeline: `to.beforeId` is the card the moved card goes before (`null` or left out: the end of the
|
|
111
|
+
* column). Resolves `true` only when `option.move.onMove` accepts.
|
|
56
112
|
*/
|
|
57
|
-
move(
|
|
113
|
+
move(cardId: string, to: MoveTarget, source?: SdKanbanMoveSource): Promise<boolean>;
|
|
58
114
|
protected drop(event: CdkDragDrop<ColumnView<T>, ColumnView<T>, CardView<T>>): void;
|
|
59
|
-
protected
|
|
60
|
-
|
|
61
|
-
protected
|
|
62
|
-
|
|
63
|
-
protected
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
protected
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
115
|
+
protected dragStarted(view: CardView<T>, column: ColumnView<T>, element: HTMLElement): void;
|
|
116
|
+
/** Records the card's height while it is still in its lane (R1-B-03); a new press may select again. */
|
|
117
|
+
protected notePress(element: HTMLElement): void;
|
|
118
|
+
/** Click, tap, Enter or Space on a card's name (SC-26); a click the browser sends after a drag is ignored. */
|
|
119
|
+
protected select(card: SdKanbanCard<T>, event?: MouseEvent): void;
|
|
120
|
+
/** Keys on a card's name (§7.4): Enter and Space select, Esc clears the selection, Alt + arrows move. */
|
|
121
|
+
protected cardKeydown(event: KeyboardEvent, view: CardView<T>, column: ColumnView<T>): void;
|
|
122
|
+
protected dragEnded(): void;
|
|
123
|
+
protected isBlocked(columnId: string): boolean;
|
|
124
|
+
/** `option.move.droppable` for the menu, Alt + arrow and the start of a drag (SC-08). */
|
|
125
|
+
protected canDrop(view: CardView<T>, from: ColumnView<T>, to: SdKanbanColumn): boolean;
|
|
126
|
+
protected moveFromMenu(cardId: string, to: MoveTarget, trigger: HTMLButtonElement): void;
|
|
127
|
+
protected keydown(event: KeyboardEvent, view: CardView<T>, column: ColumnView<T>): void;
|
|
128
|
+
protected collapsed(id: string): boolean;
|
|
129
|
+
protected toggleColumn(id: string): void;
|
|
130
|
+
protected columnContext(view: ColumnView<T>): SdKanbanColumnTemplateContext;
|
|
131
|
+
/**
|
|
132
|
+
* The context of a card's templates: the same object while the card, its column, its index, `pending` and `selected`
|
|
133
|
+
* stay the same, so the OnPush `sd-kanban-card-outlet` of the other cards is not checked again (A-15, PD 2026-11-11).
|
|
134
|
+
*/
|
|
135
|
+
protected cardContext(view: CardView<T>, column: ColumnView<T>): SdKanbanCardTemplateContext<T>;
|
|
136
|
+
protected token(id: string): string;
|
|
78
137
|
protected updateKeyword(event: Event): void;
|
|
79
|
-
|
|
138
|
+
/** Dismisses the failure; from a card's own Dismiss button the focus goes back to that card. */
|
|
139
|
+
protected dismissFailure(cardId?: string): void;
|
|
80
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdKanban<any>, never>;
|
|
81
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdKanban<any>, "sd-kanban", never, { "columns": { "alias": "columns"; "required":
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdKanban<any>, "sd-kanban", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "option": { "alias": "option"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "keyword": { "alias": "keyword"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsedColumns": { "alias": "collapsedColumns"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; }, { "keyword": "keywordChange"; "collapsedColumns": "collapsedColumnsChange"; "selectedId": "selectedIdChange"; "sdSelect": "sdSelect"; "sdMove": "sdMove"; "sdLoadError": "sdLoadError"; "sdMoveError": "sdMoveError"; }, ["cardTemplate", "cardActionsTemplate", "columnTemplate", "columnActionsTemplate"], never, true, never>;
|
|
82
142
|
}
|
|
83
143
|
export {};
|
|
@@ -1,65 +1,121 @@
|
|
|
1
1
|
import { Color } from '@sdcorejs/utils/models';
|
|
2
|
-
/** Stable identity; number `1` and string `'1'` are distinct. Never use a row index. */
|
|
3
|
-
export type SdKanbanId = string | number;
|
|
4
2
|
export type SdKanbanMoveSource = 'drag' | 'menu' | 'keyboard' | 'api';
|
|
3
|
+
/** A flag, or a predicate evaluated when rendering and again right before the callback (SC-05, SC-06). */
|
|
4
|
+
export type SdKanbanState<C> = boolean | ((context: C) => boolean);
|
|
5
5
|
export interface SdKanbanColumn {
|
|
6
|
-
readonly id:
|
|
6
|
+
readonly id: string;
|
|
7
7
|
readonly label: string;
|
|
8
8
|
readonly color?: Color;
|
|
9
9
|
readonly prefixIcon?: string;
|
|
10
10
|
readonly disabled?: boolean;
|
|
11
|
+
/** Second line under the label ("18,4 triệu ₫"). With a data source, `SdKanbanLoadResult.summary` wins. */
|
|
12
|
+
readonly summary?: string;
|
|
11
13
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
/**
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
export interface SdKanbanCard<T = unknown> {
|
|
15
|
+
/** Unique on the whole board. */
|
|
16
|
+
readonly id: string;
|
|
17
|
+
/** The id of one of the `columns`. */
|
|
18
|
+
readonly columnId: string;
|
|
19
|
+
/** Not empty; the name screen readers read and the label of the card's name button. */
|
|
20
|
+
readonly title: string;
|
|
21
|
+
/** Text matched by the board search when there is no data source. Defaults to `title`. */
|
|
22
|
+
readonly searchText?: string;
|
|
23
|
+
/** The consumer's DTO; the board never reads it and keeps the same reference (SC-02). */
|
|
24
|
+
readonly data?: T;
|
|
25
|
+
}
|
|
26
|
+
export interface SdKanbanLoadArgs {
|
|
27
|
+
readonly columnId: string;
|
|
28
|
+
/** `null` for the first page and after `reload()`. */
|
|
29
|
+
readonly cursor: string | null;
|
|
30
|
+
readonly pageSize: number;
|
|
31
|
+
/** The trimmed keyword; `''` when not searching. */
|
|
32
|
+
readonly keyword: string;
|
|
25
33
|
readonly signal: AbortSignal;
|
|
26
34
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
readonly
|
|
32
|
-
/**
|
|
33
|
-
readonly
|
|
34
|
-
|
|
35
|
-
readonly
|
|
36
|
-
|
|
35
|
+
export interface SdKanbanLoadResult<T = unknown> {
|
|
36
|
+
/** Every card's `columnId` must equal `args.columnId`. */
|
|
37
|
+
readonly items: readonly SdKanbanCard<T>[];
|
|
38
|
+
/** `null` when there are no more pages. */
|
|
39
|
+
readonly nextCursor: string | null;
|
|
40
|
+
/** Cards of the column for the keyword and the server's filters. Read from the first page only. */
|
|
41
|
+
readonly total?: number;
|
|
42
|
+
/** Replaces `column.summary`. Read from the first page only. */
|
|
43
|
+
readonly summary?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface SdKanbanDropContext<T = unknown> {
|
|
46
|
+
readonly card: SdKanbanCard<T>;
|
|
47
|
+
readonly from: SdKanbanColumn;
|
|
48
|
+
readonly to: SdKanbanColumn;
|
|
49
|
+
}
|
|
50
|
+
export interface SdKanbanMoveRequest<T = unknown> {
|
|
51
|
+
readonly card: SdKanbanCard<T>;
|
|
52
|
+
/** `index` in the loaded cards of the source column. */
|
|
53
|
+
readonly from: {
|
|
54
|
+
readonly columnId: string;
|
|
55
|
+
readonly index: number;
|
|
56
|
+
};
|
|
37
57
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* Persist using the stable IDs and full-column indexes, and forward `signal` when supported.
|
|
58
|
+
* `reorder` off: `index` and `beforeId` are `null`. `reorder` on: `index` in the loaded cards of the target column
|
|
59
|
+
* without the moved card; `beforeId` is the card right after the drop point, `null` after the last loaded card (the
|
|
60
|
+
* end of the column; when pages are not loaded yet, the server decides where the card goes).
|
|
42
61
|
*/
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
|
|
62
|
+
readonly to: {
|
|
63
|
+
readonly columnId: string;
|
|
64
|
+
readonly index: number | null;
|
|
65
|
+
readonly beforeId: string | null;
|
|
66
|
+
};
|
|
67
|
+
readonly source: SdKanbanMoveSource;
|
|
68
|
+
/** Aborted when the data, the option or the columns are replaced, the board locks, or it is destroyed. */
|
|
69
|
+
readonly signal: AbortSignal;
|
|
46
70
|
}
|
|
47
|
-
export interface SdKanbanMoveError<T> {
|
|
71
|
+
export interface SdKanbanMoveError<T = unknown> {
|
|
48
72
|
readonly request: SdKanbanMoveRequest<T>;
|
|
49
73
|
readonly reason: 'rejected' | 'error';
|
|
50
74
|
readonly error?: unknown;
|
|
51
75
|
}
|
|
76
|
+
export interface SdKanbanLoadError {
|
|
77
|
+
readonly columnId: string;
|
|
78
|
+
readonly error: unknown;
|
|
79
|
+
}
|
|
80
|
+
export interface SdKanbanOption<T = unknown> {
|
|
81
|
+
dataSource?: {
|
|
82
|
+
onLoad: (args: SdKanbanLoadArgs) => SdKanbanLoadResult<T> | Promise<SdKanbanLoadResult<T>>;
|
|
83
|
+
};
|
|
84
|
+
/** Cards per page with a data source. Default 20. */
|
|
85
|
+
pageSize?: number;
|
|
86
|
+
/** Default `'button'`. */
|
|
87
|
+
loadMore?: 'button' | 'auto';
|
|
88
|
+
/** Leave out to have no dragging, no move menu and no Alt + arrow moves. */
|
|
89
|
+
move?: {
|
|
90
|
+
/** Default `true`. */
|
|
91
|
+
movable?: SdKanbanState<SdKanbanCard<T>>;
|
|
92
|
+
/** Default `true`. Synchronous; runs when a drag starts, when the menu opens, on Alt + arrow and right before `onMove`. */
|
|
93
|
+
droppable?: SdKanbanState<SdKanbanDropContext<T>>;
|
|
94
|
+
/** Default `false`: cards only change column. */
|
|
95
|
+
reorder?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* `true` or `void`: accepted. `false`: rejected (failure on the card, `sdMoveError`).
|
|
98
|
+
* `'cancel'`: the user cancelled in the consumer's own flow (closed a reason dialog): back in place, no failure.
|
|
99
|
+
* A throw or a rejected promise: error.
|
|
100
|
+
*/
|
|
101
|
+
onMove: (request: SdKanbanMoveRequest<T>) => boolean | 'cancel' | void | Promise<boolean | 'cancel' | void>;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
52
104
|
export interface SdKanbanCardTemplateContext<T> {
|
|
53
|
-
readonly $implicit: T
|
|
54
|
-
readonly
|
|
105
|
+
readonly $implicit: SdKanbanCard<T>;
|
|
106
|
+
readonly card: SdKanbanCard<T>;
|
|
55
107
|
readonly column: SdKanbanColumn;
|
|
56
108
|
readonly index: number;
|
|
57
109
|
readonly pending: boolean;
|
|
110
|
+
readonly selected: boolean;
|
|
58
111
|
}
|
|
59
112
|
export interface SdKanbanColumnTemplateContext {
|
|
60
113
|
readonly $implicit: SdKanbanColumn;
|
|
61
114
|
readonly column: SdKanbanColumn;
|
|
62
|
-
|
|
115
|
+
/** The server's `total`, or the column's cards in `items`. `null` while unknown (first load, error). */
|
|
116
|
+
readonly total: number | null;
|
|
117
|
+
/** Cards on screen (after the keyword in `items` mode). */
|
|
63
118
|
readonly visibleCount: number;
|
|
119
|
+
readonly summary: string | null;
|
|
64
120
|
readonly collapsed: boolean;
|
|
65
121
|
}
|
|
@@ -1,5 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
export
|
|
4
|
-
/**
|
|
5
|
-
|
|
1
|
+
import type { SdKanbanCard, SdKanbanColumn } from './kanban.model';
|
|
2
|
+
/** Where a move goes: `index` and `beforeId` are `null` when `reorder` is off (kanban.md §3, §7.5). */
|
|
3
|
+
export interface KanbanPlacement {
|
|
4
|
+
/** Index of the card in the loaded cards of its column. */
|
|
5
|
+
readonly fromIndex: number;
|
|
6
|
+
readonly index: number | null;
|
|
7
|
+
readonly beforeId: string | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolves a move of `cardId` within the loaded `cards`, or `undefined` for an unknown card, an unknown `beforeId`,
|
|
11
|
+
* a `beforeId` of another column, the same column with `reorder` off, or the same place with `reorder` on.
|
|
12
|
+
*/
|
|
13
|
+
export declare function kanbanResolveMove<T>(cards: readonly SdKanbanCard<T>[], cardId: string, to: {
|
|
14
|
+
readonly columnId: string;
|
|
15
|
+
readonly beforeId?: string | null;
|
|
16
|
+
}, reorder: boolean): KanbanPlacement | undefined;
|
|
17
|
+
/** `beforeId` for one step up (-1) or down (1) in the card's column; `undefined` at the edge. */
|
|
18
|
+
export declare function kanbanStepTarget<T>(cards: readonly SdKanbanCard<T>[], cardId: string, step: -1 | 1): string | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The drop slot `visibleIndex` of the rendered (maybe filtered) cards of a column, as `index` and `beforeId` in its
|
|
21
|
+
* loaded cards. The dragged card is left out of both lists.
|
|
22
|
+
*/
|
|
23
|
+
export declare function kanbanDropTarget<T>(loaded: readonly SdKanbanCard<T>[], visible: readonly SdKanbanCard<T>[], cardId: string, visibleIndex: number): {
|
|
24
|
+
readonly index: number;
|
|
25
|
+
readonly beforeId: string | null;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The items after an accepted move (kanban.md §5.1): with `reorder` off the card keeps its place in the array; with
|
|
29
|
+
* `reorder` on it goes before `beforeId`, or after the last card of the target column. Never changes the input.
|
|
30
|
+
*/
|
|
31
|
+
export declare function kanbanApplyMove<T>(cards: readonly SdKanbanCard<T>[], cardId: string, to: {
|
|
32
|
+
readonly columnId: string;
|
|
33
|
+
readonly beforeId: string | null;
|
|
34
|
+
}, reorder: boolean): readonly SdKanbanCard<T>[];
|
|
35
|
+
/** Invalid board data fails closed (kanban.md §8): every card and column must be identifiable and named. */
|
|
36
|
+
export declare function kanbanDataInvalid<T>(cards: readonly SdKanbanCard<T>[], columns: readonly SdKanbanColumn[]): boolean;
|
|
37
|
+
/** The next column for Alt + Left / Right, skipping disabled columns and those `skip` refuses; reversed in RTL. */
|
|
38
|
+
export declare function kanbanNextColumn(columns: readonly SdKanbanColumn[], fromColumnId: string, key: 'ArrowLeft' | 'ArrowRight', rtl: boolean, skip: (column: SdKanbanColumn) => boolean): SdKanbanColumn | undefined;
|