@inera/ids-angular 8.1.0 → 9.0.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/common/classes/form/IDErrorMessageBase.d.ts +8 -0
- package/common/classes/form/IDFormBase.d.ts +27 -10
- package/common/context/header-context.d.ts +5 -0
- package/common/directives/click-outside.directive.d.ts +11 -0
- package/common/public-api.d.ts +7 -0
- package/common/services/input-label-linker.service.d.ts +10 -0
- package/common/services/tooltip-category.service.d.ts +7 -0
- package/common/services/use-id.service.ts.d.ts +7 -0
- package/common/utilities/useEscKey.d.ts +1 -0
- package/components/accordion/accordion-header.component.d.ts +7 -0
- package/components/accordion/accordion.component.d.ts +21 -9
- package/components/accordion/public-api.d.ts +1 -1
- package/components/action-link/action-link.component.d.ts +5 -0
- package/components/action-link/index.d.ts +5 -0
- package/components/action-link/public-api.d.ts +1 -0
- package/components/alert/alert-header.component.d.ts +7 -0
- package/components/alert/alert.component.d.ts +29 -14
- package/components/alert/public-api.d.ts +1 -1
- package/components/badge/badge.component.d.ts +3 -2
- package/components/badge/public-api.d.ts +0 -1
- package/components/box-link/box-link-button.component.d.ts +7 -0
- package/components/box-link/box-link.component.d.ts +3 -2
- package/components/box-link/public-api.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.component.d.ts +5 -2
- package/components/breadcrumbs/crumb.component.d.ts +2 -3
- package/components/breadcrumbs/public-api.d.ts +0 -1
- package/components/button/button.directive.d.ts +42 -0
- package/components/button/public-api.d.ts +1 -2
- package/components/button-group/button-group.component.d.ts +4 -1
- package/components/button-group/public-api.d.ts +0 -1
- package/components/card/card-link.directive.d.ts +5 -0
- package/components/card/card.component.d.ts +12 -6
- package/components/card/public-api.d.ts +1 -1
- package/components/carousel/carousel-item/carousel-item.component.d.ts +6 -2
- package/components/carousel/carousel.component.d.ts +17 -5
- package/components/carousel/public-api.d.ts +0 -1
- package/components/date-label/date-label.component.d.ts +25 -13
- package/components/date-label/public-api.d.ts +0 -1
- package/components/dialog/dialog-close.component.d.ts +8 -0
- package/components/dialog/dialog-content.component.d.ts +5 -0
- package/components/dialog/dialog-footer.component.d.ts +5 -0
- package/components/dialog/dialog-header.component.d.ts +5 -0
- package/components/dialog/dialog-trigger.component.d.ts +5 -0
- package/components/dialog/dialog.component.d.ts +39 -11
- package/components/dialog/public-api.d.ts +5 -1
- package/components/dropdown/dropdown-item.directive.d.ts +5 -0
- package/components/dropdown/dropdown-trigger.component.d.ts +6 -0
- package/components/dropdown/dropdown.component.d.ts +27 -15
- package/components/dropdown/dropdown.module.d.ts +9 -0
- package/components/dropdown/public-api.d.ts +3 -1
- package/components/footer-1177/footer-1177-col.component.d.ts +12 -0
- package/components/footer-1177/footer-1177-sub-footer-left.component.d.ts +5 -0
- package/components/footer-1177/footer-1177-sub-footer-mobile.component.d.ts +5 -0
- package/components/footer-1177/footer-1177-sub-footer-right.component.d.ts +5 -0
- package/components/footer-1177/footer-1177-text.component.d.ts +6 -0
- package/components/footer-1177/footer-1177.component.d.ts +7 -6
- package/components/footer-1177/footer-1177.module.d.ts +12 -0
- package/components/footer-1177/public-api.d.ts +6 -0
- package/components/footer-1177-admin/footer-1177-admin-col.component.d.ts +12 -0
- package/components/footer-1177-admin/footer-1177-admin-sub-footer-left.component.d.ts +5 -0
- package/components/footer-1177-admin/footer-1177-admin-sub-footer-mobile.component.d.ts +5 -0
- package/components/footer-1177-admin/footer-1177-admin-sub-footer-right.component.d.ts +5 -0
- package/components/footer-1177-admin/footer-1177-admin-text.component.d.ts +6 -0
- package/components/footer-1177-admin/footer-1177-admin.component.d.ts +7 -6
- package/components/footer-1177-admin/footer-1177-admin.module.d.ts +12 -0
- package/components/footer-1177-admin/public-api.d.ts +6 -0
- package/components/footer-1177-pro/footer-1177-pro-col.component.d.ts +12 -0
- package/components/footer-1177-pro/footer-1177-pro-sub-footer-left.component.d.ts +5 -0
- package/components/footer-1177-pro/footer-1177-pro-sub-footer-mobile.component.d.ts +5 -0
- package/components/footer-1177-pro/footer-1177-pro-sub-footer-right.component.d.ts +5 -0
- package/components/footer-1177-pro/footer-1177-pro-text.component.d.ts +6 -0
- package/components/footer-1177-pro/footer-1177-pro.component.d.ts +6 -5
- package/components/footer-1177-pro/footer-1177-pro.module.d.ts +12 -0
- package/components/footer-1177-pro/public-api.d.ts +6 -0
- package/components/footer-inera/footer-inera-col.component.d.ts +12 -0
- package/components/footer-inera/footer-inera-sub-footer-left.component.d.ts +5 -0
- package/components/footer-inera/footer-inera-sub-footer-mobile.component.d.ts +5 -0
- package/components/footer-inera/footer-inera-sub-footer-right.component.d.ts +5 -0
- package/components/footer-inera/footer-inera-text.component.d.ts +6 -0
- package/components/footer-inera/footer-inera.component.d.ts +6 -5
- package/components/footer-inera/footer-inera.module.d.ts +12 -0
- package/components/footer-inera/public-api.d.ts +6 -0
- package/components/footer-inera-admin/footer-inera-admin-col.component.d.ts +14 -0
- package/components/footer-inera-admin/footer-inera-admin-sub-footer-left.component.d.ts +5 -0
- package/components/footer-inera-admin/footer-inera-admin-sub-footer-mobile.component.d.ts +5 -0
- package/components/footer-inera-admin/footer-inera-admin-sub-footer-right.component.d.ts +5 -0
- package/components/footer-inera-admin/footer-inera-admin-text.component.d.ts +6 -0
- package/components/footer-inera-admin/footer-inera-admin.component.d.ts +6 -5
- package/components/footer-inera-admin/footer-inera-admin.module.d.ts +12 -0
- package/components/footer-inera-admin/public-api.d.ts +7 -1
- package/components/form/check-button/check-button.component.d.ts +4 -3
- package/components/form/check-button/public-api.d.ts +0 -1
- package/components/form/checkbox/checkbox.component.d.ts +14 -8
- package/components/form/checkbox/public-api.d.ts +0 -1
- package/components/form/checkbox-group/checkbox-group.component.d.ts +13 -9
- package/components/form/checkbox-group/public-api.d.ts +0 -1
- package/components/form/darkmode-toggle/darkmode-toggle.component.d.ts +6 -0
- package/components/form/darkmode-toggle/index.d.ts +5 -0
- package/components/form/darkmode-toggle/public-api.d.ts +1 -0
- package/components/form/error-message/error-message.component.d.ts +6 -7
- package/components/form/error-message/public-api.d.ts +0 -1
- package/components/form/input/input-hint.component.d.ts +5 -0
- package/components/form/input/input-icon.component.d.ts +7 -0
- package/components/form/input/input.component.d.ts +13 -6
- package/components/form/input/public-api.d.ts +2 -1
- package/components/form/radio/public-api.d.ts +0 -1
- package/components/form/radio/radio-group.component.d.ts +14 -7
- package/components/form/radio/radio.component.d.ts +4 -2
- package/components/form/radio-button/public-api.d.ts +0 -1
- package/components/form/radio-button/radio-button-group.component.d.ts +9 -3
- package/components/form/radio-button/radio-button.component.d.ts +5 -3
- package/components/form/range/public-api.d.ts +0 -1
- package/components/form/range/range.component.d.ts +14 -4
- package/components/form/select/public-api.d.ts +0 -1
- package/components/form/select/select.component.d.ts +5 -3
- package/components/form/select-multiple/public-api.d.ts +0 -1
- package/components/form/select-multiple/select-multiple.component.d.ts +29 -9
- package/components/form/spinner/public-api.d.ts +0 -1
- package/components/form/spinner/spinner.component.d.ts +4 -4
- package/components/form/textarea/public-api.d.ts +1 -1
- package/components/form/textarea/textarea-hint.component.d.ts +5 -0
- package/components/form/textarea/textarea.component.d.ts +14 -6
- package/components/form/time/public-api.d.ts +0 -1
- package/components/form/time/time.component.d.ts +4 -2
- package/components/form/toggle/public-api.d.ts +0 -1
- package/components/form/toggle/toggle.component.d.ts +1 -1
- package/components/global-alert/global-alert-actions.component.d.ts +8 -0
- package/components/global-alert/global-alert-header.component.d.ts +8 -0
- package/components/global-alert/global-alert.component.d.ts +21 -9
- package/components/global-alert/public-api.d.ts +2 -1
- package/components/grid/column/column.component.d.ts +6 -9
- package/components/grid/column/public-api.d.ts +0 -1
- package/components/grid/container/container.component.d.ts +4 -3
- package/components/grid/container/public-api.d.ts +0 -1
- package/components/grid/public-api.d.ts +0 -3
- package/components/grid/row/public-api.d.ts +0 -1
- package/components/grid/row/row.component.d.ts +6 -9
- package/components/grid-layout/grid-column/grid-column.component.d.ts +18 -0
- package/components/grid-layout/grid-column/index.d.ts +5 -0
- package/components/grid-layout/grid-column/public-api.d.ts +1 -0
- package/components/grid-layout/grid-container/grid-container.component.d.ts +10 -0
- package/components/grid-layout/grid-container/index.d.ts +5 -0
- package/components/grid-layout/grid-container/public-api.d.ts +1 -0
- package/components/grid-layout/grid-row/grid-row.component.d.ts +11 -0
- package/components/grid-layout/grid-row/index.d.ts +5 -0
- package/components/grid-layout/grid-row/public-api.d.ts +1 -0
- package/components/grid-layout/index.d.ts +5 -0
- package/components/grid-layout/public-api.d.ts +3 -0
- package/components/header-1177/avatar/header-1177-avatar-agent.component.d.ts +5 -0
- package/components/header-1177/avatar/header-1177-avatar.component.d.ts +14 -4
- package/components/header-1177/brand-link/header-1177-brand-link.directive.d.ts +5 -0
- package/components/header-1177/header-1177.component.d.ts +12 -15
- package/components/header-1177/header-1177.module.d.ts +19 -0
- package/components/header-1177/item/header-1177-item.component.d.ts +7 -4
- package/components/header-1177/menu-mobile/header-1177-menu-mobile.component.d.ts +6 -2
- package/components/header-1177/nav/header-1177-nav.component.d.ts +4 -18
- package/components/header-1177/nav-item/header-1177-nav-item.component.d.ts +18 -3
- package/components/header-1177/nav-item-menu-link/header-1177-nav-item-menu-link.component.d.ts +5 -0
- package/components/header-1177/nav-item-mobile/header-1177-nav-item-mobile.component.d.ts +4 -3
- package/components/header-1177/public-api.d.ts +5 -0
- package/components/header-1177/region-picker/header-1177-region-picker.component.d.ts +11 -4
- package/components/header-1177/region-picker-mobile/header-1177-region-picker-mobile.component.d.ts +12 -5
- package/components/header-1177/skip-to-content/header-1177-skip-to-content.component.d.ts +5 -0
- package/components/header-1177-admin/avatar/header-1177-admin-avatar.component.d.ts +16 -4
- package/components/header-1177-admin/avatar-mobile/header-1177-admin-avatar-mobile.component.d.ts +18 -5
- package/components/header-1177-admin/brand-link/header-1177-admin-brand-link.directive.d.ts +5 -0
- package/components/header-1177-admin/header-1177-admin.component.d.ts +12 -20
- package/components/header-1177-admin/header-1177-admin.module.d.ts +17 -0
- package/components/header-1177-admin/item/header-1177-admin-item.component.d.ts +5 -3
- package/components/header-1177-admin/menu-mobile/header-1177-admin-menu-mobile.component.d.ts +6 -2
- package/components/header-1177-admin/nav/header-1177-admin-nav.component.d.ts +4 -12
- package/components/header-1177-admin/nav-item/header-1177-admin-nav-item.component.d.ts +20 -5
- package/components/header-1177-admin/nav-item-menu-link/header-1177-admin-nav-item-menu-link.component.d.ts +5 -0
- package/components/header-1177-admin/nav-item-mobile/header-1177-admin-nav-item-mobile.d.ts +8 -0
- package/components/header-1177-admin/public-api.d.ts +5 -0
- package/components/header-1177-admin/skip-to-content/header-1177-admin-skip-to-content.component.d.ts +5 -0
- package/components/header-1177-pro/avatar/header-1177-pro-avatar.component.d.ts +18 -6
- package/components/header-1177-pro/avatar-mobile/header-1177-pro-avatar-mobile.component.d.ts +18 -5
- package/components/header-1177-pro/brand-link/header-1177-pro-brand-link.directive.d.ts +5 -0
- package/components/header-1177-pro/header-1177-pro.component.d.ts +10 -22
- package/components/header-1177-pro/header-1177-pro.module.d.ts +19 -0
- package/components/header-1177-pro/item/header-1177-pro-item.component.d.ts +5 -3
- package/components/header-1177-pro/menu-mobile/header-1177-pro-menu-mobile.component.d.ts +6 -3
- package/components/header-1177-pro/nav/header-1177-pro-nav.component.d.ts +4 -15
- package/components/header-1177-pro/nav-item/header-1177-pro-nav-item.component.d.ts +19 -5
- package/components/header-1177-pro/nav-item-menu-link/header-1177-pro-nav-item-menu-link.component.d.ts +5 -0
- package/components/header-1177-pro/nav-item-mobile/header-1177-pro-nav-item-mobile.d.ts +8 -0
- package/components/header-1177-pro/public-api.d.ts +5 -0
- package/components/header-1177-pro/region-picker/header-1177-pro-region-picker.component.d.ts +11 -4
- package/components/header-1177-pro/region-picker-mobile/header-1177-pro-region-picker-mobile.component.d.ts +12 -5
- package/components/header-1177-pro/skip-to-content/header-1177-pro-skip-to-content.component.d.ts +5 -0
- package/components/header-inera/brand-link/header-inera-brand-link.directive.d.ts +5 -0
- package/components/header-inera/header-inera.component.d.ts +13 -16
- package/components/header-inera/header-inera.module.d.ts +14 -0
- package/components/header-inera/item/header-inera-item.component.d.ts +5 -3
- package/components/header-inera/menu-mobile/header-inera-menu-mobile.component.d.ts +5 -5
- package/components/header-inera/nav/header-inera-nav.component.d.ts +4 -9
- package/components/header-inera/nav-item/header-inera-nav-item.component.d.ts +25 -0
- package/components/header-inera/nav-item-menu-link/header-inera-nav-item-menu-link.component.d.ts +5 -0
- package/components/header-inera/public-api.d.ts +5 -1
- package/components/header-inera/skip-to-content/header-inera-skip-to-content.component.d.ts +5 -0
- package/components/header-inera-admin/avatar/header-inera-admin-avatar.component.d.ts +18 -6
- package/components/header-inera-admin/avatar-mobile/header-inera-admin-avatar-mobile.component.d.ts +18 -5
- package/components/header-inera-admin/brand-link/header-inera-admin-brand-link.directive.d.ts +5 -0
- package/components/header-inera-admin/header-inera-admin.component.d.ts +16 -16
- package/components/header-inera-admin/header-inera-admin.module.d.ts +17 -0
- package/components/header-inera-admin/item/header-inera-admin-item.component.d.ts +7 -4
- package/components/header-inera-admin/menu-mobile/header-inera-admin-menu-mobile.component.d.ts +6 -3
- package/components/header-inera-admin/nav/header-inera-admin-nav.component.d.ts +4 -11
- package/components/header-inera-admin/nav-item/header-inera-admin-nav-item.component.d.ts +19 -5
- package/components/header-inera-admin/nav-item-menu-link/header-inera-admin-nav-item-menu-link.component.d.ts +5 -0
- package/components/header-inera-admin/nav-item-mobile/header-inera-admin-nav-item-mobile.d.ts +8 -0
- package/components/header-inera-admin/public-api.d.ts +5 -0
- package/components/header-inera-admin/skip-to-content/header-inera-admin-skip-to-content.component.d.ts +5 -0
- package/components/header-patient/header-patient-actions.component.d.ts +5 -0
- package/components/header-patient/header-patient.component.d.ts +5 -5
- package/components/header-patient/public-api.d.ts +1 -1
- package/components/link/link.directive.d.ts +22 -0
- package/components/link/public-api.d.ts +1 -2
- package/components/mobile/menu/item/mobile-menu-item.component.d.ts +22 -4
- package/components/mobile/menu/item/public-api.d.ts +0 -1
- package/components/mobile/menu/mobile-menu.component.d.ts +5 -3
- package/components/mobile/menu/public-api.d.ts +0 -1
- package/components/navigation/content/navigation-content-link.component.d.ts +7 -0
- package/components/navigation/content/navigation-content.component.d.ts +6 -4
- package/components/navigation/content/public-api.d.ts +1 -1
- package/components/navigation/local/navigation-local-link.component.d.ts +7 -0
- package/components/navigation/local/navigation-local.component.d.ts +5 -3
- package/components/navigation/local/public-api.d.ts +1 -1
- package/components/{notification/badge → notification-badge}/index.d.ts +1 -1
- package/components/{notification/badge → notification-badge}/notification-badge.component.d.ts +4 -3
- package/components/{notification/badge → notification-badge}/public-api.d.ts +0 -1
- package/components/pagination/data-pagination/data-pagination-select.component.d.ts +5 -0
- package/components/pagination/data-pagination/data-pagination.component.d.ts +3 -3
- package/components/pagination/data-pagination/public-api.d.ts +1 -1
- package/components/pagination/list-pagination/list-pagination.component.d.ts +21 -15
- package/components/pagination/list-pagination/public-api.d.ts +0 -1
- package/components/popover/popover-close.component.d.ts +8 -0
- package/components/popover/popover-content.component.d.ts +17 -0
- package/components/popover/popover-header.component.d.ts +5 -0
- package/components/popover/popover-trigger.component.d.ts +5 -0
- package/components/popover/popover.component.d.ts +29 -9
- package/components/popover/popover.module.d.ts +5 -2
- package/components/popover/public-api.d.ts +5 -1
- package/components/progressbar/progressbar.component.d.ts +4 -4
- package/components/progressbar/public-api.d.ts +0 -1
- package/components/puff-list/public-api.d.ts +7 -4
- package/components/puff-list/puff-list-item-content-info.component.d.ts +5 -0
- package/components/puff-list/puff-list-item-content.component.d.ts +5 -0
- package/components/puff-list/puff-list-item-date-label.component.d.ts +5 -0
- package/components/puff-list/puff-list-item-extra-content.component.d.ts +5 -0
- package/components/puff-list/{puff-item/puff-header/puff-list-item-header.component.d.ts → puff-list-item-header.component.d.ts} +1 -3
- package/components/puff-list/puff-list-item.component.d.ts +12 -0
- package/components/puff-list/puff-list.component.d.ts +4 -1
- package/components/puff-list/puff-list.module.d.ts +7 -5
- package/components/region-icon/public-api.d.ts +0 -1
- package/components/region-icon/region-icon.component.d.ts +5 -3
- package/components/side-menu/public-api.d.ts +3 -1
- package/components/side-menu/side-menu-icon.component.d.ts +7 -0
- package/components/side-menu/side-menu-link.component.d.ts +5 -0
- package/components/side-menu/side-menu.component.d.ts +15 -7
- package/components/side-menu/side-menu.module.d.ts +3 -2
- package/components/side-panel/public-api.d.ts +3 -1
- package/components/side-panel/side-panel-footer.component.d.ts +5 -0
- package/components/side-panel/side-panel-provider.component.d.ts +9 -0
- package/components/side-panel/side-panel.component.d.ts +30 -12
- package/components/side-panel/side-panel.module.d.ts +3 -2
- package/components/stepper/public-api.d.ts +3 -2
- package/components/stepper/step-header.component.d.ts +5 -0
- package/components/stepper/step.component.d.ts +20 -0
- package/components/stepper/stepper.component.d.ts +6 -5
- package/components/stepper/stepper.module.d.ts +3 -3
- package/components/tabs/public-api.d.ts +2 -4
- package/components/tabs/tab-group.component.d.ts +21 -0
- package/components/tabs/tab.component.d.ts +14 -0
- package/components/tag/public-api.d.ts +1 -1
- package/components/tag/tag.component.d.ts +4 -5
- package/components/tag/tag.directive.d.ts +5 -0
- package/components/tooltip/public-api.d.ts +1 -0
- package/components/tooltip/tooltip-trigger.directive.d.ts +8 -0
- package/components/tooltip/tooltip.component.d.ts +18 -5
- package/components/tooltip/tooltip.module.d.ts +2 -2
- package/eslint/index.js +6 -0
- package/eslint/rules/no-old-components.js +39 -0
- package/eslint/rules/no-slots.js +254 -0
- package/esm2022/common/classes/form/IDErrorMessageBase.mjs +19 -0
- package/esm2022/common/classes/form/IDFormBase.mjs +119 -31
- package/esm2022/common/context/header-context.mjs +3 -0
- package/esm2022/common/directives/click-outside.directive.mjs +30 -0
- package/esm2022/common/public-api.mjs +8 -1
- package/esm2022/common/services/input-label-linker.service.mjs +26 -0
- package/esm2022/common/services/tooltip-category.service.mjs +16 -0
- package/esm2022/common/services/use-id.service.ts.mjs +19 -0
- package/esm2022/common/utilities/useEscKey.mjs +11 -0
- package/esm2022/components/accordion/accordion-header.component.mjs +25 -0
- package/esm2022/components/accordion/accordion.component.mjs +78 -25
- package/esm2022/components/accordion/public-api.mjs +2 -2
- package/esm2022/components/action-link/action-link.component.mjs +32 -0
- package/esm2022/components/action-link/inera-ids-angular-components-action-link.mjs +5 -0
- package/esm2022/components/action-link/public-api.mjs +2 -0
- package/esm2022/components/alert/alert-header.component.mjs +25 -0
- package/esm2022/components/alert/alert.component.mjs +93 -33
- package/esm2022/components/alert/public-api.mjs +2 -2
- package/esm2022/components/badge/badge.component.mjs +13 -6
- package/esm2022/components/badge/public-api.mjs +1 -2
- package/esm2022/components/box-link/box-link-button.component.mjs +25 -0
- package/esm2022/components/box-link/box-link.component.mjs +14 -6
- package/esm2022/components/box-link/public-api.mjs +2 -2
- package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +16 -7
- package/esm2022/components/breadcrumbs/crumb.component.mjs +10 -11
- package/esm2022/components/breadcrumbs/public-api.mjs +1 -2
- package/esm2022/components/button/button.directive.mjs +140 -0
- package/esm2022/components/button/public-api.mjs +2 -3
- package/esm2022/components/button-group/button-group.component.mjs +22 -6
- package/esm2022/components/button-group/public-api.mjs +1 -2
- package/esm2022/components/card/card-link.directive.mjs +17 -0
- package/esm2022/components/card/card.component.mjs +35 -20
- package/esm2022/components/card/public-api.mjs +2 -2
- package/esm2022/components/carousel/carousel-item/carousel-item.component.mjs +21 -9
- package/esm2022/components/carousel/carousel.component.mjs +62 -9
- package/esm2022/components/carousel/public-api.mjs +1 -2
- package/esm2022/components/date-label/date-label.component.mjs +105 -25
- package/esm2022/components/date-label/public-api.mjs +1 -2
- package/esm2022/components/dialog/dialog-close.component.mjs +24 -0
- package/esm2022/components/dialog/dialog-content.component.mjs +15 -0
- package/esm2022/components/dialog/dialog-footer.component.mjs +18 -0
- package/esm2022/components/dialog/dialog-header.component.mjs +15 -0
- package/esm2022/components/dialog/dialog-trigger.component.mjs +15 -0
- package/esm2022/components/dialog/dialog.component.mjs +134 -28
- package/esm2022/components/dialog/public-api.mjs +6 -2
- package/esm2022/components/dropdown/dropdown-item.directive.mjs +18 -0
- package/esm2022/components/dropdown/dropdown-trigger.component.mjs +16 -0
- package/esm2022/components/dropdown/dropdown.component.mjs +83 -35
- package/esm2022/components/dropdown/dropdown.module.mjs +30 -0
- package/esm2022/components/dropdown/public-api.mjs +4 -2
- package/esm2022/components/footer-1177/footer-1177-col.component.mjs +42 -0
- package/esm2022/components/footer-1177/footer-1177-sub-footer-left.component.mjs +18 -0
- package/esm2022/components/footer-1177/footer-1177-sub-footer-mobile.component.mjs +18 -0
- package/esm2022/components/footer-1177/footer-1177-sub-footer-right.component.mjs +18 -0
- package/esm2022/components/footer-1177/footer-1177-text.component.mjs +29 -0
- package/esm2022/components/footer-1177/footer-1177.component.mjs +30 -16
- package/esm2022/components/footer-1177/footer-1177.module.mjs +45 -0
- package/esm2022/components/footer-1177/public-api.mjs +7 -1
- package/esm2022/components/footer-1177-admin/footer-1177-admin-col.component.mjs +42 -0
- package/esm2022/components/footer-1177-admin/footer-1177-admin-sub-footer-left.component.mjs +18 -0
- package/esm2022/components/footer-1177-admin/footer-1177-admin-sub-footer-mobile.component.mjs +18 -0
- package/esm2022/components/footer-1177-admin/footer-1177-admin-sub-footer-right.component.mjs +18 -0
- package/esm2022/components/footer-1177-admin/footer-1177-admin-text.component.mjs +29 -0
- package/esm2022/components/footer-1177-admin/footer-1177-admin.component.mjs +29 -14
- package/esm2022/components/footer-1177-admin/footer-1177-admin.module.mjs +45 -0
- package/esm2022/components/footer-1177-admin/public-api.mjs +7 -1
- package/esm2022/components/footer-1177-pro/footer-1177-pro-col.component.mjs +42 -0
- package/esm2022/components/footer-1177-pro/footer-1177-pro-sub-footer-left.component.mjs +18 -0
- package/esm2022/components/footer-1177-pro/footer-1177-pro-sub-footer-mobile.component.mjs +18 -0
- package/esm2022/components/footer-1177-pro/footer-1177-pro-sub-footer-right.component.mjs +18 -0
- package/esm2022/components/footer-1177-pro/footer-1177-pro-text.component.mjs +29 -0
- package/esm2022/components/footer-1177-pro/footer-1177-pro.component.mjs +29 -14
- package/esm2022/components/footer-1177-pro/footer-1177-pro.module.mjs +45 -0
- package/esm2022/components/footer-1177-pro/public-api.mjs +7 -1
- package/esm2022/components/footer-inera/footer-inera-col.component.mjs +42 -0
- package/esm2022/components/footer-inera/footer-inera-sub-footer-left.component.mjs +18 -0
- package/esm2022/components/footer-inera/footer-inera-sub-footer-mobile.component.mjs +18 -0
- package/esm2022/components/footer-inera/footer-inera-sub-footer-right.component.mjs +18 -0
- package/esm2022/components/footer-inera/footer-inera-text.component.mjs +29 -0
- package/esm2022/components/footer-inera/footer-inera.component.mjs +29 -14
- package/esm2022/components/footer-inera/footer-inera.module.mjs +45 -0
- package/esm2022/components/footer-inera/public-api.mjs +7 -1
- package/esm2022/components/footer-inera-admin/footer-inera-admin-col.component.mjs +46 -0
- package/esm2022/components/footer-inera-admin/footer-inera-admin-sub-footer-left.component.mjs +18 -0
- package/esm2022/components/footer-inera-admin/footer-inera-admin-sub-footer-mobile.component.mjs +18 -0
- package/esm2022/components/footer-inera-admin/footer-inera-admin-sub-footer-right.component.mjs +18 -0
- package/esm2022/components/footer-inera-admin/footer-inera-admin-text.component.mjs +29 -0
- package/esm2022/components/footer-inera-admin/footer-inera-admin.component.mjs +29 -14
- package/esm2022/components/footer-inera-admin/footer-inera-admin.module.mjs +45 -0
- package/esm2022/components/footer-inera-admin/public-api.mjs +8 -2
- package/esm2022/components/form/check-button/check-button.component.mjs +11 -8
- package/esm2022/components/form/check-button/public-api.mjs +1 -2
- package/esm2022/components/form/checkbox/checkbox.component.mjs +39 -19
- package/esm2022/components/form/checkbox/public-api.mjs +1 -2
- package/esm2022/components/form/checkbox-group/checkbox-group.component.mjs +34 -16
- package/esm2022/components/form/checkbox-group/public-api.mjs +1 -2
- package/esm2022/components/form/darkmode-toggle/darkmode-toggle.component.mjs +12 -0
- package/esm2022/components/form/darkmode-toggle/inera-ids-angular-components-form-darkmode-toggle.mjs +5 -0
- package/esm2022/components/form/darkmode-toggle/public-api.mjs +2 -0
- package/esm2022/components/form/error-message/error-message.component.mjs +40 -15
- package/esm2022/components/form/error-message/public-api.mjs +1 -2
- package/esm2022/components/form/input/input-hint.component.mjs +18 -0
- package/esm2022/components/form/input/input-icon.component.mjs +23 -0
- package/esm2022/components/form/input/input.component.mjs +35 -14
- package/esm2022/components/form/input/public-api.mjs +3 -2
- package/esm2022/components/form/radio/public-api.mjs +1 -2
- package/esm2022/components/form/radio/radio-group.component.mjs +44 -17
- package/esm2022/components/form/radio/radio.component.mjs +18 -8
- package/esm2022/components/form/radio-button/public-api.mjs +1 -2
- package/esm2022/components/form/radio-button/radio-button-group.component.mjs +35 -7
- package/esm2022/components/form/radio-button/radio-button.component.mjs +13 -5
- package/esm2022/components/form/range/public-api.mjs +1 -2
- package/esm2022/components/form/range/range.component.mjs +65 -8
- package/esm2022/components/form/select/public-api.mjs +1 -2
- package/esm2022/components/form/select/select.component.mjs +9 -5
- package/esm2022/components/form/select-multiple/public-api.mjs +1 -2
- package/esm2022/components/form/select-multiple/select-multiple.component.mjs +86 -23
- package/esm2022/components/form/spinner/public-api.mjs +1 -2
- package/esm2022/components/form/spinner/spinner.component.mjs +15 -11
- package/esm2022/components/form/textarea/public-api.mjs +2 -2
- package/esm2022/components/form/textarea/textarea-hint.component.mjs +18 -0
- package/esm2022/components/form/textarea/textarea.component.mjs +46 -14
- package/esm2022/components/form/time/public-api.mjs +1 -2
- package/esm2022/components/form/time/time.component.mjs +7 -4
- package/esm2022/components/form/toggle/public-api.mjs +1 -2
- package/esm2022/components/form/toggle/toggle.component.mjs +6 -4
- package/esm2022/components/global-alert/global-alert-actions.component.mjs +26 -0
- package/esm2022/components/global-alert/global-alert-header.component.mjs +26 -0
- package/esm2022/components/global-alert/global-alert.component.mjs +73 -23
- package/esm2022/components/global-alert/public-api.mjs +3 -2
- package/esm2022/components/grid/column/column.component.mjs +41 -23
- package/esm2022/components/grid/column/public-api.mjs +1 -2
- package/esm2022/components/grid/container/container.component.mjs +18 -6
- package/esm2022/components/grid/container/public-api.mjs +1 -2
- package/esm2022/components/grid/public-api.mjs +1 -4
- package/esm2022/components/grid/row/public-api.mjs +1 -2
- package/esm2022/components/grid/row/row.component.mjs +31 -19
- package/esm2022/components/grid-layout/grid-column/grid-column.component.mjs +72 -0
- package/esm2022/components/grid-layout/grid-column/inera-ids-angular-components-grid-layout-grid-column.mjs +5 -0
- package/esm2022/components/grid-layout/grid-column/public-api.mjs +2 -0
- package/esm2022/components/grid-layout/grid-container/grid-container.component.mjs +35 -0
- package/esm2022/components/grid-layout/grid-container/inera-ids-angular-components-grid-layout-grid-container.mjs +5 -0
- package/esm2022/components/grid-layout/grid-container/public-api.mjs +2 -0
- package/esm2022/components/grid-layout/grid-row/grid-row.component.mjs +43 -0
- package/esm2022/components/grid-layout/grid-row/inera-ids-angular-components-grid-layout-grid-row.mjs +5 -0
- package/esm2022/components/grid-layout/grid-row/public-api.mjs +2 -0
- package/esm2022/components/grid-layout/inera-ids-angular-components-grid-layout.mjs +5 -0
- package/esm2022/components/grid-layout/public-api.mjs +4 -0
- package/esm2022/components/header-1177/avatar/header-1177-avatar-agent.component.mjs +20 -0
- package/esm2022/components/header-1177/avatar/header-1177-avatar.component.mjs +102 -14
- package/esm2022/components/header-1177/brand-link/header-1177-brand-link.directive.mjs +17 -0
- package/esm2022/components/header-1177/header-1177.component.mjs +34 -42
- package/esm2022/components/header-1177/header-1177.module.mjs +80 -0
- package/esm2022/components/header-1177/item/header-1177-item.component.mjs +42 -11
- package/esm2022/components/header-1177/menu-mobile/header-1177-menu-mobile.component.mjs +50 -7
- package/esm2022/components/header-1177/nav/header-1177-nav.component.mjs +45 -57
- package/esm2022/components/header-1177/nav-item/header-1177-nav-item.component.mjs +141 -11
- package/esm2022/components/header-1177/nav-item-menu-link/header-1177-nav-item-menu-link.component.mjs +18 -0
- package/esm2022/components/header-1177/nav-item-mobile/header-1177-nav-item-mobile.component.mjs +29 -8
- package/esm2022/components/header-1177/public-api.mjs +6 -1
- package/esm2022/components/header-1177/region-picker/header-1177-region-picker.component.mjs +69 -11
- package/esm2022/components/header-1177/region-picker-mobile/header-1177-region-picker-mobile.component.mjs +64 -12
- package/esm2022/components/header-1177/skip-to-content/header-1177-skip-to-content.component.mjs +18 -0
- package/esm2022/components/header-1177-admin/avatar/header-1177-admin-avatar.component.mjs +116 -13
- package/esm2022/components/header-1177-admin/avatar-mobile/header-1177-admin-avatar-mobile.component.mjs +113 -12
- package/esm2022/components/header-1177-admin/brand-link/header-1177-admin-brand-link.directive.mjs +17 -0
- package/esm2022/components/header-1177-admin/header-1177-admin.component.mjs +36 -54
- package/esm2022/components/header-1177-admin/header-1177-admin.module.mjs +70 -0
- package/esm2022/components/header-1177-admin/item/header-1177-admin-item.component.mjs +29 -8
- package/esm2022/components/header-1177-admin/menu-mobile/header-1177-admin-menu-mobile.component.mjs +58 -7
- package/esm2022/components/header-1177-admin/nav/header-1177-admin-nav.component.mjs +28 -37
- package/esm2022/components/header-1177-admin/nav-item/header-1177-admin-nav-item.component.mjs +143 -13
- package/esm2022/components/header-1177-admin/nav-item-menu-link/header-1177-admin-nav-item-menu-link.component.mjs +18 -0
- package/esm2022/components/header-1177-admin/nav-item-mobile/header-1177-admin-nav-item-mobile.mjs +36 -0
- package/esm2022/components/header-1177-admin/public-api.mjs +6 -1
- package/esm2022/components/header-1177-admin/skip-to-content/header-1177-admin-skip-to-content.component.mjs +18 -0
- package/esm2022/components/header-1177-pro/avatar/header-1177-pro-avatar.component.mjs +118 -15
- package/esm2022/components/header-1177-pro/avatar-mobile/header-1177-pro-avatar-mobile.component.mjs +113 -12
- package/esm2022/components/header-1177-pro/brand-link/header-1177-pro-brand-link.directive.mjs +17 -0
- package/esm2022/components/header-1177-pro/header-1177-pro.component.mjs +32 -62
- package/esm2022/components/header-1177-pro/header-1177-pro.module.mjs +80 -0
- package/esm2022/components/header-1177-pro/item/header-1177-pro-item.component.mjs +29 -8
- package/esm2022/components/header-1177-pro/menu-mobile/header-1177-pro-menu-mobile.component.mjs +58 -8
- package/esm2022/components/header-1177-pro/nav/header-1177-pro-nav.component.mjs +25 -46
- package/esm2022/components/header-1177-pro/nav-item/header-1177-pro-nav-item.component.mjs +142 -15
- package/esm2022/components/header-1177-pro/nav-item-menu-link/header-1177-pro-nav-item-menu-link.component.mjs +18 -0
- package/esm2022/components/header-1177-pro/nav-item-mobile/header-1177-pro-nav-item-mobile.mjs +36 -0
- package/esm2022/components/header-1177-pro/public-api.mjs +6 -1
- package/esm2022/components/header-1177-pro/region-picker/header-1177-pro-region-picker.component.mjs +69 -11
- package/esm2022/components/header-1177-pro/region-picker-mobile/header-1177-pro-region-picker-mobile.component.mjs +64 -12
- package/esm2022/components/header-1177-pro/skip-to-content/header-1177-pro-skip-to-content.component.mjs +18 -0
- package/esm2022/components/header-inera/brand-link/header-inera-brand-link.directive.mjs +14 -0
- package/esm2022/components/header-inera/header-inera.component.mjs +38 -45
- package/esm2022/components/header-inera/header-inera.module.mjs +55 -0
- package/esm2022/components/header-inera/item/header-inera-item.component.mjs +29 -8
- package/esm2022/components/header-inera/menu-mobile/header-inera-menu-mobile.component.mjs +64 -16
- package/esm2022/components/header-inera/nav/header-inera-nav.component.mjs +25 -31
- package/esm2022/components/header-inera/nav-item/header-inera-nav-item.component.mjs +154 -0
- package/esm2022/components/header-inera/nav-item-menu-link/header-inera-nav-item-menu-link.component.mjs +18 -0
- package/esm2022/components/header-inera/public-api.mjs +6 -2
- package/esm2022/components/header-inera/skip-to-content/header-inera-skip-to-content.component.mjs +18 -0
- package/esm2022/components/header-inera-admin/avatar/header-inera-admin-avatar.component.mjs +118 -15
- package/esm2022/components/header-inera-admin/avatar-mobile/header-inera-admin-avatar-mobile.component.mjs +113 -12
- package/esm2022/components/header-inera-admin/brand-link/header-inera-admin-brand-link.directive.mjs +17 -0
- package/esm2022/components/header-inera-admin/header-inera-admin.component.mjs +45 -46
- package/esm2022/components/header-inera-admin/header-inera-admin.module.mjs +70 -0
- package/esm2022/components/header-inera-admin/item/header-inera-admin-item.component.mjs +34 -11
- package/esm2022/components/header-inera-admin/menu-mobile/header-inera-admin-menu-mobile.component.mjs +64 -8
- package/esm2022/components/header-inera-admin/nav/header-inera-admin-nav.component.mjs +24 -35
- package/esm2022/components/header-inera-admin/nav-item/header-inera-admin-nav-item.component.mjs +142 -15
- package/esm2022/components/header-inera-admin/nav-item-menu-link/header-inera-admin-nav-item-menu-link.component.mjs +18 -0
- package/esm2022/components/header-inera-admin/nav-item-mobile/header-inera-admin-nav-item-mobile.mjs +36 -0
- package/esm2022/components/header-inera-admin/public-api.mjs +6 -1
- package/esm2022/components/header-inera-admin/skip-to-content/header-inera-admin-skip-to-content.component.mjs +18 -0
- package/esm2022/components/header-patient/header-patient-actions.component.mjs +22 -0
- package/esm2022/components/header-patient/header-patient.component.mjs +64 -13
- package/esm2022/components/header-patient/public-api.mjs +2 -2
- package/esm2022/components/link/link.directive.mjs +64 -0
- package/esm2022/components/link/public-api.mjs +2 -3
- package/esm2022/components/mobile/menu/item/mobile-menu-item.component.mjs +74 -8
- package/esm2022/components/mobile/menu/item/public-api.mjs +1 -2
- package/esm2022/components/mobile/menu/mobile-menu.component.mjs +32 -8
- package/esm2022/components/mobile/menu/public-api.mjs +1 -2
- package/esm2022/components/navigation/content/navigation-content-link.component.mjs +29 -0
- package/esm2022/components/navigation/content/navigation-content.component.mjs +15 -9
- package/esm2022/components/navigation/content/public-api.mjs +2 -2
- package/esm2022/components/navigation/local/navigation-local-link.component.mjs +27 -0
- package/esm2022/components/navigation/local/navigation-local.component.mjs +13 -7
- package/esm2022/components/navigation/local/public-api.mjs +2 -2
- package/esm2022/components/notification-badge/inera-ids-angular-components-notification-badge.mjs +5 -0
- package/esm2022/components/notification-badge/notification-badge.component.mjs +39 -0
- package/esm2022/components/notification-badge/public-api.mjs +2 -0
- package/esm2022/components/pagination/data-pagination/data-pagination-select.component.mjs +20 -0
- package/esm2022/components/pagination/data-pagination/data-pagination.component.mjs +61 -13
- package/esm2022/components/pagination/data-pagination/public-api.mjs +2 -2
- package/esm2022/components/pagination/list-pagination/list-pagination.component.mjs +168 -34
- package/esm2022/components/pagination/list-pagination/public-api.mjs +1 -2
- package/esm2022/components/popover/popover-close.component.mjs +24 -0
- package/esm2022/components/popover/popover-content.component.mjs +91 -0
- package/esm2022/components/popover/popover-header.component.mjs +18 -0
- package/esm2022/components/popover/popover-trigger.component.mjs +15 -0
- package/esm2022/components/popover/popover.component.mjs +139 -23
- package/esm2022/components/popover/popover.module.mjs +27 -9
- package/esm2022/components/popover/public-api.mjs +6 -2
- package/esm2022/components/progressbar/progressbar.component.mjs +11 -11
- package/esm2022/components/progressbar/public-api.mjs +1 -2
- package/esm2022/components/puff-list/public-api.mjs +8 -5
- package/esm2022/components/puff-list/puff-list-item-content-info.component.mjs +18 -0
- package/esm2022/components/puff-list/puff-list-item-content.component.mjs +15 -0
- package/esm2022/components/puff-list/puff-list-item-date-label.component.mjs +18 -0
- package/esm2022/components/puff-list/puff-list-item-extra-content.component.mjs +18 -0
- package/esm2022/components/puff-list/puff-list-item-header.component.mjs +18 -0
- package/esm2022/components/puff-list/puff-list-item.component.mjs +161 -0
- package/esm2022/components/puff-list/puff-list.component.mjs +33 -5
- package/esm2022/components/puff-list/puff-list.module.mjs +32 -18
- package/esm2022/components/region-icon/public-api.mjs +1 -2
- package/esm2022/components/region-icon/region-icon.component.mjs +31 -10
- package/esm2022/components/side-menu/public-api.mjs +4 -2
- package/esm2022/components/side-menu/side-menu-icon.component.mjs +24 -0
- package/esm2022/components/side-menu/side-menu-link.component.mjs +18 -0
- package/esm2022/components/side-menu/side-menu.component.mjs +190 -17
- package/esm2022/components/side-menu/side-menu.module.mjs +19 -7
- package/esm2022/components/side-panel/public-api.mjs +4 -2
- package/esm2022/components/side-panel/side-panel-footer.component.mjs +50 -0
- package/esm2022/components/side-panel/side-panel-provider.component.mjs +73 -0
- package/esm2022/components/side-panel/side-panel.component.mjs +176 -29
- package/esm2022/components/side-panel/side-panel.module.mjs +21 -8
- package/esm2022/components/stepper/public-api.mjs +4 -3
- package/esm2022/components/stepper/step-header.component.mjs +18 -0
- package/esm2022/components/stepper/step.component.mjs +133 -0
- package/esm2022/components/stepper/stepper.component.mjs +22 -9
- package/esm2022/components/stepper/stepper.module.mjs +14 -11
- package/esm2022/components/tabs/public-api.mjs +3 -5
- package/esm2022/components/tabs/tab-group.component.mjs +51 -0
- package/esm2022/components/tabs/tab.component.mjs +41 -0
- package/esm2022/components/tag/public-api.mjs +2 -2
- package/esm2022/components/tag/tag.component.mjs +13 -14
- package/esm2022/components/tag/tag.directive.mjs +17 -0
- package/esm2022/components/tooltip/public-api.mjs +2 -1
- package/esm2022/components/tooltip/tooltip-trigger.directive.mjs +18 -0
- package/esm2022/components/tooltip/tooltip.component.mjs +75 -9
- package/esm2022/components/tooltip/tooltip.module.mjs +12 -9
- package/fesm2022/inera-ids-angular-common.mjs +225 -30
- package/fesm2022/inera-ids-angular-common.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-accordion.mjs +100 -40
- package/fesm2022/inera-ids-angular-components-accordion.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-action-link.mjs +39 -0
- package/fesm2022/inera-ids-angular-components-action-link.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-alert.mjs +115 -54
- package/fesm2022/inera-ids-angular-components-alert.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-badge.mjs +13 -25
- package/fesm2022/inera-ids-angular-components-badge.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-box-link.mjs +36 -21
- package/fesm2022/inera-ids-angular-components-box-link.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs +23 -42
- package/fesm2022/inera-ids-angular-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-button-group.mjs +22 -25
- package/fesm2022/inera-ids-angular-components-button-group.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-button.mjs +122 -71
- package/fesm2022/inera-ids-angular-components-button.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-card.mjs +45 -34
- package/fesm2022/inera-ids-angular-components-card.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-carousel.mjs +80 -39
- package/fesm2022/inera-ids-angular-components-carousel.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-date-label.mjs +105 -44
- package/fesm2022/inera-ids-angular-components-date-label.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-dialog.mjs +204 -42
- package/fesm2022/inera-ids-angular-components-dialog.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-dropdown.mjs +138 -60
- package/fesm2022/inera-ids-angular-components-dropdown.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs +180 -14
- package/fesm2022/inera-ids-angular-components-footer-1177-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs +180 -14
- package/fesm2022/inera-ids-angular-components-footer-1177-pro.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-1177.mjs +181 -16
- package/fesm2022/inera-ids-angular-components-footer-1177.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs +184 -14
- package/fesm2022/inera-ids-angular-components-footer-inera-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-footer-inera.mjs +180 -14
- package/fesm2022/inera-ids-angular-components-footer-inera.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-check-button.mjs +10 -22
- package/fesm2022/inera-ids-angular-components-form-check-button.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs +34 -38
- package/fesm2022/inera-ids-angular-components-form-checkbox-group.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-checkbox.mjs +38 -37
- package/fesm2022/inera-ids-angular-components-form-checkbox.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-darkmode-toggle.mjs +19 -0
- package/fesm2022/inera-ids-angular-components-form-darkmode-toggle.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-form-error-message.mjs +38 -32
- package/fesm2022/inera-ids-angular-components-form-error-message.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-input.mjs +66 -30
- package/fesm2022/inera-ids-angular-components-form-input.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-radio-button.mjs +46 -27
- package/fesm2022/inera-ids-angular-components-form-radio-button.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-radio.mjs +65 -55
- package/fesm2022/inera-ids-angular-components-form-radio.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-range.mjs +64 -26
- package/fesm2022/inera-ids-angular-components-form-range.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs +86 -46
- package/fesm2022/inera-ids-angular-components-form-select-multiple.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-select.mjs +8 -23
- package/fesm2022/inera-ids-angular-components-form-select.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-spinner.mjs +15 -30
- package/fesm2022/inera-ids-angular-components-form-spinner.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-textarea.mjs +56 -29
- package/fesm2022/inera-ids-angular-components-form-textarea.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-time.mjs +7 -23
- package/fesm2022/inera-ids-angular-components-form-time.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-form-toggle.mjs +6 -23
- package/fesm2022/inera-ids-angular-components-form-toggle.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-global-alert.mjs +118 -39
- package/fesm2022/inera-ids-angular-components-global-alert.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-grid-column.mjs +41 -42
- package/fesm2022/inera-ids-angular-components-grid-column.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-grid-container.mjs +18 -25
- package/fesm2022/inera-ids-angular-components-grid-container.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-column.mjs +79 -0
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-column.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-container.mjs +42 -0
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-container.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-row.mjs +50 -0
- package/fesm2022/inera-ids-angular-components-grid-layout-grid-row.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-grid-layout.mjs +153 -0
- package/fesm2022/inera-ids-angular-components-grid-layout.mjs.map +1 -0
- package/fesm2022/inera-ids-angular-components-grid-row.mjs +31 -38
- package/fesm2022/inera-ids-angular-components-grid-row.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-grid.mjs +86 -101
- package/fesm2022/inera-ids-angular-components-grid.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs +673 -159
- package/fesm2022/inera-ids-angular-components-header-1177-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs +803 -197
- package/fesm2022/inera-ids-angular-components-header-1177-pro.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-1177.mjs +711 -181
- package/fesm2022/inera-ids-angular-components-header-1177.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs +672 -140
- package/fesm2022/inera-ids-angular-components-header-inera-admin.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-inera.mjs +388 -117
- package/fesm2022/inera-ids-angular-components-header-inera.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-header-patient.mjs +79 -27
- package/fesm2022/inera-ids-angular-components-header-patient.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-link.mjs +49 -48
- package/fesm2022/inera-ids-angular-components-link.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs +74 -25
- package/fesm2022/inera-ids-angular-components-mobile-menu-item.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-mobile-menu.mjs +107 -36
- package/fesm2022/inera-ids-angular-components-mobile-menu.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs +41 -28
- package/fesm2022/inera-ids-angular-components-navigation-content.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-navigation-local.mjs +37 -22
- package/fesm2022/inera-ids-angular-components-navigation-local.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-notification-badge.mjs +30 -25
- package/fesm2022/inera-ids-angular-components-notification-badge.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-pagination-data-pagination.mjs +73 -23
- package/fesm2022/inera-ids-angular-components-pagination-data-pagination.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-pagination-list-pagination.mjs +168 -49
- package/fesm2022/inera-ids-angular-components-pagination-list-pagination.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-popover.mjs +297 -29
- package/fesm2022/inera-ids-angular-components-popover.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-progressbar.mjs +11 -30
- package/fesm2022/inera-ids-angular-components-progressbar.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-puff-list.mjs +277 -89
- package/fesm2022/inera-ids-angular-components-puff-list.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-region-icon.mjs +31 -25
- package/fesm2022/inera-ids-angular-components-region-icon.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-side-menu.mjs +243 -22
- package/fesm2022/inera-ids-angular-components-side-menu.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-side-panel.mjs +310 -35
- package/fesm2022/inera-ids-angular-components-side-panel.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-stepper.mjs +151 -40
- package/fesm2022/inera-ids-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tabs.mjs +66 -97
- package/fesm2022/inera-ids-angular-components-tabs.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tag.mjs +23 -28
- package/fesm2022/inera-ids-angular-components-tag.mjs.map +1 -1
- package/fesm2022/inera-ids-angular-components-tooltip.mjs +98 -15
- package/fesm2022/inera-ids-angular-components-tooltip.mjs.map +1 -1
- package/package.json +112 -71
- package/components/accordion/accordion.module.d.ts +0 -8
- package/components/alert/alert.module.d.ts +0 -9
- package/components/badge/badge.module.d.ts +0 -8
- package/components/box-link/box-link.module.d.ts +0 -8
- package/components/breadcrumbs/breadcrumbs.module.d.ts +0 -10
- package/components/button/button.component.d.ts +0 -25
- package/components/button/button.module.d.ts +0 -9
- package/components/button-group/button-group.module.d.ts +0 -8
- package/components/card/card.module.d.ts +0 -8
- package/components/carousel/carousel.module.d.ts +0 -9
- package/components/date-label/date-label.module.d.ts +0 -8
- package/components/dialog/dialog.module.d.ts +0 -8
- package/components/dropdown/dropdown-content.component.d.ts +0 -9
- package/components/form/check-button/check-button.module.d.ts +0 -8
- package/components/form/checkbox/checkbox.module.d.ts +0 -8
- package/components/form/checkbox-group/checkbox-group.module.d.ts +0 -10
- package/components/form/error-message/error-message.module.d.ts +0 -8
- package/components/form/input/input.module.d.ts +0 -9
- package/components/form/radio/radio.module.d.ts +0 -10
- package/components/form/radio-button/radio-button.module.d.ts +0 -10
- package/components/form/range/range.module.d.ts +0 -8
- package/components/form/select/select.module.d.ts +0 -8
- package/components/form/select-multiple/select-multiple.module.d.ts +0 -9
- package/components/form/spinner/spinner.module.d.ts +0 -8
- package/components/form/textarea/textarea.module.d.ts +0 -9
- package/components/form/time/time.module.d.ts +0 -8
- package/components/form/toggle/toggle.module.d.ts +0 -8
- package/components/global-alert/global-alert.module.d.ts +0 -9
- package/components/grid/column/column.module.d.ts +0 -8
- package/components/grid/container/container.module.d.ts +0 -8
- package/components/grid/row/row.module.d.ts +0 -8
- package/components/header-inera/nav/header-inera-nav-item.component.d.ts +0 -11
- package/components/header-patient/header-patient.module.d.ts +0 -8
- package/components/link/link.component.d.ts +0 -15
- package/components/link/link.module.d.ts +0 -9
- package/components/mobile/menu/item/mobile-menu-item.module.d.ts +0 -9
- package/components/mobile/menu/mobile-menu.module.d.ts +0 -10
- package/components/navigation/content/navigation-content.module.d.ts +0 -8
- package/components/navigation/local/navigation-local.module.d.ts +0 -8
- package/components/notification/badge/notification-badge.module.d.ts +0 -8
- package/components/pagination/data-pagination/data-pagination.module.d.ts +0 -8
- package/components/pagination/list-pagination/list-pagination.module.d.ts +0 -8
- package/components/progressbar/progressbar.module.d.ts +0 -8
- package/components/puff-list/puff-item/puff-info/puff-list-item-info.component.d.ts +0 -7
- package/components/puff-list/puff-item/puff-list-item.component.d.ts +0 -22
- package/components/region-icon/region-icon.module.d.ts +0 -8
- package/components/stepper/step/step.component.d.ts +0 -19
- package/components/tabs/panel/tab-panel.component.d.ts +0 -9
- package/components/tabs/tab/tab.component.d.ts +0 -11
- package/components/tabs/tabs.component.d.ts +0 -20
- package/components/tabs/tabs.module.d.ts +0 -11
- package/components/tag/tag.module.d.ts +0 -8
- package/esm2022/components/accordion/accordion.module.mjs +0 -18
- package/esm2022/components/alert/alert.module.mjs +0 -24
- package/esm2022/components/badge/badge.module.mjs +0 -22
- package/esm2022/components/box-link/box-link.module.mjs +0 -18
- package/esm2022/components/breadcrumbs/breadcrumbs.module.mjs +0 -31
- package/esm2022/components/button/button.component.mjs +0 -68
- package/esm2022/components/button/button.module.mjs +0 -24
- package/esm2022/components/button-group/button-group.module.mjs +0 -22
- package/esm2022/components/card/card.module.mjs +0 -22
- package/esm2022/components/carousel/carousel.module.mjs +0 -27
- package/esm2022/components/date-label/date-label.module.mjs +0 -22
- package/esm2022/components/dialog/dialog.module.mjs +0 -22
- package/esm2022/components/dropdown/dropdown-content.component.mjs +0 -29
- package/esm2022/components/form/check-button/check-button.module.mjs +0 -18
- package/esm2022/components/form/checkbox/checkbox.module.mjs +0 -22
- package/esm2022/components/form/checkbox-group/checkbox-group.module.mjs +0 -25
- package/esm2022/components/form/error-message/error-message.module.mjs +0 -22
- package/esm2022/components/form/input/input.module.mjs +0 -24
- package/esm2022/components/form/radio/radio.module.mjs +0 -31
- package/esm2022/components/form/radio-button/radio-button.module.mjs +0 -21
- package/esm2022/components/form/range/range.module.mjs +0 -22
- package/esm2022/components/form/select/select.module.mjs +0 -22
- package/esm2022/components/form/select-multiple/select-multiple.module.mjs +0 -26
- package/esm2022/components/form/spinner/spinner.module.mjs +0 -22
- package/esm2022/components/form/textarea/textarea.module.mjs +0 -24
- package/esm2022/components/form/time/time.module.mjs +0 -22
- package/esm2022/components/form/toggle/toggle.module.mjs +0 -22
- package/esm2022/components/global-alert/global-alert.module.mjs +0 -20
- package/esm2022/components/grid/column/column.module.mjs +0 -22
- package/esm2022/components/grid/container/container.module.mjs +0 -22
- package/esm2022/components/grid/row/row.module.mjs +0 -22
- package/esm2022/components/header-inera/nav/header-inera-nav-item.component.mjs +0 -27
- package/esm2022/components/header-patient/header-patient.module.mjs +0 -22
- package/esm2022/components/link/link.component.mjs +0 -42
- package/esm2022/components/link/link.module.mjs +0 -24
- package/esm2022/components/mobile/menu/item/mobile-menu-item.module.mjs +0 -20
- package/esm2022/components/mobile/menu/mobile-menu.module.mjs +0 -21
- package/esm2022/components/navigation/content/navigation-content.module.mjs +0 -22
- package/esm2022/components/navigation/local/navigation-local.module.mjs +0 -18
- package/esm2022/components/notification/badge/inera-ids-angular-components-notification-badge.mjs +0 -5
- package/esm2022/components/notification/badge/notification-badge.component.mjs +0 -15
- package/esm2022/components/notification/badge/notification-badge.module.mjs +0 -22
- package/esm2022/components/notification/badge/public-api.mjs +0 -3
- package/esm2022/components/pagination/data-pagination/data-pagination.module.mjs +0 -18
- package/esm2022/components/pagination/list-pagination/list-pagination.module.mjs +0 -18
- package/esm2022/components/progressbar/progressbar.module.mjs +0 -22
- package/esm2022/components/puff-list/puff-item/puff-header/puff-list-item-header.component.mjs +0 -15
- package/esm2022/components/puff-list/puff-item/puff-info/puff-list-item-info.component.mjs +0 -15
- package/esm2022/components/puff-list/puff-item/puff-list-item.component.mjs +0 -60
- package/esm2022/components/region-icon/region-icon.module.mjs +0 -18
- package/esm2022/components/stepper/step/step.component.mjs +0 -52
- package/esm2022/components/tabs/panel/tab-panel.component.mjs +0 -21
- package/esm2022/components/tabs/tab/tab.component.mjs +0 -26
- package/esm2022/components/tabs/tabs.component.mjs +0 -50
- package/esm2022/components/tabs/tabs.module.mjs +0 -34
- package/esm2022/components/tag/tag.module.mjs +0 -22
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, HostBinding, Input } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class IDInputIconComponent {
|
|
4
|
+
name;
|
|
5
|
+
get class() {
|
|
6
|
+
return ['ids-input__icon', 'ids-icon-' + this.name].join(" ");
|
|
7
|
+
}
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDInputIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDInputIconComponent, isStandalone: true, selector: "id-input-icon", inputs: { name: "name" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: "<ng-content></ng-content>", isInline: true });
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDInputIconComponent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: "id-input-icon",
|
|
15
|
+
template: "<ng-content></ng-content>",
|
|
16
|
+
standalone: true,
|
|
17
|
+
}]
|
|
18
|
+
}], propDecorators: { name: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], class: [{
|
|
21
|
+
type: HostBinding
|
|
22
|
+
}] } });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uL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MgKCkge1xuICAgIHJldHVybiBbJ2lkcy1pbnB1dF9faWNvbicsICdpZHMtaWNvbi0nICsgdGhpcy5uYW1lXS5qb2luKFwiIFwiKTtcbiAgfVxuXG59XG4iXX0=
|
|
@@ -1,21 +1,42 @@
|
|
|
1
|
-
import { Component, Input,
|
|
2
|
-
import { IDFormBase } from
|
|
1
|
+
import { Component, ContentChild, ElementRef, Input, booleanAttribute, inject, } from '@angular/core';
|
|
2
|
+
import { IDFormBase } from '@inera/ids-angular/common';
|
|
3
|
+
import { IDInputHintComponent } from './input-hint.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export class IDInputComponent extends IDFormBase {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
elementRef = inject(ElementRef);
|
|
7
|
+
hintComponent;
|
|
8
|
+
showSearchLabel = false;
|
|
9
|
+
search = false;
|
|
10
|
+
get hostClasses() {
|
|
11
|
+
const hostEl = this.elementRef.nativeElement;
|
|
12
|
+
const existing = hostEl.getAttribute('class')?.split(/\s+/) ?? [];
|
|
13
|
+
const hostClass = 'ids-input';
|
|
14
|
+
const hostClasses = [hostClass];
|
|
15
|
+
if (this.search) {
|
|
16
|
+
hostClasses.push(`${hostClass}--search`);
|
|
17
|
+
}
|
|
18
|
+
return Array.from(new Set([...existing, ...hostClasses])).join(' ');
|
|
9
19
|
}
|
|
10
|
-
|
|
11
|
-
|
|
20
|
+
ngAfterContentInit() {
|
|
21
|
+
super.ngAfterContentInit();
|
|
22
|
+
this.renderer.addClass(this.input, 'ids-input__input');
|
|
23
|
+
}
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.14", type: IDInputComponent, isStandalone: true, selector: "id-input", inputs: { showSearchLabel: ["showSearchLabel", "showSearchLabel", booleanAttribute], search: ["search", "search", booleanAttribute] }, host: { properties: { "class": "hostClasses" } }, queries: [{ propertyName: "hintComponent", first: true, predicate: IDInputHintComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ids-input__wrapper\">\n <div class=\"ids-label-wrapper ids-label-wrapper--margin-bottom\">\n <span [class.ids-hidden]=\"search && !showSearchLabel\">\n <ng-content select=\"label\"></ng-content>\n </span>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </div>\n <div class=\"ids-input__input-wrapper\">\n <span [class.ids-input__search-icon]=\"search\"></span>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"id-input-hint\"></ng-content>\n <ng-content select=\"id-error-message\"></ng-content>\n</div>\n\n<ng-content select=\"button\"></ng-content>\n" });
|
|
12
26
|
}
|
|
13
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDInputComponent, decorators: [{
|
|
14
28
|
type: Component,
|
|
15
|
-
args: [{ selector:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
type:
|
|
29
|
+
args: [{ selector: 'id-input', standalone: true, host: {
|
|
30
|
+
'[class]': 'hostClasses',
|
|
31
|
+
}, template: "<div class=\"ids-input__wrapper\">\n <div class=\"ids-label-wrapper ids-label-wrapper--margin-bottom\">\n <span [class.ids-hidden]=\"search && !showSearchLabel\">\n <ng-content select=\"label\"></ng-content>\n </span>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </div>\n <div class=\"ids-input__input-wrapper\">\n <span [class.ids-input__search-icon]=\"search\"></span>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"id-input-hint\"></ng-content>\n <ng-content select=\"id-error-message\"></ng-content>\n</div>\n\n<ng-content select=\"button\"></ng-content>\n" }]
|
|
32
|
+
}], propDecorators: { hintComponent: [{
|
|
33
|
+
type: ContentChild,
|
|
34
|
+
args: [IDInputHintComponent]
|
|
35
|
+
}], showSearchLabel: [{
|
|
36
|
+
type: Input,
|
|
37
|
+
args: [{ transform: booleanAttribute }]
|
|
38
|
+
}], search: [{
|
|
39
|
+
type: Input,
|
|
40
|
+
args: [{ transform: booleanAttribute }]
|
|
20
41
|
}] } });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaWRzLWFuZ3VsYXIvY29tcG9uZW50cy9mb3JtL2lucHV0L2lucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9pbnB1dC9pbnB1dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsU0FBUyxFQUNULFlBQVksRUFDWixVQUFVLEVBQ1YsS0FBSyxFQUNMLGdCQUFnQixFQUNoQixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDOztBQVU5RCxNQUFNLE9BQU8sZ0JBQWlCLFNBQVEsVUFBVTtJQUN0QyxVQUFVLEdBQUcsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBR3hDLGFBQWEsQ0FBbUM7SUFFUixlQUFlLEdBQVksS0FBSyxDQUFDO0lBRWpDLE1BQU0sR0FBWSxLQU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2ggJiYgIXNob3dTZWFyY2hMYWJlbFwiPlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwibGFiZWxcIj48L25nLWNvbnRlbnQ+XG4gICAgPC9zcGFuPlxuICAgIDxzcGFuIGNsYXNzPVwiaWRzLWxhYmVsX190b29sdGlwXCI+XG4gICAgICA8bmctY29udGVudCBzZWxlY3Q9XCJpZC10b29sdGlwXCI+PC9uZy1jb250ZW50PlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiaWQtcG9wb3ZlclwiPjwvbmctY29udGVudD5cbiAgICA8L3NwYW4+XG4gIDwvZGl2PlxuICA8ZGl2IGNsYXNzPVwiaWRzLWlucHV0X19pbnB1dC13cmFwcGVyXCI+XG4gICAgPHNwYW4gW2NsYXNzLmlkcy1pbnB1dF9fc2VhcmNoLWljb25dPVwic2VhcmNoXCI+PC9zcGFuPlxuICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgPC9kaXY+XG4gIDxuZy1jb250ZW50IHNlbGVjdD1cImlkLWlucHV0LWhpbnRcIj48L25nLWNvbnRlbnQ+XG4gIDxuZy1jb250ZW50IHNlbGVjdD1cImlkLWVycm9yLW1lc3NhZ2VcIj48L25nLWNvbnRlbnQ+XG48L2Rpdj5cblxuPG5nLWNvbnRlbnQgc2VsZWN0PVwiYnV0dG9uXCI+PC9uZy1jb250ZW50PlxuIl19
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { IDInputComponent } from './input.component';
|
|
2
|
-
export {
|
|
3
|
-
|
|
2
|
+
export { IDInputHintComponent } from './input-hint.component';
|
|
3
|
+
export { IDInputIconComponent } from './input-icon.component';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9pbnB1dC9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzlELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSURJbnB1dENvbXBvbmVudCB9IGZyb20gJy4vaW5wdXQuY29tcG9uZW50JztcbmV4cG9ydCB7IElESW5wdXRIaW50Q29tcG9uZW50IH0gZnJvbSAnLi9pbnB1dC1oaW50LmNvbXBvbmVudCc7XG5leHBvcnQgeyBJRElucHV0SWNvbkNvbXBvbmVudCB9IGZyb20gJy4vaW5wdXQtaWNvbi5jb21wb25lbnQnO1xuIl19
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { IDRadioGroupComponent } from './radio-group.component';
|
|
2
2
|
export { IDRadioComponent } from './radio.component';
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9yYWRpby9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElEUmFkaW9Hcm91cENvbXBvbmVudCB9IGZyb20gJy4vcmFkaW8tZ3JvdXAuY29tcG9uZW50JztcbmV4cG9ydCB7IElEUmFkaW9Db21wb25lbnQgfSBmcm9tICcuL3JhZGlvLmNvbXBvbmVudCc7XG5leHBvcnQgeyBJRFJhZGlvTW9kdWxlIH0gZnJvbSAnLi9yYWRpby5tb2R1bGUnOyJdfQ==
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9yYWRpby9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSURSYWRpb0dyb3VwQ29tcG9uZW50IH0gZnJvbSAnLi9yYWRpby1ncm91cC5jb21wb25lbnQnO1xuZXhwb3J0IHsgSURSYWRpb0NvbXBvbmVudCB9IGZyb20gJy4vcmFkaW8uY29tcG9uZW50JzsiXX0=
|
|
@@ -1,28 +1,55 @@
|
|
|
1
|
-
import { Component, Input,
|
|
2
|
-
import {
|
|
1
|
+
import { Component, ContentChild, ContentChildren, ElementRef, inject, Input, Renderer2 } from '@angular/core';
|
|
2
|
+
import { IDErrorMessageComponent } from "@inera/ids-angular/components/form/error-message";
|
|
3
|
+
import { IDRadioComponent } from './radio.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export class IDRadioGroupComponent {
|
|
6
|
+
radios;
|
|
7
|
+
errorMessage;
|
|
8
|
+
name;
|
|
9
|
+
legend;
|
|
9
10
|
compact = false;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
renderer = inject(Renderer2);
|
|
12
|
+
host = inject(ElementRef);
|
|
13
|
+
ngAfterContentInit() {
|
|
14
|
+
this.radios.forEach((radio) => {
|
|
15
|
+
radio.invalidChange.subscribe((value) => {
|
|
16
|
+
this.checkShowErrorMessage();
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
this.checkShowErrorMessage();
|
|
20
|
+
this.setupNames();
|
|
21
|
+
}
|
|
22
|
+
setupNames() {
|
|
23
|
+
if (this.name) {
|
|
24
|
+
const inputs = this.host.nativeElement.querySelectorAll('input');
|
|
25
|
+
inputs?.forEach((input) => {
|
|
26
|
+
this.renderer.setAttribute(input, 'name', this.name);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
checkShowErrorMessage() {
|
|
31
|
+
if (this.errorMessage) {
|
|
32
|
+
const isInvalidPresent = this.radios.find((radio) => radio.invalid);
|
|
33
|
+
this.errorMessage.show = Boolean(isInvalidPresent);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: IDRadioGroupComponent, isStandalone: true, selector: "id-radio-group", inputs: { name: "name", legend: "legend", compact: "compact" }, queries: [{ propertyName: "errorMessage", first: true, predicate: IDErrorMessageComponent, descendants: true }, { propertyName: "radios", predicate: IDRadioComponent }], ngImport: i0, template: "<fieldset\n class=\"ids-form-group__fieldset\"\n [class.ids-form-group__fieldset--compact]=\"compact\"\n>\n @if (legend) {\n <div class=\"ids-label-wrapper\">\n <legend>\n {{ legend }}\n <span class=\"ids-legend__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </legend>\n </div>\n }\n <ng-content></ng-content>\n <ng-content select=\"id-error-message\"></ng-content>\n</fieldset>\n" });
|
|
13
38
|
}
|
|
14
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioGroupComponent, decorators: [{
|
|
15
40
|
type: Component,
|
|
16
|
-
args: [{ selector: 'id-radio-group',
|
|
17
|
-
}], propDecorators: {
|
|
41
|
+
args: [{ selector: 'id-radio-group', standalone: true, template: "<fieldset\n class=\"ids-form-group__fieldset\"\n [class.ids-form-group__fieldset--compact]=\"compact\"\n>\n @if (legend) {\n <div class=\"ids-label-wrapper\">\n <legend>\n {{ legend }}\n <span class=\"ids-legend__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </legend>\n </div>\n }\n <ng-content></ng-content>\n <ng-content select=\"id-error-message\"></ng-content>\n</fieldset>\n" }]
|
|
42
|
+
}], propDecorators: { radios: [{
|
|
43
|
+
type: ContentChildren,
|
|
44
|
+
args: [IDRadioComponent]
|
|
45
|
+
}], errorMessage: [{
|
|
46
|
+
type: ContentChild,
|
|
47
|
+
args: [IDErrorMessageComponent]
|
|
48
|
+
}], name: [{
|
|
18
49
|
type: Input
|
|
19
50
|
}], legend: [{
|
|
20
51
|
type: Input
|
|
21
|
-
}], required: [{
|
|
22
|
-
type: Input
|
|
23
52
|
}], compact: [{
|
|
24
53
|
type: Input
|
|
25
|
-
}], errormessage: [{
|
|
26
|
-
type: Input
|
|
27
54
|
}] } });
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8tZ3JvdXA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nZhbGlkUHJlc2VudCk7XG4gICAgfVxuICB9XG59XG4iLCI8ZmllbGRzZXRcbiAgY2xhc3M9XCJpZHMtZm9ybS1ncm91cF9fZmllbGRzZXRcIlxuICBbY2xhc3MuaWRzLWZvcm0tZ3JvdXBfX2ZpZWxkc2V0LS1jb21wYWN0XT1cImNvbXBhY3RcIlxuPlxuICBAaWYgKGxlZ2VuZCkge1xuICAgIDxkaXYgY2xhc3M9XCJpZHMtbGFiZWwtd3JhcHBlclwiPlxuICAgICAgPGxlZ2VuZD5cbiAgICAgICAge3sgbGVnZW5kIH19XG4gICAgICAgIDxzcGFuIGNsYXNzPVwiaWRzLWxlZ2VuZF9fdG9vbHRpcFwiPlxuICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImlkLXRvb2x0aXBcIj48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiaWQtcG9wb3ZlclwiPjwvbmctY29udGVudD5cbiAgICAgICAgPC9zcGFuPlxuICAgICAgPC9sZWdlbmQ+XG4gICAgPC9kaXY+XG4gIH1cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICA8bmctY29udGVudCBzZWxlY3Q9XCJpZC1lcnJvci1tZXNzYWdlXCI+PC9uZy1jb250ZW50PlxuPC9maWVsZHNldD5cbiJdfQ==
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
2
|
import { IDFormBase } from "@inera/ids-angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class IDRadioComponent extends IDFormBase {
|
|
5
|
-
|
|
5
|
+
checkedEvent;
|
|
6
|
+
ngAfterContentInit() {
|
|
7
|
+
super.ngAfterContentInit();
|
|
8
|
+
if (!this.ngControl) {
|
|
9
|
+
this.checkedEvent = this.renderer.listen(this.input, 'changed', () => {
|
|
10
|
+
super._updateErrorState();
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
this.renderer.addClass(this.label, 'ids-label--clickable');
|
|
14
|
+
}
|
|
15
|
+
ngOnDestroy() {
|
|
16
|
+
this.checkedEvent?.();
|
|
17
|
+
}
|
|
6
18
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDRadioComponent, selector: "id-radio",
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDRadioComponent, isStandalone: true, selector: "id-radio", usesInheritance: true, ngImport: i0, template: "<div class=\"ids-radio\">\n <ng-content></ng-content>\n <span class=\"ids-label-wrapper\">\n <ng-content select=\"label\"></ng-content>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </span>\n</div>\n\n<ng-content select=\"id-error-message\"></ng-content>\n" });
|
|
8
20
|
}
|
|
9
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioComponent, decorators: [{
|
|
10
22
|
type: Component,
|
|
11
|
-
args: [{ selector: "id-radio",
|
|
12
|
-
}]
|
|
13
|
-
|
|
14
|
-
}] } });
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaWRzLWFuZ3VsYXIvY29tcG9uZW50cy9mb3JtL3JhZGlvL3JhZGlvLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVud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bGlkXCIgW2NvbXBhY3RdPVwiY29tcGFjdFwiPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L2lkcy1yYWRpbz5cbiJdfQ==
|
|
23
|
+
args: [{ selector: "id-radio", standalone: true, template: "<div class=\"ids-radio\">\n <ng-content></ng-content>\n <span class=\"ids-label-wrapper\">\n <ng-content select=\"label\"></ng-content>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </span>\n</div>\n\n<ng-content select=\"id-error-message\"></ng-content>\n" }]
|
|
24
|
+
}] });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaWRzLWFuZ3VsYXIvY29tcG9uZW50cy9mb3JtL3JhZGlvL3JhZGlvLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9yYWRpby9yYWRpby5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQzs7QUFPdkQsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFVBQVU7SUFFdEMsWUFBWSxDQUFjO0lBRWxDLGtCQUFrQjtRQUNoQixLQUFLLENBQUMsa0JBQWtCLEVBQUUsQ0FBQztRQUMzQixJQUFHLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDO1lBQ25CLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ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zLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmlucHV0LCAnY2hhbmdlZCcsICgpID0+IHtcbiAgICAgICAgc3VwZXIuX3VwZGF0ZUVycm9yU3RhdGUoKTtcbiAgICAgIH0pO1xuICAgIH1cbiAgICB0aGlzLnJlbmRlcmVyLmFkZENsYXNzKHRoaXMubGFiZWwsICdpZHMtbGFiZWwtLWNsaWNrYWJsZScpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5jaGVja2VkRXZlbnQ/LigpO1xuICB9XG5cblxufVxuIiwiPGRpdiBjbGFzcz1cImlkcy1yYWRpb1wiPlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gIDxzcGFuIGNsYXNzPVwiaWRzLWxhYmVsLXdyYXBwZXJcIj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJsYWJlbFwiPjwvbmctY29udGVudD5cbiAgICA8c3BhbiBjbGFzcz1cImlkcy1sYWJlbF9fdG9vbHRpcFwiPlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiaWQtdG9vbHRpcFwiPjwvbmctY29udGVudD5cbiAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImlkLXBvcG92ZXJcIj48L25nLWNvbnRlbnQ+XG4gICAgPC9zcGFuPlxuICA8L3NwYW4+XG48L2Rpdj5cblxuPG5nLWNvbnRlbnQgc2VsZWN0PVwiaWQtZXJyb3ItbWVzc2FnZVwiPjwvbmctY29udGVudD5cbiJdfQ==
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { IDRadioButtonGroupComponent } from "./radio-button-group.component";
|
|
2
2
|
export { IDRadioButtonComponent } from "./radio-button.component";
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL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9IGZyb20gXCIuL3JhZGlvLWJ1dHRvbi1ncm91cC5jb21wb25lbnRcIjtcbmV4cG9ydCB7IElEUmFkaW9CdXR0b25Db21wb25lbnQgfSBmcm9tIFwiLi9yYWRpby1idXR0b24uY29tcG9uZW50XCI7XG4iXX0=
|
|
@@ -1,18 +1,46 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, ContentChildren, Input } from "@angular/core";
|
|
2
2
|
import { IDFormBase } from "@inera/ids-angular/common";
|
|
3
|
+
import { IDRadioComponent } from "@inera/ids-angular/components/form/radio";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export class IDRadioButtonGroupComponent extends IDFormBase {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
radios;
|
|
7
|
+
name;
|
|
8
|
+
legend;
|
|
9
|
+
ngAfterContentInit() {
|
|
10
|
+
this.radios.forEach((radio) => {
|
|
11
|
+
radio.invalidChange.subscribe((value) => {
|
|
12
|
+
this.checkShowErrorMessage();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
this.checkShowErrorMessage();
|
|
16
|
+
this.setupNames();
|
|
17
|
+
}
|
|
18
|
+
setupNames() {
|
|
19
|
+
if (this.name) {
|
|
20
|
+
const inputs = this.host.nativeElement.querySelectorAll('input');
|
|
21
|
+
inputs?.forEach((input) => {
|
|
22
|
+
this.renderer.setAttribute(input, 'name', this.name);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
checkShowErrorMessage() {
|
|
27
|
+
if (this.errorMessage) {
|
|
28
|
+
const isInvalidPresent = this.radios.find((radio) => radio.invalid);
|
|
29
|
+
this.errorMessage.show = Boolean(isInvalidPresent);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
7
32
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioButtonGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: IDRadioButtonGroupComponent, isStandalone: true, selector: "id-radio-button-group", inputs: { name: "name", legend: "legend" }, queries: [{ propertyName: "radios", predicate: IDRadioComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ids-form-group__fieldset\">\n @if (legend) {\n <div class=\"ids-label-wrapper\">\n <legend>\n {{ legend }}\n <span class=\"ids-legend__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </legend>\n </div>\n }\n <ng-content></ng-content>\n</div>\n" });
|
|
9
34
|
}
|
|
10
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioButtonGroupComponent, decorators: [{
|
|
11
36
|
type: Component,
|
|
12
|
-
args: [{ selector: "id-radio-button-group",
|
|
13
|
-
}], propDecorators: {
|
|
37
|
+
args: [{ selector: "id-radio-button-group", standalone: true, template: "<div class=\"ids-form-group__fieldset\">\n @if (legend) {\n <div class=\"ids-label-wrapper\">\n <legend>\n {{ legend }}\n <span class=\"ids-legend__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </legend>\n </div>\n }\n <ng-content></ng-content>\n</div>\n" }]
|
|
38
|
+
}], propDecorators: { radios: [{
|
|
39
|
+
type: ContentChildren,
|
|
40
|
+
args: [IDRadioComponent]
|
|
41
|
+
}], name: [{
|
|
14
42
|
type: Input
|
|
15
43
|
}], legend: [{
|
|
16
44
|
type: Input
|
|
17
45
|
}] } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8tYnV0dG9uLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJv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VsZWN0b3JBbGwoJ2lucHV0JylcbiAgICAgIGlucHV0cz8uZm9yRWFjaCgoaW5wdXQ6IEhUTUxJbnB1dEVsZW1lbnQpID0+IHtcbiAgICAgICAgdGhpcy5yZW5kZXJlci5zZXRBdHRyaWJ1dGUoaW5wdXQsICduYW1lJywgdGhpcy5uYW1lISk7XG4gICAgICB9KVxuICAgIH1cbiAgfVxuXG4gIGNoZWNrU2hvd0Vycm9yTWVzc2FnZSgpIHtcbiAgICBpZih0aGlzLmVycm9yTWVzc2FnZSkge1xuICAgICAgY29uc3QgaXNJbnZhbGlkUHJlc2VudCA9IHRoaXMucmFkaW9zLmZpbmQoKHJhZGlvKSA9PiByYWRpby5pbnZhbGlkKTtcbiAgICAgIHRoaXMuZXJyb3JNZXNzYWdlLnNob3cgPSBCb29sZWFuKGlzSW52YWxpZFByZXNlbnQpO1xuICAgIH1cbiAgfVxufVxuIiwiPGRpdiBjbGFzcz1cImlkcy1mb3JtLWdyb3VwX19maWVsZHNldFwiPlxuICBAaWYgKGxlZ2VuZCkge1xuICAgIDxkaXYgY2xhc3M9XCJpZHMtbGFiZWwtd3JhcHBlclwiPlxuICAgICAgPGxlZ2VuZD5cbiAgICAgICAge3sgbGVnZW5kIH19XG4gICAgICAgIDxzcGFuIGNsYXNzPVwiaWRzLWxlZ2VuZF9fdG9vbHRpcFwiPlxuICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImlkLXRvb2x0aXBcIj48L25nLWNvbnRlbnQ+XG4gICAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiaWQtcG9wb3ZlclwiPjwvbmctY29udGVudD5cbiAgICAgICAgPC9zcGFuPlxuICAgICAgPC9sZWdlbmQ+XG4gICAgPC9kaXY+XG4gIH1cbiAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import { Component, Input
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
2
|
import { IDFormBase } from "@inera/ids-angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class IDRadioButtonComponent extends IDFormBase {
|
|
5
|
-
icon
|
|
5
|
+
icon;
|
|
6
|
+
ngAfterContentInit() {
|
|
7
|
+
super.ngAfterContentInit();
|
|
8
|
+
this.input.classList.add('ids-radio-button__input');
|
|
9
|
+
this.label.classList.add('ids-radio-button__label');
|
|
10
|
+
if (this.icon) {
|
|
11
|
+
this.label.classList.add(`ids-icon-${this.icon}`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
6
14
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDRadioButtonComponent, selector: "id-radio-button", inputs: { icon: "icon" }, usesInheritance: true, ngImport: i0, template: "<ids-radio-button
|
|
15
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDRadioButtonComponent, isStandalone: true, selector: "id-radio-button", inputs: { icon: "icon" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ids-radio-button\">\n <ng-content></ng-content>\n</div>" });
|
|
8
16
|
}
|
|
9
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRadioButtonComponent, decorators: [{
|
|
10
18
|
type: Component,
|
|
11
|
-
args: [{ selector: "id-radio-button",
|
|
19
|
+
args: [{ selector: "id-radio-button", standalone: true, template: "<div class=\"ids-radio-button\">\n <ng-content></ng-content>\n</div>" }]
|
|
12
20
|
}], propDecorators: { icon: [{
|
|
13
21
|
type: Input
|
|
14
22
|
}] } });
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ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,2 @@
|
|
|
1
1
|
export { IDRangeComponent } from './range.component';
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9yYW5nZS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElEUmFuZ2VDb21wb25lbnQgfSBmcm9tICcuL3JhbmdlLmNvbXBvbmVudCc7XG5leHBvcnQgeyBJRFJhbmdlTW9kdWxlIH0gZnJvbSAnLi9yYW5nZS5tb2R1bGUnOyJdfQ==
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9yYW5nZS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSURSYW5nZUNvbXBvbmVudCB9IGZyb20gJy4vcmFuZ2UuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -1,18 +1,75 @@
|
|
|
1
|
-
import { Component, Input,
|
|
2
|
-
import { IDFormBase } from
|
|
1
|
+
import { Component, Input, booleanAttribute } from '@angular/core';
|
|
2
|
+
import { IDFormBase } from "@inera/ids-angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class IDRangeComponent extends IDFormBase {
|
|
5
|
-
|
|
5
|
+
showTicks = false;
|
|
6
6
|
interval = 0;
|
|
7
|
+
get min() {
|
|
8
|
+
return Number(this.input.min);
|
|
9
|
+
}
|
|
10
|
+
get max() {
|
|
11
|
+
return Number(this.input.max);
|
|
12
|
+
}
|
|
13
|
+
get step() {
|
|
14
|
+
return Number(this.input.step);
|
|
15
|
+
}
|
|
16
|
+
ngAfterContentInit() {
|
|
17
|
+
super.ngAfterContentInit();
|
|
18
|
+
this.input.addEventListener('input', this.handleInputChange);
|
|
19
|
+
this.handleInputChange();
|
|
20
|
+
this.listenToInputAttrChanges();
|
|
21
|
+
}
|
|
22
|
+
listenToInputAttrChanges() {
|
|
23
|
+
const observer = new MutationObserver(() => {
|
|
24
|
+
this.setupValues();
|
|
25
|
+
this.handleInputChange();
|
|
26
|
+
});
|
|
27
|
+
observer.observe(this.input, {
|
|
28
|
+
attributes: true,
|
|
29
|
+
attributeFilter: ["min", "max", "disabled"]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
get ticks() {
|
|
33
|
+
const ticks = [];
|
|
34
|
+
if (this.step > 0) {
|
|
35
|
+
if (this.interval > 0) {
|
|
36
|
+
for (let val = this.min; val <= this.max; val += this.interval) {
|
|
37
|
+
ticks.push(val);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
for (let val = this.min; val <= this.max; val += this.step) {
|
|
42
|
+
ticks.push(val);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return ticks;
|
|
47
|
+
}
|
|
48
|
+
handleInputChange = () => {
|
|
49
|
+
if (this.input) {
|
|
50
|
+
const val = +this.input.value;
|
|
51
|
+
this.input.style.backgroundSize = ((val - this.min) * 100) / (this.max - this.min) + "% 100%";
|
|
52
|
+
this.input.setAttribute("aria-valuenow", this.input.value);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
setupValues() {
|
|
56
|
+
if (this.input) {
|
|
57
|
+
this.input.setAttribute("aria-valuemin", "" + this.min);
|
|
58
|
+
this.input.setAttribute("aria-valuemax", "" + this.max);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
7
61
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRangeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: IDRangeComponent, isStandalone: true, selector: "id-range", inputs: { showTicks: ["showTicks", "showTicks", booleanAttribute], interval: "interval" }, host: { classAttribute: "ids-range" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ids-range\">\n <div class=\"ids-label-wrapper ids-label-wrapper--margin-bottom\">\n <ng-content select=\"label\"></ng-content>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </div>\n <ng-content></ng-content>\n @if (this.showTicks) {\n <div\n class=\"ids-range-ticks\"\n [class.ids-range-ticks--disabled]=\"input.disabled\"\n >\n @for (tick of ticks; track tick) {\n <span class=\"ids-range-tick\">{{ tick }}</span>\n }\n </div>\n }\n</div>\n" });
|
|
9
63
|
}
|
|
10
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDRangeComponent, decorators: [{
|
|
11
65
|
type: Component,
|
|
12
|
-
args: [{ selector: 'id-range',
|
|
13
|
-
|
|
14
|
-
|
|
66
|
+
args: [{ selector: 'id-range', standalone: true, host: {
|
|
67
|
+
class: 'ids-range',
|
|
68
|
+
}, template: "<div class=\"ids-range\">\n <div class=\"ids-label-wrapper ids-label-wrapper--margin-bottom\">\n <ng-content select=\"label\"></ng-content>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </div>\n <ng-content></ng-content>\n @if (this.showTicks) {\n <div\n class=\"ids-range-ticks\"\n [class.ids-range-ticks--disabled]=\"input.disabled\"\n >\n @for (tick of ticks; track tick) {\n <span class=\"ids-range-tick\">{{ tick }}</span>\n }\n </div>\n }\n</div>\n" }]
|
|
69
|
+
}], propDecorators: { showTicks: [{
|
|
70
|
+
type: Input,
|
|
71
|
+
args: [{ transform: booleanAttribute }]
|
|
15
72
|
}], interval: [{
|
|
16
73
|
type: Input
|
|
17
74
|
}] } });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFuZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaWRzLWFuZ3VsYXIvY29tcG9uZW50cy9mb3JtL3JhbmdlL3JhbmdlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9yYW5nZS9yYW5nZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW9CLFNBQVMsRUFBRSxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDckYsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLDJCQUEyQixDQUFDOztBQVV2RCxNQUFNLE9BQU8sZ0JBQWlCLFNBQVEsVUFBVTtJQUVOLFNBQVMsR0FBWSxLQUFLLENBQUM7SUFDMUQsU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7XG4gICAgICB0aGlzLmlucHV0LnNldEF0dHJpYnV0ZShcImFyaWEtdmFsdWVtaW5cIiwgXCJcIiArIHRoaXMubWluKTtcbiAgICAgIHRoaXMuaW5wdXQuc2V0QXR0cmlidXRlKFwiYXJpYS12YWx1ZW1heFwiLCBcIlwiICsgdGhpcy5tYXgpO1xuICAgIH1cbiAgfVxuICAgIFxuXG59XG4iLCI8ZGl2IGNsYXNzPVwiaWRzLXJhbmdlXCI+XG4gIDxkaXYgY2xhc3M9XCJpZHMtbGFiZWwtd3JhcHBlciBpZHMtbGFiZWwtd3JhcHBlci0tbWFyZ2luLWJvdHRvbVwiPlxuICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImxhYmVsXCI+PC9uZy1jb250ZW50PlxuICAgIDxzcGFuIGNsYXNzPVwiaWRzLWxhYmVsX190b29sdGlwXCI+XG4gICAgICA8bmctY29udGVudCBzZWxlY3Q9XCJpZC10b29sdGlwXCI+PC9uZy1jb250ZW50PlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiaWQtcG9wb3ZlclwiPjwvbmctY29udGVudD5cbiAgICA8L3NwYW4+XG4gIDwvZGl2PlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gIEBpZiAodGhpcy5zaG93VGlja3MpIHtcbiAgICA8ZGl2XG4gICAgICBjbGFzcz1cImlkcy1yYW5nZS10aWNrc1wiXG4gICAgICBbY2xhc3MuaWRzLXJhbmdlLXRpY2tzLS1kaXNhYmxlZF09XCJpbnB1dC5kaXNhYmxlZFwiXG4gICAgPlxuICAgICAgQGZvciAodGljayBvZiB0aWNrczsgdHJhY2sgdGljaykge1xuICAgICAgICA8c3BhbiBjbGFzcz1cImlkcy1yYW5nZS10aWNrXCI+e3sgdGljayB9fTwvc3Bhbj5cbiAgICAgIH1cbiAgICA8L2Rpdj5cbiAgfVxuPC9kaXY+XG4iXX0=
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export { IDSelectComponent } from './select.component';
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9zZWxlY3QvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0saUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBJRFNlbGVjdENvbXBvbmVudCB9IGZyb20gJy4vc2VsZWN0LmNvbXBvbmVudCc7XG5leHBvcnQgeyBJRFNlbGVjdE1vZHVsZSB9IGZyb20gJy4vc2VsZWN0Lm1vZHVsZSc7Il19
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9zZWxlY3QvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElEU2VsZWN0Q29tcG9uZW50IH0gZnJvbSAnLi9zZWxlY3QuY29tcG9uZW50JztcbiJdfQ==
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { Component
|
|
2
|
-
import { IDFormBase } from
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { IDFormBase } from '@inera/ids-angular/common';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class IDSelectComponent extends IDFormBase {
|
|
5
|
+
ngAfterContentInit() {
|
|
6
|
+
super.ngAfterContentInit();
|
|
7
|
+
this.input.classList.add('ids-select__select');
|
|
8
|
+
}
|
|
5
9
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDSelectComponent, selector: "id-select", usesInheritance: true, ngImport: i0, template: "<ids-select\n
|
|
10
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: IDSelectComponent, isStandalone: true, selector: "id-select", usesInheritance: true, ngImport: i0, template: "<div class=\"ids-select\">\n <div class=\"ids-label-wrapper ids-label-wrapper--margin-bottom\">\n <ng-content select=\"label\"></ng-content>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </div>\n <div class=\"ids-select__wrapper\">\n <ng-content select=\"select\"></ng-content>\n </div>\n</div>\n" });
|
|
7
11
|
}
|
|
8
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IDSelectComponent, decorators: [{
|
|
9
13
|
type: Component,
|
|
10
|
-
args: [{ selector:
|
|
14
|
+
args: [{ selector: 'id-select', standalone: true, template: "<div class=\"ids-select\">\n <div class=\"ids-label-wrapper ids-label-wrapper--margin-bottom\">\n <ng-content select=\"label\"></ng-content>\n <span class=\"ids-label__tooltip\">\n <ng-content select=\"id-tooltip\"></ng-content>\n <ng-content select=\"id-popover\"></ng-content>\n </span>\n </div>\n <div class=\"ids-select__wrapper\">\n <ng-content select=\"select\"></ng-content>\n </div>\n</div>\n"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
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9zZWxlY3QtbXVsdGlwbGUvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUN4RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElEU2VsZWN0TXVsdGlwbGVDb21wb25lbnQgfSBmcm9tICcuL3NlbGVjdC1tdWx0aXBsZS5jb21wb25lbnQnO1xuZXhwb3J0IHsgSURTZWxlY3RNdWx0aXBsZU1vZHVsZSB9IGZyb20gJy4vc2VsZWN0LW11bHRpcGxlLm1vZHVsZSc7Il19
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2lkcy1hbmd1bGFyL2NvbXBvbmVudHMvZm9ybS9zZWxlY3QtbXVsdGlwbGUvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElEU2VsZWN0TXVsdGlwbGVDb21wb25lbnQgfSBmcm9tICcuL3NlbGVjdC1tdWx0aXBsZS5jb21wb25lbnQnO1xuIl19
|