@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
|
@@ -20,8 +20,22 @@ export declare class SdModal implements OnDestroy {
|
|
|
20
20
|
modalClass: import("@angular/core").InputSignalWithTransform<string | Record<string, boolean> | string[], string | Record<string, boolean> | string[] | null | undefined>;
|
|
21
21
|
lazyLoadContent: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
22
|
hideClose: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
23
|
+
/**
|
|
24
|
+
* Allow closing by a backdrop click or the Esc key. Not passed (`undefined`/`null`): `disableBackdropClose` decides.
|
|
25
|
+
* When passed, it decides. A bare attribute means `true`. With `beforeClose`, an allowed close still goes through the guard.
|
|
26
|
+
*/
|
|
27
|
+
enableBackdropClose: import("@angular/core").InputSignalWithTransform<boolean | undefined, boolean | "" | null | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Block closing by a backdrop click and the Esc key. Default `true` to keep backward compatibility.
|
|
30
|
+
* @deprecated Use `enableBackdropClose` (the opposite meaning). Only applies when `enableBackdropClose` is not passed.
|
|
31
|
+
*/
|
|
23
32
|
disableBackdropClose: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
24
33
|
beforeClose: import("@angular/core").InputSignal<SdModalBeforeClose | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Close when the browser history changes (Back, a route change). `false` lets the content handle Back itself, e.g.
|
|
36
|
+
* a sheet with pages. Same name as `MatDialogConfig.closeOnNavigation`.
|
|
37
|
+
*/
|
|
38
|
+
closeOnNavigation: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
25
39
|
sdClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
26
40
|
sdCloseError: import("@angular/core").OutputEmitterRef<unknown>;
|
|
27
41
|
isOpened: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -33,5 +47,5 @@ export declare class SdModal implements OnDestroy {
|
|
|
33
47
|
requestClose: () => Promise<boolean>;
|
|
34
48
|
forceClose: () => void;
|
|
35
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdModal, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "modalClass": { "alias": "modalClass"; "required": false; "isSignal": true; }; "lazyLoadContent": { "alias": "lazyLoadContent"; "required": false; "isSignal": true; }; "hideClose": { "alias": "hideClose"; "required": false; "isSignal": true; }; "disableBackdropClose": { "alias": "disableBackdropClose"; "required": false; "isSignal": true; }; "beforeClose": { "alias": "beforeClose"; "required": false; "isSignal": true; }; }, { "sdClosed": "sdClosed"; "sdCloseError": "sdCloseError"; }, never, ["[sdHeaderLeft]", "[sdHeaderRight]", "*", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdModal, "sd-modal", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "modalClass": { "alias": "modalClass"; "required": false; "isSignal": true; }; "lazyLoadContent": { "alias": "lazyLoadContent"; "required": false; "isSignal": true; }; "hideClose": { "alias": "hideClose"; "required": false; "isSignal": true; }; "enableBackdropClose": { "alias": "enableBackdropClose"; "required": false; "isSignal": true; }; "disableBackdropClose": { "alias": "disableBackdropClose"; "required": false; "isSignal": true; }; "beforeClose": { "alias": "beforeClose"; "required": false; "isSignal": true; }; "closeOnNavigation": { "alias": "closeOnNavigation"; "required": false; "isSignal": true; }; }, { "sdClosed": "sdClosed"; "sdCloseError": "sdCloseError"; }, never, ["[sdHeaderLeft]", "[sdHeaderRight]", "*", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
37
51
|
}
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Search trigger. Owns no business logic — just routes user intent back via
|
|
7
7
|
* outputs (`(logic)` model, `(clear)`, `(search)`, `(applyFilter)`).
|
|
8
8
|
*
|
|
9
|
-
* The "save current query" action lives INSIDE the saved-filters
|
|
9
|
+
* The "save current query" action lives INSIDE the saved-filters panel
|
|
10
10
|
* footer (one zone for both apply + save). The dropdown trigger sits
|
|
11
11
|
* immediately before Search so the user sees one filter-cluster on the right.
|
|
12
12
|
*/
|
|
@@ -18,6 +18,10 @@ export declare class SdQueryActionsBar {
|
|
|
18
18
|
readonly showSavedFilters: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
19
|
readonly savedFiltersKey: import("@angular/core").InputSignal<string | undefined>;
|
|
20
20
|
readonly query: import("@angular/core").InputSignal<SdQuery<unknown>>;
|
|
21
|
+
/** `false` disables "Save current filter" (nothing to save). */
|
|
22
|
+
readonly canSaveFilter: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
/** Prefix of `data-autoid` for the saved-filters controls. */
|
|
24
|
+
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
21
25
|
readonly applyFilter: import("@angular/core").OutputEmitterRef<SdSavedFilter<unknown>>;
|
|
22
26
|
readonly showClearAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
27
|
/** Number in the clear-all label; falls back to `filtersCount`. `0` drops the number. */
|
|
@@ -33,5 +37,5 @@ export declare class SdQueryActionsBar {
|
|
|
33
37
|
readonly searchLabel: import("@angular/core").Signal<string>;
|
|
34
38
|
setLogic(value: SdQueryLogic): void;
|
|
35
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryActionsBar, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryActionsBar, "sd-query-actions-bar", never, { "showLogicToggle": { "alias": "showLogicToggle"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "filtersCount": { "alias": "filtersCount"; "required": false; "isSignal": true; }; "showSavedFilters": { "alias": "showSavedFilters"; "required": false; "isSignal": true; }; "savedFiltersKey": { "alias": "savedFiltersKey"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "showClearAll": { "alias": "showClearAll"; "required": false; "isSignal": true; }; "clearCount": { "alias": "clearCount"; "required": false; "isSignal": true; }; "clearDisabled": { "alias": "clearDisabled"; "required": false; "isSignal": true; }; "canSearch": { "alias": "canSearch"; "required": false; "isSignal": true; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; "isSignal": true; }; }, { "logic": "logicChange"; "applyFilter": "applyFilter"; "clear": "clear"; "search": "search"; }, never, never, true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryActionsBar, "sd-query-actions-bar", never, { "showLogicToggle": { "alias": "showLogicToggle"; "required": false; "isSignal": true; }; "logic": { "alias": "logic"; "required": false; "isSignal": true; }; "filtersCount": { "alias": "filtersCount"; "required": false; "isSignal": true; }; "showSavedFilters": { "alias": "showSavedFilters"; "required": false; "isSignal": true; }; "savedFiltersKey": { "alias": "savedFiltersKey"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "canSaveFilter": { "alias": "canSaveFilter"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "showClearAll": { "alias": "showClearAll"; "required": false; "isSignal": true; }; "clearCount": { "alias": "clearCount"; "required": false; "isSignal": true; }; "clearDisabled": { "alias": "clearDisabled"; "required": false; "isSignal": true; }; "canSearch": { "alias": "canSearch"; "required": false; "isSignal": true; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; "isSignal": true; }; }, { "logic": "logicChange"; "applyFilter": "applyFilter"; "clear": "clear"; "search": "search"; }, never, never, true, never>;
|
|
37
41
|
}
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { MatMenu } from '@angular/material/menu';
|
|
2
1
|
import { Filter, Operator } from '@sdcorejs/utils/models';
|
|
3
2
|
import { SdQueryField, sdQueryFieldIcon } from '../../query-bar.model';
|
|
3
|
+
import { ɵSdQueryPanelCloseReason, ɵSdQueryPanelDirective } from '../panel/query-panel';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* Popover-mode chip editor — the
|
|
7
|
-
*
|
|
6
|
+
* Popover-mode chip editor — the dialog panel that opens when a popover-mode chip is clicked (handoff section 4).
|
|
7
|
+
* Owns ALL operator+value staging signals and async option loading.
|
|
8
8
|
*
|
|
9
9
|
* why: tách khỏi `<sd-query-bar>` để parent chỉ giữ `editingIndex` (chip nào đang
|
|
10
10
|
* mở) + nhận `(commit)` khi popover đóng. Mỗi lần parent gọi `seed(filter, field)`
|
|
11
11
|
* trước khi mở chip popover, child reset staging signals + kích option loading.
|
|
12
12
|
*
|
|
13
13
|
* Public surface (template ref `#cp`):
|
|
14
|
-
* - `cp.
|
|
15
|
-
* - `cp.seed(filter, field)` — parent reseeds staging before
|
|
16
|
-
* - `(commit)` output — emitted
|
|
17
|
-
* - `(swapField)` output — emitted when the nested field switcher picks a new field
|
|
14
|
+
* - `cp.panel()` — the panel to feed `[panel]` of `<sd-query-popover-chip>`
|
|
15
|
+
* - `cp.seed(filter, field, index)` — parent reseeds staging before the panel renders
|
|
16
|
+
* - `(commit)` output — emitted when the panel closes (Esc, click outside, Tab out, close) with the staged Filter
|
|
18
17
|
*/
|
|
19
18
|
export declare class SdQueryChipPopover {
|
|
20
19
|
#private;
|
|
21
|
-
readonly swapFieldTooltip: import("@angular/core").Signal<string>;
|
|
22
20
|
readonly fromPlaceholder: import("@angular/core").Signal<string>;
|
|
23
21
|
readonly toPlaceholder: import("@angular/core").Signal<string>;
|
|
24
22
|
readonly booleanTrueLabel: import("@angular/core").Signal<string>;
|
|
@@ -26,6 +24,7 @@ export declare class SdQueryChipPopover {
|
|
|
26
24
|
readonly selectValuePlaceholder: import("@angular/core").Signal<string>;
|
|
27
25
|
readonly enterValuePlaceholder: import("@angular/core").Signal<string>;
|
|
28
26
|
readonly loadingValuesLabel: import("@angular/core").Signal<string>;
|
|
27
|
+
readonly minOneLabel: import("@angular/core").Signal<string>;
|
|
29
28
|
/** Resolved field of the currently editing chip — parent passes from `fieldByKey()`. */
|
|
30
29
|
readonly field: import("@angular/core").InputSignal<SdQueryField | undefined>;
|
|
31
30
|
/** The chip's current Filter — used by `seed()` for initial staging values. */
|
|
@@ -33,13 +32,9 @@ export declare class SdQueryChipPopover {
|
|
|
33
32
|
/** Optional chip index — embedded in the composed autoIds. */
|
|
34
33
|
readonly chipIndex: import("@angular/core").InputSignal<number | null>;
|
|
35
34
|
/** Prefix for `data-autoId` on inner controls. */
|
|
36
|
-
readonly autoIdBase: import("@angular/core").InputSignal<string>;
|
|
37
|
-
/**
|
|
38
|
-
readonly switchPickerMenu: import("@angular/core").InputSignal<MatMenu | undefined>;
|
|
39
|
-
/** Emitted when mat-menu closes — parent splices `next` into filters[idx]. */
|
|
35
|
+
readonly autoIdBase: import("@angular/core").InputSignal<string | undefined>;
|
|
36
|
+
/** Emitted when the panel closes — parent splices `next` into filters[idx]. */
|
|
40
37
|
readonly commit: import("@angular/core").OutputEmitterRef<Filter>;
|
|
41
|
-
/** Emitted when nested field-switcher picks a new field — parent calls changeFilterField. */
|
|
42
|
-
readonly swapField: import("@angular/core").OutputEmitterRef<SdQueryField>;
|
|
43
38
|
/** Staged operator. */
|
|
44
39
|
readonly editingOperator: import("@angular/core").WritableSignal<Operator>;
|
|
45
40
|
/** Staged value (shape depends on field type + operator). */
|
|
@@ -48,6 +43,13 @@ export declare class SdQueryChipPopover {
|
|
|
48
43
|
readonly editingOptions: import("@angular/core").WritableSignal<any[]>;
|
|
49
44
|
/** Loading flag for async option fetch. */
|
|
50
45
|
readonly editingOptionsLoading: import("@angular/core").WritableSignal<boolean>;
|
|
46
|
+
/** Field being edited: the one seeded last, else the `[field]` input. */
|
|
47
|
+
readonly currentField: import("@angular/core").Signal<SdQueryField | undefined>;
|
|
48
|
+
/** The field is required: no empty selection, no clear button (handoff B3). */
|
|
49
|
+
readonly required: import("@angular/core").Signal<boolean>;
|
|
50
|
+
/** "Choose at least one value." after a required multi-value chip was refused an empty selection. */
|
|
51
|
+
readonly minOneHint: import("@angular/core").WritableSignal<boolean>;
|
|
52
|
+
readonly hintId: string;
|
|
51
53
|
readonly allowedOperators: import("@angular/core").Signal<Operator[]>;
|
|
52
54
|
readonly showOperatorSelector: import("@angular/core").Signal<boolean>;
|
|
53
55
|
/** Whether the staged operator is multi-select (IN/NOT_IN). */
|
|
@@ -57,12 +59,14 @@ export declare class SdQueryChipPopover {
|
|
|
57
59
|
/** Compose an autoId for an inner control (`<base>-chip<idx>-<role>`). */
|
|
58
60
|
chipAutoId(role: string): string;
|
|
59
61
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
60
|
-
readonly
|
|
61
|
-
/**
|
|
62
|
-
|
|
62
|
+
readonly panel: import("@angular/core").Signal<ɵSdQueryPanelDirective>;
|
|
63
|
+
/** Id of the field label in the header — the dialog's accessible name. */
|
|
64
|
+
readonly labelId: string;
|
|
65
|
+
/** Reseed staging from a new filter/field pair — call before the panel renders (`panelOpened`). */
|
|
66
|
+
seed(filter: Filter | undefined, field: SdQueryField | undefined, index?: number | null): void;
|
|
63
67
|
/** Called on operator change in the popover header — reshapes value when family changes. */
|
|
64
68
|
onEditingOperatorChange(next: Operator): void;
|
|
65
|
-
/**
|
|
69
|
+
/** Value control change. A required multi-value chip keeps its values when the change would empty it (B3). */
|
|
66
70
|
onEditingValueInput(value: unknown): void;
|
|
67
71
|
/** BETWEEN range — mutate only `.from`. */
|
|
68
72
|
onEditingRangeFrom(value: string | number | null): void;
|
|
@@ -72,10 +76,10 @@ export declare class SdQueryChipPopover {
|
|
|
72
76
|
toggleEditingMultiValue(value: unknown): void;
|
|
73
77
|
isEditingMultiSelected(value: unknown): boolean;
|
|
74
78
|
/**
|
|
75
|
-
*
|
|
76
|
-
* emit (commit). Parent splices into its filters[] and nulls editingIndex.
|
|
79
|
+
* The panel closed (Esc, click outside, Tab out, `closeMenu()`, another panel opened): compose the next Filter from
|
|
80
|
+
* staging signals and emit (commit). Parent splices into its filters[] and nulls editingIndex.
|
|
77
81
|
*/
|
|
78
|
-
onMenuClosed(): void;
|
|
82
|
+
onMenuClosed(_reason?: ɵSdQueryPanelCloseReason): void;
|
|
79
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryChipPopover, never>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryChipPopover, "sd-query-chip-popover", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "chipIndex": { "alias": "chipIndex"; "required": false; "isSignal": true; }; "autoIdBase": { "alias": "autoIdBase"; "required": false; "isSignal": true; };
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryChipPopover, "sd-query-chip-popover", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "chipIndex": { "alias": "chipIndex"; "required": false; "isSignal": true; }; "autoIdBase": { "alias": "autoIdBase"; "required": false; "isSignal": true; }; }, { "commit": "commit"; }, never, never, true, never>;
|
|
81
85
|
}
|
|
@@ -1,60 +1,81 @@
|
|
|
1
|
-
import { MatMenu } from '@angular/material/menu';
|
|
2
1
|
import { SdQueryField, sdQueryFieldIcon } from '../../query-bar.model';
|
|
2
|
+
import { ɵSdQueryPanelCloseReason, ɵSdQueryPanelDirective } from '../panel/query-panel';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
interface FieldGroup {
|
|
5
5
|
label: string;
|
|
6
|
+
headingId: string;
|
|
6
7
|
fields: SdQueryField[];
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
|
-
* Field picker
|
|
10
|
+
* Field picker of `sd-query-bar`: a listbox panel (handoff section 3). The "+" button opens it with
|
|
11
|
+
* `[sdQueryPanelTrigger]="picker.panel()"`; the chosen field comes back through `(pick)`. Fields in `[usedKeys]`
|
|
12
|
+
* render disabled with a check.
|
|
10
13
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* those entries render disabled with a check.
|
|
14
|
-
* - "Đổi field" inside the chip popover — pass `[currentKey]` to disable the
|
|
15
|
-
* currently-bound field.
|
|
16
|
-
*
|
|
17
|
-
* Parent triggers via `[matMenuTriggerFor]="picker.menu()"` and receives the
|
|
18
|
-
* chosen field through `(pick)`.
|
|
14
|
+
* Keyboard: without a find box focus moves over the options (↑ ↓ Home End, Enter picks). With the find box focus stays
|
|
15
|
+
* in it and the arrows move `aria-activedescendant` (combobox). No typeahead.
|
|
19
16
|
*/
|
|
20
17
|
export declare class SdQueryFieldPicker {
|
|
21
18
|
#private;
|
|
22
19
|
readonly emptyLabel: import("@angular/core").Signal<string>;
|
|
23
20
|
readonly findLabel: import("@angular/core").Signal<string>;
|
|
24
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Name of the listbox: the label of what opens it — the + button in popover mode, the Add condition box inline. The
|
|
23
|
+
* find box label is a command ("Tìm kiếm"), not a name for the list.
|
|
24
|
+
*/
|
|
25
|
+
readonly listLabel: import("@angular/core").Signal<string>;
|
|
26
|
+
/** Field list shown in the panel (caller-supplied; rendered in input order). */
|
|
25
27
|
readonly fields: import("@angular/core").InputSignal<SdQueryField[]>;
|
|
26
|
-
/**
|
|
27
|
-
readonly currentKey: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
-
/** Set of keys already in use — used in the "Add filter" flow to grey out duplicates. */
|
|
28
|
+
/** Set of keys already in use — those render disabled with a check. */
|
|
29
29
|
readonly usedKeys: import("@angular/core").InputSignal<Set<string>>;
|
|
30
|
+
/** Prefix of `data-autoid` (handoff section 12). */
|
|
31
|
+
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* `false`: no find box in the panel — an input outside (the inline "Add condition" combobox) types the filter through
|
|
34
|
+
* `setQuery()` and moves the active option.
|
|
35
|
+
*/
|
|
36
|
+
readonly findBox: import("@angular/core").InputSignal<boolean>;
|
|
30
37
|
/** Emits when the user picks an enabled field. */
|
|
31
38
|
readonly pick: import("@angular/core").OutputEmitterRef<SdQueryField>;
|
|
32
|
-
/**
|
|
33
|
-
readonly
|
|
39
|
+
/** The panel closed. */
|
|
40
|
+
readonly closed: import("@angular/core").OutputEmitterRef<ɵSdQueryPanelCloseReason>;
|
|
41
|
+
/** The panel — the trigger binds `[sdQueryPanelTrigger]="picker.panel()"`. */
|
|
42
|
+
readonly panel: import("@angular/core").Signal<ɵSdQueryPanelDirective>;
|
|
34
43
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
35
|
-
|
|
44
|
+
readonly listId: string;
|
|
45
|
+
/** Text typed in the find box; reset when the panel closes. */
|
|
36
46
|
readonly query: import("@angular/core").WritableSignal<string>;
|
|
37
|
-
/**
|
|
47
|
+
/** Key of the option the arrows point at (`aria-activedescendant` / roving focus). */
|
|
48
|
+
readonly activeKey: import("@angular/core").WritableSignal<string | null>;
|
|
49
|
+
/** Find box from ten fields (not when an outside input types the filter). */
|
|
38
50
|
readonly searchable: import("@angular/core").Signal<boolean>;
|
|
39
51
|
/** Fields grouped by `field.group` in order of first appearance, filtered by the find box. */
|
|
40
52
|
readonly groups: import("@angular/core").Signal<FieldGroup[]>;
|
|
41
53
|
/** One group needs no heading. Counted on the whole list so filtering does not hide headings. */
|
|
42
54
|
readonly showGroupHeadings: import("@angular/core").Signal<boolean>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* item after rendering (afterNextRender), so the find box takes focus in a later render callback.
|
|
47
|
-
*/
|
|
48
|
-
focusFind(): void;
|
|
49
|
-
onFindKeydown(event: KeyboardEvent): void;
|
|
50
|
-
/** Per-field disabled state — current key OR used key OR field's own disabled flag. */
|
|
51
|
-
readonly disabledMap: import("@angular/core").Signal<Set<string>>;
|
|
55
|
+
/** Id of the active option, for `aria-activedescendant`. */
|
|
56
|
+
readonly activeId: import("@angular/core").Signal<string | null>;
|
|
57
|
+
optionId(field: SdQueryField): string;
|
|
52
58
|
isDisabled(field: SdQueryField): boolean;
|
|
53
|
-
/** "
|
|
54
|
-
isCurrent(field: SdQueryField): boolean;
|
|
55
|
-
/** "Used" check icon — when the field is in `usedKeys` (not the same as current). */
|
|
59
|
+
/** "Used" check icon — when the field is in `usedKeys`. */
|
|
56
60
|
isUsed(field: SdQueryField): boolean;
|
|
61
|
+
/** Find box typed: filter, then point at the first enabled match (none while the box is empty). */
|
|
62
|
+
setQuery(text: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Moves the active option over the enabled ones, wrapping: `1` / `-1`, or `'first'` / `'last'`. With `focus`, the
|
|
65
|
+
* option also takes focus (no find box).
|
|
66
|
+
*/
|
|
67
|
+
move(step: 1 | -1 | 'first' | 'last', focus?: boolean): void;
|
|
68
|
+
/** Picks the active option; `false` when there is none. */
|
|
69
|
+
pickActive(): boolean;
|
|
70
|
+
/** Picks `field` unless it is disabled: the panel closes first, then `(pick)` fires. */
|
|
71
|
+
select(field: SdQueryField): void;
|
|
72
|
+
/** Keys inside the panel (find box or an option). */
|
|
73
|
+
onKeydown(event: KeyboardEvent): void;
|
|
74
|
+
/** An option took focus (roving focus, or a click): it becomes the active one. */
|
|
75
|
+
onOptionFocus(field: SdQueryField): void;
|
|
76
|
+
/** Panel closed: forget the find text and the active option. */
|
|
77
|
+
reset(): void;
|
|
57
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryFieldPicker, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryFieldPicker, "sd-query-field-picker", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryFieldPicker, "sd-query-field-picker", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "usedKeys": { "alias": "usedKeys"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "findBox": { "alias": "findBox"; "required": false; "isSignal": true; }; }, { "pick": "pick"; "closed": "closed"; }, never, never, true, never>;
|
|
59
80
|
}
|
|
60
81
|
export {};
|
|
@@ -22,6 +22,8 @@ export declare class SdQueryInlineChip {
|
|
|
22
22
|
#private;
|
|
23
23
|
readonly booleanTrueLabel: import("@angular/core").Signal<string>;
|
|
24
24
|
readonly booleanFalseLabel: import("@angular/core").Signal<string>;
|
|
25
|
+
/** `aria-label` of the × — names the field, in the current language. */
|
|
26
|
+
readonly removeLabel: import("@angular/core").Signal<string>;
|
|
25
27
|
/** Resolved field — parent passes it (no lookup needed inside). */
|
|
26
28
|
readonly field: import("@angular/core").InputSignal<SdQueryField>;
|
|
27
29
|
/** The chip's Filter — used for `data` + `operator`. */
|
|
@@ -40,6 +42,8 @@ export declare class SdQueryInlineChip {
|
|
|
40
42
|
readonly isNoData: import("@angular/core").InputSignal<boolean>;
|
|
41
43
|
/** Pinned chip — no × button. */
|
|
42
44
|
readonly pinned: import("@angular/core").InputSignal<boolean>;
|
|
45
|
+
/** Required field: `aria-required`, no empty selection (handoff B3). */
|
|
46
|
+
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
43
47
|
/** Required chip without a value — error look, `aria-invalid`. */
|
|
44
48
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
45
49
|
/** Id set as `aria-describedby` (the host's required hint). */
|
|
@@ -61,6 +65,21 @@ export declare class SdQueryInlineChip {
|
|
|
61
65
|
readonly operator: import("@angular/core").Signal<Operator>;
|
|
62
66
|
/** Data payload — convenience accessor for template. */
|
|
63
67
|
readonly data: import("@angular/core").Signal<unknown>;
|
|
68
|
+
/**
|
|
69
|
+
* Model handed to the select. Follows `data`, and is reset to a copy of it when a required chip refuses an empty
|
|
70
|
+
* selection — the new reference makes sd-select drop the deselection it already shows.
|
|
71
|
+
*/
|
|
72
|
+
readonly selectModel: import("@angular/core").WritableSignal<unknown>;
|
|
73
|
+
/** "Choose at least one value." under a required multi-value chip that was just refused an empty selection. */
|
|
74
|
+
readonly minOneHint: import("@angular/core").WritableSignal<boolean>;
|
|
75
|
+
readonly minOneLabel: import("@angular/core").Signal<string>;
|
|
76
|
+
readonly hintId: string;
|
|
77
|
+
/** `aria-describedby` of the chip: the host's required hint and, while shown, the min-one line. */
|
|
78
|
+
readonly describedByIds: import("@angular/core").Signal<string | null>;
|
|
79
|
+
/** Date, date-time and date-range controls — a refused empty value is written back into them (B3). */
|
|
80
|
+
private readonly dateControl;
|
|
81
|
+
private readonly datetimeControl;
|
|
82
|
+
private readonly dateRangeControl;
|
|
64
83
|
/** Enter edit mode (BOOLEAN branch — shows the toggle buttons; exits on toggle commit). */
|
|
65
84
|
enterEdit(): void;
|
|
66
85
|
/**
|
|
@@ -79,6 +98,6 @@ export declare class SdQueryInlineChip {
|
|
|
79
98
|
/** Boolean toggle commit — exits edit. */
|
|
80
99
|
emitBoolean(v: boolean): void;
|
|
81
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryInlineChip, never>;
|
|
82
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineChip, "sd-query-inline-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "isNoData": { "alias": "isNoData"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; }, { "commit": "commit"; "commitRange": "commitRange"; "liveChange": "liveChange"; "remove": "remove"; }, never, never, true, never>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineChip, "sd-query-inline-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "isNoData": { "alias": "isNoData"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; }, { "commit": "commit"; "commitRange": "commitRange"; "liveChange": "liveChange"; "remove": "remove"; }, never, never, true, never>;
|
|
83
102
|
}
|
|
84
103
|
export {};
|
package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export declare class SdQueryInlineValueChip {
|
|
|
30
30
|
readonly autofocus: import("@angular/core").InputSignal<boolean>;
|
|
31
31
|
/** Pinned chip — no × segment. */
|
|
32
32
|
readonly pinned: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
/** Required field: `aria-required`; a value, once set, cannot be emptied (handoff B3). */
|
|
34
|
+
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
33
35
|
/** Required chip without a value — error look while not focused, `aria-invalid`. */
|
|
34
36
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
35
37
|
/** Id set as `aria-describedby` (the host's required hint). */
|
|
@@ -52,6 +54,8 @@ export declare class SdQueryInlineValueChip {
|
|
|
52
54
|
readonly ph: import("@angular/core").Signal<string>;
|
|
53
55
|
readonly phFrom: import("@angular/core").Signal<string>;
|
|
54
56
|
readonly phTo: import("@angular/core").Signal<string>;
|
|
57
|
+
/** `aria-label` of the × — names the field, in the current language. */
|
|
58
|
+
readonly removeLabel: import("@angular/core").Signal<string>;
|
|
55
59
|
readonly hasValue: import("@angular/core").Signal<boolean>;
|
|
56
60
|
readonly state: import("@angular/core").Signal<ChipState>;
|
|
57
61
|
constructor();
|
|
@@ -68,6 +72,6 @@ export declare class SdQueryInlineValueChip {
|
|
|
68
72
|
}): void;
|
|
69
73
|
onRemove(ev: Event): void;
|
|
70
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryInlineValueChip, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineValueChip, "sd-query-inline-value-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "remove": "remove"; }, never, never, true, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryInlineValueChip, "sd-query-inline-value-chip", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "remove": "remove"; }, never, never, true, never>;
|
|
72
76
|
}
|
|
73
77
|
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** Popup type of a query bar panel; it is also the `aria-haspopup` value of its trigger. */
|
|
4
|
+
export type ɵSdQueryPanelRole = 'listbox' | 'dialog' | 'menu';
|
|
5
|
+
/**
|
|
6
|
+
* Why a panel closed. `switch`: another panel of the bar (or the same panel for another trigger) opened; `detach`: the
|
|
7
|
+
* panel or its trigger went away. Neither moves focus.
|
|
8
|
+
*/
|
|
9
|
+
export type ɵSdQueryPanelCloseReason = 'escape' | 'outside' | 'tab' | 'select' | 'close' | 'switch' | 'detach';
|
|
10
|
+
export interface ɵSdQueryPanelOpenOptions {
|
|
11
|
+
/** Receives focus when the panel closes, instead of the trigger (a table header icon that asked for a chip). */
|
|
12
|
+
returnFocusTo?: HTMLElement | null;
|
|
13
|
+
/** Opened from the keyboard: a list without a find box focuses its first option instead of the panel. */
|
|
14
|
+
keyboard?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* `false`: focus stays on the trigger — a combobox input that keeps typing and drives the list through
|
|
17
|
+
* `aria-activedescendant` (the "Add condition" box of the inline bar).
|
|
18
|
+
*/
|
|
19
|
+
focus?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* One open panel per query bar: opening a panel closes the other one first (handoff section 2.2, "Nhiều panel").
|
|
23
|
+
* Provided by `SdQueryBar`; a panel without a group only closes itself.
|
|
24
|
+
*/
|
|
25
|
+
export declare class ɵSdQueryPanelGroup {
|
|
26
|
+
#private;
|
|
27
|
+
activate(panel: ɵSdQueryPanelDirective): void;
|
|
28
|
+
release(panel: ɵSdQueryPanelDirective): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSdQueryPanelGroup, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ɵSdQueryPanelGroup>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Content of a query bar panel, rendered in a CDK overlay next to its trigger: field picker (`listbox`), chip popover
|
|
34
|
+
* (`dialog`) and saved filters (`menu`). Replaces the Material menu the bar used before (handoff section 2.2).
|
|
35
|
+
*
|
|
36
|
+
* The template has one root element carrying `sd-query-panel`, its modifier and its role; the panel gives it the `id`
|
|
37
|
+
* the trigger's `aria-controls` points to (unless `sdQueryPanelControls` names the element inside that has the role)
|
|
38
|
+
* and `tabindex="-1"`. A form panel marks the wrapper of its first value control
|
|
39
|
+
* with `data-sd-query-panel-initial`.
|
|
40
|
+
*
|
|
41
|
+
* Internal (`ɵ`): not part of SemVer.
|
|
42
|
+
*/
|
|
43
|
+
export declare class ɵSdQueryPanelDirective {
|
|
44
|
+
#private;
|
|
45
|
+
readonly id: string;
|
|
46
|
+
/** Popup type: `listbox` and `menu` are lists, `dialog` is a form. */
|
|
47
|
+
readonly role: import("@angular/core").InputSignal<ɵSdQueryPanelRole>;
|
|
48
|
+
/** Horizontal alignment with the trigger; flips when there is no room. */
|
|
49
|
+
readonly align: import("@angular/core").InputSignal<"start" | "end">;
|
|
50
|
+
/**
|
|
51
|
+
* Id of the element inside the panel that carries the popup role, when it is not the root (the field picker's listbox
|
|
52
|
+
* sits under its find box). The trigger's `aria-controls` points there.
|
|
53
|
+
*/
|
|
54
|
+
readonly controls: import("@angular/core").InputSignal<string | undefined>;
|
|
55
|
+
/** Id the trigger's `aria-controls` names. */
|
|
56
|
+
readonly controlledId: import("@angular/core").Signal<string>;
|
|
57
|
+
/** The panel opened and took focus. */
|
|
58
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
59
|
+
/**
|
|
60
|
+
* The panel closed; `reason` says how. Not emitted for `detach`: the panel or its trigger is being destroyed, and
|
|
61
|
+
* outputs of a destroyed view must not fire (NG0953).
|
|
62
|
+
*/
|
|
63
|
+
readonly closed: import("@angular/core").OutputEmitterRef<ɵSdQueryPanelCloseReason>;
|
|
64
|
+
/** Whether the panel is open. */
|
|
65
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
66
|
+
/** The trigger the panel is open for (kept until `closed` has been emitted). */
|
|
67
|
+
readonly origin: import("@angular/core").Signal<HTMLElement | undefined>;
|
|
68
|
+
/** @internal Triggers listen here, so an opening made through `open()` still reaches the trigger it uses. */
|
|
69
|
+
readonly ɵopening: Subject<HTMLElement>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
readonly ɵclosing: Subject<{
|
|
72
|
+
origin: HTMLElement;
|
|
73
|
+
reason: ɵSdQueryPanelCloseReason;
|
|
74
|
+
}>;
|
|
75
|
+
constructor();
|
|
76
|
+
/** The panel's root element while open. */
|
|
77
|
+
element(): HTMLElement | undefined;
|
|
78
|
+
/** Opens the panel next to `origin`. Open for another trigger: closes for that one first (`switch`). */
|
|
79
|
+
open(origin: HTMLElement, options?: ɵSdQueryPanelOpenOptions): void;
|
|
80
|
+
/** Closes the panel. Focus returns to `returnFocusTo` or the trigger, except as described for each reason. */
|
|
81
|
+
close(reason?: ɵSdQueryPanelCloseReason): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSdQueryPanelDirective, never>;
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵSdQueryPanelDirective, "ng-template[sdQueryPanel]", ["sdQueryPanel"], { "role": { "alias": "sdQueryPanel"; "required": true; "isSignal": true; }; "align": { "alias": "sdQueryPanelAlign"; "required": false; "isSignal": true; }; "controls": { "alias": "sdQueryPanelControls"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Button (or `div[role=button]`) that opens a `ɵSdQueryPanelDirective`: click, Enter, Space. Sets `aria-haspopup`,
|
|
87
|
+
* `aria-expanded` and `aria-controls`; a second activation closes the panel.
|
|
88
|
+
*
|
|
89
|
+
* Internal (`ɵ`): not part of SemVer.
|
|
90
|
+
*/
|
|
91
|
+
export declare class ɵSdQueryPanelTriggerDirective {
|
|
92
|
+
#private;
|
|
93
|
+
readonly panel: import("@angular/core").InputSignal<ɵSdQueryPanelDirective | null | undefined>;
|
|
94
|
+
/** The panel is opening for this trigger — emitted before its content renders. */
|
|
95
|
+
readonly panelOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
96
|
+
/** The panel closed for this trigger. */
|
|
97
|
+
readonly panelClosed: import("@angular/core").OutputEmitterRef<ɵSdQueryPanelCloseReason>;
|
|
98
|
+
/** The panel is open for this trigger. */
|
|
99
|
+
readonly expanded: import("@angular/core").Signal<boolean>;
|
|
100
|
+
constructor();
|
|
101
|
+
/** Opens the panel for this trigger (no-op when already open). `returnFocusTo` gets focus back on close. */
|
|
102
|
+
openMenu(returnFocusTo?: HTMLElement | null): void;
|
|
103
|
+
/** Closes the panel when it is open for this trigger. */
|
|
104
|
+
closeMenu(): void;
|
|
105
|
+
protected onPointerDown(): void;
|
|
106
|
+
protected onClick(): void;
|
|
107
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSdQueryPanelTriggerDirective, never>;
|
|
109
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵSdQueryPanelTriggerDirective, "[sdQueryPanelTrigger]", ["sdQueryPanelTrigger"], { "panel": { "alias": "sdQueryPanelTrigger"; "required": false; "isSignal": true; }; }, { "panelOpened": "panelOpened"; "panelClosed": "panelClosed"; }, never, never, true, never>;
|
|
110
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { MatMenu } from '@angular/material/menu';
|
|
2
1
|
import { Filter, Operator } from '@sdcorejs/utils/models';
|
|
3
2
|
import { SdQueryField, sdQueryFieldIcon } from '../../query-bar.model';
|
|
3
|
+
import { ɵSdQueryPanelDirective } from '../panel/query-panel';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* Compact popover-mode chip face. Click → opens the parent-supplied [
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Compact popover-mode chip face. Click, Enter or Space → opens the parent-supplied [panel] (the chip popover dialog).
|
|
7
|
+
* Inert div[role=button] so the nested <sd-operator> doesn't end up as a button-in-button (invalid HTML).
|
|
8
|
+
* The × is a `<button>` beside that trigger, never inside it.
|
|
9
9
|
*/
|
|
10
10
|
export declare class SdQueryPopoverChip {
|
|
11
|
+
#private;
|
|
11
12
|
/** Resolved field (from the bar's `fieldByKey()` map). `undefined` → render raw key. */
|
|
12
13
|
readonly field: import("@angular/core").InputSignal<SdQueryField | undefined>;
|
|
13
14
|
/** The chip's filter — used to read `field` / `operator` / `data` for display text. */
|
|
@@ -24,20 +25,26 @@ export declare class SdQueryPopoverChip {
|
|
|
24
25
|
readonly pinned: import("@angular/core").InputSignal<boolean>;
|
|
25
26
|
/** Read-only chip — does not open its popover. */
|
|
26
27
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/** Chip of a required field — `aria-required`. */
|
|
29
|
+
readonly required: import("@angular/core").InputSignal<boolean>;
|
|
27
30
|
/** Required chip without a value — error look, `aria-invalid`. */
|
|
28
31
|
readonly invalid: import("@angular/core").InputSignal<boolean>;
|
|
29
32
|
/** Id set as `aria-describedby` (the host's required hint). */
|
|
30
33
|
readonly describedBy: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
-
/** Chip popover
|
|
32
|
-
readonly
|
|
33
|
-
/** Fired when the chip popover opens (parent seeds its editing state). */
|
|
34
|
+
/** Chip popover panel supplied by the parent. */
|
|
35
|
+
readonly panel: import("@angular/core").InputSignal<ɵSdQueryPanelDirective>;
|
|
36
|
+
/** Fired when the chip popover opens, before it renders (parent seeds its editing state). */
|
|
34
37
|
readonly open: import("@angular/core").OutputEmitterRef<void>;
|
|
35
38
|
/** Fired when the user clicks the × removal icon. */
|
|
36
39
|
readonly remove: import("@angular/core").OutputEmitterRef<void>;
|
|
37
40
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
41
|
+
/** `aria-label` of the × — names the field, in the current language. */
|
|
42
|
+
readonly removeLabel: import("@angular/core").Signal<string>;
|
|
38
43
|
filterField(): string;
|
|
39
44
|
filterOperator(): Operator;
|
|
40
45
|
private readonly trigger;
|
|
46
|
+
/** The chip popover is open for this chip. */
|
|
47
|
+
isOpen(): boolean;
|
|
41
48
|
/**
|
|
42
49
|
* Opens the chip popover. With `returnFocusTo`, that element (e.g. the host control that asked
|
|
43
50
|
* for the chip) gets focus back when the popover closes, instead of the chip.
|
|
@@ -45,5 +52,5 @@ export declare class SdQueryPopoverChip {
|
|
|
45
52
|
openMenu(returnFocusTo?: HTMLElement): void;
|
|
46
53
|
closeMenu(): void;
|
|
47
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdQueryPopoverChip, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryPopoverChip, "sd-query-popover-chip", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": true; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; "
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdQueryPopoverChip, "sd-query-popover-chip", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": true; "isSignal": true; }; "showOperator": { "alias": "showOperator"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "pinned": { "alias": "pinned"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "describedBy": { "alias": "describedBy"; "required": false; "isSignal": true; }; "panel": { "alias": "panel"; "required": true; "isSignal": true; }; }, { "open": "open"; "remove": "remove"; }, never, never, true, never>;
|
|
49
56
|
}
|