@sdcorejs/angular 21.3.1 → 21.3.3
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 +25 -5
- package/assets/THEME.md +289 -5
- package/assets/licenses/tiptap-oss-NOTICES.txt +332 -0
- package/assets/scss/ckeditor5.scss +2 -88
- package/assets/scss/core/_control.scss +39 -0
- package/assets/scss/core/form.scss +444 -45
- package/assets/scss/core/view.scss +24 -0
- package/assets/scss/editor-content.scss +173 -0
- package/assets/scss/sd-core.scss +1 -0
- package/assets/scss/themes/_component-tokens.scss +123 -32
- package/assets/scss/themes/_material-tokens.scss +112 -0
- package/assets/scss/themes/_presets.scss +25 -0
- package/assets/scss/themes/_scales.scss +10 -0
- package/assets/scss/themes/_semantic.scss +13 -0
- package/assets/scss/themes/default.scss +8 -2
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
- package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-avatar.mjs +142 -11
- package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-badge.mjs +542 -24
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +31 -3
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
- package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components-editor.mjs +457 -756
- package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2118 -1159
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +177 -283
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
- package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-operator.mjs +260 -43
- package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- 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-splitter.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +559 -94
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1001 -119
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
- package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +887 -174
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
- package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-window.mjs +484 -0
- package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs +1 -0
- package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +457 -125
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +414 -122
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +79 -13
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +75 -18
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
- package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +56 -6
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +54 -7
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
- package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +87 -33
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-time.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 +1745 -22
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs +478 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs +214 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs +277 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs +1556 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
- package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +2055 -37
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs +130 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs +131 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs +467 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs +522 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs +293 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs +128 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs +357 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
- package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
- package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
- package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
- package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
- package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
- package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
- package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services.mjs +1 -0
- package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
- package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
- package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
- package/modules/pattern/README.md +76 -0
- package/modules/pattern/docs/detail.md +237 -0
- package/modules/pattern/docs/drawer.md +484 -0
- package/modules/pattern/docs/flow.md +631 -0
- package/modules/pattern/docs/form.md +518 -0
- package/modules/pattern/docs/header-actions.md +342 -0
- package/modules/pattern/docs/list.md +247 -0
- package/modules/pattern/docs/relation.md +180 -0
- package/modules/pattern/docs/select.md +206 -0
- package/modules/pattern/docs/split.md +350 -0
- package/modules/pattern/docs/states.md +168 -0
- package/modules/pattern/features/approval/entity.resolver.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
- package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
- package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
- package/modules/pattern/features/approval/routes.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -0
- package/modules/pattern/features/approval/services/approval.service.ts +23 -0
- package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -0
- package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -0
- package/modules/pattern/features/category/pages/list/list.component.html +20 -0
- package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
- package/modules/pattern/features/category/routes.ts +42 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -0
- package/modules/pattern/features/category/services/category.service.ts +36 -0
- package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
- package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
- package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
- package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
- package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
- package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
- package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
- package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
- package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
- package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -0
- package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
- package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
- package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
- package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
- package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
- package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
- package/modules/pattern/features/order/pages/list/list.component.html +38 -0
- package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -0
- package/modules/pattern/features/partner/services/partner.service.ts +17 -0
- package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
- package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
- package/modules/pattern/features/product/pages/list/list.component.html +30 -0
- package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
- package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/package.json +44 -7
- package/types/sdcorejs-angular-components-avatar.d.ts +67 -2
- package/types/sdcorejs-angular-components-badge.d.ts +206 -6
- package/types/sdcorejs-angular-components-button.d.ts +20 -1
- package/types/sdcorejs-angular-components-ckeditor-styles.d.ts +3 -18
- package/types/sdcorejs-angular-components-editor-engine.d.ts +246 -0
- package/types/sdcorejs-angular-components-editor.d.ts +20 -17
- package/types/sdcorejs-angular-components-file-explorer.d.ts +4 -2
- package/types/sdcorejs-angular-components-form-generic.d.ts +246 -35
- package/types/sdcorejs-angular-components-mini-editor.d.ts +33 -70
- package/types/sdcorejs-angular-components-modal-resizable.d.ts +1 -124
- package/types/sdcorejs-angular-components-operator.d.ts +137 -8
- package/types/sdcorejs-angular-components-section.d.ts +13 -1
- package/types/sdcorejs-angular-components-splitter.d.ts +1 -1
- package/types/sdcorejs-angular-components-tab-router.d.ts +74 -19
- package/types/sdcorejs-angular-components-table.d.ts +210 -18
- package/types/sdcorejs-angular-components-upload-file.d.ts +181 -21
- package/types/sdcorejs-angular-components-window.d.ts +81 -0
- package/types/sdcorejs-angular-components.d.ts +1 -0
- package/types/sdcorejs-angular-configurations.d.ts +8 -1
- package/types/sdcorejs-angular-forms-autocomplete.d.ts +5 -0
- package/types/sdcorejs-angular-forms-chip-calendar.d.ts +163 -18
- package/types/sdcorejs-angular-forms-chip.d.ts +136 -26
- package/types/sdcorejs-angular-forms-date-range.d.ts +24 -2
- package/types/sdcorejs-angular-forms-date.d.ts +23 -2
- package/types/sdcorejs-angular-forms-directives.d.ts +47 -2
- package/types/sdcorejs-angular-forms-input-number.d.ts +23 -2
- package/types/sdcorejs-angular-forms-input.d.ts +23 -2
- package/types/sdcorejs-angular-forms-models.d.ts +38 -3
- package/types/sdcorejs-angular-forms-select.d.ts +32 -2
- package/types/sdcorejs-angular-i18n.d.ts +344 -2
- package/types/sdcorejs-angular-modules-generic.d.ts +316 -0
- package/types/sdcorejs-angular-modules-icon.d.ts +37 -6
- package/types/sdcorejs-angular-modules-layout.d.ts +622 -89
- package/types/sdcorejs-angular-modules-pattern.d.ts +50 -0
- package/types/sdcorejs-angular-modules.d.ts +1 -0
- package/types/sdcorejs-angular-pipes.d.ts +2 -0
- package/types/sdcorejs-angular-services-date-time.d.ts +57 -0
- package/types/sdcorejs-angular-services-storage.d.ts +8 -1
- package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
- package/types/sdcorejs-angular-services.d.ts +1 -0
- package/types/sdcorejs-angular-utilities-read-state.d.ts +2 -0
- package/types/sdcorejs-angular-utilities-theme.d.ts +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SdEditorMentionItem, SdEditorMentionFeed, SdEditorEngineOptions, SdEditorImportDiagnostic, SdEditorEngine, SdEditorSourceChangeReason } from '@sdcorejs/angular/components/editor-engine';
|
|
2
|
+
export { SdEditorImportDiagnostic, SdEditorImportError, SdEditorMentionFeed, SdEditorMentionItem } from '@sdcorejs/angular/components/editor-engine';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { OnDestroy } from '@angular/core';
|
|
4
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
|
|
7
|
+
/** @deprecated Use SdEditorMentionItem. CK DOM renderers are unsupported. */
|
|
8
|
+
type MentionFeedObjectItem = SdEditorMentionItem;
|
|
7
9
|
type SdMiniEditorOutputFormat = 'html' | 'markdown';
|
|
8
10
|
interface SdMiniEditorMentionConfig {
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
feeds?: MentionFeed[];
|
|
11
|
+
/** Library-owned feed arrays/functions. CK itemRenderer is unsupported and diagnosed. */
|
|
12
|
+
feeds?: SdEditorMentionFeed[];
|
|
13
13
|
/** Custom render function cho giá trị mention khi chèn vào editor
|
|
14
14
|
* Trả về object với text và các attributes tùy chỉnh
|
|
15
15
|
*/
|
|
16
|
+
/** @deprecated This previously unused callback has no rendering behavior. */
|
|
16
17
|
valueRender?: (item: MentionFeedObjectItem) => {
|
|
17
18
|
text: string;
|
|
18
19
|
attributes?: Record<string, string>;
|
|
@@ -43,96 +44,58 @@ interface SdMiniEditorOption {
|
|
|
43
44
|
/** Callback khi mention được chọn */
|
|
44
45
|
onMentionSelect?: (item: SdMiniEditorMentionItem) => void;
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
47
|
+
/** @deprecated Use component options. CK plugins/config/licenseKey are unsupported. */
|
|
48
|
+
type SdMiniEditorConfig = SdEditorEngineOptions;
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
* Sử dụng CKEditor với chế độ đơn giản (bold, italic, link)
|
|
53
|
-
* Hỗ trợ mention và output format (html/markdown)
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```html
|
|
57
|
-
* <sd-mini-editor
|
|
58
|
-
* [option]="editorOption"
|
|
59
|
-
* [(ngModel)]="content"
|
|
60
|
-
* (contentChange)="onContentChange($event)"
|
|
61
|
-
* >
|
|
62
|
-
* </sd-mini-editor>
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
declare class SdMiniEditor implements ControlValueAccessor, OnDestroy {
|
|
50
|
+
/** Compact Core toolbar with the same document schema as SdEditor. */
|
|
51
|
+
declare class SdMiniEditor implements ControlValueAccessor, OnChanges, OnDestroy {
|
|
66
52
|
#private;
|
|
67
|
-
/** Cấu hình option cho editor */
|
|
68
53
|
option: SdMiniEditorOption;
|
|
69
|
-
get maxEditorHeight(): string | undefined;
|
|
70
|
-
/** NgModel binding - nội dung HTML/Markdown */
|
|
71
54
|
value: string;
|
|
55
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
72
56
|
readonly valueChange: _angular_core.OutputEmitterRef<string>;
|
|
73
|
-
/** Event emitter khi content thay đổi */
|
|
74
57
|
readonly contentChange: _angular_core.OutputEmitterRef<string>;
|
|
75
|
-
/** Event emitter khi blur */
|
|
76
58
|
readonly blur: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
77
|
-
/** Event emitter khi focus */
|
|
78
59
|
readonly focus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
79
|
-
|
|
80
|
-
readonly
|
|
81
|
-
|
|
82
|
-
|
|
60
|
+
readonly importWarning: _angular_core.OutputEmitterRef<readonly SdEditorImportDiagnostic[]>;
|
|
61
|
+
readonly importDiagnostics: _angular_core.Signal<readonly SdEditorImportDiagnostic[]>;
|
|
62
|
+
readonly surfaceContent: _angular_core.WritableSignal<string>;
|
|
63
|
+
readonly effectiveDisabled: _angular_core.Signal<boolean>;
|
|
64
|
+
get maxEditorHeight(): string | undefined;
|
|
83
65
|
constructor();
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
66
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
67
|
+
onEngineReady(engine: SdEditorEngine): void;
|
|
68
|
+
/** Cancel a stale throttle window before replacing an authoritative source. */
|
|
69
|
+
onSourceChange(reason?: SdEditorSourceChangeReason): void;
|
|
70
|
+
onFormatChange(value: string | undefined): void;
|
|
71
|
+
onSurfaceChange(value: string): void;
|
|
72
|
+
onCompositionChange(composing: boolean): void;
|
|
73
|
+
onSurfaceFocus(event: FocusEvent): void;
|
|
74
|
+
onSurfaceBlur(event: FocusEvent): void;
|
|
75
|
+
onDiagnostics(diagnostics: readonly SdEditorImportDiagnostic[]): void;
|
|
76
|
+
onMentionSelected(item: SdEditorMentionItem): void;
|
|
92
77
|
setContent(content: string): void;
|
|
93
|
-
/**
|
|
94
|
-
* Get nội dung từ editor
|
|
95
|
-
*/
|
|
96
78
|
getContent(): string;
|
|
97
|
-
/**
|
|
98
|
-
* Nội dung dạng HTML (đã lọc), bất kể `outputFormat`.
|
|
99
|
-
*/
|
|
100
79
|
getHtmlContent(): string;
|
|
101
|
-
/**
|
|
102
|
-
* Focus vào editor
|
|
103
|
-
*/
|
|
104
80
|
focusEditor(): void;
|
|
105
|
-
/**
|
|
106
|
-
* Insert mention vào vị trí con trỏ hiện tại
|
|
107
|
-
*/
|
|
108
81
|
insertMention(item: {
|
|
109
82
|
id: string;
|
|
110
83
|
name: string;
|
|
111
84
|
marker?: string;
|
|
112
85
|
}): void;
|
|
113
|
-
/**
|
|
114
|
-
* Get danh sách mentions trong nội dung
|
|
115
|
-
*/
|
|
116
86
|
getMentions(): {
|
|
117
87
|
id: string;
|
|
118
88
|
name: string;
|
|
119
89
|
marker: string;
|
|
120
90
|
}[];
|
|
121
|
-
/**
|
|
122
|
-
* ControlValueAccessor: Write value
|
|
123
|
-
*/
|
|
124
91
|
writeValue(value: string): void;
|
|
125
|
-
/**
|
|
126
|
-
* ControlValueAccessor: Register change callback
|
|
127
|
-
*/
|
|
128
92
|
registerOnChange(fn: (value: string) => void): void;
|
|
129
|
-
/**
|
|
130
|
-
* ControlValueAccessor: Register touched callback
|
|
131
|
-
*/
|
|
132
93
|
registerOnTouched(fn: () => void): void;
|
|
94
|
+
setDisabledState(disabled: boolean): void;
|
|
95
|
+
ngOnDestroy(): void;
|
|
133
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdMiniEditor, never>;
|
|
134
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdMiniEditor, "sd-mini-editor", never, { "option": { "alias": "option"; "required": true; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "contentChange": "contentChange"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdMiniEditor, "sd-mini-editor", never, { "option": { "alias": "option"; "required": true; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "contentChange": "contentChange"; "blur": "blur"; "focus": "focus"; "importWarning": "importWarning"; }, never, never, true, never>;
|
|
135
98
|
}
|
|
136
99
|
|
|
137
100
|
export { SdMiniEditor };
|
|
138
|
-
export type { SdMiniEditorConfig, SdMiniEditorMentionConfig, SdMiniEditorMentionItem, SdMiniEditorOption, SdMiniEditorOutputFormat };
|
|
101
|
+
export type { MentionFeedObjectItem, SdMiniEditorConfig, SdMiniEditorMentionConfig, SdMiniEditorMentionItem, SdMiniEditorOption, SdMiniEditorOutputFormat };
|
|
@@ -1,124 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { CdkPortal } from '@angular/cdk/portal';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* `<sd-modal-resizable>` — right-docked, non-modal panel that can be minimized, expanded or pushed
|
|
6
|
-
* fullscreen. Several panels stack side by side along the right edge of the viewport, so the user
|
|
7
|
-
* can keep multiple records open at once while still working with the page behind them.
|
|
8
|
-
*
|
|
9
|
-
* Use it for side-by-side comparison / inspector workflows. Use `<sd-modal>` when the task is
|
|
10
|
-
* blocking, and `<sd-side-drawer>` when a single overlay with a backdrop is enough.
|
|
11
|
-
*
|
|
12
|
-
* NOTE ON DOCS: this component deliberately has **no** sibling `sd-modal-resizable.md`. Every `*.md`
|
|
13
|
-
* under the library is swept into `published-docs/<version>/index.json` by `scripts/collect-docs.mjs`,
|
|
14
|
-
* and `scripts/generate-showcase-example-sources.test.mjs` asserts that list is 1:1 with the
|
|
15
|
-
* `publishedDocId` set in the showcase documentation registry. A published doc with no showcase page
|
|
16
|
-
* therefore turns that release guard red. Keep the reference here until the component ships a
|
|
17
|
-
* showcase demo + registry entry; only then add the `.md`.
|
|
18
|
-
*
|
|
19
|
-
* ```ts
|
|
20
|
-
* import { SdModalResizable } from '@sdcorejs/angular/components/modal-resizable';
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* ```html
|
|
24
|
-
* <sd-button title="Open detail" type="fill" color="primary" (click)="panel.open()"></sd-button>
|
|
25
|
-
*
|
|
26
|
-
* <sd-modal-resizable #panel width="520px">
|
|
27
|
-
* <span sdTitle>Đơn hàng #1024</span>
|
|
28
|
-
*
|
|
29
|
-
* <div sdBody class="panel-body">
|
|
30
|
-
* <sd-section icon="receipt" title="Thông tin chung">
|
|
31
|
-
* <sd-section-item label="Khách hàng">Nguyen Van An</sd-section-item>
|
|
32
|
-
* </sd-section>
|
|
33
|
-
* </div>
|
|
34
|
-
*
|
|
35
|
-
* <sd-button sdFooterRight type="text" title="Đóng" (click)="panel.close()"></sd-button>
|
|
36
|
-
* </sd-modal-resizable>
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* ### Slots
|
|
40
|
-
* | Selector | Where it renders |
|
|
41
|
-
* | ----------------- | ------------------------- |
|
|
42
|
-
* | `[sdTitle]` | Header title area. |
|
|
43
|
-
* | `[sdBody]` | Scrollable content area. |
|
|
44
|
-
* | `[sdFooterLeft]` | Footer left action group. |
|
|
45
|
-
* | `[sdFooterRight]` | Footer right action group.|
|
|
46
|
-
*
|
|
47
|
-
* Header, body and footer only render while the panel is open.
|
|
48
|
-
*
|
|
49
|
-
* ### Panel stacking
|
|
50
|
-
* The panel is portalled onto `document.body` (via `CdkPortal` + `DomPortalOutlet`), so laying panels
|
|
51
|
-
* out is a concern shared by all live instances rather than by a single view. Arrangement is scoped
|
|
52
|
-
* through the root-provided `SdModalResizableRegistry`: each instance registers its panel id on
|
|
53
|
-
* construction and unregisters it on destroy. `open`, `close`, `minimize`, `maximize` and
|
|
54
|
-
* `toggleMaximum` re-run the arrangement and rewrite inline `width` / `right` **only on registered,
|
|
55
|
-
* still-mounted panels**, in registration order. Consequences worth knowing:
|
|
56
|
-
* - Markup of your own that happens to carry the `.modal-resizable` class is **not** touched.
|
|
57
|
-
* (Earlier builds ran `document.querySelectorAll('.modal-resizable')` and rewrote every match.)
|
|
58
|
-
* - A destroyed panel immediately stops taking up a slot for the instances that outlive it.
|
|
59
|
-
* - Panels marked `c-closed`, and expanded panels with no captured `data-width`, are skipped.
|
|
60
|
-
*
|
|
61
|
-
* ### Lifecycle / teardown
|
|
62
|
-
* `open()`, `close()` and the arrangement pass each schedule a short `setTimeout` (100ms / 100ms /
|
|
63
|
-
* 200ms) that mutates DOM. All of them are tracked and cleared in `DestroyRef.onDestroy`, together
|
|
64
|
-
* with unregistering from the registry and destroying the portal view. Destroying the component
|
|
65
|
-
* mid-animation cannot run layout work against a detached panel.
|
|
66
|
-
*
|
|
67
|
-
* ### Anti-patterns
|
|
68
|
-
* - Rendering it inside a scroll container and expecting it to be clipped — it lives on `<body>`.
|
|
69
|
-
* - Reusing the `.modal-resizable` class on your own elements to "join" the stack; register a real
|
|
70
|
-
* component instead.
|
|
71
|
-
* - Writing inline `width` / `right` on a panel yourself — the next arrangement pass overwrites both.
|
|
72
|
-
*
|
|
73
|
-
* ### Tests
|
|
74
|
-
* `src/modal-resizable.component.spec.ts` — portal attach, open/close/minimize/maximize math,
|
|
75
|
-
* loading, editing, timer teardown, registry scoping. Run:
|
|
76
|
-
* `npx ng test sdcorejs-angular --watch=false --browsers=ChromeHeadless --include='projects/sdcorejs-angular/components/modal-resizable/src/modal-resizable.component.spec.ts'`
|
|
77
|
-
*
|
|
78
|
-
* ### Related
|
|
79
|
-
* `<sd-modal>` (blocking dialog / bottom-sheet), `<sd-side-drawer>` (single right-side overlay with
|
|
80
|
-
* a body scroll lock), `SdLoadingService` (powers `startLoading()` / `stopLoading()`).
|
|
81
|
-
*/
|
|
82
|
-
declare class SdModalResizable {
|
|
83
|
-
#private;
|
|
84
|
-
/** Generated DOM id of the panel element (`I<uuid>`). */
|
|
85
|
-
readonly id: string;
|
|
86
|
-
readonly portal: _angular_core.Signal<CdkPortal>;
|
|
87
|
-
/** Marks the panel as editable. Bare attribute = `true`. Default `false`. */
|
|
88
|
-
readonly editable: _angular_core.InputSignalWithTransform<boolean, boolean | "">;
|
|
89
|
-
/** CSS width used while the panel is expanded (not a minimum). Default `'480px'`. */
|
|
90
|
-
readonly width: _angular_core.InputSignal<string>;
|
|
91
|
-
/** Emitted by `toggleEditable()` with the new editing state. */
|
|
92
|
-
readonly editingChanged: _angular_core.OutputEmitterRef<boolean>;
|
|
93
|
-
readonly isEditing: _angular_core.WritableSignal<boolean>;
|
|
94
|
-
readonly isOpened: _angular_core.WritableSignal<boolean>;
|
|
95
|
-
readonly isHover: _angular_core.WritableSignal<boolean>;
|
|
96
|
-
readonly isLoading: _angular_core.WritableSignal<boolean>;
|
|
97
|
-
readonly isMinimum: _angular_core.WritableSignal<boolean>;
|
|
98
|
-
readonly isMaximum: _angular_core.WritableSignal<boolean>;
|
|
99
|
-
constructor();
|
|
100
|
-
/** Opens the panel, captures its rendered width, and expands it. */
|
|
101
|
-
open: () => void;
|
|
102
|
-
/** Collapses the panel to zero width and stops loading. */
|
|
103
|
-
close: () => void;
|
|
104
|
-
/** Shrinks the panel to the 300px minimum strip. */
|
|
105
|
-
minimize: () => void;
|
|
106
|
-
/** Restores the panel to its expanded width. */
|
|
107
|
-
maximize: () => void;
|
|
108
|
-
/** Toggles fullscreen (`calc(100% - 16px)`). */
|
|
109
|
-
toggleMaximum: () => void;
|
|
110
|
-
/** Drives the scoped loading overlay through `SdLoadingService`. */
|
|
111
|
-
startLoading: () => void;
|
|
112
|
-
/** Stops the scoped loading overlay. */
|
|
113
|
-
stopLoading: () => void;
|
|
114
|
-
/** Flips `isEditing` and emits `editingChanged`. */
|
|
115
|
-
toggleEditable(): void;
|
|
116
|
-
/** Hover state hook bound in the template. */
|
|
117
|
-
onFocus: () => void;
|
|
118
|
-
/** Hover state hook bound in the template. */
|
|
119
|
-
onBlur: () => void;
|
|
120
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdModalResizable, never>;
|
|
121
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdModalResizable, "sd-modal-resizable", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "editingChanged": "editingChanged"; }, never, ["[sdTitle]", "[sdBody]", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export { SdModalResizable };
|
|
1
|
+
export { /** @deprecated Use SdWindow from @sdcorejs/angular/components/window. This alias has the same component identity. */ SdWindow as SdModalResizable } from '@sdcorejs/angular/components/window';
|
|
@@ -1,12 +1,61 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ModelSignal, Signal } from '@angular/core';
|
|
3
|
+
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
2
4
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import { Operator } from '@sdcorejs/utils/models';
|
|
5
|
+
import { Operator, Size } from '@sdcorejs/utils/models';
|
|
6
|
+
import * as _sdcorejs_angular_components_operator from '@sdcorejs/angular/components/operator';
|
|
7
|
+
import { MenuCloseReason } from '@angular/material/menu';
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
/** Inner SVG markup (hình phễu) dùng khi chưa chọn operator. */
|
|
10
|
+
declare const ɵSD_OPERATOR_FALLBACK_ICON = "<path d=\"M4 5h16l-6.5 7.5V19l-3 2v-8.5z\"/>";
|
|
11
|
+
/** Cỡ và độ dày nét của một glyph operator (handoff sd-operator mục 3.1 và 4). */
|
|
12
|
+
interface ɵSdOperatorGlyph {
|
|
13
|
+
readonly size: number;
|
|
14
|
+
readonly stroke: number;
|
|
15
|
+
}
|
|
16
|
+
/** Glyph theo cỡ trigger: nét dày dần khi glyph nhỏ lại để vẫn đọc được (C7). Hàng menu dùng cỡ `md`. */
|
|
17
|
+
declare const ɵSD_OPERATOR_GLYPHS: {
|
|
18
|
+
readonly xs: {
|
|
19
|
+
readonly size: 14;
|
|
20
|
+
readonly stroke: 2.5;
|
|
21
|
+
};
|
|
22
|
+
readonly sm: {
|
|
23
|
+
readonly size: 16;
|
|
24
|
+
readonly stroke: 2.25;
|
|
25
|
+
};
|
|
26
|
+
readonly md: {
|
|
27
|
+
readonly size: 18;
|
|
28
|
+
readonly stroke: 2.1;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
interface ɵSdOperatorItem {
|
|
6
32
|
value: Operator;
|
|
7
33
|
icon: SafeHtml;
|
|
8
34
|
display: string;
|
|
35
|
+
/** Mục mở đầu một họ khác mục trước: menu vẽ đường chia phía trên. */
|
|
36
|
+
separated: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** Icon, nhãn đã dịch và danh sách item của các operator — dùng chung cho `sd-operator` và chip operator. */
|
|
39
|
+
interface ɵSdOperatorResolver {
|
|
40
|
+
/**
|
|
41
|
+
* Operator cho phép → item theo đúng thứ tự truyền vào (không sắp xếp lại); operator không có trong `OPERATORS` bị
|
|
42
|
+
* bỏ. Icon ở cỡ hàng menu.
|
|
43
|
+
*/
|
|
44
|
+
items(operators: readonly Operator[]): ɵSdOperatorItem[];
|
|
45
|
+
/** Icon SVG của operator ở `glyph` (mặc định cỡ `md`), hoặc hình phễu khi chưa chọn / không tìm thấy. */
|
|
46
|
+
icon(value: Operator | undefined, glyph?: ɵSdOperatorGlyph): SafeHtml;
|
|
47
|
+
/** Nhãn đã dịch, '' khi chưa chọn / không tìm thấy. */
|
|
48
|
+
label(value: Operator | undefined): string;
|
|
9
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Tạo resolver cho bảng `OPERATORS` dùng chung. Gọi trong injection context.
|
|
52
|
+
*
|
|
53
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
54
|
+
*/
|
|
55
|
+
declare function ɵsdOperatorResolver(): ɵSdOperatorResolver;
|
|
56
|
+
|
|
57
|
+
/** Cỡ trigger của `sd-operator`: `xs` glyph trơn 14px (vùng bấm 24px), `sm` chip 24px, `md` chip 28px. */
|
|
58
|
+
type SdOperatorSize = 'xs' | 'sm' | 'md';
|
|
10
59
|
declare class SdOperator {
|
|
11
60
|
#private;
|
|
12
61
|
static readonly FALLBACK_ICON = "<path d=\"M4 5h16l-6.5 7.5V19l-3 2v-8.5z\"/>";
|
|
@@ -14,23 +63,103 @@ declare class SdOperator {
|
|
|
14
63
|
model: _angular_core.ModelSignal<Operator | undefined>;
|
|
15
64
|
/** Danh sách operator cho phép, giữ nguyên thứ tự truyền vào. */
|
|
16
65
|
operators: _angular_core.InputSignal<Operator[]>;
|
|
17
|
-
/** Vô hiệu hóa trigger (không mở được menu). */
|
|
66
|
+
/** Vô hiệu hóa trigger (không mở được menu). Thắng `readonly`. */
|
|
18
67
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
68
|
/** data-autoId cho e2e selector. */
|
|
20
69
|
autoId: _angular_core.InputSignal<string | undefined>;
|
|
70
|
+
/** Cỡ trigger: `xs` glyph trơn có vùng bấm 24px, `sm` / `md` là chip giống chip operator trong control. */
|
|
71
|
+
size: _angular_core.InputSignalWithTransform<SdOperatorSize, SdOperatorSize | null | undefined>;
|
|
72
|
+
/** Chỉ hiện glyph và tooltip: không mở menu, không nhận Tab (chip chỉ-xem của query-bar). */
|
|
73
|
+
readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
74
|
+
/** Điều kiện đang có giá trị: chip đổi sang tông primary. */
|
|
75
|
+
active: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
76
|
+
/** Hiện mã operator (`EQUAL`…) sau nhãn trong menu. */
|
|
77
|
+
showCode: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
78
|
/** Allowed operators map sang { value, icon, display } theo thứ tự input. */
|
|
22
|
-
readonly items: _angular_core.Signal
|
|
23
|
-
/** Icon SVG ở trigger — fallback phễu khi model chưa set / không tìm thấy. */
|
|
79
|
+
readonly items: _angular_core.Signal<ɵSdOperatorItem[]>;
|
|
80
|
+
/** Icon SVG của operator hiện tại ở cỡ trigger — fallback phễu khi model chưa set / không tìm thấy. */
|
|
24
81
|
readonly currentIcon: _angular_core.Signal<SafeHtml>;
|
|
25
82
|
/** Tooltip = i18n label của operator hiện tại ('' khi chưa chọn). */
|
|
26
83
|
readonly currentLabel: _angular_core.Signal<string>;
|
|
27
|
-
|
|
84
|
+
/** `readonly` chỉ có hiệu lực khi không `disabled`. */
|
|
85
|
+
readonly isReadonly: _angular_core.Signal<boolean>;
|
|
86
|
+
private readonly chip;
|
|
28
87
|
/** Open the operator menu programmatically (used by the query-bar build flow). */
|
|
29
88
|
open(): void;
|
|
30
89
|
/** Chọn operator từ menu. */
|
|
31
90
|
select(value: Operator): void;
|
|
32
91
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdOperator, never>;
|
|
33
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdOperator, "sd-operator", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, never, true, never>;
|
|
92
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdOperator, "sd-operator", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "showCode": { "alias": "showCode"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Chip operator đặt làm `matPrefix` trong ô của sd-input, sd-input-number, sd-select, sd-date, sd-date-range
|
|
97
|
+
* (thiết kế đợt 2 · G). Dùng chung bảng `OPERATORS`, i18n và icon với `sd-operator`; menu dùng panel của mục D.
|
|
98
|
+
*
|
|
99
|
+
* Bàn phím: Enter / Space / Alt+↓ mở menu; chọn xong phát `chosen` để control đưa focus về ô nhập; Escape
|
|
100
|
+
* đóng menu và trả focus về chip.
|
|
101
|
+
*
|
|
102
|
+
* `sd-operator` cũng render chip này cho trigger của nó (`standalone`): không cách mép ô, chọn xong focus về chip, và
|
|
103
|
+
* thêm cỡ `xs` (glyph trơn, vùng bấm 24px) — handoff sd-operator mục 3.
|
|
104
|
+
*
|
|
105
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
106
|
+
*/
|
|
107
|
+
declare class ɵSdOperatorChip {
|
|
108
|
+
#private;
|
|
109
|
+
/** Operator cho phép, theo thứ tự hiển thị. */
|
|
110
|
+
readonly operators: _angular_core.InputSignal<readonly Operator[]>;
|
|
111
|
+
/** Operator hiện tại. */
|
|
112
|
+
readonly operator: ModelSignal<Operator | undefined>;
|
|
113
|
+
/** Cỡ của ô chứa chip; `lg` dùng hình học của `md`. `xs` là glyph trơn của `sd-operator`. */
|
|
114
|
+
readonly size: _angular_core.InputSignal<"xs" | Size>;
|
|
115
|
+
/** Ô đang có giá trị: chip đổi sang tông primary. */
|
|
116
|
+
readonly hasValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
117
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
118
|
+
readonly autoId: _angular_core.InputSignal<string | undefined>;
|
|
119
|
+
/** Hiện mã operator (`EQUAL`…) sau nhãn trong menu (B1). */
|
|
120
|
+
readonly showCode: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
121
|
+
/** Trigger của `sd-operator`: không cách mép ô, chọn xong focus về chip. */
|
|
122
|
+
readonly standalone: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
/** Đã chọn một operator trong menu (control đưa focus về ô nhập). */
|
|
124
|
+
readonly chosen: _angular_core.OutputEmitterRef<Operator>;
|
|
125
|
+
protected readonly items: Signal<_sdcorejs_angular_components_operator.ɵSdOperatorItem[]>;
|
|
126
|
+
protected readonly currentIcon: Signal<_angular_platform_browser.SafeHtml>;
|
|
127
|
+
protected readonly currentLabel: Signal<string>;
|
|
128
|
+
protected readonly ariaLabel: Signal<string>;
|
|
129
|
+
protected readonly menuOpen: _angular_core.WritableSignal<boolean>;
|
|
130
|
+
private readonly trigger;
|
|
131
|
+
private readonly menu;
|
|
132
|
+
private readonly button;
|
|
133
|
+
/** Mở menu bằng code (dùng cho Alt+↓ và spec). */
|
|
134
|
+
open(): void;
|
|
135
|
+
/** Focus nút chip. */
|
|
136
|
+
focus(): void;
|
|
137
|
+
protected onMenuOpened(): void;
|
|
138
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
139
|
+
protected choose(value: Operator): void;
|
|
140
|
+
protected onClosed(reason: MenuCloseReason): void;
|
|
141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ɵSdOperatorChip, never>;
|
|
142
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ɵSdOperatorChip, "sd-operator-chip", never, { "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hasValue": { "alias": "hasValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "showCode": { "alias": "showCode"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "chosen": "chosen"; }, never, never, true, never>;
|
|
34
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Giá trị của control có "đang có" không, để chip đổi tông: `null`, `undefined`, `''`, mảng rỗng và object mà
|
|
146
|
+
* mọi trường đều trống (vd khoảng ngày `{ from: null, to: null }`) là chưa có.
|
|
147
|
+
*
|
|
148
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
149
|
+
*/
|
|
150
|
+
declare function ɵsdOperatorHasValue(value: unknown): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* `NULL` / `NOT_NULL` không cần giá trị: control khoá ô nhập và xoá giá trị khi chọn một trong hai.
|
|
153
|
+
*
|
|
154
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
155
|
+
*/
|
|
156
|
+
declare function ɵsdIsNoDataOperator(operator: Operator | null | undefined): boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Có đúng một operator thì control dùng luôn operator đó và không hiện chip. Gọi trong injection context.
|
|
159
|
+
*
|
|
160
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
161
|
+
*/
|
|
162
|
+
declare function ɵsdSingleOperator(operators: Signal<readonly Operator[]>, operator: ModelSignal<Operator | undefined>): void;
|
|
35
163
|
|
|
36
|
-
export { SdOperator };
|
|
164
|
+
export { SdOperator, ɵSD_OPERATOR_FALLBACK_ICON, ɵSD_OPERATOR_GLYPHS, ɵSdOperatorChip, ɵsdIsNoDataOperator, ɵsdOperatorHasValue, ɵsdOperatorResolver, ɵsdSingleOperator };
|
|
165
|
+
export type { SdOperatorSize, ɵSdOperatorGlyph, ɵSdOperatorItem, ɵSdOperatorResolver };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
2
3
|
import { Color } from '@sdcorejs/utils/models';
|
|
3
4
|
import { SdIconShape } from '@sdcorejs/angular/modules/icon';
|
|
4
5
|
|
|
@@ -33,4 +34,15 @@ declare class SdSectionItem {
|
|
|
33
34
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSectionItem, "sd-section-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; }, {}, never, ["[itemLeft]", "*"], true, never>;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
/**
|
|
38
|
+
* A container that lists the sections inside it, such as the table of contents of `sd-page`. Every outermost
|
|
39
|
+
* `sd-section` below the provider registers itself, also one inside a child component of the container.
|
|
40
|
+
*/
|
|
41
|
+
interface SdSectionRegistry {
|
|
42
|
+
/** Adds a section; returns the function that removes it. */
|
|
43
|
+
register(section: SdSection, element: HTMLElement): () => void;
|
|
44
|
+
}
|
|
45
|
+
declare const SD_SECTION_REGISTRY: InjectionToken<SdSectionRegistry>;
|
|
46
|
+
|
|
47
|
+
export { SD_SECTION_REGISTRY, SdSection, SdSectionItem };
|
|
48
|
+
export type { SdSectionRegistry };
|
|
@@ -74,4 +74,4 @@ declare class SdSplitterComponent {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export { SdSplitterComponent, SdSplitterPanelComponent };
|
|
77
|
-
export type { SplitterLayoutState, SplitterOrientation, SplitterPanelState, SplitterPanelUnit };
|
|
77
|
+
export type { SdSplitterOption, SplitterLayoutState, SplitterOrientation, SplitterPanelState, SplitterPanelUnit };
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { InjectionToken, Type, ElementRef,
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, Type, ElementRef, OnDestroy } from '@angular/core';
|
|
3
3
|
import { Color } from '@sdcorejs/utils/models';
|
|
4
4
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
6
|
+
import { FlexibleConnectedPositionStrategyOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
6
7
|
|
|
7
8
|
interface SdTabInfo {
|
|
8
9
|
name: string;
|
|
9
10
|
icon?: string;
|
|
10
11
|
tooltip?: string;
|
|
11
12
|
color?: Color;
|
|
13
|
+
/**
|
|
14
|
+
* Màn có thay đổi chưa lưu: tab hiện chấm ở chỗ nút đóng, và `syncBrowserTitle` thêm "● " vào đầu tiêu đề. Dùng
|
|
15
|
+
* cùng nguồn trạng thái với `beforeClose`.
|
|
16
|
+
*/
|
|
17
|
+
dirty?: boolean;
|
|
12
18
|
}
|
|
13
19
|
interface SdTabRouterTab {
|
|
14
20
|
component: Type<any>;
|
|
@@ -24,33 +30,77 @@ interface SdTabRouterTab {
|
|
|
24
30
|
}
|
|
25
31
|
declare const SD_TAB: InjectionToken<SdTabRouterTab>;
|
|
26
32
|
|
|
33
|
+
/** Menu chuột phải đang mở: tab của nó và chỗ treo (con trỏ, hoặc chính tab khi mở bằng bàn phím). */
|
|
34
|
+
interface SdTabRouterContextMenu {
|
|
35
|
+
tab: SdTabRouterTab;
|
|
36
|
+
origin: FlexibleConnectedPositionStrategyOrigin;
|
|
37
|
+
positions: ConnectedPosition[];
|
|
38
|
+
/** Mở bằng Shift+F10 / phím Menu: sự kiện `contextmenu` trình duyệt phát ngay sau đó không mở lại menu. */
|
|
39
|
+
byKeyboard: boolean;
|
|
40
|
+
}
|
|
27
41
|
declare class SdTabRouterNavComponent {
|
|
28
|
-
|
|
29
|
-
tabs:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
#private;
|
|
43
|
+
readonly tabs: _angular_core.ModelSignal<SdTabRouterTab[]>;
|
|
44
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
45
|
+
readonly scroller: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
46
|
+
readonly listButton: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
47
|
+
readonly contextMenu: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
48
|
+
/** Tổng `min-width` của các tab vượt bề rộng thanh: thanh cuộn ngang và có nút danh sách tab. */
|
|
49
|
+
readonly overflowing: _angular_core.WritableSignal<boolean>;
|
|
50
|
+
/** Còn tab khuất ở cạnh đầu / cạnh cuối: hiện lớp mờ ở cạnh đó. */
|
|
51
|
+
readonly fadeStart: _angular_core.WritableSignal<boolean>;
|
|
52
|
+
readonly fadeEnd: _angular_core.WritableSignal<boolean>;
|
|
53
|
+
readonly listOpen: _angular_core.WritableSignal<boolean>;
|
|
54
|
+
readonly menu: _angular_core.WritableSignal<SdTabRouterContextMenu | null>;
|
|
55
|
+
/**
|
|
56
|
+
* Roving tabindex: điểm dừng Tab duy nhất của thanh. Là tab đang có focus khi người dùng di chuyển bằng phím, nếu
|
|
57
|
+
* không thì tab đang mở (focus vào lại thanh luôn rơi vào tab đang mở).
|
|
58
|
+
*/
|
|
59
|
+
readonly tabStopKey: _angular_core.Signal<string>;
|
|
60
|
+
readonly listPositions: ConnectedPosition[];
|
|
61
|
+
/** Menu chuột phải mở bằng bàn phím: dưới tab, thẳng mép trái. */
|
|
62
|
+
readonly menuAtTab: ConnectedPosition[];
|
|
63
|
+
constructor();
|
|
64
|
+
toggleList: () => void;
|
|
65
|
+
closeList: (restoreFocus?: boolean) => void;
|
|
66
|
+
onListKeydown: (event: KeyboardEvent) => void;
|
|
67
|
+
/** Chọn một tab trong menu: đóng menu (focus về nút) rồi chuyển tab như khi bấm tab trên thanh. */
|
|
68
|
+
pickTab: (tab: SdTabRouterTab) => void;
|
|
69
|
+
closeTab: (tab: SdTabRouterTab) => void;
|
|
35
70
|
onDrop: (event: CdkDragDrop<SdTabRouterTab[]>) => void;
|
|
36
|
-
|
|
37
|
-
|
|
71
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
72
|
+
onFocusin: (event: FocusEvent) => void;
|
|
73
|
+
onFocusout: (event: FocusEvent) => void;
|
|
74
|
+
onContextmenu: (event: MouseEvent) => void;
|
|
75
|
+
/** Menu vừa gắn vào overlay: focus mục đầu. */
|
|
76
|
+
focusMenu: () => void;
|
|
77
|
+
closeMenu: (restoreFocus?: boolean) => void;
|
|
78
|
+
onMenuKeydown: (event: KeyboardEvent) => void;
|
|
79
|
+
closeFromMenu: () => void;
|
|
80
|
+
closeOthersFromMenu: () => void;
|
|
81
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabRouterNavComponent, never>;
|
|
82
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabRouterNavComponent, "sd-tab-router-nav", never, { "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; }, { "tabs": "tabsChange"; }, never, never, true, never>;
|
|
38
83
|
}
|
|
39
84
|
|
|
40
85
|
declare class SdTabRouterOutletComponent implements OnDestroy {
|
|
41
86
|
#private;
|
|
42
|
-
disabled:
|
|
43
|
-
|
|
44
|
-
|
|
87
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
/**
|
|
89
|
+
* Đặt tiêu đề trình duyệt theo tab đang mở: `{tên tab} – {tên app}`, thêm "● " ở đầu khi tab `dirty`. Tên app là
|
|
90
|
+
* tiêu đề lúc outlet khởi tạo; tắt, `disabled` hay huỷ outlet thì trả lại tiêu đề đó. Mặc định tắt.
|
|
91
|
+
*/
|
|
92
|
+
syncBrowserTitle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
93
|
+
tabRouterNav: _angular_core.Signal<SdTabRouterNavComponent | undefined>;
|
|
94
|
+
tabs: _angular_core.WritableSignal<SdTabRouterTab[]>;
|
|
45
95
|
constructor();
|
|
46
96
|
ngOnDestroy(): void;
|
|
47
97
|
tabTrackBy: (index: number, tab: SdTabRouterTab) => string;
|
|
48
|
-
static ɵfac:
|
|
49
|
-
static ɵcmp:
|
|
98
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabRouterOutletComponent, never>;
|
|
99
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabRouterOutletComponent, "sd-tab-router-outlet", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "syncBrowserTitle": { "alias": "syncBrowserTitle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
50
100
|
}
|
|
51
101
|
|
|
52
102
|
interface SdTabAction {
|
|
53
|
-
type: 'close';
|
|
103
|
+
type: 'close' | 'close-others';
|
|
54
104
|
tab: SdTabRouterTab;
|
|
55
105
|
}
|
|
56
106
|
|
|
@@ -95,9 +145,14 @@ declare class SdTabRouterService {
|
|
|
95
145
|
pushEvent: (tab: SdTabRouterTab, Event: Type<SdTabEvent>) => void;
|
|
96
146
|
setOptions: () => void;
|
|
97
147
|
close: (tab?: SdTabRouterTab) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Đóng mọi tab trừ `tab` (mặc định tab hiện tại). Outlet chạy `beforeClose` của từng tab; tab trả về false thì được
|
|
150
|
+
* giữ lại. Tab hiện tại nằm trong số bị đóng thì `tab` được mở.
|
|
151
|
+
*/
|
|
152
|
+
closeOthers: (tab?: SdTabRouterTab) => void;
|
|
98
153
|
updateTab: (tab: SdTabRouterTab) => void;
|
|
99
|
-
static ɵfac:
|
|
100
|
-
static ɵprov:
|
|
154
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabRouterService, never>;
|
|
155
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SdTabRouterService>;
|
|
101
156
|
}
|
|
102
157
|
|
|
103
158
|
export { SD_TAB, SdTabComponent, SdTabRouterOutletComponent, SdTabRouterService };
|