@sdcorejs/angular 19.3.1 → 19.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/components/avatar/index.d.ts +1 -0
- package/components/avatar/src/avatar-group.component.d.ts +43 -0
- package/components/avatar/src/avatar.component.d.ts +23 -1
- package/components/badge/index.d.ts +3 -0
- package/components/badge/src/badge-picker.component.d.ts +148 -0
- package/components/badge/src/badge-picker.constants.d.ts +18 -0
- package/components/badge/src/badge.component.d.ts +24 -3
- package/components/badge/src/badge.model.d.ts +19 -0
- package/components/button/src/button.component.d.ts +20 -1
- package/components/ckeditor-styles/src/ckeditor-styles.component.d.ts +3 -18
- package/components/editor/index.d.ts +1 -0
- package/components/editor/src/editor.component.d.ts +17 -15
- package/components/editor/src/models/editor.model.d.ts +5 -4
- package/components/editor/src/plugins/image-upload/utils/validate.utils.d.ts +5 -2
- package/components/editor/src/upload-manager.d.ts +21 -0
- package/components/editor-engine/index.d.ts +3 -0
- package/components/editor-engine/src/engine/editor-engine.d.ts +68 -0
- package/components/editor-engine/src/engine/editor-engine.models.d.ts +51 -0
- package/components/editor-engine/src/engine/editor-html-boundary.d.ts +6 -0
- package/components/editor-engine/src/engine/editor-schema.d.ts +3 -0
- package/components/editor-engine/src/surface/editor-surface.component.d.ts +50 -0
- package/components/editor-engine/src/toolbar/editor-button.directive.d.ts +17 -0
- package/components/editor-engine/src/toolbar/editor-toolbar.component.d.ts +78 -0
- package/components/file-explorer/src/components/actions.component.d.ts +1 -0
- package/components/file-explorer/src/file-explorer.model.d.ts +4 -2
- package/components/file-explorer/src/file-explorer.utils.d.ts +6 -2
- package/components/form-generic/src/components/elements/button-element.component.d.ts +16 -0
- package/components/form-generic/src/components/elements/index.d.ts +2 -0
- package/components/form-generic/src/components/elements/static-element.component.d.ts +26 -0
- package/components/form-generic/src/components/form-builder/canvas/field-preview.component.d.ts +10 -0
- package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +9 -4
- package/components/form-generic/src/components/form-builder/inspector/inspector.component.d.ts +46 -0
- package/components/form-generic/src/components/form-builder/state/builder-document.d.ts +9 -1
- package/components/form-generic/src/components/form-builder/state/builder-palette.d.ts +2 -2
- package/components/form-generic/src/components/form-builder/state/builder-store.d.ts +13 -1
- package/components/form-generic/src/components/form-render/components/item/components/index.d.ts +2 -0
- package/components/form-generic/src/components/form-render/components/item/components/json/json.component.d.ts +26 -0
- package/components/form-generic/src/components/form-render/components/item/components/time/time.component.d.ts +17 -0
- package/components/form-generic/src/components/form-render/form-render.component.d.ts +64 -6
- package/components/form-generic/src/models/form-generic-element.model.d.ts +128 -0
- package/components/form-generic/src/models/form-generic-field.model.d.ts +5 -1
- package/components/form-generic/src/models/form-generic-schema.d.ts +9 -1
- package/components/form-generic/src/models/form-generic-schema.model.d.ts +7 -3
- package/components/form-generic/src/models/index.d.ts +1 -0
- package/components/form-generic/src/rules/form-generic-button.d.ts +21 -0
- package/components/form-generic/src/rules/form-generic-display.d.ts +2 -0
- package/components/form-generic/src/rules/form-generic-filter.d.ts +21 -3
- package/components/form-generic/src/rules/form-generic-url.d.ts +10 -0
- package/components/form-generic/src/rules/form-generic-validation.d.ts +13 -0
- package/components/history/pipes/view-date.pipe.d.ts +1 -0
- package/components/import-excel/src/pipes/column-transform.pipe.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/mini-editor/index.d.ts +1 -0
- package/components/mini-editor/src/mini-editor.component.d.ts +25 -62
- package/components/mini-editor/src/mini-editor.model.d.ts +9 -9
- package/components/modal-resizable/src/modal-resizable.component.d.ts +3 -121
- package/components/operator/index.d.ts +2 -0
- package/components/operator/src/operator-chip.component.d.ts +72 -0
- package/components/operator/src/operator-items.d.ts +49 -0
- package/components/operator/src/operator.component.d.ts +18 -11
- package/components/section/index.d.ts +1 -0
- package/components/section/src/section-registry.d.ts +11 -0
- package/components/splitter/index.d.ts +1 -1
- package/components/tab-router/src/actions/tab-router.action.d.ts +1 -1
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +8 -1
- package/components/tab-router/src/components/tab-router-list-item/tab-router-list-item.component.d.ts +17 -0
- package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +50 -9
- package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +6 -1
- package/components/tab-router/src/models/tab-router.model.d.ts +5 -0
- package/components/tab-router/src/pipes/tab-info.pipe.d.ts +7 -0
- package/components/tab-router/src/services/tab-router.service.d.ts +5 -0
- package/components/table/index.d.ts +2 -0
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +7 -0
- package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +5 -1
- package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +4 -0
- package/components/table/src/components/unknown-total-paginator/unknown-total-paginator.component.d.ts +52 -0
- package/components/table/src/configurations/index.d.ts +1 -0
- package/components/table/src/configurations/table-layout.d.ts +16 -0
- package/components/table/src/configurations/table.configuration.d.ts +3 -1
- package/components/table/src/models/index.d.ts +1 -0
- package/components/table/src/models/table-column.model.d.ts +3 -10
- package/components/table/src/models/table-item.model.d.ts +4 -1
- package/components/table/src/models/table-option-loading.model.d.ts +42 -0
- package/components/table/src/models/table-option-paginate.model.d.ts +14 -0
- package/components/table/src/models/table-option.model.d.ts +31 -5
- package/components/table/src/services/table-aggregate.util.d.ts +6 -1
- package/components/table/src/services/table-export/table-export.service.d.ts +4 -3
- package/components/table/src/services/table-filter/table-filter-operator.util.d.ts +16 -0
- package/components/table/src/services/table-filter/table-filter.model.d.ts +12 -0
- package/components/table/src/services/table-loading/table-loading.util.d.ts +91 -0
- package/components/table/src/services/table-local/table-local-sort.util.d.ts +8 -2
- package/components/table/src/services/table-local/table-local.util.d.ts +7 -2
- package/components/table/src/services/table-paging/unknown-total.util.d.ts +28 -0
- package/components/table/src/services/tree/tree.util.d.ts +2 -0
- package/components/table/src/table.component.d.ts +39 -0
- package/components/upload-file/src/components/file-type-icon/file-type-icon.component.d.ts +15 -0
- package/components/upload-file/src/components/preview/preview.component.d.ts +88 -10
- package/components/upload-file/src/configurations/upload-file.configuration.d.ts +1 -1
- package/components/upload-file/src/helpers/file-type.d.ts +25 -0
- package/components/upload-file/src/pipes/file-meta.pipe.d.ts +9 -0
- package/components/upload-file/src/pipes/file-reason.pipe.d.ts +11 -0
- package/components/upload-file/src/pipes/index.d.ts +2 -0
- package/components/upload-file/src/upload-file.component.d.ts +89 -8
- package/components/window/index.d.ts +1 -0
- package/components/window/src/window.component.d.ts +77 -0
- package/components/{modal-resizable/src/modal-resizable.registry.d.ts → window/src/window.registry.d.ts} +7 -4
- package/configurations/src/sd-core.configuration.d.ts +7 -0
- 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 +141 -10
- package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-badge.mjs +546 -22
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-button.mjs +32 -2
- 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 +456 -755
- 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 +2119 -1160
- 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 +175 -281
- 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 +261 -42
- 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 +557 -92
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +1000 -118
- 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 +886 -173
- 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 +486 -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 +462 -124
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +421 -121
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +78 -12
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +74 -17
- 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 +55 -5
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +53 -6
- 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 +86 -32
- 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-Bk3PrEf3.mjs +478 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs +214 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs +277 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs +1556 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.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 +2053 -35
- 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-CVEKaR8U.mjs +51 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-CVEKaR8U.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs +130 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-BqHybMk0.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs +131 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CND3d2zl.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-BbDoQccI.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs +460 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CB_wJIP8.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DlP4BrhU.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-VAMePx_q.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-VAMePx_q.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs +148 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-BD79VR0c.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs +172 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-B1rFhbOc.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs +467 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BhCjw6ZL.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs +90 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs +514 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-BeH-NYvE.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs +61 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs +170 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-1bi0JZdf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +87 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +232 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +70 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-index.component-BAZLCVci.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs +522 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-ikk0cK1M.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs +164 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Cex41xzy.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs +629 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-D643jEmo.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs +71 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DTWHhNNl.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs +115 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-YJUJsrIZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs +118 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-list.component-qH-YO6wP.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.mjs +1069 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-S0Vuy6Oc.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-Ba73HPGG.mjs +48 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-product.service-Ba73HPGG.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs +295 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-CBlN7eEn.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-BvzFafUW.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs +165 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C3uWi8JZ.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs +74 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-C5ELCTEw.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs +50 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClQwnO4h.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs +66 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DTUxYZ6g.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs +99 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DpCuYBlL.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs +45 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-DwZWxmJf.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs +43 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-routes-ydOZduls.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs +406 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-D3B5I9hg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs +317 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-BW-i6BHg.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs +132 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-By1mYFa_.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs +143 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DwcyKb4j.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs +100 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BBR8360C.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs +357 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CAtqPgIH.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.mjs +128 -0
- package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DjMChf6s.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/forms/autocomplete/src/autocomplete.component.d.ts +5 -0
- package/forms/chip/src/chip.component.d.ts +135 -19
- package/forms/chip/src/index.d.ts +0 -1
- package/forms/chip-calendar/src/chip-calendar-header.component.d.ts +17 -0
- package/forms/chip-calendar/src/chip-calendar.component.d.ts +147 -19
- package/forms/date/src/date.component.d.ts +23 -2
- package/forms/date-range/src/date-range.component.d.ts +24 -2
- package/forms/datetime/src/datetime-time-zone.adapter.d.ts +15 -0
- package/forms/directives/index.d.ts +1 -0
- package/forms/directives/src/search-field.component.d.ts +45 -0
- package/forms/input/src/input.component.d.ts +23 -2
- package/forms/input-number/src/input-number.component.d.ts +23 -2
- package/forms/models/index.d.ts +1 -0
- package/forms/models/src/sd-calendar-day.d.ts +22 -0
- package/forms/models/src/sd-model-facing-control.d.ts +3 -1
- package/forms/models/src/sd-strict-date-adapter.d.ts +3 -0
- package/forms/models/src/sd-temporal-transform.d.ts +7 -0
- package/forms/select/src/select.component.d.ts +33 -4
- package/i18n/src/en.d.ts +344 -2
- package/modules/generic/index.d.ts +4 -0
- package/modules/generic/src/components/configuration-form/generic-configuration-form.component.d.ts +33 -0
- package/modules/generic/src/components/configuration-general/generic-configuration-general.component.d.ts +28 -0
- package/modules/generic/src/components/configuration-import/generic-configuration-import.component.d.ts +27 -0
- package/modules/generic/src/components/configuration-list/generic-configuration-list.component.d.ts +39 -0
- package/modules/generic/src/components/import-dialog/generic-import-dialog.component.d.ts +15 -0
- package/modules/generic/src/components/property-identity/generic-property-identity.component.d.ts +15 -0
- package/modules/generic/src/core/generic-columns.d.ts +19 -0
- package/modules/generic/src/core/generic-defaults.d.ts +14 -0
- package/modules/generic/src/core/generic-form.d.ts +17 -0
- package/modules/generic/src/core/generic-import.d.ts +49 -0
- package/modules/generic/src/core/generic-merge.d.ts +21 -0
- package/modules/generic/src/core/generic-permission.d.ts +3 -0
- package/modules/generic/src/core/generic-property-icon.d.ts +8 -0
- package/modules/generic/src/core/generic-search.d.ts +19 -0
- package/modules/generic/src/core/generic-title.d.ts +11 -0
- package/modules/generic/src/core/generic-validate.d.ts +8 -0
- package/modules/generic/src/core/index.d.ts +10 -0
- package/modules/generic/src/models/generic-adapter.model.d.ts +49 -0
- package/modules/generic/src/models/generic-entity.model.d.ts +71 -0
- package/modules/generic/src/models/generic-issue.model.d.ts +29 -0
- package/modules/generic/src/models/generic-schema.model.d.ts +133 -0
- package/modules/generic/src/models/index.d.ts +4 -0
- package/modules/generic/src/pages/configuration/generic-configuration.page.d.ts +26 -0
- package/modules/generic/src/pages/form/generic-form-host.page.d.ts +42 -0
- package/modules/generic/src/pages/list/generic-list.page.d.ts +39 -0
- package/modules/generic/src/registry/generic-registry.d.ts +35 -0
- package/modules/generic/src/registry/index.d.ts +2 -0
- package/modules/generic/src/registry/provide-sd-generic.d.ts +15 -0
- package/modules/generic/src/routes/generic-route.guards.d.ts +24 -0
- package/modules/generic/src/routes/sd-generic.routes.d.ts +10 -0
- package/modules/generic/src/services/generic-configuration-store.d.ts +13 -0
- package/modules/generic/src/services/generic-data.service.d.ts +34 -0
- package/modules/generic/src/services/generic-import.service.d.ts +21 -0
- package/modules/generic/src/services/generic-permission.service.d.ts +26 -0
- package/modules/generic/src/services/generic-relation-catalog.d.ts +14 -0
- package/modules/generic/src/services/generic-schema.service.d.ts +28 -0
- package/modules/generic/src/services/index.d.ts +6 -0
- package/modules/icon/src/data-type-icon.d.ts +30 -0
- package/modules/icon/src/icon.model.d.ts +2 -1
- package/modules/icon/src/index.d.ts +1 -0
- package/modules/index.d.ts +1 -0
- package/modules/layout/components/index.d.ts +5 -0
- package/modules/layout/components/layout-main/layout-main.component.d.ts +2 -1
- package/modules/layout/components/page/page-form-leave.guard.d.ts +9 -0
- package/modules/layout/components/page/page.component.d.ts +38 -2
- package/modules/layout/components/page-list/page-list.component.d.ts +42 -0
- package/modules/layout/components/shared/context-switcher/context-switcher.component.d.ts +71 -0
- package/modules/layout/components/shared/user-menu/user-menu.component.d.ts +1 -1
- package/modules/layout/components/sidebar-mobile-v4/main.component.d.ts +95 -0
- package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +1 -0
- package/modules/layout/components/sidebar-v3/main.component.d.ts +3 -0
- package/modules/layout/components/sidebar-v4/main.component.d.ts +69 -0
- package/modules/layout/components/sidebar-v4/menu-tree/sidebar-v4-menu-tree.component.d.ts +174 -0
- package/modules/layout/configurations/layout.configuration.d.ts +46 -1
- package/modules/layout/services/context/context.model.d.ts +16 -0
- package/modules/layout/services/context/context.runtime.d.ts +14 -0
- package/modules/layout/services/context/context.service.d.ts +54 -0
- package/modules/layout/services/context/index.d.ts +3 -0
- package/modules/layout/services/index.d.ts +1 -0
- package/modules/layout/services/menu/menu.model.d.ts +33 -0
- package/modules/layout/services/menu/menu.utils.d.ts +32 -1
- package/modules/layout/services/storage/storage.service.d.ts +20 -1
- package/modules/pattern/README.md +76 -0
- package/modules/pattern/configurations/pattern.configuration.d.ts +30 -0
- package/modules/pattern/configurations/provide-sd-patterns.d.ts +19 -0
- package/modules/pattern/core/mock-api/mock-api.interceptor.d.ts +8 -0
- package/modules/pattern/core/mock-api/mock-api.model.d.ts +62 -0
- package/modules/pattern/core/mock-api/mock-api.state.d.ts +36 -0
- package/modules/pattern/core/mock-api/mock-backend.d.ts +18 -0
- package/modules/pattern/core/mock-api/mock-backend.factory.d.ts +3 -0
- package/modules/pattern/core/mock-api/prng.d.ts +4 -0
- package/modules/pattern/core/mock-api/resources/approval.resource.d.ts +14 -0
- package/modules/pattern/core/mock-api/resources/category.resource.d.ts +9 -0
- package/modules/pattern/core/mock-api/resources/customer.resource.d.ts +22 -0
- package/modules/pattern/core/mock-api/resources/index.d.ts +3 -0
- package/modules/pattern/core/mock-api/resources/names.d.ts +5 -0
- package/modules/pattern/core/mock-api/resources/order.resource.d.ts +44 -0
- package/modules/pattern/core/mock-api/resources/partner.resource.d.ts +16 -0
- package/modules/pattern/core/mock-api/resources/product.resource.d.ts +13 -0
- package/modules/pattern/core/mock-api/resources/settings.resource.d.ts +18 -0
- package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +22 -0
- package/modules/pattern/core/pattern-shell/index/index.component.d.ts +9 -0
- package/modules/pattern/core/pattern-shell/settings/pattern-settings.store.d.ts +57 -0
- package/modules/pattern/core/pattern-shell/settings/settings-button.component.d.ts +44 -0
- package/modules/pattern/core/pattern-shell/shell/pattern-source-viewer.d.ts +8 -0
- package/modules/pattern/core/pattern-shell/shell/shell.component.d.ts +13 -0
- package/modules/pattern/core/pattern-shell/source/pattern-source.generated.d.ts +1 -0
- package/modules/pattern/core/pattern-shell/source/source-drawer.component.d.ts +27 -0
- package/modules/pattern/core/pattern-shell/toolbar/toolbar.component.d.ts +24 -0
- package/modules/pattern/core/permission/pattern-permission.d.ts +15 -0
- package/modules/pattern/core/permission/pattern-role.store.d.ts +13 -0
- package/modules/pattern/core/session-state.d.ts +4 -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.d.ts +4 -0
- package/modules/pattern/features/approval/entity.resolver.ts +21 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.d.ts +13 -0
- package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.d.ts +7 -0
- package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
- package/modules/pattern/features/approval/pages/list/list.component.d.ts +26 -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.d.ts +3 -0
- package/modules/pattern/features/approval/routes.ts +30 -0
- package/modules/pattern/features/approval/services/approval.model.d.ts +37 -0
- package/modules/pattern/features/approval/services/approval.model.ts +38 -0
- package/modules/pattern/features/approval/services/approval.service.d.ts +12 -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.d.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.d.ts +20 -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.d.ts +23 -0
- package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
- package/modules/pattern/features/category/entity.resolver.d.ts +6 -0
- package/modules/pattern/features/category/entity.resolver.ts +27 -0
- package/modules/pattern/features/category/pages/list/list.component.d.ts +17 -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.d.ts +3 -0
- package/modules/pattern/features/category/routes.ts +42 -0
- package/modules/pattern/features/category/services/category.model.d.ts +34 -0
- package/modules/pattern/features/category/services/category.model.ts +39 -0
- package/modules/pattern/features/category/services/category.service.d.ts +17 -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.d.ts +24 -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.d.ts +20 -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.d.ts +20 -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.d.ts +11 -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.d.ts +20 -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.d.ts +14 -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.d.ts +33 -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.d.ts +9 -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.d.ts +11 -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.d.ts +22 -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.d.ts +24 -0
- package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
- package/modules/pattern/features/customer/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/customer/entity.resolver.ts +21 -0
- package/modules/pattern/features/customer/pages/list/list.component.d.ts +19 -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.d.ts +31 -0
- package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
- package/modules/pattern/features/customer/routes.d.ts +6 -0
- package/modules/pattern/features/customer/routes.ts +59 -0
- package/modules/pattern/features/customer/services/customer.model.d.ts +77 -0
- package/modules/pattern/features/customer/services/customer.model.ts +87 -0
- package/modules/pattern/features/customer/services/customer.service.d.ts +24 -0
- package/modules/pattern/features/customer/services/customer.service.ts +79 -0
- package/modules/pattern/features/import/components/mapping-form/mapping-form.component.d.ts +21 -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.d.ts +10 -0
- package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
- package/modules/pattern/features/import/pages/flow/flow.component.d.ts +43 -0
- package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
- package/modules/pattern/features/import/routes.d.ts +2 -0
- package/modules/pattern/features/import/routes.ts +19 -0
- package/modules/pattern/features/import/services/import.model.d.ts +38 -0
- package/modules/pattern/features/import/services/import.model.ts +82 -0
- package/modules/pattern/features/import/services/import.service.d.ts +15 -0
- package/modules/pattern/features/import/services/import.service.ts +18 -0
- package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +9 -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.d.ts +22 -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.d.ts +30 -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.d.ts +33 -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.d.ts +12 -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.d.ts +25 -0
- package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
- package/modules/pattern/features/order/entity.resolver.d.ts +9 -0
- package/modules/pattern/features/order/entity.resolver.ts +37 -0
- package/modules/pattern/features/order/pages/create/create.component.d.ts +16 -0
- package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
- package/modules/pattern/features/order/pages/detail/detail.component.d.ts +26 -0
- package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
- package/modules/pattern/features/order/pages/list/list.component.d.ts +29 -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.d.ts +20 -0
- package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
- package/modules/pattern/features/order/routes.d.ts +7 -0
- package/modules/pattern/features/order/routes.ts +54 -0
- package/modules/pattern/features/order/services/order.model.d.ts +106 -0
- package/modules/pattern/features/order/services/order.model.ts +109 -0
- package/modules/pattern/features/order/services/order.service.d.ts +25 -0
- package/modules/pattern/features/order/services/order.service.ts +63 -0
- package/modules/pattern/features/partner/pages/create/create.component.d.ts +41 -0
- package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
- package/modules/pattern/features/partner/routes.d.ts +2 -0
- package/modules/pattern/features/partner/routes.ts +20 -0
- package/modules/pattern/features/partner/services/partner.model.d.ts +30 -0
- package/modules/pattern/features/partner/services/partner.model.ts +30 -0
- package/modules/pattern/features/partner/services/partner.service.d.ts +13 -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.d.ts +23 -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.d.ts +20 -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.d.ts +22 -0
- package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
- package/modules/pattern/features/product/entity.resolver.d.ts +4 -0
- package/modules/pattern/features/product/entity.resolver.ts +21 -0
- package/modules/pattern/features/product/pages/create/create.component.d.ts +15 -0
- package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
- package/modules/pattern/features/product/pages/detail/detail.component.d.ts +10 -0
- package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
- package/modules/pattern/features/product/pages/list/list.component.d.ts +15 -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.d.ts +16 -0
- package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.d.ts +14 -0
- package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
- package/modules/pattern/features/product/routes.d.ts +3 -0
- package/modules/pattern/features/product/routes.ts +48 -0
- package/modules/pattern/features/product/services/product.model.d.ts +34 -0
- package/modules/pattern/features/product/services/product.model.ts +38 -0
- package/modules/pattern/features/product/services/product.service.d.ts +17 -0
- package/modules/pattern/features/product/services/product.service.ts +48 -0
- package/modules/pattern/features/settings/pages/update/update.component.d.ts +26 -0
- package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
- package/modules/pattern/features/settings/routes.d.ts +3 -0
- package/modules/pattern/features/settings/routes.ts +24 -0
- package/modules/pattern/features/settings/services/settings.model.d.ts +17 -0
- package/modules/pattern/features/settings/services/settings.model.ts +18 -0
- package/modules/pattern/features/settings/services/settings.service.d.ts +10 -0
- package/modules/pattern/features/settings/services/settings.service.ts +15 -0
- package/modules/pattern/features/settings/settings.resolver.d.ts +4 -0
- package/modules/pattern/features/settings/settings.resolver.ts +8 -0
- package/modules/pattern/index.d.ts +3 -0
- package/modules/pattern/routes.d.ts +6 -0
- package/modules/pattern/services/base-api.service.d.ts +16 -0
- package/modules/pattern/utils/api-error.d.ts +4 -0
- package/modules/pattern/utils/focus-first-invalid.d.ts +5 -0
- package/modules/pattern/utils/form-api-errors.d.ts +16 -0
- package/modules/pattern/utils/resource-url.d.ts +2 -0
- package/package.json +49 -12
- package/pipes/src/format-date.pipe.d.ts +1 -0
- package/pipes/src/format-datetime.pipe.d.ts +1 -0
- package/services/date-time/index.d.ts +1 -0
- package/services/date-time/src/date-time.service.d.ts +54 -0
- package/services/index.d.ts +1 -0
- package/services/storage/src/storage.model.d.ts +8 -1
- package/services/unsaved-changes/src/unsaved-changes.adapters.d.ts +9 -0
- package/services/unsaved-changes/src/unsaved-changes.model.d.ts +2 -0
- package/utilities/read-state/src/read-state.d.ts +2 -0
- package/utilities/theme/src/theme-tokens.d.ts +1 -1
- package/components/editor/src/plugins/image-upload/image-upload.plugin.d.ts +0 -22
- package/components/editor/src/plugins/image-upload/utils/batch.utils.d.ts +0 -14
- package/components/editor/src/plugins/image-upload/utils/index.d.ts +0 -3
- package/forms/chip/src/pipes/index.d.ts +0 -1
- package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
- package/forms/chip-calendar/src/pipes/index.d.ts +0 -1
- package/forms/chip-calendar/src/pipes/removable-chip.pipe.d.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdcorejs-angular-utilities-read-state.mjs","sources":["../../../projects/sdcorejs-angular/utilities/read-state/src/read-state.ts","../../../projects/sdcorejs-angular/utilities/read-state/sdcorejs-angular-utilities-read-state.ts"],"sourcesContent":["import { TemplateRef, signal } from '@angular/core';\n\nexport type SdReadOperation = 'TABLE' | 'VALUE' | 'SEARCH';\nexport type SdReadStatus = 'idle' | 'loading' | 'ready' | 'empty' | 'error';\n\n/** An accepted read result. Only an error snapshot contains the original exception. */\nexport type SdReadState = Readonly<\n { status: Exclude<SdReadStatus, 'error'>; operation: SdReadOperation } | { status: 'error'; operation: SdReadOperation; error: unknown }\n>;\n\nexport type SdSearchReadState = SdReadState & {\n readonly channels: Readonly<{ VALUE: SdReadState; SEARCH: SdReadState }>;\n};\n\n/** VALUE errors take precedence; otherwise SEARCH errors, then the active SEARCH channel. */\nexport function combineReadStates(value: SdReadState, search: SdReadState): SdSearchReadState {\n const current = value.status === 'error' ? value : search.status !== 'idle' ? search : value;\n return Object.freeze({ ...current, channels: Object.freeze({ VALUE: value, SEARCH: search }) });\n}\n\n/** @internal Request guard shared by controls. Context is checked even before Angular effects run. */\nexport class SdReadChannel {\n readonly #state;\n readonly state;\n #revision = 0;\n #valid = () => true;\n\n constructor(\n readonly operation: SdReadOperation,\n private readonly changed?: (state: SdReadState) => void\n ) {\n this.#state = signal<SdReadState>(Object.freeze({ status: 'idle', operation }));\n this.state = this.#state.asReadonly();\n }\n\n begin(valid: () => boolean = () => true): number {\n this.#valid = valid;\n const revision = ++this.#revision;\n this.#set({ status: 'loading', operation: this.operation });\n return revision;\n }\n\n isCurrent(revision: number): boolean {\n return revision === this.#revision && this.#valid();\n }\n\n succeed(revision: number, count: number): boolean {\n if (!this.isCurrent(revision)) return false;\n this.#set({ status: count ? 'ready' : 'empty', operation: this.operation });\n return true;\n }\n\n fail(revision: number, error: unknown): boolean {\n if (!this.isCurrent(revision)) return false;\n this.#set({ status: 'error', operation: this.operation, error });\n return true;\n }\n\n invalidate(): void {\n ++this.#revision;\n this.#valid = () => true;\n if (this.state().status !== 'idle') this.#set({ status: 'idle', operation: this.operation });\n }\n\n #set(state: SdReadState): void {\n const snapshot = Object.freeze(state);\n this.#state.set(snapshot);\n this.changed?.(snapshot);\n }\n}\n\n/**\n * @internal Copy request-owned data, including Dates. Unlike ObjectUtilities.clone,\n * Dates must be copied too; structuredClone cannot retain table column callbacks.\n */\nexport function cloneReadRequest<T>(value: T, seen = new WeakMap<object, unknown>()): T {\n if (value === null || typeof value !== 'object') return value;\n // why: TemplateRef là handle thuộc Angular view, không phải dữ liệu request có thể sao chép.\n if (value instanceof TemplateRef) return value;\n if (seen.has(value)) return seen.get(value) as T;\n if (value instanceof Date) return new Date(value.getTime()) as T;\n const copy = (Array.isArray(value) ? [] : Object.create(Object.getPrototypeOf(value))) as T;\n seen.set(value, copy);\n for (const key of Object.keys(value)) {\n Object.defineProperty(copy, key, {\n value: cloneReadRequest((value as Record<string, unknown>)[key], seen),\n enumerable: true,\n writable: true,\n configurable: true,\n });\n }\n return copy;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAcA;AACM,SAAU,iBAAiB,CAAC,KAAkB,EAAE,MAAmB,EAAA;IACvE,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,KAAK,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AACjG;AAEA;MACa,aAAa,CAAA;AAOb,IAAA,SAAA;AACQ,IAAA,OAAA;AAPV,IAAA,MAAM;AACN,IAAA,KAAK;IACd,SAAS,GAAG,CAAC;AACb,IAAA,MAAM,GAAG,MAAM,IAAI;IAEnB,WAAA,CACW,SAA0B,EAClB,OAAsC,EAAA;QAD9C,IAAA,CAAA,SAAS,GAAT,SAAS;QACD,IAAA,CAAA,OAAO,GAAP,OAAO;AAExB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAc,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;IACvC;AAEA,IAAA,KAAK,CAAC,KAAA,GAAuB,MAAM,IAAI,EAAA;AACrC,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK;AACnB,QAAA,MAAM,QAAQ,GAAG,EAAE,IAAI,CAAC,SAAS;AACjC,QAAA,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;AAC3D,QAAA,OAAO,QAAQ;IACjB;AAEA,IAAA,SAAS,CAAC,QAAgB,EAAA;QACxB,OAAO,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;IACrD;IAEA,OAAO,CAAC,QAAgB,EAAE,KAAa,EAAA;AACrC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;AAAE,YAAA,OAAO,KAAK;QAC3C,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;AAC3E,QAAA,OAAO,IAAI;IACb;IAEA,IAAI,CAAC,QAAgB,EAAE,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;AAAE,YAAA,OAAO,KAAK;AAC3C,QAAA,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;AAChE,QAAA,OAAO,IAAI;IACb;IAEA,UAAU,GAAA;QACR,EAAE,IAAI,CAAC,SAAS;AAChB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI;AACxB,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,KAAK,MAAM;AAAE,YAAA,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;IAC9F;AAEA,IAAA,IAAI,CAAC,KAAkB,EAAA;QACrB,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;AACrC,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;IAC1B;AACD;AAED;;;AAGG;AACG,SAAU,gBAAgB,CAAI,KAAQ,EAAE,IAAA,GAAO,IAAI,OAAO,EAAmB,EAAA;AACjF,IAAA,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,KAAK;;IAE7D,IAAI,KAAK,YAAY,WAAW;AAAE,QAAA,OAAO,KAAK;AAC9C,IAAA,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAM;IAChD,IAAI,KAAK,YAAY,IAAI;QAAE,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAM;AAChE,IAAA,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAM;AAC3F,IAAA,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AACpC,QAAA,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE;YAC/B,KAAK,EAAE,gBAAgB,CAAE,KAAiC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;AACtE,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;IACJ;AACA,IAAA,OAAO,IAAI;AACb;;
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-utilities-read-state.mjs","sources":["../../../projects/sdcorejs-angular/utilities/read-state/src/read-state.ts","../../../projects/sdcorejs-angular/utilities/read-state/sdcorejs-angular-utilities-read-state.ts"],"sourcesContent":["import { TemplateRef, signal } from '@angular/core';\n\nexport type SdReadOperation = 'TABLE' | 'VALUE' | 'SEARCH';\nexport type SdReadStatus = 'idle' | 'loading' | 'ready' | 'empty' | 'error';\n\n/** An accepted read result. Only an error snapshot contains the original exception. */\nexport type SdReadState = Readonly<\n { status: Exclude<SdReadStatus, 'error'>; operation: SdReadOperation } | { status: 'error'; operation: SdReadOperation; error: unknown }\n>;\n\nexport type SdSearchReadState = SdReadState & {\n readonly channels: Readonly<{ VALUE: SdReadState; SEARCH: SdReadState }>;\n};\n\n/** VALUE errors take precedence; otherwise SEARCH errors, then the active SEARCH channel. */\nexport function combineReadStates(value: SdReadState, search: SdReadState): SdSearchReadState {\n const current = value.status === 'error' ? value : search.status !== 'idle' ? search : value;\n return Object.freeze({ ...current, channels: Object.freeze({ VALUE: value, SEARCH: search }) });\n}\n\n/** @internal Request guard shared by controls. Context is checked even before Angular effects run. */\nexport class SdReadChannel {\n readonly #state;\n readonly state;\n #revision = 0;\n #valid = () => true;\n\n constructor(\n readonly operation: SdReadOperation,\n private readonly changed?: (state: SdReadState) => void\n ) {\n this.#state = signal<SdReadState>(Object.freeze({ status: 'idle', operation }));\n this.state = this.#state.asReadonly();\n }\n\n begin(valid: () => boolean = () => true): number {\n this.#valid = valid;\n const revision = ++this.#revision;\n this.#set({ status: 'loading', operation: this.operation });\n return revision;\n }\n\n isCurrent(revision: number): boolean {\n return revision === this.#revision && this.#valid();\n }\n\n /** No read began and nothing invalidated since `revision`, even if its context is no longer valid. */\n isLatest(revision: number): boolean {\n return revision === this.#revision;\n }\n\n succeed(revision: number, count: number): boolean {\n if (!this.isCurrent(revision)) return false;\n this.#set({ status: count ? 'ready' : 'empty', operation: this.operation });\n return true;\n }\n\n fail(revision: number, error: unknown): boolean {\n if (!this.isCurrent(revision)) return false;\n this.#set({ status: 'error', operation: this.operation, error });\n return true;\n }\n\n invalidate(): void {\n ++this.#revision;\n this.#valid = () => true;\n if (this.state().status !== 'idle') this.#set({ status: 'idle', operation: this.operation });\n }\n\n #set(state: SdReadState): void {\n const snapshot = Object.freeze(state);\n this.#state.set(snapshot);\n this.changed?.(snapshot);\n }\n}\n\n/**\n * @internal Copy request-owned data, including Dates. Unlike ObjectUtilities.clone,\n * Dates must be copied too; structuredClone cannot retain table column callbacks.\n */\nexport function cloneReadRequest<T>(value: T, seen = new WeakMap<object, unknown>()): T {\n if (value === null || typeof value !== 'object') return value;\n // why: TemplateRef là handle thuộc Angular view, không phải dữ liệu request có thể sao chép.\n if (value instanceof TemplateRef) return value;\n if (seen.has(value)) return seen.get(value) as T;\n if (value instanceof Date) return new Date(value.getTime()) as T;\n const copy = (Array.isArray(value) ? [] : Object.create(Object.getPrototypeOf(value))) as T;\n seen.set(value, copy);\n for (const key of Object.keys(value)) {\n Object.defineProperty(copy, key, {\n value: cloneReadRequest((value as Record<string, unknown>)[key], seen),\n enumerable: true,\n writable: true,\n configurable: true,\n });\n }\n return copy;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAcA;AACM,SAAU,iBAAiB,CAAC,KAAkB,EAAE,MAAmB,EAAA;IACvE,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,KAAK,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AACjG;AAEA;MACa,aAAa,CAAA;AAOb,IAAA,SAAA;AACQ,IAAA,OAAA;AAPV,IAAA,MAAM;AACN,IAAA,KAAK;IACd,SAAS,GAAG,CAAC;AACb,IAAA,MAAM,GAAG,MAAM,IAAI;IAEnB,WAAA,CACW,SAA0B,EAClB,OAAsC,EAAA;QAD9C,IAAA,CAAA,SAAS,GAAT,SAAS;QACD,IAAA,CAAA,OAAO,GAAP,OAAO;AAExB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAc,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;IACvC;AAEA,IAAA,KAAK,CAAC,KAAA,GAAuB,MAAM,IAAI,EAAA;AACrC,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK;AACnB,QAAA,MAAM,QAAQ,GAAG,EAAE,IAAI,CAAC,SAAS;AACjC,QAAA,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;AAC3D,QAAA,OAAO,QAAQ;IACjB;AAEA,IAAA,SAAS,CAAC,QAAgB,EAAA;QACxB,OAAO,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;IACrD;;AAGA,IAAA,QAAQ,CAAC,QAAgB,EAAA;AACvB,QAAA,OAAO,QAAQ,KAAK,IAAI,CAAC,SAAS;IACpC;IAEA,OAAO,CAAC,QAAgB,EAAE,KAAa,EAAA;AACrC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;AAAE,YAAA,OAAO,KAAK;QAC3C,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;AAC3E,QAAA,OAAO,IAAI;IACb;IAEA,IAAI,CAAC,QAAgB,EAAE,KAAc,EAAA;AACnC,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;AAAE,YAAA,OAAO,KAAK;AAC3C,QAAA,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;AAChE,QAAA,OAAO,IAAI;IACb;IAEA,UAAU,GAAA;QACR,EAAE,IAAI,CAAC,SAAS;AAChB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI;AACxB,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,KAAK,MAAM;AAAE,YAAA,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;IAC9F;AAEA,IAAA,IAAI,CAAC,KAAkB,EAAA;QACrB,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;AACrC,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;IAC1B;AACD;AAED;;;AAGG;AACG,SAAU,gBAAgB,CAAI,KAAQ,EAAE,IAAA,GAAO,IAAI,OAAO,EAAmB,EAAA;AACjF,IAAA,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,KAAK;;IAE7D,IAAI,KAAK,YAAY,WAAW;AAAE,QAAA,OAAO,KAAK;AAC9C,IAAA,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAM;IAChD,IAAI,KAAK,YAAY,IAAI;QAAE,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAM;AAChE,IAAA,MAAM,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAM;AAC3F,IAAA,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AACpC,QAAA,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE;YAC/B,KAAK,EAAE,gBAAgB,CAAE,KAAiC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;AACtE,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;IACJ;AACA,IAAA,OAAO,IAAI;AACb;;ACjGA;;AAEG;;;;"}
|
|
@@ -133,7 +133,17 @@ const SD_COLOR_TOKENS = [
|
|
|
133
133
|
'border-focus',
|
|
134
134
|
'border-danger',
|
|
135
135
|
'overlay-backdrop',
|
|
136
|
+
'overlay-surface',
|
|
136
137
|
'focus-ring-color',
|
|
138
|
+
// Control roles (outline, focus and disabled state of every box control). `control-ring` and
|
|
139
|
+
// `control-ring-error` hold a box-shadow, not a bare colour.
|
|
140
|
+
'control-border',
|
|
141
|
+
'control-border-hover',
|
|
142
|
+
'control-border-focus',
|
|
143
|
+
'control-border-disabled',
|
|
144
|
+
'control-ring',
|
|
145
|
+
'control-ring-error',
|
|
146
|
+
'control-bg-disabled',
|
|
137
147
|
];
|
|
138
148
|
/**
|
|
139
149
|
* Đọc giá trị của các token màu từ computed style của `element` (mặc định `<html>`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdcorejs-angular-utilities-theme.mjs","sources":["../../../projects/sdcorejs-angular/utilities/theme/src/theme-tokens.ts","../../../projects/sdcorejs-angular/utilities/theme/sdcorejs-angular-utilities-theme.ts"],"sourcesContent":["/**\n * Danh sách token màu public của Core UI (không kèm tiền tố `--sd-`): palette gốc của 2.15, ramp 50–950 và\n * các vai trò semantic. `scripts/theme-token-list.test.mjs` giữ danh sách này khớp với output của `sd.theme()`.\n *\n * Token component (`--sd-{component}-{role}`) và thang space/radius/typography… không nằm ở đây: chúng là hook\n * tuỳ biến, không phải màu nền tảng để app tự dùng.\n */\nexport const SD_COLOR_TOKENS = [\n // Primitive palette (2.15)\n 'primary',\n 'primary-light',\n 'primary-dark',\n 'primary-contrast',\n 'secondary',\n 'secondary-light',\n 'secondary-dark',\n 'secondary-contrast',\n 'info',\n 'info-light',\n 'info-dark',\n 'info-contrast',\n 'success',\n 'success-light',\n 'success-dark',\n 'success-contrast',\n 'warning',\n 'warning-light',\n 'warning-dark',\n 'warning-contrast',\n 'error',\n 'error-light',\n 'error-dark',\n 'error-contrast',\n 'surface',\n 'surface-muted',\n 'text',\n 'text-secondary',\n 'text-muted',\n 'border',\n 'border-strong',\n 'disabled-bg',\n 'disabled-text',\n // Ramps 50–950\n 'primary-50',\n 'primary-100',\n 'primary-200',\n 'primary-300',\n 'primary-400',\n 'primary-500',\n 'primary-600',\n 'primary-700',\n 'primary-800',\n 'primary-900',\n 'primary-950',\n 'secondary-50',\n 'secondary-100',\n 'secondary-200',\n 'secondary-300',\n 'secondary-400',\n 'secondary-500',\n 'secondary-600',\n 'secondary-700',\n 'secondary-800',\n 'secondary-900',\n 'secondary-950',\n 'info-50',\n 'info-100',\n 'info-200',\n 'info-300',\n 'info-400',\n 'info-500',\n 'info-600',\n 'info-700',\n 'info-800',\n 'info-900',\n 'info-950',\n 'success-50',\n 'success-100',\n 'success-200',\n 'success-300',\n 'success-400',\n 'success-500',\n 'success-600',\n 'success-700',\n 'success-800',\n 'success-900',\n 'success-950',\n 'warning-50',\n 'warning-100',\n 'warning-200',\n 'warning-300',\n 'warning-400',\n 'warning-500',\n 'warning-600',\n 'warning-700',\n 'warning-800',\n 'warning-900',\n 'warning-950',\n 'error-50',\n 'error-100',\n 'error-200',\n 'error-300',\n 'error-400',\n 'error-500',\n 'error-600',\n 'error-700',\n 'error-800',\n 'error-900',\n 'error-950',\n 'neutral-50',\n 'neutral-100',\n 'neutral-200',\n 'neutral-300',\n 'neutral-400',\n 'neutral-500',\n 'neutral-600',\n 'neutral-700',\n 'neutral-800',\n 'neutral-900',\n 'neutral-950',\n // Semantic roles\n 'status-info-bg',\n 'status-info-fg',\n 'status-success-bg',\n 'status-success-fg',\n 'status-warning-bg',\n 'status-warning-fg',\n 'status-error-bg',\n 'status-error-fg',\n 'link',\n 'surface-inverse',\n 'text-on-solid',\n 'border-focus',\n 'border-danger',\n 'overlay-backdrop',\n 'focus-ring-color',\n] as const;\n\n/** Tên một token màu public của Core UI, ví dụ `'primary'`, `'primary-600'`, `'status-error-fg'`. */\nexport type SdColorToken = (typeof SD_COLOR_TOKENS)[number];\n\n/**\n * Đọc giá trị của các token màu từ computed style của `element` (mặc định `<html>`).\n *\n * - Giá trị là text của custom property sau khi trình duyệt đã thay mọi `var()` — ví dụ `'#005cbb'`, hoặc\n * `'color-mix(in srgb, #005cbb 14%, white)'` với token dẫn xuất (gán cho một thuộc tính màu để có màu cụ thể).\n * - Chỉ trả những token đang có giá trị trên phần tử đó (theme chưa được include thì thiếu).\n * - Không có `document` / `window` (SSR), hoặc phần tử thuộc một document không hiển thị: trả `{}`.\n *\n * @example readSdTokens()['primary'] // '#005cbb'\n * @example readSdTokens(dialogEl, ['surface', 'text']) // giá trị trong scope của dialog (vd scope dark)\n */\nexport function readSdTokens(\n element?: Element | null,\n tokens: readonly SdColorToken[] = SD_COLOR_TOKENS\n): Partial<Record<SdColorToken, string>> {\n const target = element ?? (typeof document === 'undefined' ? null : document.documentElement);\n const view = target?.ownerDocument?.defaultView;\n if (!target || !view) return {};\n const style = view.getComputedStyle(target);\n const result: Partial<Record<SdColorToken, string>> = {};\n for (const token of tokens) {\n const value = style.getPropertyValue(`--sd-${token}`).trim();\n if (value) result[token] = value;\n }\n return result;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;AACI,MAAM,eAAe,GAAG;;IAE7B,SAAS;IACT,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,WAAW;IACX,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,MAAM;IACN,YAAY;IACZ,WAAW;IACX,eAAe;IACf,SAAS;IACT,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,SAAS;IACT,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,OAAO;IACP,aAAa;IACb,YAAY;IACZ,gBAAgB;IAChB,SAAS;IACT,eAAe;IACf,MAAM;IACN,gBAAgB;IAChB,YAAY;IACZ,QAAQ;IACR,eAAe;IACf,aAAa;IACb,eAAe;;IAEf,YAAY;IACZ,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,YAAY;IACZ,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,YAAY;IACZ,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,UAAU;IACV,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;IACb,aAAa;;IAEb,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,iBAAiB;IACjB,MAAM;IACN,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,eAAe;IACf,kBAAkB;IAClB,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-utilities-theme.mjs","sources":["../../../projects/sdcorejs-angular/utilities/theme/src/theme-tokens.ts","../../../projects/sdcorejs-angular/utilities/theme/sdcorejs-angular-utilities-theme.ts"],"sourcesContent":["/**\n * Danh sách token màu public của Core UI (không kèm tiền tố `--sd-`): palette gốc của 2.15, ramp 50–950 và\n * các vai trò semantic. `scripts/theme-token-list.test.mjs` giữ danh sách này khớp với output của `sd.theme()`.\n *\n * Token component (`--sd-{component}-{role}`) và thang space/radius/typography… không nằm ở đây: chúng là hook\n * tuỳ biến, không phải màu nền tảng để app tự dùng.\n */\nexport const SD_COLOR_TOKENS = [\n // Primitive palette (2.15)\n 'primary',\n 'primary-light',\n 'primary-dark',\n 'primary-contrast',\n 'secondary',\n 'secondary-light',\n 'secondary-dark',\n 'secondary-contrast',\n 'info',\n 'info-light',\n 'info-dark',\n 'info-contrast',\n 'success',\n 'success-light',\n 'success-dark',\n 'success-contrast',\n 'warning',\n 'warning-light',\n 'warning-dark',\n 'warning-contrast',\n 'error',\n 'error-light',\n 'error-dark',\n 'error-contrast',\n 'surface',\n 'surface-muted',\n 'text',\n 'text-secondary',\n 'text-muted',\n 'border',\n 'border-strong',\n 'disabled-bg',\n 'disabled-text',\n // Ramps 50–950\n 'primary-50',\n 'primary-100',\n 'primary-200',\n 'primary-300',\n 'primary-400',\n 'primary-500',\n 'primary-600',\n 'primary-700',\n 'primary-800',\n 'primary-900',\n 'primary-950',\n 'secondary-50',\n 'secondary-100',\n 'secondary-200',\n 'secondary-300',\n 'secondary-400',\n 'secondary-500',\n 'secondary-600',\n 'secondary-700',\n 'secondary-800',\n 'secondary-900',\n 'secondary-950',\n 'info-50',\n 'info-100',\n 'info-200',\n 'info-300',\n 'info-400',\n 'info-500',\n 'info-600',\n 'info-700',\n 'info-800',\n 'info-900',\n 'info-950',\n 'success-50',\n 'success-100',\n 'success-200',\n 'success-300',\n 'success-400',\n 'success-500',\n 'success-600',\n 'success-700',\n 'success-800',\n 'success-900',\n 'success-950',\n 'warning-50',\n 'warning-100',\n 'warning-200',\n 'warning-300',\n 'warning-400',\n 'warning-500',\n 'warning-600',\n 'warning-700',\n 'warning-800',\n 'warning-900',\n 'warning-950',\n 'error-50',\n 'error-100',\n 'error-200',\n 'error-300',\n 'error-400',\n 'error-500',\n 'error-600',\n 'error-700',\n 'error-800',\n 'error-900',\n 'error-950',\n 'neutral-50',\n 'neutral-100',\n 'neutral-200',\n 'neutral-300',\n 'neutral-400',\n 'neutral-500',\n 'neutral-600',\n 'neutral-700',\n 'neutral-800',\n 'neutral-900',\n 'neutral-950',\n // Semantic roles\n 'status-info-bg',\n 'status-info-fg',\n 'status-success-bg',\n 'status-success-fg',\n 'status-warning-bg',\n 'status-warning-fg',\n 'status-error-bg',\n 'status-error-fg',\n 'link',\n 'surface-inverse',\n 'text-on-solid',\n 'border-focus',\n 'border-danger',\n 'overlay-backdrop',\n 'overlay-surface',\n 'focus-ring-color',\n // Control roles (outline, focus and disabled state of every box control). `control-ring` and\n // `control-ring-error` hold a box-shadow, not a bare colour.\n 'control-border',\n 'control-border-hover',\n 'control-border-focus',\n 'control-border-disabled',\n 'control-ring',\n 'control-ring-error',\n 'control-bg-disabled',\n] as const;\n\n/** Tên một token màu public của Core UI, ví dụ `'primary'`, `'primary-600'`, `'status-error-fg'`. */\nexport type SdColorToken = (typeof SD_COLOR_TOKENS)[number];\n\n/**\n * Đọc giá trị của các token màu từ computed style của `element` (mặc định `<html>`).\n *\n * - Giá trị là text của custom property sau khi trình duyệt đã thay mọi `var()` — ví dụ `'#005cbb'`, hoặc\n * `'color-mix(in srgb, #005cbb 14%, white)'` với token dẫn xuất (gán cho một thuộc tính màu để có màu cụ thể).\n * - Chỉ trả những token đang có giá trị trên phần tử đó (theme chưa được include thì thiếu).\n * - Không có `document` / `window` (SSR), hoặc phần tử thuộc một document không hiển thị: trả `{}`.\n *\n * @example readSdTokens()['primary'] // '#005cbb'\n * @example readSdTokens(dialogEl, ['surface', 'text']) // giá trị trong scope của dialog (vd scope dark)\n */\nexport function readSdTokens(\n element?: Element | null,\n tokens: readonly SdColorToken[] = SD_COLOR_TOKENS\n): Partial<Record<SdColorToken, string>> {\n const target = element ?? (typeof document === 'undefined' ? null : document.documentElement);\n const view = target?.ownerDocument?.defaultView;\n if (!target || !view) return {};\n const style = view.getComputedStyle(target);\n const result: Partial<Record<SdColorToken, string>> = {};\n for (const token of tokens) {\n const value = style.getPropertyValue(`--sd-${token}`).trim();\n if (value) result[token] = value;\n }\n return result;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -110,6 +110,11 @@ export declare class SdAutocomplete<T = unknown> implements OnInit, OnDestroy {
|
|
|
110
110
|
protected readonly virtualOptionId: (index: number) => string;
|
|
111
111
|
/** Row the keyboard made active in the full filtered list, or -1 (reset when the results change, like Material). */
|
|
112
112
|
readonly virtualActiveIndex: import("@angular/core").WritableSignal<number>;
|
|
113
|
+
/**
|
|
114
|
+
* Option khớp giá trị hiện tại — tô như option đang chọn khi mở lại panel. why: MatAutocomplete không có
|
|
115
|
+
* selection model, và option được dựng lại mỗi lần lọc nên trạng thái `selected` của Material không còn.
|
|
116
|
+
*/
|
|
117
|
+
protected isSelectedOption(item: unknown): boolean;
|
|
113
118
|
getNestedValue: (obj: any, path: string | undefined) => any;
|
|
114
119
|
constructor();
|
|
115
120
|
ngOnInit(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormControl, FormGroup
|
|
3
|
-
import {
|
|
4
|
-
import { MatChipInputEvent } from '@angular/material/chips';
|
|
1
|
+
import { ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatChipGrid, MatChipInputEvent } from '@angular/material/chips';
|
|
5
4
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
6
5
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
6
|
import { SdLabelDefDirective, SdViewDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
@@ -9,13 +8,10 @@ import { SdFormControl, SdViewed, SdViewedInput } from '@sdcorejs/angular/forms/
|
|
|
9
8
|
import type { SdLabelPlacement } from '@sdcorejs/angular/forms/models';
|
|
10
9
|
import { Size } from '@sdcorejs/utils/models';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
|
-
declare class
|
|
13
|
-
private formControl;
|
|
14
|
-
constructor(formControl: FormControl);
|
|
15
|
-
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class SdChip implements AfterViewInit, OnDestroy {
|
|
11
|
+
export declare class SdChip {
|
|
18
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;
|
|
19
15
|
autoIdInput: import("@angular/core").InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
20
16
|
autoId: import("@angular/core").Signal<string | undefined>;
|
|
21
17
|
readonly dataDisabled: import("@angular/core").Signal<"true" | "false">;
|
|
@@ -45,9 +41,31 @@ export declare class SdChip implements AfterViewInit, OnDestroy {
|
|
|
45
41
|
removable: import("@angular/core").InputSignalWithTransform<boolean | ((item: any) => boolean), boolean | ((item: any) => boolean) | null | undefined>;
|
|
46
42
|
hideInlineError: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
47
43
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
/** Fewest chips; > 0 adds `Validators.minLength`. Replaces `min`. */
|
|
45
|
+
minCount: import("@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: import("@angular/core").InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
48
|
+
/** @deprecated Use `minCount`; `minCount` wins when both are set. */
|
|
48
49
|
min: import("@angular/core").InputSignalWithTransform<number, number | null | undefined>;
|
|
50
|
+
/** @deprecated Use `maxCount`; `maxCount` wins when both are set. */
|
|
49
51
|
max: import("@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. */
|
|
50
53
|
addable: import("@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: import("@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: import("@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: import("@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: import("@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: import("@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: import("@angular/core").InputSignal<number | null | undefined>;
|
|
51
69
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
70
|
/** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
|
|
53
71
|
viewed: import("@angular/core").InputSignalWithTransform<SdViewed, SdViewedInput>;
|
|
@@ -57,30 +75,128 @@ export declare class SdChip implements AfterViewInit, OnDestroy {
|
|
|
57
75
|
model: import("@angular/core").ModelSignal<(string | number)[] | undefined>;
|
|
58
76
|
sdChange: import("@angular/core").OutputEmitterRef<any[]>;
|
|
59
77
|
input: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
78
|
+
readonly chipGrid: import("@angular/core").Signal<MatChipGrid | undefined>;
|
|
79
|
+
private readonly chipTextElements;
|
|
60
80
|
sdViewDef: import("@angular/core").Signal<SdViewDefDirective<any, any> | undefined>;
|
|
61
81
|
sdLabelDef: import("@angular/core").Signal<SdLabelDefDirective | undefined>;
|
|
62
82
|
sdLabelTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
63
83
|
sdValueTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
64
|
-
|
|
65
|
-
readonly
|
|
66
|
-
|
|
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: import("@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: import("@angular/core").Signal<number>;
|
|
94
|
+
/** `maxCount`, else the deprecated `max`. */
|
|
95
|
+
readonly effectiveMaxCount: import("@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: import("@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: import("@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: import("@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: import("@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: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
114
|
+
/** `maxCount` reached: typing and pasting add nothing more (B3). */
|
|
115
|
+
readonly full: import("@angular/core").Signal<boolean>;
|
|
116
|
+
/** Chips on screen: all while the field has focus, else at most `maxVisible` (B7). */
|
|
117
|
+
readonly visibleChips: import("@angular/core").Signal<(string | number)[]>;
|
|
118
|
+
/** Chips folded into “+N”. */
|
|
119
|
+
readonly hiddenCount: import("@angular/core").Signal<number>;
|
|
120
|
+
/** At least one chip may be removed, so the clear button has something to do (B6). */
|
|
121
|
+
readonly hasRemovable: import("@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: import("@angular/core").Signal<string | null>;
|
|
127
|
+
readonly clearLabel: import("@angular/core").Signal<string>;
|
|
128
|
+
/** Tooltip of the lock on a chip that `removable` keeps (C3). */
|
|
129
|
+
readonly lockedLabel: import("@angular/core").Signal<string>;
|
|
130
|
+
/** Sizes of the chip ✕ / lock and of the clear-button icon for the current `size` (C1). */
|
|
131
|
+
readonly iconSizes: import("@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: import("@angular/core").Signal<string>;
|
|
67
142
|
constructor();
|
|
68
143
|
get formControl(): SdFormControl;
|
|
69
144
|
get inputControl(): FormControl<any>;
|
|
70
145
|
readonly errorMessage: import("@angular/core").Signal<string | undefined>;
|
|
71
|
-
get matcher():
|
|
72
|
-
|
|
73
|
-
|
|
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: import("@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;
|
|
74
186
|
onAdd: (event: MatChipInputEvent) => void;
|
|
75
187
|
onClickChip: (event: Event, item: any) => void;
|
|
76
188
|
onRemove: (item: any) => void;
|
|
77
|
-
onSelect: (event: MatAutocompleteSelectedEvent) => void;
|
|
78
189
|
onFocus: () => void;
|
|
79
190
|
onBlur: () => void;
|
|
80
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;
|
|
81
198
|
focus: () => void;
|
|
82
199
|
onClear: ($event?: any) => void;
|
|
83
200
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdChip, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵ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: i0.ɵɵ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>;
|
|
85
202
|
}
|
|
86
|
-
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatCalendarHeader } from '@angular/material/datepicker';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Header of the `<sd-chip-calendar>` popup (design handoff 3 · 2): previous button, period label, next button, in that
|
|
5
|
+
* tab order. Extends Material's header for the paging rules, the min/max limits and the `MatDatepickerIntl` labels;
|
|
6
|
+
* only the markup and the month label change. The month label is the current locale's long month and year
|
|
7
|
+
* (`Intl.DateTimeFormat`), capitalised; the year and multi-year views keep Material's labels.
|
|
8
|
+
*
|
|
9
|
+
* Internal (`ɵ`): not covered by SemVer.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ɵSdChipCalendarHeader extends MatCalendarHeader<Date> {
|
|
12
|
+
#private;
|
|
13
|
+
/** Visible period text: "Tháng 10 năm 2026" in month view, Material's text in the other views. */
|
|
14
|
+
get periodText(): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSdChipCalendarHeader, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ɵSdChipCalendarHeader, "sd-chip-calendar-header", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -1,27 +1,43 @@
|
|
|
1
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
1
2
|
import { AfterViewInit, ElementRef, TemplateRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup
|
|
3
|
-
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
4
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
5
5
|
import { MatCalendar } from '@angular/material/datepicker';
|
|
6
6
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
8
7
|
import { SdLabelDefDirective, SdViewDefDirective } from '@sdcorejs/angular/forms/directives';
|
|
9
|
-
import { SdFormControl, SdViewed, SdViewedInput } from '@sdcorejs/angular/forms/models';
|
|
8
|
+
import { SdFormControl, SdTemporalValueTransform, SdViewed, SdViewedInput } from '@sdcorejs/angular/forms/models';
|
|
10
9
|
import type { SdLabelPlacement } from '@sdcorejs/angular/forms/models';
|
|
11
10
|
import { Size } from '@sdcorejs/utils/models';
|
|
11
|
+
import { ɵSdChipCalendarHeader } from './chip-calendar-header.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/** One date of the model: canonical `yyyy/MM/dd`, ISO / RFC-1123 string, `Date` or timestamp (read like `<sd-date>`). */
|
|
14
|
+
export type SdChipCalendarValue = string | number | Date;
|
|
15
|
+
/** Model of `<sd-chip-calendar>`: read wide, written back as `string[]` (see `transform`). */
|
|
16
|
+
export type SdChipCalendarModel = SdChipCalendarValue[] | null | undefined;
|
|
17
|
+
/** A date input (`minDate`, `maxDate`, `startAt`): read like an item of the model; `'TODAY'` is today in the configured zone. */
|
|
18
|
+
export type SdChipCalendarDate = Date | string | number | null | undefined;
|
|
19
|
+
/** `removable`: all chips, none, or a predicate that receives the normalised `yyyy/MM/dd` day. */
|
|
20
|
+
export type SdChipCalendarRemovable = boolean | ((day: string) => boolean);
|
|
18
21
|
export declare class SdChipCalendar implements AfterViewInit, OnDestroy {
|
|
19
22
|
#private;
|
|
20
23
|
/** why: id ổn định của <mat-error> để ô nhập chip trỏ `aria-describedby` sang — thông báo
|
|
21
24
|
* lỗi phải đọc được từ chính control, không chỉ hiện ra màn hình. */
|
|
22
25
|
readonly errorId: string;
|
|
23
|
-
menuTrigger: import("@angular/core").Signal<MatMenuTrigger | undefined>;
|
|
24
26
|
calendar: import("@angular/core").Signal<MatCalendar<Date> | undefined>;
|
|
27
|
+
private readonly field;
|
|
28
|
+
/** Header of the popup calendar (handoff 3 · 2). */
|
|
29
|
+
readonly calendarHeader: typeof ɵSdChipCalendarHeader;
|
|
30
|
+
readonly panelId: string;
|
|
31
|
+
/** Whether the popup is open. */
|
|
32
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
/** Month the popup opened at (4.2), fixed for one opening. */
|
|
34
|
+
readonly openAt: import("@angular/core").WritableSignal<Date | null>;
|
|
35
|
+
/**
|
|
36
|
+
* The popup hangs from the field box (the outline), like the select panel. Read in `open()`: `_textField` of
|
|
37
|
+
* `MatFormField` is a view query, and read too early the origin falls back to the whole field with its subscript row.
|
|
38
|
+
*/
|
|
39
|
+
readonly overlayOrigin: import("@angular/core").WritableSignal<ElementRef<HTMLElement> | undefined>;
|
|
40
|
+
readonly positions: ConnectedPosition[];
|
|
25
41
|
autoIdInput: import("@angular/core").InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
26
42
|
autoId: import("@angular/core").Signal<string | undefined>;
|
|
27
43
|
readonly dataDisabled: import("@angular/core").Signal<"true" | "false">;
|
|
@@ -48,36 +64,147 @@ export declare class SdChipCalendar implements AfterViewInit, OnDestroy {
|
|
|
48
64
|
form: import("@angular/core").InputSignalWithTransform<FormGroup<any> | undefined, any>;
|
|
49
65
|
label: import("@angular/core").InputSignalWithTransform<string, string | null | undefined>;
|
|
50
66
|
placeholder: import("@angular/core").InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
51
|
-
|
|
67
|
+
/**
|
|
68
|
+
* `true` / `false` for every chip, or a predicate. The predicate receives the normalised `yyyy/MM/dd` day and is
|
|
69
|
+
* applied on every removal path: the ✕ button, Backspace / Delete on a chip, pressing the day again in the
|
|
70
|
+
* calendar and clearing.
|
|
71
|
+
*/
|
|
72
|
+
removable: import("@angular/core").InputSignalWithTransform<SdChipCalendarRemovable, SdChipCalendarRemovable | null | undefined>;
|
|
52
73
|
hideInlineError: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
53
74
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/** Fewest days to pick; > 0 adds `Validators.minLength`. Replaces `min`. */
|
|
76
|
+
minCount: import("@angular/core").InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
77
|
+
/** Most days to pick; > 0 adds `Validators.maxLength` and blocks picking more in the calendar (4.3). Replaces `max`. */
|
|
78
|
+
maxCount: import("@angular/core").InputSignalWithTransform<number | undefined, number | null | undefined>;
|
|
79
|
+
/** @deprecated Use `minCount`; `minCount` wins when both are set. */
|
|
54
80
|
min: import("@angular/core").InputSignalWithTransform<number, number | null | undefined>;
|
|
81
|
+
/** @deprecated Use `maxCount`; `maxCount` wins when both are set. */
|
|
55
82
|
max: import("@angular/core").InputSignalWithTransform<number, number | null | undefined>;
|
|
83
|
+
/** Earliest day that can be picked; same reading as `minDate` of `<sd-date>` (`'TODAY'` = today in the zone). */
|
|
84
|
+
minDate: import("@angular/core").InputSignal<SdChipCalendarDate>;
|
|
85
|
+
/** Latest day that can be picked; same reading as `maxDate` of `<sd-date>`. */
|
|
86
|
+
maxDate: import("@angular/core").InputSignal<SdChipCalendarDate>;
|
|
87
|
+
/** `false` makes a day unpickable. A chosen day stays removable even when the filter refuses it. Name of `mat-calendar`. */
|
|
88
|
+
dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null | undefined>;
|
|
89
|
+
/** Month the popup opens at; without it, the chosen day nearest to today, else today (4.2). */
|
|
90
|
+
startAt: import("@angular/core").InputSignal<SdChipCalendarDate>;
|
|
91
|
+
/** Shows “Xoá hết” in the popup (and the clear button of the field). Off by default, like `clearable` of `<sd-date>`. */
|
|
92
|
+
clearable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
93
|
+
/**
|
|
94
|
+
* Chips shown while the popup is closed; the rest fold into a “+N” button that opens it. `null` shows them all.
|
|
95
|
+
* `2` is the suggestion inside `<sd-table>` filters.
|
|
96
|
+
*/
|
|
97
|
+
maxVisible: import("@angular/core").InputSignal<number | null | undefined>;
|
|
98
|
+
/** Date format of the chips and of the viewed text, in Angular `DatePipe` syntax. */
|
|
99
|
+
displayFormat: import("@angular/core").InputSignalWithTransform<string, string | null | undefined>;
|
|
56
100
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
57
101
|
/** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
|
|
58
102
|
viewed: import("@angular/core").InputSignalWithTransform<SdViewed, SdViewedInput>;
|
|
103
|
+
/**
|
|
104
|
+
* String form of each day when the value leaves the component, same contract as `<sd-date>`: `undefined` →
|
|
105
|
+
* `yyyy/MM/dd`, `'ISOString'` / `'UTCString'` → the start of the day (in `ISdCoreConfiguration.timeZone` when
|
|
106
|
+
* configured). Display is not affected.
|
|
107
|
+
*/
|
|
108
|
+
transform: import("@angular/core").InputSignal<SdTemporalValueTransform | undefined>;
|
|
59
109
|
/** `true` when the static view should render (`viewed===true`, or disabled `'inline'`). */
|
|
60
110
|
readonly isViewed: import("@angular/core").Signal<boolean>;
|
|
61
111
|
hyperlink: import("@angular/core").InputSignalWithTransform<string | undefined, string | null | undefined>;
|
|
62
|
-
|
|
63
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Two-way model. Read wide (each item `string | number | Date`, like `<sd-date>`), written back only on a user
|
|
114
|
+
* action, as `string[]`. A model from the parent is never rewritten.
|
|
115
|
+
*/
|
|
116
|
+
model: import("@angular/core").ModelSignal<SdChipCalendarModel>;
|
|
117
|
+
sdChange: import("@angular/core").OutputEmitterRef<string[]>;
|
|
64
118
|
input: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
65
119
|
sdViewDef: import("@angular/core").Signal<SdViewDefDirective<any, any> | undefined>;
|
|
66
120
|
sdLabelDef: import("@angular/core").Signal<SdLabelDefDirective | undefined>;
|
|
67
121
|
sdLabelTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
68
122
|
sdValueTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
69
123
|
isFocused: boolean;
|
|
70
|
-
|
|
124
|
+
/** `minCount`, else the deprecated `min`. */
|
|
125
|
+
readonly effectiveMinCount: import("@angular/core").Signal<number>;
|
|
126
|
+
/** `maxCount`, else the deprecated `max`. */
|
|
127
|
+
readonly effectiveMaxCount: import("@angular/core").Signal<number>;
|
|
128
|
+
/** Chosen days, normalised (`yyyy/MM/dd`, model order). */
|
|
129
|
+
readonly days: import("@angular/core").Signal<string[]>;
|
|
130
|
+
/** `maxCount` reached: unchosen days are disabled and the popup says so (4.3). */
|
|
131
|
+
readonly full: import("@angular/core").Signal<boolean>;
|
|
132
|
+
/** At least one chosen day may be removed (enables “Xoá hết”). */
|
|
133
|
+
readonly hasRemovable: import("@angular/core").Signal<boolean>;
|
|
134
|
+
/** Chosen days by date (B2). Display only: the model keeps its order. `yyyy/MM/dd` sorts as text in date order. */
|
|
135
|
+
readonly sortedDays: import("@angular/core").Signal<string[]>;
|
|
136
|
+
/** Chips on screen: all while the popup is open, else at most `maxVisible` (B3). */
|
|
137
|
+
readonly visibleDays: import("@angular/core").Signal<string[]>;
|
|
138
|
+
/** Icon sizes of the chips and suffix buttons for the current size. */
|
|
139
|
+
readonly iconSizes: import("@angular/core").Signal<{
|
|
140
|
+
readonly chip: "12px";
|
|
141
|
+
readonly clear: "16px";
|
|
142
|
+
readonly open: "18px";
|
|
143
|
+
} | {
|
|
144
|
+
readonly chip: "14px";
|
|
145
|
+
readonly clear: "18px";
|
|
146
|
+
readonly open: "20px";
|
|
147
|
+
} | {
|
|
148
|
+
readonly chip: "16px";
|
|
149
|
+
readonly clear: "20px";
|
|
150
|
+
readonly open: "22px";
|
|
151
|
+
}>;
|
|
152
|
+
/** Days folded into “+N”. */
|
|
153
|
+
readonly hiddenCount: import("@angular/core").Signal<number>;
|
|
154
|
+
/** Viewed text: days by date in `displayFormat`, joined by “, ” (C3). */
|
|
155
|
+
readonly viewText: import("@angular/core").Signal<string>;
|
|
156
|
+
/** Placeholder while no day is chosen: the input, else “Chọn ngày” — no longer the label (B1). Empty once there are chips. */
|
|
157
|
+
readonly effectivePlaceholder: import("@angular/core").Signal<string>;
|
|
158
|
+
readonly resolvedMinDate: import("@angular/core").Signal<Date | null>;
|
|
159
|
+
readonly resolvedMaxDate: import("@angular/core").Signal<Date | null>;
|
|
160
|
+
/**
|
|
161
|
+
* `dateFilter` handed to `mat-calendar` (4.1): a chosen day is pickable exactly when it may be removed (even against the
|
|
162
|
+
* consumer filter), an unchosen one when the limit is not reached and the consumer filter allows it. A new function on
|
|
163
|
+
* every change makes `mat-calendar` render its cells again.
|
|
164
|
+
*/
|
|
165
|
+
readonly calendarFilter: import("@angular/core").Signal<(date: Date | null) => boolean>;
|
|
166
|
+
/** Cell classes: `sd-chip-calendar-selected`, plus `sd-chip-calendar-locked` for a chosen day that cannot go. */
|
|
167
|
+
readonly calendarDateClass: import("@angular/core").Signal<(date: Date, view?: "month" | "year" | "multi-year") => string>;
|
|
71
168
|
constructor();
|
|
72
169
|
get formControl(): SdFormControl;
|
|
73
170
|
get inputControl(): FormControl<any>;
|
|
74
171
|
readonly errorMessage: import("@angular/core").Signal<string | undefined>;
|
|
75
|
-
get matcher():
|
|
172
|
+
get matcher(): ErrorStateMatcher;
|
|
173
|
+
/**
|
|
174
|
+
* The one place that decides whether the error shows (A4): `ErrorStateMatcher`, `<mat-error>`, `aria-invalid` and
|
|
175
|
+
* the `hideInlineError` icon all read it. Invalid and touched, or the parent form was submitted; a selection that
|
|
176
|
+
* is still too short while the user picks (dirty only) shows nothing.
|
|
177
|
+
*/
|
|
178
|
+
isErrorShown(): boolean;
|
|
179
|
+
/** Whether `day` (`yyyy/MM/dd`) may be removed, per `removable`. */
|
|
180
|
+
isRemovable(day: string): boolean;
|
|
181
|
+
/** Accessible name of a chip: the full date in the current locale, plus the locked note. */
|
|
182
|
+
chipLabel(day: string): string;
|
|
183
|
+
/** A chip day in `displayFormat` (Angular `DatePipe` / `formatDate` syntax, as the chips used before). */
|
|
184
|
+
formatDay(day: string): string;
|
|
185
|
+
/** Accessible name of the ✕ button of a chip. */
|
|
186
|
+
removeLabel(day: string): string;
|
|
187
|
+
/** Opens the popup at the month of 4.2. No-op when disabled, viewed or already open. */
|
|
188
|
+
open(): void;
|
|
189
|
+
/** Closes the popup and marks the field touched (A4); `returnFocus` puts focus back on the input (Esc, “Xong”). */
|
|
190
|
+
close(returnFocus?: boolean): void;
|
|
191
|
+
/** Focus goes to the active day of the grid once the panel is attached. */
|
|
192
|
+
onAttach(): void;
|
|
193
|
+
onOverlayKeydown(event: KeyboardEvent): void;
|
|
194
|
+
/** A click outside closes; a click on the field itself is left to the field (it keeps the popup open). */
|
|
195
|
+
onOutsideClick(event: MouseEvent): void;
|
|
196
|
+
/** Click on the empty part of the field or on the input opens the popup; chips stop the click (3 · 2). */
|
|
197
|
+
onFieldClick(): void;
|
|
198
|
+
/** Calendar button of the suffix: opens or closes the popup without the field click opening it again. */
|
|
199
|
+
onToggleClick(event: Event): void;
|
|
200
|
+
/** “+N” opens the popup, where every chip shows. */
|
|
201
|
+
onMoreClick(event: Event): void;
|
|
202
|
+
/** Enter, Space, ArrowDown and Alt+ArrowDown on the input open the popup. */
|
|
203
|
+
onInputKeydown(event: KeyboardEvent): void;
|
|
76
204
|
ngAfterViewInit(): void;
|
|
77
205
|
ngOnDestroy(): void;
|
|
78
206
|
onClickChip: (event: Event, item: any) => void;
|
|
79
207
|
onRemove: (item: string) => void;
|
|
80
|
-
onSelect: (event: MatAutocompleteSelectedEvent) => void;
|
|
81
208
|
onClick: () => void;
|
|
82
209
|
/**
|
|
83
210
|
* 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,9 +215,10 @@ export declare class SdChipCalendar implements AfterViewInit, OnDestroy {
|
|
|
88
215
|
onViewKeydown: (event: Event) => void;
|
|
89
216
|
onClear: (evt?: any) => void;
|
|
90
217
|
onSelectDate: (date: Date | null) => void;
|
|
218
|
+
/** Closes the popup without moving focus (outside click); marks the field touched. */
|
|
91
219
|
onCloseCalendar: () => void;
|
|
92
|
-
|
|
220
|
+
/** Classes of a month-view cell; see `calendarDateClass`. */
|
|
221
|
+
dateClass: (cellDate: Date) => string;
|
|
93
222
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdChipCalendar, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵ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>;
|
|
223
|
+
static ɵcmp: i0.ɵɵ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
224
|
}
|
|
96
|
-
export {};
|