@sdcorejs/angular 19.0.0 → 20.0.0-rc.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/components/anchor/index.d.ts +43 -1
- package/components/autoid-inspector/index.d.ts +199 -8
- package/components/avatar/index.d.ts +22 -1
- package/components/badge/index.d.ts +102 -1
- package/components/base/index.d.ts +11 -1
- package/components/button/index.d.ts +46 -1
- package/components/chart/index.d.ts +65 -4
- package/components/ckeditor-styles/index.d.ts +28 -1
- package/components/code-editor/index.d.ts +24 -1
- package/components/document-builder/index.d.ts +252 -4
- package/components/editor/index.d.ts +128 -3
- package/components/form-generic/index.d.ts +895 -4
- package/components/history/index.d.ts +23 -1
- package/components/import-excel/index.d.ts +160 -2
- package/components/inform/index.d.ts +70 -2
- package/components/mini-editor/index.d.ts +138 -2
- package/components/modal/index.d.ts +33 -1
- package/components/operator/index.d.ts +36 -1
- package/components/preview/index.d.ts +414 -4
- package/components/query-bar/index.d.ts +375 -2
- package/components/query-builder/index.d.ts +30 -1
- package/components/quick-action/index.d.ts +12 -1
- package/components/section/index.d.ts +28 -2
- package/components/side-drawer/index.d.ts +33 -1
- package/components/splitter/index.d.ts +58 -3
- package/components/stepper/index.d.ts +53 -2
- package/components/tab/index.d.ts +53 -2
- package/components/tab-router/index.d.ts +104 -4
- package/components/table/index.d.ts +1161 -11
- package/components/upload-file/index.d.ts +169 -2
- package/components/view/index.d.ts +20 -1
- package/configurations/index.d.ts +14 -1
- package/directives/index.d.ts +80 -6
- package/fesm2022/sdcorejs-angular-components-anchor.mjs +31 -31
- package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs +36 -36
- package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-avatar.mjs +10 -10
- package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-badge.mjs +34 -34
- package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-base.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-button.mjs +30 -30
- package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-chart.mjs +32 -32
- package/fesm2022/sdcorejs-angular-components-chart.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +4 -4
- package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-code-editor.mjs +12 -12
- package/fesm2022/sdcorejs-angular-components-code-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-document-builder.mjs +6 -6
- package/fesm2022/sdcorejs-angular-components-document-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-editor.mjs +49 -39
- package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs +214 -214
- package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-history.mjs +7 -7
- package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs +11 -11
- package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-inform.mjs +40 -40
- package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-modal.mjs +21 -21
- package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-operator.mjs +12 -12
- package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-preview.mjs +121 -121
- package/fesm2022/sdcorejs-angular-components-preview.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs +150 -149
- package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs +3 -3
- package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs +5 -5
- package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-section.mjs +24 -22
- package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +16 -16
- package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-splitter.mjs +41 -41
- package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-stepper.mjs +26 -26
- package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs +25 -25
- package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-tab.mjs +25 -25
- package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-table.mjs +247 -247
- package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs +107 -87
- package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-components-view.mjs +15 -15
- package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-directives.mjs +32 -32
- package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +77 -64
- package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +50 -39
- package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +84 -73
- package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-chip.mjs +83 -72
- package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs +62 -49
- package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-date.mjs +70 -57
- package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs +93 -80
- package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-directives.mjs +12 -12
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs +20 -20
- package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs +72 -59
- package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-input.mjs +74 -61
- package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-label.mjs +3 -3
- package/fesm2022/sdcorejs-angular-forms-label.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-models.mjs +2 -2
- package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-radio.mjs +71 -60
- package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-select.mjs +86 -73
- package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-switch.mjs +50 -39
- package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs +78 -65
- package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-forms.mjs +4 -4
- package/fesm2022/sdcorejs-angular-handlers.mjs +3 -3
- package/fesm2022/sdcorejs-angular-i18n.mjs +9 -9
- package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-interceptors.mjs +6 -6
- package/fesm2022/sdcorejs-angular-modules-auth.mjs +10 -10
- package/fesm2022/sdcorejs-angular-modules-auth.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-authom.mjs +10 -10
- package/fesm2022/sdcorejs-angular-modules-authom.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-keycloak.mjs +7 -7
- package/fesm2022/sdcorejs-angular-modules-layout.mjs +139 -139
- package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-modules-permission.mjs +12 -12
- package/fesm2022/sdcorejs-angular-modules-permission.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-pipes.mjs +14 -14
- package/fesm2022/sdcorejs-angular-services-api.mjs +10 -10
- package/fesm2022/sdcorejs-angular-services-cache.mjs +3 -3
- package/fesm2022/sdcorejs-angular-services-confirm.mjs +6 -6
- package/fesm2022/sdcorejs-angular-services-docx.mjs +3 -3
- package/fesm2022/sdcorejs-angular-services-excel.mjs +3 -3
- package/fesm2022/sdcorejs-angular-services-license.mjs +3 -3
- package/fesm2022/sdcorejs-angular-services-loading.mjs +3 -3
- package/fesm2022/sdcorejs-angular-services-notify.mjs +12 -12
- package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
- package/fesm2022/sdcorejs-angular-services-storage.mjs +3 -3
- package/forms/autocomplete/index.d.ts +95 -1
- package/forms/checkbox/index.d.ts +31 -1
- package/forms/chip/index.d.ts +80 -1
- package/forms/chip-calendar/index.d.ts +73 -1
- package/forms/date/index.d.ts +82 -1
- package/forms/date-range/index.d.ts +83 -1
- package/forms/datetime/index.d.ts +92 -1
- package/forms/directives/index.d.ts +41 -4
- package/forms/index.d.ts +17 -1
- package/forms/input/index.d.ts +87 -1
- package/forms/input-color/index.d.ts +35 -1
- package/forms/input-number/index.d.ts +97 -1
- package/forms/label/index.d.ts +16 -1
- package/forms/models/index.d.ts +85 -6
- package/forms/radio/index.d.ts +52 -1
- package/forms/select/index.d.ts +95 -1
- package/forms/switch/index.d.ts +35 -1
- package/forms/textarea/index.d.ts +68 -1
- package/handlers/index.d.ts +12 -1
- package/i18n/index.d.ts +508 -5
- package/index.d.ts +2 -5
- package/interceptors/index.d.ts +27 -2
- package/models/index.d.ts +2 -1
- package/modules/auth/index.d.ts +64 -3
- package/modules/authom/index.d.ts +70 -35
- package/modules/keycloak/index.d.ts +48 -4
- package/modules/layout/index.d.ts +223 -5
- package/modules/permission/index.d.ts +101 -4
- package/package.json +45 -45
- package/pipes/index.d.ts +43 -4
- package/services/api/index.d.ts +71 -4
- package/services/cache/index.d.ts +43 -2
- package/services/confirm/index.d.ts +103 -1
- package/services/docx/index.d.ts +28 -1
- package/services/excel/index.d.ts +54 -1
- package/services/license/index.d.ts +13 -1
- package/services/loading/index.d.ts +17 -1
- package/services/notify/index.d.ts +40 -2
- package/services/storage/index.d.ts +34 -2
- package/utilities/data-state/index.d.ts +13 -1
- package/utilities/extensions/index.d.ts +87 -6
- package/utilities/models/index.d.ts +87 -12
- package/components/anchor/src/components/anchor/anchor.component.d.ts +0 -22
- package/components/anchor/src/components/anchor-item/anchor-item.component.d.ts +0 -13
- package/components/anchor/src/components/anchor-nav/anchor-nav.component.d.ts +0 -21
- package/components/anchor/src/components/index.d.ts +0 -2
- package/components/anchor/src/index.d.ts +0 -2
- package/components/anchor/src/models/index.d.ts +0 -1
- package/components/anchor/src/models/sd-anchor.model.d.ts +0 -7
- package/components/autoid-inspector/src/autoid-inspector.component.d.ts +0 -55
- package/components/autoid-inspector/src/models/autoid-element.model.d.ts +0 -55
- package/components/autoid-inspector/src/models/autoid-export-format.model.d.ts +0 -6
- package/components/autoid-inspector/src/models/autoid-inspector-config.model.d.ts +0 -8
- package/components/autoid-inspector/src/services/autoid-audit.service.d.ts +0 -19
- package/components/autoid-inspector/src/services/autoid-export.service.d.ts +0 -21
- package/components/autoid-inspector/src/services/autoid-highlight.service.d.ts +0 -12
- package/components/autoid-inspector/src/services/autoid-scanner.service.d.ts +0 -23
- package/components/avatar/src/avatar.component.d.ts +0 -19
- package/components/badge/src/badge.component.d.ts +0 -98
- package/components/base/src/base-secure.component.d.ts +0 -8
- package/components/button/src/button.component.d.ts +0 -42
- package/components/chart/src/bar-chart.component.d.ts +0 -18
- package/components/chart/src/doughnut-chart.component.d.ts +0 -16
- package/components/chart/src/line-chart.component.d.ts +0 -18
- package/components/chart/src/pie-chart.component.d.ts +0 -16
- package/components/ckeditor-styles/src/ckeditor-styles.component.d.ts +0 -25
- package/components/code-editor/src/code-editor.component.d.ts +0 -25
- package/components/document-builder/src/components/header-footer-builder/header-footer-builder.component.d.ts +0 -16
- package/components/document-builder/src/components/header-footer-builder/plugins/page-number.plugin.d.ts +0 -4
- package/components/document-builder/src/components/index.d.ts +0 -1
- package/components/document-builder/src/document-builder.component.d.ts +0 -53
- package/components/document-builder/src/document-builder.config.d.ts +0 -21
- package/components/document-builder/src/document-builder.model.d.ts +0 -41
- package/components/document-builder/src/document-builder.utils.d.ts +0 -10
- package/components/document-builder/src/plugins/block-space/block-space.plugin.d.ts +0 -9
- package/components/document-builder/src/plugins/ck-comment/ck-comment.plugin.d.ts +0 -44
- package/components/document-builder/src/plugins/ck-comment/ck-comment.plugin.model.d.ts +0 -57
- package/components/document-builder/src/plugins/heading/heading.plugin.d.ts +0 -5
- package/components/document-builder/src/plugins/highlight-range/highlight-range.plugin.d.ts +0 -4
- package/components/document-builder/src/plugins/image-custom/image-custom.plugin.d.ts +0 -31
- package/components/document-builder/src/plugins/image-upload/image-upload.plugin.d.ts +0 -5
- package/components/document-builder/src/plugins/index.d.ts +0 -11
- package/components/document-builder/src/plugins/page-orientation/page-orientation.plugin.d.ts +0 -24
- package/components/document-builder/src/plugins/paste-handler/filters/bookmark.d.ts +0 -14
- package/components/document-builder/src/plugins/paste-handler/filters/br.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/image.d.ts +0 -25
- package/components/document-builder/src/plugins/paste-handler/filters/list.d.ts +0 -29
- package/components/document-builder/src/plugins/paste-handler/filters/parse.d.ts +0 -35
- package/components/document-builder/src/plugins/paste-handler/filters/removeboldwrapper.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/removegooglesheetstag.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/removeinvalidtablewidth.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/removemsattributes.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/removestyleblock.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/removexmlns.d.ts +0 -15
- package/components/document-builder/src/plugins/paste-handler/filters/replacemsfootnotes.d.ts +0 -54
- package/components/document-builder/src/plugins/paste-handler/filters/replacetabswithinprewithspaces.d.ts +0 -24
- package/components/document-builder/src/plugins/paste-handler/filters/space.d.ts +0 -27
- package/components/document-builder/src/plugins/paste-handler/filters/table.d.ts +0 -16
- package/components/document-builder/src/plugins/paste-handler/filters/utils.d.ts +0 -25
- package/components/document-builder/src/plugins/paste-handler/index.d.ts +0 -35
- package/components/document-builder/src/plugins/paste-handler/normalizers/googledocsnormalizer.d.ts +0 -31
- package/components/document-builder/src/plugins/paste-handler/normalizers/googlesheetsnormalizer.d.ts +0 -31
- package/components/document-builder/src/plugins/paste-handler/normalizers/mswordnormalizer.d.ts +0 -29
- package/components/document-builder/src/plugins/paste-handler/types.d.ts +0 -30
- package/components/document-builder/src/plugins/table-custom/index.d.ts +0 -34
- package/components/document-builder/src/plugins/variable/variable.plugin.d.ts +0 -51
- package/components/editor/src/configurations/editor.configuration.d.ts +0 -12
- package/components/editor/src/configurations/index.d.ts +0 -1
- package/components/editor/src/editor.component.d.ts +0 -52
- package/components/editor/src/models/editor.model.d.ts +0 -10
- package/components/editor/src/models/image-upload.plugin.model.d.ts +0 -51
- package/components/editor/src/models/index.d.ts +0 -2
- 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/components/editor/src/plugins/image-upload/utils/style.utils.d.ts +0 -3
- package/components/editor/src/plugins/image-upload/utils/validate.utils.d.ts +0 -4
- package/components/form-generic/src/components/form-builder/components/attribute-expression/attribute-expression.component.d.ts +0 -23
- package/components/form-generic/src/components/form-builder/components/attribute-input/attribute-input.component.d.ts +0 -17
- package/components/form-generic/src/components/form-builder/components/attribute-input-number/attribute-input-number.component.d.ts +0 -14
- package/components/form-generic/src/components/form-builder/components/attribute-parameter/attribute-parameter.component.d.ts +0 -33
- package/components/form-generic/src/components/form-builder/components/attribute-select/attribute-select.component.d.ts +0 -26
- package/components/form-generic/src/components/form-builder/components/attribute-selection/attribute-selection.component.d.ts +0 -27
- package/components/form-generic/src/components/form-builder/components/attribute-selection/components/build-queries/build-queries.component.d.ts +0 -35
- package/components/form-generic/src/components/form-builder/components/attribute-selection/components/build-variables/build-variables.component.d.ts +0 -41
- package/components/form-generic/src/components/form-builder/components/attribute-switch/attribute-switch.component.d.ts +0 -14
- package/components/form-generic/src/components/form-builder/components/attribute-table/attribute-table.component.d.ts +0 -36
- package/components/form-generic/src/components/form-builder/components/attribute-template/attribute-template.component.d.ts +0 -15
- package/components/form-generic/src/components/form-builder/components/attribute-textarea/attribute-textarea.component.d.ts +0 -17
- package/components/form-generic/src/components/form-builder/components/checkbox/attribute/checkbox-attribute.component.d.ts +0 -21
- package/components/form-generic/src/components/form-builder/components/checkbox/control/checkbox-control.component.d.ts +0 -8
- package/components/form-generic/src/components/form-builder/components/checkbox/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/chip-calendar/attribute/chip-calendar-attribute.component.d.ts +0 -22
- package/components/form-generic/src/components/form-builder/components/chip-calendar/control/chip-calendar-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/chip-calendar/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/chip-string/attribute/chip-string-attribute.component.d.ts +0 -22
- package/components/form-generic/src/components/form-builder/components/chip-string/control/chip-string-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/chip-string/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/configure-validation/configure-validation.component.d.ts +0 -31
- package/components/form-generic/src/components/form-builder/components/datetime/attribute/datetime-attribute.component.d.ts +0 -21
- package/components/form-generic/src/components/form-builder/components/datetime/control/datetime-control.component.d.ts +0 -18
- package/components/form-generic/src/components/form-builder/components/datetime/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/expression-builder/expression-builder.component.d.ts +0 -47
- package/components/form-generic/src/components/form-builder/components/group/attribute/group-attribute.component.d.ts +0 -23
- package/components/form-generic/src/components/form-builder/components/group/index.d.ts +0 -1
- package/components/form-generic/src/components/form-builder/components/html/attribute/components/build-queries/build-queries.component.d.ts +0 -35
- package/components/form-generic/src/components/form-builder/components/html/attribute/html-attribute.component.d.ts +0 -30
- package/components/form-generic/src/components/form-builder/components/html/control/html-control.component.d.ts +0 -20
- package/components/form-generic/src/components/form-builder/components/html/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/index.d.ts +0 -13
- package/components/form-generic/src/components/form-builder/components/number/attribute/number-attribute.component.d.ts +0 -22
- package/components/form-generic/src/components/form-builder/components/number/control/number-control.component.d.ts +0 -17
- package/components/form-generic/src/components/form-builder/components/number/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/radio/attribute/radio-attribute.component.d.ts +0 -22
- package/components/form-generic/src/components/form-builder/components/radio/control/radio-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/radio/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/select/attribute/select-attribute.component.d.ts +0 -22
- package/components/form-generic/src/components/form-builder/components/select/control/select-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/select/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/table/attribute/table-attribute.component.d.ts +0 -22
- package/components/form-generic/src/components/form-builder/components/table/control/table-control.component.d.ts +0 -19
- package/components/form-generic/src/components/form-builder/components/table/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/textarea/attribute/textarea-attribute.component.d.ts +0 -21
- package/components/form-generic/src/components/form-builder/components/textarea/control/textarea-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/textarea/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/textfield/attribute/textfield-attribute.component.d.ts +0 -21
- package/components/form-generic/src/components/form-builder/components/textfield/control/textfield-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/textfield/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/components/upload/attribute/upload-attribute.component.d.ts +0 -27
- package/components/form-generic/src/components/form-builder/components/upload/control/upload-control.component.d.ts +0 -16
- package/components/form-generic/src/components/form-builder/components/upload/index.d.ts +0 -2
- package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +0 -120
- package/components/form-generic/src/components/form-builder/services/builder.service.d.ts +0 -11
- package/components/form-generic/src/components/form-builder/services/index.d.ts +0 -1
- package/components/form-generic/src/components/form-render/components/index.d.ts +0 -2
- package/components/form-generic/src/components/form-render/components/item/components/chip-calendar/chip-calendar.component.d.ts +0 -30
- package/components/form-generic/src/components/form-render/components/item/components/chip-string/chip-string.component.d.ts +0 -30
- package/components/form-generic/src/components/form-render/components/item/components/datetime/datetime.component.d.ts +0 -34
- package/components/form-generic/src/components/form-render/components/item/components/html/html.component.d.ts +0 -32
- package/components/form-generic/src/components/form-render/components/item/components/index.d.ts +0 -11
- package/components/form-generic/src/components/form-render/components/item/components/number/number.component.d.ts +0 -30
- package/components/form-generic/src/components/form-render/components/item/components/radio/radio.component.d.ts +0 -38
- package/components/form-generic/src/components/form-render/components/item/components/select/select.component.d.ts +0 -43
- package/components/form-generic/src/components/form-render/components/item/components/table/table.component.d.ts +0 -51
- package/components/form-generic/src/components/form-render/components/item/components/textarea/textarea.component.d.ts +0 -30
- package/components/form-generic/src/components/form-render/components/item/components/textfield/textfield.component.d.ts +0 -33
- package/components/form-generic/src/components/form-render/components/item/components/upload/upload.component.d.ts +0 -36
- package/components/form-generic/src/components/form-render/components/item/item.component.d.ts +0 -32
- package/components/form-generic/src/components/form-render/components/variable/variable.component.d.ts +0 -22
- package/components/form-generic/src/components/form-render/form-render.component.d.ts +0 -39
- package/components/form-generic/src/components/index.d.ts +0 -3
- package/components/form-generic/src/components/sd-feel-expression/sd-feel-expression.component.d.ts +0 -43
- package/components/form-generic/src/configurations/form-generic.configuration.d.ts +0 -6
- package/components/form-generic/src/configurations/form.configuration.d.ts +0 -12
- package/components/form-generic/src/configurations/index.d.ts +0 -2
- package/components/form-generic/src/models/form-generic-component.model.d.ts +0 -318
- package/components/form-generic/src/models/form-generic-definition-html.model.d.ts +0 -28
- package/components/form-generic/src/models/form-generic-definition-selection.model.d.ts +0 -49
- package/components/form-generic/src/models/form-generic-definition-table.model.d.ts +0 -6
- package/components/form-generic/src/models/form-generic-expression.model.d.ts +0 -74
- package/components/form-generic/src/models/form-generic-template.model.d.ts +0 -6
- package/components/form-generic/src/models/form-generic-validation.model.d.ts +0 -30
- package/components/form-generic/src/models/form-generic.model.d.ts +0 -7
- package/components/form-generic/src/models/form-render/form-render-args.model.d.ts +0 -7
- package/components/form-generic/src/models/form-render/form-render-entity.model.d.ts +0 -3
- package/components/form-generic/src/models/form-render/index.d.ts +0 -2
- package/components/form-generic/src/models/index.d.ts +0 -8
- package/components/form-generic/src/pipes/component-viewed.pipe.d.ts +0 -14
- package/components/form-generic/src/pipes/expression-feel.pipe.d.ts +0 -10
- package/components/form-generic/src/pipes/expression-query.pipe.d.ts +0 -10
- package/components/form-generic/src/pipes/expression-view.pipe.d.ts +0 -8
- package/components/form-generic/src/pipes/html.pipe.d.ts +0 -11
- package/components/form-generic/src/pipes/hyperlink.pipe.d.ts +0 -8
- package/components/form-generic/src/pipes/index.d.ts +0 -7
- package/components/form-generic/src/pipes/when-expression.pipe.d.ts +0 -13
- package/components/form-generic/src/services/form-generic.service.d.ts +0 -26
- package/components/form-generic/src/services/form-render.service.d.ts +0 -10
- package/components/form-generic/src/services/index.d.ts +0 -2
- package/components/history/models/history.model.d.ts +0 -13
- package/components/history/pipes/view-date.pipe.d.ts +0 -8
- package/components/history/src/history.component.d.ts +0 -7
- package/components/import-excel/src/import-excel.component.d.ts +0 -47
- package/components/import-excel/src/import-excel.model.d.ts +0 -102
- package/components/import-excel/src/pipes/columm-hidden.pipe.d.ts +0 -10
- package/components/import-excel/src/pipes/column-transform.pipe.d.ts +0 -11
- package/components/inform/src/inform-action.directive.d.ts +0 -9
- package/components/inform/src/inform.component.d.ts +0 -59
- package/components/mini-editor/src/mini-editor.component.d.ts +0 -91
- package/components/mini-editor/src/mini-editor.model.d.ts +0 -44
- package/components/modal/src/modal.component.d.ts +0 -30
- package/components/operator/src/operator.component.d.ts +0 -34
- package/components/preview/src/preview-image/preview-image.component.d.ts +0 -88
- package/components/preview/src/preview-image/preview-image.types.d.ts +0 -53
- package/components/preview/src/preview-pdf/preview-pdf.component.d.ts +0 -186
- package/components/preview/src/preview-pdf/preview-pdf.types.d.ts +0 -84
- package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +0 -28
- package/components/query-bar/src/components/build-chip/build-chip.component.d.ts +0 -67
- package/components/query-bar/src/components/chip-popover/chip-popover.component.d.ts +0 -73
- package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +0 -37
- package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +0 -87
- package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +0 -71
- package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +0 -35
- package/components/query-bar/src/components/saved-filters-menu/saved-filters-menu.component.d.ts +0 -39
- package/components/query-bar/src/query-bar.component.d.ts +0 -137
- package/components/query-bar/src/query-bar.model.d.ts +0 -136
- package/components/query-builder/src/query-builder.component.d.ts +0 -26
- package/components/quick-action/src/quick-action.component.d.ts +0 -9
- package/components/section/src/section-item/section-item.component.d.ts +0 -7
- package/components/section/src/section.component.d.ts +0 -18
- package/components/side-drawer/src/side-drawer.component.d.ts +0 -30
- package/components/splitter/src/splitter-handle/splitter-handle.component.d.ts +0 -24
- package/components/splitter/src/splitter-panel/splitter-panel.component.d.ts +0 -16
- package/components/splitter/src/splitter-state.service.d.ts +0 -26
- package/components/splitter/src/splitter.component.d.ts +0 -28
- package/components/splitter/src/splitter.models.d.ts +0 -23
- package/components/stepper/src/step.component.d.ts +0 -17
- package/components/stepper/src/stepper.component.d.ts +0 -33
- package/components/tab/src/tab-group.component.d.ts +0 -37
- package/components/tab/src/tab.component.d.ts +0 -13
- package/components/tab-router/src/actions/tab-router.action.d.ts +0 -5
- package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +0 -22
- package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +0 -16
- package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +0 -15
- package/components/tab-router/src/decorators/tab.decorator.d.ts +0 -16
- package/components/tab-router/src/events/tab-router.event.d.ts +0 -11
- package/components/tab-router/src/models/index.d.ts +0 -1
- package/components/tab-router/src/models/tab-router.model.d.ts +0 -21
- package/components/tab-router/src/pipes/tab-info.pipe.d.ts +0 -11
- package/components/tab-router/src/services/tab-decorator.service.d.ts +0 -9
- package/components/tab-router/src/services/tab-router.service.d.ts +0 -27
- package/components/table/src/components/column-title/column-title.component.d.ts +0 -10
- package/components/table/src/components/command/desktop-command.component.d.ts +0 -14
- package/components/table/src/components/command/pipes/command.pipe.d.ts +0 -30
- package/components/table/src/components/command/pipes/filter.pipe.d.ts +0 -35
- package/components/table/src/components/config/config.component.d.ts +0 -25
- package/components/table/src/components/desktop-cell/desktop-cell.component.d.ts +0 -24
- package/components/table/src/components/desktop-cell/view/view.component.d.ts +0 -24
- package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +0 -32
- package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +0 -27
- package/components/table/src/components/filter/index.d.ts +0 -3
- package/components/table/src/components/filter/mobile-filter/mobile-filter.component.d.ts +0 -42
- package/components/table/src/components/index.d.ts +0 -3
- package/components/table/src/components/popup-export/popup-export.component.d.ts +0 -51
- package/components/table/src/components/selector-action/action-filter.pipe.d.ts +0 -34
- package/components/table/src/components/selector-action/selector-action.component.d.ts +0 -16
- package/components/table/src/configurations/index.d.ts +0 -1
- package/components/table/src/configurations/table.configuration.d.ts +0 -35
- package/components/table/src/directives/index.d.ts +0 -6
- package/components/table/src/directives/sd-column-resize.directive.d.ts +0 -13
- package/components/table/src/directives/sd-table-cell-def.directive.d.ts +0 -16
- package/components/table/src/directives/sd-table-column-filter-def.directive.d.ts +0 -16
- package/components/table/src/directives/sd-table-expand-def.directive.d.ts +0 -13
- package/components/table/src/directives/sd-table-filter-def.directive.d.ts +0 -14
- package/components/table/src/directives/sd-table-footer-def.directive.d.ts +0 -16
- package/components/table/src/directives/sd-table-group-def.directive.d.ts +0 -44
- package/components/table/src/directives/sd-table-title-def.directive.d.ts +0 -14
- package/components/table/src/directives/sticky-shadow.directive.d.ts +0 -17
- package/components/table/src/models/index.d.ts +0 -5
- package/components/table/src/models/table-column.model.d.ts +0 -119
- package/components/table/src/models/table-command.model.d.ts +0 -25
- package/components/table/src/models/table-item.model.d.ts +0 -65
- package/components/table/src/models/table-option-config.model.d.ts +0 -42
- package/components/table/src/models/table-option-expand.model.d.ts +0 -6
- package/components/table/src/models/table-option-export.model.d.ts +0 -42
- package/components/table/src/models/table-option-group.model.d.ts +0 -21
- package/components/table/src/models/table-option-paginate.model.d.ts +0 -7
- package/components/table/src/models/table-option-reload.model.d.ts +0 -7
- package/components/table/src/models/table-option-selector.model.d.ts +0 -105
- package/components/table/src/models/table-option-sort.model.d.ts +0 -3
- package/components/table/src/models/table-option-style.model.d.ts +0 -11
- package/components/table/src/models/table-option-tree.model.d.ts +0 -12
- package/components/table/src/models/table-option.model.d.ts +0 -181
- package/components/table/src/pipes/filter-values.pipe.d.ts +0 -8
- package/components/table/src/pipes/index.d.ts +0 -2
- package/components/table/src/pipes/sd-group.pipe.d.ts +0 -23
- package/components/table/src/pipes/sd-tree.pipe.d.ts +0 -9
- package/components/table/src/pipes/selection-disabled.pipe.d.ts +0 -9
- package/components/table/src/pipes/selection-visible-select-all.pipe.d.ts +0 -9
- package/components/table/src/pipes/selection-visible.pipe.d.ts +0 -9
- package/components/table/src/services/column-width.util.d.ts +0 -7
- package/components/table/src/services/config.service.d.ts +0 -21
- package/components/table/src/services/index.d.ts +0 -3
- package/components/table/src/services/table-export/table-export.service.d.ts +0 -26
- package/components/table/src/services/table-filter/table-filter.model.d.ts +0 -150
- package/components/table/src/services/table-filter/table-filter.service.d.ts +0 -20
- package/components/table/src/services/table-format/table-format.service.d.ts +0 -16
- package/components/table/src/services/tree/tree.util.d.ts +0 -14
- package/components/table/src/table.component.d.ts +0 -137
- package/components/upload-file/src/components/preview/preview.component.d.ts +0 -23
- package/components/upload-file/src/configurations/index.d.ts +0 -1
- package/components/upload-file/src/configurations/upload-file.configuration.d.ts +0 -50
- package/components/upload-file/src/pipes/document.pipe.d.ts +0 -8
- package/components/upload-file/src/pipes/image.pipe.d.ts +0 -8
- package/components/upload-file/src/pipes/index.d.ts +0 -2
- package/components/upload-file/src/services/index.d.ts +0 -2
- package/components/upload-file/src/services/upload-file.model.d.ts +0 -12
- package/components/upload-file/src/services/upload-file.service.d.ts +0 -10
- package/components/upload-file/src/upload-file.component.d.ts +0 -85
- package/components/view/src/view.component.d.ts +0 -17
- package/configurations/src/sd-core.configuration.d.ts +0 -10
- package/directives/src/sd-desktop.directive.d.ts +0 -7
- package/directives/src/sd-hover-copy.directive.d.ts +0 -16
- package/directives/src/sd-href.directive.d.ts +0 -9
- package/directives/src/sd-mobile.directive.d.ts +0 -7
- package/directives/src/sd-scroll.directive.d.ts +0 -14
- package/directives/src/sd-tooltip.directive.d.ts +0 -26
- package/forms/autocomplete/src/autocomplete.component.d.ts +0 -93
- package/forms/checkbox/src/checkbox.component.d.ts +0 -28
- package/forms/chip/src/chip.component.d.ts +0 -71
- package/forms/chip/src/index.d.ts +0 -2
- 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/chip-calendar.component.d.ts +0 -71
- package/forms/chip-calendar/src/pipes/index.d.ts +0 -1
- package/forms/chip-calendar/src/pipes/removable-chip.pipe.d.ts +0 -8
- package/forms/date/src/date.component.d.ts +0 -79
- package/forms/date-range/src/date-range.component.d.ts +0 -81
- package/forms/datetime/src/datetime.component.d.ts +0 -89
- package/forms/datetime/src/popup/sd-datetime-picker.component.d.ts +0 -37
- package/forms/datetime/src/popup/sd-time-spinner.component.d.ts +0 -41
- package/forms/directives/src/item-def.directive.d.ts +0 -13
- package/forms/directives/src/label-def.directive.d.ts +0 -9
- package/forms/directives/src/suffix-def.directive.d.ts +0 -9
- package/forms/directives/src/view-def.directive.d.ts +0 -14
- package/forms/input/src/input.component.d.ts +0 -84
- package/forms/input-color/src/input-color.component.d.ts +0 -32
- package/forms/input-number/src/input-number.component.d.ts +0 -95
- package/forms/label/src/label.component.d.ts +0 -13
- package/forms/models/src/form-control-state.d.ts +0 -23
- package/forms/models/src/sd-custom-validator.model.d.ts +0 -15
- package/forms/models/src/sd-form-control.model.d.ts +0 -21
- package/forms/models/src/sd-form.configuration.d.ts +0 -6
- package/forms/models/src/sd-search.model.d.ts +0 -7
- package/forms/models/src/sd-selection-data.model.d.ts +0 -7
- package/forms/radio/src/radio.component.d.ts +0 -49
- package/forms/select/src/select.component.d.ts +0 -93
- package/forms/src/forms.module.d.ts +0 -14
- package/forms/switch/src/switch.component.d.ts +0 -32
- package/forms/textarea/src/textarea.component.d.ts +0 -65
- package/handlers/global-error.handler.d.ts +0 -9
- package/i18n/src/en.d.ts +0 -449
- package/i18n/src/i18n.messages.d.ts +0 -2
- package/i18n/src/i18n.pipe.d.ts +0 -9
- package/i18n/src/i18n.service.d.ts +0 -14
- package/i18n/src/i18n.token.d.ts +0 -1
- package/i18n/src/i18n.types.d.ts +0 -31
- package/i18n/src/ja.d.ts +0 -2
- package/i18n/src/ko.d.ts +0 -2
- package/i18n/src/vi.d.ts +0 -2
- package/i18n/src/zh.d.ts +0 -2
- package/interceptors/no-internet/no-internet.interceptor.d.ts +0 -14
- package/interceptors/unauthorized/unauthorized.interceptor.d.ts +0 -12
- package/models/src/language.model.d.ts +0 -2
- package/modules/auth/configurations/auth.configuration.d.ts +0 -19
- package/modules/auth/configurations/index.d.ts +0 -1
- package/modules/auth/guards/auth.guard.d.ts +0 -11
- package/modules/auth/guards/index.d.ts +0 -2
- package/modules/auth/guards/portal.guard.d.ts +0 -11
- package/modules/auth/services/auth.model.d.ts +0 -8
- package/modules/auth/services/auth.service.d.ts +0 -17
- package/modules/auth/services/index.d.ts +0 -2
- package/modules/authom/authom.configuration.d.ts +0 -17
- package/modules/authom/authom.interceptor.d.ts +0 -3
- package/modules/authom/authom.module.d.ts +0 -16
- package/modules/authom/authom.service.d.ts +0 -32
- package/modules/keycloak/keycloak.configuration.d.ts +0 -11
- package/modules/keycloak/keycloak.interceptor.d.ts +0 -2
- package/modules/keycloak/keycloak.module.d.ts +0 -18
- package/modules/keycloak/keycloak.service.d.ts +0 -14
- package/modules/layout/components/index.d.ts +0 -4
- package/modules/layout/components/layout-main/layout-main.component.d.ts +0 -12
- package/modules/layout/components/page/page.component.d.ts +0 -10
- package/modules/layout/components/sidebar-mobile-v1/components/sidebar/sidebar.component.d.ts +0 -35
- package/modules/layout/components/sidebar-mobile-v1/components/user/user.component.d.ts +0 -24
- package/modules/layout/components/sidebar-mobile-v1/main.component.d.ts +0 -21
- package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +0 -55
- package/modules/layout/components/sidebar-v1/components/user/user.component.d.ts +0 -22
- package/modules/layout/components/sidebar-v1/main.component.d.ts +0 -24
- package/modules/layout/configurations/index.d.ts +0 -1
- package/modules/layout/configurations/layout.configuration.d.ts +0 -67
- package/modules/layout/layout.module.d.ts +0 -7
- package/modules/layout/layout.routing.d.ts +0 -2
- package/modules/layout/modules/forbidden/forbidden.module.d.ts +0 -8
- package/modules/layout/modules/forbidden/forbidden.routing.d.ts +0 -2
- package/modules/layout/modules/forbidden/index.d.ts +0 -1
- package/modules/layout/modules/forbidden/pages/root/root.component.d.ts +0 -10
- package/modules/layout/modules/home/components/home-page/home-page.component.d.ts +0 -33
- package/modules/layout/modules/home/guards/home-redirect.guard.d.ts +0 -11
- package/modules/layout/modules/home/home.module.d.ts +0 -8
- package/modules/layout/modules/home/home.routing.d.ts +0 -7
- package/modules/layout/modules/home/index.d.ts +0 -1
- package/modules/layout/modules/index.d.ts +0 -3
- package/modules/layout/modules/not-found/index.d.ts +0 -1
- package/modules/layout/modules/not-found/not-found.module.d.ts +0 -8
- package/modules/layout/modules/not-found/not-found.routing.d.ts +0 -2
- package/modules/layout/modules/not-found/pages/root/root.component.d.ts +0 -10
- package/modules/layout/pipes/high-light-search.pipe.d.ts +0 -10
- package/modules/layout/pipes/index.d.ts +0 -3
- package/modules/layout/pipes/menu-focus.pipe.d.ts +0 -10
- package/modules/layout/pipes/menu.pipe.d.ts +0 -13
- package/modules/layout/services/index.d.ts +0 -3
- package/modules/layout/services/layout.service.d.ts +0 -10
- package/modules/layout/services/menu/menu.model.d.ts +0 -24
- package/modules/layout/services/storage/storage.service.d.ts +0 -13
- package/modules/permission/src/configurations/index.d.ts +0 -1
- package/modules/permission/src/configurations/permission.configuration.d.ts +0 -63
- package/modules/permission/src/directives/index.d.ts +0 -1
- package/modules/permission/src/directives/permission.directive.d.ts +0 -9
- package/modules/permission/src/guards/index.d.ts +0 -1
- package/modules/permission/src/guards/permission.guard.d.ts +0 -14
- package/modules/permission/src/services/index.d.ts +0 -1
- package/modules/permission/src/services/permission.service.d.ts +0 -12
- package/pipes/src/empty.pipe.d.ts +0 -7
- package/pipes/src/format-number.pipe.d.ts +0 -11
- package/pipes/src/safe-html.pipe.d.ts +0 -11
- package/pipes/src/time-different.pipe.d.ts +0 -13
- package/public-api.d.ts +0 -10
- package/services/api/src/api.model.d.ts +0 -36
- package/services/api/src/api.module.d.ts +0 -6
- package/services/api/src/api.service.d.ts +0 -19
- package/services/api/src/interceptors/api.interceptor.d.ts +0 -9
- package/services/cache/src/cache.model.d.ts +0 -30
- package/services/cache/src/cache.service.d.ts +0 -9
- package/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.d.ts +0 -46
- package/services/confirm/src/lib/confirm.service.d.ts +0 -55
- package/services/confirm/src/public-api.d.ts +0 -2
- package/services/docx/src/lib/docx.model.d.ts +0 -9
- package/services/docx/src/lib/docx.service.d.ts +0 -15
- package/services/docx/src/lib/pandoc-core.d.ts +0 -11
- package/services/docx/src/public-api.d.ts +0 -2
- package/services/excel/src/lib/excel.model.d.ts +0 -31
- package/services/excel/src/lib/excel.service.d.ts +0 -19
- package/services/excel/src/public-api.d.ts +0 -2
- package/services/license/src/license.service.d.ts +0 -10
- package/services/loading/src/loading.service.d.ts +0 -14
- package/services/notify/src/components/toast/toast.component.d.ts +0 -28
- package/services/notify/src/components/toast-container.component.d.ts +0 -8
- package/services/notify/src/notify.model.d.ts +0 -16
- package/services/notify/src/notify.service.d.ts +0 -20
- package/services/storage/src/storage.model.d.ts +0 -20
- package/services/storage/src/storage.service.d.ts +0 -10
- package/utilities/data-state/src/data-state.d.ts +0 -11
- package/utilities/extensions/src/array.extension.d.ts +0 -1
- package/utilities/extensions/src/color.extension.d.ts +0 -5
- package/utilities/extensions/src/date.extension.d.ts +0 -1
- package/utilities/extensions/src/number.extension.d.ts +0 -1
- package/utilities/extensions/src/string.extension.d.ts +0 -50
- package/utilities/extensions/src/utility.extension.d.ts +0 -31
- package/utilities/models/src/color.model.d.ts +0 -4
- package/utilities/models/src/empty.model.d.ts +0 -4
- package/utilities/models/src/filter.model.d.ts +0 -12
- package/utilities/models/src/icon.model.d.ts +0 -2
- package/utilities/models/src/maybe-async.model.d.ts +0 -10
- package/utilities/models/src/nested-key-of.model.d.ts +0 -4
- package/utilities/models/src/operator.model.d.ts +0 -13
- package/utilities/models/src/order.model.d.ts +0 -4
- package/utilities/models/src/paging.model.d.ts +0 -8
- package/utilities/models/src/pattern.model.d.ts +0 -21
- package/utilities/models/src/size.model.d.ts +0 -4
- package/utilities/models/src/unwrap-signal.model.d.ts +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdcorejs-angular-forms-switch.mjs","sources":["../../../projects/sdcorejs-angular/forms/switch/src/switch.component.ts","../../../projects/sdcorejs-angular/forms/switch/src/switch.component.html","../../../projects/sdcorejs-angular/forms/switch/sdcorejs-angular-forms-switch.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n AfterViewInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n OnDestroy,\n OnInit,\n output,\n} from '@angular/core';\nimport { AsyncValidatorFn, FormGroup, FormsModule, NgForm, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { SdLabel } from '@sdcorejs/angular/forms/label';\nimport { TranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdFormControl, sdFormControlState } from '@sdcorejs/angular/forms/models';\nimport { sdIsEmpty, sdSerializeDataValue } from '@sdcorejs/angular/utilities/data-state';\nimport { Color } from '@sdcorejs/utils/models';\nimport { Subscription } from 'rxjs';\nimport * as uuid from 'uuid';\n\n@Component({\n selector: 'sd-switch',\n templateUrl: './switch.component.html',\n styleUrl: './switch.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n // why: dùng host class .sd-c-<x> (thay vì data-attr) để reactivity host-binding với\n // signal chắc chắn áp dụng + có default fallback `sd-c-primary` khi color() là 'primary'.\n // Test cũ assert data-sd-color đã được thay bằng class assert tương ứng.\n '[class.sd-c-primary]': \"color() === 'primary'\",\n '[class.sd-c-secondary]': \"color() === 'secondary'\",\n '[class.sd-c-info]': \"color() === 'info'\",\n '[class.sd-c-success]': \"color() === 'success'\",\n '[class.sd-c-warning]': \"color() === 'warning'\",\n '[class.sd-c-error]': \"color() === 'error'\",\n },\n imports: [FormsModule, ReactiveFormsModule, MatSlideToggleModule, MatFormFieldModule, SdLabel, TranslatePipe],\n})\nexport class SdSwitch implements OnInit, AfterViewInit, OnDestroy {\n readonly #ref = inject(ChangeDetectorRef);\n\n id = `I${uuid.v4()}`;\n #name = uuid.v4();\n #model: boolean | null | undefined = false;\n formControl = new SdFormControl();\n #subscription = new Subscription();\n\n // Inputs — accept null|undefined at boundary, transform to canonical\n readonly autoIdInput = input<string | undefined, string | null | undefined>(undefined, {\n alias: 'autoId',\n transform: (v): string | undefined => v ?? undefined,\n });\n readonly name = input<string | undefined, string | null | undefined>(undefined, {\n transform: (v): string | undefined => v ?? undefined,\n });\n readonly form = input<FormGroup | undefined, any>(undefined, {\n transform: (val: any): FormGroup | undefined => {\n if (!val) return undefined;\n if (val instanceof NgForm) return val.form;\n if (val instanceof FormGroup) return val;\n if (val?.form instanceof FormGroup) return val.form;\n return undefined;\n },\n });\n readonly label = input<string | undefined, string | null | undefined>(undefined, {\n transform: (v): string | undefined => v ?? undefined,\n });\n // why: legacy callers pass `null` to mean \"fallback to primary\" — keep that contract\n readonly color = input<Color, Color | null | undefined>('primary', {\n transform: (v): Color => v || 'primary',\n });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly viewed = input(false, { transform: booleanAttribute });\n readonly hideInlineError = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n\n // Two-way model\n readonly model = model<boolean | null | undefined>(false);\n\n // Outputs\n readonly sdChange = output<unknown>();\n\n // Computed (template bindings)\n readonly autoId = computed(() => (this.autoIdInput() ? `forms-switch-${this.autoIdInput()}` : undefined));\n readonly #state = sdFormControlState(computed(() => this.formControl));\n readonly dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));\n readonly dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));\n readonly dataValue = computed(() => sdSerializeDataValue(this.#state().value));\n readonly dataRequired = computed(() => (this.required() ? 'true' : 'false'));\n\n constructor() {\n effect(() => {\n const val = this.name();\n if (val) this.#name = val;\n });\n\n effect(() => {\n if (this.disabled()) this.formControl.disable();\n else this.formControl.enable();\n });\n\n effect(() => {\n const value = this.model();\n if (this.#model !== value) {\n this.#model = value;\n this.formControl.setValue(value, { emitEvent: false });\n }\n });\n\n effect(() => {\n this.required();\n this.#updateValidator();\n });\n }\n\n ngOnInit() {\n this.#subscription.add(\n this.formControl.sdChanges.subscribe(() => {\n this.#ref.markForCheck();\n })\n );\n }\n\n ngAfterViewInit() {\n this.#subscription.add(this.formControl.valueChanges.subscribe(this.#onChange));\n this.form()?.addControl(this.#name, this.formControl);\n this.#ref.detectChanges();\n }\n\n ngOnDestroy() {\n this.form()?.removeControl(this.#name);\n this.#subscription.unsubscribe();\n }\n\n #onChange = (value: any) => {\n this.#model = value;\n this.model.set(value);\n this.sdChange.emit(value);\n };\n\n #updateValidator = () => {\n this.formControl.clearValidators();\n this.formControl.clearAsyncValidators();\n const validators: ValidatorFn[] = [];\n const asyncValidators: AsyncValidatorFn[] = [];\n if (this.required()) {\n validators.push(Validators.required);\n }\n this.formControl.setValidators(validators);\n this.formControl.setAsyncValidators(asyncValidators);\n this.formControl.updateValueAndValidity();\n };\n}\n","@if (viewed()) {\n @if (label()) {\n <div class=\"T14R text-black400\">{{ label() }}</div>\n }\n <div class=\"T14M\">{{ (model() ? 'core.form.switch.on' : 'core.form.switch.off') | translate }}</div>\n} @else {\n <mat-slide-toggle\n [formControl]=\"formControl\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\">\n <sd-label [label]=\"label()\" [required]=\"required()\"></sd-label>\n </mat-slide-toggle>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;MA6Ca,QAAQ,CAAA;AACV,IAAA,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEzC,IAAA,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAC,EAAE,EAAE,EAAE;AACpB,IAAA,KAAK,GAAG,IAAI,CAAC,EAAE,EAAE;IACjB,MAAM,GAA+B,KAAK;AAC1C,IAAA,WAAW,GAAG,IAAI,aAAa,EAAE;AACjC,IAAA,aAAa,GAAG,IAAI,YAAY,EAAE;;AAGzB,IAAA,WAAW,GAAG,KAAK,CAAgD,SAAS,EAAE;AACrF,QAAA,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE,CAAC,CAAC,KAAyB,CAAC,IAAI,SAAS;AACrD,KAAA,CAAC;AACO,IAAA,IAAI,GAAG,KAAK,CAAgD,SAAS,EAAE;QAC9E,SAAS,EAAE,CAAC,CAAC,KAAyB,CAAC,IAAI,SAAS;AACrD,KAAA,CAAC;AACO,IAAA,IAAI,GAAG,KAAK,CAA6B,SAAS,EAAE;AAC3D,QAAA,SAAS,EAAE,CAAC,GAAQ,KAA2B;AAC7C,YAAA,IAAI,CAAC,GAAG;AAAE,gBAAA,OAAO,SAAS;YAC1B,IAAI,GAAG,YAAY,MAAM;gBAAE,OAAO,GAAG,CAAC,IAAI;YAC1C,IAAI,GAAG,YAAY,SAAS;AAAE,gBAAA,OAAO,GAAG;AAC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EAAE,OAAO,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,qkBAAA,EAAA,MAAA,EAAA,CAAA,kgNAAA,CAAA,EAAA;;;AE3C/G;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-forms-switch.mjs","sources":["../../../projects/sdcorejs-angular/forms/switch/src/switch.component.ts","../../../projects/sdcorejs-angular/forms/switch/src/switch.component.html","../../../projects/sdcorejs-angular/forms/switch/sdcorejs-angular-forms-switch.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n AfterViewInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n OnDestroy,\n OnInit,\n output,\n} from '@angular/core';\nimport { AsyncValidatorFn, FormGroup, FormsModule, NgForm, ReactiveFormsModule, ValidatorFn, Validators } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { SdLabel } from '@sdcorejs/angular/forms/label';\nimport { TranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdFormControl, sdFormControlState } from '@sdcorejs/angular/forms/models';\nimport { sdIsEmpty, sdSerializeDataValue } from '@sdcorejs/angular/utilities/data-state';\nimport { Color } from '@sdcorejs/utils/models';\nimport { Subscription } from 'rxjs';\nimport * as uuid from 'uuid';\n\n@Component({\n selector: 'sd-switch',\n templateUrl: './switch.component.html',\n styleUrl: './switch.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n // why: dùng host class .sd-c-<x> (thay vì data-attr) để reactivity host-binding với\n // signal chắc chắn áp dụng + có default fallback `sd-c-primary` khi color() là 'primary'.\n // Test cũ assert data-sd-color đã được thay bằng class assert tương ứng.\n '[class.sd-c-primary]': \"color() === 'primary'\",\n '[class.sd-c-secondary]': \"color() === 'secondary'\",\n '[class.sd-c-info]': \"color() === 'info'\",\n '[class.sd-c-success]': \"color() === 'success'\",\n '[class.sd-c-warning]': \"color() === 'warning'\",\n '[class.sd-c-error]': \"color() === 'error'\",\n },\n imports: [FormsModule, ReactiveFormsModule, MatSlideToggleModule, MatFormFieldModule, SdLabel, TranslatePipe],\n})\nexport class SdSwitch implements OnInit, AfterViewInit, OnDestroy {\n readonly #ref = inject(ChangeDetectorRef);\n\n id = `I${uuid.v4()}`;\n #name = uuid.v4();\n #model: boolean | null | undefined = false;\n formControl = new SdFormControl();\n #subscription = new Subscription();\n\n // Inputs — accept null|undefined at boundary, transform to canonical\n readonly autoIdInput = input<string | undefined, string | null | undefined>(undefined, {\n alias: 'autoId',\n transform: (v): string | undefined => v ?? undefined,\n });\n readonly name = input<string | undefined, string | null | undefined>(undefined, {\n transform: (v): string | undefined => v ?? undefined,\n });\n readonly form = input<FormGroup | undefined, any>(undefined, {\n transform: (val: any): FormGroup | undefined => {\n if (!val) return undefined;\n if (val instanceof NgForm) return val.form;\n if (val instanceof FormGroup) return val;\n if (val?.form instanceof FormGroup) return val.form;\n return undefined;\n },\n });\n readonly label = input<string | undefined, string | null | undefined>(undefined, {\n transform: (v): string | undefined => v ?? undefined,\n });\n // why: legacy callers pass `null` to mean \"fallback to primary\" — keep that contract\n readonly color = input<Color, Color | null | undefined>('primary', {\n transform: (v): Color => v || 'primary',\n });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly viewed = input(false, { transform: booleanAttribute });\n readonly hideInlineError = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n\n // Two-way model\n readonly model = model<boolean | null | undefined>(false);\n\n // Outputs\n readonly sdChange = output<unknown>();\n\n // Computed (template bindings)\n readonly autoId = computed(() => (this.autoIdInput() ? `forms-switch-${this.autoIdInput()}` : undefined));\n readonly #state = sdFormControlState(computed(() => this.formControl));\n readonly dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));\n readonly dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));\n readonly dataValue = computed(() => sdSerializeDataValue(this.#state().value));\n readonly dataRequired = computed(() => (this.required() ? 'true' : 'false'));\n\n constructor() {\n effect(() => {\n const val = this.name();\n if (val) this.#name = val;\n });\n\n effect(() => {\n if (this.disabled()) this.formControl.disable();\n else this.formControl.enable();\n });\n\n effect(() => {\n const value = this.model();\n if (this.#model !== value) {\n this.#model = value;\n this.formControl.setValue(value, { emitEvent: false });\n }\n });\n\n effect(() => {\n this.required();\n this.#updateValidator();\n });\n }\n\n ngOnInit() {\n this.#subscription.add(\n this.formControl.sdChanges.subscribe(() => {\n this.#ref.markForCheck();\n })\n );\n }\n\n ngAfterViewInit() {\n this.#subscription.add(this.formControl.valueChanges.subscribe(this.#onChange));\n this.form()?.addControl(this.#name, this.formControl);\n this.#ref.detectChanges();\n }\n\n ngOnDestroy() {\n this.form()?.removeControl(this.#name);\n this.#subscription.unsubscribe();\n }\n\n #onChange = (value: any) => {\n this.#model = value;\n this.model.set(value);\n this.sdChange.emit(value);\n };\n\n #updateValidator = () => {\n this.formControl.clearValidators();\n this.formControl.clearAsyncValidators();\n const validators: ValidatorFn[] = [];\n const asyncValidators: AsyncValidatorFn[] = [];\n if (this.required()) {\n validators.push(Validators.required);\n }\n this.formControl.setValidators(validators);\n this.formControl.setAsyncValidators(asyncValidators);\n this.formControl.updateValueAndValidity();\n };\n}\n","@if (viewed()) {\n @if (label()) {\n <div class=\"T14R text-black400\">{{ label() }}</div>\n }\n <div class=\"T14M\">{{ (model() ? 'core.form.switch.on' : 'core.form.switch.off') | translate }}</div>\n} @else {\n <mat-slide-toggle\n [formControl]=\"formControl\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\">\n <sd-label [label]=\"label()\" [required]=\"required()\"></sd-label>\n </mat-slide-toggle>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;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
|
|
30
30
|
// 1. SIGNAL QUERIES
|
|
31
31
|
// ==========================================
|
|
32
|
-
textareaRef = viewChild('textarea');
|
|
33
|
-
sdViewDef = contentChild(SdViewDefDirective);
|
|
34
|
-
sdLabelDef = contentChild(SdLabelDefDirective);
|
|
35
|
-
sdSuffixDef = contentChild(SdSuffixDefDirective);
|
|
32
|
+
textareaRef = viewChild('textarea', ...(ngDevMode ? [{ debugName: "textareaRef" }] : []));
|
|
33
|
+
sdViewDef = contentChild(SdViewDefDirective, ...(ngDevMode ? [{ debugName: "sdViewDef" }] : []));
|
|
34
|
+
sdLabelDef = contentChild(SdLabelDefDirective, ...(ngDevMode ? [{ debugName: "sdLabelDef" }] : []));
|
|
35
|
+
sdSuffixDef = contentChild(SdSuffixDefDirective, ...(ngDevMode ? [{ debugName: "sdSuffixDef" }] : []));
|
|
36
36
|
// ==========================================
|
|
37
37
|
// 2. INJECTS
|
|
38
38
|
// ==========================================
|
|
@@ -42,71 +42,84 @@ class SdTextarea {
|
|
|
42
42
|
// ==========================================
|
|
43
43
|
// 3. SIGNAL INPUTS & MODEL
|
|
44
44
|
// ==========================================
|
|
45
|
-
autoIdInput = input(undefined, { alias: 'autoId' });
|
|
46
|
-
autoId = computed(() => this.autoIdInput() ? `forms-textarea-${this.autoIdInput()}` : undefined);
|
|
45
|
+
autoIdInput = input(undefined, ...(ngDevMode ? [{ debugName: "autoIdInput", alias: 'autoId' }] : [{ alias: 'autoId' }]));
|
|
46
|
+
autoId = computed(() => this.autoIdInput() ? `forms-textarea-${this.autoIdInput()}` : undefined, ...(ngDevMode ? [{ debugName: "autoId" }] : []));
|
|
47
47
|
#state = sdFormControlState(computed(() => this.formControl));
|
|
48
|
-
dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));
|
|
49
|
-
dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'));
|
|
50
|
-
dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));
|
|
51
|
-
dataValue = computed(() => sdSerializeDataValue(this.#state().value));
|
|
52
|
-
dataRequired = computed(() => (this.required() ? 'true' : 'false'));
|
|
48
|
+
dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataDisabled" }] : []));
|
|
49
|
+
dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataInvalid" }] : []));
|
|
50
|
+
dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataEmpty" }] : []));
|
|
51
|
+
dataValue = computed(() => sdSerializeDataValue(this.#state().value), ...(ngDevMode ? [{ debugName: "dataValue" }] : []));
|
|
52
|
+
dataRequired = computed(() => (this.required() ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataRequired" }] : []));
|
|
53
53
|
dataMaxLength = computed(() => {
|
|
54
54
|
const v = this.maxlength();
|
|
55
55
|
return v == null ? null : String(v);
|
|
56
|
-
});
|
|
56
|
+
}, ...(ngDevMode ? [{ debugName: "dataMaxLength" }] : []));
|
|
57
57
|
dataPattern = computed(() => {
|
|
58
58
|
const v = this.pattern();
|
|
59
59
|
return v == null || v === '' ? null : String(v);
|
|
60
|
-
});
|
|
60
|
+
}, ...(ngDevMode ? [{ debugName: "dataPattern" }] : []));
|
|
61
61
|
dataErrorMessage = computed(() => {
|
|
62
62
|
void this.#state();
|
|
63
63
|
const msg = this.errorMessage();
|
|
64
64
|
return msg && msg.length > 0 ? msg : null;
|
|
65
|
-
});
|
|
66
|
-
name = input(uuid.v4());
|
|
67
|
-
size = input('md');
|
|
65
|
+
}, ...(ngDevMode ? [{ debugName: "dataErrorMessage" }] : []));
|
|
66
|
+
name = input(uuid.v4(), ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
67
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
68
68
|
// Ghi (TransformT): any (để không bị lỗi typing khi cha truyền vào)
|
|
69
|
-
form = input(undefined, {
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
form = input(undefined, ...(ngDevMode ? [{ debugName: "form", transform: (val) => {
|
|
70
|
+
if (!val)
|
|
71
|
+
return undefined;
|
|
72
|
+
// Nếu cha truyền vào NgForm (template-driven) -> Bóc lấy FormGroup bên trong
|
|
73
|
+
if (val instanceof NgForm)
|
|
74
|
+
return val.form;
|
|
75
|
+
// Nếu cha truyền sẵn FormGroup (reactive) -> Lấy luôn
|
|
76
|
+
if (val instanceof FormGroup)
|
|
77
|
+
return val;
|
|
78
|
+
// Fallback an toàn phòng trường hợp cha truyền 1 object chứa form
|
|
79
|
+
if (val?.form instanceof FormGroup)
|
|
80
|
+
return val.form;
|
|
72
81
|
return undefined;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
82
|
+
} }] : [{
|
|
83
|
+
transform: (val) => {
|
|
84
|
+
if (!val)
|
|
85
|
+
return undefined;
|
|
86
|
+
// Nếu cha truyền vào NgForm (template-driven) -> Bóc lấy FormGroup bên trong
|
|
87
|
+
if (val instanceof NgForm)
|
|
88
|
+
return val.form;
|
|
89
|
+
// Nếu cha truyền sẵn FormGroup (reactive) -> Lấy luôn
|
|
90
|
+
if (val instanceof FormGroup)
|
|
91
|
+
return val;
|
|
92
|
+
// Fallback an toàn phòng trường hợp cha truyền 1 object chứa form
|
|
93
|
+
if (val?.form instanceof FormGroup)
|
|
94
|
+
return val.form;
|
|
95
|
+
return undefined;
|
|
96
|
+
},
|
|
97
|
+
}]));
|
|
98
|
+
label = input(undefined, ...(ngDevMode ? [{ debugName: "label", transform: (v) => v ?? undefined }] : [{
|
|
99
|
+
transform: (v) => v ?? undefined,
|
|
100
|
+
}]));
|
|
101
|
+
helperText = input(undefined, ...(ngDevMode ? [{ debugName: "helperText", transform: (v) => v ?? undefined }] : [{
|
|
102
|
+
transform: (v) => v ?? undefined,
|
|
103
|
+
}]));
|
|
104
|
+
placeholder = input(undefined, ...(ngDevMode ? [{ debugName: "placeholder", transform: (v) => v ?? undefined }] : [{
|
|
105
|
+
transform: (v) => v ?? undefined,
|
|
106
|
+
}]));
|
|
107
|
+
rows = input(5, ...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
108
|
+
hideInlineError = input(false, ...(ngDevMode ? [{ debugName: "hideInlineError", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
109
|
+
required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
110
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
111
|
+
viewed = input(false, ...(ngDevMode ? [{ debugName: "viewed", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
112
|
+
autoHeight = input(false, ...(ngDevMode ? [{ debugName: "autoHeight", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
113
|
+
maxlength = input(null, ...(ngDevMode ? [{ debugName: "maxlength", transform: (v) => (v != null && NumberUtilities.isPositiveInteger(Number(v))) ? Number(v) : null }] : [{
|
|
114
|
+
transform: (v) => (v != null && NumberUtilities.isPositiveInteger(Number(v))) ? Number(v) : null
|
|
115
|
+
}]));
|
|
116
|
+
pattern = input(undefined, ...(ngDevMode ? [{ debugName: "pattern", transform: (v) => v ?? undefined }] : [{
|
|
117
|
+
transform: (v) => v ?? undefined,
|
|
118
|
+
}]));
|
|
119
|
+
validator = input(...(ngDevMode ? [undefined, { debugName: "validator" }] : []));
|
|
120
|
+
inlineError = input(undefined, ...(ngDevMode ? [{ debugName: "inlineError", transform: (v) => v ?? undefined }] : [{
|
|
121
|
+
transform: (v) => v ?? undefined,
|
|
122
|
+
}]));
|
|
110
123
|
/**
|
|
111
124
|
* Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.
|
|
112
125
|
*/
|
|
@@ -126,11 +139,11 @@ class SdTextarea {
|
|
|
126
139
|
if (errors['inlineError'])
|
|
127
140
|
return this.inlineError();
|
|
128
141
|
return undefined;
|
|
129
|
-
});
|
|
130
|
-
appearanceInput = input(undefined, { alias: 'appearance' });
|
|
131
|
-
appearance = computed(() => this.appearanceInput() ?? this.#formConfiguration?.appearance ?? 'outline');
|
|
132
|
-
floatLabel = input('auto');
|
|
133
|
-
valueModel = model(undefined, { alias: 'model' });
|
|
142
|
+
}, ...(ngDevMode ? [{ debugName: "errorMessage" }] : []));
|
|
143
|
+
appearanceInput = input(undefined, ...(ngDevMode ? [{ debugName: "appearanceInput", alias: 'appearance' }] : [{ alias: 'appearance' }]));
|
|
144
|
+
appearance = computed(() => this.appearanceInput() ?? this.#formConfiguration?.appearance ?? 'outline', ...(ngDevMode ? [{ debugName: "appearance" }] : []));
|
|
145
|
+
floatLabel = input('auto', ...(ngDevMode ? [{ debugName: "floatLabel" }] : []));
|
|
146
|
+
valueModel = model(undefined, ...(ngDevMode ? [{ debugName: "valueModel", alias: 'model' }] : [{ alias: 'model' }]));
|
|
134
147
|
// ==========================================
|
|
135
148
|
// 4. SIGNAL OUTPUTS
|
|
136
149
|
// ==========================================
|
|
@@ -273,10 +286,10 @@ class SdTextarea {
|
|
|
273
286
|
return null;
|
|
274
287
|
};
|
|
275
288
|
};
|
|
276
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
277
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: SdTextarea, isStandalone: true, selector: "sd-textarea", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, autoHeight: { classPropertyName: "autoHeight", publicName: "autoHeight", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, appearanceInput: { classPropertyName: "appearanceInput", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, valueModel: { classPropertyName: "valueModel", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueModel: "modelChange", sdChange: "sdChange" }, host: { properties: { "class.sd-has-label": "!!label()", "class.sd-viewed": "viewed()" } }, queries: [{ propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }, { propertyName: "sdLabelDef", first: true, predicate: SdLabelDefDirective, descendants: true, isSignal: true }, { propertyName: "sdSuffixDef", first: true, predicate: SdSuffixDefDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "textareaRef", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _errorMessage = errorMessage();\n@let _viewDef = sdViewDef();\n@let _labelDef = sdLabelDef();\n@let _helperText = helperText();\n@let _required = required();\n@let _maxLength = maxlength();\n\n@if (viewed()) {\n @if (_labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n } @else if (_label) {\n <div class=\"T14R text-black400\">{{ _label }}</div>\n }\n <div class=\"T14M\">{{ formControl.value | sdEmpty }}</div>\n} @else {\n @if (!_appearance && _labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n }\n @if (!_appearance && _label && !_labelDef?.templateRef) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n\n <div\n class=\"d-flex align-items-center sd-textarea-container\"\n [class.sd-view]=\"_viewDef?.templateRef\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\"\n aria-hidden=\"true\">\n @if (_viewDef?.templateRef && !isFocused) {\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"> </ng-container>\n } @else {\n <div class=\"sd-textarea-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label style=\"display: inline-block\">\n <div style=\"display: flex; align-items: center; gap: 4px\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <mat-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"above\">info_outline</mat-icon>\n }\n </div>\n </mat-label>\n }\n\n <textarea\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n [formControl]=\"formControl\"\n [required]=\"_required\"\n autocomplete=\"off\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [rows]=\"rows()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n spellcheck=\"false\"\n #textarea>\n </textarea>\n\n @if (_hideInlineError && _errorMessage && formControl.touched) {\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\"> error </mat-icon>\n }\n\n @if (!_hideInlineError && _errorMessage && formControl.touched) {\n <mat-error>{{ _errorMessage }}</mat-error>\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength !== null && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.textarea.exceeded' | translate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n }\n </div>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{display:block}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep textarea.mat-mdc-input-element{resize:none}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-text-field--disabled{background:var(--sd-black100)}:host ::ng-deep .mat-mdc-form-field textarea.mat-mdc-input-element:disabled{color:var(--sd-black400)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}.sd-textarea-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-textarea-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-textarea-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-textarea-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText"] }, { kind: "pipe", type: SdEmptyPipe, name: "sdEmpty" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
289
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdTextarea, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
290
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.23", type: SdTextarea, isStandalone: true, selector: "sd-textarea", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, helperText: { classPropertyName: "helperText", publicName: "helperText", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, autoHeight: { classPropertyName: "autoHeight", publicName: "autoHeight", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null }, inlineError: { classPropertyName: "inlineError", publicName: "inlineError", isSignal: true, isRequired: false, transformFunction: null }, appearanceInput: { classPropertyName: "appearanceInput", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, floatLabel: { classPropertyName: "floatLabel", publicName: "floatLabel", isSignal: true, isRequired: false, transformFunction: null }, valueModel: { classPropertyName: "valueModel", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueModel: "modelChange", sdChange: "sdChange" }, host: { properties: { "class.sd-has-label": "!!label()", "class.sd-viewed": "viewed()" } }, queries: [{ propertyName: "sdViewDef", first: true, predicate: SdViewDefDirective, descendants: true, isSignal: true }, { propertyName: "sdLabelDef", first: true, predicate: SdLabelDefDirective, descendants: true, isSignal: true }, { propertyName: "sdSuffixDef", first: true, predicate: SdSuffixDefDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "textareaRef", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: "@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _errorMessage = errorMessage();\n@let _viewDef = sdViewDef();\n@let _labelDef = sdLabelDef();\n@let _helperText = helperText();\n@let _required = required();\n@let _maxLength = maxlength();\n\n@if (viewed()) {\n @if (_labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n } @else if (_label) {\n <div class=\"T14R text-black400\">{{ _label }}</div>\n }\n <div class=\"T14M\">{{ formControl.value | sdEmpty }}</div>\n} @else {\n @if (!_appearance && _labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n }\n @if (!_appearance && _label && !_labelDef?.templateRef) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n\n <div\n class=\"d-flex align-items-center sd-textarea-container\"\n [class.sd-view]=\"_viewDef?.templateRef\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\"\n aria-hidden=\"true\">\n @if (_viewDef?.templateRef && !isFocused) {\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"> </ng-container>\n } @else {\n <div class=\"sd-textarea-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label style=\"display: inline-block\">\n <div style=\"display: flex; align-items: center; gap: 4px\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <mat-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"above\">info_outline</mat-icon>\n }\n </div>\n </mat-label>\n }\n\n <textarea\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n [formControl]=\"formControl\"\n [required]=\"_required\"\n autocomplete=\"off\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [rows]=\"rows()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n spellcheck=\"false\"\n #textarea>\n </textarea>\n\n @if (_hideInlineError && _errorMessage && formControl.touched) {\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\"> error </mat-icon>\n }\n\n @if (!_hideInlineError && _errorMessage && formControl.touched) {\n <mat-error>{{ _errorMessage }}</mat-error>\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength !== null && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.textarea.exceeded' | translate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n }\n </div>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{display:block}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep textarea.mat-mdc-input-element{resize:none}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-text-field--disabled{background:var(--sd-black100)}:host ::ng-deep .mat-mdc-form-field textarea.mat-mdc-input-element:disabled{color:var(--sd-black400)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}.sd-textarea-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-textarea-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-textarea-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-textarea-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText"] }, { kind: "pipe", type: SdEmptyPipe, name: "sdEmpty" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
278
291
|
}
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdTextarea, decorators: [{
|
|
280
293
|
type: Component,
|
|
281
294
|
args: [{ selector: 'sd-textarea', standalone: true, host: { '[class.sd-has-label]': '!!label()', '[class.sd-viewed]': 'viewed()' }, imports: [
|
|
282
295
|
CommonModule,
|
|
@@ -290,7 +303,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
290
303
|
SdEmptyPipe,
|
|
291
304
|
TranslatePipe,
|
|
292
305
|
], template: "@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _errorMessage = errorMessage();\n@let _viewDef = sdViewDef();\n@let _labelDef = sdLabelDef();\n@let _helperText = helperText();\n@let _required = required();\n@let _maxLength = maxlength();\n\n@if (viewed()) {\n @if (_labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n } @else if (_label) {\n <div class=\"T14R text-black400\">{{ _label }}</div>\n }\n <div class=\"T14M\">{{ formControl.value | sdEmpty }}</div>\n} @else {\n @if (!_appearance && _labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n }\n @if (!_appearance && _label && !_labelDef?.templateRef) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n\n <div\n class=\"d-flex align-items-center sd-textarea-container\"\n [class.sd-view]=\"_viewDef?.templateRef\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\"\n aria-hidden=\"true\">\n @if (_viewDef?.templateRef && !isFocused) {\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"> </ng-container>\n } @else {\n <div class=\"sd-textarea-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label style=\"display: inline-block\">\n <div style=\"display: flex; align-items: center; gap: 4px\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <mat-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"above\">info_outline</mat-icon>\n }\n </div>\n </mat-label>\n }\n\n <textarea\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n [formControl]=\"formControl\"\n [required]=\"_required\"\n autocomplete=\"off\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [rows]=\"rows()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n spellcheck=\"false\"\n #textarea>\n </textarea>\n\n @if (_hideInlineError && _errorMessage && formControl.touched) {\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\"> error </mat-icon>\n }\n\n @if (!_hideInlineError && _errorMessage && formControl.touched) {\n <mat-error>{{ _errorMessage }}</mat-error>\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength !== null && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.textarea.exceeded' | translate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n }\n </div>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host{display:block}:host(.sd-has-label){padding-top:4px}:host(.sd-viewed){padding-top:0}:host ::ng-deep textarea.mat-mdc-input-element{resize:none}:host ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-outline .mdc-text-field--disabled{background:var(--sd-black100)}:host ::ng-deep .mat-mdc-form-field textarea.mat-mdc-input-element:disabled{color:var(--sd-black400)!important}:host ::ng-deep .mat-mdc-form-field .mat-mdc-placeholder-required{color:var(--sd-error)}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}.sd-textarea-field-wrap{position:relative;flex:1;min-width:0}.sd-maxlength-counter{position:absolute;right:4px;top:calc(100% - 16px);opacity:0;font-size:10px;line-height:1.1;color:#00000061;pointer-events:none;transition:opacity .12s ease;z-index:1}.sd-maxlength-counter--exceeded{color:var(--sd-error);font-weight:600}:host ::ng-deep .sd-textarea-container.c-focused .sd-maxlength-counter,:host ::ng-deep .sd-textarea-container:hover .sd-maxlength-counter,:host ::ng-deep .sd-textarea-container .sd-maxlength-counter.sd-maxlength-counter--visible{opacity:1}\n"] }]
|
|
293
|
-
}], ctorParameters: () => [] });
|
|
306
|
+
}], ctorParameters: () => [], propDecorators: { textareaRef: [{ type: i0.ViewChild, args: ['textarea', { isSignal: true }] }], sdViewDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdViewDefDirective), { isSignal: true }] }], sdLabelDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdLabelDefDirective), { isSignal: true }] }], sdSuffixDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SdSuffixDefDirective), { isSignal: true }] }], autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], helperText: [{ type: i0.Input, args: [{ isSignal: true, alias: "helperText", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], hideInlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideInlineError", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], viewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewed", required: false }] }], autoHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHeight", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], validator: [{ type: i0.Input, args: [{ isSignal: true, alias: "validator", required: false }] }], inlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineError", required: false }] }], appearanceInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], floatLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatLabel", required: false }] }], valueModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }, { type: i0.Output, args: ["modelChange"] }], sdChange: [{ type: i0.Output, args: ["sdChange"] }] } });
|
|
294
307
|
|
|
295
308
|
/**
|
|
296
309
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdcorejs-angular-forms-textarea.mjs","sources":["../../../projects/sdcorejs-angular/forms/textarea/src/textarea.component.ts","../../../projects/sdcorejs-angular/forms/textarea/src/textarea.component.html","../../../projects/sdcorejs-angular/forms/textarea/sdcorejs-angular-forms-textarea.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @angular-eslint/no-input-rename */\nimport { CommonModule } from '@angular/common';\nimport {\n AfterViewInit,\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n input,\n model,\n computed,\n effect,\n untracked,\n OnDestroy,\n OnInit,\n output,\n viewChild,\n contentChild\n} from '@angular/core';\nimport {\n AbstractControl,\n AsyncValidatorFn,\n FormGroup,\n FormsModule,\n NgForm,\n ReactiveFormsModule,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport { FloatLabelType, MatFormFieldAppearance, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { SdLabelDefDirective, SdSuffixDefDirective, SdViewDefDirective } from '@sdcorejs/angular/forms/directives';\nimport { ISdFormConfiguration, SD_FORM_CONFIGURATION, SdCustomValidator, SdFormControl, sdFormControlState, SdInlineErrorValidator } from '@sdcorejs/angular/forms/models';\nimport { sdSerializeDataValue, sdIsEmpty } from '@sdcorejs/angular/utilities/data-state';\nimport { Size } from '@sdcorejs/utils/models';\nimport { NumberUtilities } from '@sdcorejs/angular/utilities/extensions';\nimport { Subscription } from 'rxjs';\nimport * as uuid from 'uuid';\nimport { SdLabel } from '@sdcorejs/angular/forms/label';\nimport { I18nService, TranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdEmptyPipe } from '@sdcorejs/angular/pipes';\n\n@Component({\n selector: 'sd-textarea',\n templateUrl: './textarea.component.html',\n styleUrls: ['./textarea.component.scss'],\n standalone: true,\n host: { '[class.sd-has-label]': '!!label()', '[class.sd-viewed]': 'viewed()' },\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n MatInputModule,\n MatIconModule,\n MatTooltipModule,\n SdLabel,\n SdEmptyPipe,\n TranslatePipe,\n ],\n})\nexport class SdTextarea implements OnInit, AfterViewInit, OnDestroy {\n id = `I${uuid.v4()}`;\n\n // ==========================================\n // 1. SIGNAL QUERIES\n // ==========================================\n textareaRef = viewChild<ElementRef<HTMLTextAreaElement>>('textarea');\n sdViewDef = contentChild(SdViewDefDirective);\n sdLabelDef = contentChild(SdLabelDefDirective);\n sdSuffixDef = contentChild(SdSuffixDefDirective);\n\n // ==========================================\n // 2. INJECTS\n // ==========================================\n #ref = inject(ChangeDetectorRef);\n #formConfiguration = inject(SD_FORM_CONFIGURATION, { optional: true });\n readonly #i18n = inject(I18nService);\n\n // ==========================================\n // 3. SIGNAL INPUTS & MODEL\n // ==========================================\n autoIdInput = input<string | undefined | null>(undefined, { alias: 'autoId' });\n autoId = computed(() => this.autoIdInput() ? `forms-textarea-${this.autoIdInput()}` : undefined);\n\n readonly #state = sdFormControlState(computed(() => this.formControl));\n readonly dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));\n readonly dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'));\n readonly dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));\n readonly dataValue = computed(() => sdSerializeDataValue(this.#state().value));\n\n readonly dataRequired = computed(() => (this.required() ? 'true' : 'false'));\n readonly dataMaxLength = computed(() => {\n const v = this.maxlength();\n return v == null ? null : String(v);\n });\n readonly dataPattern = computed(() => {\n const v = this.pattern();\n return v == null || v === '' ? null : String(v);\n });\n readonly dataErrorMessage = computed(() => {\n void this.#state();\n const msg = this.errorMessage();\n return msg && msg.length > 0 ? msg : null;\n });\n\n name = input<string>(uuid.v4());\n\n size = input<Size>('md');\n // Ghi (TransformT): any (để không bị lỗi typing khi cha truyền vào)\n form = input<FormGroup | undefined, any>(undefined, {\n transform: (val: any): FormGroup | undefined => {\n if (!val) return undefined;\n // Nếu cha truyền vào NgForm (template-driven) -> Bóc lấy FormGroup bên trong\n if (val instanceof NgForm) return val.form;\n // Nếu cha truyền sẵn FormGroup (reactive) -> Lấy luôn\n if (val instanceof FormGroup) return val;\n // Fallback an toàn phòng trường hợp cha truyền 1 object chứa form\n if (val?.form instanceof FormGroup) return val.form;\n return undefined;\n },\n });\n label = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n helperText = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n placeholder = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n rows = input<number>(5);\n \n hideInlineError = input(false, { transform: booleanAttribute });\n required = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n viewed = input(false, { transform: booleanAttribute });\n autoHeight = input(false, { transform: booleanAttribute });\n\n maxlength = input<number | null, unknown>(null, { \n transform: (v) => (v != null && NumberUtilities.isPositiveInteger(Number(v))) ? Number(v) : null \n });\n \n pattern = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n validator = input<SdCustomValidator | undefined>();\n inlineError = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n\n /**\n * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.\n */\n readonly errorMessage = computed<string | undefined>(() => {\n void this.#state();\n const errors = this.formControl.errors;\n if (!errors) return undefined;\n\n if (errors['required']) return this.#i18n.t('core.form.textarea.required');\n if (errors['maxlength']) return this.#i18n.t('core.form.textarea.maxlength', { max: this.maxlength() ?? '' });\n if (errors['pattern']) return this.#i18n.t('core.form.textarea.invalid-pattern');\n if (errors['customValidator']) return errors['customValidator'] as string;\n if (errors['inlineError']) return this.inlineError();\n return undefined;\n });\n\n appearanceInput = input<MatFormFieldAppearance | undefined>(undefined, { alias: 'appearance' });\n appearance = computed(() => this.appearanceInput() ?? this.#formConfiguration?.appearance ?? 'outline');\n\n floatLabel = input<FloatLabelType>('auto');\n\n valueModel = model<any>(undefined, { alias: 'model' });\n\n // ==========================================\n // 4. SIGNAL OUTPUTS\n // ==========================================\n sdChange = output<any>();\n\n // ==========================================\n // 5. INTERNAL STATE & STREAMS\n // ==========================================\n formControl = new SdFormControl();\n #subscription = new Subscription();\n isFocused = false;\n\n constructor() {\n // EFFECT 1: Sync model thay đổi từ bên ngoài\n effect(() => {\n const val = this.valueModel();\n untracked(() => {\n if (this.formControl.value !== val) {\n this.formControl.setValue(val, { emitEvent: false });\n // [IMPROVE] Cập nhật chiều cao khi value đổi từ bên ngoài\n if (this.autoHeight()) this.#adjustHeight();\n }\n });\n });\n\n // EFFECT 2: Sync Disable\n effect(() => {\n if (this.disabled()) this.formControl.disable({ emitEvent: false });\n else this.formControl.enable({ emitEvent: false });\n });\n\n // EFFECT 3: Update Validators\n effect(() => {\n const req = this.required();\n const maxLen = this.maxlength();\n const pat = this.pattern();\n const val = this.validator();\n const inl = this.inlineError();\n\n untracked(() => this.#updateValidator(req, maxLen, pat, val, inl));\n });\n }\n\n ngOnInit() {\n this.#subscription.add(this.formControl.sdChanges.subscribe(() => this.#ref.markForCheck()));\n this.#subscription.add(this.formControl.valueChanges.subscribe(this.#onChange));\n\n const formGroup = this.form();\n formGroup?.addControl(this.name(), this.formControl);\n }\n\n ngAfterViewInit() {\n if (this.autoHeight()) {\n setTimeout(() => this.#adjustHeight(), 0);\n }\n }\n\n ngOnDestroy() {\n const formGroup = this.form();\n formGroup?.removeControl(this.name());\n this.#subscription.unsubscribe();\n }\n\n // Hàm private tính toán chiều cao mượt mà\n #adjustHeight() {\n const el = this.textareaRef()?.nativeElement;\n if (el) {\n el.style.height = 'auto';\n el.style.overflowY = 'hidden';\n el.style.height = `${el.scrollHeight}px`;\n }\n }\n\n onFocus = () => {\n this.isFocused = true;\n };\n\n onBlur = () => {\n this.isFocused = false;\n const val: string = (this.formControl.value ?? '').toString();\n if (val.length > val.trim().length) {\n this.formControl.setValue(val.trim());\n }\n };\n\n onClick = () => {\n if (this.sdViewDef()?.templateRef) {\n if (!this.formControl.disabled && !this.isFocused) {\n this.focus();\n }\n }\n };\n\n blur = () => {\n this.textareaRef()?.nativeElement?.blur();\n };\n\n focus = () => {\n this.isFocused = true;\n setTimeout(() => {\n this.textareaRef()?.nativeElement?.focus();\n }, 100);\n };\n\n #onChange = (value: any) => {\n if (this.autoHeight()) {\n this.#adjustHeight();\n }\n this.valueModel.set(value);\n this.sdChange.emit(value);\n };\n\n #updateValidator = (\n req: boolean, maxLen: number | null, pat: string | undefined, \n val: SdCustomValidator | undefined, inl: string | undefined\n ) => {\n this.formControl.clearValidators();\n this.formControl.clearAsyncValidators();\n const validators: ValidatorFn[] = [];\n const asyncValidators: AsyncValidatorFn[] = [];\n\n if (req) validators.push(Validators.required);\n if (maxLen != null) validators.push(Validators.maxLength(maxLen));\n if (pat) validators.push(Validators.pattern(pat));\n if (val) asyncValidators.push(this.#customValidator(val));\n if (inl) validators.push(SdInlineErrorValidator);\n\n this.formControl.setValidators(validators.length ? validators : null);\n this.formControl.setAsyncValidators(asyncValidators.length ? asyncValidators : null);\n this.formControl.updateValueAndValidity({ emitEvent: false });\n };\n\n getCurrentLength = (): number => {\n return (this.formControl.value ?? '').toString().length;\n };\n\n isMaxlengthExceeded = (): boolean => {\n const max = this.maxlength();\n return !!(max && max > 0 && this.getCurrentLength() > max);\n };\n\n #customValidator = (func: (value: any) => string | Promise<string>): AsyncValidatorFn => {\n return async (c: AbstractControl): Promise<Record<string, any> | null> => {\n const value = c.value || null;\n if (func && typeof func === 'function') {\n const result = func(value);\n if (result instanceof Promise) {\n const message = await result;\n if (message) return { customValidator: message };\n return null;\n }\n if (result) return { customValidator: result };\n return null;\n }\n return null;\n };\n };\n}","@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _errorMessage = errorMessage();\n@let _viewDef = sdViewDef();\n@let _labelDef = sdLabelDef();\n@let _helperText = helperText();\n@let _required = required();\n@let _maxLength = maxlength();\n\n@if (viewed()) {\n @if (_labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n } @else if (_label) {\n <div class=\"T14R text-black400\">{{ _label }}</div>\n }\n <div class=\"T14M\">{{ formControl.value | sdEmpty }}</div>\n} @else {\n @if (!_appearance && _labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n }\n @if (!_appearance && _label && !_labelDef?.templateRef) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n\n <div\n class=\"d-flex align-items-center sd-textarea-container\"\n [class.sd-view]=\"_viewDef?.templateRef\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\"\n aria-hidden=\"true\">\n @if (_viewDef?.templateRef && !isFocused) {\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"> </ng-container>\n } @else {\n <div class=\"sd-textarea-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label style=\"display: inline-block\">\n <div style=\"display: flex; align-items: center; gap: 4px\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <mat-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"above\">info_outline</mat-icon>\n }\n </div>\n </mat-label>\n }\n\n <textarea\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n [formControl]=\"formControl\"\n [required]=\"_required\"\n autocomplete=\"off\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [rows]=\"rows()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n spellcheck=\"false\"\n #textarea>\n </textarea>\n\n @if (_hideInlineError && _errorMessage && formControl.touched) {\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\"> error </mat-icon>\n }\n\n @if (!_hideInlineError && _errorMessage && formControl.touched) {\n <mat-error>{{ _errorMessage }}</mat-error>\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength !== null && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.textarea.exceeded' | translate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;MAgEa,UAAU,CAAA;AACrB,IAAA,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAC,EAAE,EAAE,EAAE;;;;AAKpB,IAAA,WAAW,GAAG,SAAS,CAAkC,UAAU,CAAC;AACpE,IAAA,SAAS,GAAG,YAAY,CAAC,kBAAkB,CAAC;AAC5C,IAAA,UAAU,GAAG,YAAY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S;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,UAAA,EAGX,IAAI,EAAA,IAAA,EACV,EAAE,sBAAsB,EAAE,WAAW,EAAE,mBAAmB,EAAE,UAAU,EAAE,EAAA,OAAA,EACrE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,kBAAkB;wBAClB,cAAc;wBACd,aAAa;wBACb,gBAAgB;wBAChB,OAAO;wBACP,WAAW;wBACX,aAAa;AACd,qBAAA,EAAA,QAAA,EAAA,imIAAA,EAAA,MAAA,EAAA,CAAA,o8KAAA,CAAA,EAAA;;;AE/DH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sdcorejs-angular-forms-textarea.mjs","sources":["../../../projects/sdcorejs-angular/forms/textarea/src/textarea.component.ts","../../../projects/sdcorejs-angular/forms/textarea/src/textarea.component.html","../../../projects/sdcorejs-angular/forms/textarea/sdcorejs-angular-forms-textarea.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @angular-eslint/no-input-rename */\nimport { CommonModule } from '@angular/common';\nimport {\n AfterViewInit,\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n ElementRef,\n inject,\n input,\n model,\n computed,\n effect,\n untracked,\n OnDestroy,\n OnInit,\n output,\n viewChild,\n contentChild\n} from '@angular/core';\nimport {\n AbstractControl,\n AsyncValidatorFn,\n FormGroup,\n FormsModule,\n NgForm,\n ReactiveFormsModule,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport { FloatLabelType, MatFormFieldAppearance, MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { SdLabelDefDirective, SdSuffixDefDirective, SdViewDefDirective } from '@sdcorejs/angular/forms/directives';\nimport { ISdFormConfiguration, SD_FORM_CONFIGURATION, SdCustomValidator, SdFormControl, sdFormControlState, SdInlineErrorValidator } from '@sdcorejs/angular/forms/models';\nimport { sdSerializeDataValue, sdIsEmpty } from '@sdcorejs/angular/utilities/data-state';\nimport { Size } from '@sdcorejs/utils/models';\nimport { NumberUtilities } from '@sdcorejs/angular/utilities/extensions';\nimport { Subscription } from 'rxjs';\nimport * as uuid from 'uuid';\nimport { SdLabel } from '@sdcorejs/angular/forms/label';\nimport { I18nService, TranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdEmptyPipe } from '@sdcorejs/angular/pipes';\n\n@Component({\n selector: 'sd-textarea',\n templateUrl: './textarea.component.html',\n styleUrls: ['./textarea.component.scss'],\n standalone: true,\n host: { '[class.sd-has-label]': '!!label()', '[class.sd-viewed]': 'viewed()' },\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n MatInputModule,\n MatIconModule,\n MatTooltipModule,\n SdLabel,\n SdEmptyPipe,\n TranslatePipe,\n ],\n})\nexport class SdTextarea implements OnInit, AfterViewInit, OnDestroy {\n id = `I${uuid.v4()}`;\n\n // ==========================================\n // 1. SIGNAL QUERIES\n // ==========================================\n textareaRef = viewChild<ElementRef<HTMLTextAreaElement>>('textarea');\n sdViewDef = contentChild(SdViewDefDirective);\n sdLabelDef = contentChild(SdLabelDefDirective);\n sdSuffixDef = contentChild(SdSuffixDefDirective);\n\n // ==========================================\n // 2. INJECTS\n // ==========================================\n #ref = inject(ChangeDetectorRef);\n #formConfiguration = inject(SD_FORM_CONFIGURATION, { optional: true });\n readonly #i18n = inject(I18nService);\n\n // ==========================================\n // 3. SIGNAL INPUTS & MODEL\n // ==========================================\n autoIdInput = input<string | undefined | null>(undefined, { alias: 'autoId' });\n autoId = computed(() => this.autoIdInput() ? `forms-textarea-${this.autoIdInput()}` : undefined);\n\n readonly #state = sdFormControlState(computed(() => this.formControl));\n readonly dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'));\n readonly dataInvalid = computed(() => (this.#state().invalid ? 'true' : 'false'));\n readonly dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'));\n readonly dataValue = computed(() => sdSerializeDataValue(this.#state().value));\n\n readonly dataRequired = computed(() => (this.required() ? 'true' : 'false'));\n readonly dataMaxLength = computed(() => {\n const v = this.maxlength();\n return v == null ? null : String(v);\n });\n readonly dataPattern = computed(() => {\n const v = this.pattern();\n return v == null || v === '' ? null : String(v);\n });\n readonly dataErrorMessage = computed(() => {\n void this.#state();\n const msg = this.errorMessage();\n return msg && msg.length > 0 ? msg : null;\n });\n\n name = input<string>(uuid.v4());\n\n size = input<Size>('md');\n // Ghi (TransformT): any (để không bị lỗi typing khi cha truyền vào)\n form = input<FormGroup | undefined, any>(undefined, {\n transform: (val: any): FormGroup | undefined => {\n if (!val) return undefined;\n // Nếu cha truyền vào NgForm (template-driven) -> Bóc lấy FormGroup bên trong\n if (val instanceof NgForm) return val.form;\n // Nếu cha truyền sẵn FormGroup (reactive) -> Lấy luôn\n if (val instanceof FormGroup) return val;\n // Fallback an toàn phòng trường hợp cha truyền 1 object chứa form\n if (val?.form instanceof FormGroup) return val.form;\n return undefined;\n },\n });\n label = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n helperText = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n placeholder = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n rows = input<number>(5);\n \n hideInlineError = input(false, { transform: booleanAttribute });\n required = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n viewed = input(false, { transform: booleanAttribute });\n autoHeight = input(false, { transform: booleanAttribute });\n\n maxlength = input<number | null, unknown>(null, { \n transform: (v) => (v != null && NumberUtilities.isPositiveInteger(Number(v))) ? Number(v) : null \n });\n \n pattern = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n validator = input<SdCustomValidator | undefined>();\n inlineError = input<string | undefined, string | undefined | null>(undefined, {\n transform: (v: string | undefined | null): string | undefined => v ?? undefined,\n });\n\n /**\n * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.\n */\n readonly errorMessage = computed<string | undefined>(() => {\n void this.#state();\n const errors = this.formControl.errors;\n if (!errors) return undefined;\n\n if (errors['required']) return this.#i18n.t('core.form.textarea.required');\n if (errors['maxlength']) return this.#i18n.t('core.form.textarea.maxlength', { max: this.maxlength() ?? '' });\n if (errors['pattern']) return this.#i18n.t('core.form.textarea.invalid-pattern');\n if (errors['customValidator']) return errors['customValidator'] as string;\n if (errors['inlineError']) return this.inlineError();\n return undefined;\n });\n\n appearanceInput = input<MatFormFieldAppearance | undefined>(undefined, { alias: 'appearance' });\n appearance = computed(() => this.appearanceInput() ?? this.#formConfiguration?.appearance ?? 'outline');\n\n floatLabel = input<FloatLabelType>('auto');\n\n valueModel = model<any>(undefined, { alias: 'model' });\n\n // ==========================================\n // 4. SIGNAL OUTPUTS\n // ==========================================\n sdChange = output<any>();\n\n // ==========================================\n // 5. INTERNAL STATE & STREAMS\n // ==========================================\n formControl = new SdFormControl();\n #subscription = new Subscription();\n isFocused = false;\n\n constructor() {\n // EFFECT 1: Sync model thay đổi từ bên ngoài\n effect(() => {\n const val = this.valueModel();\n untracked(() => {\n if (this.formControl.value !== val) {\n this.formControl.setValue(val, { emitEvent: false });\n // [IMPROVE] Cập nhật chiều cao khi value đổi từ bên ngoài\n if (this.autoHeight()) this.#adjustHeight();\n }\n });\n });\n\n // EFFECT 2: Sync Disable\n effect(() => {\n if (this.disabled()) this.formControl.disable({ emitEvent: false });\n else this.formControl.enable({ emitEvent: false });\n });\n\n // EFFECT 3: Update Validators\n effect(() => {\n const req = this.required();\n const maxLen = this.maxlength();\n const pat = this.pattern();\n const val = this.validator();\n const inl = this.inlineError();\n\n untracked(() => this.#updateValidator(req, maxLen, pat, val, inl));\n });\n }\n\n ngOnInit() {\n this.#subscription.add(this.formControl.sdChanges.subscribe(() => this.#ref.markForCheck()));\n this.#subscription.add(this.formControl.valueChanges.subscribe(this.#onChange));\n\n const formGroup = this.form();\n formGroup?.addControl(this.name(), this.formControl);\n }\n\n ngAfterViewInit() {\n if (this.autoHeight()) {\n setTimeout(() => this.#adjustHeight(), 0);\n }\n }\n\n ngOnDestroy() {\n const formGroup = this.form();\n formGroup?.removeControl(this.name());\n this.#subscription.unsubscribe();\n }\n\n // Hàm private tính toán chiều cao mượt mà\n #adjustHeight() {\n const el = this.textareaRef()?.nativeElement;\n if (el) {\n el.style.height = 'auto';\n el.style.overflowY = 'hidden';\n el.style.height = `${el.scrollHeight}px`;\n }\n }\n\n onFocus = () => {\n this.isFocused = true;\n };\n\n onBlur = () => {\n this.isFocused = false;\n const val: string = (this.formControl.value ?? '').toString();\n if (val.length > val.trim().length) {\n this.formControl.setValue(val.trim());\n }\n };\n\n onClick = () => {\n if (this.sdViewDef()?.templateRef) {\n if (!this.formControl.disabled && !this.isFocused) {\n this.focus();\n }\n }\n };\n\n blur = () => {\n this.textareaRef()?.nativeElement?.blur();\n };\n\n focus = () => {\n this.isFocused = true;\n setTimeout(() => {\n this.textareaRef()?.nativeElement?.focus();\n }, 100);\n };\n\n #onChange = (value: any) => {\n if (this.autoHeight()) {\n this.#adjustHeight();\n }\n this.valueModel.set(value);\n this.sdChange.emit(value);\n };\n\n #updateValidator = (\n req: boolean, maxLen: number | null, pat: string | undefined, \n val: SdCustomValidator | undefined, inl: string | undefined\n ) => {\n this.formControl.clearValidators();\n this.formControl.clearAsyncValidators();\n const validators: ValidatorFn[] = [];\n const asyncValidators: AsyncValidatorFn[] = [];\n\n if (req) validators.push(Validators.required);\n if (maxLen != null) validators.push(Validators.maxLength(maxLen));\n if (pat) validators.push(Validators.pattern(pat));\n if (val) asyncValidators.push(this.#customValidator(val));\n if (inl) validators.push(SdInlineErrorValidator);\n\n this.formControl.setValidators(validators.length ? validators : null);\n this.formControl.setAsyncValidators(asyncValidators.length ? asyncValidators : null);\n this.formControl.updateValueAndValidity({ emitEvent: false });\n };\n\n getCurrentLength = (): number => {\n return (this.formControl.value ?? '').toString().length;\n };\n\n isMaxlengthExceeded = (): boolean => {\n const max = this.maxlength();\n return !!(max && max > 0 && this.getCurrentLength() > max);\n };\n\n #customValidator = (func: (value: any) => string | Promise<string>): AsyncValidatorFn => {\n return async (c: AbstractControl): Promise<Record<string, any> | null> => {\n const value = c.value || null;\n if (func && typeof func === 'function') {\n const result = func(value);\n if (result instanceof Promise) {\n const message = await result;\n if (message) return { customValidator: message };\n return null;\n }\n if (result) return { customValidator: result };\n return null;\n }\n return null;\n };\n };\n}","@let _label = label();\n@let _appearance = appearance();\n@let _hideInlineError = hideInlineError();\n@let _errorMessage = errorMessage();\n@let _viewDef = sdViewDef();\n@let _labelDef = sdLabelDef();\n@let _helperText = helperText();\n@let _required = required();\n@let _maxLength = maxlength();\n\n@if (viewed()) {\n @if (_labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n } @else if (_label) {\n <div class=\"T14R text-black400\">{{ _label }}</div>\n }\n <div class=\"T14M\">{{ formControl.value | sdEmpty }}</div>\n} @else {\n @if (!_appearance && _labelDef?.templateRef) {\n <ng-container *ngTemplateOutlet=\"_labelDef!.templateRef\"> </ng-container>\n }\n @if (!_appearance && _label && !_labelDef?.templateRef) {\n <sd-label [label]=\"_label\" [required]=\"_required\"></sd-label>\n }\n\n <div\n class=\"d-flex align-items-center sd-textarea-container\"\n [class.sd-view]=\"_viewDef?.templateRef\"\n [class.c-focused]=\"isFocused\"\n [class.c-disabled]=\"formControl.disabled\"\n (click)=\"onClick()\"\n aria-hidden=\"true\">\n @if (_viewDef?.templateRef && !isFocused) {\n <ng-container *ngTemplateOutlet=\"_viewDef!.templateRef; context: { value: formControl.value }\"> </ng-container>\n } @else {\n <div class=\"sd-textarea-field-wrap\">\n <mat-form-field\n [class.sd-md]=\"size() === 'md'\"\n [class.sd-sm]=\"size() === 'sm'\"\n [class.hide-inline-error]=\"_hideInlineError\"\n [appearance]=\"_appearance!\"\n [floatLabel]=\"floatLabel()\">\n @if (_appearance && _label) {\n <mat-label style=\"display: inline-block\">\n <div style=\"display: flex; align-items: center; gap: 4px\">\n <span>{{ _label }}</span>\n @if (_helperText) {\n <mat-icon [matTooltip]=\"_helperText\" matTooltipPosition=\"above\">info_outline</mat-icon>\n }\n </div>\n </mat-label>\n }\n\n <textarea\n matInput\n [placeholder]=\"placeholder() || _label || ''\"\n [formControl]=\"formControl\"\n [required]=\"_required\"\n autocomplete=\"off\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [rows]=\"rows()\"\n [attr.data-autoId]=\"autoId()\"\n [attr.data-disabled]=\"dataDisabled()\"\n [attr.data-invalid]=\"dataInvalid()\"\n [attr.data-empty]=\"dataEmpty()\"\n [attr.data-value]=\"dataValue()\"\n [attr.data-required]=\"dataRequired()\"\n [attr.data-maxlength]=\"dataMaxLength()\"\n [attr.data-pattern]=\"dataPattern()\"\n [attr.data-error-message]=\"dataErrorMessage()\"\n spellcheck=\"false\"\n #textarea>\n </textarea>\n\n @if (_hideInlineError && _errorMessage && formControl.touched) {\n <mat-icon matSuffix class=\"sd-error-icon\" [matTooltip]=\"_errorMessage\" matTooltipPosition=\"above\"> error </mat-icon>\n }\n\n @if (!_hideInlineError && _errorMessage && formControl.touched) {\n <mat-error>{{ _errorMessage }}</mat-error>\n }\n\n @if (sdSuffixDef()?.templateRef; as suffixRef) {\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"suffixRef\"></ng-container>\n </ng-container>\n }\n <!-- <ng-container matSuffix>\n <ng-content select=\"[sdSuffix]\"></ng-content>\n </ng-container> -->\n </mat-form-field>\n\n @if (_maxLength !== null && !_hideInlineError && !formControl.disabled) {\n <div\n class=\"sd-maxlength-counter\"\n [class.sd-maxlength-counter--visible]=\"isFocused\"\n [class.sd-maxlength-counter--exceeded]=\"isMaxlengthExceeded()\"\n [attr.title]=\"isMaxlengthExceeded() ? ('core.form.textarea.exceeded' | translate) : null\">\n {{ getCurrentLength() }}/{{ _maxLength }}\n </div>\n }\n </div>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;MAgEa,UAAU,CAAA;AACrB,IAAA,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAC,EAAE,EAAE,EAAE;;;;AAKpB,IAAA,WAAW,GAAG,SAAS,CAAkC,UAAU,uDAAC;AACpE,IAAA,SAAS,GAAG,YAAY,CAAC,kBAAkB,qDAAC;AAC5C,IAAA,UAAU,GAAG,YAAY,CAAC,mBAAmB,sDAAC;AAC9C,IAAA,WAAW,GAAG,YAAY,CAAC,oBAAoB,uDAAC;;;;AAKhD,IAAA,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAChC,kBAAkB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC7D,IAAA,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC;;;;AAKpC,IAAA,WAAW,GAAG,KAAK,CAA4B,SAAS,+CAAI,KAAK,EAAE,QAAQ,EAAA,CAAA,GAAA,CAAjB,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAC;IAC9E,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,GAAG,CAAA,eAAA,EAAkB,IAAI,CAAC,WAAW,EAAE,CAAA,CAAE,GAAG,SAAS,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAC;AAEvF,IAAA,MAAM,GAAG,kBAAkB,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7D,YAAY,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAA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{ NgModule } from '@angular/core';
|
|
27
27
|
|
|
28
28
|
class SdFormsModule {
|
|
29
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
31
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
30
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: SdFormsModule, imports: [SdInput, SdInputNumber, SdDate, SdDateRange, SdSelect, SdAutocomplete, SdRadio, SdTextarea], exports: [SdInput, SdInputNumber, SdDate, SdDateRange, SdSelect, SdAutocomplete, SdRadio, SdTextarea] });
|
|
31
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdFormsModule, imports: [SdInput, SdInputNumber, SdDate, SdDateRange, SdSelect, SdAutocomplete, SdRadio, SdTextarea] });
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdFormsModule, decorators: [{
|
|
34
34
|
type: NgModule,
|
|
35
35
|
args: [{
|
|
36
36
|
imports: [SdInput, SdInputNumber, SdDate, SdDateRange, SdSelect, SdAutocomplete, SdRadio, SdTextarea],
|
|
@@ -52,10 +52,10 @@ class SdGlobalErrorHandler {
|
|
|
52
52
|
}
|
|
53
53
|
return '';
|
|
54
54
|
};
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdGlobalErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
56
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdGlobalErrorHandler });
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdGlobalErrorHandler, decorators: [{
|
|
59
59
|
type: Injectable
|
|
60
60
|
}], ctorParameters: () => [] });
|
|
61
61
|
|