@i-cell/ids-angular 0.1.13 → 0.2.0
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/accordion/index.d.ts +81 -5
- package/avatar/index.d.ts +66 -5
- package/badge/index.d.ts +61 -5
- package/breadcrumb/index.d.ts +67 -5
- package/button/index.d.ts +81 -5
- package/card/index.d.ts +91 -5
- package/checkbox/index.d.ts +137 -5
- package/chip/index.d.ts +82 -5
- package/core/index.d.ts +168 -5
- package/datepicker/index.d.ts +112 -5
- package/dialog/index.d.ts +66 -5
- package/divider/index.d.ts +45 -5
- package/fesm2022/i-cell-ids-angular-accordion.mjs +32 -32
- package/fesm2022/i-cell-ids-angular-accordion.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-avatar.mjs +19 -19
- package/fesm2022/i-cell-ids-angular-avatar.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-badge.mjs +25 -25
- package/fesm2022/i-cell-ids-angular-badge.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-breadcrumb.mjs +41 -41
- package/fesm2022/i-cell-ids-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-button.mjs +18 -18
- package/fesm2022/i-cell-ids-angular-button.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-card.mjs +36 -36
- package/fesm2022/i-cell-ids-angular-card.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-checkbox.mjs +44 -44
- package/fesm2022/i-cell-ids-angular-checkbox.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-chip.mjs +28 -28
- package/fesm2022/i-cell-ids-angular-chip.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-core.mjs +17 -17
- package/fesm2022/i-cell-ids-angular-core.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-datepicker.mjs +66 -66
- package/fesm2022/i-cell-ids-angular-datepicker.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-dialog.mjs +22 -22
- package/fesm2022/i-cell-ids-angular-dialog.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-divider.mjs +13 -13
- package/fesm2022/i-cell-ids-angular-divider.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-forms.mjs +156 -156
- package/fesm2022/i-cell-ids-angular-forms.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-icon-button.mjs +13 -13
- package/fesm2022/i-cell-ids-angular-icon-button.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-icon.mjs +16 -17
- package/fesm2022/i-cell-ids-angular-icon.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-menu.mjs +19 -19
- package/fesm2022/i-cell-ids-angular-menu.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-notification.mjs +27 -27
- package/fesm2022/i-cell-ids-angular-notification.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-overlay-panel.mjs +9 -9
- package/fesm2022/i-cell-ids-angular-overlay-panel.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-paginator.mjs +34 -34
- package/fesm2022/i-cell-ids-angular-paginator.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-radio.mjs +30 -30
- package/fesm2022/i-cell-ids-angular-radio.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-segmented-control-toggle.mjs +31 -31
- package/fesm2022/i-cell-ids-angular-segmented-control-toggle.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-segmented-control.mjs +32 -32
- package/fesm2022/i-cell-ids-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-select.mjs +29 -29
- package/fesm2022/i-cell-ids-angular-select.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-side-sheet.mjs +27 -27
- package/fesm2022/i-cell-ids-angular-side-sheet.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-snackbar.mjs +29 -29
- package/fesm2022/i-cell-ids-angular-snackbar.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-spinner.mjs +10 -10
- package/fesm2022/i-cell-ids-angular-spinner.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-switch.mjs +35 -35
- package/fesm2022/i-cell-ids-angular-switch.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-tab.mjs +27 -27
- package/fesm2022/i-cell-ids-angular-tab.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-table.mjs +79 -79
- package/fesm2022/i-cell-ids-angular-table.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-tag.mjs +18 -18
- package/fesm2022/i-cell-ids-angular-tag.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-tooltip.mjs +30 -31
- package/fesm2022/i-cell-ids-angular-tooltip.mjs.map +1 -1
- package/forms/index.d.ts +468 -3
- package/icon/index.d.ts +69 -5
- package/icon-button/index.d.ts +66 -5
- package/index.d.ts +2 -5
- package/menu/index.d.ts +68 -5
- package/notification/index.d.ts +68 -5
- package/overlay-panel/index.d.ts +41 -5
- package/package.json +5 -5
- package/paginator/index.d.ts +122 -5
- package/radio/index.d.ts +95 -5
- package/segmented-control/index.d.ts +98 -5
- package/segmented-control-toggle/index.d.ts +103 -5
- package/select/index.d.ts +103 -5
- package/side-sheet/index.d.ts +84 -5
- package/snackbar/index.d.ts +149 -5
- package/spinner/index.d.ts +41 -5
- package/switch/index.d.ts +89 -5
- package/tab/index.d.ts +78 -5
- package/table/index.d.ts +390 -3
- package/tag/index.d.ts +70 -5
- package/tooltip/index.d.ts +96 -5
- package/accordion/accordion-animations.d.ts +0 -1
- package/accordion/accordion-defaults.d.ts +0 -18
- package/accordion/accordion-item/accordion-item.component.d.ts +0 -27
- package/accordion/accordion.component.d.ts +0 -29
- package/accordion/public-api.d.ts +0 -5
- package/accordion/types/accordion-appearance.type.d.ts +0 -5
- package/avatar/avatar-defaults.d.ts +0 -12
- package/avatar/avatar-image.directive.d.ts +0 -5
- package/avatar/avatar.component.d.ts +0 -28
- package/avatar/public-api.d.ts +0 -6
- package/avatar/tokens/avatar-parent.d.ts +0 -6
- package/avatar/types/avatar-type.type.d.ts +0 -6
- package/avatar/types/avatar-variant.type.d.ts +0 -8
- package/badge/badge-defaults.d.ts +0 -13
- package/badge/badge-limit.pipe.d.ts +0 -7
- package/badge/badge.component.d.ts +0 -17
- package/badge/badge.directive.d.ts +0 -25
- package/badge/public-api.d.ts +0 -5
- package/badge/types/badge-appearance.type.d.ts +0 -4
- package/badge/types/badge-variant.type.d.ts +0 -12
- package/breadcrumb/breadcrumb-defaults.d.ts +0 -17
- package/breadcrumb/breadcrumb.component.d.ts +0 -35
- package/breadcrumb/libs/breadcrumb-divider.component.d.ts +0 -13
- package/breadcrumb/libs/breadcrumb-link.directive.d.ts +0 -10
- package/breadcrumb/libs/breadcrumb-list.directive.d.ts +0 -5
- package/breadcrumb/libs/breadcrumb-page.directive.d.ts +0 -5
- package/breadcrumb/libs/breadcrumb-truncation.component.d.ts +0 -15
- package/breadcrumb/public-api.d.ts +0 -5
- package/breadcrumb/types/breadcrumb-divider.type.d.ts +0 -5
- package/breadcrumb/types/breadcrumb-hierarchy.type.d.ts +0 -5
- package/breadcrumb/types/breadcrumb-variant.type.d.ts +0 -6
- package/button/button-defaults.d.ts +0 -11
- package/button/button-group-defaults.d.ts +0 -7
- package/button/button-group.component.d.ts +0 -11
- package/button/button.component.d.ts +0 -29
- package/button/public-api.d.ts +0 -7
- package/button/tokens/button-parent.d.ts +0 -6
- package/button/types/button-appearance.type.d.ts +0 -6
- package/button/types/button-variant.type.d.ts +0 -14
- package/card/card-body.directive.d.ts +0 -6
- package/card/card-defaults.d.ts +0 -12
- package/card/card-footer.directive.d.ts +0 -6
- package/card/card-header.component.d.ts +0 -6
- package/card/card-media.directive.d.ts +0 -7
- package/card/card-section-base.directive.d.ts +0 -9
- package/card/card-subtitle.directive.d.ts +0 -5
- package/card/card-title.directive.d.ts +0 -5
- package/card/card.component.d.ts +0 -21
- package/card/public-api.d.ts +0 -10
- package/card/types/card-appearances.type.d.ts +0 -6
- package/card/types/card-variant.type.d.ts +0 -13
- package/checkbox/checkbox-defaults.d.ts +0 -9
- package/checkbox/checkbox-group-defaults.d.ts +0 -9
- package/checkbox/checkbox-group.component.d.ts +0 -28
- package/checkbox/checkbox.component.d.ts +0 -70
- package/checkbox/public-api.d.ts +0 -7
- package/checkbox/types/checkbox-events.class.d.ts +0 -6
- package/checkbox/types/checkbox-group-child.d.ts +0 -8
- package/checkbox/types/checkbox-parent.d.ts +0 -8
- package/checkbox/types/checkbox-state.type.d.ts +0 -6
- package/checkbox/types/checkbox-variant.type.d.ts +0 -6
- package/chip/chip-defaults.d.ts +0 -12
- package/chip/chip-group-defaults.d.ts +0 -9
- package/chip/chip-group.component.d.ts +0 -14
- package/chip/chip.component.d.ts +0 -35
- package/chip/public-api.d.ts +0 -7
- package/chip/types/chip-appearance.type.d.ts +0 -5
- package/chip/types/chip-events.type.d.ts +0 -4
- package/chip/types/chip-variant.type.d.ts +0 -8
- package/core/base-classes/component-base.d.ts +0 -13
- package/core/base-classes/directive-base.d.ts +0 -16
- package/core/directives/detect-scrollable.directive.d.ts +0 -11
- package/core/pipes/sentence-case.pipe.d.ts +0 -7
- package/core/public-api.d.ts +0 -17
- package/core/services/resize-observer.service.d.ts +0 -13
- package/core/types/orientation.type.d.ts +0 -5
- package/core/types/position.type.d.ts +0 -39
- package/core/types/size-collection.type.d.ts +0 -5
- package/core/types/size.type.d.ts +0 -7
- package/core/utils/class-prefix.d.ts +0 -2
- package/core/utils/class.d.ts +0 -2
- package/core/utils/coercion.d.ts +0 -6
- package/core/utils/compare.d.ts +0 -1
- package/core/utils/date.d.ts +0 -25
- package/core/utils/fallback-value.d.ts +0 -1
- package/core/utils/number.d.ts +0 -4
- package/core/utils/string.d.ts +0 -1
- package/datepicker/calendar/calendar-page.d.ts +0 -26
- package/datepicker/calendar/calendar.component.d.ts +0 -40
- package/datepicker/datepicker-defaults.d.ts +0 -7
- package/datepicker/datepicker-intl.d.ts +0 -22
- package/datepicker/datepicker-positions.d.ts +0 -2
- package/datepicker/datepicker.directive.d.ts +0 -58
- package/datepicker/day-selector/day-selector.component.d.ts +0 -26
- package/datepicker/month-selector/month-selector.component.d.ts +0 -20
- package/datepicker/public-api.d.ts +0 -7
- package/datepicker/tokens/date-formatter.d.ts +0 -3
- package/datepicker/tokens/date-parser.d.ts +0 -3
- package/datepicker/tokens/datepicker-view.d.ts +0 -6
- package/datepicker/trigger/datepicker-trigger.component.d.ts +0 -12
- package/datepicker/year-selector/year-selector.component.d.ts +0 -20
- package/dialog/custom-dialog-base.d.ts +0 -15
- package/dialog/dialog-defaults.d.ts +0 -9
- package/dialog/dialog-header.directive.d.ts +0 -7
- package/dialog/dialog.component.d.ts +0 -22
- package/dialog/dialog.service.d.ts +0 -17
- package/dialog/public-api.d.ts +0 -5
- package/divider/divider-defaults.d.ts +0 -12
- package/divider/divider.component.d.ts +0 -18
- package/divider/public-api.d.ts +0 -3
- package/divider/types/divider-variant.type.d.ts +0 -13
- package/forms/common/error/error-state.d.ts +0 -23
- package/forms/common/success/success-state.d.ts +0 -23
- package/forms/components/fieldset/fieldset-defaults.d.ts +0 -9
- package/forms/components/fieldset/fieldset-message.directive.d.ts +0 -5
- package/forms/components/fieldset/fieldset-row/fieldset-row.component.d.ts +0 -8
- package/forms/components/fieldset/fieldset.component.d.ts +0 -16
- package/forms/components/form-field/form-field-control.d.ts +0 -44
- package/forms/components/form-field/form-field-defaults.d.ts +0 -9
- package/forms/components/form-field/form-field.component.d.ts +0 -41
- package/forms/components/form-field/tokens/form-field-control.d.ts +0 -3
- package/forms/components/form-field/types/form-field-variant.type.d.ts +0 -5
- package/forms/components/input/input-defaults.d.ts +0 -9
- package/forms/components/input/input.directive.d.ts +0 -31
- package/forms/components/input/types/input.type.d.ts +0 -1
- package/forms/components/message/error-message/error-definition.directive.d.ts +0 -49
- package/forms/components/message/error-message/error-message.component.d.ts +0 -20
- package/forms/components/message/hint-message/hint-message.component.d.ts +0 -10
- package/forms/components/message/message-defaults.d.ts +0 -9
- package/forms/components/message/success-message/success-message.component.d.ts +0 -11
- package/forms/components/message/types/error-message-mapping.d.ts +0 -9
- package/forms/components/message/types/message-parent-form-field.d.ts +0 -9
- package/forms/components/message/types/message-variant.type.d.ts +0 -6
- package/forms/components/message/types/message.type.d.ts +0 -6
- package/forms/components/option/option-group.component.d.ts +0 -13
- package/forms/components/option/option.component.d.ts +0 -47
- package/forms/components/option/tokens/option-group.d.ts +0 -3
- package/forms/components/option/tokens/option-parent.d.ts +0 -11
- package/forms/components/option/types/option-events.class.d.ts +0 -7
- package/forms/components/pseudo-checkbox/pseudo-checkbox.component.d.ts +0 -14
- package/forms/components/pseudo-checkbox/tokens/pseudo-checkbox-parent.d.ts +0 -7
- package/forms/components/pseudo-checkbox/types/pseudo-checkbox-state.type.d.ts +0 -6
- package/forms/directives/form-field-action.directive.d.ts +0 -5
- package/forms/directives/label.directive.d.ts +0 -5
- package/forms/directives/message-prefix.directive.d.ts +0 -5
- package/forms/directives/message-suffix.directive.d.ts +0 -5
- package/forms/directives/message.directive.d.ts +0 -17
- package/forms/directives/prefix.directive.d.ts +0 -7
- package/forms/directives/suffix.directive.d.ts +0 -7
- package/forms/public-api.d.ts +0 -37
- package/forms/validators.d.ts +0 -9
- package/icon/icon-defaults.d.ts +0 -12
- package/icon/icon.component.d.ts +0 -33
- package/icon/public-api.d.ts +0 -5
- package/icon/tokens/icon-parent.d.ts +0 -6
- package/icon/types/icon-source.type.d.ts +0 -5
- package/icon/types/icon-variant.type.d.ts +0 -12
- package/icon-button/icon-button-defaults.d.ts +0 -11
- package/icon-button/icon-button.component.d.ts +0 -28
- package/icon-button/public-api.d.ts +0 -5
- package/icon-button/tokens/icon-button-parent.d.ts +0 -9
- package/icon-button/types/icon-button-appearance.type.d.ts +0 -6
- package/icon-button/types/icon-button-variant.type.d.ts +0 -13
- package/menu/action-menu/action-menu-trigger.directive.d.ts +0 -12
- package/menu/active-indicator/active-indicator.directive.d.ts +0 -7
- package/menu/menu-item/menu-item-defaults.d.ts +0 -12
- package/menu/menu-item/menu-item.component.d.ts +0 -27
- package/menu/menu-item/types/menu-item-appearance.type.d.ts +0 -5
- package/menu/menu-item/types/menu-item-variant.type.d.ts +0 -5
- package/menu/public-api.d.ts +0 -6
- package/notification/notification-action-button.directive.d.ts +0 -5
- package/notification/notification-defaults.d.ts +0 -15
- package/notification/notification.component.d.ts +0 -34
- package/notification/public-api.d.ts +0 -5
- package/notification/types/notification-appearance.type.d.ts +0 -5
- package/notification/types/notification-variant.type.d.ts +0 -10
- package/overlay-panel/overlay-panel-defaults.d.ts +0 -11
- package/overlay-panel/overlay-panel.component.d.ts +0 -18
- package/overlay-panel/public-api.d.ts +0 -4
- package/overlay-panel/types/overlay-panel-appearance.type.d.ts +0 -6
- package/overlay-panel/types/overlay-panel-variant.type.d.ts +0 -5
- package/paginator/paginator-defaults.d.ts +0 -22
- package/paginator/paginator-intl.d.ts +0 -24
- package/paginator/paginator.component.d.ts +0 -67
- package/paginator/public-api.d.ts +0 -5
- package/paginator/types/paginator-appearance.type.d.ts +0 -4
- package/paginator/types/paginator-events.class.d.ts +0 -6
- package/paginator/types/paginator-variant.type.d.ts +0 -7
- package/public-api.d.ts +0 -2
- package/radio/public-api.d.ts +0 -5
- package/radio/radio-defaults.d.ts +0 -11
- package/radio/radio-group.directive.d.ts +0 -46
- package/radio/radio.component.d.ts +0 -30
- package/radio/types/radio-events.class.d.ts +0 -6
- package/radio/types/radio-variant.type.d.ts +0 -6
- package/segmented-control/public-api.d.ts +0 -6
- package/segmented-control/segmented-control-defaults.d.ts +0 -11
- package/segmented-control/segmented-control-item.component.d.ts +0 -33
- package/segmented-control/segmented-control.directive.d.ts +0 -42
- package/segmented-control/types/segmented-control-appearance.type.d.ts +0 -4
- package/segmented-control/types/segmented-control-item-change.class.d.ts +0 -7
- package/segmented-control/types/segmented-control-variant.type.d.ts +0 -6
- package/segmented-control-toggle/public-api.d.ts +0 -6
- package/segmented-control-toggle/segmented-control-toggle-defaults.d.ts +0 -12
- package/segmented-control-toggle/segmented-control-toggle-item.component.d.ts +0 -32
- package/segmented-control-toggle/segmented-control-toggle.directive.d.ts +0 -43
- package/segmented-control-toggle/types/segmented-control-toggle-appearance.type.d.ts +0 -5
- package/segmented-control-toggle/types/segmented-control-toggle-item-change.class.d.ts +0 -6
- package/segmented-control-toggle/types/segmented-control-toggle-variant.type.d.ts +0 -11
- package/select/public-api.d.ts +0 -3
- package/select/select-defaults.d.ts +0 -9
- package/select/select-positions.d.ts +0 -2
- package/select/select-trigger.directive.d.ts +0 -5
- package/select/select.component.d.ts +0 -85
- package/side-sheet/public-api.d.ts +0 -3
- package/side-sheet/side-sheet-defaults.d.ts +0 -20
- package/side-sheet/side-sheet-header/side-sheet-header.component.d.ts +0 -19
- package/side-sheet/side-sheet.component.d.ts +0 -40
- package/side-sheet/types/side-sheet.type.d.ts +0 -20
- package/snackbar/animations.d.ts +0 -2
- package/snackbar/public-api.d.ts +0 -7
- package/snackbar/services/snackbar.service.d.ts +0 -28
- package/snackbar/snackbar-defaults.d.ts +0 -16
- package/snackbar/snackbar-group.component.d.ts +0 -25
- package/snackbar/snackbar-position-strategies.d.ts +0 -4
- package/snackbar/snackbar.component.d.ts +0 -51
- package/snackbar/types/snackbar-data.type.d.ts +0 -15
- package/snackbar/types/snackbar-inner-data.type.d.ts +0 -4
- package/snackbar/types/snackbar-position.type.d.ts +0 -9
- package/snackbar/types/snackbar-variant.type.d.ts +0 -8
- package/spinner/public-api.d.ts +0 -3
- package/spinner/spinner-defaults.d.ts +0 -11
- package/spinner/spinner.component.d.ts +0 -17
- package/spinner/types/spinner-variant.type.d.ts +0 -11
- package/switch/public-api.d.ts +0 -5
- package/switch/switch-animations.d.ts +0 -2
- package/switch/switch-defaults.d.ts +0 -13
- package/switch/switch-group.component.d.ts +0 -14
- package/switch/switch.component.d.ts +0 -45
- package/switch/types/switch-positions.type.d.ts +0 -10
- package/switch/types/switch-variant.type.d.ts +0 -6
- package/tab/public-api.d.ts +0 -6
- package/tab/tab-group-defaults.d.ts +0 -15
- package/tab/tab-group.component.d.ts +0 -30
- package/tab/tab.component.d.ts +0 -18
- package/tab/types/tab-group-position.type.d.ts +0 -6
- package/tab/types/tab-group-variant.type.d.ts +0 -6
- package/tab/types/tab-indicator-position.type.d.ts +0 -7
- package/table/components/cell-content/cell-content.component.d.ts +0 -25
- package/table/datasource/server-side-datasource.d.ts +0 -37
- package/table/directives/cell-renderer.d.ts +0 -13
- package/table/directives/cell-template.d.ts +0 -8
- package/table/directives/row-info-holder.d.ts +0 -9
- package/table/public-api.d.ts +0 -18
- package/table/table-defaults.d.ts +0 -22
- package/table/table-intl.d.ts +0 -25
- package/table/table.component.d.ts +0 -142
- package/table/types/pagination-params.d.ts +0 -9
- package/table/types/request-factory.d.ts +0 -5
- package/table/types/request-pagination-data.d.ts +0 -6
- package/table/types/response-data.d.ts +0 -5
- package/table/types/table-appearance.type.d.ts +0 -6
- package/table/types/table-cell-click-event.d.ts +0 -6
- package/table/types/table-column-def.d.ts +0 -97
- package/table/types/table-row-click-event.d.ts +0 -4
- package/table/types/table-row-keydown-event.d.ts +0 -4
- package/table/types/table-sort-direction.d.ts +0 -6
- package/table/types/table-sort-info.d.ts +0 -6
- package/table/types/table-variant.type.d.ts +0 -6
- package/tag/public-api.d.ts +0 -6
- package/tag/tag-defaults.d.ts +0 -11
- package/tag/tag-group-defaults.d.ts +0 -9
- package/tag/tag-group.component.d.ts +0 -13
- package/tag/tag.component.d.ts +0 -23
- package/tag/types/tag-appearance.type.d.ts +0 -5
- package/tag/types/tag-variant.type.d.ts +0 -13
- package/tooltip/public-api.d.ts +0 -5
- package/tooltip/tooltip-defaults.d.ts +0 -18
- package/tooltip/tooltip-position-strategies.d.ts +0 -3
- package/tooltip/tooltip.component.d.ts +0 -31
- package/tooltip/tooltip.directive.d.ts +0 -60
- package/tooltip/types/tooltip-position.type.d.ts +0 -11
- package/tooltip/types/tooltip-variant.type.d.ts +0 -5
- package/tooltip/types/tooltip.type.d.ts +0 -2
- package/tooltip/utils/tooltip-converters.d.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, signal,
|
|
2
|
+
import { Injectable, signal, ChangeDetectionStrategy, ViewEncapsulation, Component, InjectionToken, Directive, input, contentChildren, computed, inject, Injector, effect, booleanAttribute, Input, ElementRef, ChangeDetectorRef, viewChild, contentChild, isDevMode, output } from '@angular/core';
|
|
3
3
|
import { ComponentBase, IdsSize, ComponentBaseWithDefaults, coerceBooleanAttribute } from '@i-cell/ids-angular/core';
|
|
4
4
|
import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';
|
|
5
5
|
import { NgForm, FormGroupDirective, NgControl, Validators, StatusChangeEvent } from '@angular/forms';
|
|
6
|
-
import { Subject, observeOn, asapScheduler, tap, switchMap,
|
|
6
|
+
import { Subject, observeOn, asapScheduler, tap, switchMap, of, startWith } from 'rxjs';
|
|
7
7
|
import { IdsIconComponent } from '@i-cell/ids-angular/icon';
|
|
8
8
|
import { hasModifierKey } from '@angular/cdk/keycodes';
|
|
9
9
|
|
|
@@ -13,10 +13,10 @@ class ErrorStateMatcher extends AbstractErrorStateMatcher {
|
|
|
13
13
|
isErrorState(control, form) {
|
|
14
14
|
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
|
15
15
|
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ErrorStateMatcher, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
17
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' }); }
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ErrorStateMatcher, decorators: [{
|
|
20
20
|
type: Injectable,
|
|
21
21
|
args: [{ providedIn: 'root' }]
|
|
22
22
|
}] });
|
|
@@ -50,10 +50,10 @@ class SuccessStateMatcher extends AbstractSuccessStateMatcher {
|
|
|
50
50
|
isSuccessState(control, form) {
|
|
51
51
|
return !!(control && control.valid && (control.touched || (form && form.submitted)));
|
|
52
52
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: SuccessStateMatcher, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
54
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: SuccessStateMatcher, providedIn: 'root' }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: SuccessStateMatcher, decorators: [{
|
|
57
57
|
type: Injectable,
|
|
58
58
|
args: [{ providedIn: 'root' }]
|
|
59
59
|
}] });
|
|
@@ -84,15 +84,15 @@ class SuccessStateTracker {
|
|
|
84
84
|
class IdsFieldsetRowComponent extends ComponentBase {
|
|
85
85
|
constructor() {
|
|
86
86
|
super(...arguments);
|
|
87
|
-
this._hostClasses = signal(this._getHostClasses([]));
|
|
87
|
+
this._hostClasses = signal(this._getHostClasses([]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
88
88
|
}
|
|
89
89
|
get _hostName() {
|
|
90
90
|
return 'fieldset-row';
|
|
91
91
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
93
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFieldsetRowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
93
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.7", type: IdsFieldsetRowComponent, isStandalone: true, selector: "ids-fieldset-row", usesInheritance: true, ngImport: i0, template: "<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFieldsetRowComponent, decorators: [{
|
|
96
96
|
type: Component,
|
|
97
97
|
args: [{ selector: 'ids-fieldset-row', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content />\n" }]
|
|
98
98
|
}] });
|
|
@@ -114,10 +114,10 @@ function IDS_FIELDSET_DEFAULT_CONFIG_FACTORY() {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
class IdsFieldsetMessageDirective {
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
118
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFieldsetMessageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
118
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsFieldsetMessageDirective, isStandalone: true, selector: "[idsFieldsetMessage]", ngImport: i0 }); }
|
|
119
119
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFieldsetMessageDirective, decorators: [{
|
|
121
121
|
type: Directive,
|
|
122
122
|
args: [{
|
|
123
123
|
selector: '[idsFieldsetMessage]',
|
|
@@ -130,23 +130,23 @@ class IdsFieldsetComponent extends ComponentBaseWithDefaults {
|
|
|
130
130
|
constructor() {
|
|
131
131
|
super(...arguments);
|
|
132
132
|
this._defaultConfig = this._getDefaultConfig(defaultConfig$3, IDS_FIELDSET_DEFAULT_CONFIG);
|
|
133
|
-
this.size = input(this._defaultConfig.size);
|
|
134
|
-
this.variant = input(this._defaultConfig.variant);
|
|
135
|
-
this.legend = input('');
|
|
136
|
-
this._fieldsetMessage = contentChildren(IdsFieldsetMessageDirective);
|
|
137
|
-
this._hasMessage = computed(() => this._fieldsetMessage().length > 0);
|
|
133
|
+
this.size = input(this._defaultConfig.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
134
|
+
this.variant = input(this._defaultConfig.variant, ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
135
|
+
this.legend = input('', ...(ngDevMode ? [{ debugName: "legend" }] : []));
|
|
136
|
+
this._fieldsetMessage = contentChildren(IdsFieldsetMessageDirective, ...(ngDevMode ? [{ debugName: "_fieldsetMessage" }] : []));
|
|
137
|
+
this._hasMessage = computed(() => this._fieldsetMessage().length > 0, ...(ngDevMode ? [{ debugName: "_hasMessage" }] : []));
|
|
138
138
|
this._hostClasses = computed(() => this._getHostClasses([
|
|
139
139
|
this.size(),
|
|
140
140
|
this.variant(),
|
|
141
|
-
]));
|
|
141
|
+
]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
142
142
|
}
|
|
143
143
|
get _hostName() {
|
|
144
144
|
return 'fieldset';
|
|
145
145
|
}
|
|
146
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
147
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFieldsetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
147
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsFieldsetComponent, isStandalone: true, selector: "fieldset[idsFieldset]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_fieldsetMessage", predicate: IdsFieldsetMessageDirective, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<legend class=\"ids-fieldset-legend\">{{ legend() }}</legend>\n@if (_hasMessage()) {\n <div class=\"ids-fieldset-message\">\n <ng-content select=\"[idsFieldsetMessage]\" />\n </div>\n}\n<ng-content select=\"ids-fieldset-row\" />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
148
148
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFieldsetComponent, decorators: [{
|
|
150
150
|
type: Component,
|
|
151
151
|
args: [{ selector: 'fieldset[idsFieldset]', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<legend class=\"ids-fieldset-legend\">{{ legend() }}</legend>\n@if (_hasMessage()) {\n <div class=\"ids-fieldset-message\">\n <ng-content select=\"[idsFieldsetMessage]\" />\n </div>\n}\n<ng-content select=\"ids-fieldset-row\" />\n" }]
|
|
152
152
|
}] });
|
|
@@ -160,22 +160,22 @@ class IdsFormFieldControl extends ComponentBaseWithDefaults {
|
|
|
160
160
|
this._injector = inject(Injector);
|
|
161
161
|
this._parentForm = inject(NgForm, { optional: true });
|
|
162
162
|
this._parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
163
|
-
this.ngControl = signal(null);
|
|
163
|
+
this.ngControl = signal(null, ...(ngDevMode ? [{ debugName: "ngControl" }] : []));
|
|
164
164
|
this.errorStateChanges = new Subject();
|
|
165
165
|
this.successStateChanges = new Subject();
|
|
166
|
-
this.canHandleSuccessState = input(false);
|
|
167
|
-
this.hasErrorState = signal(false);
|
|
168
|
-
this.hasSuccessState = signal(false);
|
|
166
|
+
this.canHandleSuccessState = input(false, ...(ngDevMode ? [{ debugName: "canHandleSuccessState" }] : []));
|
|
167
|
+
this.hasErrorState = signal(false, ...(ngDevMode ? [{ debugName: "hasErrorState" }] : []));
|
|
168
|
+
this.hasSuccessState = signal(false, ...(ngDevMode ? [{ debugName: "hasSuccessState" }] : []));
|
|
169
169
|
this._canHandleSuccessStateEffect = effect(() => {
|
|
170
170
|
this._setSuccessStateTracker(this.canHandleSuccessState());
|
|
171
|
-
});
|
|
171
|
+
}, ...(ngDevMode ? [{ debugName: "_canHandleSuccessStateEffect" }] : []));
|
|
172
172
|
/** Handles the `disabled` input binding */
|
|
173
|
-
this.disabledInput = input(false, { transform: booleanAttribute, alias: 'disabled' });
|
|
173
|
+
this.disabledInput = input(false, ...(ngDevMode ? [{ debugName: "disabledInput", transform: booleanAttribute, alias: 'disabled' }] : [{ transform: booleanAttribute, alias: 'disabled' }]));
|
|
174
174
|
/** Stores the `disabled` state internally */
|
|
175
|
-
this._disabled = signal(this.disabledInput());
|
|
175
|
+
this._disabled = signal(this.disabledInput(), ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
|
|
176
176
|
/** The input's `disabled` state as a read-only signal (to enable/disable the contol programmatically, use the FormControl's related API) */
|
|
177
|
-
this.disabled = computed(() => this._disabled());
|
|
178
|
-
this.readonly = input(false, { transform: booleanAttribute });
|
|
177
|
+
this.disabled = computed(() => this._disabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
178
|
+
this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
179
179
|
/** This effect is triggered if the `disabled` attribute binding changes and delegates the change to the underlying FormControl */
|
|
180
180
|
this._disabledInputEffect = effect(() => {
|
|
181
181
|
const enableOrDisable = this.disabledInput() ? 'disable' : 'enable';
|
|
@@ -184,9 +184,9 @@ class IdsFormFieldControl extends ComponentBaseWithDefaults {
|
|
|
184
184
|
// (the FormControl's enable/disable method call will trigger a StatusChangeEvent and/or the ControlValueAccessor's setDisabledState() callback
|
|
185
185
|
// so that we can update the `disabled` signal)
|
|
186
186
|
queueMicrotask(() => controlDir?.control?.[enableOrDisable]());
|
|
187
|
-
});
|
|
188
|
-
this.required = input(false, { transform: booleanAttribute });
|
|
189
|
-
this.placeholder = input('');
|
|
187
|
+
}, ...(ngDevMode ? [{ debugName: "_disabledInputEffect" }] : []));
|
|
188
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
189
|
+
this.placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
190
190
|
// Get the NgControl reference as soon as we can
|
|
191
191
|
queueMicrotask(() => {
|
|
192
192
|
this.ngControl.set(this._injector.get(NgControl, null, { self: true }));
|
|
@@ -218,10 +218,10 @@ class IdsFormFieldControl extends ComponentBaseWithDefaults {
|
|
|
218
218
|
this.hasSuccessState.set(false);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
222
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
221
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
222
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: IdsFormFieldControl, isStandalone: true, inputs: { canHandleSuccessState: { classPropertyName: "canHandleSuccessState", publicName: "canHandleSuccessState", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
223
223
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFormFieldControl, decorators: [{
|
|
225
225
|
type: Directive
|
|
226
226
|
}], ctorParameters: () => [] });
|
|
227
227
|
|
|
@@ -237,10 +237,10 @@ function IDS_FORM_FIELD_DEFAULT_CONFIG_FACTORY() {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
class IdsFormFieldActionDirective {
|
|
240
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
241
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
240
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFormFieldActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
241
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsFormFieldActionDirective, isStandalone: true, selector: "[idsFormFieldAction]", ngImport: i0 }); }
|
|
242
242
|
}
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFormFieldActionDirective, decorators: [{
|
|
244
244
|
type: Directive,
|
|
245
245
|
args: [{
|
|
246
246
|
selector: '[idsFormFieldAction]',
|
|
@@ -255,10 +255,10 @@ class IdsPrefixDirective {
|
|
|
255
255
|
set idsLeadingIcon(value) {
|
|
256
256
|
this.isLeadingIcon = true;
|
|
257
257
|
}
|
|
258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
259
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsPrefixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
259
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsPrefixDirective, isStandalone: true, selector: "[idsPrefix], [idsLeadingIcon]", inputs: { idsLeadingIcon: "idsLeadingIcon" }, ngImport: i0 }); }
|
|
260
260
|
}
|
|
261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsPrefixDirective, decorators: [{
|
|
262
262
|
type: Directive,
|
|
263
263
|
args: [{
|
|
264
264
|
selector: '[idsPrefix], [idsLeadingIcon]',
|
|
@@ -276,10 +276,10 @@ class IdsSuffixDirective {
|
|
|
276
276
|
set idsTrailingIcon(value) {
|
|
277
277
|
this.isTrailingIcon = true;
|
|
278
278
|
}
|
|
279
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
280
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsSuffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
280
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsSuffixDirective, isStandalone: true, selector: "[idsSuffix], [idsTrailingIcon]", inputs: { idsTrailingIcon: "idsTrailingIcon" }, ngImport: i0 }); }
|
|
281
281
|
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsSuffixDirective, decorators: [{
|
|
283
283
|
type: Directive,
|
|
284
284
|
args: [{
|
|
285
285
|
selector: '[idsSuffix], [idsTrailingIcon]',
|
|
@@ -348,7 +348,7 @@ class IdsErrorDefinitionDirective {
|
|
|
348
348
|
/**
|
|
349
349
|
* The validation error's identifier code
|
|
350
350
|
*/
|
|
351
|
-
this.code = input.required();
|
|
351
|
+
this.code = input.required(...(ngDevMode ? [{ debugName: "code" }] : []));
|
|
352
352
|
this._elementRef = inject(ElementRef);
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
@@ -369,10 +369,10 @@ class IdsErrorDefinitionDirective {
|
|
|
369
369
|
message: () => self.errorMessage,
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
373
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsErrorDefinitionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
373
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: IdsErrorDefinitionDirective, isStandalone: true, selector: "ids-error-def", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
374
374
|
}
|
|
375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsErrorDefinitionDirective, decorators: [{
|
|
376
376
|
type: Directive,
|
|
377
377
|
args: [{
|
|
378
378
|
selector: 'ids-error-def',
|
|
@@ -380,10 +380,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
|
|
|
380
380
|
}] });
|
|
381
381
|
|
|
382
382
|
class IdsMessageSuffixDirective {
|
|
383
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
384
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
383
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMessageSuffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
384
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsMessageSuffixDirective, isStandalone: true, selector: "[idsMessageSuffix]", ngImport: i0 }); }
|
|
385
385
|
}
|
|
386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMessageSuffixDirective, decorators: [{
|
|
387
387
|
type: Directive,
|
|
388
388
|
args: [{
|
|
389
389
|
selector: '[idsMessageSuffix]',
|
|
@@ -417,24 +417,24 @@ class IdsMessageDirective extends ComponentBaseWithDefaults {
|
|
|
417
417
|
super(...arguments);
|
|
418
418
|
this._parent = inject(IDS_MESSAGE_PARENT_FORM_FIELD, { skipSelf: true, optional: true });
|
|
419
419
|
this._defaultConfig = this._getDefaultConfig(defaultConfig$2, IDS_MESSAGE_DEFAULT_CONFIG);
|
|
420
|
-
this.size = input(this._defaultConfig.size);
|
|
421
|
-
this.variant = input(this._defaultConfig.variant);
|
|
422
|
-
this._parentOrSelfSize = computed(() => this._parent?.size() ?? this.size());
|
|
423
|
-
this._parentOrSelfVariant = computed(() => this._parent?.variant() ?? this.variant());
|
|
424
|
-
this._parentDisabled = computed(() => this._parent?.disabled());
|
|
420
|
+
this.size = input(this._defaultConfig.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
421
|
+
this.variant = input(this._defaultConfig.variant, ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
422
|
+
this._parentOrSelfSize = computed(() => this._parent?.size() ?? this.size(), ...(ngDevMode ? [{ debugName: "_parentOrSelfSize" }] : []));
|
|
423
|
+
this._parentOrSelfVariant = computed(() => this._parent?.variant() ?? this.variant(), ...(ngDevMode ? [{ debugName: "_parentOrSelfVariant" }] : []));
|
|
424
|
+
this._parentDisabled = computed(() => this._parent?.disabled(), ...(ngDevMode ? [{ debugName: "_parentDisabled" }] : []));
|
|
425
425
|
this._hostClasses = computed(() => this._getHostClasses([
|
|
426
426
|
this._parentOrSelfSize(),
|
|
427
427
|
this._parentOrSelfVariant(),
|
|
428
428
|
this._parentDisabled() ? 'disabled' : null,
|
|
429
|
-
]));
|
|
429
|
+
]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
430
430
|
}
|
|
431
431
|
get _hostName() {
|
|
432
432
|
return 'message';
|
|
433
433
|
}
|
|
434
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
435
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
434
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMessageDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
435
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: IdsMessageDirective, isStandalone: true, selector: "[idsMessage]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
436
436
|
}
|
|
437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMessageDirective, decorators: [{
|
|
438
438
|
type: Directive,
|
|
439
439
|
args: [{
|
|
440
440
|
selector: '[idsMessage]',
|
|
@@ -449,12 +449,12 @@ class IdsErrorMessageComponent extends ComponentBase {
|
|
|
449
449
|
constructor() {
|
|
450
450
|
super();
|
|
451
451
|
this._parent = inject(IdsFormFieldComponent, { skipSelf: true });
|
|
452
|
-
this._control = signal(null);
|
|
453
|
-
this._errorDefDirs = contentChildren(IdsErrorDefinitionDirective);
|
|
454
|
-
this._errorDefs = computed(() => this._errorDefDirs().map((errorDefDir) => errorDefDir.toErrorMessageMapping()));
|
|
455
|
-
this._validationError = signal(null);
|
|
456
|
-
this._hostClasses = computed(() => this._getHostClasses([]));
|
|
457
|
-
this.suffixes = contentChildren(IdsMessageSuffixDirective);
|
|
452
|
+
this._control = signal(null, ...(ngDevMode ? [{ debugName: "_control" }] : []));
|
|
453
|
+
this._errorDefDirs = contentChildren(IdsErrorDefinitionDirective, ...(ngDevMode ? [{ debugName: "_errorDefDirs" }] : []));
|
|
454
|
+
this._errorDefs = computed(() => this._errorDefDirs().map((errorDefDir) => errorDefDir.toErrorMessageMapping()), ...(ngDevMode ? [{ debugName: "_errorDefs" }] : []));
|
|
455
|
+
this._validationError = signal(null, ...(ngDevMode ? [{ debugName: "_validationError" }] : []));
|
|
456
|
+
this._hostClasses = computed(() => this._getHostClasses([]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
457
|
+
this.suffixes = contentChildren(IdsMessageSuffixDirective, ...(ngDevMode ? [{ debugName: "suffixes" }] : []));
|
|
458
458
|
toObservable(this._parent.controlDir).pipe(observeOn(asapScheduler), tap((controlDir) => this._control.set(controlDir?.control ?? null)), switchMap(() => this._control()?.statusChanges.pipe(startWith(this._control()?.status)) ?? of(null)), takeUntilDestroyed(this._destroyRef)).subscribe((status) => {
|
|
459
459
|
if (status === 'INVALID') {
|
|
460
460
|
const nextError = this._selectMostImportantValidationError();
|
|
@@ -477,19 +477,19 @@ class IdsErrorMessageComponent extends ComponentBase {
|
|
|
477
477
|
_getValidationErrorMessage(messageOrFn) {
|
|
478
478
|
return messageOrFn instanceof Function ? messageOrFn() : messageOrFn;
|
|
479
479
|
}
|
|
480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
481
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
480
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
481
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsErrorMessageComponent, isStandalone: true, selector: "ids-error-message", queries: [{ propertyName: "_errorDefDirs", predicate: IdsErrorDefinitionDirective, isSignal: true }, { propertyName: "suffixes", predicate: IdsMessageSuffixDirective, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: IdsMessageDirective }], ngImport: i0, template: "<div class=\"ids-message__prefix\">\n <ng-content select=\"[idsMessagePrefix]\">\n <ids-icon aria-hidden=\"true\" fontIcon=\"exclamation-circle\" variant=\"error\" />\n </ng-content>\n</div>\n<div class=\"ids-message__text\">\n @let validationError = _validationError();\n @if (validationError) {\n @let messageString = _getValidationErrorMessage(validationError.message);\n {{ messageString }}\n }\n</div>\n@if (suffixes().length) {\n <div class=\"ids-message__suffix\">\n <ng-content select=\"[idsMessageSuffix]\" />\n </div>\n}\n", dependencies: [{ kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
482
482
|
}
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsErrorMessageComponent, decorators: [{
|
|
484
484
|
type: Component,
|
|
485
485
|
args: [{ selector: 'ids-error-message', imports: [IdsIconComponent], hostDirectives: [IdsMessageDirective], encapsulation: ViewEncapsulation.None, template: "<div class=\"ids-message__prefix\">\n <ng-content select=\"[idsMessagePrefix]\">\n <ids-icon aria-hidden=\"true\" fontIcon=\"exclamation-circle\" variant=\"error\" />\n </ng-content>\n</div>\n<div class=\"ids-message__text\">\n @let validationError = _validationError();\n @if (validationError) {\n @let messageString = _getValidationErrorMessage(validationError.message);\n {{ messageString }}\n }\n</div>\n@if (suffixes().length) {\n <div class=\"ids-message__suffix\">\n <ng-content select=\"[idsMessageSuffix]\" />\n </div>\n}\n" }]
|
|
486
486
|
}], ctorParameters: () => [] });
|
|
487
487
|
|
|
488
488
|
class IdsMessagePrefixDirective {
|
|
489
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
490
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
489
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMessagePrefixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
490
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsMessagePrefixDirective, isStandalone: true, selector: "[idsMessagePrefix]", ngImport: i0 }); }
|
|
491
491
|
}
|
|
492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMessagePrefixDirective, decorators: [{
|
|
493
493
|
type: Directive,
|
|
494
494
|
args: [{
|
|
495
495
|
selector: '[idsMessagePrefix]',
|
|
@@ -499,13 +499,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
|
|
|
499
499
|
|
|
500
500
|
class IdsHintMessageComponent {
|
|
501
501
|
constructor() {
|
|
502
|
-
this.prefixes = contentChildren(IdsMessagePrefixDirective);
|
|
503
|
-
this.suffixes = contentChildren(IdsMessageSuffixDirective);
|
|
502
|
+
this.prefixes = contentChildren(IdsMessagePrefixDirective, ...(ngDevMode ? [{ debugName: "prefixes" }] : []));
|
|
503
|
+
this.suffixes = contentChildren(IdsMessageSuffixDirective, ...(ngDevMode ? [{ debugName: "suffixes" }] : []));
|
|
504
504
|
}
|
|
505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
506
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsHintMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
506
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsHintMessageComponent, isStandalone: true, selector: "ids-hint-message", host: { classAttribute: "ids-hint-message" }, queries: [{ propertyName: "prefixes", predicate: IdsMessagePrefixDirective, isSignal: true }, { propertyName: "suffixes", predicate: IdsMessageSuffixDirective, isSignal: true }], hostDirectives: [{ directive: IdsMessageDirective, inputs: ["size", "size", "variant", "variant"] }], ngImport: i0, template: "@if (prefixes().length) {\n <div class=\"ids-message__prefix\">\n <ng-content select=\"[idsMessagePrefix]\" />\n </div>\n}\n<div class=\"ids-message__text\">\n <ng-content />\n</div>\n@if (suffixes().length) {\n <div class=\"ids-message__suffix\">\n <ng-content select=\"[idsMessageSuffix]\" />\n </div>\n}\n", encapsulation: i0.ViewEncapsulation.None }); }
|
|
507
507
|
}
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsHintMessageComponent, decorators: [{
|
|
509
509
|
type: Component,
|
|
510
510
|
args: [{ selector: 'ids-hint-message', imports: [], host: {
|
|
511
511
|
class: 'ids-hint-message',
|
|
@@ -523,16 +523,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.2", ngImpor
|
|
|
523
523
|
class IdsSuccessMessageComponent extends ComponentBase {
|
|
524
524
|
constructor() {
|
|
525
525
|
super(...arguments);
|
|
526
|
-
this._hostClasses = computed(() => this._getHostClasses([]));
|
|
527
|
-
this.suffixes = contentChildren(IdsMessageSuffixDirective);
|
|
526
|
+
this._hostClasses = computed(() => this._getHostClasses([]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
527
|
+
this.suffixes = contentChildren(IdsMessageSuffixDirective, ...(ngDevMode ? [{ debugName: "suffixes" }] : []));
|
|
528
528
|
}
|
|
529
529
|
get _hostName() {
|
|
530
530
|
return 'success-message';
|
|
531
531
|
}
|
|
532
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
533
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
532
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsSuccessMessageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
533
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsSuccessMessageComponent, isStandalone: true, selector: "ids-success-message", queries: [{ propertyName: "suffixes", predicate: IdsMessageSuffixDirective, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: IdsMessageDirective }], ngImport: i0, template: "<div class=\"ids-message__prefix\">\n <ng-content select=\"[idsMessagePrefix]\">\n <ids-icon aria-hidden=\"true\" fontIcon=\"check\" variant=\"success\" />\n </ng-content>\n</div>\n<div class=\"ids-message__text\">\n <ng-content />\n</div>\n@if (suffixes().length) {\n <div class=\"ids-message__suffix\">\n <ng-content select=\"[idsMessageSuffix]\" />\n </div>\n}\n", dependencies: [{ kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
534
534
|
}
|
|
535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsSuccessMessageComponent, decorators: [{
|
|
536
536
|
type: Component,
|
|
537
537
|
args: [{ selector: 'ids-success-message', imports: [IdsIconComponent], hostDirectives: [IdsMessageDirective], encapsulation: ViewEncapsulation.None, template: "<div class=\"ids-message__prefix\">\n <ng-content select=\"[idsMessagePrefix]\">\n <ids-icon aria-hidden=\"true\" fontIcon=\"check\" variant=\"success\" />\n </ng-content>\n</div>\n<div class=\"ids-message__text\">\n <ng-content />\n</div>\n@if (suffixes().length) {\n <div class=\"ids-message__suffix\">\n <ng-content select=\"[idsMessageSuffix]\" />\n </div>\n}\n" }]
|
|
538
538
|
}] });
|
|
@@ -546,34 +546,34 @@ class IdsFormFieldComponent extends ComponentBaseWithDefaults {
|
|
|
546
546
|
this._defaultConfig = this._getDefaultConfig(defaultConfig$1, IDS_FORM_FIELD_DEFAULT_CONFIG);
|
|
547
547
|
this._fieldWrapper = viewChild.required('fieldWrapper');
|
|
548
548
|
this._child = contentChild.required(IDS_FORM_FIELD_CONTROL);
|
|
549
|
-
this._hintMessages = contentChildren(IdsHintMessageComponent, { descendants: true });
|
|
550
|
-
this._successMessages = contentChildren(IdsSuccessMessageComponent, { descendants: true });
|
|
551
|
-
this._errorMessages = contentChildren(IdsErrorMessageComponent, { descendants: true });
|
|
552
|
-
this._actions = contentChildren(IdsFormFieldActionDirective);
|
|
553
|
-
this._prefixes = contentChildren(IdsPrefixDirective);
|
|
554
|
-
this._suffixes = contentChildren(IdsSuffixDirective);
|
|
555
|
-
this._hasActions = computed(() => Boolean(this._actions().length));
|
|
556
|
-
this._hasLeadingIcon = computed(() => Boolean(this._prefixes().filter((prefix) => prefix.isLeadingIcon).length));
|
|
557
|
-
this._hasPrefix = computed(() => Boolean(this._prefixes().filter((prefix) => !prefix.isLeadingIcon).length));
|
|
558
|
-
this._hasSuffix = computed(() => Boolean(this._suffixes().filter((suffix) => !suffix.isTrailingIcon).length));
|
|
559
|
-
this._hasTrailingIcon = computed(() => Boolean(this._suffixes().filter((suffix) => suffix.isTrailingIcon).length));
|
|
560
|
-
this._inputId = computed(() => this._child()?.id());
|
|
561
|
-
this.size = input(this._defaultConfig.size);
|
|
562
|
-
this.variant = input(this._defaultConfig.variant);
|
|
563
|
-
this.parentOrSelfSize = computed(() => this._parentFieldset?.size() ?? this.size());
|
|
564
|
-
this.parentOrSelfVariant = computed(() => this._parentFieldset?.variant() ?? this.variant());
|
|
565
|
-
this.controlDir = computed(() => this._child().ngControl());
|
|
566
|
-
this.disabled = computed(() => Boolean(this._child().disabled()));
|
|
567
|
-
this.readonly = computed(() => Boolean(this._child().readonly()));
|
|
568
|
-
this._hasErrorState = computed(() => Boolean(this._child().hasErrorState()));
|
|
569
|
-
this._hasSuccessState = computed(() => Boolean(this._child().hasSuccessState()));
|
|
549
|
+
this._hintMessages = contentChildren(IdsHintMessageComponent, ...(ngDevMode ? [{ debugName: "_hintMessages", descendants: true }] : [{ descendants: true }]));
|
|
550
|
+
this._successMessages = contentChildren(IdsSuccessMessageComponent, ...(ngDevMode ? [{ debugName: "_successMessages", descendants: true }] : [{ descendants: true }]));
|
|
551
|
+
this._errorMessages = contentChildren(IdsErrorMessageComponent, ...(ngDevMode ? [{ debugName: "_errorMessages", descendants: true }] : [{ descendants: true }]));
|
|
552
|
+
this._actions = contentChildren(IdsFormFieldActionDirective, ...(ngDevMode ? [{ debugName: "_actions" }] : []));
|
|
553
|
+
this._prefixes = contentChildren(IdsPrefixDirective, ...(ngDevMode ? [{ debugName: "_prefixes" }] : []));
|
|
554
|
+
this._suffixes = contentChildren(IdsSuffixDirective, ...(ngDevMode ? [{ debugName: "_suffixes" }] : []));
|
|
555
|
+
this._hasActions = computed(() => Boolean(this._actions().length), ...(ngDevMode ? [{ debugName: "_hasActions" }] : []));
|
|
556
|
+
this._hasLeadingIcon = computed(() => Boolean(this._prefixes().filter((prefix) => prefix.isLeadingIcon).length), ...(ngDevMode ? [{ debugName: "_hasLeadingIcon" }] : []));
|
|
557
|
+
this._hasPrefix = computed(() => Boolean(this._prefixes().filter((prefix) => !prefix.isLeadingIcon).length), ...(ngDevMode ? [{ debugName: "_hasPrefix" }] : []));
|
|
558
|
+
this._hasSuffix = computed(() => Boolean(this._suffixes().filter((suffix) => !suffix.isTrailingIcon).length), ...(ngDevMode ? [{ debugName: "_hasSuffix" }] : []));
|
|
559
|
+
this._hasTrailingIcon = computed(() => Boolean(this._suffixes().filter((suffix) => suffix.isTrailingIcon).length), ...(ngDevMode ? [{ debugName: "_hasTrailingIcon" }] : []));
|
|
560
|
+
this._inputId = computed(() => this._child()?.id(), ...(ngDevMode ? [{ debugName: "_inputId" }] : []));
|
|
561
|
+
this.size = input(this._defaultConfig.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
562
|
+
this.variant = input(this._defaultConfig.variant, ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
563
|
+
this.parentOrSelfSize = computed(() => this._parentFieldset?.size() ?? this.size(), ...(ngDevMode ? [{ debugName: "parentOrSelfSize" }] : []));
|
|
564
|
+
this.parentOrSelfVariant = computed(() => this._parentFieldset?.variant() ?? this.variant(), ...(ngDevMode ? [{ debugName: "parentOrSelfVariant" }] : []));
|
|
565
|
+
this.controlDir = computed(() => this._child().ngControl(), ...(ngDevMode ? [{ debugName: "controlDir" }] : []));
|
|
566
|
+
this.disabled = computed(() => Boolean(this._child().disabled()), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
567
|
+
this.readonly = computed(() => Boolean(this._child().readonly()), ...(ngDevMode ? [{ debugName: "readonly" }] : []));
|
|
568
|
+
this._hasErrorState = computed(() => Boolean(this._child().hasErrorState()), ...(ngDevMode ? [{ debugName: "_hasErrorState" }] : []));
|
|
569
|
+
this._hasSuccessState = computed(() => Boolean(this._child().hasSuccessState()), ...(ngDevMode ? [{ debugName: "_hasSuccessState" }] : []));
|
|
570
570
|
this._hostClasses = computed(() => this._getHostClasses([
|
|
571
571
|
this.parentOrSelfSize(),
|
|
572
572
|
this.parentOrSelfVariant(),
|
|
573
573
|
this.disabled() ? 'disabled' : null,
|
|
574
574
|
this._hasErrorState() ? 'invalid' : null,
|
|
575
575
|
this._hasSuccessState() ? 'valid' : null,
|
|
576
|
-
]));
|
|
576
|
+
]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
577
577
|
this._displayedMessages = computed(() => {
|
|
578
578
|
if (this._errorMessages().length > 0 && this._hasErrorState()) {
|
|
579
579
|
return 'error';
|
|
@@ -585,7 +585,7 @@ class IdsFormFieldComponent extends ComponentBaseWithDefaults {
|
|
|
585
585
|
return 'hint';
|
|
586
586
|
}
|
|
587
587
|
return undefined;
|
|
588
|
-
});
|
|
588
|
+
}, ...(ngDevMode ? [{ debugName: "_displayedMessages" }] : []));
|
|
589
589
|
this.hasRequiredValidator = computed(() => {
|
|
590
590
|
const control = this.controlDir()?.control;
|
|
591
591
|
return this._child().required()
|
|
@@ -594,7 +594,7 @@ class IdsFormFieldComponent extends ComponentBaseWithDefaults {
|
|
|
594
594
|
|| control?.hasValidator(IdsValidators.required)
|
|
595
595
|
|| control?.hasValidator(IdsValidators.requiredTrue)
|
|
596
596
|
|| control?.hasValidator(IdsValidators.requiredFalse);
|
|
597
|
-
});
|
|
597
|
+
}, ...(ngDevMode ? [{ debugName: "hasRequiredValidator" }] : []));
|
|
598
598
|
}
|
|
599
599
|
get _hostName() {
|
|
600
600
|
return 'form-field';
|
|
@@ -608,10 +608,10 @@ class IdsFormFieldComponent extends ComponentBaseWithDefaults {
|
|
|
608
608
|
containerClick(event);
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
612
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFormFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsFormFieldComponent, isStandalone: true, selector: "ids-form-field", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_child", first: true, predicate: IDS_FORM_FIELD_CONTROL, descendants: true, isSignal: true }, { propertyName: "_hintMessages", predicate: IdsHintMessageComponent, descendants: true, isSignal: true }, { propertyName: "_successMessages", predicate: IdsSuccessMessageComponent, descendants: true, isSignal: true }, { propertyName: "_errorMessages", predicate: IdsErrorMessageComponent, descendants: true, isSignal: true }, { propertyName: "_actions", predicate: IdsFormFieldActionDirective, isSignal: true }, { propertyName: "_prefixes", predicate: IdsPrefixDirective, isSignal: true }, { propertyName: "_suffixes", predicate: IdsSuffixDirective, isSignal: true }], viewQueries: [{ propertyName: "_fieldWrapper", first: true, predicate: ["fieldWrapper"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label class=\"ids-form-field__label\" [for]=\"_inputId()\">\n @if (hasRequiredValidator()) {\n <span class=\"ids-form-field__required-marker\"></span>\n }\n <ng-content select=\"ids-label\" />\n</label>\n\n<div #fieldWrapper class=\"ids-form-field__field-wrapper\">\n <div class=\"ids-form-field__field-wrapper__container\" (click)=\"containerClick($event)\">\n @if (_hasLeadingIcon()) {\n <div class=\"ids-form-field__leading-icon\">\n <ng-content select=\"ids-icon[idsLeadingIcon]\" />\n </div>\n }\n @if (_hasPrefix()) {\n <div class=\"ids-form-field__prefix\">\n <ng-content select=\"[idsPrefix]\" />\n </div>\n }\n <div class=\"ids-form-field__infix\">\n <ng-content />\n </div>\n @if (_hasSuffix()) {\n <div class=\"ids-form-field__suffix\">\n <ng-content select=\"[idsSuffix]\" />\n </div>\n }\n @if (_hasTrailingIcon()) {\n <div class=\"ids-form-field__trailing-icon\">\n <ng-content select=\"ids-icon[idsTrailingIcon]\" />\n </div>\n }\n </div>\n @if (_hasActions()) {\n <div class=\"ids-form-field__field-wrapper__action\">\n <ng-content select=\"[idsFormFieldAction]\" />\n </div>\n }\n</div>\n\n<div class=\"ids-form-field__subscript-wrapper\">\n @let messages = _displayedMessages();\n @if (messages) {\n <div class=\"ids-form-field__message-container\">\n @switch (messages) {\n @case (\"error\") {\n <ng-content select=\"ids-error-message\" />\n }\n @case (\"success\") {\n <ng-content select=\"ids-success-message\" />\n }\n @case (\"hint\") {\n <ng-content select=\"ids-hint-message\" />\n }\n }\n </div>\n }\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
613
613
|
}
|
|
614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsFormFieldComponent, decorators: [{
|
|
615
615
|
type: Component,
|
|
616
616
|
args: [{ selector: 'ids-form-field', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"ids-form-field__label\" [for]=\"_inputId()\">\n @if (hasRequiredValidator()) {\n <span class=\"ids-form-field__required-marker\"></span>\n }\n <ng-content select=\"ids-label\" />\n</label>\n\n<div #fieldWrapper class=\"ids-form-field__field-wrapper\">\n <div class=\"ids-form-field__field-wrapper__container\" (click)=\"containerClick($event)\">\n @if (_hasLeadingIcon()) {\n <div class=\"ids-form-field__leading-icon\">\n <ng-content select=\"ids-icon[idsLeadingIcon]\" />\n </div>\n }\n @if (_hasPrefix()) {\n <div class=\"ids-form-field__prefix\">\n <ng-content select=\"[idsPrefix]\" />\n </div>\n }\n <div class=\"ids-form-field__infix\">\n <ng-content />\n </div>\n @if (_hasSuffix()) {\n <div class=\"ids-form-field__suffix\">\n <ng-content select=\"[idsSuffix]\" />\n </div>\n }\n @if (_hasTrailingIcon()) {\n <div class=\"ids-form-field__trailing-icon\">\n <ng-content select=\"ids-icon[idsTrailingIcon]\" />\n </div>\n }\n </div>\n @if (_hasActions()) {\n <div class=\"ids-form-field__field-wrapper__action\">\n <ng-content select=\"[idsFormFieldAction]\" />\n </div>\n }\n</div>\n\n<div class=\"ids-form-field__subscript-wrapper\">\n @let messages = _displayedMessages();\n @if (messages) {\n <div class=\"ids-form-field__message-container\">\n @switch (messages) {\n @case (\"error\") {\n <ng-content select=\"ids-error-message\" />\n }\n @case (\"success\") {\n <ng-content select=\"ids-success-message\" />\n }\n @case (\"hint\") {\n <ng-content select=\"ids-hint-message\" />\n }\n }\n </div>\n }\n</div>\n" }]
|
|
617
617
|
}] });
|
|
@@ -645,14 +645,14 @@ class IdsInputDirective extends IdsFormFieldControl {
|
|
|
645
645
|
this._elementRef = inject(ElementRef);
|
|
646
646
|
this._defaultConfig = this._getDefaultConfig(defaultConfig, IDS_INPUT_DEFAULT_CONFIG);
|
|
647
647
|
this._focused = false;
|
|
648
|
-
this.name = input();
|
|
649
|
-
this.type = input('text');
|
|
650
|
-
this.errorStateMatcher = input(inject(this._defaultConfig.errorStateMatcher));
|
|
651
|
-
this.successStateMatcher = input(inject(this._defaultConfig.successStateMatcher));
|
|
652
|
-
this._hostClasses = computed(() => this._getHostClasses([], [formFieldControlClass]));
|
|
648
|
+
this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
649
|
+
this.type = input('text', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
650
|
+
this.errorStateMatcher = input(inject(this._defaultConfig.errorStateMatcher), ...(ngDevMode ? [{ debugName: "errorStateMatcher" }] : []));
|
|
651
|
+
this.successStateMatcher = input(inject(this._defaultConfig.successStateMatcher), ...(ngDevMode ? [{ debugName: "successStateMatcher" }] : []));
|
|
652
|
+
this._hostClasses = computed(() => this._getHostClasses([], [formFieldControlClass]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
653
653
|
this._validateTypeEffect = effect(() => {
|
|
654
654
|
this._validateType(this.type());
|
|
655
|
-
});
|
|
655
|
+
}, ...(ngDevMode ? [{ debugName: "_validateTypeEffect" }] : []));
|
|
656
656
|
/**
|
|
657
657
|
* Should be an arrow function in order to handle `this` outside of this class
|
|
658
658
|
*/
|
|
@@ -694,15 +694,15 @@ class IdsInputDirective extends IdsFormFieldControl {
|
|
|
694
694
|
this._disabled.set(event.status === 'DISABLED');
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
698
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsInputDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
698
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: IdsInputDirective, isStandalone: true, selector: "input[idsInput][ngModel]:not([formControl]):not([formControlName]),\n input[idsInput][formControl]:not([ngModel]):not([formControlName]),\n input[idsInput][formControlName]:not([ngModel]):not([formControl]),\n textarea[idsInput][ngModel]:not([formControl]):not([formControlName]),\n textarea[idsInput][formControl]:not([ngModel]):not([formControlName]),\n textarea[idsInput][formControlName]:not([ngModel]):not([formControl])", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, errorStateMatcher: { classPropertyName: "errorStateMatcher", publicName: "errorStateMatcher", isSignal: true, isRequired: false, transformFunction: null }, successStateMatcher: { classPropertyName: "successStateMatcher", publicName: "successStateMatcher", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "_focusChanged(true)", "blur": "_focusChanged(false)" }, properties: { "attr.placeholder": "placeholder()", "attr.disabled": "disabled() ? \"\" : null", "attr.readonly": "readonly() ? \"\" : null" } }, providers: [
|
|
699
699
|
{
|
|
700
700
|
provide: IDS_FORM_FIELD_CONTROL,
|
|
701
701
|
useExisting: IdsInputDirective,
|
|
702
702
|
},
|
|
703
703
|
], exportAs: ["idsInput"], usesInheritance: true, ngImport: i0 }); }
|
|
704
704
|
}
|
|
705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsInputDirective, decorators: [{
|
|
706
706
|
type: Directive,
|
|
707
707
|
args: [{
|
|
708
708
|
selector: `input[idsInput][ngModel]:not([formControl]):not([formControlName]),
|
|
@@ -752,22 +752,22 @@ class IdsOptionGroupComponent extends ComponentBase {
|
|
|
752
752
|
super(...arguments);
|
|
753
753
|
this._parent = inject(IDS_OPTION_PARENT_COMPONENT);
|
|
754
754
|
this._inert = this._parent?.inertGroups ?? false;
|
|
755
|
-
this.label = input();
|
|
756
|
-
this.disabled = input(false, { transform: coerceBooleanAttribute });
|
|
757
|
-
this._labelId = computed(() => `${this.id()}-label
|
|
755
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
756
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: coerceBooleanAttribute }] : [{ transform: coerceBooleanAttribute }]));
|
|
757
|
+
this._labelId = computed(() => `${this.id()}-label`, ...(ngDevMode ? [{ debugName: "_labelId" }] : []));
|
|
758
758
|
this._hostClasses = computed(() => this._getHostClasses([
|
|
759
759
|
this.disabled() ? 'disabled' : null,
|
|
760
760
|
this._parent.parentSize(),
|
|
761
761
|
this._parent.parentVariant(),
|
|
762
|
-
]));
|
|
762
|
+
]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
763
763
|
}
|
|
764
764
|
get _hostName() {
|
|
765
765
|
return 'option-group';
|
|
766
766
|
}
|
|
767
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
768
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
767
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsOptionGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
768
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.7", type: IdsOptionGroupComponent, isStandalone: true, selector: "ids-option-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "_inert ? null : \"group\"", "attr.aria-disabled": "_inert ? null : disabled().toString()", "attr.aria-labelledby": "_inert ? null : _labelId()" } }, providers: [{ provide: IDS_OPTION_GROUP, useExisting: IdsOptionGroupComponent }], usesInheritance: true, ngImport: i0, template: "<div role=\"presentation\" class=\"ids-option-group__label\" [id]=\"_labelId()\">\n <div class=\"ids-option-group__text\">{{ label() }}</div>\n</div>\n<ng-content select=\"ids-option, ng-container\" />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
769
769
|
}
|
|
770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsOptionGroupComponent, decorators: [{
|
|
771
771
|
type: Component,
|
|
772
772
|
args: [{ selector: 'ids-option-group', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: IDS_OPTION_GROUP, useExisting: IdsOptionGroupComponent }], host: {
|
|
773
773
|
'[attr.role]': '_inert ? null : "group"',
|
|
@@ -788,23 +788,23 @@ class PseudoCheckboxComponent extends ComponentBase {
|
|
|
788
788
|
constructor() {
|
|
789
789
|
super(...arguments);
|
|
790
790
|
this._parent = inject(IDS_PSEUDO_CHECKBOX_PARENT, { optional: true });
|
|
791
|
-
this.checkboxState = input(IdsPseudoCheckboxState.UNCHECKED);
|
|
792
|
-
this.disabled = input(false, { transform: coerceBooleanAttribute });
|
|
793
|
-
this._isChecked = computed(() => this.checkboxState() === IdsPseudoCheckboxState.CHECKED);
|
|
794
|
-
this._isIndeterminate = computed(() => this.checkboxState() === IdsPseudoCheckboxState.INDETERMINATE);
|
|
791
|
+
this.checkboxState = input(IdsPseudoCheckboxState.UNCHECKED, ...(ngDevMode ? [{ debugName: "checkboxState" }] : []));
|
|
792
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: coerceBooleanAttribute }] : [{ transform: coerceBooleanAttribute }]));
|
|
793
|
+
this._isChecked = computed(() => this.checkboxState() === IdsPseudoCheckboxState.CHECKED, ...(ngDevMode ? [{ debugName: "_isChecked" }] : []));
|
|
794
|
+
this._isIndeterminate = computed(() => this.checkboxState() === IdsPseudoCheckboxState.INDETERMINATE, ...(ngDevMode ? [{ debugName: "_isIndeterminate" }] : []));
|
|
795
795
|
this._hostClasses = computed(() => this._getHostClasses([
|
|
796
796
|
this._parent?.embeddedPseudoCheckboxSize(),
|
|
797
797
|
this._parent?.embeddedPseudoCheckboxVariant(),
|
|
798
798
|
this.disabled() ? 'disabled' : null,
|
|
799
|
-
]));
|
|
799
|
+
]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
800
800
|
}
|
|
801
801
|
get _hostName() {
|
|
802
802
|
return 'pseudo-checkbox';
|
|
803
803
|
}
|
|
804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
805
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
804
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: PseudoCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
805
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: PseudoCheckboxComponent, isStandalone: true, selector: "ids-pseudo-checkbox", inputs: { checkboxState: { classPropertyName: "checkboxState", publicName: "checkboxState", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ids-pseudo-checkbox__input-wrapper\">\n <input\n type=\"checkbox\"\n [disabled]=\"disabled()\"\n [attr.aria-checked]=\"_isIndeterminate() ? 'mixed' : null\"\n [checked]=\"_isChecked()\"\n [indeterminate]=\"_isIndeterminate()\"\n (change)=\"$event.stopPropagation()\"\n />\n <div class=\"ids-pseudo-checkbox__icon\" aria-hidden=\"true\">\n @if (_isIndeterminate()) {\n <ids-icon fontIcon=\"minus\" aria-hidden=\"true\" />\n }\n @if (_isChecked()) {\n <ids-icon fontIcon=\"check\" aria-hidden=\"true\" />\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
806
806
|
}
|
|
807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: PseudoCheckboxComponent, decorators: [{
|
|
808
808
|
type: Component,
|
|
809
809
|
args: [{ selector: 'ids-pseudo-checkbox', imports: [IdsIconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ids-pseudo-checkbox__input-wrapper\">\n <input\n type=\"checkbox\"\n [disabled]=\"disabled()\"\n [attr.aria-checked]=\"_isIndeterminate() ? 'mixed' : null\"\n [checked]=\"_isChecked()\"\n [indeterminate]=\"_isIndeterminate()\"\n (change)=\"$event.stopPropagation()\"\n />\n <div class=\"ids-pseudo-checkbox__icon\" aria-hidden=\"true\">\n @if (_isIndeterminate()) {\n <ids-icon fontIcon=\"minus\" aria-hidden=\"true\" />\n }\n @if (_isChecked()) {\n <ids-icon fontIcon=\"check\" aria-hidden=\"true\" />\n }\n </div>\n</div>\n" }]
|
|
810
810
|
}] });
|
|
@@ -819,18 +819,18 @@ class IdsOptionComponent extends ComponentBase {
|
|
|
819
819
|
this._element = inject(ElementRef);
|
|
820
820
|
this.group = inject(IDS_OPTION_GROUP, { optional: true });
|
|
821
821
|
this._textElement = viewChild.required('text');
|
|
822
|
-
this.selected = signal(false);
|
|
823
|
-
this._active = signal(false);
|
|
824
|
-
this.size = computed(() => this._parent.parentSize());
|
|
825
|
-
this.variant = computed(() => this._parent.parentVariant());
|
|
826
|
-
this.value = input();
|
|
827
|
-
this.explicitViewValue = input(null, { alias: 'viewValue' });
|
|
828
|
-
this.disabledInput = input(false, { alias: 'disabled', transform: coerceBooleanAttribute });
|
|
822
|
+
this.selected = signal(false, ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
823
|
+
this._active = signal(false, ...(ngDevMode ? [{ debugName: "_active" }] : []));
|
|
824
|
+
this.size = computed(() => this._parent.parentSize(), ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
825
|
+
this.variant = computed(() => this._parent.parentVariant(), ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
826
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
827
|
+
this.explicitViewValue = input(null, ...(ngDevMode ? [{ debugName: "explicitViewValue", alias: 'viewValue' }] : [{ alias: 'viewValue' }]));
|
|
828
|
+
this.disabledInput = input(false, ...(ngDevMode ? [{ debugName: "disabledInput", alias: 'disabled', transform: coerceBooleanAttribute }] : [{ alias: 'disabled', transform: coerceBooleanAttribute }]));
|
|
829
829
|
this.disabled = false; // Do not delete this class member, until ListKeyManagerOption requires: `disabled: boolean`
|
|
830
|
-
this._groupOrOptionIsDisabled = computed(() => this.group?.disabled() || this.disabledInput());
|
|
830
|
+
this._groupOrOptionIsDisabled = computed(() => this.group?.disabled() || this.disabledInput(), ...(ngDevMode ? [{ debugName: "_groupOrOptionIsDisabled" }] : []));
|
|
831
831
|
this._multiSelect = Boolean(this._parent?.multiSelect());
|
|
832
832
|
this.onSelectionChange = output();
|
|
833
|
-
this.viewValue = computed(() => this._textElement().nativeElement.textContent || this.explicitViewValue() || '');
|
|
833
|
+
this.viewValue = computed(() => this._textElement().nativeElement.textContent || this.explicitViewValue() || '', ...(ngDevMode ? [{ debugName: "viewValue" }] : []));
|
|
834
834
|
this._hostClasses = computed(() => this._getHostClasses([
|
|
835
835
|
this.selected() ? 'selected' : null,
|
|
836
836
|
this._active() ? 'active' : null,
|
|
@@ -838,10 +838,10 @@ class IdsOptionComponent extends ComponentBase {
|
|
|
838
838
|
this._multiSelect ? 'multiselect' : null,
|
|
839
839
|
this.size(),
|
|
840
840
|
this.variant(),
|
|
841
|
-
]));
|
|
842
|
-
this._pseudoCheckboxState = computed(() => (this.selected() ? IdsPseudoCheckboxState.CHECKED : IdsPseudoCheckboxState.UNCHECKED));
|
|
843
|
-
this.embeddedPseudoCheckboxSize = computed(() => this.size());
|
|
844
|
-
this.embeddedPseudoCheckboxVariant = signal(IdsFormFieldVariant.SURFACE);
|
|
841
|
+
]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
842
|
+
this._pseudoCheckboxState = computed(() => (this.selected() ? IdsPseudoCheckboxState.CHECKED : IdsPseudoCheckboxState.UNCHECKED), ...(ngDevMode ? [{ debugName: "_pseudoCheckboxState" }] : []));
|
|
843
|
+
this.embeddedPseudoCheckboxSize = computed(() => this.size(), ...(ngDevMode ? [{ debugName: "embeddedPseudoCheckboxSize" }] : []));
|
|
844
|
+
this.embeddedPseudoCheckboxVariant = signal(IdsFormFieldVariant.SURFACE, ...(ngDevMode ? [{ debugName: "embeddedPseudoCheckboxVariant" }] : []));
|
|
845
845
|
effect(() => {
|
|
846
846
|
this.disabled = this.disabledInput();
|
|
847
847
|
});
|
|
@@ -904,15 +904,15 @@ class IdsOptionComponent extends ComponentBase {
|
|
|
904
904
|
this.onSelectionChange.emit(new IdsOptionSelectionChange(this, selected, isUserInput));
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
908
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
908
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsOptionComponent, isStandalone: true, selector: "ids-option", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, explicitViewValue: { classPropertyName: "explicitViewValue", publicName: "viewValue", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectionChange: "onSelectionChange" }, host: { attributes: { "role": "option" }, listeners: { "click": "selectViaInteraction()", "keydown": "_handleKeydown($event)" }, properties: { "attr.aria-selected": "selected()", "attr.aria-disabled": "disabled.toString()" } }, providers: [
|
|
909
909
|
{
|
|
910
910
|
provide: IDS_PSEUDO_CHECKBOX_PARENT,
|
|
911
911
|
useExisting: IdsOptionComponent,
|
|
912
912
|
},
|
|
913
913
|
], viewQueries: [{ propertyName: "_textElement", first: true, predicate: ["text"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (_multiSelect) {\n <ids-pseudo-checkbox aria-hidden=\"true\" [disabled]=\"_groupOrOptionIsDisabled()\" [checkboxState]=\"_pseudoCheckboxState()\" />\n}\n\n<div #text class=\"ids-option__text\"><ng-content /></div>\n\n@if (!_multiSelect && selected()) {\n <ids-icon fontIcon=\"check\" />\n}\n", dependencies: [{ kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }, { kind: "component", type: PseudoCheckboxComponent, selector: "ids-pseudo-checkbox", inputs: ["checkboxState", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
914
914
|
}
|
|
915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsOptionComponent, decorators: [{
|
|
916
916
|
type: Component,
|
|
917
917
|
args: [{ selector: 'ids-option', imports: [
|
|
918
918
|
IdsIconComponent,
|
|
@@ -953,10 +953,10 @@ function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosit
|
|
|
953
953
|
}
|
|
954
954
|
|
|
955
955
|
class IdsLabelDirective {
|
|
956
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
957
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
957
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: IdsLabelDirective, isStandalone: true, selector: "ids-label", ngImport: i0 }); }
|
|
958
958
|
}
|
|
959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsLabelDirective, decorators: [{
|
|
960
960
|
type: Directive,
|
|
961
961
|
args: [{
|
|
962
962
|
selector: 'ids-label',
|