@siemens/ix 0.0.0-pr-1974-20250624072317 → 0.0.0-pr-1974-20250627114851
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/dist/cjs/base-button-B-wht3TB.js +74 -0
- package/dist/cjs/base-button-B-wht3TB.js.map +1 -0
- package/dist/cjs/base-icon-button-DNisNrCZ.js +21 -0
- package/dist/cjs/base-icon-button-DNisNrCZ.js.map +1 -0
- package/dist/cjs/helper-text-util-B_J9aPv0.js +45 -0
- package/dist/cjs/helper-text-util-B_J9aPv0.js.map +1 -0
- package/dist/cjs/index-CbtIH46j.js +2734 -0
- package/dist/cjs/index-CbtIH46j.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -17
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/input.util-BDrqIfiB.js +215 -0
- package/dist/cjs/input.util-BDrqIfiB.js.map +1 -0
- package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-action-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +4 -4
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ix-application.cjs.entry.js +4 -4
- package/dist/cjs/ix-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ix-blind.cjs.entry.js +6 -6
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ix-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-card-accordion.ix-card-title.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +5 -5
- package/dist/cjs/ix-card.ix-card-content.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +5 -5
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ix-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/ix-chip.cjs.entry.js +5 -5
- package/dist/cjs/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-col_4.cjs.entry.js +12 -12
- package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content-header.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-content.cjs.entry.js +4 -4
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-css-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-custom-field.cjs.entry.js +3 -3
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-input.cjs.entry.js +6 -6
- package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
- package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-time-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +2 -2
- package/dist/cjs/ix-drawer.cjs.entry.js +6 -6
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-empty-state.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
- package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
- package/dist/cjs/ix-field-label_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-group.cjs.entry.js +9 -9
- package/dist/cjs/ix-helper-text.cjs.entry.js +4 -4
- package/dist/cjs/ix-icon-button.ix-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-input.cjs.entry.js +7 -7
- package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-key-value.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
- package/dist/cjs/ix-layout-auto.cjs.entry.js +2 -2
- package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
- package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-settings-Dbt7Q2tj.js +123 -0
- package/dist/cjs/ix-menu-settings-Dbt7Q2tj.js.map +1 -0
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu.cjs.entry.js +13 -13
- package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +5 -5
- package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-number-input.cjs.entry.js +9 -9
- package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ix-pane-layout.cjs.entry.js +2 -2
- package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane-layout.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +7 -7
- package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +5 -5
- package/dist/cjs/ix-progress-indicator.cjs.entry.js +4 -4
- package/dist/cjs/ix-progress-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-progress-indicator.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-push-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ix-radio.cjs.entry.js +6 -6
- package/dist/cjs/ix-select.cjs.entry.js +11 -11
- package/dist/cjs/ix-slider.cjs.entry.js +8 -8
- package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-split-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item.ix-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-textarea.cjs.entry.js +5 -5
- package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-time-input.cjs.entry.js +6 -6
- package/dist/cjs/ix-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-time-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-time-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast-container.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-toggle.cjs.entry.js +5 -5
- package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-tree.cjs.entry.js +2 -2
- package/dist/cjs/ix-typography.cjs.entry.js +2 -2
- package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-typography.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-step.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
- package/dist/cjs/listener-BT212YoD.js +78 -0
- package/dist/cjs/listener-BT212YoD.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/modal-CR_0969h.js.map +1 -1
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/cjs/validation-rAd3wIQp.js +123 -0
- package/dist/cjs/validation-rAd3wIQp.js.map +1 -0
- package/dist/collection/collection-manifest.json +28 -28
- package/dist/collection/components/action-card/action-card.js +4 -4
- package/dist/collection/components/action-card/action-card.js.map +1 -1
- package/dist/collection/components/action-card/action-card.types.js +2 -0
- package/dist/collection/components/action-card/action-card.types.js.map +1 -0
- package/dist/collection/components/application/application.js +3 -3
- package/dist/collection/components/application-header/application-header.js +3 -3
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
- package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
- package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
- package/dist/collection/components/blind/blind.js +8 -8
- package/dist/collection/components/blind/blind.js.map +1 -1
- package/dist/collection/components/blind/blind.types.js +2 -0
- package/dist/collection/components/blind/blind.types.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/card/card.js +5 -5
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/card/card.types.js +2 -0
- package/dist/collection/components/card/card.types.js.map +1 -0
- package/dist/collection/components/card-accordion/card-accordion.js +6 -6
- package/dist/collection/components/card-accordion/card-accordion.js.map +1 -1
- package/dist/collection/components/card-accordion/card-accordion.types.js +2 -0
- package/dist/collection/components/card-accordion/card-accordion.types.js.map +1 -0
- package/dist/collection/components/card-content/card-content.js +1 -1
- package/dist/collection/components/card-list/card-list.js +4 -4
- package/dist/collection/components/card-title/card-title.js +1 -1
- package/dist/collection/components/category-filter/category-filter.js +3 -3
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/collection/components/chip/chip.js +4 -4
- package/dist/collection/components/col/col.js +13 -13
- package/dist/collection/components/col/col.js.map +1 -1
- package/dist/collection/components/col/col.types.js +2 -0
- package/dist/collection/components/col/col.types.js.map +1 -0
- package/dist/collection/components/content/content.js +3 -3
- package/dist/collection/components/content-header/content-header.js +4 -4
- package/dist/collection/components/content-header/content-header.js.map +1 -1
- package/dist/collection/components/content-header/content-header.types.js +2 -0
- package/dist/collection/components/content-header/content-header.types.js.map +1 -0
- package/dist/collection/components/css-grid/css-grid-item.js +1 -1
- package/dist/collection/components/css-grid/css-grid.js +4 -4
- package/dist/collection/components/css-grid/css-grid.js.map +1 -1
- package/dist/collection/components/css-grid/css-grid.types.js +2 -0
- package/dist/collection/components/css-grid/css-grid.types.js.map +1 -0
- package/dist/collection/components/custom-field/custom-field.js +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +13 -13
- package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.types.js +2 -0
- package/dist/collection/components/date-dropdown/date-dropdown.types.js.map +1 -0
- package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
- package/dist/collection/components/date-input/date-input.js +6 -6
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-input/date-input.types.js +2 -0
- package/dist/collection/components/date-input/date-input.types.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker-component.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.events.js +2 -0
- package/dist/collection/components/date-picker/date-picker.events.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker.js +17 -17
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.js +5 -5
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.types.js +2 -0
- package/dist/collection/components/date-time-card/date-time-card.types.js.map +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +7 -7
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.types.js +2 -0
- package/dist/collection/components/datetime-picker/datetime-picker.types.js.map +1 -0
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +5 -5
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown-button/dropdown-button.js +5 -5
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.types.js +2 -0
- package/dist/collection/components/dropdown-button/dropdown-button.types.js.map +1 -0
- package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js +4 -4
- package/dist/collection/components/empty-state/empty-state.js.map +1 -1
- package/dist/collection/components/empty-state/empty-state.types.js +2 -0
- package/dist/collection/components/empty-state/empty-state.types.js.map +1 -0
- package/dist/collection/components/event-list/event-list.js +2 -2
- package/dist/collection/components/event-list-item/event-list-item.js +4 -4
- package/dist/collection/components/expanding-search/expanding-search.js +4 -4
- package/dist/collection/components/field-label/field-label.js +1 -1
- package/dist/collection/components/field-wrapper/field-wrapper.js +2 -2
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +4 -4
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
- package/dist/collection/components/group/group-context-menu.js +1 -1
- package/dist/collection/components/group/group.js +8 -8
- package/dist/collection/components/group-item/group-item.js +2 -2
- package/dist/collection/components/helper-text/helper-text.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +4 -4
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.types.js +2 -0
- package/dist/collection/components/icon-button/icon-button.types.js.map +1 -0
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input/number-input.js +6 -6
- package/dist/collection/components/input/textarea.js +5 -5
- package/dist/collection/components/input/textarea.js.map +1 -1
- package/dist/collection/components/input/textarea.types.js +2 -0
- package/dist/collection/components/input/textarea.types.js.map +1 -0
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/key-value/key-value.js +4 -4
- package/dist/collection/components/key-value/key-value.js.map +1 -1
- package/dist/collection/components/key-value/key-value.types.js +2 -0
- package/dist/collection/components/key-value/key-value.types.js.map +1 -0
- package/dist/collection/components/key-value-list/key-value-list.js +1 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/layout-auto/layout-auto.js +1 -1
- package/dist/collection/components/layout-grid/layout-grid.js +2 -2
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/map-navigation/map-navigation.js +2 -2
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
- package/dist/collection/components/menu/menu-expand-icon.js +1 -1
- package/dist/collection/components/menu/menu.js +12 -12
- package/dist/collection/components/menu-about/menu-about.js +1 -1
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
- package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-category/menu-category.js +5 -5
- package/dist/collection/components/menu-item/menu-item.js +3 -3
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +6 -6
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal/modal.types.js +2 -0
- package/dist/collection/components/modal/modal.types.js.map +1 -0
- package/dist/collection/components/modal-content/modal-content.js +1 -1
- package/dist/collection/components/modal-footer/modal-footer.js +1 -1
- package/dist/collection/components/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.js +2 -2
- package/dist/collection/components/pane/pane.js +24 -24
- package/dist/collection/components/pane/pane.js.map +1 -1
- package/dist/collection/components/pane/pane.types.js +2 -0
- package/dist/collection/components/pane/pane.types.js.map +1 -0
- package/dist/collection/components/pane-layout/pane-layout.js +1 -1
- package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
- package/dist/collection/components/pill/pill.js +4 -4
- package/dist/collection/components/progress-indicator/circular.js.map +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +6 -6
- package/dist/collection/components/progress-indicator/progress-indicator.js.map +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.types.js +2 -0
- package/dist/collection/components/progress-indicator/progress-indicator.types.js.map +1 -0
- package/dist/collection/components/push-card/push-card.js +4 -4
- package/dist/collection/components/push-card/push-card.js.map +1 -1
- package/dist/collection/components/push-card/push-card.types.js +2 -0
- package/dist/collection/components/push-card/push-card.types.js.map +1 -0
- package/dist/collection/components/radio/radio.js +4 -4
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/select/select.js +8 -8
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/slider/slider.js +9 -9
- package/dist/collection/components/slider/slider.js.map +1 -1
- package/dist/collection/components/slider/slider.types.js +2 -0
- package/dist/collection/components/slider/slider.types.js.map +1 -0
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +4 -4
- package/dist/collection/components/split-button/split-button.js.map +1 -1
- package/dist/collection/components/split-button/split-button.types.js +2 -0
- package/dist/collection/components/split-button/split-button.types.js.map +1 -0
- package/dist/collection/components/tab-item/tab-item.js +6 -6
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.types.js +2 -0
- package/dist/collection/components/tab-item/tab-item.types.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tile/tile.js +4 -4
- package/dist/collection/components/time-input/time-input.js +6 -6
- package/dist/collection/components/time-input/time-input.js.map +1 -1
- package/dist/collection/components/time-input/time-input.types.js +2 -0
- package/dist/collection/components/time-input/time-input.types.js.map +1 -0
- package/dist/collection/components/time-picker/time-picker.js +7 -7
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.types.js +2 -0
- package/dist/collection/components/time-picker/time-picker.types.js.map +1 -0
- package/dist/collection/components/toast/toast-container.js +5 -5
- package/dist/collection/components/toast/toast-container.js.map +1 -1
- package/dist/collection/components/toast/toast-container.types.js +2 -0
- package/dist/collection/components/toast/toast-container.types.js.map +1 -0
- package/dist/collection/components/toast/toast-utils.js.map +1 -1
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toggle-button/toggle-button.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +4 -4
- package/dist/collection/components/typography/typography.js +10 -10
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/collection/components/typography/typography.types.js +2 -0
- package/dist/collection/components/typography/typography.types.js.map +1 -0
- package/dist/collection/components/utils/modal/modal.js.map +1 -1
- package/dist/collection/index.js +1 -19
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/public-api.js +22 -0
- package/dist/collection/public-api.js.map +1 -0
- package/dist/esm/base-button-CKT5FMT1.js +71 -0
- package/dist/esm/base-button-CKT5FMT1.js.map +1 -0
- package/dist/esm/base-icon-button-7cQMdhTz.js +19 -0
- package/dist/esm/base-icon-button-7cQMdhTz.js.map +1 -0
- package/dist/esm/helper-text-util-CBCAKFyG.js +42 -0
- package/dist/esm/helper-text-util-CBCAKFyG.js.map +1 -0
- package/dist/esm/index-DJsXFBNm.js +2702 -0
- package/dist/esm/index-DJsXFBNm.js.map +1 -0
- package/dist/esm/index.js +2 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/input.util-DGHGYsFM.js +203 -0
- package/dist/esm/input.util-DGHGYsFM.js.map +1 -0
- package/dist/esm/ix-action-card.entry.js +2 -2
- package/dist/esm/ix-action-card.entry.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +4 -4
- package/dist/esm/ix-application-sidebar.entry.js +2 -2
- package/dist/esm/ix-application-switch-modal.entry.js +2 -2
- package/dist/esm/ix-application.entry.js +4 -4
- package/dist/esm/ix-avatar_2.entry.js +3 -3
- package/dist/esm/ix-basic-navigation.entry.js +3 -3
- package/dist/esm/ix-blind.entry.js +6 -6
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
- package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb.entry.js +3 -3
- package/dist/esm/ix-button.entry.js +4 -4
- package/dist/esm/ix-card-accordion.ix-card-title.entry.js.map +1 -1
- package/dist/esm/ix-card-accordion_2.entry.js +5 -5
- package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
- package/dist/esm/ix-card-list.entry.js +5 -5
- package/dist/esm/ix-card.ix-card-content.entry.js.map +1 -1
- package/dist/esm/ix-card_2.entry.js +4 -4
- package/dist/esm/ix-card_2.entry.js.map +1 -1
- package/dist/esm/ix-category-filter.entry.js +5 -5
- package/dist/esm/ix-checkbox-group.entry.js +4 -4
- package/dist/esm/ix-checkbox.entry.js +5 -5
- package/dist/esm/ix-chip.entry.js +5 -5
- package/dist/esm/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.js.map +1 -1
- package/dist/esm/ix-col_4.entry.js +12 -12
- package/dist/esm/ix-col_4.entry.js.map +1 -1
- package/dist/esm/ix-content-header.entry.js +2 -2
- package/dist/esm/ix-content-header.entry.js.map +1 -1
- package/dist/esm/ix-content.entry.js +4 -4
- package/dist/esm/ix-css-grid-item.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js.map +1 -1
- package/dist/esm/ix-custom-field.entry.js +3 -3
- package/dist/esm/ix-date-dropdown.entry.js +5 -5
- package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-date-input.entry.js +6 -6
- package/dist/esm/ix-date-input.entry.js.map +1 -1
- package/dist/esm/ix-date-time-card.entry.js +3 -3
- package/dist/esm/ix-date-time-card.entry.js.map +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +2 -2
- package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
- package/dist/esm/ix-divider.entry.js +2 -2
- package/dist/esm/ix-drawer.entry.js +6 -6
- package/dist/esm/ix-dropdown-button.entry.js +3 -3
- package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-header.entry.js +2 -2
- package/dist/esm/ix-dropdown-item.entry.js +4 -4
- package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
- package/dist/esm/ix-dropdown.entry.js +3 -3
- package/dist/esm/ix-empty-state.entry.js +2 -2
- package/dist/esm/ix-empty-state.entry.js.map +1 -1
- package/dist/esm/ix-event-list-item.entry.js +5 -5
- package/dist/esm/ix-event-list.entry.js +3 -3
- package/dist/esm/ix-expanding-search.entry.js +5 -5
- package/dist/esm/ix-field-label_2.entry.js +6 -6
- package/dist/esm/ix-filter-chip_2.entry.js +3 -3
- package/dist/esm/ix-flip-tile-content.entry.js +2 -2
- package/dist/esm/ix-flip-tile.entry.js +5 -5
- package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
- package/dist/esm/ix-group.entry.js +9 -9
- package/dist/esm/ix-helper-text.entry.js +4 -4
- package/dist/esm/ix-icon-button.ix-spinner.entry.js.map +1 -1
- package/dist/esm/ix-icon-button_2.entry.js +5 -5
- package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
- package/dist/esm/ix-icon-toggle-button.entry.js +4 -4
- package/dist/esm/ix-input-group.entry.js +2 -2
- package/dist/esm/ix-input.entry.js +7 -7
- package/dist/esm/ix-key-value-list.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js.map +1 -1
- package/dist/esm/ix-kpi.entry.js +4 -4
- package/dist/esm/ix-layout-auto.entry.js +2 -2
- package/dist/esm/ix-link-button.entry.js +4 -4
- package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
- package/dist/esm/ix-map-navigation.entry.js +3 -3
- package/dist/esm/ix-menu-about-item.entry.js +2 -2
- package/dist/esm/ix-menu-about-news.entry.js +5 -5
- package/dist/esm/ix-menu-about.entry.js +3 -3
- package/dist/esm/ix-menu-avatar.entry.js +3 -3
- package/dist/esm/ix-menu-category.entry.js +6 -6
- package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
- package/dist/esm/ix-menu-item.entry.js +4 -4
- package/dist/esm/ix-menu-settings-B56_taBh.js +118 -0
- package/dist/esm/ix-menu-settings-B56_taBh.js.map +1 -0
- package/dist/esm/ix-menu-settings-item.entry.js +2 -2
- package/dist/esm/ix-menu-settings.entry.js +2 -2
- package/dist/esm/ix-menu.entry.js +13 -13
- package/dist/esm/ix-message-bar.entry.js +2 -2
- package/dist/esm/ix-modal-content_2.entry.js +3 -3
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-loading.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +5 -5
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-number-input.entry.js +9 -9
- package/dist/esm/ix-pagination.entry.js +4 -4
- package/dist/esm/ix-pane-layout.entry.js +2 -2
- package/dist/esm/ix-pane-layout.entry.js.map +1 -1
- package/dist/esm/ix-pane.entry.js +7 -7
- package/dist/esm/ix-pane.entry.js.map +1 -1
- package/dist/esm/ix-pill.entry.js +5 -5
- package/dist/esm/ix-progress-indicator.entry.js +4 -4
- package/dist/esm/ix-progress-indicator.entry.js.map +1 -1
- package/dist/esm/ix-push-card.entry.js +2 -2
- package/dist/esm/ix-push-card.entry.js.map +1 -1
- package/dist/esm/ix-radio-group.entry.js +4 -4
- package/dist/esm/ix-radio.entry.js +6 -6
- package/dist/esm/ix-select.entry.js +11 -11
- package/dist/esm/ix-slider.entry.js +8 -8
- package/dist/esm/ix-slider.entry.js.map +1 -1
- package/dist/esm/ix-split-button.entry.js +2 -2
- package/dist/esm/ix-split-button.entry.js.map +1 -1
- package/dist/esm/ix-tab-item.ix-tabs.entry.js.map +1 -1
- package/dist/esm/ix-tab-item_2.entry.js +6 -6
- package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
- package/dist/esm/ix-textarea.entry.js +5 -5
- package/dist/esm/ix-textarea.entry.js.map +1 -1
- package/dist/esm/ix-tile.entry.js +5 -5
- package/dist/esm/ix-time-input.entry.js +6 -6
- package/dist/esm/ix-time-input.entry.js.map +1 -1
- package/dist/esm/ix-time-picker.entry.js +6 -6
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast-container.entry.js +3 -3
- package/dist/esm/ix-toast-container.entry.js.map +1 -1
- package/dist/esm/ix-toast.entry.js +3 -3
- package/dist/esm/ix-toggle-button.entry.js +4 -4
- package/dist/esm/ix-toggle.entry.js +5 -5
- package/dist/esm/ix-tooltip.entry.js +2 -2
- package/dist/esm/ix-tree-item.entry.js +5 -5
- package/dist/esm/ix-tree.entry.js +2 -2
- package/dist/esm/ix-typography.entry.js +2 -2
- package/dist/esm/ix-typography.entry.js.map +1 -1
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +1 -1
- package/dist/esm/ix-workflow-step.entry.js +1 -1
- package/dist/esm/ix-workflow-steps.entry.js +1 -1
- package/dist/esm/listener-B0yYRvMl.js +76 -0
- package/dist/esm/listener-B0yYRvMl.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/modal-BldRA6Um.js.map +1 -1
- package/dist/esm/siemens-ix.js +2 -2
- package/dist/esm/validation-gQpVWmEm.js +118 -0
- package/dist/esm/validation-gQpVWmEm.js.map +1 -0
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/ix-action-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-blind.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-breadcrumb-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-card-accordion.ix-card-title.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-card.ix-card-content.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-content-header.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-css-grid.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-dropdown.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-time-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-datetime-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-dropdown-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-empty-state.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-icon-button.ix-spinner.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-key-value.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-modal.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pane-layout.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pane.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-progress-indicator.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-push-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-slider.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-split-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-tab-item.ix-tabs.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-textarea.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-picker.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toast-container.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-typography.entry.esm.js.map +1 -1
- package/dist/siemens-ix/p--JQiLjHw.js +2 -0
- package/dist/siemens-ix/p--JQiLjHw.js.map +1 -0
- package/dist/siemens-ix/p-003ae2cf.entry.js +2 -0
- package/dist/siemens-ix/p-00eff8b5.entry.js +2 -0
- package/dist/siemens-ix/p-0195766f.entry.js +2 -0
- package/dist/siemens-ix/p-025c5b1b.entry.js +2 -0
- package/dist/siemens-ix/p-03b8e425.entry.js +2 -0
- package/dist/siemens-ix/p-04527b1e.entry.js +2 -0
- package/dist/siemens-ix/p-07b2da86.entry.js +2 -0
- package/dist/siemens-ix/p-0935e05e.entry.js +2 -0
- package/dist/siemens-ix/p-0935e05e.entry.js.map +1 -0
- package/dist/siemens-ix/p-098aa857.entry.js +2 -0
- package/dist/siemens-ix/p-0b2e7f25.entry.js +2 -0
- package/dist/siemens-ix/p-0b2e7f25.entry.js.map +1 -0
- package/dist/siemens-ix/p-130ffc16.entry.js +2 -0
- package/dist/siemens-ix/p-13b5f3c3.entry.js +2 -0
- package/dist/siemens-ix/p-14d2042d.entry.js +2 -0
- package/dist/siemens-ix/p-15e0db51.entry.js +2 -0
- package/dist/siemens-ix/p-15e0db51.entry.js.map +1 -0
- package/dist/siemens-ix/p-173dfb9e.entry.js +2 -0
- package/dist/siemens-ix/p-173dfb9e.entry.js.map +1 -0
- package/dist/siemens-ix/p-19501b80.entry.js +2 -0
- package/dist/siemens-ix/p-1df6d18f.entry.js +2 -0
- package/dist/siemens-ix/p-1fdfe35a.entry.js +2 -0
- package/dist/siemens-ix/p-2642d96b.entry.js +2 -0
- package/dist/siemens-ix/p-28aece6e.entry.js +2 -0
- package/dist/siemens-ix/p-29d44cef.entry.js +2 -0
- package/dist/siemens-ix/p-2db9bcfa.entry.js +2 -0
- package/dist/siemens-ix/p-2db9bcfa.entry.js.map +1 -0
- package/dist/siemens-ix/p-2f2dfb6e.entry.js +2 -0
- package/dist/siemens-ix/p-2f9b9e7a.entry.js +2 -0
- package/dist/siemens-ix/p-326c0944.entry.js +2 -0
- package/dist/siemens-ix/p-326c0944.entry.js.map +1 -0
- package/dist/siemens-ix/p-35054c78.entry.js +2 -0
- package/dist/siemens-ix/p-35054c78.entry.js.map +1 -0
- package/dist/siemens-ix/p-36b894a2.entry.js +2 -0
- package/dist/siemens-ix/p-36b894a2.entry.js.map +1 -0
- package/dist/siemens-ix/p-3b45287a.entry.js +2 -0
- package/dist/siemens-ix/p-3b45287a.entry.js.map +1 -0
- package/dist/siemens-ix/p-440a0ee0.entry.js +2 -0
- package/dist/siemens-ix/p-44be2535.entry.js +2 -0
- package/dist/siemens-ix/p-44be2535.entry.js.map +1 -0
- package/dist/siemens-ix/p-456ca686.entry.js +2 -0
- package/dist/siemens-ix/p-456ca686.entry.js.map +1 -0
- package/dist/siemens-ix/p-4657ec52.entry.js +2 -0
- package/dist/siemens-ix/p-4657ec52.entry.js.map +1 -0
- package/dist/siemens-ix/p-472c1d6b.entry.js +2 -0
- package/dist/siemens-ix/p-47f395be.entry.js +2 -0
- package/dist/siemens-ix/p-483bc052.entry.js +2 -0
- package/dist/siemens-ix/p-4959b8e6.entry.js +2 -0
- package/dist/siemens-ix/p-4e2b30a4.entry.js +2 -0
- package/dist/siemens-ix/p-4e2b30a4.entry.js.map +1 -0
- package/dist/siemens-ix/p-4ef7a072.entry.js +2 -0
- package/dist/siemens-ix/p-4ef7a072.entry.js.map +1 -0
- package/dist/siemens-ix/p-4fe2d0f7.entry.js +2 -0
- package/dist/siemens-ix/p-518b5533.entry.js +2 -0
- package/dist/siemens-ix/p-518b5533.entry.js.map +1 -0
- package/dist/siemens-ix/p-5b22342c.entry.js +2 -0
- package/dist/siemens-ix/p-605a9fe8.entry.js +2 -0
- package/dist/siemens-ix/p-6337e880.entry.js +2 -0
- package/dist/siemens-ix/p-6549edf0.entry.js +2 -0
- package/dist/siemens-ix/p-66d20585.entry.js +2 -0
- package/dist/siemens-ix/p-6adde42d.entry.js +2 -0
- package/dist/siemens-ix/p-6cc448b4.entry.js +2 -0
- package/dist/siemens-ix/p-7011678e.entry.js +2 -0
- package/dist/siemens-ix/p-7111f065.entry.js +2 -0
- package/dist/siemens-ix/p-71c14a29.entry.js +2 -0
- package/dist/siemens-ix/p-71c14a29.entry.js.map +1 -0
- package/dist/siemens-ix/p-76f59fa5.entry.js +2 -0
- package/dist/siemens-ix/p-777675ce.entry.js +2 -0
- package/dist/siemens-ix/p-7a336485.entry.js +2 -0
- package/dist/siemens-ix/p-7a336485.entry.js.map +1 -0
- package/dist/siemens-ix/p-8d4558b9.entry.js +2 -0
- package/dist/siemens-ix/p-8fcada5a.entry.js +2 -0
- package/dist/siemens-ix/p-91ba2527.entry.js +2 -0
- package/dist/siemens-ix/p-97693d72.entry.js +2 -0
- package/dist/siemens-ix/p-97a53af6.entry.js +2 -0
- package/dist/siemens-ix/p-981dae13.entry.js +2 -0
- package/dist/siemens-ix/p-981dae13.entry.js.map +1 -0
- package/dist/siemens-ix/p-988f37da.entry.js +2 -0
- package/dist/siemens-ix/p-9f74e709.entry.js +2 -0
- package/dist/siemens-ix/p-9f74e709.entry.js.map +1 -0
- package/dist/siemens-ix/p-9f7d82d2.entry.js +2 -0
- package/dist/siemens-ix/p-BsJawkTz.js +2 -0
- package/dist/siemens-ix/p-BsJawkTz.js.map +1 -0
- package/dist/siemens-ix/p-BxQZld1q.js.map +1 -1
- package/dist/siemens-ix/p-CFsAnuUU.js +2 -0
- package/dist/siemens-ix/p-CFsAnuUU.js.map +1 -0
- package/dist/siemens-ix/p-CpY7qbN7.js +2 -0
- package/dist/siemens-ix/p-CpY7qbN7.js.map +1 -0
- package/dist/siemens-ix/p-Cpl-a_ti.js +2 -0
- package/dist/siemens-ix/p-Cpl-a_ti.js.map +1 -0
- package/dist/siemens-ix/p-CthRnoDv.js +2 -0
- package/dist/siemens-ix/p-CthRnoDv.js.map +1 -0
- package/dist/siemens-ix/p-DJsXFBNm.js +3 -0
- package/dist/siemens-ix/p-DJsXFBNm.js.map +1 -0
- package/dist/siemens-ix/p-_tyNUrlp.js +2 -0
- package/dist/siemens-ix/p-_tyNUrlp.js.map +1 -0
- package/dist/siemens-ix/p-a43c4907.entry.js +2 -0
- package/dist/siemens-ix/p-a6ea8bc6.entry.js +2 -0
- package/dist/siemens-ix/p-a6ea8bc6.entry.js.map +1 -0
- package/dist/siemens-ix/p-a7bdd5fd.entry.js +2 -0
- package/dist/siemens-ix/p-a7bdd5fd.entry.js.map +1 -0
- package/dist/siemens-ix/p-a8cd5e58.entry.js +2 -0
- package/dist/siemens-ix/p-a8cd5e58.entry.js.map +1 -0
- package/dist/siemens-ix/p-a9336906.entry.js +2 -0
- package/dist/siemens-ix/p-a9336906.entry.js.map +1 -0
- package/dist/siemens-ix/p-a9ec8094.entry.js +2 -0
- package/dist/siemens-ix/p-aa2dd2c3.entry.js +2 -0
- package/dist/siemens-ix/p-aa2dd2c3.entry.js.map +1 -0
- package/dist/siemens-ix/p-afd392d5.entry.js +2 -0
- package/dist/siemens-ix/p-b00517df.entry.js +2 -0
- package/dist/siemens-ix/p-b3d4d2cd.entry.js +2 -0
- package/dist/siemens-ix/p-b548335e.entry.js +2 -0
- package/dist/siemens-ix/p-b735b8ce.entry.js +2 -0
- package/dist/siemens-ix/p-ba24447f.entry.js +2 -0
- package/dist/siemens-ix/p-ba24447f.entry.js.map +1 -0
- package/dist/siemens-ix/p-bec289d7.entry.js +2 -0
- package/dist/siemens-ix/p-bf7fbdfc.entry.js +2 -0
- package/dist/siemens-ix/p-bf8dd5a1.entry.js +2 -0
- package/dist/siemens-ix/p-c050d511.entry.js +2 -0
- package/dist/siemens-ix/p-c050d511.entry.js.map +1 -0
- package/dist/siemens-ix/p-c24a5925.entry.js +2 -0
- package/dist/siemens-ix/p-c24a5925.entry.js.map +1 -0
- package/dist/siemens-ix/p-c5f8ccc9.entry.js +2 -0
- package/dist/siemens-ix/p-c9ab3079.entry.js +2 -0
- package/dist/siemens-ix/p-c9ab3079.entry.js.map +1 -0
- package/dist/siemens-ix/p-c9d48927.entry.js +2 -0
- package/dist/siemens-ix/p-ce3aebe6.entry.js +2 -0
- package/dist/siemens-ix/p-cf052f87.entry.js +2 -0
- package/dist/siemens-ix/p-cf052f87.entry.js.map +1 -0
- package/dist/siemens-ix/p-d0c1473e.entry.js +2 -0
- package/dist/siemens-ix/p-d0c1473e.entry.js.map +1 -0
- package/dist/siemens-ix/p-d3458382.entry.js +2 -0
- package/dist/siemens-ix/p-d605b181.entry.js +2 -0
- package/dist/siemens-ix/p-db6d5110.entry.js +2 -0
- package/dist/siemens-ix/p-db6d5110.entry.js.map +1 -0
- package/dist/siemens-ix/p-de79e8c0.entry.js +2 -0
- package/dist/siemens-ix/p-de79e8c0.entry.js.map +1 -0
- package/dist/siemens-ix/p-dfb5f7d8.entry.js +2 -0
- package/dist/siemens-ix/p-dfe4de85.entry.js +2 -0
- package/dist/siemens-ix/p-ea142215.entry.js +2 -0
- package/dist/siemens-ix/p-ead88218.entry.js +2 -0
- package/dist/siemens-ix/p-ec7cd008.entry.js +2 -0
- package/dist/siemens-ix/p-ecd576f8.entry.js +2 -0
- package/dist/siemens-ix/p-ecd576f8.entry.js.map +1 -0
- package/dist/siemens-ix/p-ee2902a5.entry.js +2 -0
- package/dist/siemens-ix/p-f4415d44.entry.js +2 -0
- package/dist/siemens-ix/p-f4ce72e4.entry.js +2 -0
- package/dist/siemens-ix/p-f4ce72e4.entry.js.map +1 -0
- package/dist/siemens-ix/p-f6a6694e.entry.js +2 -0
- package/dist/siemens-ix/p-f6a6694e.entry.js.map +1 -0
- package/dist/siemens-ix/p-fbacd6eb.entry.js +2 -0
- package/dist/siemens-ix/p-fbacd6eb.entry.js.map +1 -0
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/action-card/action-card.d.ts +1 -2
- package/dist/types/components/action-card/action-card.types.d.ts +2 -0
- package/dist/types/components/blind/blind.d.ts +1 -2
- package/dist/types/components/blind/blind.types.d.ts +2 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +0 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/card/card.types.d.ts +1 -0
- package/dist/types/components/card-accordion/card-accordion.d.ts +1 -4
- package/dist/types/components/card-accordion/card-accordion.types.d.ts +4 -0
- package/dist/types/components/col/col.d.ts +1 -1
- package/dist/types/components/col/col.types.d.ts +1 -0
- package/dist/types/components/content-header/content-header.d.ts +1 -1
- package/dist/types/components/content-header/content-header.types.d.ts +1 -0
- package/dist/types/components/css-grid/css-grid.d.ts +1 -1
- package/dist/types/components/css-grid/css-grid.types.d.ts +1 -0
- package/dist/types/components/date-dropdown/date-dropdown.d.ts +1 -11
- package/dist/types/components/date-dropdown/date-dropdown.types.d.ts +11 -0
- package/dist/types/components/date-input/date-input.d.ts +1 -4
- package/dist/types/components/date-input/date-input.types.d.ts +4 -0
- package/dist/types/components/date-picker/date-picker-component.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +2 -5
- package/dist/types/components/date-picker/date-picker.events.d.ts +4 -0
- package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
- package/dist/types/components/date-time-card/date-time-card.types.d.ts +1 -0
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +1 -6
- package/dist/types/components/datetime-picker/datetime-picker.types.d.ts +6 -0
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +1 -2
- package/dist/types/components/dropdown-button/dropdown-button.types.d.ts +2 -0
- package/dist/types/components/empty-state/empty-state.d.ts +1 -1
- package/dist/types/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/types/components/icon-button/icon-button.d.ts +1 -2
- package/dist/types/components/icon-button/icon-button.types.d.ts +2 -0
- package/dist/types/components/input/textarea.d.ts +1 -1
- package/dist/types/components/input/textarea.types.d.ts +1 -0
- package/dist/types/components/key-value/key-value.d.ts +1 -1
- package/dist/types/components/key-value/key-value.types.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +1 -3
- package/dist/types/components/modal/modal.types.d.ts +3 -0
- package/dist/types/components/pane/pane.d.ts +1 -21
- package/dist/types/components/pane/pane.types.d.ts +21 -0
- package/dist/types/components/progress-indicator/circular.d.ts +1 -1
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +1 -1
- package/dist/types/components/progress-indicator/progress-indicator.types.d.ts +1 -0
- package/dist/types/components/push-card/push-card.d.ts +1 -2
- package/dist/types/components/push-card/push-card.types.d.ts +2 -0
- package/dist/types/components/slider/slider.d.ts +1 -1
- package/dist/types/components/slider/slider.types.d.ts +1 -0
- package/dist/types/components/split-button/split-button.d.ts +1 -2
- package/dist/types/components/split-button/split-button.types.d.ts +2 -0
- package/dist/types/components/tab-item/tab-item.d.ts +1 -3
- package/dist/types/components/tab-item/tab-item.types.d.ts +3 -0
- package/dist/types/components/time-input/time-input.d.ts +1 -4
- package/dist/types/components/time-input/time-input.types.d.ts +4 -0
- package/dist/types/components/time-picker/time-picker.d.ts +1 -2
- package/dist/types/components/time-picker/time-picker.types.d.ts +2 -0
- package/dist/types/components/toast/toast-container.d.ts +1 -5
- package/dist/types/components/toast/toast-container.types.d.ts +5 -0
- package/dist/types/components/toast/toast-utils.d.ts +1 -1
- package/dist/types/components/typography/typography.d.ts +1 -10
- package/dist/types/components/typography/typography.types.d.ts +10 -0
- package/dist/types/components/utils/modal/modal.d.ts +1 -1
- package/dist/types/components.d.ts +58 -60
- package/dist/types/index.d.ts +3 -16
- package/dist/types/public-api.d.ts +15 -0
- package/hydrate/index.js +256 -256
- package/hydrate/index.mjs +256 -256
- package/package.json +4 -5
- package/components/custom-elements.d.ts +0 -10
- package/components/index.d.ts +0 -33
- package/components/index.js +0 -137
- package/components/index.js.map +0 -1
- package/components/ix-action-card.d.ts +0 -11
- package/components/ix-action-card.js +0 -72
- package/components/ix-action-card.js.map +0 -1
- package/components/ix-application-header.d.ts +0 -11
- package/components/ix-application-header.js +0 -9
- package/components/ix-application-header.js.map +0 -1
- package/components/ix-application-sidebar.d.ts +0 -11
- package/components/ix-application-sidebar.js +0 -64
- package/components/ix-application-sidebar.js.map +0 -1
- package/components/ix-application-switch-modal.d.ts +0 -11
- package/components/ix-application-switch-modal.js +0 -106
- package/components/ix-application-switch-modal.js.map +0 -1
- package/components/ix-application.d.ts +0 -11
- package/components/ix-application.js +0 -148
- package/components/ix-application.js.map +0 -1
- package/components/ix-avatar.d.ts +0 -11
- package/components/ix-avatar.js +0 -9
- package/components/ix-avatar.js.map +0 -1
- package/components/ix-basic-navigation.d.ts +0 -11
- package/components/ix-basic-navigation.js +0 -154
- package/components/ix-basic-navigation.js.map +0 -1
- package/components/ix-blind.d.ts +0 -11
- package/components/ix-blind.js +0 -130
- package/components/ix-blind.js.map +0 -1
- package/components/ix-breadcrumb-item.d.ts +0 -11
- package/components/ix-breadcrumb-item.js +0 -9
- package/components/ix-breadcrumb-item.js.map +0 -1
- package/components/ix-breadcrumb.d.ts +0 -11
- package/components/ix-breadcrumb.js +0 -169
- package/components/ix-breadcrumb.js.map +0 -1
- package/components/ix-button.d.ts +0 -11
- package/components/ix-button.js +0 -9
- package/components/ix-button.js.map +0 -1
- package/components/ix-card-accordion.d.ts +0 -11
- package/components/ix-card-accordion.js +0 -9
- package/components/ix-card-accordion.js.map +0 -1
- package/components/ix-card-content.d.ts +0 -11
- package/components/ix-card-content.js +0 -9
- package/components/ix-card-content.js.map +0 -1
- package/components/ix-card-list.d.ts +0 -11
- package/components/ix-card-list.js +0 -256
- package/components/ix-card-list.js.map +0 -1
- package/components/ix-card-title.d.ts +0 -11
- package/components/ix-card-title.js +0 -9
- package/components/ix-card-title.js.map +0 -1
- package/components/ix-card.d.ts +0 -11
- package/components/ix-card.js +0 -9
- package/components/ix-card.js.map +0 -1
- package/components/ix-category-filter.d.ts +0 -11
- package/components/ix-category-filter.js +0 -600
- package/components/ix-category-filter.js.map +0 -1
- package/components/ix-checkbox-group.d.ts +0 -11
- package/components/ix-checkbox-group.js +0 -158
- package/components/ix-checkbox-group.js.map +0 -1
- package/components/ix-checkbox.d.ts +0 -11
- package/components/ix-checkbox.js +0 -163
- package/components/ix-checkbox.js.map +0 -1
- package/components/ix-chip.d.ts +0 -11
- package/components/ix-chip.js +0 -154
- package/components/ix-chip.js.map +0 -1
- package/components/ix-col.d.ts +0 -11
- package/components/ix-col.js +0 -9
- package/components/ix-col.js.map +0 -1
- package/components/ix-content-header.d.ts +0 -11
- package/components/ix-content-header.js +0 -73
- package/components/ix-content-header.js.map +0 -1
- package/components/ix-content.d.ts +0 -11
- package/components/ix-content.js +0 -49
- package/components/ix-content.js.map +0 -1
- package/components/ix-css-grid-item.d.ts +0 -11
- package/components/ix-css-grid-item.js +0 -40
- package/components/ix-css-grid-item.js.map +0 -1
- package/components/ix-css-grid.d.ts +0 -11
- package/components/ix-css-grid.js +0 -117
- package/components/ix-css-grid.js.map +0 -1
- package/components/ix-custom-field.d.ts +0 -11
- package/components/ix-custom-field.js +0 -112
- package/components/ix-custom-field.js.map +0 -1
- package/components/ix-date-dropdown.d.ts +0 -11
- package/components/ix-date-dropdown.js +0 -368
- package/components/ix-date-dropdown.js.map +0 -1
- package/components/ix-date-input.d.ts +0 -11
- package/components/ix-date-input.js +0 -393
- package/components/ix-date-input.js.map +0 -1
- package/components/ix-date-picker.d.ts +0 -11
- package/components/ix-date-picker.js +0 -9
- package/components/ix-date-picker.js.map +0 -1
- package/components/ix-date-time-card.d.ts +0 -11
- package/components/ix-date-time-card.js +0 -9
- package/components/ix-date-time-card.js.map +0 -1
- package/components/ix-datetime-picker.d.ts +0 -11
- package/components/ix-datetime-picker.js +0 -204
- package/components/ix-datetime-picker.js.map +0 -1
- package/components/ix-divider.d.ts +0 -11
- package/components/ix-divider.js +0 -9
- package/components/ix-divider.js.map +0 -1
- package/components/ix-drawer.d.ts +0 -11
- package/components/ix-drawer.js +0 -200
- package/components/ix-drawer.js.map +0 -1
- package/components/ix-dropdown-button.d.ts +0 -11
- package/components/ix-dropdown-button.js +0 -106
- package/components/ix-dropdown-button.js.map +0 -1
- package/components/ix-dropdown-header.d.ts +0 -11
- package/components/ix-dropdown-header.js +0 -44
- package/components/ix-dropdown-header.js.map +0 -1
- package/components/ix-dropdown-item.d.ts +0 -11
- package/components/ix-dropdown-item.js +0 -9
- package/components/ix-dropdown-item.js.map +0 -1
- package/components/ix-dropdown-quick-actions.d.ts +0 -11
- package/components/ix-dropdown-quick-actions.js +0 -36
- package/components/ix-dropdown-quick-actions.js.map +0 -1
- package/components/ix-dropdown.d.ts +0 -11
- package/components/ix-dropdown.js +0 -9
- package/components/ix-dropdown.js.map +0 -1
- package/components/ix-empty-state.d.ts +0 -11
- package/components/ix-empty-state.js +0 -65
- package/components/ix-empty-state.js.map +0 -1
- package/components/ix-event-list-item.d.ts +0 -11
- package/components/ix-event-list-item.js +0 -72
- package/components/ix-event-list-item.js.map +0 -1
- package/components/ix-event-list.d.ts +0 -11
- package/components/ix-event-list.js +0 -173
- package/components/ix-event-list.js.map +0 -1
- package/components/ix-expanding-search.d.ts +0 -11
- package/components/ix-expanding-search.js +0 -145
- package/components/ix-expanding-search.js.map +0 -1
- package/components/ix-field-label.d.ts +0 -11
- package/components/ix-field-label.js +0 -9
- package/components/ix-field-label.js.map +0 -1
- package/components/ix-field-wrapper.d.ts +0 -11
- package/components/ix-field-wrapper.js +0 -9
- package/components/ix-field-wrapper.js.map +0 -1
- package/components/ix-filter-chip.d.ts +0 -11
- package/components/ix-filter-chip.js +0 -9
- package/components/ix-filter-chip.js.map +0 -1
- package/components/ix-flip-tile-content.d.ts +0 -11
- package/components/ix-flip-tile-content.js +0 -44
- package/components/ix-flip-tile-content.js.map +0 -1
- package/components/ix-flip-tile.d.ts +0 -11
- package/components/ix-flip-tile.js +0 -153
- package/components/ix-flip-tile.js.map +0 -1
- package/components/ix-group-context-menu.d.ts +0 -11
- package/components/ix-group-context-menu.js +0 -9
- package/components/ix-group-context-menu.js.map +0 -1
- package/components/ix-group-item.d.ts +0 -11
- package/components/ix-group-item.js +0 -9
- package/components/ix-group-item.js.map +0 -1
- package/components/ix-group.d.ts +0 -11
- package/components/ix-group.js +0 -221
- package/components/ix-group.js.map +0 -1
- package/components/ix-helper-text.d.ts +0 -11
- package/components/ix-helper-text.js +0 -95
- package/components/ix-helper-text.js.map +0 -1
- package/components/ix-icon-button.d.ts +0 -11
- package/components/ix-icon-button.js +0 -9
- package/components/ix-icon-button.js.map +0 -1
- package/components/ix-icon-toggle-button.d.ts +0 -11
- package/components/ix-icon-toggle-button.js +0 -149
- package/components/ix-icon-toggle-button.js.map +0 -1
- package/components/ix-input-group.d.ts +0 -11
- package/components/ix-input-group.js +0 -152
- package/components/ix-input-group.js.map +0 -1
- package/components/ix-input.d.ts +0 -11
- package/components/ix-input.js +0 -248
- package/components/ix-input.js.map +0 -1
- package/components/ix-key-value-list.d.ts +0 -11
- package/components/ix-key-value-list.js +0 -42
- package/components/ix-key-value-list.js.map +0 -1
- package/components/ix-key-value.d.ts +0 -11
- package/components/ix-key-value.js +0 -48
- package/components/ix-key-value.js.map +0 -1
- package/components/ix-kpi.d.ts +0 -11
- package/components/ix-kpi.js +0 -74
- package/components/ix-kpi.js.map +0 -1
- package/components/ix-layout-auto.d.ts +0 -11
- package/components/ix-layout-auto.js +0 -113
- package/components/ix-layout-auto.js.map +0 -1
- package/components/ix-layout-grid.d.ts +0 -11
- package/components/ix-layout-grid.js +0 -9
- package/components/ix-layout-grid.js.map +0 -1
- package/components/ix-link-button.d.ts +0 -11
- package/components/ix-link-button.js +0 -57
- package/components/ix-link-button.js.map +0 -1
- package/components/ix-map-navigation-overlay.d.ts +0 -11
- package/components/ix-map-navigation-overlay.js +0 -9
- package/components/ix-map-navigation-overlay.js.map +0 -1
- package/components/ix-map-navigation.d.ts +0 -11
- package/components/ix-map-navigation.js +0 -240
- package/components/ix-map-navigation.js.map +0 -1
- package/components/ix-menu-about-item.d.ts +0 -11
- package/components/ix-menu-about-item.js +0 -51
- package/components/ix-menu-about-item.js.map +0 -1
- package/components/ix-menu-about-news.d.ts +0 -11
- package/components/ix-menu-about-news.js +0 -93
- package/components/ix-menu-about-news.js.map +0 -1
- package/components/ix-menu-about.d.ts +0 -11
- package/components/ix-menu-about.js +0 -89
- package/components/ix-menu-about.js.map +0 -1
- package/components/ix-menu-avatar-item.d.ts +0 -11
- package/components/ix-menu-avatar-item.js +0 -9
- package/components/ix-menu-avatar-item.js.map +0 -1
- package/components/ix-menu-avatar.d.ts +0 -11
- package/components/ix-menu-avatar.js +0 -115
- package/components/ix-menu-avatar.js.map +0 -1
- package/components/ix-menu-category.d.ts +0 -11
- package/components/ix-menu-category.js +0 -284
- package/components/ix-menu-category.js.map +0 -1
- package/components/ix-menu-expand-icon.d.ts +0 -11
- package/components/ix-menu-expand-icon.js +0 -9
- package/components/ix-menu-expand-icon.js.map +0 -1
- package/components/ix-menu-item.d.ts +0 -11
- package/components/ix-menu-item.js +0 -9
- package/components/ix-menu-item.js.map +0 -1
- package/components/ix-menu-settings-item.d.ts +0 -11
- package/components/ix-menu-settings-item.js +0 -51
- package/components/ix-menu-settings-item.js.map +0 -1
- package/components/ix-menu-settings.d.ts +0 -11
- package/components/ix-menu-settings.js +0 -9
- package/components/ix-menu-settings.js.map +0 -1
- package/components/ix-menu.d.ts +0 -11
- package/components/ix-menu.js +0 -590
- package/components/ix-menu.js.map +0 -1
- package/components/ix-message-bar.d.ts +0 -11
- package/components/ix-message-bar.js +0 -103
- package/components/ix-message-bar.js.map +0 -1
- package/components/ix-modal-content.d.ts +0 -11
- package/components/ix-modal-content.js +0 -9
- package/components/ix-modal-content.js.map +0 -1
- package/components/ix-modal-footer.d.ts +0 -11
- package/components/ix-modal-footer.js +0 -36
- package/components/ix-modal-footer.js.map +0 -1
- package/components/ix-modal-header.d.ts +0 -11
- package/components/ix-modal-header.js +0 -9
- package/components/ix-modal-header.js.map +0 -1
- package/components/ix-modal-loading.d.ts +0 -11
- package/components/ix-modal-loading.js +0 -42
- package/components/ix-modal-loading.js.map +0 -1
- package/components/ix-modal.d.ts +0 -11
- package/components/ix-modal.js +0 -241
- package/components/ix-modal.js.map +0 -1
- package/components/ix-number-input.d.ts +0 -11
- package/components/ix-number-input.js +0 -241
- package/components/ix-number-input.js.map +0 -1
- package/components/ix-pagination.d.ts +0 -11
- package/components/ix-pagination.js +0 -261
- package/components/ix-pagination.js.map +0 -1
- package/components/ix-pane-layout.d.ts +0 -11
- package/components/ix-pane-layout.js +0 -311
- package/components/ix-pane-layout.js.map +0 -1
- package/components/ix-pane.d.ts +0 -11
- package/components/ix-pane.js +0 -568
- package/components/ix-pane.js.map +0 -1
- package/components/ix-pill.d.ts +0 -11
- package/components/ix-pill.js +0 -127
- package/components/ix-pill.js.map +0 -1
- package/components/ix-progress-indicator.d.ts +0 -11
- package/components/ix-progress-indicator.js +0 -193
- package/components/ix-progress-indicator.js.map +0 -1
- package/components/ix-push-card.d.ts +0 -11
- package/components/ix-push-card.js +0 -82
- package/components/ix-push-card.js.map +0 -1
- package/components/ix-radio-group.d.ts +0 -11
- package/components/ix-radio-group.js +0 -195
- package/components/ix-radio-group.js.map +0 -1
- package/components/ix-radio.d.ts +0 -11
- package/components/ix-radio.js +0 -145
- package/components/ix-radio.js.map +0 -1
- package/components/ix-row.d.ts +0 -11
- package/components/ix-row.js +0 -9
- package/components/ix-row.js.map +0 -1
- package/components/ix-select-item.d.ts +0 -11
- package/components/ix-select-item.js +0 -9
- package/components/ix-select-item.js.map +0 -1
- package/components/ix-select.d.ts +0 -11
- package/components/ix-select.js +0 -9
- package/components/ix-select.js.map +0 -1
- package/components/ix-slider.d.ts +0 -11
- package/components/ix-slider.js +0 -255
- package/components/ix-slider.js.map +0 -1
- package/components/ix-spinner.d.ts +0 -11
- package/components/ix-spinner.js +0 -9
- package/components/ix-spinner.js.map +0 -1
- package/components/ix-split-button.d.ts +0 -11
- package/components/ix-split-button.js +0 -117
- package/components/ix-split-button.js.map +0 -1
- package/components/ix-tab-item.d.ts +0 -11
- package/components/ix-tab-item.js +0 -9
- package/components/ix-tab-item.js.map +0 -1
- package/components/ix-tabs.d.ts +0 -11
- package/components/ix-tabs.js +0 -9
- package/components/ix-tabs.js.map +0 -1
- package/components/ix-textarea.d.ts +0 -11
- package/components/ix-textarea.js +0 -192
- package/components/ix-textarea.js.map +0 -1
- package/components/ix-tile.d.ts +0 -11
- package/components/ix-tile.js +0 -63
- package/components/ix-tile.js.map +0 -1
- package/components/ix-time-input.d.ts +0 -11
- package/components/ix-time-input.js +0 -442
- package/components/ix-time-input.js.map +0 -1
- package/components/ix-time-picker.d.ts +0 -11
- package/components/ix-time-picker.js +0 -9
- package/components/ix-time-picker.js.map +0 -1
- package/components/ix-toast-container.d.ts +0 -11
- package/components/ix-toast-container.js +0 -143
- package/components/ix-toast-container.js.map +0 -1
- package/components/ix-toast.d.ts +0 -11
- package/components/ix-toast.js +0 -9
- package/components/ix-toast.js.map +0 -1
- package/components/ix-toggle-button.d.ts +0 -11
- package/components/ix-toggle-button.js +0 -128
- package/components/ix-toggle-button.js.map +0 -1
- package/components/ix-toggle.d.ts +0 -11
- package/components/ix-toggle.js +0 -188
- package/components/ix-toggle.js.map +0 -1
- package/components/ix-tooltip.d.ts +0 -11
- package/components/ix-tooltip.js +0 -9
- package/components/ix-tooltip.js.map +0 -1
- package/components/ix-tree-item.d.ts +0 -11
- package/components/ix-tree-item.js +0 -9
- package/components/ix-tree-item.js.map +0 -1
- package/components/ix-tree.d.ts +0 -11
- package/components/ix-tree.js +0 -610
- package/components/ix-tree.js.map +0 -1
- package/components/ix-typography.d.ts +0 -11
- package/components/ix-typography.js +0 -9
- package/components/ix-typography.js.map +0 -1
- package/components/ix-upload.d.ts +0 -11
- package/components/ix-upload.js +0 -234
- package/components/ix-upload.js.map +0 -1
- package/components/ix-validation-tooltip.d.ts +0 -11
- package/components/ix-validation-tooltip.js +0 -182
- package/components/ix-validation-tooltip.js.map +0 -1
- package/components/ix-workflow-step.d.ts +0 -11
- package/components/ix-workflow-step.js +0 -147
- package/components/ix-workflow-step.js.map +0 -1
- package/components/ix-workflow-steps.d.ts +0 -11
- package/components/ix-workflow-steps.js +0 -112
- package/components/ix-workflow-steps.js.map +0 -1
- package/components/p--2LOMK-5.js +0 -105
- package/components/p--2LOMK-5.js.map +0 -1
- package/components/p-18F-YfbC.js +0 -90
- package/components/p-18F-YfbC.js.map +0 -1
- package/components/p-2HalBYF6.js +0 -611
- package/components/p-2HalBYF6.js.map +0 -1
- package/components/p-6UCgBriG.js +0 -89
- package/components/p-6UCgBriG.js.map +0 -1
- package/components/p-B3NgetSU.js +0 -765
- package/components/p-B3NgetSU.js.map +0 -1
- package/components/p-BGzrnl_l.js +0 -21
- package/components/p-BGzrnl_l.js.map +0 -1
- package/components/p-BH3f5fa3.js +0 -37
- package/components/p-BH3f5fa3.js.map +0 -1
- package/components/p-BI91ISYc.js +0 -103
- package/components/p-BI91ISYc.js.map +0 -1
- package/components/p-BOARJXlu.js +0 -54
- package/components/p-BOARJXlu.js.map +0 -1
- package/components/p-BQ6999e5.js +0 -22
- package/components/p-BQ6999e5.js.map +0 -1
- package/components/p-BSRi3yyl.js +0 -164
- package/components/p-BSRi3yyl.js.map +0 -1
- package/components/p-BUVYgPbq.js +0 -207
- package/components/p-BUVYgPbq.js.map +0 -1
- package/components/p-BW7O4gSR.js +0 -64
- package/components/p-BW7O4gSR.js.map +0 -1
- package/components/p-BXGAr1UD.js +0 -130
- package/components/p-BXGAr1UD.js.map +0 -1
- package/components/p-Bb7pDeaQ.js +0 -144
- package/components/p-Bb7pDeaQ.js.map +0 -1
- package/components/p-BdCnOrqW.js +0 -47
- package/components/p-BdCnOrqW.js.map +0 -1
- package/components/p-Bi1VyG64.js +0 -46
- package/components/p-Bi1VyG64.js.map +0 -1
- package/components/p-BpwZ_OiO.js +0 -42
- package/components/p-BpwZ_OiO.js.map +0 -1
- package/components/p-C7qPn3fZ.js +0 -113
- package/components/p-C7qPn3fZ.js.map +0 -1
- package/components/p-C99qjEPE.js +0 -72
- package/components/p-C99qjEPE.js.map +0 -1
- package/components/p-C9zujPO0.js +0 -65
- package/components/p-C9zujPO0.js.map +0 -1
- package/components/p-CAqtPJ4-.js +0 -1786
- package/components/p-CAqtPJ4-.js.map +0 -1
- package/components/p-CGwHQeMX.js +0 -54
- package/components/p-CGwHQeMX.js.map +0 -1
- package/components/p-CI771zjd.js +0 -83
- package/components/p-CI771zjd.js.map +0 -1
- package/components/p-CJ9lFwzL.js +0 -33
- package/components/p-CJ9lFwzL.js.map +0 -1
- package/components/p-CLe5n0eR.js +0 -461
- package/components/p-CLe5n0eR.js.map +0 -1
- package/components/p-COgaNG0r.js +0 -162
- package/components/p-COgaNG0r.js.map +0 -1
- package/components/p-CX81WQtk.js +0 -14
- package/components/p-CX81WQtk.js.map +0 -1
- package/components/p-CYjLayhK.js +0 -33
- package/components/p-CYjLayhK.js.map +0 -1
- package/components/p-Ca62xqUI.js +0 -110
- package/components/p-Ca62xqUI.js.map +0 -1
- package/components/p-CdH-wF59.js +0 -107
- package/components/p-CdH-wF59.js.map +0 -1
- package/components/p-CdhP3eo7.js +0 -129
- package/components/p-CdhP3eo7.js.map +0 -1
- package/components/p-CmNagK_M.js +0 -61
- package/components/p-CmNagK_M.js.map +0 -1
- package/components/p-Cuf7Gv_k.js +0 -48
- package/components/p-Cuf7Gv_k.js.map +0 -1
- package/components/p-CvYq7fCI.js +0 -79
- package/components/p-CvYq7fCI.js.map +0 -1
- package/components/p-CyFFBc_G.js +0 -100
- package/components/p-CyFFBc_G.js.map +0 -1
- package/components/p-D-lOakIP.js +0 -54
- package/components/p-D-lOakIP.js.map +0 -1
- package/components/p-D-uSMBXb.js +0 -33
- package/components/p-D-uSMBXb.js.map +0 -1
- package/components/p-D0hxqaGs.js +0 -90
- package/components/p-D0hxqaGs.js.map +0 -1
- package/components/p-D2Fm_05X.js +0 -71
- package/components/p-D2Fm_05X.js.map +0 -1
- package/components/p-D3K9vmFp.js +0 -157
- package/components/p-D3K9vmFp.js.map +0 -1
- package/components/p-D54oqcBC.js +0 -146
- package/components/p-D54oqcBC.js.map +0 -1
- package/components/p-D6vSVaHq.js +0 -26
- package/components/p-D6vSVaHq.js.map +0 -1
- package/components/p-DBZZBDKR.js +0 -76
- package/components/p-DBZZBDKR.js.map +0 -1
- package/components/p-DDHkNPby.js +0 -79
- package/components/p-DDHkNPby.js.map +0 -1
- package/components/p-DEmiWcQ0.js +0 -51
- package/components/p-DEmiWcQ0.js.map +0 -1
- package/components/p-DQEpAmYe.js +0 -55
- package/components/p-DQEpAmYe.js.map +0 -1
- package/components/p-DUctjh_Y.js +0 -19
- package/components/p-DUctjh_Y.js.map +0 -1
- package/components/p-Da_mIDFR.js +0 -75
- package/components/p-Da_mIDFR.js.map +0 -1
- package/components/p-DeAFXXM2.js +0 -90
- package/components/p-DeAFXXM2.js.map +0 -1
- package/components/p-Dih6bry9.js +0 -33
- package/components/p-Dih6bry9.js.map +0 -1
- package/components/p-Dp15M30K.js +0 -20
- package/components/p-Dp15M30K.js.map +0 -1
- package/components/p-Dp4RJcgZ.js +0 -125
- package/components/p-Dp4RJcgZ.js.map +0 -1
- package/components/p-DpilwXvD.js +0 -33
- package/components/p-DpilwXvD.js.map +0 -1
- package/components/p-DqBfPYF2.js +0 -151
- package/components/p-DqBfPYF2.js.map +0 -1
- package/components/p-DzKDFBWC.js +0 -2042
- package/components/p-DzKDFBWC.js.map +0 -1
- package/components/p-IMKnzlUb.js +0 -110
- package/components/p-IMKnzlUb.js.map +0 -1
- package/components/p-JJddxCCh.js +0 -42
- package/components/p-JJddxCCh.js.map +0 -1
- package/components/p-Ooq8eqJM.js +0 -33
- package/components/p-Ooq8eqJM.js.map +0 -1
- package/components/p-Ou74PMQs.js +0 -1313
- package/components/p-Ou74PMQs.js.map +0 -1
- package/components/p-PxA_udyJ.js +0 -254
- package/components/p-PxA_udyJ.js.map +0 -1
- package/components/p-UQa1aROL.js +0 -23
- package/components/p-UQa1aROL.js.map +0 -1
- package/components/p-bDicGJUN.js +0 -7697
- package/components/p-bDicGJUN.js.map +0 -1
- package/components/p-bcj7UEIC.js +0 -24
- package/components/p-bcj7UEIC.js.map +0 -1
- package/components/p-cugF_dsq.js +0 -203
- package/components/p-cugF_dsq.js.map +0 -1
- package/components/p-kY0vP3rC.js +0 -122
- package/components/p-kY0vP3rC.js.map +0 -1
- package/components/p-mLgD4b4D.js +0 -359
- package/components/p-mLgD4b4D.js.map +0 -1
- package/components/p-m_8Hy4_G.js +0 -310
- package/components/p-m_8Hy4_G.js.map +0 -1
- package/components/p-pMSLP3h4.js +0 -757
- package/components/p-pMSLP3h4.js.map +0 -1
- package/components/p-t-aQDKhy.js +0 -118
- package/components/p-t-aQDKhy.js.map +0 -1
- package/components/package.json +0 -9
- package/dist/cjs/base-button-CaQoQTFI.js +0 -74
- package/dist/cjs/base-button-CaQoQTFI.js.map +0 -1
- package/dist/cjs/base-icon-button-C9L5Gii-.js +0 -21
- package/dist/cjs/base-icon-button-C9L5Gii-.js.map +0 -1
- package/dist/cjs/helper-text-util-BctMjApu.js +0 -45
- package/dist/cjs/helper-text-util-BctMjApu.js.map +0 -1
- package/dist/cjs/index-BDliOtbY.js +0 -2734
- package/dist/cjs/index-BDliOtbY.js.map +0 -1
- package/dist/cjs/input.util-Ch0ETA-v.js +0 -215
- package/dist/cjs/input.util-Ch0ETA-v.js.map +0 -1
- package/dist/cjs/ix-menu-settings-BkPNtMal.js +0 -123
- package/dist/cjs/ix-menu-settings-BkPNtMal.js.map +0 -1
- package/dist/cjs/listener-BJXzadPO.js +0 -78
- package/dist/cjs/listener-BJXzadPO.js.map +0 -1
- package/dist/cjs/validation-_-cW9Dku.js +0 -123
- package/dist/cjs/validation-_-cW9Dku.js.map +0 -1
- package/dist/esm/base-button-dtdYZqMt.js +0 -71
- package/dist/esm/base-button-dtdYZqMt.js.map +0 -1
- package/dist/esm/base-icon-button-BZvsimpZ.js +0 -19
- package/dist/esm/base-icon-button-BZvsimpZ.js.map +0 -1
- package/dist/esm/helper-text-util-Dyff2O6m.js +0 -42
- package/dist/esm/helper-text-util-Dyff2O6m.js.map +0 -1
- package/dist/esm/index-B6NtGPRE.js +0 -2702
- package/dist/esm/index-B6NtGPRE.js.map +0 -1
- package/dist/esm/input.util-HSoyR1ow.js +0 -203
- package/dist/esm/input.util-HSoyR1ow.js.map +0 -1
- package/dist/esm/ix-menu-settings-B5kM6fHy.js +0 -118
- package/dist/esm/ix-menu-settings-B5kM6fHy.js.map +0 -1
- package/dist/esm/listener-DCrO174s.js +0 -76
- package/dist/esm/listener-DCrO174s.js.map +0 -1
- package/dist/esm/validation-DuPOpjMi.js +0 -118
- package/dist/esm/validation-DuPOpjMi.js.map +0 -1
- package/dist/siemens-ix/p-0053fd70.entry.js +0 -2
- package/dist/siemens-ix/p-00668881.entry.js +0 -2
- package/dist/siemens-ix/p-0285fa1a.entry.js +0 -2
- package/dist/siemens-ix/p-07733f87.entry.js +0 -2
- package/dist/siemens-ix/p-07fa84e9.entry.js +0 -2
- package/dist/siemens-ix/p-07fa84e9.entry.js.map +0 -1
- package/dist/siemens-ix/p-094d6f0a.entry.js +0 -2
- package/dist/siemens-ix/p-0e0019a3.entry.js +0 -2
- package/dist/siemens-ix/p-125b66ec.entry.js +0 -2
- package/dist/siemens-ix/p-1363ac29.entry.js +0 -2
- package/dist/siemens-ix/p-138de76a.entry.js +0 -2
- package/dist/siemens-ix/p-17a19a44.entry.js +0 -2
- package/dist/siemens-ix/p-17a19a44.entry.js.map +0 -1
- package/dist/siemens-ix/p-1b04e58a.entry.js +0 -2
- package/dist/siemens-ix/p-1b04e58a.entry.js.map +0 -1
- package/dist/siemens-ix/p-1cff42a5.entry.js +0 -2
- package/dist/siemens-ix/p-1f5322d5.entry.js +0 -2
- package/dist/siemens-ix/p-1fc79a42.entry.js +0 -2
- package/dist/siemens-ix/p-227ea9bc.entry.js +0 -2
- package/dist/siemens-ix/p-227ea9bc.entry.js.map +0 -1
- package/dist/siemens-ix/p-25368187.entry.js +0 -2
- package/dist/siemens-ix/p-25c27b28.entry.js +0 -2
- package/dist/siemens-ix/p-26b072bb.entry.js +0 -2
- package/dist/siemens-ix/p-29eb0f3c.entry.js +0 -2
- package/dist/siemens-ix/p-2a1152d9.entry.js +0 -2
- package/dist/siemens-ix/p-2a1152d9.entry.js.map +0 -1
- package/dist/siemens-ix/p-2d383fa3.entry.js +0 -2
- package/dist/siemens-ix/p-2e0dab7b.entry.js +0 -2
- package/dist/siemens-ix/p-2e0dab7b.entry.js.map +0 -1
- package/dist/siemens-ix/p-2edc9a43.entry.js +0 -2
- package/dist/siemens-ix/p-2edc9a43.entry.js.map +0 -1
- package/dist/siemens-ix/p-30e325ee.entry.js +0 -2
- package/dist/siemens-ix/p-30e325ee.entry.js.map +0 -1
- package/dist/siemens-ix/p-3725e281.entry.js +0 -2
- package/dist/siemens-ix/p-381708ea.entry.js +0 -2
- package/dist/siemens-ix/p-38fa1eec.entry.js +0 -2
- package/dist/siemens-ix/p-3d4eba06.entry.js +0 -2
- package/dist/siemens-ix/p-42cf2d8f.entry.js +0 -2
- package/dist/siemens-ix/p-44a9c1db.entry.js +0 -2
- package/dist/siemens-ix/p-44a9c1db.entry.js.map +0 -1
- package/dist/siemens-ix/p-47956560.entry.js +0 -2
- package/dist/siemens-ix/p-4a666ab2.entry.js +0 -2
- package/dist/siemens-ix/p-4be22d4d.entry.js +0 -2
- package/dist/siemens-ix/p-518290fd.entry.js +0 -2
- package/dist/siemens-ix/p-53d1f804.entry.js +0 -2
- package/dist/siemens-ix/p-5f494293.entry.js +0 -2
- package/dist/siemens-ix/p-60c6eba1.entry.js +0 -2
- package/dist/siemens-ix/p-61944945.entry.js +0 -2
- package/dist/siemens-ix/p-61bf7678.entry.js +0 -2
- package/dist/siemens-ix/p-64a2f777.entry.js +0 -2
- package/dist/siemens-ix/p-64a2f777.entry.js.map +0 -1
- package/dist/siemens-ix/p-674dd99b.entry.js +0 -2
- package/dist/siemens-ix/p-6a275897.entry.js +0 -2
- package/dist/siemens-ix/p-6b5cb4c3.entry.js +0 -2
- package/dist/siemens-ix/p-6b5cb4c3.entry.js.map +0 -1
- package/dist/siemens-ix/p-6cc4c39e.entry.js +0 -2
- package/dist/siemens-ix/p-6dffce02.entry.js +0 -2
- package/dist/siemens-ix/p-6dffce02.entry.js.map +0 -1
- package/dist/siemens-ix/p-702d290f.entry.js +0 -2
- package/dist/siemens-ix/p-702d290f.entry.js.map +0 -1
- package/dist/siemens-ix/p-719704c7.entry.js +0 -2
- package/dist/siemens-ix/p-719704c7.entry.js.map +0 -1
- package/dist/siemens-ix/p-746f49b4.entry.js +0 -2
- package/dist/siemens-ix/p-77d586e5.entry.js +0 -2
- package/dist/siemens-ix/p-7978f54a.entry.js +0 -2
- package/dist/siemens-ix/p-7b455f16.entry.js +0 -2
- package/dist/siemens-ix/p-7b455f16.entry.js.map +0 -1
- package/dist/siemens-ix/p-7b5eb3ca.entry.js +0 -2
- package/dist/siemens-ix/p-7b5eb3ca.entry.js.map +0 -1
- package/dist/siemens-ix/p-7da60ba2.entry.js +0 -2
- package/dist/siemens-ix/p-7da60ba2.entry.js.map +0 -1
- package/dist/siemens-ix/p-7fcec901.entry.js +0 -2
- package/dist/siemens-ix/p-80dfc634.entry.js +0 -2
- package/dist/siemens-ix/p-80dfc634.entry.js.map +0 -1
- package/dist/siemens-ix/p-8774e0a8.entry.js +0 -2
- package/dist/siemens-ix/p-92513d0e.entry.js +0 -2
- package/dist/siemens-ix/p-92513d0e.entry.js.map +0 -1
- package/dist/siemens-ix/p-9513a275.entry.js +0 -2
- package/dist/siemens-ix/p-96687290.entry.js +0 -2
- package/dist/siemens-ix/p-96687290.entry.js.map +0 -1
- package/dist/siemens-ix/p-96c0acb2.entry.js +0 -2
- package/dist/siemens-ix/p-97029efe.entry.js +0 -2
- package/dist/siemens-ix/p-97eb6c3c.entry.js +0 -2
- package/dist/siemens-ix/p-97eb6c3c.entry.js.map +0 -1
- package/dist/siemens-ix/p-B6NtGPRE.js +0 -3
- package/dist/siemens-ix/p-B6NtGPRE.js.map +0 -1
- package/dist/siemens-ix/p-BaslXuvq.js +0 -2
- package/dist/siemens-ix/p-BaslXuvq.js.map +0 -1
- package/dist/siemens-ix/p-Bko0CTxK.js +0 -2
- package/dist/siemens-ix/p-Bko0CTxK.js.map +0 -1
- package/dist/siemens-ix/p-C1MjXHa0.js +0 -2
- package/dist/siemens-ix/p-C1MjXHa0.js.map +0 -1
- package/dist/siemens-ix/p-DeEsc3nL.js +0 -2
- package/dist/siemens-ix/p-DeEsc3nL.js.map +0 -1
- package/dist/siemens-ix/p-DhH1rUwy.js +0 -2
- package/dist/siemens-ix/p-DhH1rUwy.js.map +0 -1
- package/dist/siemens-ix/p-DyBJEhgA.js +0 -2
- package/dist/siemens-ix/p-DyBJEhgA.js.map +0 -1
- package/dist/siemens-ix/p-a09ec38c.entry.js +0 -2
- package/dist/siemens-ix/p-a09ec38c.entry.js.map +0 -1
- package/dist/siemens-ix/p-a15f3a9d.entry.js +0 -2
- package/dist/siemens-ix/p-a15f3a9d.entry.js.map +0 -1
- package/dist/siemens-ix/p-a7e339d0.entry.js +0 -2
- package/dist/siemens-ix/p-a7e339d0.entry.js.map +0 -1
- package/dist/siemens-ix/p-a951d9e7.entry.js +0 -2
- package/dist/siemens-ix/p-b1bc33ef.entry.js +0 -2
- package/dist/siemens-ix/p-b45ce132.entry.js +0 -2
- package/dist/siemens-ix/p-b45ce132.entry.js.map +0 -1
- package/dist/siemens-ix/p-b6f02420.entry.js +0 -2
- package/dist/siemens-ix/p-b6f02420.entry.js.map +0 -1
- package/dist/siemens-ix/p-c192caa5.entry.js +0 -2
- package/dist/siemens-ix/p-c192caa5.entry.js.map +0 -1
- package/dist/siemens-ix/p-c23031be.entry.js +0 -2
- package/dist/siemens-ix/p-c5921b21.entry.js +0 -2
- package/dist/siemens-ix/p-c6cb0b06.entry.js +0 -2
- package/dist/siemens-ix/p-c6cb0b06.entry.js.map +0 -1
- package/dist/siemens-ix/p-c7ead0ee.entry.js +0 -2
- package/dist/siemens-ix/p-c7ead0ee.entry.js.map +0 -1
- package/dist/siemens-ix/p-c9c30ce7.entry.js +0 -2
- package/dist/siemens-ix/p-cb076f29.entry.js +0 -2
- package/dist/siemens-ix/p-cf3c2573.entry.js +0 -2
- package/dist/siemens-ix/p-cf3cbb46.entry.js +0 -2
- package/dist/siemens-ix/p-cf3cbb46.entry.js.map +0 -1
- package/dist/siemens-ix/p-cf7448b1.entry.js +0 -2
- package/dist/siemens-ix/p-d2151941.entry.js +0 -2
- package/dist/siemens-ix/p-d4284927.entry.js +0 -2
- package/dist/siemens-ix/p-d4936531.entry.js +0 -2
- package/dist/siemens-ix/p-daf2c2fd.entry.js +0 -2
- package/dist/siemens-ix/p-de03778d.entry.js +0 -2
- package/dist/siemens-ix/p-de03778d.entry.js.map +0 -1
- package/dist/siemens-ix/p-e006c83c.entry.js +0 -2
- package/dist/siemens-ix/p-e088e1d9.entry.js +0 -2
- package/dist/siemens-ix/p-e40c900a.entry.js +0 -2
- package/dist/siemens-ix/p-e499f85d.entry.js +0 -2
- package/dist/siemens-ix/p-e636a236.entry.js +0 -2
- package/dist/siemens-ix/p-e636a236.entry.js.map +0 -1
- package/dist/siemens-ix/p-e850d862.entry.js +0 -2
- package/dist/siemens-ix/p-ea980990.entry.js +0 -2
- package/dist/siemens-ix/p-ec3786c3.entry.js +0 -2
- package/dist/siemens-ix/p-ed05a3ed.entry.js +0 -2
- package/dist/siemens-ix/p-ed05a3ed.entry.js.map +0 -1
- package/dist/siemens-ix/p-ef56e825.entry.js +0 -2
- package/dist/siemens-ix/p-f1d1c522.entry.js +0 -2
- package/dist/siemens-ix/p-f426aa64.entry.js +0 -2
- package/dist/siemens-ix/p-f426aa64.entry.js.map +0 -1
- package/dist/siemens-ix/p-f61c1785.entry.js +0 -2
- package/dist/siemens-ix/p-f66cb323.entry.js +0 -2
- package/dist/siemens-ix/p-f66cb323.entry.js.map +0 -1
- package/dist/siemens-ix/p-fadc415c.entry.js +0 -2
- package/dist/siemens-ix/p-fadc415c.entry.js.map +0 -1
- package/dist/siemens-ix/p-fe1e79d6.entry.js +0 -2
- package/dist/siemens-ix/p-zYzFdFx8.js +0 -2
- package/dist/siemens-ix/p-zYzFdFx8.js.map +0 -1
- package/dist/types/interfaces.d.ts +0 -27
- /package/dist/siemens-ix/{p-4be22d4d.entry.js.map → p-003ae2cf.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-094d6f0a.entry.js.map → p-00eff8b5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-47956560.entry.js.map → p-0195766f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c23031be.entry.js.map → p-025c5b1b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-25c27b28.entry.js.map → p-03b8e425.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9513a275.entry.js.map → p-04527b1e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-07733f87.entry.js.map → p-07b2da86.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-746f49b4.entry.js.map → p-098aa857.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d4284927.entry.js.map → p-130ffc16.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1cff42a5.entry.js.map → p-13b5f3c3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f61c1785.entry.js.map → p-14d2042d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cb076f29.entry.js.map → p-19501b80.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d2151941.entry.js.map → p-1df6d18f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-518290fd.entry.js.map → p-1fdfe35a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-38fa1eec.entry.js.map → p-2642d96b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0053fd70.entry.js.map → p-28aece6e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-00668881.entry.js.map → p-29d44cef.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1f5322d5.entry.js.map → p-2f2dfb6e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7fcec901.entry.js.map → p-2f9b9e7a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8774e0a8.entry.js.map → p-440a0ee0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0e0019a3.entry.js.map → p-472c1d6b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1363ac29.entry.js.map → p-47f395be.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cf7448b1.entry.js.map → p-483bc052.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3d4eba06.entry.js.map → p-4959b8e6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e499f85d.entry.js.map → p-4fe2d0f7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e006c83c.entry.js.map → p-5b22342c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-125b66ec.entry.js.map → p-605a9fe8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2d383fa3.entry.js.map → p-6337e880.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0285fa1a.entry.js.map → p-6549edf0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1fc79a42.entry.js.map → p-66d20585.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-53d1f804.entry.js.map → p-6adde42d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b1bc33ef.entry.js.map → p-6cc448b4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ec3786c3.entry.js.map → p-7011678e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6cc4c39e.entry.js.map → p-7111f065.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cf3c2573.entry.js.map → p-76f59fa5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c5921b21.entry.js.map → p-777675ce.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4a666ab2.entry.js.map → p-8d4558b9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ef56e825.entry.js.map → p-8fcada5a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-96c0acb2.entry.js.map → p-91ba2527.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e088e1d9.entry.js.map → p-97693d72.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-29eb0f3c.entry.js.map → p-97a53af6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5f494293.entry.js.map → p-988f37da.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-61944945.entry.js.map → p-9f7d82d2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d4936531.entry.js.map → p-a43c4907.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a951d9e7.entry.js.map → p-a9ec8094.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7978f54a.entry.js.map → p-afd392d5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-381708ea.entry.js.map → p-b00517df.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c9c30ce7.entry.js.map → p-b3d4d2cd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-fe1e79d6.entry.js.map → p-b548335e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-77d586e5.entry.js.map → p-b735b8ce.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-138de76a.entry.js.map → p-bec289d7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-60c6eba1.entry.js.map → p-bf7fbdfc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e850d862.entry.js.map → p-bf8dd5a1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-42cf2d8f.entry.js.map → p-c5f8ccc9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-26b072bb.entry.js.map → p-c9d48927.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ea980990.entry.js.map → p-ce3aebe6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-61bf7678.entry.js.map → p-d3458382.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-674dd99b.entry.js.map → p-d605b181.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e40c900a.entry.js.map → p-dfb5f7d8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-97029efe.entry.js.map → p-dfe4de85.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f1d1c522.entry.js.map → p-ea142215.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6a275897.entry.js.map → p-ead88218.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-25368187.entry.js.map → p-ec7cd008.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3725e281.entry.js.map → p-ee2902a5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-daf2c2fd.entry.js.map → p-f4415d44.entry.js.map} +0 -0
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-DzKDFBWC.js';
|
|
2
|
-
import { T as TypedEvent } from './p-BdCnOrqW.js';
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-BXGAr1UD.js';
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-BOARJXlu.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-C7qPn3fZ.js';
|
|
6
|
-
|
|
7
|
-
const toastContainerCss = ":host{}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}#toast-container>:not(:last-child){margin-block-end:1rem}.toast-container{display:block;position:fixed}.toast-container--top-right{right:1rem;top:2rem}.toast-container--bottom-right{right:1rem;bottom:2rem}";
|
|
8
|
-
|
|
9
|
-
const ToastContainer = /*@__PURE__*/ proxyCustomElement(class ToastContainer extends H {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.__registerHost();
|
|
13
|
-
this.__attachShadow();
|
|
14
|
-
/**
|
|
15
|
-
*/
|
|
16
|
-
this.containerId = 'toast-container';
|
|
17
|
-
/**
|
|
18
|
-
*/
|
|
19
|
-
this.containerClass = 'toast-container';
|
|
20
|
-
/**
|
|
21
|
-
*/
|
|
22
|
-
this.position = 'bottom-right';
|
|
23
|
-
this.PREFIX_POSITION_CLASS = 'toast-container--';
|
|
24
|
-
}
|
|
25
|
-
get hostContainer() {
|
|
26
|
-
return new Promise((resolve) => {
|
|
27
|
-
const interval = setInterval(() => {
|
|
28
|
-
const containerElement = document.getElementById(this.containerId);
|
|
29
|
-
if (containerElement) {
|
|
30
|
-
clearInterval(interval);
|
|
31
|
-
resolve(containerElement);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
componentDidLoad() {
|
|
37
|
-
if (!document.getElementById(this.containerId)) {
|
|
38
|
-
const toastContainer = document.createElement('div');
|
|
39
|
-
toastContainer.id = this.containerId;
|
|
40
|
-
toastContainer.classList.add(this.containerClass);
|
|
41
|
-
toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${this.position}`);
|
|
42
|
-
document.body.appendChild(toastContainer);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
onPositionChange(newPosition, oldPosition) {
|
|
46
|
-
const toastContainer = document.getElementById(this.containerId);
|
|
47
|
-
if (!toastContainer) {
|
|
48
|
-
console.warn('No toast container found, cannot configure toast position');
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
toastContainer.classList.remove(`${this.PREFIX_POSITION_CLASS}${oldPosition}`);
|
|
52
|
-
toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Display a toast message
|
|
56
|
-
* @param config
|
|
57
|
-
*/
|
|
58
|
-
async showToast(config) {
|
|
59
|
-
var _a, _b, _c;
|
|
60
|
-
const toast = document.createElement('ix-toast');
|
|
61
|
-
const onClose = new TypedEvent();
|
|
62
|
-
function removeToast(result) {
|
|
63
|
-
toast.remove();
|
|
64
|
-
onClose.emit(result);
|
|
65
|
-
}
|
|
66
|
-
toast.toastTitle = config.title;
|
|
67
|
-
toast.type = (_a = config.type) !== null && _a !== void 0 ? _a : 'info';
|
|
68
|
-
toast.autoClose = (_b = config.autoClose) !== null && _b !== void 0 ? _b : true;
|
|
69
|
-
toast.autoCloseDelay = (_c = config.autoCloseDelay) !== null && _c !== void 0 ? _c : 5000;
|
|
70
|
-
toast.icon = config.icon;
|
|
71
|
-
toast.iconColor = config.iconColor;
|
|
72
|
-
toast.addEventListener('closeToast', (event) => {
|
|
73
|
-
const { detail } = event;
|
|
74
|
-
removeToast(detail);
|
|
75
|
-
});
|
|
76
|
-
if (typeof config.message === 'string') {
|
|
77
|
-
toast.innerText = config.message;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
toast.appendChild(config.message);
|
|
81
|
-
}
|
|
82
|
-
(await this.hostContainer).appendChild(toast);
|
|
83
|
-
return {
|
|
84
|
-
onClose,
|
|
85
|
-
close: (result) => {
|
|
86
|
-
removeToast(result);
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
render() {
|
|
91
|
-
return (h(Host, { key: '9656bf3a14aa1ee21d11e9825339bfdddf219e36', class: {
|
|
92
|
-
'toast-container--bottom-right': this.position === 'bottom-right',
|
|
93
|
-
'toast-container--top-right': this.position === 'top-right',
|
|
94
|
-
} }, h("slot", { key: '3ec68f9987d7551d1c4bfd33880201773866be99' })));
|
|
95
|
-
}
|
|
96
|
-
static get watchers() { return {
|
|
97
|
-
"position": ["onPositionChange"]
|
|
98
|
-
}; }
|
|
99
|
-
static get style() { return toastContainerCss; }
|
|
100
|
-
}, [1, "ix-toast-container", {
|
|
101
|
-
"containerId": [1, "container-id"],
|
|
102
|
-
"containerClass": [1, "container-class"],
|
|
103
|
-
"position": [1],
|
|
104
|
-
"showToast": [64]
|
|
105
|
-
}, undefined, {
|
|
106
|
-
"position": ["onPositionChange"]
|
|
107
|
-
}]);
|
|
108
|
-
function defineCustomElement$1() {
|
|
109
|
-
if (typeof customElements === "undefined") {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
const components = ["ix-toast-container", "ix-icon-button", "ix-spinner", "ix-toast"];
|
|
113
|
-
components.forEach(tagName => { switch (tagName) {
|
|
114
|
-
case "ix-toast-container":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
customElements.define(tagName, ToastContainer);
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
case "ix-icon-button":
|
|
120
|
-
if (!customElements.get(tagName)) {
|
|
121
|
-
defineCustomElement$4();
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
case "ix-spinner":
|
|
125
|
-
if (!customElements.get(tagName)) {
|
|
126
|
-
defineCustomElement$3();
|
|
127
|
-
}
|
|
128
|
-
break;
|
|
129
|
-
case "ix-toast":
|
|
130
|
-
if (!customElements.get(tagName)) {
|
|
131
|
-
defineCustomElement$2();
|
|
132
|
-
}
|
|
133
|
-
break;
|
|
134
|
-
} });
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const IxToastContainer = ToastContainer;
|
|
138
|
-
const defineCustomElement = defineCustomElement$1;
|
|
139
|
-
|
|
140
|
-
export { IxToastContainer, defineCustomElement };
|
|
141
|
-
//# sourceMappingURL=ix-toast-container.js.map
|
|
142
|
-
|
|
143
|
-
//# sourceMappingURL=ix-toast-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"ix-toast-container.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,88BAA88B;;MCuB39B,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;AAL3B,IAAA,WAAA,GAAA;;;;AAME;AACG;AACK,QAAA,IAAW,CAAA,WAAA,GAAG,iBAAiB;AAEvC;AACG;AACK,QAAA,IAAc,CAAA,cAAA,GAAG,iBAAiB;AAE1C;AACG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAiC,cAAc;AAE9C,QAAA,IAAqB,CAAA,qBAAA,GAAG,mBAAmB;AA+F7D;AA7FC,IAAA,IAAI,aAAa,GAAA;AACf,QAAA,OAAO,IAAI,OAAO,CAAc,CAAC,OAAO,KAAI;AAC1C,YAAA,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAK;gBAChC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC;gBAClE,IAAI,gBAAgB,EAAE;oBACpB,aAAa,CAAC,QAAQ,CAAC;oBACvB,OAAO,CAAC,gBAAgB,CAAC;;AAE7B,aAAC,CAAC;AACJ,SAAC,CAAC;;IAGJ,gBAAgB,GAAA;QACd,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;YAC9C,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AACpD,YAAA,cAAc,CAAC,EAAE,GAAG,IAAI,CAAC,WAAW;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC;AACjD,YAAA,cAAc,CAAC,SAAS,CAAC,GAAG,CAC1B,CAAG,EAAA,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,QAAQ,CAAA,CAAE,CAChD;AACD,YAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC;;;IAK7C,gBAAgB,CAAC,WAAmB,EAAE,WAAmB,EAAA;QACvD,MAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC;QAChE,IAAI,CAAC,cAAc,EAAE;AACnB,YAAA,OAAO,CAAC,IAAI,CAAC,2DAA2D,CAAC;YACzE;;AAEF,QAAA,cAAc,CAAC,SAAS,CAAC,MAAM,CAC7B,CAAA,EAAG,IAAI,CAAC,qBAAqB,CAAA,EAAG,WAAW,CAAA,CAAE,CAC9C;AACD,QAAA,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,qBAAqB,CAAA,EAAG,WAAW,CAAA,CAAE,CAAC;;AAG7E;;;AAGG;IAEH,MAAM,SAAS,CAAC,MAAmB,EAAA;;QACjC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;AAChD,QAAA,MAAM,OAAO,GAAG,IAAI,UAAU,EAAmB;QAEjD,SAAS,WAAW,CAAC,MAAY,EAAA;YAC/B,KAAK,CAAC,MAAM,EAAE;AACd,YAAA,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;;AAGtB,QAAA,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK;QAC/B,KAAK,CAAC,IAAI,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,MAAM;QAClC,KAAK,CAAC,SAAS,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,SAAS,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI;QAC1C,KAAK,CAAC,cAAc,GAAG,CAAA,EAAA,GAAA,MAAM,CAAC,cAAc,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI;AACpD,QAAA,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI;AACxB,QAAA,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS;QAClC,KAAK,CAAC,gBAAgB,CACpB,YAAY,EACZ,CAAC,KAAmC,KAAI;AACtC,YAAA,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK;YACxB,WAAW,CAAC,MAAM,CAAC;AACrB,SAAC,CACF;AAED,QAAA,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,EAAE;AACtC,YAAA,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO;;aAC3B;AACL,YAAA,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;;QAGnC,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,KAAK,CAAC;QAE7C,OAAO;YACL,OAAO;AACP,YAAA,KAAK,EAAE,CAAC,MAAY,KAAI;gBACtB,WAAW,CAAC,MAAM,CAAC;aACpB;SACF;;IAGH,MAAM,GAAA;QACJ,QACE,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,KAAK,EAAE;AACL,gBAAA,+BAA+B,EAAE,IAAI,CAAC,QAAQ,KAAK,cAAc;AACjE,gBAAA,4BAA4B,EAAE,IAAI,CAAC,QAAQ,KAAK,WAAW;AAC5D,aAAA,EAAA,EAED,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/toast/styles/toast-container.scss?tag=ix-toast-container&encapsulation=shadow","src/components/toast/toast-container.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n}\n\n#toast-container {\n > :not(:last-child) {\n margin-block-end: $default-space;\n }\n}\n\n.toast-container {\n display: block;\n position: fixed;\n}\n\n.toast-container--top-right {\n right: 1rem;\n top: 2rem;\n}\n\n.toast-container--bottom-right {\n right: 1rem;\n bottom: 2rem;\n}\n","/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport { TypedEvent } from '../utils/typed-event';\nimport { ToastConfig } from './toast-utils';\n\nexport type ShowToastResult = {\n onClose: TypedEvent<any | undefined>;\n close: (result?: any) => void;\n};\n\n@Component({\n tag: 'ix-toast-container',\n styleUrl: './styles/toast-container.scss',\n shadow: true,\n})\nexport class ToastContainer {\n /**\n */\n @Prop() containerId = 'toast-container';\n\n /**\n */\n @Prop() containerClass = 'toast-container';\n\n /**\n */\n @Prop() position: 'bottom-right' | 'top-right' = 'bottom-right';\n\n private readonly PREFIX_POSITION_CLASS = 'toast-container--';\n\n get hostContainer() {\n return new Promise<HTMLElement>((resolve) => {\n const interval = setInterval(() => {\n const containerElement = document.getElementById(this.containerId);\n if (containerElement) {\n clearInterval(interval);\n resolve(containerElement);\n }\n });\n });\n }\n\n componentDidLoad() {\n if (!document.getElementById(this.containerId)) {\n const toastContainer = document.createElement('div');\n toastContainer.id = this.containerId;\n toastContainer.classList.add(this.containerClass);\n toastContainer.classList.add(\n `${this.PREFIX_POSITION_CLASS}${this.position}`\n );\n document.body.appendChild(toastContainer);\n }\n }\n\n @Watch('position')\n onPositionChange(newPosition: string, oldPosition: string) {\n const toastContainer = document.getElementById(this.containerId);\n if (!toastContainer) {\n console.warn('No toast container found, cannot configure toast position');\n return;\n }\n toastContainer.classList.remove(\n `${this.PREFIX_POSITION_CLASS}${oldPosition}`\n );\n toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);\n }\n\n /**\n * Display a toast message\n * @param config\n */\n @Method()\n async showToast(config: ToastConfig): Promise<ShowToastResult> {\n const toast = document.createElement('ix-toast');\n const onClose = new TypedEvent<any | undefined>();\n\n function removeToast(result?: any) {\n toast.remove();\n onClose.emit(result);\n }\n\n toast.toastTitle = config.title;\n toast.type = config.type ?? 'info';\n toast.autoClose = config.autoClose ?? true;\n toast.autoCloseDelay = config.autoCloseDelay ?? 5000;\n toast.icon = config.icon;\n toast.iconColor = config.iconColor;\n toast.addEventListener(\n 'closeToast',\n (event: CustomEvent<any | undefined>) => {\n const { detail } = event;\n removeToast(detail);\n }\n );\n\n if (typeof config.message === 'string') {\n toast.innerText = config.message;\n } else {\n toast.appendChild(config.message);\n }\n\n (await this.hostContainer).appendChild(toast);\n\n return {\n onClose,\n close: (result?: any) => {\n removeToast(result);\n },\n };\n }\n\n render() {\n return (\n <Host\n class={{\n 'toast-container--bottom-right': this.position === 'bottom-right',\n 'toast-container--top-right': this.position === 'top-right',\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
package/components/ix-toast.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
-
|
|
3
|
-
interface IxToast extends Components.IxToast, HTMLElement {}
|
|
4
|
-
export const IxToast: {
|
|
5
|
-
prototype: IxToast;
|
|
6
|
-
new (): IxToast;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
package/components/ix-toast.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { T as Toast, d as defineCustomElement$1 } from './p-C7qPn3fZ.js';
|
|
2
|
-
|
|
3
|
-
const IxToast = Toast;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { IxToast, defineCustomElement };
|
|
7
|
-
//# sourceMappingURL=ix-toast.js.map
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=ix-toast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"ix-toast.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
-
|
|
3
|
-
interface IxToggleButton extends Components.IxToggleButton, HTMLElement {}
|
|
4
|
-
export const IxToggleButton: {
|
|
5
|
-
prototype: IxToggleButton;
|
|
6
|
-
new (): IxToggleButton;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-DzKDFBWC.js';
|
|
2
|
-
import { B as BaseButton } from './p-D2Fm_05X.js';
|
|
3
|
-
import { a as a11yBoolean } from './p-Bb7pDeaQ.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-BOARJXlu.js';
|
|
5
|
-
|
|
6
|
-
const toggleButtonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:var(--theme-default-time);padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-block;width:auto;height:2rem;vertical-align:middle;}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host .btn.selected.btn-primary{background:var(--theme-color-dynamic);color:var(--theme-color-primary--contrast)}:host .btn.selected.btn-primary:hover{background:var(--theme-color-dynamic--hover);color:var(--theme-color-primary--contrast)}:host .btn.selected.btn-primary:active{background:var(--theme-color-dynamic--active);color:var(--theme-color-primary--contrast)}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}";
|
|
7
|
-
|
|
8
|
-
const ToggleButton = /*@__PURE__*/ proxyCustomElement(class ToggleButton extends H {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.pressedChange = createEvent(this, "pressedChange", 7);
|
|
14
|
-
/**
|
|
15
|
-
* Button variant.
|
|
16
|
-
* Important: Variant 'primary' can only be combined with either outline or ghost.
|
|
17
|
-
*/
|
|
18
|
-
this.variant = 'secondary';
|
|
19
|
-
/**
|
|
20
|
-
* Outline button
|
|
21
|
-
*/
|
|
22
|
-
this.outline = false;
|
|
23
|
-
/**
|
|
24
|
-
* Button with no background or outline
|
|
25
|
-
*/
|
|
26
|
-
this.ghost = false;
|
|
27
|
-
/**
|
|
28
|
-
* Disable the button
|
|
29
|
-
*/
|
|
30
|
-
this.disabled = false;
|
|
31
|
-
/**
|
|
32
|
-
* Loading button
|
|
33
|
-
*/
|
|
34
|
-
this.loading = false;
|
|
35
|
-
/**
|
|
36
|
-
* Show button as pressed
|
|
37
|
-
*/
|
|
38
|
-
this.pressed = false;
|
|
39
|
-
}
|
|
40
|
-
isIllegalToggleButtonConfig() {
|
|
41
|
-
return this.variant === 'primary' && (this.outline || this.ghost);
|
|
42
|
-
}
|
|
43
|
-
logIllegalConfig() {
|
|
44
|
-
console.warn('iX toggle button with illegal configuration detected. Variant "primary" can only be combined with "outline" or "ghost".');
|
|
45
|
-
}
|
|
46
|
-
onVariantChange() {
|
|
47
|
-
if (this.isIllegalToggleButtonConfig()) {
|
|
48
|
-
this.logIllegalConfig();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
onGhostChange() {
|
|
52
|
-
this.onVariantChange();
|
|
53
|
-
}
|
|
54
|
-
onOutlineChange() {
|
|
55
|
-
this.onVariantChange();
|
|
56
|
-
}
|
|
57
|
-
componentDidLoad() {
|
|
58
|
-
this.onVariantChange();
|
|
59
|
-
}
|
|
60
|
-
dispatchPressedChange() {
|
|
61
|
-
this.pressedChange.emit(!this.pressed);
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
const baseButtonProps = {
|
|
65
|
-
variant: this.variant,
|
|
66
|
-
outline: this.outline,
|
|
67
|
-
ghost: this.ghost,
|
|
68
|
-
iconOnly: false,
|
|
69
|
-
iconOval: false,
|
|
70
|
-
selected: this.pressed,
|
|
71
|
-
disabled: this.disabled || this.loading,
|
|
72
|
-
icon: this.icon,
|
|
73
|
-
loading: this.loading,
|
|
74
|
-
onClick: () => this.dispatchPressedChange(),
|
|
75
|
-
type: 'button',
|
|
76
|
-
ariaAttributes: {
|
|
77
|
-
'aria-pressed': a11yBoolean(this.pressed),
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
return (h(Host, { key: 'e8078c21a574a533948bed46496effb2b19dad63', class: {
|
|
81
|
-
disabled: this.disabled || this.loading,
|
|
82
|
-
} }, h(BaseButton, Object.assign({ key: '3ce42bddfceb378dec7e9f959aac4e802f553bc6' }, baseButtonProps), h("slot", { key: '26b4252bf14683c2b5a0862f6ea8d66a0ef51319' }))));
|
|
83
|
-
}
|
|
84
|
-
static get watchers() { return {
|
|
85
|
-
"variant": ["onVariantChange"],
|
|
86
|
-
"ghost": ["onGhostChange"],
|
|
87
|
-
"outline": ["onOutlineChange"]
|
|
88
|
-
}; }
|
|
89
|
-
static get style() { return toggleButtonCss; }
|
|
90
|
-
}, [1, "ix-toggle-button", {
|
|
91
|
-
"variant": [1],
|
|
92
|
-
"outline": [4],
|
|
93
|
-
"ghost": [4],
|
|
94
|
-
"disabled": [516],
|
|
95
|
-
"loading": [4],
|
|
96
|
-
"icon": [1],
|
|
97
|
-
"pressed": [4]
|
|
98
|
-
}, undefined, {
|
|
99
|
-
"variant": ["onVariantChange"],
|
|
100
|
-
"ghost": ["onGhostChange"],
|
|
101
|
-
"outline": ["onOutlineChange"]
|
|
102
|
-
}]);
|
|
103
|
-
function defineCustomElement$1() {
|
|
104
|
-
if (typeof customElements === "undefined") {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const components = ["ix-toggle-button", "ix-spinner"];
|
|
108
|
-
components.forEach(tagName => { switch (tagName) {
|
|
109
|
-
case "ix-toggle-button":
|
|
110
|
-
if (!customElements.get(tagName)) {
|
|
111
|
-
customElements.define(tagName, ToggleButton);
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "ix-spinner":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$2();
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
} });
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const IxToggleButton = ToggleButton;
|
|
123
|
-
const defineCustomElement = defineCustomElement$1;
|
|
124
|
-
|
|
125
|
-
export { IxToggleButton, defineCustomElement };
|
|
126
|
-
//# sourceMappingURL=ix-toggle-button.js.map
|
|
127
|
-
|
|
128
|
-
//# sourceMappingURL=ix-toggle-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"ix-toggle-button.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,gybAAgyb;;MC2B3yb,YAAY,iBAAAA,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;AALzB,IAAA,WAAA,GAAA;;;;;AAME;;;AAGG;AACK,QAAA,IAAO,CAAA,OAAA,GAAkB,WAAW;AAE5C;;AAEG;AACK,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;AAEvB;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,KAAK;AAErB;;AAEG;AACsB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEzC;;AAEG;AACK,QAAA,IAAO,CAAA,OAAA,GAAY,KAAK;AAOhC;;AAEG;AACK,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;AAwExB;IAjES,2BAA2B,GAAA;AACjC,QAAA,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;;IAG3D,gBAAgB,GAAA;AACtB,QAAA,OAAO,CAAC,IAAI,CACV,yHAAyH,CAC1H;;IAIH,eAAe,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,2BAA2B,EAAE,EAAE;YACtC,IAAI,CAAC,gBAAgB,EAAE;;;IAK3B,aAAa,GAAA;QACX,IAAI,CAAC,eAAe,EAAE;;IAIxB,eAAe,GAAA;QACb,IAAI,CAAC,eAAe,EAAE;;IAGxB,gBAAgB,GAAA;QACd,IAAI,CAAC,eAAe,EAAE;;IAGhB,qBAAqB,GAAA;QAC3B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;;IAGxC,MAAM,GAAA;AACJ,QAAA,MAAM,eAAe,GAAoB;YACvC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,YAAA,QAAQ,EAAE,KAAK;AACf,YAAA,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI,CAAC,OAAO;AACtB,YAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;AACrB,YAAA,OAAO,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE;AAC3C,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,cAAc,EAAE;AACd,gBAAA,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC;AAC1C,aAAA;SACF;QAED,QACE,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;AACxC,aAAA,EAAA,EAED,CAAC,CAAA,UAAU,qEAAK,eAAe,CAAA,EAC7B,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/toggle-button/toggle-button.scss?tag=ix-toggle-button&encapsulation=shadow","src/components/toggle-button/toggle-button.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/components/buttons';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n width: auto;\n height: $x-large-space;\n vertical-align: middle;\n\n .btn {\n width: 100%;\n height: 100%;\n }\n\n /**\n * Overwrite the default button styles because toggle button looks different as primary variant\n */\n .btn.selected.btn-primary {\n background: var(--theme-color-dynamic);\n color: var(--theme-color-primary--contrast);\n }\n\n .btn.selected.btn-primary:hover {\n background: var(--theme-color-dynamic--hover);\n color: var(--theme-color-primary--contrast);\n }\n\n .btn.selected.btn-primary:active {\n background: var(--theme-color-dynamic--active);\n color: var(--theme-color-primary--contrast);\n }\n\n button:not(:disabled) {\n cursor: pointer;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { ButtonVariant } from '../button/button';\nimport { a11yBoolean } from '../utils/a11y';\n\n@Component({\n tag: 'ix-toggle-button',\n shadow: true,\n styleUrl: './toggle-button.scss',\n})\nexport class ToggleButton {\n /**\n * Button variant.\n * Important: Variant 'primary' can only be combined with either outline or ghost.\n */\n @Prop() variant: ButtonVariant = 'secondary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon?: string;\n\n /**\n * Show button as pressed\n */\n @Prop() pressed = false;\n\n /**\n * Pressed change event\n */\n @Event() pressedChange!: EventEmitter<boolean>;\n\n private isIllegalToggleButtonConfig() {\n return this.variant === 'primary' && (this.outline || this.ghost);\n }\n\n private logIllegalConfig() {\n console.warn(\n 'iX toggle button with illegal configuration detected. Variant \"primary\" can only be combined with \"outline\" or \"ghost\".'\n );\n }\n\n @Watch('variant')\n onVariantChange() {\n if (this.isIllegalToggleButtonConfig()) {\n this.logIllegalConfig();\n }\n }\n\n @Watch('ghost')\n onGhostChange() {\n this.onVariantChange();\n }\n\n @Watch('outline')\n onOutlineChange() {\n this.onVariantChange();\n }\n\n componentDidLoad() {\n this.onVariantChange();\n }\n\n private dispatchPressedChange() {\n this.pressedChange.emit(!this.pressed);\n }\n\n render() {\n const baseButtonProps: BaseButtonProps = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n iconOnly: false,\n iconOval: false,\n selected: this.pressed,\n disabled: this.disabled || this.loading,\n icon: this.icon,\n loading: this.loading,\n onClick: () => this.dispatchPressedChange(),\n type: 'button',\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.pressed),\n },\n };\n\n return (\n <Host\n class={{\n disabled: this.disabled || this.loading,\n }}\n >\n <BaseButton {...baseButtonProps}>\n <slot></slot>\n </BaseButton>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
-
|
|
3
|
-
interface IxToggle extends Components.IxToggle, HTMLElement {}
|
|
4
|
-
export const IxToggle: {
|
|
5
|
-
prototype: IxToggle;
|
|
6
|
-
new (): IxToggle;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
package/components/ix-toggle.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-DzKDFBWC.js';
|
|
2
|
-
import { a as a11yBoolean } from './p-Bb7pDeaQ.js';
|
|
3
|
-
import { H as HookValidationLifecycle } from './p-t-aQDKhy.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-C9zujPO0.js';
|
|
5
|
-
|
|
6
|
-
const toggleCss = ":host{display:inline-flex;flex-direction:row;position:relative;height:1.5rem;margin-block-start:0.25rem;margin-block-end:0.25rem}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host input[type=checkbox]{display:none}:host .wrapper{display:flex;align-items:flex-start;width:100%;height:100%}:host .label{display:inline-block;white-space:normal;overflow:hidden;text-overflow:ellipsis;margin-block-start:0.125rem;margin-inline-start:0.5rem}:host .switch{all:unset;position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem}:host .slider{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem;border:0.0625rem solid transparent}:host .slider:before{position:absolute;content:\"\";height:1.125rem;width:1.125rem;left:0.125rem;bottom:0.125rem;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host .switch.checked>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.5rem)}:host .switch>.slider{border-color:var(--theme-switch-off--border-color)}:host .switch:hover>.slider{background-color:var(--theme-switch-off--background--hover);border-color:var(--theme-switch-off--border-color--hover)}:host .switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host .switch:active>.slider{background-color:var(--theme-switch-off--background--active);border-color:var(--theme-switch-off--border-color--active)}:host .switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host .switch.checked>.slider{background-color:var(--theme-switch-on--background);border-color:var(--theme-switch-on--border-color)}:host .switch.checked:hover>.slider{background-color:var(--theme-switch-on--background--hover);border-color:var(--theme-switch-on--border-color--hover)}:host .switch.checked:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host .switch.checked:active>.slider{background-color:var(--theme-switch-on--background--active);border-color:var(--theme-switch-on--border-color--active)}:host .switch.checked:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host .switch.indeterminate>.slider::before{transform:translateX(0.75rem)}:host(:not(.disabled)) .wrapper{cursor:pointer}:host(:not(.disabled)) .switch:focus-visible>.slider{outline:0.0625rem solid var(--theme-color-focus-bdr);outline-offset:0.0625rem}:host(.disabled){pointer-events:none}:host(.disabled) .switch{opacity:0.5}:host(.disabled) .switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) .switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) .switch.checked>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) .switch.checked>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .label{color:var(--theme-color-weak-text)}:host(.ix-info:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--info\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--info--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--info--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--info\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--info--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--info--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--info\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--info--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--info--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--info\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--info--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--info--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--info\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--info--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--info--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--info\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--info--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--info--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--info\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--info--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--info--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--info\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--info--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--info--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--info\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--info--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--info--active\n )}:host(.ix-warning:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--warning\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--warning--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--warning--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--warning\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--warning--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--warning--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--warning\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--warning--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--warning--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--warning\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--warning--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--warning--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--warning\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--warning--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--warning--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--warning\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--warning--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--warning--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--warning\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--warning--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--warning--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--warning\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--warning--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--warning--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--warning\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--warning--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--warning--active\n )}:host(.ix-invalid--required:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--invalid\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--invalid--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--invalid--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--invalid\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--invalid--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--invalid--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--invalid\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--invalid--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--invalid--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--invalid\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--invalid--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--invalid--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--invalid\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--invalid--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--invalid--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--invalid\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--invalid--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--invalid--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--invalid\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--invalid--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--invalid--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--invalid\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--invalid--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--invalid--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--invalid\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--invalid--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--invalid--active\n )}:host(.ix-invalid:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--invalid\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--invalid--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--invalid--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--invalid\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--invalid--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--invalid--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--invalid\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--invalid--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--invalid--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--invalid\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--invalid--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--invalid--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--invalid\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--invalid--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--invalid--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--invalid\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--invalid--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--invalid--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--invalid\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--invalid--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--invalid--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--invalid\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--invalid--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--invalid--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--invalid\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--invalid--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--invalid--active\n )}";
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
10
|
-
*
|
|
11
|
-
* SPDX-License-Identifier: MIT
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
19
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else
|
|
21
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
22
|
-
if (d = decorators[i])
|
|
23
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
-
};
|
|
26
|
-
const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends H {
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
this.__registerHost();
|
|
30
|
-
this.__attachShadow();
|
|
31
|
-
this.checkedChange = createEvent(this, "checkedChange", 7);
|
|
32
|
-
this.valueChange = createEvent(this, "valueChange", 7);
|
|
33
|
-
this.ixBlur = createEvent(this, "ixBlur", 7);
|
|
34
|
-
this.formInternals = this.attachInternals();
|
|
35
|
-
/**
|
|
36
|
-
* Value of the checkbox component
|
|
37
|
-
*/
|
|
38
|
-
this.value = 'on';
|
|
39
|
-
/**
|
|
40
|
-
* Whether the slide-toggle element is checked or not.
|
|
41
|
-
*/
|
|
42
|
-
this.checked = false;
|
|
43
|
-
/**
|
|
44
|
-
* Whether the slide-toggle element is disabled or not.
|
|
45
|
-
*/
|
|
46
|
-
this.disabled = false;
|
|
47
|
-
/**
|
|
48
|
-
* If true the control is in indeterminate state
|
|
49
|
-
*/
|
|
50
|
-
this.indeterminate = false;
|
|
51
|
-
/**
|
|
52
|
-
* Text for on state
|
|
53
|
-
*/
|
|
54
|
-
this.textOn = 'On';
|
|
55
|
-
/**
|
|
56
|
-
* Text for off state
|
|
57
|
-
*/
|
|
58
|
-
this.textOff = 'Off';
|
|
59
|
-
/**
|
|
60
|
-
* Text for indeterminate state
|
|
61
|
-
*/
|
|
62
|
-
this.textIndeterminate = 'Mixed';
|
|
63
|
-
/**
|
|
64
|
-
* Hide `on` and `off` text
|
|
65
|
-
*/
|
|
66
|
-
this.hideText = false;
|
|
67
|
-
/**
|
|
68
|
-
* Required state of the checkbox component.
|
|
69
|
-
*
|
|
70
|
-
* If true, checkbox needs to be checked to be valid
|
|
71
|
-
*/
|
|
72
|
-
this.required = false;
|
|
73
|
-
this.touched = false;
|
|
74
|
-
}
|
|
75
|
-
onCheckedChange(newChecked) {
|
|
76
|
-
if (this.disabled) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const wasIndeterminate = this.indeterminate;
|
|
80
|
-
const oldChecked = this.checked;
|
|
81
|
-
if (this.indeterminate) {
|
|
82
|
-
this.indeterminate = false;
|
|
83
|
-
}
|
|
84
|
-
this.checked = newChecked;
|
|
85
|
-
const { defaultPrevented } = this.checkedChange.emit(this.checked);
|
|
86
|
-
if (defaultPrevented) {
|
|
87
|
-
this.indeterminate = wasIndeterminate;
|
|
88
|
-
this.checked = oldChecked;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
componentWillLoad() {
|
|
92
|
-
this.updateFormInternalValue();
|
|
93
|
-
}
|
|
94
|
-
updateFormInternalValue() {
|
|
95
|
-
if (this.checked) {
|
|
96
|
-
this.formInternals.setFormValue(this.value);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
this.formInternals.setFormValue(null);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
watchCheckedChange() {
|
|
103
|
-
this.touched = true;
|
|
104
|
-
this.updateFormInternalValue();
|
|
105
|
-
}
|
|
106
|
-
/** @internal */
|
|
107
|
-
hasValidValue() {
|
|
108
|
-
return Promise.resolve(this.checked);
|
|
109
|
-
}
|
|
110
|
-
/** @internal */
|
|
111
|
-
getAssociatedFormElement() {
|
|
112
|
-
return Promise.resolve(this.formInternals.form);
|
|
113
|
-
}
|
|
114
|
-
/** @internal */
|
|
115
|
-
isTouched() {
|
|
116
|
-
return Promise.resolve(this.touched);
|
|
117
|
-
}
|
|
118
|
-
updateClassMappings() {
|
|
119
|
-
/** This function is intentionally empty */
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
let toggleText = this.textOff;
|
|
123
|
-
if (this.checked) {
|
|
124
|
-
toggleText = this.textOn;
|
|
125
|
-
}
|
|
126
|
-
if (this.indeterminate) {
|
|
127
|
-
toggleText = this.textIndeterminate;
|
|
128
|
-
}
|
|
129
|
-
return (h(Host, { key: 'e3a0e2343aeb80cc6c8caf67d89346a090e76087', class: {
|
|
130
|
-
disabled: this.disabled,
|
|
131
|
-
}, onBlur: () => this.ixBlur.emit(), onFocus: () => (this.touched = true) }, h("label", { key: 'ba452f648b014b1ff4a29e4aaa9a64fdf7874b60', class: "wrapper" }, h("button", { key: 'a11e6c1b02a462931abe2c202dac1abb781cd302', role: "switch", "aria-checked": a11yBoolean(this.checked), class: {
|
|
132
|
-
switch: true,
|
|
133
|
-
checked: this.checked,
|
|
134
|
-
indeterminate: this.indeterminate,
|
|
135
|
-
}, onClick: () => this.onCheckedChange(!this.checked) }, h("div", { key: 'a4f2635a0ff547ed6db25aed3a022d13d44b875f', class: "slider" })), h("input", { key: 'f56d624c9e9691dc726999957fbbdaf7422e3e8f', type: "checkbox", disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, tabindex: 0, "aria-hidden": a11yBoolean(true), "aria-checked": a11yBoolean(this.checked), onChange: (event) => this.onCheckedChange(event.target.checked) }), !this.hideText && (h("ix-typography", { key: '3ccc5308562c9d3b215926d4473ae1395135afe8', class: "label" }, toggleText)))));
|
|
136
|
-
}
|
|
137
|
-
static get formAssociated() { return true; }
|
|
138
|
-
get hostElement() { return this; }
|
|
139
|
-
static get watchers() { return {
|
|
140
|
-
"checked": ["watchCheckedChange"]
|
|
141
|
-
}; }
|
|
142
|
-
static get style() { return toggleCss; }
|
|
143
|
-
}, [65, "ix-toggle", {
|
|
144
|
-
"name": [513],
|
|
145
|
-
"value": [513],
|
|
146
|
-
"checked": [1540],
|
|
147
|
-
"disabled": [4],
|
|
148
|
-
"indeterminate": [1540],
|
|
149
|
-
"textOn": [1, "text-on"],
|
|
150
|
-
"textOff": [1, "text-off"],
|
|
151
|
-
"textIndeterminate": [1, "text-indeterminate"],
|
|
152
|
-
"hideText": [4, "hide-text"],
|
|
153
|
-
"required": [516],
|
|
154
|
-
"hasValidValue": [64],
|
|
155
|
-
"getAssociatedFormElement": [64],
|
|
156
|
-
"isTouched": [64]
|
|
157
|
-
}, undefined, {
|
|
158
|
-
"checked": ["watchCheckedChange"]
|
|
159
|
-
}]);
|
|
160
|
-
__decorate([
|
|
161
|
-
HookValidationLifecycle()
|
|
162
|
-
], Toggle.prototype, "updateClassMappings", null);
|
|
163
|
-
function defineCustomElement$1() {
|
|
164
|
-
if (typeof customElements === "undefined") {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
const components = ["ix-toggle", "ix-typography"];
|
|
168
|
-
components.forEach(tagName => { switch (tagName) {
|
|
169
|
-
case "ix-toggle":
|
|
170
|
-
if (!customElements.get(tagName)) {
|
|
171
|
-
customElements.define(tagName, Toggle);
|
|
172
|
-
}
|
|
173
|
-
break;
|
|
174
|
-
case "ix-typography":
|
|
175
|
-
if (!customElements.get(tagName)) {
|
|
176
|
-
defineCustomElement$2();
|
|
177
|
-
}
|
|
178
|
-
break;
|
|
179
|
-
} });
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const IxToggle = Toggle;
|
|
183
|
-
const defineCustomElement = defineCustomElement$1;
|
|
184
|
-
|
|
185
|
-
export { IxToggle, defineCustomElement };
|
|
186
|
-
//# sourceMappingURL=ix-toggle.js.map
|
|
187
|
-
|
|
188
|
-
//# sourceMappingURL=ix-toggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"ix-toggle.js","mappings":";;;;;AAAA,MAAM,SAAS,GAAG,kodAAkod;;ACAppd;;;;;;;AAOG;;;;;;;;;;;MA0BU,MAAM,iBAAAA,kBAAA,CAAA,MAAA,MAAA,SAAAC,CAAA,CAAA;AANnB,IAAA,WAAA,GAAA;;;;;;;;AAgBE;;AAEG;AACsB,QAAA,IAAK,CAAA,KAAA,GAAW,IAAI;AAE7C;;AAEG;AACqC,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;AAEvD;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAExB;;AAEG;AACqC,QAAA,IAAa,CAAA,aAAA,GAAG,KAAK;AAE7D;;AAEG;AACK,QAAA,IAAM,CAAA,MAAA,GAAG,IAAI;AAErB;;AAEG;AACK,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;AAEvB;;AAEG;AACK,QAAA,IAAiB,CAAA,iBAAA,GAAG,OAAO;AAEnC;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAExB;;;;AAIG;AACsB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAejC,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;AAmHxB;AAjHC,IAAA,eAAe,CAAC,UAAmB,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB;;AAGF,QAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa;AAC3C,QAAA,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO;AAE/B,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACtB,YAAA,IAAI,CAAC,aAAa,GAAG,KAAK;;AAG5B,QAAA,IAAI,CAAC,OAAO,GAAG,UAAU;AAEzB,QAAA,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAElE,IAAI,gBAAgB,EAAE;AACpB,YAAA,IAAI,CAAC,aAAa,GAAG,gBAAgB;AACrC,YAAA,IAAI,CAAC,OAAO,GAAG,UAAU;;;IAI7B,iBAAiB,GAAA;QACf,IAAI,CAAC,uBAAuB,EAAE;;IAGhC,uBAAuB,GAAA;AACrB,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;aACtC;AACL,YAAA,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC;;;IAKzC,kBAAkB,GAAA;AAChB,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;QACnB,IAAI,CAAC,uBAAuB,EAAE;;;IAKhC,aAAa,GAAA;QACX,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;;;IAKtC,wBAAwB,GAAA;QACtB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;;;IAKjD,SAAS,GAAA;QACP,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;;IAItC,mBAAmB,GAAA;;;IAInB,MAAM,GAAA;AACJ,QAAA,IAAI,UAAU,GAAG,IAAI,CAAC,OAAO;AAE7B,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,YAAA,UAAU,GAAG,IAAI,CAAC,MAAM;;AAG1B,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACtB,YAAA,UAAU,GAAG,IAAI,CAAC,iBAAiB;;QAErC,QACE,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACxB,aAAA,EACD,MAAM,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAChC,OAAO,EAAE,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,EAAA,EAEpC,CAAO,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACpB,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,QAAQ,EAAA,cAAA,EACC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EACvC,KAAK,EAAE;AACL,gBAAA,MAAM,EAAE,IAAI;gBACZ,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,aAAa,EAAE,IAAI,CAAC,aAAa;AAClC,aAAA,EACD,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAA,EAElD,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,QAAQ,EAAA,CAAO,CACnB,EACT,CACE,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,CAAC,EACE,aAAA,EAAA,WAAW,CAAC,IAAI,CAAC,EAChB,cAAA,EAAA,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EACvC,QAAQ,EAAE,CAAC,KAAK,KACd,IAAI,CAAC,eAAe,CAAE,KAAK,CAAC,MAA2B,CAAC,OAAO,CAAC,EAElE,CAAA,EACD,CAAC,IAAI,CAAC,QAAQ,KACb,sEAAe,KAAK,EAAC,OAAO,EAAA,EAAE,UAAU,CAAiB,CAC1D,CACK,CACH;;;;;;;;;;;;;;;;;;;;;;;;;AAnDX,UAAA,CAAA;AADC,IAAA,uBAAuB;CAGvB,EAAA,MAAA,CAAA,SAAA,EAAA,qBAAA,EAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/toggle/toggle.scss?tag=ix-toggle&encapsulation=shadow","src/components/toggle/toggle.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-flex;\n flex-direction: row;\n position: relative;\n height: 1.5rem;\n margin-block-start: 0.25rem;\n margin-block-end: 0.25rem;\n\n input[type='checkbox'] {\n display: none;\n }\n\n .wrapper {\n display: flex;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n }\n\n .label {\n display: inline-block;\n white-space: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-block-start: 0.125rem;\n margin-inline-start: 0.5rem;\n }\n\n .switch {\n all: unset;\n position: relative;\n display: inline-block;\n width: 3rem;\n min-width: 3rem;\n max-width: 3rem;\n height: 1.5rem;\n }\n\n .slider {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--theme-switch-off--background);\n transition: var(--theme-default-time);\n border-radius: 1.5rem;\n border: 0.0625rem solid transparent;\n }\n\n .slider:before {\n position: absolute;\n content: '';\n height: 1.125rem;\n width: 1.125rem;\n left: 0.125rem;\n bottom: 0.125rem;\n background-color: var(--theme-switch-thumb-off--background);\n transition: var(--theme-default-time);\n border-radius: 50%;\n }\n\n .switch.checked > .slider::before {\n background-color: var(--theme-switch-thumb-on--background);\n transform: translateX(1.5rem);\n }\n\n .switch > .slider {\n border-color: var(--theme-switch-off--border-color);\n }\n\n .switch:hover > .slider {\n background-color: var(--theme-switch-off--background--hover);\n border-color: var(--theme-switch-off--border-color--hover);\n }\n\n .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--hover);\n }\n\n .switch:active > .slider {\n background-color: var(--theme-switch-off--background--active);\n border-color: var(--theme-switch-off--border-color--active);\n }\n\n .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--active);\n }\n\n .switch.checked > .slider {\n background-color: var(--theme-switch-on--background);\n border-color: var(--theme-switch-on--border-color);\n }\n\n .switch.checked:hover > .slider {\n background-color: var(--theme-switch-on--background--hover);\n border-color: var(--theme-switch-on--border-color--hover);\n }\n\n .switch.checked:hover > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--hover);\n }\n\n .switch.checked:active > .slider {\n background-color: var(--theme-switch-on--background--active);\n border-color: var(--theme-switch-on--border-color--active);\n }\n\n .switch.checked:active > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--active);\n }\n\n .switch.indeterminate > .slider::before {\n transform: translateX(0.75rem);\n }\n}\n\n:host(:not(.disabled)) {\n .wrapper {\n cursor: pointer;\n }\n\n .switch:focus-visible > .slider {\n outline: 0.0625rem solid var(--theme-color-focus-bdr);\n outline-offset: 0.0625rem;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n\n .switch {\n opacity: 0.5;\n }\n\n .switch > .slider {\n background-color: var(--theme-switch-off--background--disabled);\n }\n\n .switch > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--disabled);\n }\n\n .switch.checked > .slider {\n background-color: var(--theme-switch-on--background--disabled);\n }\n\n .switch.checked > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--disabled);\n }\n\n .label {\n color: var(--theme-color-weak-text);\n }\n}\n\n@mixin toggle-variant($selector) {\n :host(#{$selector}:not(.disabled)) {\n .slider {\n @content;\n }\n }\n}\n\n@mixin define-toggle-vars($state, $type) {\n --theme-switch-#{$state}--background: var(\n --theme-switch-#{$state}--background--#{$type}\n );\n --theme-switch-#{$state}--background--hover: var(\n --theme-switch-#{$state}--background--#{$type}--hover\n );\n --theme-switch-#{$state}--background--active: var(\n --theme-switch-#{$state}--background--#{$type}--active\n );\n\n --theme-switch-thumb-#{$state}--background: var(\n --theme-switch-thumb-#{$state}--background--#{$type}\n );\n --theme-switch-thumb-#{$state}--background--hover: var(\n --theme-switch-thumb-#{$state}--background--#{$type}--hover\n );\n --theme-switch-thumb-#{$state}--background--active: var(\n --theme-switch-thumb-#{$state}--background--#{$type}--active\n );\n\n --theme-switch-#{$state}--border-color: var(\n --theme-switch-#{$state}--border-color--#{$type}\n );\n --theme-switch-#{$state}--border-color--hover: var(\n --theme-switch-#{$state}--border-color--#{$type}--hover\n );\n --theme-switch-#{$state}--border-color--active: var(\n --theme-switch-#{$state}--border-color--#{$type}--active\n );\n}\n\n@include toggle-variant($selector: '.ix-info') {\n @include define-toggle-vars('off', 'info');\n @include define-toggle-vars('on', 'info');\n @include define-toggle-vars('mixed', 'info');\n}\n\n@include toggle-variant($selector: '.ix-warning') {\n @include define-toggle-vars('off', 'warning');\n @include define-toggle-vars('on', 'warning');\n @include define-toggle-vars('mixed', 'warning');\n}\n\n@include toggle-variant($selector: '.ix-invalid--required') {\n @include define-toggle-vars('off', 'invalid');\n @include define-toggle-vars('on', 'invalid');\n @include define-toggle-vars('mixed', 'invalid');\n}\n\n@include toggle-variant($selector: '.ix-invalid') {\n @include define-toggle-vars('off', 'invalid');\n @include define-toggle-vars('on', 'invalid');\n @include define-toggle-vars('mixed', 'invalid');\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { a11yBoolean } from '../utils/a11y';\nimport { IxFormComponent, HookValidationLifecycle } from '../utils/input';\n\n/**\n * @form-ready\n */\n@Component({\n tag: 'ix-toggle',\n styleUrl: 'toggle.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class Toggle implements IxFormComponent<string> {\n @AttachInternals() formInternals!: ElementInternals;\n\n @Element() hostElement!: HTMLIxToggleElement;\n\n /**\n * Name of the checkbox component\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * Value of the checkbox component\n */\n @Prop({ reflect: true }) value: string = 'on';\n\n /**\n * Whether the slide-toggle element is checked or not.\n */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /**\n * Whether the slide-toggle element is disabled or not.\n */\n @Prop() disabled = false;\n\n /**\n * If true the control is in indeterminate state\n */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /**\n * Text for on state\n */\n @Prop() textOn = 'On';\n\n /**\n * Text for off state\n */\n @Prop() textOff = 'Off';\n\n /**\n * Text for indeterminate state\n */\n @Prop() textIndeterminate = 'Mixed';\n\n /**\n * Hide `on` and `off` text\n */\n @Prop() hideText = false;\n\n /**\n * Required state of the checkbox component.\n *\n * If true, checkbox needs to be checked to be valid\n */\n @Prop({ reflect: true }) required = false;\n\n /**\n * An event will be dispatched each time the slide-toggle changes its value.\n */\n @Event() checkedChange!: EventEmitter<boolean>;\n\n /** @internal */\n @Event() valueChange!: EventEmitter<string>;\n\n /**\n * An event will be dispatched each time the toggle is blurred.\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n private touched = false;\n\n onCheckedChange(newChecked: boolean) {\n if (this.disabled) {\n return;\n }\n\n const wasIndeterminate = this.indeterminate;\n const oldChecked = this.checked;\n\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n\n this.checked = newChecked;\n\n const { defaultPrevented } = this.checkedChange.emit(this.checked);\n\n if (defaultPrevented) {\n this.indeterminate = wasIndeterminate;\n this.checked = oldChecked;\n }\n }\n\n componentWillLoad() {\n this.updateFormInternalValue();\n }\n\n updateFormInternalValue(): void {\n if (this.checked) {\n this.formInternals.setFormValue(this.value);\n } else {\n this.formInternals.setFormValue(null);\n }\n }\n\n @Watch('checked')\n watchCheckedChange() {\n this.touched = true;\n this.updateFormInternalValue();\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(this.checked);\n }\n\n /** @internal */\n @Method()\n getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return Promise.resolve(this.formInternals.form);\n }\n\n /** @internal */\n @Method()\n isTouched(): Promise<boolean> {\n return Promise.resolve(this.touched);\n }\n\n @HookValidationLifecycle()\n updateClassMappings() {\n /** This function is intentionally empty */\n }\n\n render() {\n let toggleText = this.textOff;\n\n if (this.checked) {\n toggleText = this.textOn;\n }\n\n if (this.indeterminate) {\n toggleText = this.textIndeterminate;\n }\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n onBlur={() => this.ixBlur.emit()}\n onFocus={() => (this.touched = true)}\n >\n <label class=\"wrapper\">\n <button\n role=\"switch\"\n aria-checked={a11yBoolean(this.checked)}\n class={{\n switch: true,\n checked: this.checked,\n indeterminate: this.indeterminate,\n }}\n onClick={() => this.onCheckedChange(!this.checked)}\n >\n <div class=\"slider\"></div>\n </button>\n <input\n type=\"checkbox\"\n disabled={this.disabled}\n indeterminate={this.indeterminate}\n checked={this.checked}\n tabindex={0}\n aria-hidden={a11yBoolean(true)}\n aria-checked={a11yBoolean(this.checked)}\n onChange={(event) =>\n this.onCheckedChange((event.target as HTMLInputElement).checked)\n }\n />\n {!this.hideText && (\n <ix-typography class=\"label\">{toggleText}</ix-typography>\n )}\n </label>\n </Host>\n );\n }\n}\n"],"version":3}
|