@sdcorejs/angular 20.3.5 → 20.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/index.d.ts +6 -1
- package/components/button/index.d.ts +7 -1
- package/components/calendar/index.d.ts +1092 -0
- package/components/card/index.d.ts +247 -9
- package/components/index.d.ts +3 -1
- package/components/kanban/index.d.ts +191 -74
- package/components/modal/index.d.ts +10 -1
- package/components/query-bar/index.d.ts +176 -36
- package/components/quick-action/index.d.ts +65 -1
- package/components/scheduler/index.d.ts +544 -0
- package/components/tab/index.d.ts +6 -1
- package/components/table/index.d.ts +56 -7
- package/components/timeline/index.d.ts +216 -0
- package/components/tree/index.d.ts +119 -6
- package/directives/index.d.ts +4 -2
- package/fesm2022/sdcorejs-angular-components-anchor.mjs +62 -3
- package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +14 -6
- 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 +486 -23
- 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 +833 -154
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +26 -7
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1312 -220
- 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 +31 -2
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +615 -104
- 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 +597 -36
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -4
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components.mjs +3 -1
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +109 -22
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +140 -42
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +70 -21
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +4 -3
- package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +622 -52
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-D_1BxDC9.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-w7iVesRB.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-D_1BxDC9.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-w7iVesRB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-CgH8Qi25.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-DwGr3EVD.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-CgH8Qi25.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-DwGr3EVD.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-CyCGqW9W.mjs → sdcorejs-angular-modules-generic-generic-list.page-QqBNS185.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-CyCGqW9W.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-QqBNS185.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DTmU8Te4.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-_WrprZ_o.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DTmU8Te4.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-_WrprZ_o.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +7 -2
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-okZVmcd5.mjs → sdcorejs-angular-modules-pattern-base-api.service-B2HMyv8F.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-okZVmcd5.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-B2HMyv8F.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-LPUj7MqG.mjs → sdcorejs-angular-modules-pattern-create.component-CNtkbnRK.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-LPUj7MqG.mjs.map → sdcorejs-angular-modules-pattern-create.component-CNtkbnRK.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-2-dyjvCH.mjs → sdcorejs-angular-modules-pattern-create.component-DlNyY3e7.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-2-dyjvCH.mjs.map → sdcorejs-angular-modules-pattern-create.component-DlNyY3e7.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-BCoG3bVV.mjs → sdcorejs-angular-modules-pattern-create.component-DxV_0Ckg.mjs} +11 -7
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxV_0Ckg.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-Caua6Xto.mjs → sdcorejs-angular-modules-pattern-customer.service-DS0cFc3u.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-Caua6Xto.mjs.map → sdcorejs-angular-modules-pattern-customer.service-DS0cFc3u.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-_c_4slgf.mjs → sdcorejs-angular-modules-pattern-detail.component-B_1ppVNA.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-_c_4slgf.mjs.map → sdcorejs-angular-modules-pattern-detail.component-B_1ppVNA.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-B2Y0PbbC.mjs → sdcorejs-angular-modules-pattern-detail.component-CFvwPHFx.mjs} +58 -55
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CFvwPHFx.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-C_HziBQN.mjs → sdcorejs-angular-modules-pattern-flow.component-Ba4xO_tF.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-C_HziBQN.mjs.map → sdcorejs-angular-modules-pattern-flow.component-Ba4xO_tF.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-B2dNqckm.mjs → sdcorejs-angular-modules-pattern-index.component-DvwY0K3t.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-B2dNqckm.mjs.map → sdcorejs-angular-modules-pattern-index.component-DvwY0K3t.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-Dq8Q8Vfm.mjs → sdcorejs-angular-modules-pattern-lines-table-form.component-BSAQaAgH.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-Dq8Q8Vfm.mjs.map → sdcorejs-angular-modules-pattern-lines-table-form.component-BSAQaAgH.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIv2k6NI.mjs +506 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIv2k6NI.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CeX57FPi.mjs → sdcorejs-angular-modules-pattern-list.component-BYyL5Q5n.mjs} +30 -39
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BYyL5Q5n.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZRTnqNx.mjs +501 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZRTnqNx.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DS8A17mM.mjs → sdcorejs-angular-modules-pattern-list.component-DF7CvaVG.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-DS8A17mM.mjs.map → sdcorejs-angular-modules-pattern-list.component-DF7CvaVG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Bs9hhMr7.mjs → sdcorejs-angular-modules-pattern-list.component-nMyLso8Z.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-Bs9hhMr7.mjs.map → sdcorejs-angular-modules-pattern-list.component-nMyLso8Z.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-Dfil91qL.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-CS7VK5Ol.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-Dfil91qL.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-CS7VK5Ol.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-PaIGZ1ve.mjs → sdcorejs-angular-modules-pattern-product.service-KKWwzMEG.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-PaIGZ1ve.mjs.map → sdcorejs-angular-modules-pattern-product.service-KKWwzMEG.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-B8j8cieu.mjs → sdcorejs-angular-modules-pattern-profile.component-XDuLwzEl.mjs} +25 -15
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-XDuLwzEl.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-0Vh73aXL.mjs → sdcorejs-angular-modules-pattern-routes--ScZNg7A.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-0Vh73aXL.mjs.map → sdcorejs-angular-modules-pattern-routes--ScZNg7A.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-Cw9uJySU.mjs → sdcorejs-angular-modules-pattern-routes-Bka6PaRB.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-Cw9uJySU.mjs.map → sdcorejs-angular-modules-pattern-routes-Bka6PaRB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-nrxSHE-O.mjs → sdcorejs-angular-modules-pattern-routes-CCwFQAdd.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-nrxSHE-O.mjs.map → sdcorejs-angular-modules-pattern-routes-CCwFQAdd.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFT9DyKj.mjs → sdcorejs-angular-modules-pattern-routes-CKryLRCh.mjs} +8 -8
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFT9DyKj.mjs.map → sdcorejs-angular-modules-pattern-routes-CKryLRCh.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFLETqYK.mjs → sdcorejs-angular-modules-pattern-routes-Dr72yGSt.mjs} +5 -5
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CFLETqYK.mjs.map → sdcorejs-angular-modules-pattern-routes-Dr72yGSt.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BoB2usST.mjs → sdcorejs-angular-modules-pattern-routes-P9WvwSEW.mjs} +3 -3
- package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BoB2usST.mjs.map → sdcorejs-angular-modules-pattern-routes-P9WvwSEW.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-_EDJ1-63.mjs +65 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-_EDJ1-63.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-n4kpjO0y.mjs +56 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-n4kpjO0y.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-CJ6hUHjk.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-DHhmKKVI.mjs} +12 -12
- package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-CJ6hUHjk.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-DHhmKKVI.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-C_AFK_9X.mjs → sdcorejs-angular-modules-pattern-shell.component-DxNC-ixx.mjs} +4 -4
- package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-C_AFK_9X.mjs.map → sdcorejs-angular-modules-pattern-shell.component-DxNC-ixx.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-TWYHj6in.mjs +480 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-TWYHj6in.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-B7H9pp-R.mjs → sdcorejs-angular-modules-pattern-update.component-BcBxBqWB.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-B7H9pp-R.mjs.map → sdcorejs-angular-modules-pattern-update.component-BcBxBqWB.mjs.map} +1 -1
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-Dhfba-qx.mjs → sdcorejs-angular-modules-pattern-update.component-BntTyV55.mjs} +9 -6
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BntTyV55.mjs.map +1 -0
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-hRTu79uE.mjs → sdcorejs-angular-modules-pattern-update.component-CJjZWZuz.mjs} +2 -2
- package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-hRTu79uE.mjs.map → sdcorejs-angular-modules-pattern-update.component-CJjZWZuz.mjs.map} +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +171 -158
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-query-params.mjs +226 -0
- package/fesm2022/sdcorejs-angular-services-query-params.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +24 -1
- package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
- package/forms/date/index.d.ts +2 -0
- package/forms/directives/index.d.ts +1 -1
- package/i18n/index.d.ts +121 -9
- package/modules/layout/index.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.ts +12 -16
- 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.html +11 -3
- package/modules/pattern/features/category/pages/list/list.component.ts +36 -10
- package/modules/pattern/features/category/routes.ts +5 -22
- 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.ts +70 -27
- 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.ts +53 -19
- package/modules/pattern/features/customer/entity.resolver.ts +1 -1
- 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.ts +17 -8
- package/modules/pattern/features/customer/routes.ts +6 -27
- 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.ts +14 -76
- 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.ts +5 -2
- package/package.json +17 -5
- package/services/confirm/index.d.ts +22 -81
- package/services/query-params/index.d.ts +67 -0
- package/utilities/extensions/index.d.ts +10 -1
- package/components/history/index.d.ts +0 -23
- 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-CB4F9cBe.mjs +0 -144
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CB4F9cBe.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CowdEzyv.mjs +0 -145
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CowdEzyv.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BCoG3bVV.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-Bu6E63bN.mjs +0 -148
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bu6E63bN.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B2Y0PbbC.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BRsdOwWy.mjs +0 -87
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BRsdOwWy.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DalxHa8D.mjs +0 -232
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DalxHa8D.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-kdEZ9s7K.mjs +0 -70
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-kdEZ9s7K.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B3-th1z4.mjs +0 -164
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-B3-th1z4.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CRttQEXa.mjs +0 -118
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CRttQEXa.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CeX57FPi.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-B8j8cieu.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CZusLcS3.mjs +0 -74
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CZusLcS3.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Cq4BqjE9.mjs +0 -99
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Cq4BqjE9.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-C74EEboR.mjs +0 -143
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-C74EEboR.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Dj9lvkCP.mjs +0 -132
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Dj9lvkCP.mjs.map +0 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-Dhfba-qx.mjs.map +0 -1
- package/modules/pattern/features/category/entity.resolver.ts +0 -27
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Signal } from '@angular/core';
|
|
3
3
|
import { NestedKeyOf, Operator, Filter } from '@sdcorejs/utils/models';
|
|
4
|
-
import { MatMenu } from '@angular/material/menu';
|
|
5
4
|
import { SdSearch } from '@sdcorejs/angular/forms/models';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
6
|
|
|
7
7
|
type SdQueryFieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'values' | 'lazy-values';
|
|
8
8
|
interface SdQueryFieldBase<T = unknown> {
|
|
@@ -195,6 +195,8 @@ declare function sdQueryDefaultOperator(field: SdQueryField): Operator;
|
|
|
195
195
|
* - `operators` is an array → that array (deduped against the type set is the caller's job)
|
|
196
196
|
* - otherwise (simple mode) → just the single default operator (no real choice)
|
|
197
197
|
*
|
|
198
|
+
* A `required` field never offers `NULL` / `NOT_NULL`: its value cannot be left out (handoff B3).
|
|
199
|
+
*
|
|
198
200
|
* The returned array is referentially stable for a given `field` object, so it is safe to call
|
|
199
201
|
* straight from a template binding.
|
|
200
202
|
*/
|
|
@@ -205,23 +207,93 @@ declare function sdQueryAllowedOperators(field: SdQueryField): Operator[];
|
|
|
205
207
|
*/
|
|
206
208
|
declare function sdQueryShowOperatorSelector(field: SdQueryField): boolean;
|
|
207
209
|
|
|
210
|
+
/** Popup type of a query bar panel; it is also the `aria-haspopup` value of its trigger. */
|
|
211
|
+
type ɵSdQueryPanelRole = 'listbox' | 'dialog' | 'menu';
|
|
208
212
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
213
|
+
* Why a panel closed. `switch`: another panel of the bar (or the same panel for another trigger) opened; `detach`: the
|
|
214
|
+
* panel or its trigger went away. Neither moves focus.
|
|
215
|
+
*/
|
|
216
|
+
type ɵSdQueryPanelCloseReason = 'escape' | 'outside' | 'tab' | 'select' | 'close' | 'switch' | 'detach';
|
|
217
|
+
interface ɵSdQueryPanelOpenOptions {
|
|
218
|
+
/** Receives focus when the panel closes, instead of the trigger (a table header icon that asked for a chip). */
|
|
219
|
+
returnFocusTo?: HTMLElement | null;
|
|
220
|
+
/** Opened from the keyboard: a list without a find box focuses its first option instead of the panel. */
|
|
221
|
+
keyboard?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* `false`: focus stays on the trigger — a combobox input that keeps typing and drives the list through
|
|
224
|
+
* `aria-activedescendant` (the "Add condition" box of the inline bar).
|
|
225
|
+
*/
|
|
226
|
+
focus?: boolean;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Content of a query bar panel, rendered in a CDK overlay next to its trigger: field picker (`listbox`), chip popover
|
|
230
|
+
* (`dialog`) and saved filters (`menu`). Replaces the Material menu the bar used before (handoff section 2.2).
|
|
231
|
+
*
|
|
232
|
+
* The template has one root element carrying `sd-query-panel`, its modifier and its role; the panel gives it the `id`
|
|
233
|
+
* the trigger's `aria-controls` points to (unless `sdQueryPanelControls` names the element inside that has the role)
|
|
234
|
+
* and `tabindex="-1"`. A form panel marks the wrapper of its first value control
|
|
235
|
+
* with `data-sd-query-panel-initial`.
|
|
236
|
+
*
|
|
237
|
+
* Internal (`ɵ`): not part of SemVer.
|
|
238
|
+
*/
|
|
239
|
+
declare class ɵSdQueryPanelDirective {
|
|
240
|
+
#private;
|
|
241
|
+
readonly id: string;
|
|
242
|
+
/** Popup type: `listbox` and `menu` are lists, `dialog` is a form. */
|
|
243
|
+
readonly role: _angular_core.InputSignal<ɵSdQueryPanelRole>;
|
|
244
|
+
/** Horizontal alignment with the trigger; flips when there is no room. */
|
|
245
|
+
readonly align: _angular_core.InputSignal<"start" | "end">;
|
|
246
|
+
/**
|
|
247
|
+
* Id of the element inside the panel that carries the popup role, when it is not the root (the field picker's listbox
|
|
248
|
+
* sits under its find box). The trigger's `aria-controls` points there.
|
|
249
|
+
*/
|
|
250
|
+
readonly controls: _angular_core.InputSignal<string | undefined>;
|
|
251
|
+
/** Id the trigger's `aria-controls` names. */
|
|
252
|
+
readonly controlledId: _angular_core.Signal<string>;
|
|
253
|
+
/** The panel opened and took focus. */
|
|
254
|
+
readonly opened: _angular_core.OutputEmitterRef<void>;
|
|
255
|
+
/**
|
|
256
|
+
* The panel closed; `reason` says how. Not emitted for `detach`: the panel or its trigger is being destroyed, and
|
|
257
|
+
* outputs of a destroyed view must not fire (NG0953).
|
|
258
|
+
*/
|
|
259
|
+
readonly closed: _angular_core.OutputEmitterRef<ɵSdQueryPanelCloseReason>;
|
|
260
|
+
/** Whether the panel is open. */
|
|
261
|
+
readonly isOpen: _angular_core.Signal<boolean>;
|
|
262
|
+
/** The trigger the panel is open for (kept until `closed` has been emitted). */
|
|
263
|
+
readonly origin: _angular_core.Signal<HTMLElement | undefined>;
|
|
264
|
+
/** @internal Triggers listen here, so an opening made through `open()` still reaches the trigger it uses. */
|
|
265
|
+
readonly ɵopening: Subject<HTMLElement>;
|
|
266
|
+
/** @internal */
|
|
267
|
+
readonly ɵclosing: Subject<{
|
|
268
|
+
origin: HTMLElement;
|
|
269
|
+
reason: ɵSdQueryPanelCloseReason;
|
|
270
|
+
}>;
|
|
271
|
+
constructor();
|
|
272
|
+
/** The panel's root element while open. */
|
|
273
|
+
element(): HTMLElement | undefined;
|
|
274
|
+
/** Opens the panel next to `origin`. Open for another trigger: closes for that one first (`switch`). */
|
|
275
|
+
open(origin: HTMLElement, options?: ɵSdQueryPanelOpenOptions): void;
|
|
276
|
+
/** Closes the panel. Focus returns to `returnFocusTo` or the trigger, except as described for each reason. */
|
|
277
|
+
close(reason?: ɵSdQueryPanelCloseReason): void;
|
|
278
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ɵSdQueryPanelDirective, never>;
|
|
279
|
+
static ɵdir: _angular_core.ɵɵ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>;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Popover-mode chip editor — the dialog panel that opens when a popover-mode chip is clicked (handoff section 4).
|
|
284
|
+
* Owns ALL operator+value staging signals and async option loading.
|
|
211
285
|
*
|
|
212
286
|
* why: tách khỏi `<sd-query-bar>` để parent chỉ giữ `editingIndex` (chip nào đang
|
|
213
287
|
* mở) + nhận `(commit)` khi popover đóng. Mỗi lần parent gọi `seed(filter, field)`
|
|
214
288
|
* trước khi mở chip popover, child reset staging signals + kích option loading.
|
|
215
289
|
*
|
|
216
290
|
* Public surface (template ref `#cp`):
|
|
217
|
-
* - `cp.
|
|
218
|
-
* - `cp.seed(filter, field)` — parent reseeds staging before
|
|
219
|
-
* - `(commit)` output — emitted
|
|
220
|
-
* - `(swapField)` output — emitted when the nested field switcher picks a new field
|
|
291
|
+
* - `cp.panel()` — the panel to feed `[panel]` of `<sd-query-popover-chip>`
|
|
292
|
+
* - `cp.seed(filter, field, index)` — parent reseeds staging before the panel renders
|
|
293
|
+
* - `(commit)` output — emitted when the panel closes (Esc, click outside, Tab out, close) with the staged Filter
|
|
221
294
|
*/
|
|
222
295
|
declare class SdQueryChipPopover {
|
|
223
296
|
#private;
|
|
224
|
-
readonly swapFieldTooltip: _angular_core.Signal<string>;
|
|
225
297
|
readonly fromPlaceholder: _angular_core.Signal<string>;
|
|
226
298
|
readonly toPlaceholder: _angular_core.Signal<string>;
|
|
227
299
|
readonly booleanTrueLabel: _angular_core.Signal<string>;
|
|
@@ -229,6 +301,7 @@ declare class SdQueryChipPopover {
|
|
|
229
301
|
readonly selectValuePlaceholder: _angular_core.Signal<string>;
|
|
230
302
|
readonly enterValuePlaceholder: _angular_core.Signal<string>;
|
|
231
303
|
readonly loadingValuesLabel: _angular_core.Signal<string>;
|
|
304
|
+
readonly minOneLabel: _angular_core.Signal<string>;
|
|
232
305
|
/** Resolved field of the currently editing chip — parent passes from `fieldByKey()`. */
|
|
233
306
|
readonly field: _angular_core.InputSignal<SdQueryField | undefined>;
|
|
234
307
|
/** The chip's current Filter — used by `seed()` for initial staging values. */
|
|
@@ -236,13 +309,9 @@ declare class SdQueryChipPopover {
|
|
|
236
309
|
/** Optional chip index — embedded in the composed autoIds. */
|
|
237
310
|
readonly chipIndex: _angular_core.InputSignal<number | null>;
|
|
238
311
|
/** Prefix for `data-autoId` on inner controls. */
|
|
239
|
-
readonly autoIdBase: _angular_core.InputSignal<string>;
|
|
240
|
-
/**
|
|
241
|
-
readonly switchPickerMenu: _angular_core.InputSignal<MatMenu | undefined>;
|
|
242
|
-
/** Emitted when mat-menu closes — parent splices `next` into filters[idx]. */
|
|
312
|
+
readonly autoIdBase: _angular_core.InputSignal<string | undefined>;
|
|
313
|
+
/** Emitted when the panel closes — parent splices `next` into filters[idx]. */
|
|
243
314
|
readonly commit: _angular_core.OutputEmitterRef<Filter>;
|
|
244
|
-
/** Emitted when nested field-switcher picks a new field — parent calls changeFilterField. */
|
|
245
|
-
readonly swapField: _angular_core.OutputEmitterRef<SdQueryField>;
|
|
246
315
|
/** Staged operator. */
|
|
247
316
|
readonly editingOperator: _angular_core.WritableSignal<Operator>;
|
|
248
317
|
/** Staged value (shape depends on field type + operator). */
|
|
@@ -251,6 +320,13 @@ declare class SdQueryChipPopover {
|
|
|
251
320
|
readonly editingOptions: _angular_core.WritableSignal<any[]>;
|
|
252
321
|
/** Loading flag for async option fetch. */
|
|
253
322
|
readonly editingOptionsLoading: _angular_core.WritableSignal<boolean>;
|
|
323
|
+
/** Field being edited: the one seeded last, else the `[field]` input. */
|
|
324
|
+
readonly currentField: _angular_core.Signal<SdQueryField | undefined>;
|
|
325
|
+
/** The field is required: no empty selection, no clear button (handoff B3). */
|
|
326
|
+
readonly required: _angular_core.Signal<boolean>;
|
|
327
|
+
/** "Choose at least one value." after a required multi-value chip was refused an empty selection. */
|
|
328
|
+
readonly minOneHint: _angular_core.WritableSignal<boolean>;
|
|
329
|
+
readonly hintId: string;
|
|
254
330
|
readonly allowedOperators: _angular_core.Signal<Operator[]>;
|
|
255
331
|
readonly showOperatorSelector: _angular_core.Signal<boolean>;
|
|
256
332
|
/** Whether the staged operator is multi-select (IN/NOT_IN). */
|
|
@@ -260,12 +336,14 @@ declare class SdQueryChipPopover {
|
|
|
260
336
|
/** Compose an autoId for an inner control (`<base>-chip<idx>-<role>`). */
|
|
261
337
|
chipAutoId(role: string): string;
|
|
262
338
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
263
|
-
readonly
|
|
264
|
-
/**
|
|
265
|
-
|
|
339
|
+
readonly panel: _angular_core.Signal<ɵSdQueryPanelDirective>;
|
|
340
|
+
/** Id of the field label in the header — the dialog's accessible name. */
|
|
341
|
+
readonly labelId: string;
|
|
342
|
+
/** Reseed staging from a new filter/field pair — call before the panel renders (`panelOpened`). */
|
|
343
|
+
seed(filter: Filter | undefined, field: SdQueryField | undefined, index?: number | null): void;
|
|
266
344
|
/** Called on operator change in the popover header — reshapes value when family changes. */
|
|
267
345
|
onEditingOperatorChange(next: Operator): void;
|
|
268
|
-
/**
|
|
346
|
+
/** Value control change. A required multi-value chip keeps its values when the change would empty it (B3). */
|
|
269
347
|
onEditingValueInput(value: unknown): void;
|
|
270
348
|
/** BETWEEN range — mutate only `.from`. */
|
|
271
349
|
onEditingRangeFrom(value: string | number | null): void;
|
|
@@ -275,20 +353,21 @@ declare class SdQueryChipPopover {
|
|
|
275
353
|
toggleEditingMultiValue(value: unknown): void;
|
|
276
354
|
isEditingMultiSelected(value: unknown): boolean;
|
|
277
355
|
/**
|
|
278
|
-
*
|
|
279
|
-
* emit (commit). Parent splices into its filters[] and nulls editingIndex.
|
|
356
|
+
* The panel closed (Esc, click outside, Tab out, `closeMenu()`, another panel opened): compose the next Filter from
|
|
357
|
+
* staging signals and emit (commit). Parent splices into its filters[] and nulls editingIndex.
|
|
280
358
|
*/
|
|
281
|
-
onMenuClosed(): void;
|
|
359
|
+
onMenuClosed(_reason?: ɵSdQueryPanelCloseReason): void;
|
|
282
360
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdQueryChipPopover, never>;
|
|
283
|
-
static ɵcmp: _angular_core.ɵɵ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; };
|
|
361
|
+
static ɵcmp: _angular_core.ɵɵ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>;
|
|
284
362
|
}
|
|
285
363
|
|
|
286
364
|
/**
|
|
287
|
-
* Compact popover-mode chip face. Click → opens the parent-supplied [
|
|
288
|
-
*
|
|
289
|
-
*
|
|
365
|
+
* Compact popover-mode chip face. Click, Enter or Space → opens the parent-supplied [panel] (the chip popover dialog).
|
|
366
|
+
* Inert div[role=button] so the nested <sd-operator> doesn't end up as a button-in-button (invalid HTML).
|
|
367
|
+
* The × is a `<button>` beside that trigger, never inside it.
|
|
290
368
|
*/
|
|
291
369
|
declare class SdQueryPopoverChip {
|
|
370
|
+
#private;
|
|
292
371
|
/** Resolved field (from the bar's `fieldByKey()` map). `undefined` → render raw key. */
|
|
293
372
|
readonly field: _angular_core.InputSignal<SdQueryField | undefined>;
|
|
294
373
|
/** The chip's filter — used to read `field` / `operator` / `data` for display text. */
|
|
@@ -305,20 +384,26 @@ declare class SdQueryPopoverChip {
|
|
|
305
384
|
readonly pinned: _angular_core.InputSignal<boolean>;
|
|
306
385
|
/** Read-only chip — does not open its popover. */
|
|
307
386
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
387
|
+
/** Chip of a required field — `aria-required`. */
|
|
388
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
308
389
|
/** Required chip without a value — error look, `aria-invalid`. */
|
|
309
390
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
310
391
|
/** Id set as `aria-describedby` (the host's required hint). */
|
|
311
392
|
readonly describedBy: _angular_core.InputSignal<string | undefined>;
|
|
312
|
-
/** Chip popover
|
|
313
|
-
readonly
|
|
314
|
-
/** Fired when the chip popover opens (parent seeds its editing state). */
|
|
393
|
+
/** Chip popover panel supplied by the parent. */
|
|
394
|
+
readonly panel: _angular_core.InputSignal<ɵSdQueryPanelDirective>;
|
|
395
|
+
/** Fired when the chip popover opens, before it renders (parent seeds its editing state). */
|
|
315
396
|
readonly open: _angular_core.OutputEmitterRef<void>;
|
|
316
397
|
/** Fired when the user clicks the × removal icon. */
|
|
317
398
|
readonly remove: _angular_core.OutputEmitterRef<void>;
|
|
318
399
|
readonly iconFor: typeof sdQueryFieldIcon;
|
|
400
|
+
/** `aria-label` of the × — names the field, in the current language. */
|
|
401
|
+
readonly removeLabel: _angular_core.Signal<string>;
|
|
319
402
|
filterField(): string;
|
|
320
403
|
filterOperator(): Operator;
|
|
321
404
|
private readonly trigger;
|
|
405
|
+
/** The chip popover is open for this chip. */
|
|
406
|
+
isOpen(): boolean;
|
|
322
407
|
/**
|
|
323
408
|
* Opens the chip popover. With `returnFocusTo`, that element (e.g. the host control that asked
|
|
324
409
|
* for the chip) gets focus back when the popover closes, instead of the chip.
|
|
@@ -326,7 +411,7 @@ declare class SdQueryPopoverChip {
|
|
|
326
411
|
openMenu(returnFocusTo?: HTMLElement): void;
|
|
327
412
|
closeMenu(): void;
|
|
328
413
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdQueryPopoverChip, never>;
|
|
329
|
-
static ɵcmp: _angular_core.ɵɵ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; }; "
|
|
414
|
+
static ɵcmp: _angular_core.ɵɵ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>;
|
|
330
415
|
}
|
|
331
416
|
|
|
332
417
|
type Density = 'compact' | 'comfortable';
|
|
@@ -359,7 +444,7 @@ declare class SdQueryBar {
|
|
|
359
444
|
/**
|
|
360
445
|
* Editing mode:
|
|
361
446
|
* - `'popover'` (default) → compact chips; click a chip to edit operator + value in a
|
|
362
|
-
*
|
|
447
|
+
* popover panel; the value is committed when the popover closes.
|
|
363
448
|
* - `'inline'` → GitLab-style. Each filter's operator + value controls render directly
|
|
364
449
|
* on the bar (no popup, no per-filter apply). Edits update `filters` live; the user
|
|
365
450
|
* presses the search button (or Enter) once to fire `(apply)`.
|
|
@@ -381,7 +466,12 @@ declare class SdQueryBar {
|
|
|
381
466
|
* saving a filter captures live filters/logic/search.
|
|
382
467
|
*/
|
|
383
468
|
readonly currentQuery: _angular_core.Signal<SdQuery<unknown>>;
|
|
384
|
-
/**
|
|
469
|
+
/**
|
|
470
|
+
* Receive an applied filter from the saved-filters menu — re-install bar state + trigger apply (handoff B4). Entries of
|
|
471
|
+
* fields the bar no longer has, or of disabled fields, are dropped. A required or pinned field takes the saved chip
|
|
472
|
+
* only when it has a value; otherwise its current chip (operator included) stays. Required and pinned chips come
|
|
473
|
+
* first, in field order.
|
|
474
|
+
*/
|
|
385
475
|
onApplyFilter(saved: SdSavedFilter): void;
|
|
386
476
|
/** Show AND/OR segmented toggle (renders only when there are ≥2 filters). */
|
|
387
477
|
readonly showLogicToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -398,6 +488,12 @@ declare class SdQueryBar {
|
|
|
398
488
|
readonly apply: _angular_core.OutputEmitterRef<SdQuery<unknown>>;
|
|
399
489
|
/** Placeholder của ô tìm kiếm tự do bên trái; `option.searchPlaceholder` thắng i18n. */
|
|
400
490
|
readonly searchPlaceholder: _angular_core.Signal<string>;
|
|
491
|
+
/** Tên của ô tìm cho trình đọc màn hình: `option.searchPlaceholder` nếu host đặt, không thì key `search`. */
|
|
492
|
+
readonly searchLabel: _angular_core.Signal<string>;
|
|
493
|
+
/** Nhãn nút xoá của ô tìm. */
|
|
494
|
+
readonly searchClearLabel: _angular_core.Signal<string>;
|
|
495
|
+
/** Nhãn và placeholder của ô Thêm điều kiện (mode inline). */
|
|
496
|
+
readonly addConditionLabel: _angular_core.Signal<string>;
|
|
401
497
|
/** Chữ trên chip ghim đang rỗng. */
|
|
402
498
|
readonly allLabel: _angular_core.Signal<string>;
|
|
403
499
|
/** Chữ trên chip bắt buộc đang rỗng — "Tất cả" sai nghĩa khi field không cho phép bỏ trống. */
|
|
@@ -419,22 +515,34 @@ declare class SdQueryBar {
|
|
|
419
515
|
readonly resolvedShowOperatorOnChip: _angular_core.Signal<boolean | "auto">;
|
|
420
516
|
readonly resolvedApplyOn: _angular_core.Signal<"search" | "commit">;
|
|
421
517
|
readonly resolvedAppearance: _angular_core.Signal<"default" | "flush">;
|
|
518
|
+
/**
|
|
519
|
+
* Clear-all is disabled when the host says so, or — with the built-in clearAll() — when no chip but required ones has a
|
|
520
|
+
* value: there is nothing left to clear (handoff B2).
|
|
521
|
+
*/
|
|
422
522
|
readonly resolvedClearDisabled: _angular_core.Signal<boolean>;
|
|
423
523
|
readonly resolvedInvalidHintId: _angular_core.Signal<string | undefined>;
|
|
424
524
|
constructor();
|
|
425
525
|
readonly fieldByKey: _angular_core.Signal<Record<string, SdQueryField>>;
|
|
426
526
|
/** Field keys already chained on a chip — the picker greys these out. */
|
|
427
527
|
readonly usedFieldKeys: _angular_core.Signal<Set<string>>;
|
|
428
|
-
/** Fields the user can add: pinned fields always have their chip, so the picker leaves them out. */
|
|
528
|
+
/** Fields the user can add: pinned and required fields always have their chip, so the picker leaves them out. */
|
|
429
529
|
readonly pickerFields: _angular_core.Signal<SdQueryField[]>;
|
|
430
530
|
/** "+" is disabled when nothing is left to add. */
|
|
431
531
|
readonly addDisabled: _angular_core.Signal<boolean>;
|
|
432
532
|
/** Required fields without a chip value. The host renders the explanation from this list. */
|
|
433
533
|
readonly invalidFields: _angular_core.Signal<SdQueryField[]>;
|
|
434
|
-
/**
|
|
534
|
+
/**
|
|
535
|
+
* Chips holding a value that Clear would empty — the number shown in the clear-all label. Required chips keep their
|
|
536
|
+
* value on clear, so they are not counted (handoff B2).
|
|
537
|
+
*/
|
|
435
538
|
readonly activeCount: _angular_core.Signal<number>;
|
|
436
539
|
/** Render the global AND/OR connector text between chips when `logic === 'OR'`. */
|
|
437
540
|
readonly showOrConnector: _angular_core.Signal<boolean>;
|
|
541
|
+
/**
|
|
542
|
+
* "Save current filter" needs something to save: a chip with a value (required chips included — Bước 0, decision 2)
|
|
543
|
+
* or text in the search box.
|
|
544
|
+
*/
|
|
545
|
+
readonly canSaveFilter: _angular_core.Signal<boolean>;
|
|
438
546
|
/** Search button is actionable only when there is something to apply and no required field is empty. */
|
|
439
547
|
readonly canSearch: _angular_core.Signal<boolean>;
|
|
440
548
|
/** Index of the chip whose popover is open. Reset to null after commit / close. */
|
|
@@ -472,8 +580,13 @@ declare class SdQueryBar {
|
|
|
472
580
|
chipValueText(filter: Filter): string;
|
|
473
581
|
/** The field of a chip, or `undefined` for a key the bar does not know. */
|
|
474
582
|
fieldOf(filter: Filter): SdQueryField | undefined;
|
|
475
|
-
/**
|
|
583
|
+
/**
|
|
584
|
+
* Pinned and required chips have no remove button and survive removeFilter / clearAll; an empty one is never dropped
|
|
585
|
+
* (handoff B1: `required` implies `pinned`).
|
|
586
|
+
*/
|
|
476
587
|
isPinned(filter: Filter): boolean;
|
|
588
|
+
/** The field always has its chip on the bar: `pinned` or `required`. */
|
|
589
|
+
isLocked(field: SdQueryField | undefined): boolean;
|
|
477
590
|
/** Empty chip of a required field. */
|
|
478
591
|
isInvalid(filter: Filter): boolean;
|
|
479
592
|
/** Text of an empty chip: "All" on a pinned chip, "Select a value" on a required one, nothing otherwise. */
|
|
@@ -513,6 +626,23 @@ declare class SdQueryBar {
|
|
|
513
626
|
onBuildSeamlessCommit(value: unknown): void;
|
|
514
627
|
/** Abandon the in-progress chip. */
|
|
515
628
|
cancelBuild(): void;
|
|
629
|
+
/** The "Add condition" input (inline mode). */
|
|
630
|
+
private readonly addInput;
|
|
631
|
+
/** The field picker the box drives. */
|
|
632
|
+
private readonly addPicker;
|
|
633
|
+
/** Text typed in the box — filters the field list. */
|
|
634
|
+
readonly addQuery: _angular_core.WritableSignal<string>;
|
|
635
|
+
/** A field was picked in the field picker: inline builds a chip from it, popover adds a chip and opens it. */
|
|
636
|
+
onPick(field: SdQueryField): void;
|
|
637
|
+
/** Opens the field list under the box, keeping focus in the box (combobox). */
|
|
638
|
+
openAddList(): void;
|
|
639
|
+
/** Typing filters the list and opens it; the first enabled match is pointed at. */
|
|
640
|
+
onAddInput(text: string): void;
|
|
641
|
+
onAddKeydown(event: KeyboardEvent): void;
|
|
642
|
+
/** A click on the empty part of the chip area (inline mode) focuses the box and opens the list. */
|
|
643
|
+
onMainClick(event: MouseEvent): void;
|
|
644
|
+
/** Backspace / Delete on the chip the box pointed at removes it — never a required or pinned chip. */
|
|
645
|
+
onMainKeydown(event: KeyboardEvent): void;
|
|
516
646
|
/**
|
|
517
647
|
* Commit both ends of a BETWEEN range at once — called from `<sd-query-inline-chip>`'s
|
|
518
648
|
* `(commitRange)` output when the user picks a date range.
|
|
@@ -531,17 +661,27 @@ declare class SdQueryBar {
|
|
|
531
661
|
* closes, instead of the chip.
|
|
532
662
|
*/
|
|
533
663
|
openField(key: string, returnFocusTo?: HTMLElement | null): void;
|
|
534
|
-
/**
|
|
664
|
+
/**
|
|
665
|
+
* Clear-all button: the host's `onClearAll` when given, else the built-in clearAll(). With `applyOn: 'commit'` the
|
|
666
|
+
* built-in path applies once when it emptied a chip that had a value (R2 G-10).
|
|
667
|
+
*/
|
|
535
668
|
onClearClick(): void;
|
|
536
669
|
/** Swap the field of an existing chip — reset operator + value to the new field's defaults. */
|
|
537
670
|
changeFilterField(index: number, field: SdQueryField): void;
|
|
538
671
|
updateFilter(index: number, patch: Partial<Filter>): void;
|
|
539
672
|
updateFilterData(index: number, data: unknown): void;
|
|
540
673
|
removeFilter(index: number): void;
|
|
541
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* Empties the bar (handoff B2). Required chips stay as they are (operator and value); pinned chips stay, reset to their
|
|
676
|
+
* field's default operator and no value; other chips go.
|
|
677
|
+
*/
|
|
542
678
|
clearAll(): void;
|
|
543
679
|
setLogic(value: SdQueryLogic): void;
|
|
544
680
|
setSearch(value: string): void;
|
|
681
|
+
/** Clear button of the search box: empties the text and applies once (handoff 7.2). */
|
|
682
|
+
clearSearch(): void;
|
|
683
|
+
/** Escape in the search box: like the clear button when there is text; nothing on an empty box. */
|
|
684
|
+
onSearchEscape(event: Event): void;
|
|
545
685
|
/** Enter in the search box: applies the typed text too, unless a required field is still empty. */
|
|
546
686
|
applySearch(): void;
|
|
547
687
|
triggerApply(): void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { SdButton } from '@sdcorejs/angular/components/button';
|
|
3
|
+
import { SdUnwrapSignal } from '@sdcorejs/angular/utilities/models';
|
|
2
4
|
|
|
3
5
|
declare class SdQuickAction {
|
|
4
6
|
/**
|
|
@@ -11,4 +13,66 @@ declare class SdQuickAction {
|
|
|
11
13
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdQuickAction, "sd-quick-action", never, { "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "contained": { "alias": "contained"; "required": false; "isSignal": true; }; }, {}, never, ["[sdMessage]", "[sdAction]"], true, never>;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
/** Một lệnh trên thanh chọn nhiều: nút chạy thẳng, hoặc nút mở menu các lệnh con. */
|
|
17
|
+
type SdSelectionBarAction<T = any> = SdSelectionBarActionNormal<T> | SdSelectionBarActionChildren<T>;
|
|
18
|
+
interface SdSelectionBarActionNormal<T = any> {
|
|
19
|
+
variant: 'normal';
|
|
20
|
+
icon?: string;
|
|
21
|
+
fontSet?: SdUnwrapSignal<SdButton['fontSet']>;
|
|
22
|
+
tooltip?: SdUnwrapSignal<SdButton['tooltip']>;
|
|
23
|
+
title?: SdUnwrapSignal<SdButton['title']>;
|
|
24
|
+
color?: SdUnwrapSignal<SdButton['color']>;
|
|
25
|
+
type?: SdUnwrapSignal<SdButton['type']>;
|
|
26
|
+
click: (selectedItems?: T[]) => void;
|
|
27
|
+
}
|
|
28
|
+
interface SdSelectionBarActionChildren<T = any> {
|
|
29
|
+
variant: 'children';
|
|
30
|
+
icon?: string;
|
|
31
|
+
fontSet?: SdUnwrapSignal<SdButton['fontSet']>;
|
|
32
|
+
tooltip?: SdUnwrapSignal<SdButton['tooltip']>;
|
|
33
|
+
title?: SdUnwrapSignal<SdButton['title']>;
|
|
34
|
+
color?: SdUnwrapSignal<SdButton['color']>;
|
|
35
|
+
type?: SdUnwrapSignal<SdButton['type']>;
|
|
36
|
+
children: SdSelectionBarActionNormal<T>[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Thanh chọn nhiều nằm trong khung, dùng chung cho `sd-table` và `sd-tree`. Nội bộ thư viện (export `ɵ`):
|
|
41
|
+
* consumer dùng `selector.actions` của bảng hoặc cây, không dùng trực tiếp component này.
|
|
42
|
+
*
|
|
43
|
+
* why: bảng và cây từng có hai thanh khác nhau (cây dùng `sd-quick-action` nổi, đè lên nội dung). Thanh này
|
|
44
|
+
* không biết gì về hàng của bảng hay nút của cây: chủ sở hữu đưa vào message và danh sách lệnh đã lọc, rồi tự
|
|
45
|
+
* chạy lệnh khi nhận `action`.
|
|
46
|
+
*/
|
|
47
|
+
declare class SdSelectionBar {
|
|
48
|
+
#private;
|
|
49
|
+
readonly opened: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
readonly message: _angular_core.InputSignal<string | null | undefined>;
|
|
51
|
+
readonly actions: _angular_core.InputSignal<readonly SdSelectionBarAction[] | null | undefined>;
|
|
52
|
+
/** Gốc autoId của chủ sở hữu (`components-table-<x>`, `components-tree-<x>`). Trống: không sinh autoId. */
|
|
53
|
+
readonly autoId: _angular_core.InputSignal<string | null | undefined>;
|
|
54
|
+
/** Phần giữa autoId của từng lệnh: `<autoId>-<prefix>-<index>`. */
|
|
55
|
+
readonly actionAutoIdPrefix: _angular_core.InputSignal<string>;
|
|
56
|
+
/** Người dùng chọn một lệnh (nút trực tiếp, mục trong "Thêm" hoặc lệnh con). */
|
|
57
|
+
readonly action: _angular_core.OutputEmitterRef<SdSelectionBarActionNormal<any>>;
|
|
58
|
+
readonly clear: _angular_core.OutputEmitterRef<void>;
|
|
59
|
+
/** Bề rộng của thanh nhỏ hơn 600px. */
|
|
60
|
+
readonly narrow: _angular_core.WritableSignal<boolean>;
|
|
61
|
+
readonly directActions: _angular_core.Signal<{
|
|
62
|
+
action: SdSelectionBarAction;
|
|
63
|
+
index: number;
|
|
64
|
+
}[]>;
|
|
65
|
+
readonly overflowActions: _angular_core.Signal<{
|
|
66
|
+
action: SdSelectionBarAction;
|
|
67
|
+
index: number;
|
|
68
|
+
}[]>;
|
|
69
|
+
readonly moreLabel: _angular_core.Signal<string>;
|
|
70
|
+
readonly clearLabel: _angular_core.Signal<string>;
|
|
71
|
+
constructor();
|
|
72
|
+
actionAutoId(index: number, child?: number): string | null;
|
|
73
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSelectionBar, never>;
|
|
74
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSelectionBar, "sd-selection-bar", never, { "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "actionAutoIdPrefix": { "alias": "actionAutoIdPrefix"; "required": false; "isSignal": true; }; }, { "action": "action"; "clear": "clear"; }, never, never, true, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { SdQuickAction, SdSelectionBar as ɵSdSelectionBar };
|
|
78
|
+
export type { SdSelectionBarAction as ɵSdSelectionBarAction, SdSelectionBarActionChildren as ɵSdSelectionBarActionChildren, SdSelectionBarActionNormal as ɵSdSelectionBarActionNormal };
|