@sdcorejs/angular 19.3.0 → 19.3.2
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/README.md +2 -2
- package/assets/STYLE-GUIDE.md +25 -5
- package/assets/THEME.md +237 -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 +156 -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 +93 -31
- 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 +2 -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/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/index.d.ts +1 -0
- package/components/file-explorer/src/components/actions.component.d.ts +41 -0
- package/components/file-explorer/src/components/command-sheet.component.d.ts +49 -0
- package/components/file-explorer/src/components/folder-tree.component.d.ts +41 -11
- package/components/file-explorer/src/components/item-list.component.d.ts +68 -13
- package/components/file-explorer/src/components/menu-trigger.component.d.ts +27 -0
- package/components/file-explorer/src/components/preview-panel.component.d.ts +6 -4
- package/components/file-explorer/src/file-explorer-actions.d.ts +80 -0
- package/components/file-explorer/src/file-explorer-column.directive.d.ts +20 -0
- package/components/file-explorer/src/file-explorer-move.d.ts +12 -0
- package/components/file-explorer/src/file-explorer-normalize.d.ts +72 -0
- package/components/file-explorer/src/file-explorer.component.d.ts +106 -23
- package/components/file-explorer/src/file-explorer.model.d.ts +212 -29
- package/components/file-explorer/src/file-explorer.utils.d.ts +7 -3
- package/components/file-explorer/src/file-explorer.view-model.d.ts +75 -5
- 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 +14 -4
- package/components/form-generic/src/components/form-builder/inspector/inspector.component.d.ts +121 -67
- package/components/form-generic/src/components/form-builder/state/builder-commands.d.ts +3 -1
- package/components/form-generic/src/components/form-builder/state/builder-document.d.ts +15 -3
- 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 +30 -1
- package/components/form-generic/src/components/form-render/components/item/components/datetime/datetime.component.d.ts +7 -6
- 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/components/item/item.component.d.ts +3 -1
- package/components/form-generic/src/components/form-render/form-render.component.d.ts +93 -8
- 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 +9 -4
- 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 +2 -0
- package/components/kanban/index.d.ts +3 -0
- package/components/kanban/src/kanban.component.d.ts +83 -0
- package/components/kanban/src/kanban.model.d.ts +65 -0
- package/components/kanban/src/kanban.templates.d.ts +30 -0
- package/components/kanban/src/kanban.utils.d.ts +5 -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/src/section-item/section-item.component.d.ts +2 -1
- package/components/tab/src/tab-group.component.d.ts +3 -1
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +5 -0
- 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 +21 -8
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +7 -0
- package/components/table/src/components/unknown-total-paginator/unknown-total-paginator.component.d.ts +52 -0
- package/components/table/src/models/table-option-paginate.model.d.ts +14 -0
- package/components/table/src/models/table-option.model.d.ts +25 -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 +7 -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/table.component.d.ts +16 -0
- 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 +2205 -102
- package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2612 -1050
- 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 +451 -0
- package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -0
- 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 +4 -3
- 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-stepper.mjs +5 -1
- package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +191 -41
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +11 -3
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +564 -110
- 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 +1 -1
- 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 +2 -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 +15 -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 +459 -124
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +74 -12
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +70 -17
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +75 -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 +39 -4
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +49 -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 +245 -0
- package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-forms-select.mjs +62 -14
- 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 +2 -2
- 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-forms.mjs +8 -0
- package/fesm2022/sdcorejs-angular-forms.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-i18n.mjs +1830 -17
- 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-BFxO3eHX.mjs +478 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs +214 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs +277 -0
- package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs.map +1 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs +1556 -0
- package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.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 +1822 -59
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- 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 +2 -2
- 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.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-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/index.d.ts +1 -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/segmented/index.d.ts +2 -0
- package/forms/segmented/src/segmented.component.d.ts +57 -0
- package/forms/segmented/src/segmented.model.d.ts +28 -0
- package/forms/select/src/select.component.d.ts +33 -4
- package/forms/src/forms.module.d.ts +7 -6
- package/i18n/src/en.d.ts +360 -1
- 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 +3 -0
- package/modules/layout/components/layout-main/layout-main.component.d.ts +2 -1
- 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/package.json +49 -8
- 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/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-calendar/src/pipes/index.d.ts +0 -1
- package/forms/chip-calendar/src/pipes/removable-chip.pipe.d.ts +0 -8
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Color } from '@sdcorejs/utils/models';
|
|
2
|
+
/** Stable identity; number `1` and string `'1'` are distinct. Never use a row index. */
|
|
3
|
+
export type SdKanbanId = string | number;
|
|
4
|
+
export type SdKanbanMoveSource = 'drag' | 'menu' | 'keyboard' | 'api';
|
|
5
|
+
export interface SdKanbanColumn {
|
|
6
|
+
readonly id: SdKanbanId;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly color?: Color;
|
|
9
|
+
readonly prefixIcon?: string;
|
|
10
|
+
readonly disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** One immutable proposed move. Indexes refer to the complete column, including filtered-out cards. */
|
|
13
|
+
export interface SdKanbanMoveRequest<T> {
|
|
14
|
+
readonly item: T;
|
|
15
|
+
readonly itemId: SdKanbanId;
|
|
16
|
+
readonly fromColumnId: SdKanbanId;
|
|
17
|
+
readonly toColumnId: SdKanbanId;
|
|
18
|
+
readonly fromIndex: number;
|
|
19
|
+
/** Insertion index after removing the source card from its column. */
|
|
20
|
+
readonly toIndex: number;
|
|
21
|
+
readonly previousItems: readonly T[];
|
|
22
|
+
readonly nextItems: readonly T[];
|
|
23
|
+
readonly source: SdKanbanMoveSource;
|
|
24
|
+
/** Aborted on replacement data/options/columns, locked state, or destruction. */
|
|
25
|
+
readonly signal: AbortSignal;
|
|
26
|
+
}
|
|
27
|
+
/** Domain mapping and consumer-owned persistence. Replace arrays and options immutably. */
|
|
28
|
+
export interface SdKanbanOption<T> {
|
|
29
|
+
readonly getId: (item: T) => SdKanbanId;
|
|
30
|
+
readonly getColumnId: (item: T) => SdKanbanId;
|
|
31
|
+
readonly getTitle: (item: T) => string;
|
|
32
|
+
/** Return a new item preserving its ID; never mutate the supplied item. */
|
|
33
|
+
readonly withColumn: (item: T, columnId: SdKanbanId) => T;
|
|
34
|
+
readonly getSearchText?: (item: T) => string;
|
|
35
|
+
readonly filter?: (item: T) => boolean;
|
|
36
|
+
readonly canMove?: (request: SdKanbanMoveRequest<T>) => boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Omit for local mode. In async mode, resolve `true`/`undefined` to accept or `false` to reject.
|
|
39
|
+
* Rejection/throw keeps the board unchanged and emits `sdMoveError`. No `modelChange`, `sdChange`,
|
|
40
|
+
* or `sdMove` is emitted before acceptance. New input data always wins over a late response.
|
|
41
|
+
* Persist using the stable IDs and full-column indexes, and forward `signal` when supported.
|
|
42
|
+
*/
|
|
43
|
+
readonly move?: (request: SdKanbanMoveRequest<T>) => Promise<boolean | void>;
|
|
44
|
+
readonly searchable?: boolean;
|
|
45
|
+
readonly collapsible?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface SdKanbanMoveError<T> {
|
|
48
|
+
readonly request: SdKanbanMoveRequest<T>;
|
|
49
|
+
readonly reason: 'rejected' | 'error';
|
|
50
|
+
readonly error?: unknown;
|
|
51
|
+
}
|
|
52
|
+
export interface SdKanbanCardTemplateContext<T> {
|
|
53
|
+
readonly $implicit: T;
|
|
54
|
+
readonly item: T;
|
|
55
|
+
readonly column: SdKanbanColumn;
|
|
56
|
+
readonly index: number;
|
|
57
|
+
readonly pending: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface SdKanbanColumnTemplateContext {
|
|
60
|
+
readonly $implicit: SdKanbanColumn;
|
|
61
|
+
readonly column: SdKanbanColumn;
|
|
62
|
+
readonly count: number;
|
|
63
|
+
readonly visibleCount: number;
|
|
64
|
+
readonly collapsed: boolean;
|
|
65
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { SdKanbanCardTemplateContext, SdKanbanColumnTemplateContext, SdKanbanOption } from './kanban.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SdKanbanCardTemplateDirective<T = unknown> {
|
|
5
|
+
/** Bind the option for strict generic template inference, or use the bare attribute. */
|
|
6
|
+
readonly option: import("@angular/core").InputSignal<"" | SdKanbanOption<T>>;
|
|
7
|
+
readonly template: TemplateRef<SdKanbanCardTemplateContext<T>>;
|
|
8
|
+
static ngTemplateContextGuard<T>(_directive: SdKanbanCardTemplateDirective<T>, _context: unknown): _context is SdKanbanCardTemplateContext<T>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKanbanCardTemplateDirective<any>, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdKanbanCardTemplateDirective<any>, "ng-template[sdKanbanCardTemplate]", never, { "option": { "alias": "sdKanbanCardTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class SdKanbanCardActionsTemplateDirective<T = unknown> {
|
|
13
|
+
readonly option: import("@angular/core").InputSignal<"" | SdKanbanOption<T>>;
|
|
14
|
+
readonly template: TemplateRef<SdKanbanCardTemplateContext<T>>;
|
|
15
|
+
static ngTemplateContextGuard<T>(_directive: SdKanbanCardActionsTemplateDirective<T>, _context: unknown): _context is SdKanbanCardTemplateContext<T>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKanbanCardActionsTemplateDirective<any>, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdKanbanCardActionsTemplateDirective<any>, "ng-template[sdKanbanCardActionsTemplate]", never, { "option": { "alias": "sdKanbanCardActionsTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
export declare class SdKanbanColumnTemplateDirective {
|
|
20
|
+
readonly template: TemplateRef<SdKanbanColumnTemplateContext>;
|
|
21
|
+
static ngTemplateContextGuard(_directive: SdKanbanColumnTemplateDirective, _context: unknown): _context is SdKanbanColumnTemplateContext;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKanbanColumnTemplateDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdKanbanColumnTemplateDirective, "ng-template[sdKanbanColumnTemplate]", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
export declare class SdKanbanColumnActionsTemplateDirective {
|
|
26
|
+
readonly template: TemplateRef<SdKanbanColumnTemplateContext>;
|
|
27
|
+
static ngTemplateContextGuard(_directive: SdKanbanColumnActionsTemplateDirective, _context: unknown): _context is SdKanbanColumnTemplateContext;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdKanbanColumnActionsTemplateDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdKanbanColumnActionsTemplateDirective, "ng-template[sdKanbanColumnActionsTemplate]", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SdKanbanColumn, SdKanbanId, SdKanbanMoveRequest, SdKanbanMoveSource, SdKanbanOption } from './kanban.model';
|
|
2
|
+
/** Internal pure proposal builder; performs no persistence or input mutation. */
|
|
3
|
+
export declare function prepareKanbanMove<T>(items: readonly T[], columns: readonly SdKanbanColumn[], option: SdKanbanOption<T>, itemId: SdKanbanId, toColumnId: SdKanbanId, toIndex: number, source: SdKanbanMoveSource, signal: AbortSignal): SdKanbanMoveRequest<T> | undefined;
|
|
4
|
+
/** Invalid data fails closed rather than silently hiding unmapped or duplicate cards. */
|
|
5
|
+
export declare function kanbanDataInvalid<T>(items: readonly T[], columns: readonly SdKanbanColumn[], option: SdKanbanOption<T>): boolean;
|
|
@@ -1,91 +1,54 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { ClassicEditor } from 'ckeditor5';
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import {
|
|
3
|
+
import { SdEditorEngine, SdEditorImportDiagnostic, SdEditorMentionItem, SdEditorSourceChangeReason } from '@sdcorejs/angular/components/editor-engine';
|
|
4
|
+
import { SdMiniEditorOption } from './mini-editor.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
* Sử dụng CKEditor với chế độ đơn giản (bold, italic, link)
|
|
9
|
-
* Hỗ trợ mention và output format (html/markdown)
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```html
|
|
13
|
-
* <sd-mini-editor
|
|
14
|
-
* [option]="editorOption"
|
|
15
|
-
* [(ngModel)]="content"
|
|
16
|
-
* (contentChange)="onContentChange($event)"
|
|
17
|
-
* >
|
|
18
|
-
* </sd-mini-editor>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class SdMiniEditor implements ControlValueAccessor, OnDestroy {
|
|
6
|
+
/** Compact Core toolbar with the same document schema as SdEditor. */
|
|
7
|
+
export declare class SdMiniEditor implements ControlValueAccessor, OnChanges, OnDestroy {
|
|
22
8
|
#private;
|
|
23
|
-
/** Cấu hình option cho editor */
|
|
24
9
|
option: SdMiniEditorOption;
|
|
25
|
-
get maxEditorHeight(): string | undefined;
|
|
26
|
-
/** NgModel binding - nội dung HTML/Markdown */
|
|
27
10
|
value: string;
|
|
11
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
28
12
|
readonly valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
29
|
-
/** Event emitter khi content thay đổi */
|
|
30
13
|
readonly contentChange: import("@angular/core").OutputEmitterRef<string>;
|
|
31
|
-
/** Event emitter khi blur */
|
|
32
14
|
readonly blur: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
33
|
-
/** Event emitter khi focus */
|
|
34
15
|
readonly focus: import("@angular/core").OutputEmitterRef<FocusEvent>;
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
readonly importWarning: import("@angular/core").OutputEmitterRef<readonly SdEditorImportDiagnostic[]>;
|
|
17
|
+
readonly importDiagnostics: import("@angular/core").Signal<readonly SdEditorImportDiagnostic[]>;
|
|
18
|
+
readonly surfaceContent: import("@angular/core").WritableSignal<string>;
|
|
19
|
+
readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
20
|
+
get maxEditorHeight(): string | undefined;
|
|
39
21
|
constructor();
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
onEngineReady(engine: SdEditorEngine): void;
|
|
24
|
+
/** Cancel a stale throttle window before replacing an authoritative source. */
|
|
25
|
+
onSourceChange(reason?: SdEditorSourceChangeReason): void;
|
|
26
|
+
onFormatChange(value: string | undefined): void;
|
|
27
|
+
onSurfaceChange(value: string): void;
|
|
28
|
+
onCompositionChange(composing: boolean): void;
|
|
29
|
+
onSurfaceFocus(event: FocusEvent): void;
|
|
30
|
+
onSurfaceBlur(event: FocusEvent): void;
|
|
31
|
+
onDiagnostics(diagnostics: readonly SdEditorImportDiagnostic[]): void;
|
|
32
|
+
onMentionSelected(item: SdEditorMentionItem): void;
|
|
48
33
|
setContent(content: string): void;
|
|
49
|
-
/**
|
|
50
|
-
* Get nội dung từ editor
|
|
51
|
-
*/
|
|
52
34
|
getContent(): string;
|
|
53
|
-
/**
|
|
54
|
-
* Nội dung dạng HTML (đã lọc), bất kể `outputFormat`.
|
|
55
|
-
*/
|
|
56
35
|
getHtmlContent(): string;
|
|
57
|
-
/**
|
|
58
|
-
* Focus vào editor
|
|
59
|
-
*/
|
|
60
36
|
focusEditor(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Insert mention vào vị trí con trỏ hiện tại
|
|
63
|
-
*/
|
|
64
37
|
insertMention(item: {
|
|
65
38
|
id: string;
|
|
66
39
|
name: string;
|
|
67
40
|
marker?: string;
|
|
68
41
|
}): void;
|
|
69
|
-
/**
|
|
70
|
-
* Get danh sách mentions trong nội dung
|
|
71
|
-
*/
|
|
72
42
|
getMentions(): {
|
|
73
43
|
id: string;
|
|
74
44
|
name: string;
|
|
75
45
|
marker: string;
|
|
76
46
|
}[];
|
|
77
|
-
/**
|
|
78
|
-
* ControlValueAccessor: Write value
|
|
79
|
-
*/
|
|
80
47
|
writeValue(value: string): void;
|
|
81
|
-
/**
|
|
82
|
-
* ControlValueAccessor: Register change callback
|
|
83
|
-
*/
|
|
84
48
|
registerOnChange(fn: (value: string) => void): void;
|
|
85
|
-
/**
|
|
86
|
-
* ControlValueAccessor: Register touched callback
|
|
87
|
-
*/
|
|
88
49
|
registerOnTouched(fn: () => void): void;
|
|
50
|
+
setDisabledState(disabled: boolean): void;
|
|
51
|
+
ngOnDestroy(): void;
|
|
89
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdMiniEditor, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdMiniEditor, "sd-mini-editor", never, { "option": { "alias": "option"; "required": true; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "contentChange": "contentChange"; "blur": "blur"; "focus": "focus"; }, never, never, true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdMiniEditor, "sd-mini-editor", never, { "option": { "alias": "option"; "required": true; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "contentChange": "contentChange"; "blur": "blur"; "focus": "focus"; "importWarning": "importWarning"; }, never, never, true, never>;
|
|
91
54
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type {
|
|
1
|
+
import { SdEditorEngineOptions, SdEditorMentionFeed, SdEditorMentionItem } from '@sdcorejs/angular/components/editor-engine';
|
|
2
|
+
export type { SdEditorImportDiagnostic, SdEditorMentionFeed, SdEditorMentionItem } from '@sdcorejs/angular/components/editor-engine';
|
|
3
|
+
/** @deprecated Use SdEditorMentionItem. CK DOM renderers are unsupported. */
|
|
4
|
+
export type MentionFeedObjectItem = SdEditorMentionItem;
|
|
3
5
|
export type SdMiniEditorOutputFormat = 'html' | 'markdown';
|
|
4
6
|
export interface SdMiniEditorMentionConfig {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
feeds?: MentionFeed[];
|
|
7
|
+
/** Library-owned feed arrays/functions. CK itemRenderer is unsupported and diagnosed. */
|
|
8
|
+
feeds?: SdEditorMentionFeed[];
|
|
9
9
|
/** Custom render function cho giá trị mention khi chèn vào editor
|
|
10
10
|
* Trả về object với text và các attributes tùy chỉnh
|
|
11
11
|
*/
|
|
12
|
+
/** @deprecated This previously unused callback has no rendering behavior. */
|
|
12
13
|
valueRender?: (item: MentionFeedObjectItem) => {
|
|
13
14
|
text: string;
|
|
14
15
|
attributes?: Record<string, string>;
|
|
@@ -39,6 +40,5 @@ export interface SdMiniEditorOption {
|
|
|
39
40
|
/** Callback khi mention được chọn */
|
|
40
41
|
onMentionSelect?: (item: SdMiniEditorMentionItem) => void;
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
43
|
+
/** @deprecated Use component options. CK plugins/config/licenseKey are unsupported. */
|
|
44
|
+
export type SdMiniEditorConfig = SdEditorEngineOptions;
|
|
@@ -1,121 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* `<sd-modal-resizable>` — right-docked, non-modal panel that can be minimized, expanded or pushed
|
|
5
|
-
* fullscreen. Several panels stack side by side along the right edge of the viewport, so the user
|
|
6
|
-
* can keep multiple records open at once while still working with the page behind them.
|
|
7
|
-
*
|
|
8
|
-
* Use it for side-by-side comparison / inspector workflows. Use `<sd-modal>` when the task is
|
|
9
|
-
* blocking, and `<sd-side-drawer>` when a single overlay with a backdrop is enough.
|
|
10
|
-
*
|
|
11
|
-
* NOTE ON DOCS: this component deliberately has **no** sibling `sd-modal-resizable.md`. Every `*.md`
|
|
12
|
-
* under the library is swept into `published-docs/<version>/index.json` by `scripts/collect-docs.mjs`,
|
|
13
|
-
* and `scripts/generate-showcase-example-sources.test.mjs` asserts that list is 1:1 with the
|
|
14
|
-
* `publishedDocId` set in the showcase documentation registry. A published doc with no showcase page
|
|
15
|
-
* therefore turns that release guard red. Keep the reference here until the component ships a
|
|
16
|
-
* showcase demo + registry entry; only then add the `.md`.
|
|
17
|
-
*
|
|
18
|
-
* ```ts
|
|
19
|
-
* import { SdModalResizable } from '@sdcorejs/angular/components/modal-resizable';
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* ```html
|
|
23
|
-
* <sd-button title="Open detail" type="fill" color="primary" (click)="panel.open()"></sd-button>
|
|
24
|
-
*
|
|
25
|
-
* <sd-modal-resizable #panel width="520px">
|
|
26
|
-
* <span sdTitle>Đơn hàng #1024</span>
|
|
27
|
-
*
|
|
28
|
-
* <div sdBody class="panel-body">
|
|
29
|
-
* <sd-section icon="receipt" title="Thông tin chung">
|
|
30
|
-
* <sd-section-item label="Khách hàng">Nguyen Van An</sd-section-item>
|
|
31
|
-
* </sd-section>
|
|
32
|
-
* </div>
|
|
33
|
-
*
|
|
34
|
-
* <sd-button sdFooterRight type="text" title="Đóng" (click)="panel.close()"></sd-button>
|
|
35
|
-
* </sd-modal-resizable>
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* ### Slots
|
|
39
|
-
* | Selector | Where it renders |
|
|
40
|
-
* | ----------------- | ------------------------- |
|
|
41
|
-
* | `[sdTitle]` | Header title area. |
|
|
42
|
-
* | `[sdBody]` | Scrollable content area. |
|
|
43
|
-
* | `[sdFooterLeft]` | Footer left action group. |
|
|
44
|
-
* | `[sdFooterRight]` | Footer right action group.|
|
|
45
|
-
*
|
|
46
|
-
* Header, body and footer only render while the panel is open.
|
|
47
|
-
*
|
|
48
|
-
* ### Panel stacking
|
|
49
|
-
* The panel is portalled onto `document.body` (via `CdkPortal` + `DomPortalOutlet`), so laying panels
|
|
50
|
-
* out is a concern shared by all live instances rather than by a single view. Arrangement is scoped
|
|
51
|
-
* through the root-provided `SdModalResizableRegistry`: each instance registers its panel id on
|
|
52
|
-
* construction and unregisters it on destroy. `open`, `close`, `minimize`, `maximize` and
|
|
53
|
-
* `toggleMaximum` re-run the arrangement and rewrite inline `width` / `right` **only on registered,
|
|
54
|
-
* still-mounted panels**, in registration order. Consequences worth knowing:
|
|
55
|
-
* - Markup of your own that happens to carry the `.modal-resizable` class is **not** touched.
|
|
56
|
-
* (Earlier builds ran `document.querySelectorAll('.modal-resizable')` and rewrote every match.)
|
|
57
|
-
* - A destroyed panel immediately stops taking up a slot for the instances that outlive it.
|
|
58
|
-
* - Panels marked `c-closed`, and expanded panels with no captured `data-width`, are skipped.
|
|
59
|
-
*
|
|
60
|
-
* ### Lifecycle / teardown
|
|
61
|
-
* `open()`, `close()` and the arrangement pass each schedule a short `setTimeout` (100ms / 100ms /
|
|
62
|
-
* 200ms) that mutates DOM. All of them are tracked and cleared in `DestroyRef.onDestroy`, together
|
|
63
|
-
* with unregistering from the registry and destroying the portal view. Destroying the component
|
|
64
|
-
* mid-animation cannot run layout work against a detached panel.
|
|
65
|
-
*
|
|
66
|
-
* ### Anti-patterns
|
|
67
|
-
* - Rendering it inside a scroll container and expecting it to be clipped — it lives on `<body>`.
|
|
68
|
-
* - Reusing the `.modal-resizable` class on your own elements to "join" the stack; register a real
|
|
69
|
-
* component instead.
|
|
70
|
-
* - Writing inline `width` / `right` on a panel yourself — the next arrangement pass overwrites both.
|
|
71
|
-
*
|
|
72
|
-
* ### Tests
|
|
73
|
-
* `src/modal-resizable.component.spec.ts` — portal attach, open/close/minimize/maximize math,
|
|
74
|
-
* loading, editing, timer teardown, registry scoping. Run:
|
|
75
|
-
* `npx ng test sdcorejs-angular --watch=false --browsers=ChromeHeadless --include='projects/sdcorejs-angular/components/modal-resizable/src/modal-resizable.component.spec.ts'`
|
|
76
|
-
*
|
|
77
|
-
* ### Related
|
|
78
|
-
* `<sd-modal>` (blocking dialog / bottom-sheet), `<sd-side-drawer>` (single right-side overlay with
|
|
79
|
-
* a body scroll lock), `SdLoadingService` (powers `startLoading()` / `stopLoading()`).
|
|
80
|
-
*/
|
|
81
|
-
export declare class SdModalResizable {
|
|
82
|
-
#private;
|
|
83
|
-
/** Generated DOM id of the panel element (`I<uuid>`). */
|
|
84
|
-
readonly id: string;
|
|
85
|
-
readonly portal: import("@angular/core").Signal<CdkPortal>;
|
|
86
|
-
/** Marks the panel as editable. Bare attribute = `true`. Default `false`. */
|
|
87
|
-
readonly editable: import("@angular/core").InputSignalWithTransform<boolean, boolean | "">;
|
|
88
|
-
/** CSS width used while the panel is expanded (not a minimum). Default `'480px'`. */
|
|
89
|
-
readonly width: import("@angular/core").InputSignal<string>;
|
|
90
|
-
/** Emitted by `toggleEditable()` with the new editing state. */
|
|
91
|
-
readonly editingChanged: import("@angular/core").OutputEmitterRef<boolean>;
|
|
92
|
-
readonly isEditing: import("@angular/core").WritableSignal<boolean>;
|
|
93
|
-
readonly isOpened: import("@angular/core").WritableSignal<boolean>;
|
|
94
|
-
readonly isHover: import("@angular/core").WritableSignal<boolean>;
|
|
95
|
-
readonly isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
96
|
-
readonly isMinimum: import("@angular/core").WritableSignal<boolean>;
|
|
97
|
-
readonly isMaximum: import("@angular/core").WritableSignal<boolean>;
|
|
98
|
-
constructor();
|
|
99
|
-
/** Opens the panel, captures its rendered width, and expands it. */
|
|
100
|
-
open: () => void;
|
|
101
|
-
/** Collapses the panel to zero width and stops loading. */
|
|
102
|
-
close: () => void;
|
|
103
|
-
/** Shrinks the panel to the 300px minimum strip. */
|
|
104
|
-
minimize: () => void;
|
|
105
|
-
/** Restores the panel to its expanded width. */
|
|
106
|
-
maximize: () => void;
|
|
107
|
-
/** Toggles fullscreen (`calc(100% - 16px)`). */
|
|
108
|
-
toggleMaximum: () => void;
|
|
109
|
-
/** Drives the scoped loading overlay through `SdLoadingService`. */
|
|
110
|
-
startLoading: () => void;
|
|
111
|
-
/** Stops the scoped loading overlay. */
|
|
112
|
-
stopLoading: () => void;
|
|
113
|
-
/** Flips `isEditing` and emits `editingChanged`. */
|
|
114
|
-
toggleEditable(): void;
|
|
115
|
-
/** Hover state hook bound in the template. */
|
|
116
|
-
onFocus: () => void;
|
|
117
|
-
/** Hover state hook bound in the template. */
|
|
118
|
-
onBlur: () => void;
|
|
119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SdModalResizable, never>;
|
|
120
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdModalResizable, "sd-modal-resizable", never, { "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "editingChanged": "editingChanged"; }, never, ["[sdTitle]", "[sdBody]", "[sdFooterLeft]", "[sdFooterRight]"], true, never>;
|
|
121
|
-
}
|
|
1
|
+
export {
|
|
2
|
+
/** @deprecated Use SdWindow from @sdcorejs/angular/components/window. The alias has the same component identity. */
|
|
3
|
+
SdWindow as SdModalResizable, } from '@sdcorejs/angular/components/window';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ModelSignal, Signal } from '@angular/core';
|
|
2
|
+
import { type MenuCloseReason } from '@angular/material/menu';
|
|
3
|
+
import { Operator, Size } from '@sdcorejs/utils/models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Chip operator đặt làm `matPrefix` trong ô của sd-input, sd-input-number, sd-select, sd-date, sd-date-range
|
|
7
|
+
* (thiết kế đợt 2 · G). Dùng chung bảng `OPERATORS`, i18n và icon với `sd-operator`; menu dùng panel của mục D.
|
|
8
|
+
*
|
|
9
|
+
* Bàn phím: Enter / Space / Alt+↓ mở menu; chọn xong phát `chosen` để control đưa focus về ô nhập; Escape
|
|
10
|
+
* đóng menu và trả focus về chip.
|
|
11
|
+
*
|
|
12
|
+
* `sd-operator` cũng render chip này cho trigger của nó (`standalone`): không cách mép ô, chọn xong focus về chip, và
|
|
13
|
+
* thêm cỡ `xs` (glyph trơn, vùng bấm 24px) — handoff sd-operator mục 3.
|
|
14
|
+
*
|
|
15
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ɵSdOperatorChip {
|
|
18
|
+
#private;
|
|
19
|
+
/** Operator cho phép, theo thứ tự hiển thị. */
|
|
20
|
+
readonly operators: import("@angular/core").InputSignal<readonly Operator[]>;
|
|
21
|
+
/** Operator hiện tại. */
|
|
22
|
+
readonly operator: ModelSignal<Operator | undefined>;
|
|
23
|
+
/** Cỡ của ô chứa chip; `lg` dùng hình học của `md`. `xs` là glyph trơn của `sd-operator`. */
|
|
24
|
+
readonly size: import("@angular/core").InputSignal<"xs" | Size>;
|
|
25
|
+
/** Ô đang có giá trị: chip đổi sang tông primary. */
|
|
26
|
+
readonly hasValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
readonly autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
29
|
+
/** Hiện mã operator (`EQUAL`…) sau nhãn trong menu (B1). */
|
|
30
|
+
readonly showCode: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
/** Trigger của `sd-operator`: không cách mép ô, chọn xong focus về chip. */
|
|
32
|
+
readonly standalone: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
/** Đã chọn một operator trong menu (control đưa focus về ô nhập). */
|
|
34
|
+
readonly chosen: import("@angular/core").OutputEmitterRef<Operator>;
|
|
35
|
+
protected readonly items: Signal<import("@sdcorejs/angular/components/operator").ɵSdOperatorItem[]>;
|
|
36
|
+
protected readonly currentIcon: Signal<import("@angular/platform-browser").SafeHtml>;
|
|
37
|
+
protected readonly currentLabel: Signal<string>;
|
|
38
|
+
protected readonly ariaLabel: Signal<string>;
|
|
39
|
+
protected readonly menuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
40
|
+
private readonly trigger;
|
|
41
|
+
private readonly menu;
|
|
42
|
+
private readonly button;
|
|
43
|
+
/** Mở menu bằng code (dùng cho Alt+↓ và spec). */
|
|
44
|
+
open(): void;
|
|
45
|
+
/** Focus nút chip. */
|
|
46
|
+
focus(): void;
|
|
47
|
+
protected onMenuOpened(): void;
|
|
48
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
49
|
+
protected choose(value: Operator): void;
|
|
50
|
+
protected onClosed(reason: MenuCloseReason): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSdOperatorChip, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ɵSdOperatorChip, "sd-operator-chip", never, { "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "hasValue": { "alias": "hasValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "showCode": { "alias": "showCode"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; }, { "operator": "operatorChange"; "chosen": "chosen"; }, never, never, true, never>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Giá trị của control có "đang có" không, để chip đổi tông: `null`, `undefined`, `''`, mảng rỗng và object mà
|
|
56
|
+
* mọi trường đều trống (vd khoảng ngày `{ from: null, to: null }`) là chưa có.
|
|
57
|
+
*
|
|
58
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
59
|
+
*/
|
|
60
|
+
export declare function ɵsdOperatorHasValue(value: unknown): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* `NULL` / `NOT_NULL` không cần giá trị: control khoá ô nhập và xoá giá trị khi chọn một trong hai.
|
|
63
|
+
*
|
|
64
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
65
|
+
*/
|
|
66
|
+
export declare function ɵsdIsNoDataOperator(operator: Operator | null | undefined): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Có đúng một operator thì control dùng luôn operator đó và không hiện chip. Gọi trong injection context.
|
|
69
|
+
*
|
|
70
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
71
|
+
*/
|
|
72
|
+
export declare function ɵsdSingleOperator(operators: Signal<readonly Operator[]>, operator: ModelSignal<Operator | undefined>): void;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import { Operator } from '@sdcorejs/utils/models';
|
|
3
|
+
/** Inner SVG markup (hình phễu) dùng khi chưa chọn operator. */
|
|
4
|
+
export declare const ɵSD_OPERATOR_FALLBACK_ICON = "<path d=\"M4 5h16l-6.5 7.5V19l-3 2v-8.5z\"/>";
|
|
5
|
+
/** Cỡ và độ dày nét của một glyph operator (handoff sd-operator mục 3.1 và 4). */
|
|
6
|
+
export interface ɵSdOperatorGlyph {
|
|
7
|
+
readonly size: number;
|
|
8
|
+
readonly stroke: number;
|
|
9
|
+
}
|
|
10
|
+
/** Glyph theo cỡ trigger: nét dày dần khi glyph nhỏ lại để vẫn đọc được (C7). Hàng menu dùng cỡ `md`. */
|
|
11
|
+
export declare const ɵSD_OPERATOR_GLYPHS: {
|
|
12
|
+
readonly xs: {
|
|
13
|
+
readonly size: 14;
|
|
14
|
+
readonly stroke: 2.5;
|
|
15
|
+
};
|
|
16
|
+
readonly sm: {
|
|
17
|
+
readonly size: 16;
|
|
18
|
+
readonly stroke: 2.25;
|
|
19
|
+
};
|
|
20
|
+
readonly md: {
|
|
21
|
+
readonly size: 18;
|
|
22
|
+
readonly stroke: 2.1;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export interface ɵSdOperatorItem {
|
|
26
|
+
value: Operator;
|
|
27
|
+
icon: SafeHtml;
|
|
28
|
+
display: string;
|
|
29
|
+
/** Mục mở đầu một họ khác mục trước: menu vẽ đường chia phía trên. */
|
|
30
|
+
separated: boolean;
|
|
31
|
+
}
|
|
32
|
+
/** Icon, nhãn đã dịch và danh sách item của các operator — dùng chung cho `sd-operator` và chip operator. */
|
|
33
|
+
export interface ɵSdOperatorResolver {
|
|
34
|
+
/**
|
|
35
|
+
* Operator cho phép → item theo đúng thứ tự truyền vào (không sắp xếp lại); operator không có trong `OPERATORS` bị
|
|
36
|
+
* bỏ. Icon ở cỡ hàng menu.
|
|
37
|
+
*/
|
|
38
|
+
items(operators: readonly Operator[]): ɵSdOperatorItem[];
|
|
39
|
+
/** Icon SVG của operator ở `glyph` (mặc định cỡ `md`), hoặc hình phễu khi chưa chọn / không tìm thấy. */
|
|
40
|
+
icon(value: Operator | undefined, glyph?: ɵSdOperatorGlyph): SafeHtml;
|
|
41
|
+
/** Nhãn đã dịch, '' khi chưa chọn / không tìm thấy. */
|
|
42
|
+
label(value: Operator | undefined): string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Tạo resolver cho bảng `OPERATORS` dùng chung. Gọi trong injection context.
|
|
46
|
+
*
|
|
47
|
+
* Nội bộ (`ɵ`): không nằm trong SemVer, ứng dụng không dùng trực tiếp.
|
|
48
|
+
*/
|
|
49
|
+
export declare function ɵsdOperatorResolver(): ɵSdOperatorResolver;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { SafeHtml } from '@angular/platform-browser';
|
|
2
2
|
import { Operator } from '@sdcorejs/utils/models';
|
|
3
|
+
import { ɵSdOperatorItem } from './operator-items';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
icon: SafeHtml;
|
|
7
|
-
display: string;
|
|
8
|
-
}
|
|
5
|
+
/** Cỡ trigger của `sd-operator`: `xs` glyph trơn 14px (vùng bấm 24px), `sm` chip 24px, `md` chip 28px. */
|
|
6
|
+
export type SdOperatorSize = 'xs' | 'sm' | 'md';
|
|
9
7
|
export declare class SdOperator {
|
|
10
8
|
#private;
|
|
11
9
|
static readonly FALLBACK_ICON = "<path d=\"M4 5h16l-6.5 7.5V19l-3 2v-8.5z\"/>";
|
|
@@ -13,22 +11,31 @@ export declare class SdOperator {
|
|
|
13
11
|
model: import("@angular/core").ModelSignal<Operator | undefined>;
|
|
14
12
|
/** Danh sách operator cho phép, giữ nguyên thứ tự truyền vào. */
|
|
15
13
|
operators: import("@angular/core").InputSignal<Operator[]>;
|
|
16
|
-
/** Vô hiệu hóa trigger (không mở được menu). */
|
|
14
|
+
/** Vô hiệu hóa trigger (không mở được menu). Thắng `readonly`. */
|
|
17
15
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
16
|
/** data-autoId cho e2e selector. */
|
|
19
17
|
autoId: import("@angular/core").InputSignal<string | undefined>;
|
|
18
|
+
/** Cỡ trigger: `xs` glyph trơn có vùng bấm 24px, `sm` / `md` là chip giống chip operator trong control. */
|
|
19
|
+
size: import("@angular/core").InputSignalWithTransform<SdOperatorSize, SdOperatorSize | null | undefined>;
|
|
20
|
+
/** Chỉ hiện glyph và tooltip: không mở menu, không nhận Tab (chip chỉ-xem của query-bar). */
|
|
21
|
+
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
|
+
/** Điều kiện đang có giá trị: chip đổi sang tông primary. */
|
|
23
|
+
active: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
/** Hiện mã operator (`EQUAL`…) sau nhãn trong menu. */
|
|
25
|
+
showCode: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
26
|
/** Allowed operators map sang { value, icon, display } theo thứ tự input. */
|
|
21
|
-
readonly items: import("@angular/core").Signal
|
|
22
|
-
/** Icon SVG ở trigger — fallback phễu khi model chưa set / không tìm thấy. */
|
|
27
|
+
readonly items: import("@angular/core").Signal<ɵSdOperatorItem[]>;
|
|
28
|
+
/** Icon SVG của operator hiện tại ở cỡ trigger — fallback phễu khi model chưa set / không tìm thấy. */
|
|
23
29
|
readonly currentIcon: import("@angular/core").Signal<SafeHtml>;
|
|
24
30
|
/** Tooltip = i18n label của operator hiện tại ('' khi chưa chọn). */
|
|
25
31
|
readonly currentLabel: import("@angular/core").Signal<string>;
|
|
26
|
-
|
|
32
|
+
/** `readonly` chỉ có hiệu lực khi không `disabled`. */
|
|
33
|
+
readonly isReadonly: import("@angular/core").Signal<boolean>;
|
|
34
|
+
private readonly chip;
|
|
27
35
|
/** Open the operator menu programmatically (used by the query-bar build flow). */
|
|
28
36
|
open(): void;
|
|
29
37
|
/** Chọn operator từ menu. */
|
|
30
38
|
select(value: Operator): void;
|
|
31
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdOperator, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdOperator, "sd-operator", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, never, true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdOperator, "sd-operator", never, { "model": { "alias": "model"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "showCode": { "alias": "showCode"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; }, never, never, true, never>;
|
|
33
41
|
}
|
|
34
|
-
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class SdSectionItem {
|
|
3
|
+
/** Left column text. Optional when the left column is projected through `[itemLeft]`. */
|
|
3
4
|
label: import("@angular/core").InputSignal<string>;
|
|
4
5
|
labelWidth: import("@angular/core").InputSignalWithTransform<string, string | null | undefined>;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdSectionItem, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdSectionItem, "sd-section-item", never, { "label": { "alias": "label"; "required":
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdSectionItem, "sd-section-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; }, {}, never, ["[itemLeft]", "*"], true, never>;
|
|
7
8
|
}
|
|
@@ -9,6 +9,8 @@ export interface SdTabClosedEvent {
|
|
|
9
9
|
export type SdTabRegionStyle = Readonly<Record<string, string | number | null | undefined>>;
|
|
10
10
|
export declare class SdTabGroup {
|
|
11
11
|
#private;
|
|
12
|
+
/** Keep visited tab bodies in the DOM so form controls retain their rendered state while inactive. */
|
|
13
|
+
preserveContent: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
14
|
tabs: import("@angular/core").Signal<readonly SdTab[]>;
|
|
13
15
|
selectedIndex: import("@angular/core").ModelSignal<number>;
|
|
14
16
|
variant: import("@angular/core").InputSignal<"line" | "pills" | "segmented">;
|
|
@@ -39,5 +41,5 @@ export declare class SdTabGroup {
|
|
|
39
41
|
realignInkBar(): void;
|
|
40
42
|
protected onClose(tab: SdTab, index: number, event: MouseEvent): void;
|
|
41
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdTabGroup, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
|
|
43
45
|
}
|
|
@@ -8,14 +8,19 @@ export declare class SdTabRouterItemComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
private router;
|
|
9
9
|
tab: SdTabRouterTab;
|
|
10
10
|
tabInfo?: SdTabInfo;
|
|
11
|
+
private readonly nameRef;
|
|
12
|
+
/** Tên tab đang bị cắt (ellipsis): chỉ khi đó tooltip mới lặp lại tên. */
|
|
13
|
+
readonly truncated: import("@angular/core").Signal<boolean>;
|
|
11
14
|
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
12
15
|
constructor(...args: unknown[]);
|
|
13
16
|
ngOnInit(): void;
|
|
14
17
|
ngOnDestroy(): void;
|
|
18
|
+
measureTruncation: () => void;
|
|
15
19
|
onTabClick: (event: Event) => void;
|
|
16
20
|
close: (event: Event) => void;
|
|
17
21
|
onMousedown: (event: MouseEvent) => void;
|
|
18
22
|
onMouseup: (event: MouseEvent) => void;
|
|
23
|
+
onAuxclick: (event: MouseEvent) => void;
|
|
19
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdTabRouterItemComponent, never>;
|
|
20
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<SdTabRouterItemComponent, "sd-tab-router-item", never, { "tab": { "alias": "tab"; "required": true; }; }, {}, never, never, true, never>;
|
|
21
26
|
}
|