@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,27 +1,58 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit, OnDestroy, ElementRef, TemplateRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
|
+
import { FormGroup, FormControl } from '@angular/forms';
|
|
5
5
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
6
|
-
import { MatCalendar } from '@angular/material/datepicker';
|
|
6
|
+
import { MatCalendarHeader, MatCalendar } from '@angular/material/datepicker';
|
|
7
7
|
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
|
|
8
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
9
8
|
import { SdViewDefDirective, SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
10
|
-
import { SdLabelPlacement, SdViewed, SdViewedInput, SdFormControl } from '@sdcorejs/angular/forms/models';
|
|
9
|
+
import { SdLabelPlacement, SdViewed, SdViewedInput, SdTemporalValueTransform, SdFormControl } from '@sdcorejs/angular/forms/models';
|
|
11
10
|
import { Size } from '@sdcorejs/utils/models';
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Header of the `<sd-chip-calendar>` popup (design handoff 3 · 2): previous button, period label, next button, in that
|
|
14
|
+
* tab order. Extends Material's header for the paging rules, the min/max limits and the `MatDatepickerIntl` labels;
|
|
15
|
+
* only the markup and the month label change. The month label is the current locale's long month and year
|
|
16
|
+
* (`Intl.DateTimeFormat`), capitalised; the year and multi-year views keep Material's labels.
|
|
17
|
+
*
|
|
18
|
+
* Internal (`ɵ`): not covered by SemVer.
|
|
19
|
+
*/
|
|
20
|
+
declare class ɵSdChipCalendarHeader extends MatCalendarHeader<Date> {
|
|
21
|
+
#private;
|
|
22
|
+
/** Visible period text: "Tháng 10 năm 2026" in month view, Material's text in the other views. */
|
|
23
|
+
get periodText(): string;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ɵSdChipCalendarHeader, never>;
|
|
25
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ɵSdChipCalendarHeader, "sd-chip-calendar-header", never, {}, {}, never, never, true, never>;
|
|
17
26
|
}
|
|
27
|
+
|
|
28
|
+
/** One date of the model: canonical `yyyy/MM/dd`, ISO / RFC-1123 string, `Date` or timestamp (read like `<sd-date>`). */
|
|
29
|
+
type SdChipCalendarValue = string | number | Date;
|
|
30
|
+
/** Model of `<sd-chip-calendar>`: read wide, written back as `string[]` (see `transform`). */
|
|
31
|
+
type SdChipCalendarModel = SdChipCalendarValue[] | null | undefined;
|
|
32
|
+
/** A date input (`minDate`, `maxDate`, `startAt`): read like an item of the model; `'TODAY'` is today in the configured zone. */
|
|
33
|
+
type SdChipCalendarDate = Date | string | number | null | undefined;
|
|
34
|
+
/** `removable`: all chips, none, or a predicate that receives the normalised `yyyy/MM/dd` day. */
|
|
35
|
+
type SdChipCalendarRemovable = boolean | ((day: string) => boolean);
|
|
18
36
|
declare class SdChipCalendar implements AfterViewInit, OnDestroy {
|
|
19
37
|
#private;
|
|
20
38
|
/** why: id ổn định của <mat-error> để ô nhập chip trỏ `aria-describedby` sang — thông báo
|
|
21
39
|
* lỗi phải đọc được từ chính control, không chỉ hiện ra màn hình. */
|
|
22
40
|
readonly errorId: string;
|
|
23
|
-
menuTrigger: _angular_core.Signal<MatMenuTrigger | undefined>;
|
|
24
41
|
calendar: _angular_core.Signal<MatCalendar<Date> | undefined>;
|
|
42
|
+
private readonly field;
|
|
43
|
+
/** Header of the popup calendar (handoff 3 · 2). */
|
|
44
|
+
readonly calendarHeader: typeof ɵSdChipCalendarHeader;
|
|
45
|
+
readonly panelId: string;
|
|
46
|
+
/** Whether the popup is open. */
|
|
47
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
48
|
+
/** Month the popup opened at (4.2), fixed for one opening. */
|
|
49
|
+
readonly openAt: _angular_core.WritableSignal<Date | null>;
|
|
50
|
+
/**
|
|
51
|
+
* The popup hangs from the field box (the outline), like the select panel. Read in `open()`: `_textField` of
|
|
52
|
+
* `MatFormField` is a view query, and read too early the origin falls back to the whole field with its subscript row.
|
|
53
|
+
*/
|
|
54
|
+
readonly overlayOrigin: _angular_core.WritableSignal<ElementRef<HTMLElement> | undefined>;
|
|
55
|
+
readonly positions: ConnectedPosition[];
|
|
25
56
|
autoIdInput: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
26
57
|
autoId: _angular_core.Signal<string | undefined>;
|
|
27
58
|
readonly dataDisabled: _angular_core.Signal<"true" | "false">;
|
|
@@ -48,36 +79,147 @@ declare class SdChipCalendar implements AfterViewInit, OnDestroy {
|
|
|
48
79
|
form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
|
|
49
80
|
label: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
50
81
|
placeholder: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
51
|
-
|
|
82
|
+
/**
|
|
83
|
+
* `true` / `false` for every chip, or a predicate. The predicate receives the normalised `yyyy/MM/dd` day and is
|
|
84
|
+
* applied on every removal path: the ✕ button, Backspace / Delete on a chip, pressing the day again in the
|
|
85
|
+
* calendar and clearing.
|
|
86
|
+
*/
|
|
87
|
+
removable: _angular_core.InputSignalWithTransform<SdChipCalendarRemovable, SdChipCalendarRemovable | null | undefined>;
|
|
52
88
|
hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
53
89
|
required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
90
|
+
/** Fewest days to pick; > 0 adds `Validators.minLength`. Replaces `min`. */
|
|
91
|
+
minCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
92
|
+
/** Most days to pick; > 0 adds `Validators.maxLength` and blocks picking more in the calendar (4.3). Replaces `max`. */
|
|
93
|
+
maxCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
94
|
+
/** @deprecated Use `minCount`; `minCount` wins when both are set. */
|
|
54
95
|
min: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
|
|
96
|
+
/** @deprecated Use `maxCount`; `maxCount` wins when both are set. */
|
|
55
97
|
max: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
|
|
98
|
+
/** Earliest day that can be picked; same reading as `minDate` of `<sd-date>` (`'TODAY'` = today in the zone). */
|
|
99
|
+
minDate: _angular_core.InputSignal<SdChipCalendarDate>;
|
|
100
|
+
/** Latest day that can be picked; same reading as `maxDate` of `<sd-date>`. */
|
|
101
|
+
maxDate: _angular_core.InputSignal<SdChipCalendarDate>;
|
|
102
|
+
/** `false` makes a day unpickable. A chosen day stays removable even when the filter refuses it. Name of `mat-calendar`. */
|
|
103
|
+
dateFilter: _angular_core.InputSignal<((date: Date) => boolean) | null | undefined>;
|
|
104
|
+
/** Month the popup opens at; without it, the chosen day nearest to today, else today (4.2). */
|
|
105
|
+
startAt: _angular_core.InputSignal<SdChipCalendarDate>;
|
|
106
|
+
/** Shows “Xoá hết” in the popup (and the clear button of the field). Off by default, like `clearable` of `<sd-date>`. */
|
|
107
|
+
clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/**
|
|
109
|
+
* Chips shown while the popup is closed; the rest fold into a “+N” button that opens it. `null` shows them all.
|
|
110
|
+
* `2` is the suggestion inside `<sd-table>` filters.
|
|
111
|
+
*/
|
|
112
|
+
maxVisible: _angular_core.InputSignal<number | null | undefined>;
|
|
113
|
+
/** Date format of the chips and of the viewed text, in Angular `DatePipe` syntax. */
|
|
114
|
+
displayFormat: _angular_core.InputSignalWithTransform<string, string | null | undefined>;
|
|
56
115
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
57
116
|
/** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
|
|
58
117
|
viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
|
|
118
|
+
/**
|
|
119
|
+
* String form of each day when the value leaves the component, same contract as `<sd-date>`: `undefined` →
|
|
120
|
+
* `yyyy/MM/dd`, `'ISOString'` / `'UTCString'` → the start of the day (in `ISdCoreConfiguration.timeZone` when
|
|
121
|
+
* configured). Display is not affected.
|
|
122
|
+
*/
|
|
123
|
+
transform: _angular_core.InputSignal<SdTemporalValueTransform | undefined>;
|
|
59
124
|
/** `true` when the static view should render (`viewed===true`, or disabled `'inline'`). */
|
|
60
125
|
readonly isViewed: _angular_core.Signal<boolean>;
|
|
61
126
|
hyperlink: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
62
|
-
|
|
63
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Two-way model. Read wide (each item `string | number | Date`, like `<sd-date>`), written back only on a user
|
|
129
|
+
* action, as `string[]`. A model from the parent is never rewritten.
|
|
130
|
+
*/
|
|
131
|
+
model: _angular_core.ModelSignal<SdChipCalendarModel>;
|
|
132
|
+
sdChange: _angular_core.OutputEmitterRef<string[]>;
|
|
64
133
|
input: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
65
134
|
sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
|
|
66
135
|
sdLabelDef: _angular_core.Signal<SdLabelDefDirective | undefined>;
|
|
67
136
|
sdLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
68
137
|
sdValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
69
138
|
isFocused: boolean;
|
|
70
|
-
|
|
139
|
+
/** `minCount`, else the deprecated `min`. */
|
|
140
|
+
readonly effectiveMinCount: _angular_core.Signal<number>;
|
|
141
|
+
/** `maxCount`, else the deprecated `max`. */
|
|
142
|
+
readonly effectiveMaxCount: _angular_core.Signal<number>;
|
|
143
|
+
/** Chosen days, normalised (`yyyy/MM/dd`, model order). */
|
|
144
|
+
readonly days: _angular_core.Signal<string[]>;
|
|
145
|
+
/** `maxCount` reached: unchosen days are disabled and the popup says so (4.3). */
|
|
146
|
+
readonly full: _angular_core.Signal<boolean>;
|
|
147
|
+
/** At least one chosen day may be removed (enables “Xoá hết”). */
|
|
148
|
+
readonly hasRemovable: _angular_core.Signal<boolean>;
|
|
149
|
+
/** Chosen days by date (B2). Display only: the model keeps its order. `yyyy/MM/dd` sorts as text in date order. */
|
|
150
|
+
readonly sortedDays: _angular_core.Signal<string[]>;
|
|
151
|
+
/** Chips on screen: all while the popup is open, else at most `maxVisible` (B3). */
|
|
152
|
+
readonly visibleDays: _angular_core.Signal<string[]>;
|
|
153
|
+
/** Icon sizes of the chips and suffix buttons for the current size. */
|
|
154
|
+
readonly iconSizes: _angular_core.Signal<{
|
|
155
|
+
readonly chip: "12px";
|
|
156
|
+
readonly clear: "16px";
|
|
157
|
+
readonly open: "18px";
|
|
158
|
+
} | {
|
|
159
|
+
readonly chip: "14px";
|
|
160
|
+
readonly clear: "18px";
|
|
161
|
+
readonly open: "20px";
|
|
162
|
+
} | {
|
|
163
|
+
readonly chip: "16px";
|
|
164
|
+
readonly clear: "20px";
|
|
165
|
+
readonly open: "22px";
|
|
166
|
+
}>;
|
|
167
|
+
/** Days folded into “+N”. */
|
|
168
|
+
readonly hiddenCount: _angular_core.Signal<number>;
|
|
169
|
+
/** Viewed text: days by date in `displayFormat`, joined by “, ” (C3). */
|
|
170
|
+
readonly viewText: _angular_core.Signal<string>;
|
|
171
|
+
/** Placeholder while no day is chosen: the input, else “Chọn ngày” — no longer the label (B1). Empty once there are chips. */
|
|
172
|
+
readonly effectivePlaceholder: _angular_core.Signal<string>;
|
|
173
|
+
readonly resolvedMinDate: _angular_core.Signal<Date | null>;
|
|
174
|
+
readonly resolvedMaxDate: _angular_core.Signal<Date | null>;
|
|
175
|
+
/**
|
|
176
|
+
* `dateFilter` handed to `mat-calendar` (4.1): a chosen day is pickable exactly when it may be removed (even against the
|
|
177
|
+
* consumer filter), an unchosen one when the limit is not reached and the consumer filter allows it. A new function on
|
|
178
|
+
* every change makes `mat-calendar` render its cells again.
|
|
179
|
+
*/
|
|
180
|
+
readonly calendarFilter: _angular_core.Signal<(date: Date | null) => boolean>;
|
|
181
|
+
/** Cell classes: `sd-chip-calendar-selected`, plus `sd-chip-calendar-locked` for a chosen day that cannot go. */
|
|
182
|
+
readonly calendarDateClass: _angular_core.Signal<(date: Date, view?: "month" | "year" | "multi-year") => string>;
|
|
71
183
|
constructor();
|
|
72
184
|
get formControl(): SdFormControl;
|
|
73
185
|
get inputControl(): FormControl<any>;
|
|
74
186
|
readonly errorMessage: _angular_core.Signal<string | undefined>;
|
|
75
|
-
get matcher():
|
|
187
|
+
get matcher(): ErrorStateMatcher;
|
|
188
|
+
/**
|
|
189
|
+
* The one place that decides whether the error shows (A4): `ErrorStateMatcher`, `<mat-error>`, `aria-invalid` and
|
|
190
|
+
* the `hideInlineError` icon all read it. Invalid and touched, or the parent form was submitted; a selection that
|
|
191
|
+
* is still too short while the user picks (dirty only) shows nothing.
|
|
192
|
+
*/
|
|
193
|
+
isErrorShown(): boolean;
|
|
194
|
+
/** Whether `day` (`yyyy/MM/dd`) may be removed, per `removable`. */
|
|
195
|
+
isRemovable(day: string): boolean;
|
|
196
|
+
/** Accessible name of a chip: the full date in the current locale, plus the locked note. */
|
|
197
|
+
chipLabel(day: string): string;
|
|
198
|
+
/** A chip day in `displayFormat` (Angular `DatePipe` / `formatDate` syntax, as the chips used before). */
|
|
199
|
+
formatDay(day: string): string;
|
|
200
|
+
/** Accessible name of the ✕ button of a chip. */
|
|
201
|
+
removeLabel(day: string): string;
|
|
202
|
+
/** Opens the popup at the month of 4.2. No-op when disabled, viewed or already open. */
|
|
203
|
+
open(): void;
|
|
204
|
+
/** Closes the popup and marks the field touched (A4); `returnFocus` puts focus back on the input (Esc, “Xong”). */
|
|
205
|
+
close(returnFocus?: boolean): void;
|
|
206
|
+
/** Focus goes to the active day of the grid once the panel is attached. */
|
|
207
|
+
onAttach(): void;
|
|
208
|
+
onOverlayKeydown(event: KeyboardEvent): void;
|
|
209
|
+
/** A click outside closes; a click on the field itself is left to the field (it keeps the popup open). */
|
|
210
|
+
onOutsideClick(event: MouseEvent): void;
|
|
211
|
+
/** Click on the empty part of the field or on the input opens the popup; chips stop the click (3 · 2). */
|
|
212
|
+
onFieldClick(): void;
|
|
213
|
+
/** Calendar button of the suffix: opens or closes the popup without the field click opening it again. */
|
|
214
|
+
onToggleClick(event: Event): void;
|
|
215
|
+
/** “+N” opens the popup, where every chip shows. */
|
|
216
|
+
onMoreClick(event: Event): void;
|
|
217
|
+
/** Enter, Space, ArrowDown and Alt+ArrowDown on the input open the popup. */
|
|
218
|
+
onInputKeydown(event: KeyboardEvent): void;
|
|
76
219
|
ngAfterViewInit(): void;
|
|
77
220
|
ngOnDestroy(): void;
|
|
78
221
|
onClickChip: (event: Event, item: any) => void;
|
|
79
222
|
onRemove: (item: string) => void;
|
|
80
|
-
onSelect: (event: MatAutocompleteSelectedEvent) => void;
|
|
81
223
|
onClick: () => void;
|
|
82
224
|
/**
|
|
83
225
|
* why: khi `sdViewDef` đang hiển thị thì bên trong KHÔNG còn phần tử nào focus được, nên
|
|
@@ -88,10 +230,13 @@ declare class SdChipCalendar implements AfterViewInit, OnDestroy {
|
|
|
88
230
|
onViewKeydown: (event: Event) => void;
|
|
89
231
|
onClear: (evt?: any) => void;
|
|
90
232
|
onSelectDate: (date: Date | null) => void;
|
|
233
|
+
/** Closes the popup without moving focus (outside click); marks the field touched. */
|
|
91
234
|
onCloseCalendar: () => void;
|
|
92
|
-
|
|
235
|
+
/** Classes of a month-view cell; see `calendarDateClass`. */
|
|
236
|
+
dateClass: (cellDate: Date) => string;
|
|
93
237
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdChipCalendar, never>;
|
|
94
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChipCalendar, "sd-chip-calendar", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
|
|
238
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChipCalendar, "sd-chip-calendar", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minCount": { "alias": "minCount"; "required": false; "isSignal": true; }; "maxCount": { "alias": "maxCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "displayFormat": { "alias": "displayFormat"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
|
|
95
239
|
}
|
|
96
240
|
|
|
97
241
|
export { SdChipCalendar };
|
|
242
|
+
export type { SdChipCalendarDate, SdChipCalendarModel, SdChipCalendarRemovable, SdChipCalendarValue };
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { FormGroup, FormControl
|
|
4
|
-
import {
|
|
5
|
-
import { MatChipInputEvent } from '@angular/material/chips';
|
|
2
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
3
|
+
import { FormGroup, FormControl } from '@angular/forms';
|
|
4
|
+
import { MatChipGrid, MatChipInputEvent } from '@angular/material/chips';
|
|
6
5
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
7
6
|
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
|
|
8
7
|
import { SdViewDefDirective, SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
9
8
|
import { SdLabelPlacement, SdViewed, SdViewedInput, SdFormControl } from '@sdcorejs/angular/forms/models';
|
|
10
9
|
import { Size } from '@sdcorejs/utils/models';
|
|
11
10
|
|
|
12
|
-
declare class
|
|
13
|
-
constructor();
|
|
14
|
-
transform(item: any, removable: boolean | ((item: any) => boolean)): boolean;
|
|
15
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdRemovableChipPipe, never>;
|
|
16
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SdRemovableChipPipe, "sdRemovableChip", true>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare class SdChipErrorStateMatcher implements ErrorStateMatcher {
|
|
20
|
-
private formControl;
|
|
21
|
-
constructor(formControl: FormControl);
|
|
22
|
-
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
23
|
-
}
|
|
24
|
-
declare class SdChip implements AfterViewInit, OnDestroy {
|
|
11
|
+
declare class SdChip {
|
|
25
12
|
#private;
|
|
13
|
+
/** why: id ổn định của lỗi (`<mat-error>` hoặc chữ ẩn của `hideInlineError`) để ô nhập trỏ `aria-describedby` sang (A8). */
|
|
14
|
+
readonly errorId: string;
|
|
26
15
|
autoIdInput: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
27
16
|
autoId: _angular_core.Signal<string | undefined>;
|
|
28
17
|
readonly dataDisabled: _angular_core.Signal<"true" | "false">;
|
|
@@ -52,9 +41,31 @@ declare class SdChip implements AfterViewInit, OnDestroy {
|
|
|
52
41
|
removable: _angular_core.InputSignalWithTransform<boolean | ((item: any) => boolean), boolean | ((item: any) => boolean) | null | undefined>;
|
|
53
42
|
hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
54
43
|
required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
/** Fewest chips; > 0 adds `Validators.minLength`. Replaces `min`. */
|
|
45
|
+
minCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
46
|
+
/** Most chips; > 0 adds `Validators.maxLength` (for a model set from outside) and stops adding once reached. Replaces `max`. */
|
|
47
|
+
maxCount: _angular_core.InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
48
|
+
/** @deprecated Use `minCount`; `minCount` wins when both are set. */
|
|
55
49
|
min: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
|
|
50
|
+
/** @deprecated Use `maxCount`; `maxCount` wins when both are set. */
|
|
56
51
|
max: _angular_core.InputSignalWithTransform<number, number | null | undefined>;
|
|
52
|
+
/** `false` keeps the field read-only for typing: the input stays (mat-chip-grid needs it) but is read-only and out of the Tab order. */
|
|
57
53
|
addable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
54
|
+
/** Leaving the field turns the typed text into a chip. `false` drops the text instead, as before. */
|
|
55
|
+
addOnBlur: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
56
|
+
/** Keys that commit the typed text (`KeyboardEvent.key`). A paste also splits on these characters, new lines and tabs. */
|
|
57
|
+
separators: _angular_core.InputSignalWithTransform<readonly string[], readonly string[] | null | undefined>;
|
|
58
|
+
/** Normalises typed or pasted text before it is compared and stored; `null` or `''` drops it. Default: trim. */
|
|
59
|
+
chipTransform: _angular_core.InputSignalWithTransform<(raw: string) => string | number | null, ((raw: string) => string | number | null) | null | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Checks a normalised value: an i18n key (or the message itself) when it is refused, else `null`. A refused value does
|
|
62
|
+
* not become a chip; its text stays in the input and the message shows under the field.
|
|
63
|
+
*/
|
|
64
|
+
chipValidator: _angular_core.InputSignal<((value: string | number) => string | null) | null | undefined>;
|
|
65
|
+
/** Shows a button that removes every chip `removable` allows. Off by default, like `clearable` of `<sd-date>`. */
|
|
66
|
+
clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/** Chips shown while the field is not focused; the rest fold into “+N”. `null` shows them all. `2` suits `<sd-table>` cells. */
|
|
68
|
+
maxVisible: _angular_core.InputSignal<number | null | undefined>;
|
|
58
69
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
59
70
|
/** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
|
|
60
71
|
viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
|
|
@@ -64,31 +75,130 @@ declare class SdChip implements AfterViewInit, OnDestroy {
|
|
|
64
75
|
model: _angular_core.ModelSignal<(string | number)[] | undefined>;
|
|
65
76
|
sdChange: _angular_core.OutputEmitterRef<any[]>;
|
|
66
77
|
input: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
78
|
+
readonly chipGrid: _angular_core.Signal<MatChipGrid | undefined>;
|
|
79
|
+
private readonly chipTextElements;
|
|
67
80
|
sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
|
|
68
81
|
sdLabelDef: _angular_core.Signal<SdLabelDefDirective | undefined>;
|
|
69
82
|
sdLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
70
83
|
sdValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
71
|
-
|
|
72
|
-
readonly
|
|
73
|
-
|
|
84
|
+
/** The field is being edited: the `sdViewDef` face gives way to the field. A signal, so OnPush redraws without `detectChanges()` (D1). */
|
|
85
|
+
readonly isFocused: _angular_core.WritableSignal<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* Control of `mat-chip-grid` only. why: the grid is a ControlValueAccessor that writes the text of the rendered chips
|
|
88
|
+
* into its control on blur, after a timeout (numbers became strings, a form reset was undone). It still needs an
|
|
89
|
+
* ngControl to work out its error state on every check, so it gets this one; nothing reads its value.
|
|
90
|
+
*/
|
|
91
|
+
readonly gridControl: FormControl<unknown>;
|
|
92
|
+
/** `minCount`, else the deprecated `min`. */
|
|
93
|
+
readonly effectiveMinCount: _angular_core.Signal<number>;
|
|
94
|
+
/** `maxCount`, else the deprecated `max`. */
|
|
95
|
+
readonly effectiveMaxCount: _angular_core.Signal<number>;
|
|
96
|
+
/** why: phím tách do `separators` + onInputKeydown xử lý, nên Material không nhận phím nào. */
|
|
97
|
+
readonly noSeparatorKeys: number[];
|
|
98
|
+
/**
|
|
99
|
+
* Items rendered as chips: every value except `null`, `undefined` and `''`, so `0` shows (A2). Display only: the
|
|
100
|
+
* model is never rewritten. why: exact duplicates are dropped too, because the chips are tracked by value.
|
|
101
|
+
*/
|
|
102
|
+
readonly chips: _angular_core.Signal<(string | number)[]>;
|
|
103
|
+
/** Message of a typed or pasted value that `chipValidator` refused; it shows under the field until the text changes (B4). */
|
|
104
|
+
readonly inputError: _angular_core.WritableSignal<string | null>;
|
|
105
|
+
/** Last polite announcement; a new id re-renders the text so a repeated message is read again. */
|
|
106
|
+
readonly liveMessage: _angular_core.WritableSignal<{
|
|
107
|
+
id: number;
|
|
108
|
+
text: string;
|
|
109
|
+
} | null>;
|
|
110
|
+
/** Chip that the typed value duplicates, highlighted for 1.4s (B3). */
|
|
111
|
+
readonly duplicateChip: _angular_core.WritableSignal<string | number | null>;
|
|
112
|
+
/** Text of the chips that the 240px limit cuts; only they get a tooltip (B7). */
|
|
113
|
+
readonly truncatedChips: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
114
|
+
/** `maxCount` reached: typing and pasting add nothing more (B3). */
|
|
115
|
+
readonly full: _angular_core.Signal<boolean>;
|
|
116
|
+
/** Chips on screen: all while the field has focus, else at most `maxVisible` (B7). */
|
|
117
|
+
readonly visibleChips: _angular_core.Signal<(string | number)[]>;
|
|
118
|
+
/** Chips folded into “+N”. */
|
|
119
|
+
readonly hiddenCount: _angular_core.Signal<number>;
|
|
120
|
+
/** At least one chip may be removed, so the clear button has something to do (B6). */
|
|
121
|
+
readonly hasRemovable: _angular_core.Signal<boolean>;
|
|
122
|
+
/**
|
|
123
|
+
* Placeholder: “Đã đủ …” once full, else the input, else “Nhập rồi nhấn Enter” — never the label (B5). None when not
|
|
124
|
+
* addable, or while chips are folded into “+N”: nobody types then, and the input only fills the rest of the line (C1).
|
|
125
|
+
*/
|
|
126
|
+
readonly effectivePlaceholder: _angular_core.Signal<string | null>;
|
|
127
|
+
readonly clearLabel: _angular_core.Signal<string>;
|
|
128
|
+
/** Tooltip of the lock on a chip that `removable` keeps (C3). */
|
|
129
|
+
readonly lockedLabel: _angular_core.Signal<string>;
|
|
130
|
+
/** Sizes of the chip ✕ / lock and of the clear-button icon for the current `size` (C1). */
|
|
131
|
+
readonly iconSizes: _angular_core.Signal<{
|
|
132
|
+
readonly chip: "12px";
|
|
133
|
+
readonly clear: "16px";
|
|
134
|
+
} | {
|
|
135
|
+
readonly chip: "14px";
|
|
136
|
+
readonly clear: "18px";
|
|
137
|
+
} | {
|
|
138
|
+
readonly chip: "16px";
|
|
139
|
+
readonly clear: "20px";
|
|
140
|
+
}>;
|
|
141
|
+
readonly moreLabel: _angular_core.Signal<string>;
|
|
74
142
|
constructor();
|
|
75
143
|
get formControl(): SdFormControl;
|
|
76
144
|
get inputControl(): FormControl<any>;
|
|
77
145
|
readonly errorMessage: _angular_core.Signal<string | undefined>;
|
|
78
|
-
get matcher():
|
|
79
|
-
|
|
80
|
-
|
|
146
|
+
get matcher(): ErrorStateMatcher;
|
|
147
|
+
/**
|
|
148
|
+
* The one place that decides whether the error shows (A5): the `ErrorStateMatcher` of the chip grid and the input,
|
|
149
|
+
* `<mat-error>`, the `hideInlineError` icon and `aria-invalid` all read it. Invalid and touched, or the parent form
|
|
150
|
+
* was submitted; a field that is only dirty shows nothing.
|
|
151
|
+
*/
|
|
152
|
+
isErrorShown(): boolean;
|
|
153
|
+
/** Text under the field: the `chipValidator` message of the typed value first, else the form error. */
|
|
154
|
+
readonly errorText: _angular_core.Signal<string | undefined>;
|
|
155
|
+
/** Whether `item` may be removed, per `removable`; applied on every removal path (A1). */
|
|
156
|
+
isRemovable(item: string | number): boolean;
|
|
157
|
+
/** Accessible name of the ✕ button of a chip (A6). */
|
|
158
|
+
removeLabel(item: string | number): string;
|
|
159
|
+
/** Accessible name of a chip that `removable` keeps: its text plus “, Không xoá được” (C3). A removable chip keeps its text. */
|
|
160
|
+
chipLabel(item: string | number): string | null;
|
|
161
|
+
/** Text of a chip, also its key for `truncatedChips`. */
|
|
162
|
+
chipText(item: string | number): string;
|
|
163
|
+
/** A separator key (`separators`) commits the typed text; the key itself is not typed (B2 / separators). */
|
|
164
|
+
onInputKeydown(event: KeyboardEvent): void;
|
|
165
|
+
/** The refused-value message goes as soon as the text changes (B4). */
|
|
166
|
+
onInputText(): void;
|
|
167
|
+
/**
|
|
168
|
+
* A paste that holds a separator, a new line or a tab becomes several chips in one change (B2). Duplicates are
|
|
169
|
+
* skipped, refused values and values past `maxCount` stay in the input, and the result is announced. A paste with
|
|
170
|
+
* no separator is left to the browser.
|
|
171
|
+
*/
|
|
172
|
+
onPaste(event: ClipboardEvent): void;
|
|
173
|
+
/** Backspace / Delete on a chip that `removable` keeps says why nothing happened (A1, B3). */
|
|
174
|
+
onChipKeydown(event: KeyboardEvent, item: string | number): void;
|
|
175
|
+
/** “+N” moves focus to the input, where every chip shows (B7). */
|
|
176
|
+
onMoreClick(event: Event): void;
|
|
177
|
+
/** Focus entering the input or a chip unfolds “+N”; focus on the “+N” button itself does not (B7). */
|
|
178
|
+
onFocusIn(event: FocusEvent): void;
|
|
179
|
+
/**
|
|
180
|
+
* Marks the field touched once focus leaves it; moving between the input and the chips does not count.
|
|
181
|
+
* why: `mat-chip-grid` is no longer bound to the control. As a ControlValueAccessor it wrote the text of the rendered
|
|
182
|
+
* chips back into the control on blur (numbers became strings, a form reset was undone), so the component marks
|
|
183
|
+
* touched itself, like the grid did.
|
|
184
|
+
*/
|
|
185
|
+
onFocusOut(event: FocusEvent): void;
|
|
81
186
|
onAdd: (event: MatChipInputEvent) => void;
|
|
82
187
|
onClickChip: (event: Event, item: any) => void;
|
|
83
188
|
onRemove: (item: any) => void;
|
|
84
|
-
onSelect: (event: MatAutocompleteSelectedEvent) => void;
|
|
85
189
|
onFocus: () => void;
|
|
86
190
|
onBlur: () => void;
|
|
87
191
|
onClick: () => void;
|
|
192
|
+
/**
|
|
193
|
+
* why: khi `sdViewDef` đang hiển thị thì bên trong không còn phần tử nào focus được, nên phần tử view là lối vào
|
|
194
|
+
* duy nhất để chuyển sang chế độ sửa. Bàn phím phải mở được y hệt chuột → Enter/Space chạy chung handler;
|
|
195
|
+
* preventDefault chặn Space cuộn trang (A7).
|
|
196
|
+
*/
|
|
197
|
+
onViewKeydown: (event: Event) => void;
|
|
88
198
|
focus: () => void;
|
|
89
199
|
onClear: ($event?: any) => void;
|
|
90
200
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdChip, never>;
|
|
91
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChip, "sd-chip", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
|
|
201
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdChip, "sd-chip", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minCount": { "alias": "minCount"; "required": false; "isSignal": true; }; "maxCount": { "alias": "maxCount"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; "addOnBlur": { "alias": "addOnBlur"; "required": false; "isSignal": true; }; "separators": { "alias": "separators"; "required": false; "isSignal": true; }; "chipTransform": { "alias": "chipTransform"; "required": false; "isSignal": true; }; "chipValidator": { "alias": "chipValidator"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdLabelTemplate", "sdValueTemplate"], never, true, never>;
|
|
92
202
|
}
|
|
93
203
|
|
|
94
|
-
export { SdChip
|
|
204
|
+
export { SdChip };
|
|
@@ -6,7 +6,7 @@ import { FormGroup, FormControl } from '@angular/forms';
|
|
|
6
6
|
import { MatDateRangePicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
7
7
|
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
|
|
8
8
|
import { SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
9
|
-
import { Size } from '@sdcorejs/utils/models';
|
|
9
|
+
import { Size, Operator } from '@sdcorejs/utils/models';
|
|
10
10
|
|
|
11
11
|
interface SdDateRangeValue {
|
|
12
12
|
from?: string | null;
|
|
@@ -35,6 +35,28 @@ declare class SdDateRange {
|
|
|
35
35
|
readonly dataErrorMessage: _angular_core.Signal<string | null>;
|
|
36
36
|
name: _angular_core.InputSignal<string>;
|
|
37
37
|
size: _angular_core.InputSignal<Size>;
|
|
38
|
+
/**
|
|
39
|
+
* Operator cho phép trong chip tiền tố của ô (thiết kế đợt 2 · G), theo thứ tự hiển thị. Từ hai operator
|
|
40
|
+
* thì chip hiện; đúng một thì control dùng luôn operator đó và không hiện chip.
|
|
41
|
+
*/
|
|
42
|
+
readonly operators: _angular_core.InputSignal<readonly Operator[]>;
|
|
43
|
+
/** Operator hiện tại — `[(operator)]`. Đổi operator không xoá giá trị; nút xoá chỉ xoá giá trị. */
|
|
44
|
+
readonly operator: _angular_core.ModelSignal<Operator | undefined>;
|
|
45
|
+
protected readonly operatorChip: _angular_core.Signal<boolean>;
|
|
46
|
+
protected readonly operatorHasValue: _angular_core.Signal<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* NULL / NOT_NULL không cần giá trị: chọn trong chip thì xoá giá trị, ô bị khoá (disabled) tới khi đổi sang
|
|
49
|
+
* operator khác; chip vẫn dùng được.
|
|
50
|
+
*/
|
|
51
|
+
protected readonly operatorLocked: _angular_core.Signal<boolean>;
|
|
52
|
+
private readonly operatorChipRef;
|
|
53
|
+
private readonly startInput;
|
|
54
|
+
/**
|
|
55
|
+
* Chọn xong operator trong chip (thiết kế đợt 2 · G): focus về ô nhập. NULL / NOT_NULL thì xoá giá trị và giữ focus
|
|
56
|
+
* ở chip. why: xoá ngay trong handler chọn (không trong effect) để giá trị two-way của cha đổi trong event, không
|
|
57
|
+
* đổi giữa lượt change detection.
|
|
58
|
+
*/
|
|
59
|
+
protected onOperatorChosen(): void;
|
|
38
60
|
form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
|
|
39
61
|
label: _angular_core.InputSignal<string | undefined>;
|
|
40
62
|
helperText: _angular_core.InputSignal<string | undefined>;
|
|
@@ -96,7 +118,7 @@ declare class SdDateRange {
|
|
|
96
118
|
onClosePicker: () => void;
|
|
97
119
|
onOpenPicker: (event: MouseEvent) => void;
|
|
98
120
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdDateRange, never>;
|
|
99
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDateRange, "sd-date-range", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; }, ["sdLabelDef", "sdValueTemplate"], never, true, never>;
|
|
121
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDateRange, "sd-date-range", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "valueModel": "modelChange"; "sdChange": "sdChange"; }, ["sdLabelDef", "sdValueTemplate"], never, true, never>;
|
|
100
122
|
}
|
|
101
123
|
|
|
102
124
|
export { SdDateRange };
|
|
@@ -5,7 +5,7 @@ import { MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepi
|
|
|
5
5
|
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
|
|
6
6
|
import { SdViewDefDirective, SdLabelDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
7
7
|
import { SdViewed, SdViewedInput, SdLabelPlacement, SdTemporalValueTransform, SdFormControl } from '@sdcorejs/angular/forms/models';
|
|
8
|
-
import { Size } from '@sdcorejs/utils/models';
|
|
8
|
+
import { Size, Operator } from '@sdcorejs/utils/models';
|
|
9
9
|
|
|
10
10
|
type SdDateModelValue = string | number | Date | undefined | null;
|
|
11
11
|
type SdDateKeyupEvent = Event | {
|
|
@@ -40,6 +40,27 @@ declare class SdDate implements OnDestroy, OnInit {
|
|
|
40
40
|
readonly dataErrorMessage: _angular_core.Signal<string | null>;
|
|
41
41
|
name: _angular_core.InputSignal<string>;
|
|
42
42
|
size: _angular_core.InputSignal<Size>;
|
|
43
|
+
/**
|
|
44
|
+
* Operator cho phép trong chip tiền tố của ô (thiết kế đợt 2 · G), theo thứ tự hiển thị. Từ hai operator
|
|
45
|
+
* thì chip hiện; đúng một thì control dùng luôn operator đó và không hiện chip.
|
|
46
|
+
*/
|
|
47
|
+
readonly operators: _angular_core.InputSignal<readonly Operator[]>;
|
|
48
|
+
/** Operator hiện tại — `[(operator)]`. Đổi operator không xoá giá trị; nút xoá chỉ xoá giá trị. */
|
|
49
|
+
readonly operator: _angular_core.ModelSignal<Operator | undefined>;
|
|
50
|
+
protected readonly operatorChip: _angular_core.Signal<boolean>;
|
|
51
|
+
protected readonly operatorHasValue: _angular_core.Signal<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* NULL / NOT_NULL không cần giá trị: chọn trong chip thì xoá giá trị, ô bị khoá (disabled) tới khi đổi sang
|
|
54
|
+
* operator khác; chip vẫn dùng được.
|
|
55
|
+
*/
|
|
56
|
+
protected readonly operatorLocked: _angular_core.Signal<boolean>;
|
|
57
|
+
private readonly operatorChipRef;
|
|
58
|
+
/**
|
|
59
|
+
* Chọn xong operator trong chip (thiết kế đợt 2 · G): focus về ô nhập. NULL / NOT_NULL thì xoá giá trị và giữ focus
|
|
60
|
+
* ở chip. why: xoá ngay trong handler chọn (không trong effect) để giá trị two-way của cha đổi trong event, không
|
|
61
|
+
* đổi giữa lượt change detection.
|
|
62
|
+
*/
|
|
63
|
+
protected onOperatorChosen(): void;
|
|
43
64
|
form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
|
|
44
65
|
label: _angular_core.InputSignal<string | undefined>;
|
|
45
66
|
helperText: _angular_core.InputSignal<string | undefined>;
|
|
@@ -108,7 +129,7 @@ declare class SdDate implements OnDestroy, OnInit {
|
|
|
108
129
|
onChange: (event: MatDatepickerInputEvent<Date>) => void;
|
|
109
130
|
clear: ($event: any) => void;
|
|
110
131
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdDate, never>;
|
|
111
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDate, "sd-date", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "minDateInput": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "maxDateInput": { "alias": "maxDate"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdFocus": "sdFocus"; }, ["sdLabelTemplate", "sdValueTemplate", "sdViewDef", "sdLabelDef"], ["[sdLabel]"], true, never>;
|
|
132
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDate, "sd-date", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "minDateInput": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "maxDateInput": { "alias": "maxDate"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "valueModel": "modelChange"; "sdChange": "sdChange"; "sdFocus": "sdFocus"; }, ["sdLabelTemplate", "sdValueTemplate", "sdViewDef", "sdLabelDef"], ["[sdLabel]"], true, never>;
|
|
112
133
|
}
|
|
113
134
|
|
|
114
135
|
export { SdDate };
|