@sdcorejs/angular 19.3.4 → 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 +15 -1
- package/components/query-bar/index.d.ts +1 -0
- 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-chip-text.d.ts +27 -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/config/config.component.d.ts +69 -1
- package/components/table/src/components/filter/mobile-filter/mobile-field-sheet.component.d.ts +35 -0
- package/components/table/src/components/filter/mobile-filter/mobile-filter-field.component.d.ts +64 -0
- package/components/table/src/components/filter/mobile-filter/mobile-filter-summary.d.ts +11 -0
- package/components/table/src/components/filter/mobile-filter/mobile-filter.component.d.ts +47 -15
- package/components/table/src/components/filter/quick-search/quick-search.component.d.ts +3 -1
- package/components/table/src/components/mobile-cards/mobile-card-data.component.d.ts +45 -0
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +13 -1
- package/components/table/src/components/mobile-sheet/mobile-sheet.d.ts +35 -0
- package/components/table/src/components/mobile-sort/mobile-sort-sheet.component.d.ts +36 -0
- package/components/table/src/components/mobile-toolbar/mobile-filter-chips.component.d.ts +49 -0
- package/components/table/src/components/mobile-toolbar/mobile-tools-sheet.component.d.ts +48 -0
- package/components/table/src/components/mobile-toolbar/pull-refresh.component.d.ts +21 -0
- 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 +53 -2
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-mobile.model.d.ts +55 -0
- package/components/table/src/models/table-option.model.d.ts +17 -1
- package/components/table/src/services/config-custom.util.d.ts +11 -3
- package/components/table/src/services/config.service.d.ts +0 -2
- package/components/table/src/services/mobile/mobile-view.util.d.ts +77 -0
- package/components/table/src/services/table-export/table-export.service.d.ts +2 -0
- 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 +21 -2
- package/components/table/src/services/table-filter/table-mobile-filter.util.d.ts +54 -0
- package/components/table/src/services/table-filter/table-query-bar.util.d.ts +21 -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 +78 -11
- 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 +66 -13
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1469 -357
- 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 +5943 -3666
- 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-select.mjs +23 -4
- package/fesm2022/sdcorejs-angular-forms-select.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 +812 -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 +17 -8
- 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-excel.mjs +34 -0
- package/fesm2022/sdcorejs-angular-services-excel.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 +159 -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 +36 -24
- 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/excel/src/lib/excel.model.d.ts +29 -0
- package/services/excel/src/lib/excel.service.d.ts +30 -0
- 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,189 @@
|
|
|
1
|
+
import { type Injector } from '@angular/core';
|
|
2
|
+
import type { SdCalendarMoveScope, SdCalendarMoveSource, SdCalendarState } from './calendar.model';
|
|
3
|
+
/** What one `onMove` call ended with. `aborted`: the request was cancelled before or after it answered (SC-15). */
|
|
4
|
+
export type SdCalendarMoveOutcome = {
|
|
5
|
+
readonly kind: 'accepted';
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: 'rejected';
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: 'cancelled';
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: 'error';
|
|
12
|
+
readonly error: unknown;
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: 'aborted';
|
|
15
|
+
};
|
|
16
|
+
/** Evaluates a capability flag; an omitted flag allows (SC-05, SC-06). */
|
|
17
|
+
export declare function sdCalendarAllows<C>(state: SdCalendarState<C> | undefined, context: C): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Calls `onMove` and classifies its answer (SC-09 … SC-13): `true` or nothing accepts, `false` rejects, `'cancel'`
|
|
20
|
+
* cancels, a throw or a rejection is an error. Any answer that arrives after `request.signal` was aborted is `aborted`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function sdCalendarCallMove<R extends {
|
|
23
|
+
readonly signal: AbortSignal;
|
|
24
|
+
}>(onMove: (request: R) => boolean | 'cancel' | void | Promise<boolean | 'cancel' | void>, request: R): Promise<SdCalendarMoveOutcome>;
|
|
25
|
+
/** One waiting create or move per component (SC-14): a second `begin` is refused until the first one ends. */
|
|
26
|
+
export declare class SdCalendarOperation<K extends string> {
|
|
27
|
+
#private;
|
|
28
|
+
/** Kind of the waiting operation, or `null`. */
|
|
29
|
+
readonly kind: import("@angular/core").Signal<K | null>;
|
|
30
|
+
readonly busy: import("@angular/core").Signal<boolean>;
|
|
31
|
+
/** Starts an operation and returns its signal, or `null` while another one waits. */
|
|
32
|
+
begin(kind: K): AbortSignal | null;
|
|
33
|
+
/** Ends the operation of `signal`; a stale signal is ignored. */
|
|
34
|
+
end(signal: AbortSignal): void;
|
|
35
|
+
/** Aborts the waiting operation when its kind is one of `kinds` (all kinds when omitted). Returns whether it did. */
|
|
36
|
+
abort(kinds?: readonly K[]): boolean;
|
|
37
|
+
}
|
|
38
|
+
/** One move handed to `SdCalendarMoveRunner`: what is specific to the component (calendar.md §9.5, scheduler.md §9.5). */
|
|
39
|
+
export interface SdCalendarMovePlan<R extends {
|
|
40
|
+
readonly signal: AbortSignal;
|
|
41
|
+
}> {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly title: string;
|
|
44
|
+
/** An occurrence of a series: the scope bar asks first, unless the move comes from `move()` (§9.6). */
|
|
45
|
+
readonly recurring: boolean;
|
|
46
|
+
readonly source: SdCalendarMoveSource;
|
|
47
|
+
/**
|
|
48
|
+
* Started from the keyboard: the focus goes back to the item afterwards (SC-29). Any other source does the same when
|
|
49
|
+
* the item held the focus at the start (review RX #6, as sd-kanban); a focus elsewhere stays there (SC-31).
|
|
50
|
+
*/
|
|
51
|
+
readonly keyboard: boolean;
|
|
52
|
+
/** The capability flags, evaluated again right before `onMove` (SC-06); `false` stops without a callback. */
|
|
53
|
+
readonly allowed: () => boolean;
|
|
54
|
+
readonly request: (scope: SdCalendarMoveScope | null, signal: AbortSignal) => R;
|
|
55
|
+
readonly onMove: (request: R) => boolean | 'cancel' | void | Promise<boolean | 'cancel' | void>;
|
|
56
|
+
/** Draws the item at its target: `false` while the scope bar asks, `true` while `onMove` runs, `null` clears. */
|
|
57
|
+
readonly show: (saving: boolean | null) => void;
|
|
58
|
+
/** `onMove` accepted: change the data and emit the move output. Returns the text for the live region. */
|
|
59
|
+
readonly accept: (request: R) => string;
|
|
60
|
+
/** `onMove` rejected or failed: emit the error output. */
|
|
61
|
+
readonly fail: (request: R, outcome: {
|
|
62
|
+
readonly kind: 'rejected';
|
|
63
|
+
} | {
|
|
64
|
+
readonly kind: 'error';
|
|
65
|
+
readonly error: unknown;
|
|
66
|
+
}) => void;
|
|
67
|
+
}
|
|
68
|
+
/** What `SdCalendarMoveRunner` needs from its component. */
|
|
69
|
+
export interface SdCalendarMoveHost {
|
|
70
|
+
readonly operation: SdCalendarOperation<'create' | 'move'>;
|
|
71
|
+
readonly announcer: SdCalendarAnnouncer;
|
|
72
|
+
readonly focus: SdCalendarFocusKeeper;
|
|
73
|
+
readonly t: (key: string, params?: Record<string, string | number>) => string;
|
|
74
|
+
/** Opens the scope bar and resolves with the answer; `null` is Cancel, also when `signal` (the move's) aborts. */
|
|
75
|
+
readonly ask: (title: string, signal: AbortSignal) => Promise<SdCalendarMoveScope | null>;
|
|
76
|
+
/** Shows the failure band of an item, or clears it with `null`. */
|
|
77
|
+
readonly band: (failure: {
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly message: string;
|
|
80
|
+
} | null) => void;
|
|
81
|
+
readonly reload: () => void;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The move pipeline after the component's own checks (calendar.md §9.5 steps 4–6): one waiting operation (SC-14), the
|
|
85
|
+
* scope bar of an occurrence, the flags once more (SC-06), `onMove` and its five results (SC-09 … SC-13), focus
|
|
86
|
+
* (SC-29, SC-30) and the live region. Shared by sd-calendar and sd-scheduler.
|
|
87
|
+
*/
|
|
88
|
+
export declare class SdCalendarMoveRunner {
|
|
89
|
+
#private;
|
|
90
|
+
private readonly host;
|
|
91
|
+
constructor(host: SdCalendarMoveHost);
|
|
92
|
+
run<R extends {
|
|
93
|
+
readonly signal: AbortSignal;
|
|
94
|
+
}>(plan: SdCalendarMovePlan<R>): Promise<boolean>;
|
|
95
|
+
}
|
|
96
|
+
/** One create handed to `SdCalendarCreateRunner`: the span the user picked and what to do with the answer. */
|
|
97
|
+
export interface SdCalendarCreatePlan<A extends object, E> {
|
|
98
|
+
/** Arguments of `onCreate` without `signal`. */
|
|
99
|
+
readonly args: A;
|
|
100
|
+
readonly onCreate: (args: A & {
|
|
101
|
+
readonly signal: AbortSignal;
|
|
102
|
+
}) => E | void | Promise<E | void>;
|
|
103
|
+
/** Draws the dashed block as waiting (`true`) or removes it (`false`). */
|
|
104
|
+
readonly show: (waiting: boolean) => void;
|
|
105
|
+
/** `onCreate` returned an item: insert and select it. */
|
|
106
|
+
readonly accept: (created: E) => void;
|
|
107
|
+
}
|
|
108
|
+
/** What `SdCalendarCreateRunner` needs from its component. */
|
|
109
|
+
export interface SdCalendarCreateHost {
|
|
110
|
+
readonly operation: SdCalendarOperation<'create' | 'move'>;
|
|
111
|
+
readonly announcer: SdCalendarAnnouncer;
|
|
112
|
+
readonly t: (key: string, params?: Record<string, string | number>) => string;
|
|
113
|
+
/** Shows the create failure band (`id: null`), or clears the band with `null`. */
|
|
114
|
+
readonly band: (failure: {
|
|
115
|
+
readonly id: null;
|
|
116
|
+
readonly message: string;
|
|
117
|
+
} | null) => void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The create pipeline after the component's own checks (calendar.md §9.2, SC-14, SC-19 … SC-21): one waiting
|
|
121
|
+
* operation, the waiting dashed block, `onCreate`, the error band without the error text, and the late answer of an
|
|
122
|
+
* aborted create dropped (SC-15). Shared by sd-calendar and sd-scheduler.
|
|
123
|
+
*/
|
|
124
|
+
export declare class SdCalendarCreateRunner {
|
|
125
|
+
private readonly host;
|
|
126
|
+
constructor(host: SdCalendarCreateHost);
|
|
127
|
+
run<A extends object, E>(plan: SdCalendarCreatePlan<A, E>): Promise<void>;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The scope bar of a recurring move (calendar.md §9.6): it holds the one waiting question and takes the focus on its
|
|
131
|
+
* first answer when it opens.
|
|
132
|
+
*/
|
|
133
|
+
export declare class SdCalendarScopeBar {
|
|
134
|
+
#private;
|
|
135
|
+
/** The open question, for the template: `{ title }` or `null`. */
|
|
136
|
+
readonly asking: import("@angular/core").Signal<{
|
|
137
|
+
readonly title: string;
|
|
138
|
+
readonly answer: (scope: SdCalendarMoveScope | null) => void;
|
|
139
|
+
} | null>;
|
|
140
|
+
constructor(host: HTMLElement, injector: Injector);
|
|
141
|
+
/** Opens the bar; resolves with the answer, `null` for Cancel. An abort of `signal` (its operation) is Cancel. */
|
|
142
|
+
ask(title: string, signal?: AbortSignal): Promise<SdCalendarMoveScope | null>;
|
|
143
|
+
/** Answers and closes the bar; `null` is Cancel. Nothing happens while the bar is closed. */
|
|
144
|
+
answer(scope: SdCalendarMoveScope | null): void;
|
|
145
|
+
/** Esc on the bar is Cancel. */
|
|
146
|
+
onKeydown(domEvent: KeyboardEvent): void;
|
|
147
|
+
}
|
|
148
|
+
/** Text of the one live region of a component (SC-33). */
|
|
149
|
+
export declare class SdCalendarAnnouncer {
|
|
150
|
+
#private;
|
|
151
|
+
readonly text: import("@angular/core").Signal<string>;
|
|
152
|
+
/** Writes the live region; the same text twice in a row gets a trailing no-break space so it is read again (R1-G9). */
|
|
153
|
+
announce(message: string): void;
|
|
154
|
+
}
|
|
155
|
+
/** Whether the user put the focus somewhere else while a move waited (SC-30). */
|
|
156
|
+
export interface SdCalendarFocusWatch {
|
|
157
|
+
readonly abandoned: () => boolean;
|
|
158
|
+
readonly stop: () => void;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Puts the focus back on an item after a move that started from the keyboard or the scope bar (SC-29, SC-30). The
|
|
162
|
+
* item may first need the next range to load, so `pending()` runs again after every load.
|
|
163
|
+
*/
|
|
164
|
+
export declare class SdCalendarFocusKeeper {
|
|
165
|
+
#private;
|
|
166
|
+
private readonly host;
|
|
167
|
+
private readonly injector;
|
|
168
|
+
/** The focusable element of an item, from its id. */
|
|
169
|
+
private readonly selector;
|
|
170
|
+
/** The scope bar: a focus inside it is the component's own, the bar is about to be removed (R2 A-18). */
|
|
171
|
+
private readonly scopeSelector;
|
|
172
|
+
constructor(host: HTMLElement, injector: Injector,
|
|
173
|
+
/** The focusable element of an item, from its id. */
|
|
174
|
+
selector: (id: string) => string,
|
|
175
|
+
/** The scope bar: a focus inside it is the component's own, the bar is about to be removed (R2 A-18). */
|
|
176
|
+
scopeSelector: string);
|
|
177
|
+
/**
|
|
178
|
+
* Watches the focus while a move waits: a focus the user puts outside `origin` and the scope bar abandons the item
|
|
179
|
+
* (SC-30), even when that element loses the focus to `body` before the move ends (as sd-kanban, RX #4). A focus that
|
|
180
|
+
* falls back to `body` alone (the item re-rendered or disabled) does not.
|
|
181
|
+
*/
|
|
182
|
+
track(origin: Element | null): SdCalendarFocusWatch;
|
|
183
|
+
/** Whether the focus is on the item `id` or inside it (review RX #6). */
|
|
184
|
+
holds(id: string): boolean;
|
|
185
|
+
/** Focuses `id` unless the user moved the focus somewhere else while waiting (`origin` is where it started). */
|
|
186
|
+
restore(id: string, origin: Element | null, watch?: SdCalendarFocusWatch): void;
|
|
187
|
+
/** Focuses the waiting item once it is rendered. */
|
|
188
|
+
pending(): void;
|
|
189
|
+
}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { type CdkDragEnd, type CdkDragStart, type DragRef, type Point } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import type { SdTemporalValueTransform } from '@sdcorejs/angular/forms/models';
|
|
4
|
+
import { SdCalendarScopeBar } from './calendar-move';
|
|
5
|
+
import type { SdCalendarDateInput, SdCalendarEvent, SdCalendarHoliday, SdCalendarMoveError, SdCalendarMoveRequest, SdCalendarMoveSource, SdCalendarOption, SdCalendarRange, SdCalendarView, SdCalendarVisibleRange } from './calendar.model';
|
|
6
|
+
import { SdCalendarAgendaItemTemplateDirective, SdCalendarDayCellTemplateDirective, SdCalendarEmptyTemplateDirective, SdCalendarEventTemplateDirective, type SdCalendarAgendaItemTemplateContext, type SdCalendarDayCellTemplateContext, type SdCalendarEventTemplateContext } from './calendar.templates';
|
|
7
|
+
import { type SdCalendarPlacement, type SdCalendarSpan } from './calendar.utils';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/** @internal View model of one day column / header. */
|
|
10
|
+
interface SdCalendarDayView {
|
|
11
|
+
readonly day: string;
|
|
12
|
+
readonly dayNumber: number;
|
|
13
|
+
readonly weekdayShort: string;
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly today: boolean;
|
|
16
|
+
readonly off: boolean;
|
|
17
|
+
readonly outOfRange: boolean;
|
|
18
|
+
readonly holiday: SdCalendarHoliday | null;
|
|
19
|
+
readonly offSegments: readonly SdCalendarSpan[];
|
|
20
|
+
}
|
|
21
|
+
/** @internal Shared view model of a block, a bar, a month line and an agenda row. */
|
|
22
|
+
interface SdCalendarItemView<T> {
|
|
23
|
+
readonly key: string;
|
|
24
|
+
readonly event: SdCalendarEvent<T>;
|
|
25
|
+
readonly placement: SdCalendarPlacement;
|
|
26
|
+
readonly range: SdCalendarRange;
|
|
27
|
+
readonly label: string;
|
|
28
|
+
readonly autoId: string | null;
|
|
29
|
+
readonly color: string;
|
|
30
|
+
readonly customColor: string | null;
|
|
31
|
+
readonly recurring: boolean;
|
|
32
|
+
readonly past: boolean;
|
|
33
|
+
readonly pending: boolean;
|
|
34
|
+
readonly saving: boolean;
|
|
35
|
+
readonly movable: boolean;
|
|
36
|
+
readonly timeText: string;
|
|
37
|
+
}
|
|
38
|
+
/** @internal A timed block of the grid. */
|
|
39
|
+
interface SdCalendarBlockView<T> extends SdCalendarItemView<T> {
|
|
40
|
+
readonly top: string;
|
|
41
|
+
readonly height: string;
|
|
42
|
+
readonly column: number;
|
|
43
|
+
readonly columns: number;
|
|
44
|
+
/** `lg` ≥ 62px, `md` 34–61px, `sm` < 34px, `xs` < 20px (§8.2). */
|
|
45
|
+
readonly size: 'lg' | 'md' | 'sm' | 'xs';
|
|
46
|
+
readonly context: SdCalendarEventTemplateContext<T>;
|
|
47
|
+
}
|
|
48
|
+
/** @internal One line of a month cell. */
|
|
49
|
+
interface SdCalendarMonthLine<T> {
|
|
50
|
+
readonly key: string;
|
|
51
|
+
readonly item: SdCalendarItemView<T> | null;
|
|
52
|
+
readonly bar: boolean;
|
|
53
|
+
readonly showTitle: boolean;
|
|
54
|
+
readonly joinStart: boolean;
|
|
55
|
+
readonly joinEnd: boolean;
|
|
56
|
+
readonly text: string;
|
|
57
|
+
}
|
|
58
|
+
/** @internal A month cell. */
|
|
59
|
+
interface SdCalendarMonthCell<T> {
|
|
60
|
+
readonly day: SdCalendarDayView;
|
|
61
|
+
readonly inMonth: boolean;
|
|
62
|
+
readonly label: string;
|
|
63
|
+
readonly lines: readonly SdCalendarMonthLine<T>[];
|
|
64
|
+
readonly more: number;
|
|
65
|
+
/** Compact month: up to three dots, one per colour (§12). */
|
|
66
|
+
readonly dots: readonly {
|
|
67
|
+
readonly color: string;
|
|
68
|
+
readonly customColor: string | null;
|
|
69
|
+
}[];
|
|
70
|
+
readonly context: SdCalendarDayCellTemplateContext<T>;
|
|
71
|
+
}
|
|
72
|
+
/** @internal A day group of the agenda. */
|
|
73
|
+
interface SdCalendarAgendaDay<T> {
|
|
74
|
+
readonly day: SdCalendarDayView;
|
|
75
|
+
readonly heading: string;
|
|
76
|
+
readonly rows: readonly (SdCalendarItemView<T> & {
|
|
77
|
+
readonly context: SdCalendarAgendaItemTemplateContext<T>;
|
|
78
|
+
})[];
|
|
79
|
+
}
|
|
80
|
+
/** @internal The dashed block of a create (§9.2). */
|
|
81
|
+
interface SdCalendarGhost {
|
|
82
|
+
readonly day: string;
|
|
83
|
+
readonly start: number;
|
|
84
|
+
readonly end: number;
|
|
85
|
+
readonly pending: boolean;
|
|
86
|
+
readonly blocked: boolean;
|
|
87
|
+
}
|
|
88
|
+
/** @internal Where a dragged block would land (§9.3). */
|
|
89
|
+
interface SdCalendarDragProposal {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
readonly day: string;
|
|
92
|
+
readonly start: number;
|
|
93
|
+
readonly end: number;
|
|
94
|
+
readonly title: string;
|
|
95
|
+
readonly outside: boolean;
|
|
96
|
+
readonly color: string;
|
|
97
|
+
readonly customColor: string | null;
|
|
98
|
+
}
|
|
99
|
+
export declare class SdCalendar<T = unknown> {
|
|
100
|
+
#private;
|
|
101
|
+
protected readonly baseId: string;
|
|
102
|
+
/** Data source and capabilities. A new object is the signal to load again. */
|
|
103
|
+
readonly option: import("@angular/core").InputSignal<SdCalendarOption<T>>;
|
|
104
|
+
/** Layout on screen; one of `views`, otherwise the first of `views`. */
|
|
105
|
+
readonly view: import("@angular/core").ModelSignal<SdCalendarView>;
|
|
106
|
+
/** Anchor day; the calendar writes back `'yyyy/MM/dd'` (no `transform`). Defaults to today in the zone. */
|
|
107
|
+
readonly date: import("@angular/core").ModelSignal<SdCalendarDateInput | null | undefined>;
|
|
108
|
+
/** Id of the selected event; back to `null` when the event is no longer loaded. */
|
|
109
|
+
readonly selectedId: import("@angular/core").ModelSignal<string | null>;
|
|
110
|
+
/** Views offered by the switcher, in this order. */
|
|
111
|
+
readonly views: import("@angular/core").InputSignal<readonly SdCalendarView[]>;
|
|
112
|
+
/** Minutes of one slot, a divisor of 60. Configuration, then 30. */
|
|
113
|
+
readonly step: import("@angular/core").InputSignal<number | undefined>;
|
|
114
|
+
/** 0–6, 0 is Sunday. Configuration, then 1. */
|
|
115
|
+
readonly firstDayOfWeek: import("@angular/core").InputSignal<number | undefined>;
|
|
116
|
+
/** Hides Saturday and Sunday in the week and month views. */
|
|
117
|
+
readonly hideWeekends: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
118
|
+
/** `null` turns the off-hours shading and days off by weekday off. Configuration, then Monday–Friday. */
|
|
119
|
+
readonly workingHours: import("@angular/core").InputSignal<Partial<Record<0 | 1 | 2 | 3 | 4 | 5 | 6, readonly import("@sdcorejs/angular/forms/time-range").SdTimeRangeValue[]>> | null | undefined>;
|
|
120
|
+
/** Configuration, then none. */
|
|
121
|
+
readonly holidays: import("@angular/core").InputSignal<readonly SdCalendarHoliday[] | undefined>;
|
|
122
|
+
/** First day that can be shown and edited, compared as a calendar day in the zone. */
|
|
123
|
+
readonly minDate: import("@angular/core").InputSignal<SdCalendarDateInput | null | undefined>;
|
|
124
|
+
/** Last day that can be shown and edited, compared as a calendar day in the zone. */
|
|
125
|
+
readonly maxDate: import("@angular/core").InputSignal<SdCalendarDateInput | null | undefined>;
|
|
126
|
+
/** `'HH:mm'` the week and day views open at. Configuration, then the earliest working hour, then 08:00. */
|
|
127
|
+
readonly scrollTime: import("@angular/core").InputSignal<string | undefined>;
|
|
128
|
+
/** Days of the agenda view, 1–62. */
|
|
129
|
+
readonly agendaDays: import("@angular/core").InputSignal<number>;
|
|
130
|
+
/** Fades events that have ended. */
|
|
131
|
+
readonly dimPast: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
132
|
+
/** Serialization of the values the calendar emits; see "Date values" in `sd-calendar.md`. */
|
|
133
|
+
readonly transform: import("@angular/core").InputSignal<SdTemporalValueTransform | undefined>;
|
|
134
|
+
/** No create, move or selection; events leave the tab order. Navigation still works. */
|
|
135
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
136
|
+
/** No create or move. Selection and navigation still work. */
|
|
137
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
138
|
+
/** Accessible name of the region; defaults to the translated "Calendar". */
|
|
139
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null | undefined>;
|
|
140
|
+
/** E2E scope: `data-autoid="components-calendar-{autoId}"` and derived child ids. */
|
|
141
|
+
readonly autoId: import("@angular/core").InputSignal<string | null | undefined>;
|
|
142
|
+
/** An event was clicked, tapped or activated with Enter/Space. */
|
|
143
|
+
readonly sdSelect: import("@angular/core").OutputEmitterRef<SdCalendarEvent<T>>;
|
|
144
|
+
/** Once on init, then whenever `from`, `to` or the view on screen changes. */
|
|
145
|
+
readonly sdRangeChange: import("@angular/core").OutputEmitterRef<SdCalendarVisibleRange>;
|
|
146
|
+
/** `onMove` accepted and the data changed. */
|
|
147
|
+
readonly sdMove: import("@angular/core").OutputEmitterRef<SdCalendarMoveRequest<T>>;
|
|
148
|
+
/** `onMove` rejected or failed. */
|
|
149
|
+
readonly sdMoveError: import("@angular/core").OutputEmitterRef<SdCalendarMoveError<T>>;
|
|
150
|
+
/** `onLoad` threw or rejected (never for an aborted load). */
|
|
151
|
+
readonly sdLoadError: import("@angular/core").OutputEmitterRef<unknown>;
|
|
152
|
+
protected readonly eventTemplate: import("@angular/core").Signal<SdCalendarEventTemplateDirective<T> | undefined>;
|
|
153
|
+
protected readonly dayCellTemplate: import("@angular/core").Signal<SdCalendarDayCellTemplateDirective<T> | undefined>;
|
|
154
|
+
protected readonly agendaItemTemplate: import("@angular/core").Signal<SdCalendarAgendaItemTemplateDirective<T> | undefined>;
|
|
155
|
+
protected readonly emptyTemplate: import("@angular/core").Signal<SdCalendarEmptyTemplateDirective | undefined>;
|
|
156
|
+
protected readonly scroller: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
157
|
+
protected readonly gridElement: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
158
|
+
/** Scope bar of a recurring event (§9.6); it holds the one waiting operation until answered. */
|
|
159
|
+
protected readonly scopeBar: SdCalendarScopeBar;
|
|
160
|
+
/** Host narrower than 600px (§12): measured on the host, not the viewport. */
|
|
161
|
+
protected readonly compact: import("@angular/core").Signal<boolean>;
|
|
162
|
+
/** Host at least 720px wide: the agenda shows the place column. */
|
|
163
|
+
protected readonly wide: import("@angular/core").Signal<boolean>;
|
|
164
|
+
protected readonly phase: import("@angular/core").Signal<import("@sdcorejs/angular/components/calendar").ɵSdCalendarLoadPhase>;
|
|
165
|
+
protected readonly announcement: import("@angular/core").Signal<string>;
|
|
166
|
+
protected readonly failure: import("@angular/core").Signal<{
|
|
167
|
+
readonly id: string | null;
|
|
168
|
+
readonly message: string;
|
|
169
|
+
} | null>;
|
|
170
|
+
protected readonly ghost: import("@angular/core").Signal<SdCalendarGhost | null>;
|
|
171
|
+
protected readonly dragProposal: import("@angular/core").Signal<SdCalendarDragProposal | null>;
|
|
172
|
+
protected readonly cursor: import("@angular/core").Signal<{
|
|
173
|
+
readonly day: string;
|
|
174
|
+
readonly minutes: number;
|
|
175
|
+
} | null>;
|
|
176
|
+
protected readonly scopeMessageId: string;
|
|
177
|
+
protected readonly busy: import("@angular/core").Signal<boolean>;
|
|
178
|
+
protected readonly skeleton: import("@angular/core").Signal<boolean>;
|
|
179
|
+
protected readonly rootAutoId: import("@angular/core").Signal<string | null>;
|
|
180
|
+
protected readonly regionLabel: import("@angular/core").Signal<string>;
|
|
181
|
+
protected readonly stepValue: import("@angular/core").Signal<number>;
|
|
182
|
+
protected readonly today: import("@angular/core").Signal<string>;
|
|
183
|
+
/** Views of the switcher; the week button is hidden while compact (§12). */
|
|
184
|
+
protected readonly viewOptions: import("@angular/core").Signal<readonly SdCalendarView[]>;
|
|
185
|
+
protected readonly activeView: import("@angular/core").Signal<SdCalendarView>;
|
|
186
|
+
/** What is drawn: a compact week is drawn as a day. */
|
|
187
|
+
protected readonly displayView: import("@angular/core").Signal<SdCalendarView>;
|
|
188
|
+
protected readonly timeView: import("@angular/core").Signal<boolean>;
|
|
189
|
+
protected readonly visible: import("@angular/core").Signal<SdCalendarVisibleRange>;
|
|
190
|
+
protected readonly days: import("@angular/core").Signal<string[]>;
|
|
191
|
+
/** Duplicate or empty id, or an empty title: the whole data set is refused (§5). */
|
|
192
|
+
protected readonly invalid: import("@angular/core").Signal<boolean>;
|
|
193
|
+
/** No create and no move (§4.1, §13): disabled, readonly, loading, load error or invalid data. */
|
|
194
|
+
protected readonly locked: import("@angular/core").Signal<boolean>;
|
|
195
|
+
/** Create is on: `option.create` and not locked. */
|
|
196
|
+
protected readonly canCreate: import("@angular/core").Signal<boolean>;
|
|
197
|
+
protected readonly title: import("@angular/core").Signal<string>;
|
|
198
|
+
protected readonly prevLabel: import("@angular/core").Signal<string>;
|
|
199
|
+
protected readonly nextLabel: import("@angular/core").Signal<string>;
|
|
200
|
+
protected readonly prevDisabled: import("@angular/core").Signal<boolean>;
|
|
201
|
+
protected readonly nextDisabled: import("@angular/core").Signal<boolean>;
|
|
202
|
+
protected readonly dayViews: import("@angular/core").Signal<SdCalendarDayView[]>;
|
|
203
|
+
protected readonly blocksByDay: import("@angular/core").Signal<Map<string, SdCalendarBlockView<T>[]>>;
|
|
204
|
+
protected readonly allDay: import("@angular/core").Signal<{
|
|
205
|
+
bars: {
|
|
206
|
+
row: number;
|
|
207
|
+
from: number;
|
|
208
|
+
to: number;
|
|
209
|
+
clippedStart: boolean;
|
|
210
|
+
clippedEnd: boolean;
|
|
211
|
+
text: string;
|
|
212
|
+
spanText: string;
|
|
213
|
+
key: string;
|
|
214
|
+
event: SdCalendarEvent<T>;
|
|
215
|
+
placement: SdCalendarPlacement;
|
|
216
|
+
range: SdCalendarRange;
|
|
217
|
+
label: string;
|
|
218
|
+
autoId: string | null;
|
|
219
|
+
color: string;
|
|
220
|
+
customColor: string | null;
|
|
221
|
+
recurring: boolean;
|
|
222
|
+
past: boolean;
|
|
223
|
+
pending: boolean;
|
|
224
|
+
saving: boolean;
|
|
225
|
+
movable: boolean;
|
|
226
|
+
timeText: string;
|
|
227
|
+
}[];
|
|
228
|
+
rows: number;
|
|
229
|
+
more: readonly number[];
|
|
230
|
+
}>;
|
|
231
|
+
protected readonly monthWeeks: import("@angular/core").Signal<(readonly SdCalendarMonthCell<T>[])[]>;
|
|
232
|
+
protected readonly monthHeaders: import("@angular/core").Signal<string[]>;
|
|
233
|
+
/** The month cell in the tab order (roving tabindex, §9.7). */
|
|
234
|
+
protected readonly monthFocusDay: import("@angular/core").Signal<string>;
|
|
235
|
+
protected readonly agenda: import("@angular/core").Signal<readonly SdCalendarAgendaDay<T>[]>;
|
|
236
|
+
protected readonly agendaCount: import("@angular/core").Signal<number>;
|
|
237
|
+
protected readonly skeletonBlocks: readonly (readonly [number, number, number])[];
|
|
238
|
+
protected readonly hours: number[];
|
|
239
|
+
protected readonly zoneLabel: import("@angular/core").Signal<string>;
|
|
240
|
+
protected readonly nowTop: import("@angular/core").Signal<string>;
|
|
241
|
+
protected readonly cursorId: string;
|
|
242
|
+
protected readonly cursorLabel: import("@angular/core").Signal<string>;
|
|
243
|
+
protected readonly gridInstructionsId: string;
|
|
244
|
+
protected readonly eventInstructionsId: string;
|
|
245
|
+
protected readonly dragDelay: {
|
|
246
|
+
touch: number;
|
|
247
|
+
mouse: number;
|
|
248
|
+
};
|
|
249
|
+
constructor();
|
|
250
|
+
/** The 7-day strip of a compact week (§12). */
|
|
251
|
+
protected readonly strip: import("@angular/core").Signal<{
|
|
252
|
+
day: string;
|
|
253
|
+
weekdayShort: string;
|
|
254
|
+
dayNumber: number;
|
|
255
|
+
label: string;
|
|
256
|
+
today: boolean;
|
|
257
|
+
current: boolean;
|
|
258
|
+
events: boolean;
|
|
259
|
+
}[]>;
|
|
260
|
+
/** Hours printed (§16): from the earliest working hour to the latest one of the days on screen. */
|
|
261
|
+
protected readonly printHours: import("@angular/core").Signal<{
|
|
262
|
+
start: number;
|
|
263
|
+
hours: number;
|
|
264
|
+
}>;
|
|
265
|
+
/** Aborts a running load and a waiting move, then calls `onLoad` again for the range on screen. */
|
|
266
|
+
reload(): void;
|
|
267
|
+
/**
|
|
268
|
+
* Moves an event through the pipeline of `sd-calendar.md` ("Moving"): `onMove` decides. Resolves `true` only when
|
|
269
|
+
* accepted; `false` without `option.move`, while locked or another operation waits, for an unknown id, a refused
|
|
270
|
+
* `movable`, the same position, a position outside `minDate`/`maxDate`, a rejection, `'cancel'` or an error.
|
|
271
|
+
* With `source: 'api'` (the default) an occurrence of a series is moved with `scope: 'this'` and focus stays put.
|
|
272
|
+
*/
|
|
273
|
+
move(eventId: string, to: {
|
|
274
|
+
start: SdCalendarDateInput;
|
|
275
|
+
end?: SdCalendarDateInput | null;
|
|
276
|
+
allDay?: boolean;
|
|
277
|
+
}, source?: SdCalendarMoveSource): Promise<boolean>;
|
|
278
|
+
protected setView(view: SdCalendarView): void;
|
|
279
|
+
protected shift(direction: 1 | -1): void;
|
|
280
|
+
protected goToday(): void;
|
|
281
|
+
protected openDay(day: string): void;
|
|
282
|
+
protected dismissFailure(): void;
|
|
283
|
+
protected selectItem(event: SdCalendarEvent<T>, domEvent?: Event): void;
|
|
284
|
+
/** Press on an item: a new gesture, and the pickup point of a possible drag. */
|
|
285
|
+
protected onPressItem(domEvent: MouseEvent | TouchEvent): void;
|
|
286
|
+
protected onItemKeydown(domEvent: KeyboardEvent, item: SdCalendarItemView<T>): void;
|
|
287
|
+
protected onGridPointerDown(domEvent: PointerEvent): void;
|
|
288
|
+
protected onGridPointerMove(domEvent: PointerEvent): void;
|
|
289
|
+
protected onGridPointerUp(domEvent?: PointerEvent): void;
|
|
290
|
+
protected pickDay(day: string): void;
|
|
291
|
+
protected onStripPointerDown(domEvent: PointerEvent): void;
|
|
292
|
+
/** §12: a horizontal swipe of the strip moves one week. */
|
|
293
|
+
protected onStripPointerUp(domEvent: PointerEvent): void;
|
|
294
|
+
protected onGridPointerCancel(): void;
|
|
295
|
+
protected onGridFocus(): void;
|
|
296
|
+
protected onGridKeydown(domEvent: KeyboardEvent): void;
|
|
297
|
+
protected onCellKeydown(domEvent: KeyboardEvent, day: string): void;
|
|
298
|
+
/** Keeps the dragged element in place (the proposal is drawn instead) and records the real pointer. */
|
|
299
|
+
protected readonly constrainDrag: (point: Point, _ref: DragRef, rect: DOMRect) => Point;
|
|
300
|
+
protected onDragStarted(start: CdkDragStart, item: SdCalendarItemView<T>): void;
|
|
301
|
+
protected onDragMoved(): void;
|
|
302
|
+
protected onDragEnded(end: CdkDragEnd): void;
|
|
303
|
+
protected onResizeDown(domEvent: PointerEvent, item: SdCalendarItemView<T>): void;
|
|
304
|
+
protected onResizeMove(domEvent: PointerEvent): void;
|
|
305
|
+
protected onResizeUp(domEvent: PointerEvent): void;
|
|
306
|
+
/** The browser took the pointer away (a scroll or a system gesture): the live resize is dropped. */
|
|
307
|
+
protected onResizeCancel(): void;
|
|
308
|
+
/** Height of a block, following a live resize. */
|
|
309
|
+
protected blockHeight(block: SdCalendarBlockView<T>): string;
|
|
310
|
+
/** Time line of a block, following a live resize. */
|
|
311
|
+
protected blockTime(block: SdCalendarBlockView<T>): string;
|
|
312
|
+
protected isDragging(id: string): boolean;
|
|
313
|
+
protected isFailed(id: string): boolean;
|
|
314
|
+
protected spanTop(minutes: number): string;
|
|
315
|
+
protected spanHeight(minutes: number): string;
|
|
316
|
+
protected clockText(minutes: number): string;
|
|
317
|
+
protected viewLabel(view: SdCalendarView): string;
|
|
318
|
+
protected childAutoId(kind: string): string | null;
|
|
319
|
+
/** Name of the "+N" button of the all-day row: the visible "+2" leads it in every language (WCAG 2.5.3). */
|
|
320
|
+
protected allDayMoreLabel(count: number, day: SdCalendarDayView): string;
|
|
321
|
+
protected blocksOf(day: string): readonly SdCalendarBlockView<T>[];
|
|
322
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdCalendar<any>, never>;
|
|
323
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdCalendar<any>, "sd-calendar", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "hideWeekends": { "alias": "hideWeekends"; "required": false; "isSignal": true; }; "workingHours": { "alias": "workingHours"; "required": false; "isSignal": true; }; "holidays": { "alias": "holidays"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "scrollTime": { "alias": "scrollTime"; "required": false; "isSignal": true; }; "agendaDays": { "alias": "agendaDays"; "required": false; "isSignal": true; }; "dimPast": { "alias": "dimPast"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "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; }; }, { "view": "viewChange"; "date": "dateChange"; "selectedId": "selectedIdChange"; "sdSelect": "sdSelect"; "sdRangeChange": "sdRangeChange"; "sdMove": "sdMove"; "sdMoveError": "sdMoveError"; "sdLoadError": "sdLoadError"; }, ["eventTemplate", "dayCellTemplate", "agendaItemTemplate", "emptyTemplate"], never, true, never>;
|
|
324
|
+
}
|
|
325
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { SdCalendarHoliday, SdCalendarWorkingHours } from './calendar.model';
|
|
3
|
+
/** App-wide defaults of `<sd-calendar>`. An input of the calendar wins over this configuration. */
|
|
4
|
+
export interface ISdCalendarConfiguration {
|
|
5
|
+
/** 0–6, 0 is Sunday. Defaults to `1` (Monday). */
|
|
6
|
+
firstDayOfWeek?: number;
|
|
7
|
+
/** Minutes of one slot, a divisor of 60 (5, 10, 15, 20, 30, 60). Defaults to `30`. */
|
|
8
|
+
step?: number;
|
|
9
|
+
/** `null` turns the off-hours shading off. Defaults to Monday–Friday 08:00–12:00 and 13:00–17:30. */
|
|
10
|
+
workingHours?: SdCalendarWorkingHours | null;
|
|
11
|
+
/** Defaults to none. */
|
|
12
|
+
holidays?: readonly SdCalendarHoliday[];
|
|
13
|
+
/** `'HH:mm'` scrolled to when the week or day view opens. Defaults to the earliest working hour on screen. */
|
|
14
|
+
scrollTime?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const SD_CALENDAR_CONFIGURATION: InjectionToken<ISdCalendarConfiguration>;
|
|
17
|
+
/** @internal Built-in defaults, shared with `sd-scheduler`. Not covered by SemVer. */
|
|
18
|
+
export declare const ɵSD_CALENDAR_DEFAULTS: {
|
|
19
|
+
readonly firstDayOfWeek: 1;
|
|
20
|
+
readonly step: 30;
|
|
21
|
+
readonly agendaDays: 14;
|
|
22
|
+
readonly scrollTime: "08:00";
|
|
23
|
+
readonly workingHours: SdCalendarWorkingHours;
|
|
24
|
+
};
|