@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
|
@@ -26,6 +26,11 @@ export declare class SdTabGroup {
|
|
|
26
26
|
disableRipple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
27
|
dynamicHeight: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
28
|
autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Ghi tab đang chọn lên query param `tab-<autoId>` và chọn lại tab đó khi mở link, để copy link giữ đúng tab. Cần
|
|
31
|
+
* `autoId`. Về tab ban đầu thì param bị xoá. Mặc định tắt.
|
|
32
|
+
*/
|
|
33
|
+
syncQueryParams: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
34
|
tabClosed: import("@angular/core").OutputEmitterRef<SdTabClosedEvent>;
|
|
30
35
|
protected matTabGroup: import("@angular/core").Signal<MatTabGroup | undefined>;
|
|
31
36
|
private readonly matTabElement;
|
|
@@ -41,5 +46,5 @@ export declare class SdTabGroup {
|
|
|
41
46
|
realignInkBar(): void;
|
|
42
47
|
protected onClose(tab: SdTab, index: number, event: MouseEvent): void;
|
|
43
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdTabGroup, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "syncQueryParams": { "alias": "syncQueryParams"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
|
|
45
50
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
/**
|
|
3
|
+
* `ActivatedRoute` "sống" của một tab: proxy (vẫn `instanceof ActivatedRoute`) luôn trỏ route mới nhất của path tab đó.
|
|
4
|
+
*
|
|
5
|
+
* why: tab-router giữ component sống khi người dùng sang tab khác. Quay lại tab, Angular tạo `ActivatedRoute` MỚI cho
|
|
6
|
+
* path đó; subscription mà component đã đăng ký trên route cũ không bao giờ phát nữa, nên component không biết query
|
|
7
|
+
* đã đổi. Proxy chuyển nguồn sang route mới (`setTarget`) và không phát lại giá trị trùng.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SdTabActivatedRouteRef {
|
|
10
|
+
#private;
|
|
11
|
+
readonly route: ActivatedRoute;
|
|
12
|
+
constructor(initial: ActivatedRoute);
|
|
13
|
+
/** Route Angular mà proxy đang theo. */
|
|
14
|
+
get target(): ActivatedRoute;
|
|
15
|
+
/** Chuyển proxy sang route mới của cùng path (tab được mở lại / điều hướng tới). */
|
|
16
|
+
setTarget(route: ActivatedRoute): void;
|
|
17
|
+
}
|
|
@@ -7,6 +7,8 @@ export declare class TableQuickSearchComponent {
|
|
|
7
7
|
readonly value: import("@angular/core").InputSignal<SdTableQuickSearchValue>;
|
|
8
8
|
readonly autoId: import("@angular/core").InputSignal<string | null | undefined>;
|
|
9
9
|
readonly rightTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
10
|
+
/** Id of the table's required hint (in its empty block); described by it while a required filter is empty. */
|
|
11
|
+
readonly requiredHintId: import("@angular/core").InputSignal<string | undefined>;
|
|
10
12
|
readonly valueChange: import("@angular/core").OutputEmitterRef<SdTableQuickSearchValue>;
|
|
11
13
|
readonly term: import("@angular/core").WritableSignal<string>;
|
|
12
14
|
readonly isMobile: import("@angular/core").Signal<boolean>;
|
|
@@ -22,5 +24,5 @@ export declare class TableQuickSearchComponent {
|
|
|
22
24
|
clear(input: HTMLInputElement): void;
|
|
23
25
|
onFilterChange(item: SdTableQuickSearchFilter, value: SdTableQuickSearchFilterValue): void;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableQuickSearchComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableQuickSearchComponent, "sd-table-quick-search", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "rightTemplate": { "alias": "rightTemplate"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableQuickSearchComponent, "sd-table-quick-search", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "rightTemplate": { "alias": "rightTemplate"; "required": false; "isSignal": true; }; "requiredHintId": { "alias": "requiredHintId"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
26
28
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { SdTableAction } from '../../models/table-option-selector.model';
|
|
3
3
|
import { SdTableItem } from '../../models/table-item.model';
|
|
4
|
-
import {
|
|
5
|
-
import { SdUnwrapSignal } from '@sdcorejs/angular/utilities/models';
|
|
4
|
+
import { type ɵSdSelectionBarAction } from '@sdcorejs/angular/components/quick-action';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
8
7
|
* Resolves the bulk actions a selection is allowed to run.
|
|
@@ -17,25 +16,5 @@ export declare class ActionFilterPipe implements PipeTransform {
|
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionFilterPipe, never>;
|
|
18
17
|
static ɵpipe: i0.ɵɵPipeDeclaration<ActionFilterPipe, "actionFilter", true>;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
variant: 'normal';
|
|
23
|
-
icon?: string;
|
|
24
|
-
fontSet?: SdUnwrapSignal<SdButton['fontSet']>;
|
|
25
|
-
tooltip?: SdUnwrapSignal<SdButton['tooltip']>;
|
|
26
|
-
title?: SdUnwrapSignal<SdButton['title']>;
|
|
27
|
-
color?: SdUnwrapSignal<SdButton['color']>;
|
|
28
|
-
type?: SdUnwrapSignal<SdButton['type']>;
|
|
29
|
-
click: (selectedItems?: T[]) => void;
|
|
30
|
-
}
|
|
31
|
-
interface ActionChildren<T = any> {
|
|
32
|
-
variant: 'children';
|
|
33
|
-
icon?: string;
|
|
34
|
-
fontSet?: SdUnwrapSignal<SdButton['fontSet']>;
|
|
35
|
-
tooltip?: SdUnwrapSignal<SdButton['tooltip']>;
|
|
36
|
-
title?: SdUnwrapSignal<SdButton['title']>;
|
|
37
|
-
color?: SdUnwrapSignal<SdButton['color']>;
|
|
38
|
-
type?: SdUnwrapSignal<SdButton['type']>;
|
|
39
|
-
children: ActionNormal<T>[];
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
19
|
+
/** Lệnh đã lọc theo lựa chọn, đúng shape mà thanh chọn dùng chung nhận. */
|
|
20
|
+
export type Action<T = any> = ɵSdSelectionBarAction<T>;
|
|
@@ -13,16 +13,6 @@ export declare class SelectorActionComponent {
|
|
|
13
13
|
/** Bulk actions the current selection is allowed to run. */
|
|
14
14
|
actions: import("@angular/core").Signal<Action[]>;
|
|
15
15
|
opened: import("@angular/core").Signal<boolean>;
|
|
16
|
-
readonly directActions: import("@angular/core").Signal<{
|
|
17
|
-
action: Action;
|
|
18
|
-
index: number;
|
|
19
|
-
}[]>;
|
|
20
|
-
readonly overflowActions: import("@angular/core").Signal<{
|
|
21
|
-
action: Action;
|
|
22
|
-
index: number;
|
|
23
|
-
}[]>;
|
|
24
|
-
readonly moreLabel: import("@angular/core").Signal<string>;
|
|
25
|
-
readonly clearLabel: import("@angular/core").Signal<string>;
|
|
26
16
|
onClear: () => void;
|
|
27
17
|
onClickAction: (action: Action) => void;
|
|
28
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectorActionComponent, never>;
|
|
@@ -4,6 +4,12 @@ import { SdTableOptionFilter } from '../services/table-filter/table-filter.model
|
|
|
4
4
|
import { Operator } from '@sdcorejs/utils/models';
|
|
5
5
|
import { SdTableColumn, SdTableOptionLoading } from '../models';
|
|
6
6
|
export interface ISdTableConfiguration {
|
|
7
|
+
/**
|
|
8
|
+
* Khoá của cấu hình, dùng khi một portal có nhiều module với backend khác nhau. Bảng chọn bằng
|
|
9
|
+
* `option.configurationKey`. Không khai `key`: cấu hình mặc định của portal, áp cho mọi bảng và là nền cho các cấu
|
|
10
|
+
* hình có `key` (gộp theo từng field).
|
|
11
|
+
*/
|
|
12
|
+
key?: string;
|
|
7
13
|
paginate?: {
|
|
8
14
|
/** Số dòng mỗi trang. */
|
|
9
15
|
pageSize?: SdTableOptionPaginate['pageSize'];
|
|
@@ -24,8 +30,17 @@ export interface ISdTableConfiguration {
|
|
|
24
30
|
mode?: SdTableOptionFilter['mode'];
|
|
25
31
|
/** Cho người dùng chọn giao diện lọc trong modal Thiết lập; `option.filter.modeSelectable` thắng. Mặc định là `true`. */
|
|
26
32
|
modeSelectable?: SdTableOptionFilter['modeSelectable'];
|
|
27
|
-
/**
|
|
28
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Tuỳ chọn mặc định của mode `'query-bar'`; gộp theo từng field với `option.filter.queryBar`. Không có `savedFilters`:
|
|
35
|
+
* khoá bộ lọc đã lưu phải riêng từng bảng.
|
|
36
|
+
*/
|
|
37
|
+
queryBar?: Omit<NonNullable<SdTableOptionFilter['queryBar']>, 'savedFilters'>;
|
|
38
|
+
/**
|
|
39
|
+
* Operator của ô lọc theo cột, theo `type` của cột; chỉ áp cho cột bật `filter.operator.enable`.
|
|
40
|
+
* - `list`: danh sách operator khi cột không khai `filter.operator.list`. Type không khai ở đây dùng bộ mặc định của
|
|
41
|
+
* thư viện (`DEFAULT_TABLE_CONFIG`: `string`, `number`); khai mảng rỗng để type đó không có operator.
|
|
42
|
+
* - `default`: operator chọn sẵn; `filter.operator.default` của cột thắng.
|
|
43
|
+
*/
|
|
29
44
|
operator?: {
|
|
30
45
|
list?: Partial<Record<SdTableColumn['type'], Operator[]>>;
|
|
31
46
|
default?: Partial<Record<SdTableColumn['type'], Operator>>;
|
|
@@ -47,4 +62,31 @@ export interface ISdTableConfiguration {
|
|
|
47
62
|
};
|
|
48
63
|
}
|
|
49
64
|
export declare const DEFAULT_TABLE_CONFIG: ISdTableConfiguration;
|
|
65
|
+
/** Operator áp cho một cột bật `filter.operator.enable`. */
|
|
66
|
+
export interface SdTableColumnOperatorDefaults {
|
|
67
|
+
/** Danh sách của cột nếu cột tự khai, không thì theo type. Luôn là bản sao: bảng gán thẳng vào `column.filter.operator.list`. */
|
|
68
|
+
list: Operator[];
|
|
69
|
+
default?: Operator;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Operator của một cột. Cột tự khai `filter.operator.list` thì dùng danh sách đó; không thì lấy theo `type`: cấu hình của ứng dụng (`SD_TABLE_CONFIGURATION`) thắng theo từng type, type không khai
|
|
73
|
+
* thì dùng bộ mặc định của thư viện. Mảng rỗng trong cấu hình nghĩa là type đó không có operator.
|
|
74
|
+
*
|
|
75
|
+
* Operator chọn sẵn của thư viện chỉ đi cùng danh sách mặc định của thư viện. Cột hay ứng dụng tự khai danh sách mà
|
|
76
|
+
* không khai `default` thì giữ như trước: không operator nào được chọn sẵn.
|
|
77
|
+
*/
|
|
78
|
+
export declare const resolveTableColumnOperators: (type: SdTableColumn["type"], configuration?: ISdTableConfiguration | null, columnList?: readonly Operator[] | null) => SdTableColumnOperatorDefaults;
|
|
79
|
+
/**
|
|
80
|
+
* Cấu hình áp cho một bảng. `SD_TABLE_CONFIGURATION` nhận một cấu hình hoặc một mảng (`multi: true`), giống
|
|
81
|
+
* `SD_UPLOAD_FILE_CONFIGURATION` và `SD_PERMISSION_CONFIGURATION`:
|
|
82
|
+
* - cấu hình không `key` là mặc định của portal;
|
|
83
|
+
* - cấu hình có `key` trùng `option.configurationKey` được gộp lên trên mặc định của portal, theo từng field;
|
|
84
|
+
* - `key` không khớp cấu hình nào thì dùng mặc định của portal.
|
|
85
|
+
*
|
|
86
|
+
* Hai cấu hình trùng `key` (kể cả hai cấu hình không `key`) là lỗi khai báo: ném lỗi thay vì âm thầm chọn một.
|
|
87
|
+
*/
|
|
88
|
+
export declare const resolveTableConfiguration: (source?: ISdTableConfiguration | readonly ISdTableConfiguration[] | null, key?: string | null) => ISdTableConfiguration | null;
|
|
89
|
+
/**
|
|
90
|
+
* Một cấu hình (`useValue`) hoặc nhiều cấu hình (`multi: true`, mỗi cấu hình một `key`). Xem `resolveTableConfiguration`.
|
|
91
|
+
*/
|
|
50
92
|
export declare const SD_TABLE_CONFIGURATION: InjectionToken<ISdTableConfiguration>;
|
|
@@ -32,6 +32,12 @@ interface SdTableBaseOption<T = any> {
|
|
|
32
32
|
* ví dụ các option có hỗ trợ cache/config theo key.
|
|
33
33
|
*/
|
|
34
34
|
key?: string;
|
|
35
|
+
/**
|
|
36
|
+
* `key` của cấu hình trong `SD_TABLE_CONFIGURATION` áp cho bảng này (portal có nhiều module, mỗi module một backend).
|
|
37
|
+
* Cấu hình đó được gộp lên trên cấu hình mặc định của portal (cấu hình không `key`). Không khai, hoặc không có cấu
|
|
38
|
+
* hình nào trùng `key`: dùng cấu hình mặc định của portal.
|
|
39
|
+
*/
|
|
40
|
+
configurationKey?: string;
|
|
35
41
|
/**
|
|
36
42
|
* Field định danh của MỘT DÒNG (hỗ trợ dot-notation, vd `'id'` hoặc `'user.id'`).
|
|
37
43
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SdStorageWithDefault } from '@sdcorejs/angular/services';
|
|
2
2
|
import { ConfiguredTable, ConfiguredTableResult } from '../models/table-option-config.model';
|
|
3
3
|
import { SdTableOption } from '../models/table-option.model';
|
|
4
|
-
import { ISdTableConfiguration } from '../configurations';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class ConfigService {
|
|
7
6
|
#private;
|
|
@@ -10,7 +9,6 @@ export declare class ConfigService {
|
|
|
10
9
|
width: string;
|
|
11
10
|
}>;
|
|
12
11
|
private readonly storageService;
|
|
13
|
-
readonly tableConfiguration: ISdTableConfiguration | null;
|
|
14
12
|
constructor();
|
|
15
13
|
loadConfiguredTable: (option: SdTableOption) => ConfiguredTable;
|
|
16
14
|
loadConfigurationResult: (option: SdTableOption, configuration: ConfiguredTable) => ConfiguredTableResult;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Operator } from '@sdcorejs/utils/models';
|
|
2
|
+
import { SdTableColumn } from '../../models/table-column.model';
|
|
3
|
+
import { SdTableExternalFilter, TableFilterValue } from './table-filter.model';
|
|
4
|
+
/**
|
|
5
|
+
* Deep copy of a filter value for a working copy (mobile filter drawer).
|
|
6
|
+
* why: `JSON.parse(JSON.stringify())` biến `Date` thành chuỗi ISO và bỏ key `undefined`, nên giá trị default kiểu ngày
|
|
7
|
+
* đổi kiểu sau khi Áp dụng và so sánh trước/sau luôn lệch. Object khác plain object/array (File, class) giữ tham chiếu.
|
|
8
|
+
*/
|
|
9
|
+
export declare const cloneTableFilterValue: <T extends object>(value: T | null | undefined) => T;
|
|
10
|
+
/**
|
|
11
|
+
* Callbacks of the filters a commit changed, for UIs that edit a working copy and write it once (mobile filter
|
|
12
|
+
* drawer). The desktop controls call them on each change; here they run once per changed filter, after the write.
|
|
13
|
+
* - external filter `onChange(value)` — every type except `custom` (its template owns its events);
|
|
14
|
+
* - `filter.operatorChange(column, operator)` for a column whose operator changed;
|
|
15
|
+
* - column `filter.onChange(value, column, columnFilter)` only when `columnOnChange(column)` says so (a control that
|
|
16
|
+
* already called it while editing, such as `column-filter`, must not call it twice).
|
|
17
|
+
*/
|
|
18
|
+
export declare const runTableFilterCallbacks: (args: {
|
|
19
|
+
previous: TableFilterValue | undefined;
|
|
20
|
+
next: TableFilterValue | undefined;
|
|
21
|
+
externalFilters?: readonly SdTableExternalFilter[] | null;
|
|
22
|
+
columns?: readonly SdTableColumn[] | null;
|
|
23
|
+
operatorChange?: (column?: SdTableColumn, operator?: Operator) => void;
|
|
24
|
+
columnOnChange?: (column: SdTableColumn) => boolean;
|
|
25
|
+
}) => void;
|
|
@@ -98,6 +98,15 @@ export interface SdTableOptionFilterQueryBar {
|
|
|
98
98
|
pinned?: string[];
|
|
99
99
|
/** Field không đưa vào thanh; giá trị đang có vẫn được gửi đi. */
|
|
100
100
|
exclude?: string[];
|
|
101
|
+
/**
|
|
102
|
+
* Bộ lọc đã lưu của thanh (nút bookmark): lưu trên trình duyệt (localStorage) dưới khoá
|
|
103
|
+
* `sd-query-bar:savedFilters:sd-table:<key>`. Chỉ có ở chế độ query bar trên desktop; lưu chip, logic và từ khoá —
|
|
104
|
+
* không lưu sắp xếp, cột hay số dòng. Áp bộ lọc đã lưu đọc dữ liệu một lần; field bảng không còn có thì bị bỏ.
|
|
105
|
+
* Chỉ đọc từ option của bảng, không từ `SD_TABLE_CONFIGURATION` (một key chung sẽ trộn bộ lọc của mọi bảng).
|
|
106
|
+
*/
|
|
107
|
+
savedFilters?: {
|
|
108
|
+
key: string;
|
|
109
|
+
};
|
|
101
110
|
}
|
|
102
111
|
export declare const SdConvertToPagingReq: (filterRequest: SdTableFilterRequest, args: {
|
|
103
112
|
columns?: SdTableColumnAnyRow[];
|
|
@@ -63,7 +63,7 @@ export interface SdTableQueryChange {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* `aria-haspopup` of the header filter icon: what `SdQueryBar.openField` shows for `field` (same steps as `beginBuild`).
|
|
66
|
-
* The popover editor opens the chip
|
|
66
|
+
* The popover editor opens the chip popover (a dialog panel). The inline editor only focuses an existing chip; for a field without a chip it
|
|
67
67
|
* builds one, which opens the operator menu, or the value picker of a values / date field (a date skips the operator
|
|
68
68
|
* step when its default operator is allowed).
|
|
69
69
|
*/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Operator } from '@sdcorejs/utils/models';
|
|
2
|
+
import type { SdTableQuickSearchValue } from '../table-filter/table-quick-search.model';
|
|
3
|
+
/**
|
|
4
|
+
* State của `sd-table` được ghi lên query param `table-<autoId>` khi bật `syncQueryParams`. Nội bộ.
|
|
5
|
+
*
|
|
6
|
+
* Format JSON, khoá ngắn, thứ tự cố định, chỉ phần khác mặc định:
|
|
7
|
+
* `{"q":{"t":term,"f":{field:value}},"c":{field:value},"o":{field:operator},"e":{field:value},"s":[field,"asc"|"desc"],"p":page(1-based),"z":pageSize}`.
|
|
8
|
+
* Giá trị `null` nghĩa là "đã xoá" (khác mặc định). `Date` ghi ISO và được đọc lại thành `Date`.
|
|
9
|
+
*/
|
|
10
|
+
export interface SdTableUrlState {
|
|
11
|
+
quickSearch?: SdTableQuickSearchValue;
|
|
12
|
+
columnOperator: Record<string, Operator>;
|
|
13
|
+
columnFilter: Record<string, unknown>;
|
|
14
|
+
externalFilter: Record<string, unknown>;
|
|
15
|
+
sort: {
|
|
16
|
+
active: string;
|
|
17
|
+
direction: 'asc' | 'desc' | '';
|
|
18
|
+
};
|
|
19
|
+
/** 0-based. */
|
|
20
|
+
pageIndex: number;
|
|
21
|
+
pageSize: number;
|
|
22
|
+
}
|
|
23
|
+
export interface SdTableUrlStateContext {
|
|
24
|
+
defaults: {
|
|
25
|
+
/** `undefined` khi bảng không có quick search. */
|
|
26
|
+
quickSearch?: SdTableQuickSearchValue;
|
|
27
|
+
columnOperator: Record<string, Operator>;
|
|
28
|
+
columnFilter: Record<string, unknown>;
|
|
29
|
+
externalFilter: Record<string, unknown>;
|
|
30
|
+
pageSize: number;
|
|
31
|
+
};
|
|
32
|
+
/** Field được phép đọc từ URL — URL là input không tin cậy, field lạ bị bỏ. */
|
|
33
|
+
fields: {
|
|
34
|
+
/** Cột có filter đang bật. */
|
|
35
|
+
column: ReadonlySet<string>;
|
|
36
|
+
/** Cột bật chọn operator → các operator của cột đó (`filter.operator.list`). */
|
|
37
|
+
operator: ReadonlyMap<string, ReadonlySet<string>>;
|
|
38
|
+
external: ReadonlySet<string>;
|
|
39
|
+
quickSearch: ReadonlySet<string>;
|
|
40
|
+
sort: ReadonlySet<string>;
|
|
41
|
+
};
|
|
42
|
+
pageSizes: readonly number[];
|
|
43
|
+
/** `false` với bảng không có tổng (`paginate.total: 'unknown'`): không ghi/đọc trang. */
|
|
44
|
+
pageIndex: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare const serializeTableQueryState: (state: SdTableUrlState, context: SdTableUrlStateContext) => string | null;
|
|
47
|
+
/** Đọc giá trị param. `undefined` khi không phải JSON object; field lạ / sai dạng bị bỏ, phần thiếu lấy mặc định. */
|
|
48
|
+
export declare const parseTableQueryState: (raw: string, context: SdTableUrlStateContext) => SdTableUrlState | undefined;
|
|
@@ -58,6 +58,12 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
58
58
|
option: import("@angular/core").InputSignal<SdTableOption<T>>;
|
|
59
59
|
/** Hide the integrated error region while retaining read state, events and retry. */
|
|
60
60
|
readonly hideReadError: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
61
|
+
/**
|
|
62
|
+
* Ghi filter (quick search, filter dưới cột + operator, external filter), sort và trang lên query param
|
|
63
|
+
* `table-<autoId>`, rồi đọc lại khi mở link — copy link giữ đúng bảng đang xem. Cần `autoId`. State mặc định thì param
|
|
64
|
+
* bị xoá. Mặc định tắt.
|
|
65
|
+
*/
|
|
66
|
+
readonly syncQueryParams: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
61
67
|
readonly sdReadStateChange: import("@angular/core").OutputEmitterRef<SdReadState>;
|
|
62
68
|
readonly readState: import("@angular/core").Signal<SdReadState>;
|
|
63
69
|
readonly dataStateTemplate: import("@angular/core").Signal<SdDataStateTemplateDirective | undefined>;
|
|
@@ -225,7 +231,8 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
225
231
|
/** Chip trên thanh (nháp của thanh) và ô tìm — gắn hai chiều với `sd-query-bar`. */
|
|
226
232
|
readonly barFilters: import("@angular/core").WritableSignal<Filter[]>;
|
|
227
233
|
readonly barSearch: import("@angular/core").WritableSignal<string>;
|
|
228
|
-
|
|
234
|
+
/** Id of the required hint in the empty block; `aria-describedby` of empty required chips and of the quick search input. */
|
|
235
|
+
readonly requiredHintId: string;
|
|
229
236
|
/** Field của thanh và bảng tra nguồn; `undefined` khi không ở mode query-bar. */
|
|
230
237
|
readonly queryBarModel: import("@angular/core").Signal<SdTableQueryContext | undefined>;
|
|
231
238
|
/**
|
|
@@ -246,8 +253,16 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
246
253
|
filterTriggerLabel(column: SdTableColumn, active: boolean): string;
|
|
247
254
|
/** Icon lọc ở header: mở chip của field trên thanh (tạo chip nếu chưa có); đóng popover thì focus về icon. */
|
|
248
255
|
openQueryBarField(key: string, trigger: EventTarget | null): void;
|
|
249
|
-
/**
|
|
250
|
-
|
|
256
|
+
/**
|
|
257
|
+
* "Chọn {label} để xem dữ liệu" for the required fields that are still empty, or `''`. The empty block of the body
|
|
258
|
+
* shows it in place of `choose-filter-hint` (the read is blocked, so that block is on screen): a line under the
|
|
259
|
+
* filter row would push the table down and back up once the value is chosen.
|
|
260
|
+
* - Query-bar mode: empty required chips, hidden required quick filters, and required external filters the bar
|
|
261
|
+
* cannot show (custom, filterDef, exclude…), which still block the read.
|
|
262
|
+
* - Quick search: empty required quick filters, hidden ones included.
|
|
263
|
+
* The external filter panel of the default mode marks its own required fields.
|
|
264
|
+
*/
|
|
265
|
+
readonly requiredHint: import("@angular/core").Signal<string>;
|
|
251
266
|
key: string;
|
|
252
267
|
columnOperator: Record<string, Operator>;
|
|
253
268
|
columnFilter?: NonNullable<TableFilterValue['columnFilter']>;
|
|
@@ -256,7 +271,8 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
256
271
|
readonly expandRevision: import("@angular/core").WritableSignal<number>;
|
|
257
272
|
exporting: import("@angular/core").WritableSignal<boolean>;
|
|
258
273
|
exportTitle: import("@angular/core").Signal<string>;
|
|
259
|
-
|
|
274
|
+
/** Cấu hình áp cho bảng này: cấu hình trùng `option.configurationKey` gộp lên cấu hình mặc định của portal. */
|
|
275
|
+
get tableConfiguration(): ISdTableConfiguration | null;
|
|
260
276
|
/**
|
|
261
277
|
* Bảng chính của khung trang (sd-page-list): lấp phần chiều cao còn lại, giữ tối thiểu header + 5 dòng. Không áp
|
|
262
278
|
* dụng khi điện thoại hiện thẻ: thẻ nằm theo trang và vùng cuộn của trang cuộn một lần, thay vì cuộn trong một hộp
|
|
@@ -363,5 +379,5 @@ export declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
|
|
|
363
379
|
reorderSortPredicate: (index: number, drag: CdkDrag<SdTableItem<T>>, drop: CdkDropList<SdTableItem<T>[]>) => boolean;
|
|
364
380
|
onReorderDrop(event: CdkDragDrop<SdTableItem<T>[]>): void;
|
|
365
381
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdTable<any>, never>;
|
|
366
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdTable<any>, "sd-table", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": true; "isSignal": true; }; "hideReadError": { "alias": "hideReadError"; "required": false; "isSignal": true; }; }, { "sdReadStateChange": "sdReadStateChange"; }, ["dataStateTemplate", "sdSubInformation", "sdGroupDef", "sdCellDefs", "sdCommandHeaderDef", "sdQuickSearchRightDef", "sdFooterDefs", "sdFilterDefs", "sdTitleDefs", "sdRowMobileDef"], ["[sdTableTop]"], true, never>;
|
|
382
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTable<any>, "sd-table", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": true; "isSignal": true; }; "hideReadError": { "alias": "hideReadError"; "required": false; "isSignal": true; }; "syncQueryParams": { "alias": "syncQueryParams"; "required": false; "isSignal": true; }; }, { "sdReadStateChange": "sdReadStateChange"; }, ["dataStateTemplate", "sdSubInformation", "sdGroupDef", "sdCellDefs", "sdCommandHeaderDef", "sdQuickSearchRightDef", "sdFooterDefs", "sdFilterDefs", "sdTitleDefs", "sdRowMobileDef"], ["[sdTableTop]"], true, never>;
|
|
367
383
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { type SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
3
|
+
import type { SdTimelineItem, SdTimelineOption } from './timeline.model';
|
|
4
|
+
import { SdTimelineEmptyDirective, SdTimelineItemActionsDirective, SdTimelineItemContentDirective } from './timeline.templates';
|
|
5
|
+
import { type SdTimelineTime } from './timeline.utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
type SdTimelineValueView = {
|
|
8
|
+
kind: 'empty';
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'badge';
|
|
11
|
+
badge: SdBadgeData;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'text';
|
|
14
|
+
text: string;
|
|
15
|
+
};
|
|
16
|
+
interface SdTimelineChangeView {
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly from: SdTimelineValueView;
|
|
19
|
+
readonly to: SdTimelineValueView;
|
|
20
|
+
/** Both sides are badges: an arrow icon instead of the "→" character. */
|
|
21
|
+
readonly badges: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface SdTimelineItemView<T> {
|
|
24
|
+
readonly item: SdTimelineItem<T>;
|
|
25
|
+
/** 1-based position in the whole list (`aria-posinset` of a feed). */
|
|
26
|
+
readonly position: number;
|
|
27
|
+
readonly key: string;
|
|
28
|
+
readonly labelId: string;
|
|
29
|
+
readonly label: string;
|
|
30
|
+
readonly action: string;
|
|
31
|
+
readonly badge: SdBadgeData | undefined;
|
|
32
|
+
readonly icon: string;
|
|
33
|
+
readonly time: SdTimelineTime;
|
|
34
|
+
readonly timeText: string;
|
|
35
|
+
readonly timeTitle: string;
|
|
36
|
+
readonly note: string | undefined;
|
|
37
|
+
readonly changes: {
|
|
38
|
+
readonly rows: readonly SdTimelineChangeView[];
|
|
39
|
+
readonly hidden: number;
|
|
40
|
+
} | null;
|
|
41
|
+
}
|
|
42
|
+
interface SdTimelineGroupView<T> {
|
|
43
|
+
readonly key: string;
|
|
44
|
+
readonly heading: string | null;
|
|
45
|
+
readonly items: readonly SdTimelineItemView<T>[];
|
|
46
|
+
}
|
|
47
|
+
export declare class SdTimeline<T = unknown> {
|
|
48
|
+
#private;
|
|
49
|
+
/** Entries to show. Ignored when `option` is set. */
|
|
50
|
+
readonly items: import("@angular/core").InputSignal<readonly SdTimelineItem<T>[] | undefined>;
|
|
51
|
+
/** Cursor-paged data source; the timeline manages loading and errors itself. */
|
|
52
|
+
readonly option: import("@angular/core").InputSignal<SdTimelineOption<T> | undefined>;
|
|
53
|
+
/** `'day'` adds a heading at every day change; `'none'` shows the full date on each entry. */
|
|
54
|
+
readonly groupBy: import("@angular/core").InputSignal<"day" | "none">;
|
|
55
|
+
readonly size: import("@angular/core").InputSignal<"md" | "sm">;
|
|
56
|
+
/** Text of the empty state; defaults to the i18n `empty` text. */
|
|
57
|
+
readonly emptyText: import("@angular/core").InputSignal<string | undefined>;
|
|
58
|
+
/** Accessible name of the region; defaults to the i18n `label` text. */
|
|
59
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
60
|
+
/** Stable suffix used by the Core UI inspector and end-to-end selectors. */
|
|
61
|
+
readonly autoId: import("@angular/core").InputSignal<string | null | undefined>;
|
|
62
|
+
/** Level of the day headings (`aria-level`), to fit the heading outline of the page. */
|
|
63
|
+
readonly headingLevel: import("@angular/core").InputSignal<2 | 3 | 4>;
|
|
64
|
+
/** `onLoad` threw, on the first load or on a later page. */
|
|
65
|
+
readonly sdLoadError: import("@angular/core").OutputEmitterRef<unknown>;
|
|
66
|
+
protected readonly contentTemplate: import("@angular/core").Signal<SdTimelineItemContentDirective<T> | undefined>;
|
|
67
|
+
protected readonly actionsTemplate: import("@angular/core").Signal<SdTimelineItemActionsDirective<T> | undefined>;
|
|
68
|
+
protected readonly emptyTemplate: import("@angular/core").Signal<SdTimelineEmptyDirective | undefined>;
|
|
69
|
+
protected readonly resolvedAutoId: import("@angular/core").Signal<string | null>;
|
|
70
|
+
protected readonly baseId: import("@angular/core").Signal<string>;
|
|
71
|
+
protected readonly regionLabel: import("@angular/core").Signal<string>;
|
|
72
|
+
protected readonly emptyLabel: import("@angular/core").Signal<string>;
|
|
73
|
+
/** Entries currently shown. */
|
|
74
|
+
protected readonly entries: import("@angular/core").Signal<readonly SdTimelineItem<T>[]>;
|
|
75
|
+
protected readonly phase: import("@angular/core").Signal<"error" | "idle" | "loading" | "more" | "more-error">;
|
|
76
|
+
protected readonly hasMore: import("@angular/core").Signal<boolean>;
|
|
77
|
+
protected readonly pageSize: import("@angular/core").Signal<number>;
|
|
78
|
+
/** Feed semantics while pages load automatically on scroll. */
|
|
79
|
+
protected readonly feed: import("@angular/core").Signal<boolean>;
|
|
80
|
+
/** Bar widths (%) of the three skeleton rows. */
|
|
81
|
+
protected readonly skeletonRows: readonly [readonly [70, 90], readonly [55], readonly [65]];
|
|
82
|
+
protected readonly sentinel: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
83
|
+
protected readonly groups: import("@angular/core").Signal<readonly SdTimelineGroupView<T>[]>;
|
|
84
|
+
protected readonly expanded: import("@angular/core").Signal<ReadonlySet<string>>;
|
|
85
|
+
protected readonly clamped: import("@angular/core").Signal<ReadonlySet<string>>;
|
|
86
|
+
constructor();
|
|
87
|
+
/** Cancels a running load and reads the first page again; the shown entries stay until the result arrives. */
|
|
88
|
+
reload(): void;
|
|
89
|
+
/** Loads the next page; ignored while a load runs or when there is no next page. */
|
|
90
|
+
loadMore(): void;
|
|
91
|
+
protected toggle(key: string): void;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTimeline<any>, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTimeline<any>, "sd-timeline", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; }, { "sdLoadError": "sdLoadError"; }, ["contentTemplate", "actionsTemplate", "emptyTemplate"], never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
|
|
2
|
+
import type { Color as SdColor } from '@sdcorejs/utils/models';
|
|
3
|
+
/** One entry of `sd-timeline`: who did what, when, with a body chosen by `content.layout`. */
|
|
4
|
+
export interface SdTimelineItem<T = unknown> {
|
|
5
|
+
id: string;
|
|
6
|
+
/** Instant of the entry; read through `SdDateTimeService` in the configured zone. */
|
|
7
|
+
at: string | number | Date;
|
|
8
|
+
/** Without an actor no name is shown and the marker is an icon. */
|
|
9
|
+
actor?: {
|
|
10
|
+
name: string;
|
|
11
|
+
avatar?: string;
|
|
12
|
+
};
|
|
13
|
+
/** Overrides the default icon of the layout. */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** Ring color of the icon marker; neutral by default. */
|
|
16
|
+
color?: SdColor;
|
|
17
|
+
/** "Web", "API"…; hidden at size `sm`. */
|
|
18
|
+
source?: string;
|
|
19
|
+
content: SdTimelineContent;
|
|
20
|
+
/** Original DTO for templates, kept by reference. */
|
|
21
|
+
data?: T;
|
|
22
|
+
}
|
|
23
|
+
/** Body of a timeline entry. */
|
|
24
|
+
export type SdTimelineContent = {
|
|
25
|
+
layout: 'comment';
|
|
26
|
+
data: SdTimelineCommentData;
|
|
27
|
+
} | {
|
|
28
|
+
layout: 'change';
|
|
29
|
+
data: SdTimelineChangeData;
|
|
30
|
+
} | {
|
|
31
|
+
layout: 'event';
|
|
32
|
+
data: SdTimelineEventData;
|
|
33
|
+
};
|
|
34
|
+
export interface SdTimelineCommentData {
|
|
35
|
+
/** Plain text; line breaks are kept. The action reads "commented" (i18n). */
|
|
36
|
+
text: string;
|
|
37
|
+
/** Adds "edited" after the time. */
|
|
38
|
+
edited?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface SdTimelineChangeData {
|
|
41
|
+
/** "updated the order", "changed the status". */
|
|
42
|
+
title: string;
|
|
43
|
+
/** At least one row. */
|
|
44
|
+
changes: readonly SdTimelineChange[];
|
|
45
|
+
badge?: SdBadgeData;
|
|
46
|
+
note?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface SdTimelineEventData {
|
|
49
|
+
/** "submitted for approval", "created the receipt". */
|
|
50
|
+
title: string;
|
|
51
|
+
badge?: SdBadgeData;
|
|
52
|
+
/** Reason or description: plain text, no frame. */
|
|
53
|
+
note?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface SdTimelineChange {
|
|
56
|
+
label: string;
|
|
57
|
+
from?: SdTimelineValue;
|
|
58
|
+
to?: SdTimelineValue;
|
|
59
|
+
}
|
|
60
|
+
export type SdTimelineValue = string | number | null | {
|
|
61
|
+
badge: SdBadgeData;
|
|
62
|
+
};
|
|
63
|
+
export interface SdTimelineLoadArgs {
|
|
64
|
+
/** `null` on the first load and after `reload()`. */
|
|
65
|
+
cursor: string | null;
|
|
66
|
+
pageSize: number;
|
|
67
|
+
signal: AbortSignal;
|
|
68
|
+
}
|
|
69
|
+
export interface SdTimelineLoadResult<T = unknown> {
|
|
70
|
+
items: SdTimelineItem<T>[];
|
|
71
|
+
/** `null` when there is nothing more to load. */
|
|
72
|
+
nextCursor: string | null;
|
|
73
|
+
}
|
|
74
|
+
export interface SdTimelineOption<T = unknown> {
|
|
75
|
+
dataSource: {
|
|
76
|
+
onLoad: (args: SdTimelineLoadArgs) => SdTimelineLoadResult<T> | Promise<SdTimelineLoadResult<T>>;
|
|
77
|
+
};
|
|
78
|
+
/** Defaults to 20. */
|
|
79
|
+
pageSize?: number;
|
|
80
|
+
/** Defaults to `'button'`. */
|
|
81
|
+
loadMore?: 'button' | 'auto';
|
|
82
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import type { SdTimelineItem } from './timeline.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Context of the item templates: the entry itself. */
|
|
5
|
+
export interface SdTimelineItemTemplateContext<T = unknown> {
|
|
6
|
+
$implicit: SdTimelineItem<T>;
|
|
7
|
+
}
|
|
8
|
+
/** Replaces the body of every layout; the marker and the first line stay. `let-item` is the entry. */
|
|
9
|
+
export declare class SdTimelineItemContentDirective<T = unknown> {
|
|
10
|
+
readonly template: TemplateRef<SdTimelineItemTemplateContext<T>>;
|
|
11
|
+
static ngTemplateContextGuard<T>(_directive: SdTimelineItemContentDirective<T>, _context: unknown): _context is SdTimelineItemTemplateContext<T>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTimelineItemContentDirective<any>, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdTimelineItemContentDirective<any>, "ng-template[sdTimelineItemContent]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
/** Action area at the end of the first line (for example an edit/delete menu). `let-item` is the entry. */
|
|
16
|
+
export declare class SdTimelineItemActionsDirective<T = unknown> {
|
|
17
|
+
readonly template: TemplateRef<SdTimelineItemTemplateContext<T>>;
|
|
18
|
+
static ngTemplateContextGuard<T>(_directive: SdTimelineItemActionsDirective<T>, _context: unknown): _context is SdTimelineItemTemplateContext<T>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTimelineItemActionsDirective<any>, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdTimelineItemActionsDirective<any>, "ng-template[sdTimelineItemActions]", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
/** Replaces the empty state. */
|
|
23
|
+
export declare class SdTimelineEmptyDirective {
|
|
24
|
+
readonly template: TemplateRef<void>;
|
|
25
|
+
static ngTemplateContextGuard(_directive: SdTimelineEmptyDirective, _context: unknown): _context is void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdTimelineEmptyDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdTimelineEmptyDirective, "ng-template[sdTimelineEmpty]", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|