@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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r,h as o,H as t,c as a,a as e}from"./p-DJsXFBNm.js";import{a as s}from"./p-i60z1FJC.js";import{p as c}from"./p-DLTnniMb.js";const l=":host{display:block;position:relative;overflow:auto;padding:0 0.5rem 0.5rem}: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}";const b=class{constructor(o){r(this,o)}render(){return o(t,{key:"2bde588bad49f46f6975296eff9eca9606a93a50"},o("slot",{key:"7a933c03c2c1a6558f050cd02759ef7816f225a9"}))}};b.style=l;const i=":host{display:flex;padding:0.5rem 0 0.5rem 0.5rem;align-items:center;gap:1rem}: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 .modal-title{flex-grow:1}:host .modal-close{align-self:flex-start}";const h=class{constructor(o){r(this,o);this.closeClick=a(this,"closeClick",7);this.hideClose=false}onIconChange(r){if(this.parentDialog){if(r){this.parentDialog.classList.add("with-icon")}else{this.parentDialog.classList.remove("with-icon")}}}componentDidLoad(){this.parentDialog=s(this.hostElement,"ix-modal");this.onIconChange(this.icon)}onCloseClick(r){const o=this.closeClick.emit(r);if(o.defaultPrevented||r.defaultPrevented){return}this.parentDialog.dismissModal()}render(){return o(t,{key:"d9e6d78a14a90dc7d90ddcc53d7319655df4cc73"},this.icon?o("ix-icon",{name:this.icon,color:this.iconColor,size:"32"}):null,o("div",{key:"0987c59bd84c59e01283d389730a09c993d11ccd",class:"modal-title"},o("ix-typography",{key:"41acad668a08d2c6bcf8f9a3d5b56768798c7ce3",format:"h5"},o("slot",{key:"1533cecaf059d5bae7ba488a177457244552e9c1"}))),!this.hideClose?o("ix-icon-button",{class:"modal-close",onClick:r=>this.onCloseClick(r),ghost:true,icon:c}):null)}get hostElement(){return e(this)}static get watchers(){return{icon:["onIconChange"]}}};h.style=i;export{b as ix_modal_content,h as ix_modal_header};
|
|
2
|
+
//# sourceMappingURL=p-981dae13.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["modalContentCss","ModalContent","render","h","Host","key","modalHeaderCss","ModalHeader","constructor","hostRef","this","hideClose","onIconChange","icon","parentDialog","classList","add","remove","componentDidLoad","closestPassShadow","hostElement","onCloseClick","event","ce","closeClick","emit","defaultPrevented","dismissModal","name","color","iconColor","size","class","format","onClick","ghost","iconClose"],"sources":["src/components/modal-content/modal-content.scss?tag=ix-modal-content&encapsulation=shadow","src/components/modal-content/modal-content.tsx","src/components/modal-header/modal-header.scss?tag=ix-modal-header&encapsulation=shadow","src/components/modal-header/modal-header.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@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n position: relative;\n overflow: auto;\n padding: 0 0.5rem 0.5rem;\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 { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'ix-modal-content',\n styleUrl: 'modal-content.scss',\n shadow: true,\n})\nexport class ModalContent {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\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\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: flex;\n padding: 0.5rem 0 0.5rem 0.5rem;\n align-items: center;\n gap: 1rem;\n\n .modal-title {\n flex-grow: 1;\n }\n\n .modal-close {\n align-self: flex-start;\n }\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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { closestPassShadow } from '../utils/shadow-dom';\nimport { iconClose } from '@siemens/ix-icons/icons';\n\n@Component({\n tag: 'ix-modal-header',\n styleUrl: 'modal-header.scss',\n shadow: true,\n})\nexport class ModalHeader {\n @Element() hostElement!: HTMLIxModalHeaderElement;\n\n /**\n * Hide the close button\n */\n @Prop() hideClose = false;\n\n /**\n * Icon of the Header\n */\n @Prop() icon?: string;\n\n @Watch('icon')\n onIconChange(icon?: string) {\n if (this.parentDialog) {\n if (icon) {\n this.parentDialog.classList.add('with-icon');\n } else {\n this.parentDialog.classList.remove('with-icon');\n }\n }\n }\n\n /**\n * Icon color\n */\n @Prop() iconColor?: string;\n\n /**\n * Emits when close icon is clicked and closes the modal\n * Can be prevented, in which case only the event is triggered, and the modal remains open\n */\n @Event() closeClick!: EventEmitter<MouseEvent>;\n\n private parentDialog!: HTMLIxModalElement;\n\n componentDidLoad() {\n this.parentDialog = closestPassShadow(\n this.hostElement,\n 'ix-modal'\n ) as HTMLIxModalElement;\n this.onIconChange(this.icon);\n }\n\n private onCloseClick(event: MouseEvent) {\n const ce = this.closeClick.emit(event);\n if (ce.defaultPrevented || event.defaultPrevented) {\n return;\n }\n\n this.parentDialog.dismissModal();\n }\n\n render() {\n return (\n <Host>\n {this.icon ? (\n <ix-icon name={this.icon} color={this.iconColor} size=\"32\"></ix-icon>\n ) : null}\n <div class=\"modal-title\">\n <ix-typography format=\"h5\">\n <slot></slot>\n </ix-typography>\n </div>\n {!this.hideClose ? (\n <ix-icon-button\n class=\"modal-close\"\n onClick={(event) => this.onCloseClick(event)}\n ghost\n icon={iconClose}\n ></ix-icon-button>\n ) : null}\n </Host>\n );\n }\n}\n"],"mappings":"mIAAA,MAAMA,EAAkB,u0B,MCgBXC,EAAY,M,yBACvB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAa,QAAAE,IAAA,6C,aCpBrB,MAAMC,EAAiB,i5B,MC2BVC,EAAW,MALxB,WAAAC,CAAAC,G,iDAWUC,KAASC,UAAG,KAsErB,CA9DC,YAAAC,CAAaC,GACX,GAAIH,KAAKI,aAAc,CACrB,GAAID,EAAM,CACRH,KAAKI,aAAaC,UAAUC,IAAI,Y,KAC3B,CACLN,KAAKI,aAAaC,UAAUE,OAAO,Y,GAkBzC,gBAAAC,GACER,KAAKI,aAAeK,EAClBT,KAAKU,YACL,YAEFV,KAAKE,aAAaF,KAAKG,K,CAGjB,YAAAQ,CAAaC,GACnB,MAAMC,EAAKb,KAAKc,WAAWC,KAAKH,GAChC,GAAIC,EAAGG,kBAAoBJ,EAAMI,iBAAkB,CACjD,M,CAGFhB,KAAKI,aAAaa,c,CAGpB,MAAAzB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFK,KAAKG,KACJV,EAAA,WAASyB,KAAMlB,KAAKG,KAAMgB,MAAOnB,KAAKoB,UAAWC,KAAK,OACpD,KACJ5B,EAAK,OAAAE,IAAA,2CAAA2B,MAAM,eACT7B,EAAe,iBAAAE,IAAA,2CAAA4B,OAAO,MACpB9B,EAAA,QAAAE,IAAA,gDAGFK,KAAKC,UACLR,EAAA,kBACE6B,MAAM,cACNE,QAAUZ,GAAUZ,KAAKW,aAAaC,GACtCa,MAAK,KACLtB,KAAMuB,IAEN,K","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e,a as n}from"./p-DJsXFBNm.js";import{r as o}from"./p-UQa1aROL.js";import{d as h}from"./p-D3K9vmFp.js";const r=t=>!Number.isNaN(Number(t));const c=(t,i)=>{t.classList.add(i)};class d{static create(t,i=d.defaultConfig){return new d(t,i)}static mergeStyle(t,i){for(let s in i){if(t.style[s]!==i[s]){t.style[s]=i[s]}}}static getMaxBrowserHeight(){const t=document.createElement("div");const i=document.createElement("div");d.mergeStyle(t,{position:"absolute",height:"1px",opacity:0});d.mergeStyle(i,{height:"1e7px"});t.appendChild(i);document.body.appendChild(t);const s=i.offsetHeight;document.body.removeChild(t);return s}constructor(t,i){this._lastRepaint=null;this._maxElementHeight=d.getMaxBrowserHeight();this.refresh(t,i);const s=this._config;const e=()=>{const t=this._getScrollPosition();const i=this._lastRepaint;this._renderAnimationFrame=window.requestAnimationFrame(e);if(t===i){return}const n=i?t-i:0;if(!i||n<0||n>this._averageHeight){let i=this._renderChunk();this._lastRepaint=t;if(i!==false&&typeof s.afterRender==="function"){s.afterRender()}}};e()}destroy(){window.cancelAnimationFrame(this._renderAnimationFrame)}refresh(t,i=d.defaultConfig){this._config=i;if(!t||t.nodeType!==1){throw new Error("HyperList requires a valid DOM Node container")}this._element=t;const s=this._config;const e=this._scroller||s.scroller||document.createElement(s.scrollerTagName||"tr");if(typeof s.useFragment!=="boolean"){this._config.useFragment=true}if(!s.generate){throw new Error("Missing required `generate` function")}if(!r(s.total)){throw new Error("Invalid required `total` value, expected number")}if(!Array.isArray(s.itemHeight)&&!r(s.itemHeight)){throw new Error(`\n Invalid required \`itemHeight\` value, expected number or array\n `.trim())}else if(r(s.itemHeight)){this._itemHeights=Array(s.total).fill(s.itemHeight)}else{this._itemHeights=[s.itemHeight]}Object.keys(d.defaultConfig).filter((t=>t in s)).forEach((t=>{const i=s[t];const e=r(i);if(i&&typeof i!=="string"&&typeof i!=="number"){let i=`Invalid optional \`${t}\`, expected string or number`;throw new Error(i)}else if(e){s[t]=`${i}px`}}));const n=Boolean(s.horizontal);const o=s[n?"width":"height"];if(o){const t=r(o);const i=t?false:o.slice(-1)==="%";const s=t?parseInt(o,10):parseInt(o.replace(/px|%/,""),10);const e=window[n?"innerWidth":"innerHeight"];if(i){this._containerSize=e*s/100}else{this._containerSize=r(o)?o:s}}const h=s.scrollContainer;const c=s.itemHeight*s.total;const l=this._maxElementHeight;if(c>l){console.warn(["HyperList: The maximum element height",l+"px has","been exceeded; please reduce your item height."].join(" "))}const a={width:`${s.width}`,height:h?`${c}px`:`${s.height}`,overflow:h?"none":"auto",position:"relative"};d.mergeStyle(t,a);if(h){d.mergeStyle(s.scrollContainer,{overflow:"auto"})}const f={opacity:"0",position:"absolute",[n?"height":"width"]:"1px",[n?"width":"height"]:`${c}px`};d.mergeStyle(e,f);if(!this._scroller){t.appendChild(e)}const u=this._computeScrollPadding();this._scrollPaddingBottom=u.bottom;this._scrollPaddingTop=u.top;this._scroller=e;this._scrollHeight=this._computeScrollHeight();this._itemPositions=this._itemPositions||Array(s.total).fill(0);this._computePositions(0);this._renderChunk(this._lastRepaint!==null);if(typeof s.afterRender==="function"){s.afterRender()}}_getRow(t){const i=this._config;let s=i.generate(t);let e=s.height;if(e!==undefined&&r(e)){s=s.element;if(e!==this._itemHeights[t]){this._itemHeights[t]=e;this._computePositions(t);this._scrollHeight=this._computeScrollHeight()}}else{e=this._itemHeights[t]}if(!s||s.nodeType!==1){throw new Error(`Generator did not return a DOM Node for index: ${t}`)}c(s,i.rowClassName||"vrow");const n=this._itemPositions[t]+this._scrollPaddingTop;d.mergeStyle(s,{position:"absolute",[i.horizontal?"left":"top"]:`${n}px`});return s}_getScrollPosition(){const t=this._config;if(typeof t.overrideScrollPosition==="function"){return t.overrideScrollPosition()}return this._element[t.horizontal?"scrollLeft":"scrollTop"]}_renderChunk(t=false){const i=this._config;const s=this._element;const e=this._getScrollPosition();const n=i.total;let o=this._getFrom(e)-1;if(o<0||o-this._screenItemsLen<0){o=0}if(!t&&this._lastFrom===o){return false}this._lastFrom=o;let h=o+this._cachedItemsLen;if(h>n||h+this._cachedItemsLen>n){h=n}const r=i.useFragment?document.createDocumentFragment():[];const c=this._scroller;r[i.useFragment?"appendChild":"push"](c);for(let t=o;t<h;t++){let s=this._getRow(t);r[i.useFragment?"appendChild":"push"](s)}if(i.applyPatch){return i.applyPatch(s,r)}s.innerHTML="";s.appendChild(r)}_computePositions(t=1){const i=this._config;const s=i.total;if(t<1){t=1}for(let i=t;i<s;i++){this._itemPositions[i]=this._itemHeights[i-1]+this._itemPositions[i-1]}}_computeScrollHeight(){const t=this._config;const i=Boolean(t.horizontal);const s=t.total;const e=this._itemHeights.reduce(((t,i)=>t+i),0)+this._scrollPaddingBottom+this._scrollPaddingTop;d.mergeStyle(this._scroller,{opacity:0,position:"absolute",top:"0px",[i?"height":"width"]:"1px",[i?"width":"height"]:`${e}px`});const n=this._itemHeights.slice(0).sort(((t,i)=>t-i));const o=Math.floor(s/2);const h=s%2===0?(n[o]+n[o-1])/2:n[o];const r=i?"clientWidth":"clientHeight";const c=t.scrollContainer?t.scrollContainer:this._element;const l=c[r]?c[r]:this._containerSize;this._screenItemsLen=Math.ceil(l/h);this._containerSize=l;this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3);this._averageHeight=h;return e}_computeScrollPadding(){const t=this._config;const i=Boolean(t.horizontal);const s=window.getComputedStyle(this._element);const e=t=>{const i=s.getPropertyValue(`padding-${t}`);return parseInt(i,10)||0};if(i){return{bottom:e("right"),top:e("left")}}else{return{bottom:e("bottom"),top:e("top")}}}_getFrom(t){let i=0;while(this._itemPositions[i]<t){i++}return i}}d.defaultConfig={width:"100%",height:"100%"};const l=":host{display:block}";const a=class{constructor(s){t(this,s);this.contextChange=i(this,"contextChange",7);this.nodeToggled=i(this,"nodeToggled",7);this.nodeClicked=i(this,"nodeClicked",7);this.nodeRemoved=i(this,"nodeRemoved",7);this.model={};this.context={};this.updates=new Map;this.hasFirstRender=false}updatePadding(t,i){t.style.paddingLeft=i.level+"rem"}getVirtualizerOptions(){const t=this.buildTreeList(this.model[this.root]);return{width:"100%",height:"100%",itemHeight:32,total:t.length,generate:i=>{const s=t[i];const e=this.hostElement.querySelector(`[data-tree-node-id="${s.id}"]`);const n=this.getContext(s.id);if(e){e.hasChildren=s.hasChildren;e.context=Object.assign({},n);if(this.updates.has(s.id)){const t=this.updates.get(s.id);if(t){t(s,Object.assign({},this.context))}}this.updatePadding(e,s);return e}const h=t=>{this.updates.set(s.id,t)};let r=null;if(this.renderItem){r=this.renderItem(i,s,t,Object.assign({},this.context),h)}if(r===null){r=o(s,n,h)}const c=r;c.setAttribute("data-tree-node-id",s.id);c.style.paddingRight="1rem";this.updatePadding(c,s);return c}}}setContext(t,i){this.context=Object.assign(Object.assign({},this.context),{[t]:i});this.contextChange.emit(this.context)}getContext(t){if(!this.context){return{isExpanded:false,isSelected:false}}if(!this.context[t]){this.context[t]={isExpanded:false,isSelected:false}}return this.context[t]}buildTreeList(t,i=0){const s=[];if(t===null||t===void 0?void 0:t.hasChildren){const e=i+1;t.children.forEach((t=>{const n=this.model[t];const o=this.getContext(t);s.push(Object.assign(Object.assign({},n),{level:i}));if(n.hasChildren&&o.isExpanded){s.push(...this.buildTreeList(n,e))}}))}return s}componentDidLoad(){this.initList();this.observer=new MutationObserver((t=>{let i=[];t.forEach((t=>{i=[...i,...Array.from(t.removedNodes)];t.addedNodes.forEach((t=>{const s=i.indexOf(t);if(s>=0){i.splice(s,1)}}))}));this.nodeRemoved.emit(i)}));this.observer.observe(this.hostElement,{childList:true})}componentWillRender(){this.hasFirstRender=true;if(this.isListInitialized()){this.refreshList()}else{this.initList()}}connectedCallback(){if(this.hasFirstRender){this.initList()}}disconnectedCallback(){var t,i;(t=this.hyperlist)===null||t===void 0?void 0:t.destroy();(i=this.observer)===null||i===void 0?void 0:i.disconnect()}modelChange(){if(this.hasFirstRender&&!this.isListInitialized()){this.initList()}}isListInitialized(){var t;const i=(t=this.hyperlist)===null||t===void 0?void 0:t._itemPositions;return i!==undefined&&i.length&&!(i===null||i===void 0?void 0:i.some((t=>t===undefined||Number.isNaN(t))))}refreshList(){if(this.hyperlist){this.hyperlist.refresh(this.hostElement,this.getVirtualizerOptions())}}initList(){var t;if(!this.model){return}(t=this.hyperlist)===null||t===void 0?void 0:t.destroy();const i=this.getVirtualizerOptions();this.hyperlist=new d(this.hostElement,i)}onToggle(t){const{target:i}=t;t.preventDefault();t.stopPropagation();if(!(i instanceof HTMLElement)){return}const s=i.getAttribute("data-tree-node-id");if(!s){return}const e=this.model[s];if(!e.hasChildren){return}const n=this.getContext(s);n.isExpanded=!n.isExpanded;this.nodeToggled.emit({id:s,isExpanded:n.isExpanded});this.setContext(s,n)}onTreeItemClick(t){const{target:i}=t;if(!(i instanceof HTMLElement)){return}const s=i.getAttribute("data-tree-node-id");if(!s){return}const e=this.model[s];const n=t.composedPath();const o=n.indexOf(this.hostElement);const r=n.slice(0,o);const c=h.pathIncludesTrigger(r);if(c){return}if(!t.defaultPrevented){Object.values(this.context).forEach((t=>t.isSelected=false));const t=this.getContext(s);t.isSelected=true;this.setContext(s,t)}if(this.toggleOnItemClick&&e.hasChildren){const t=this.getContext(s);t.isExpanded=!t.isExpanded;this.nodeToggled.emit({id:s,isExpanded:t.isExpanded});this.setContext(s,t)}this.nodeClicked.emit(s)}render(){return s(e,{key:"e314d9b97096f3986cd4cfbd0b39f2d2032b2db4",onClick:t=>this.onTreeItemClick(t)},s("slot",{key:"16df5c02726d20484ce8bbfd707c4f225f12ade1"}))}get hostElement(){return n(this)}static get watchers(){return{model:["modelChange"]}}};a.style=l;export{a as ix_tree};
|
|
2
|
+
//# sourceMappingURL=p-988f37da.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as r,H as a}from"./p-DJsXFBNm.js";const t=":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}:host .card{background-color:var(--theme-menu--background);width:100%;box-shadow:none;border:none;border-radius:unset;display:flex;flex-direction:column}:host .card.standaloneAppearance{box-shadow:var(--theme-shadow-4);border-radius:0.25rem}:host .card.rounded{border-radius:4px}:host .card.left{border-radius:4px 0 0 4px;height:100%}:host .card.right{border-radius:0 4px 4px 0;height:100%}:host .card.straight{border-radius:0}:host .card .header-container{width:100%}:host .card .header-container .header{padding:1rem;flex:0 1 auto}:host .card .separator{border:1px solid var(--theme-datepicker-separator--background);width:100%;flex:0 1 auto}:host .card .content{padding:0 1rem 1rem 1rem;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center}:host .card .content--time-picker{padding:0 1rem}:host .card .footer-container{width:100%}:host .card .footer-container .footer{padding:1rem}";const o=class{constructor(r){e(this,r);this.timePickerAppearance=false;this.hideHeader=false;this.hasFooter=false;this.individual=true;this.corners="rounded"}cardClasses(){var e;return{card:true,standaloneAppearance:(e=this.standaloneAppearance)!==null&&e!==void 0?e:this.individual,rounded:this.corners==="rounded",left:this.corners==="left",right:this.corners==="right",straight:this.corners==="straight"}}render(){return r(a,{key:"31c1aa02530819d8bd9896ca625c3c8930ea8268"},r("div",{key:"31432252f1ce901e76a92423719d24bc621e3e83",class:this.cardClasses()},!this.hideHeader&&r("div",{key:"dd4b7346375f87a43b2969dba7c5b4a9cc10f0ac",class:"header-container"},r("div",{key:"8dc14769929ce6e0d2f2095ca4904ee8beb2018b",class:"header"},r("slot",{key:"9f5357cb413d5ccf9f6a15ecb10040034ad5e1b0",name:"header"})),r("div",{key:"b7c55ccf1c1f655240d817ed838de53a67a8d4f0",class:"separator"})),r("div",{key:"6ddf415abf2a5174a796e3e9a15441aef0f9c14a",class:{content:true,"content--time-picker":this.timePickerAppearance}},r("slot",{key:"953b62d7631d68c1061798d6259836110c368095"})),this.hasFooter&&r("div",{key:"d39e55a300835320ef737cd28bce660a846500de",class:"footer-container"},r("div",{key:"e44823acab4d5a87bcb77ab812e1a31ff6a2b2c7",class:"separator"}),r("div",{key:"e8118c065ed36b219e04a91ec2fe4455585ea2e0",class:"footer"},r("slot",{key:"f49f852f5b7c6d5bc2052d37593a69e13f78ce0f",name:"footer"})))))}};o.style=t;export{o as ix_date_time_card};
|
|
2
|
+
//# sourceMappingURL=p-9f74e709.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["dateTimeCardCss","DateTimeCard","constructor","hostRef","this","timePickerAppearance","hideHeader","hasFooter","individual","corners","cardClasses","card","standaloneAppearance","_a","rounded","left","right","straight","render","h","Host","key","class","name","content"],"sources":["src/components/date-time-card/date-time-card.scss?tag=ix-date-time-card&encapsulation=shadow","src/components/date-time-card/date-time-card.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 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n .card {\n background-color: var(--theme-menu--background);\n width: 100%;\n box-shadow: none;\n border: none;\n border-radius: unset;\n display: flex;\n flex-direction: column;\n\n &.standaloneAppearance {\n box-shadow: var(--theme-shadow-4);\n border-radius: 0.25rem;\n }\n\n &.rounded {\n border-radius: 4px;\n }\n\n &.left {\n border-radius: 4px 0 0 4px;\n height: 100%;\n }\n\n &.right {\n border-radius: 0 4px 4px 0;\n height: 100%;\n }\n\n &.straight {\n border-radius: 0;\n }\n\n .header-container {\n width: 100%;\n\n .header {\n padding: $default-space;\n flex: 0 1 auto;\n }\n }\n\n .separator {\n border: 1px solid var(--theme-datepicker-separator--background);\n width: 100%;\n flex: 0 1 auto;\n }\n\n .content {\n &--time-picker {\n padding: 0 $default-space;\n }\n\n padding: 0 $default-space $default-space $default-space;\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .footer-container {\n width: 100%;\n\n .footer {\n padding: $default-space;\n }\n }\n }\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 { Component, h, Host, Prop } from '@stencil/core';\nimport type { DateTimeCardCorners } from './date-time-card.types';\n\n/**\n * @internal\n */\n@Component({\n tag: 'ix-date-time-card',\n styleUrl: 'date-time-card.scss',\n shadow: true,\n})\nexport class DateTimeCard {\n /** @internal */\n @Prop() standaloneAppearance?: boolean;\n\n /** Timepicker specific styling */\n @Prop() timePickerAppearance: boolean = false;\n\n /**\n * Hide header\n */\n @Prop() hideHeader: boolean = false;\n\n /**\n * Display footer\n */\n @Prop() hasFooter: boolean = false;\n\n /**\n * set styles\n */\n @Prop() individual: boolean = true;\n\n /**\n * Set corners style\n */\n @Prop() corners: DateTimeCardCorners = 'rounded';\n\n private cardClasses() {\n return {\n card: true,\n standaloneAppearance: this.standaloneAppearance ?? this.individual,\n rounded: this.corners === 'rounded',\n left: this.corners === 'left',\n right: this.corners === 'right',\n straight: this.corners === 'straight',\n };\n }\n\n render() {\n return (\n <Host>\n <div class={this.cardClasses()}>\n {!this.hideHeader && (\n <div class=\"header-container\">\n <div class=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <div class=\"separator\"></div>\n </div>\n )}\n\n <div\n class={{\n content: true,\n 'content--time-picker': this.timePickerAppearance,\n }}\n >\n <slot></slot>\n </div>\n\n {this.hasFooter && (\n <div class=\"footer-container\">\n <div class=\"separator\"></div>\n <div class=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAkB,yoD,MCoBXC,EAAY,MALzB,WAAAC,CAAAC,G,UAUUC,KAAoBC,qBAAY,MAKhCD,KAAUE,WAAY,MAKtBF,KAASG,UAAY,MAKrBH,KAAUI,WAAY,KAKtBJ,KAAOK,QAAwB,SA+CxC,CA7CS,WAAAC,G,MACN,MAAO,CACLC,KAAM,KACNC,sBAAsBC,EAAAT,KAAKQ,wBAAwB,MAAAC,SAAA,EAAAA,EAAAT,KAAKI,WACxDM,QAASV,KAAKK,UAAY,UAC1BM,KAAMX,KAAKK,UAAY,OACvBO,MAAOZ,KAAKK,UAAY,QACxBQ,SAAUb,KAAKK,UAAY,W,CAI/B,MAAAS,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAOlB,KAAKM,gBACbN,KAAKE,YACLa,EAAK,OAAAE,IAAA,2CAAAC,MAAM,oBACTH,EAAK,OAAAE,IAAA,2CAAAC,MAAM,UACTH,EAAA,QAAAE,IAAA,2CAAME,KAAK,YAEbJ,EAAA,OAAAE,IAAA,2CAAKC,MAAM,eAIfH,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACLE,QAAS,KACT,uBAAwBpB,KAAKC,uBAG/Bc,EAAA,QAAAE,IAAA,8CAGDjB,KAAKG,WACJY,EAAK,OAAAE,IAAA,2CAAAC,MAAM,oBACTH,EAAK,OAAAE,IAAA,2CAAAC,MAAM,cACXH,EAAK,OAAAE,IAAA,2CAAAC,MAAM,UACTH,EAAM,QAAAE,IAAA,2CAAAE,KAAK,c","ignoreList":[]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as o,h as t,H as r,a as s}from"./p-DJsXFBNm.js";import{l as i}from"./p-DLTnniMb.js";const l=":host{display:inline-flex;align-items:center;justify-content:space-between;height:1.5rem;padding-left:0.5rem;border:var(--theme-focus--border-thickness) solid var(--theme-chip-primary-outline--border-color);border-radius:2rem;background-color:var(--theme-color-ghost);color:var(--theme-chip-primary-outline--color)}: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 .slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .slot-container :host-context(.disabled){background-color:var(--theme-color-ghost);border-color:var(--theme-color-component-4);color:var(--theme-color-weak-text)}:host ix-icon-button{height:1.5rem;margin-left:0.25rem}:host ix-icon-button:not(.disabled):not(:disabled):focus-visible{outline:none}:host(.disabled){border:var(--theme-focus--border-thickness) solid var(--theme-color-component-4);color:var(--theme-color-weak-text);padding-right:0.5rem;cursor:default}:host(.readonly){padding-right:0.5rem}:host(:not(.disabled):not(:disabled)){cursor:pointer}:host(:hover:not(.disabled):not(:disabled)){background-color:var(--theme-color-ghost-primary--hover);border-color:var(--theme-chip-primary-outline--border-color--hover);color:var(--theme-chip-primary-outline--color--hover)}:host(:not(.disabled):not(:disabled)){cursor:pointer}:host(:active:not(.disabled):not(:disabled)){background-color:var(--theme-color-ghost-primary--active);border-color:var(--theme-chip-primary-outline--border-color--active);color:var(--theme-chip-primary-outline--color--active)}:host(:focus-visible:not(.disabled):not(:disabled)){outline:var(--theme-color-focus-bdr) solid var(--theme-focus--border-thickness);outline-offset:-0.125rem}";const a=class{constructor(t){e(this,t);this.closeClick=o(this,"closeClick",7);this.disabled=false;this.readonly=false}onCloseClick(e){e.preventDefault();e.stopPropagation();this.closeClick.emit()}render(){return t(r,{key:"e97d49f5fdd629ffa9484a8f0240fdc4de1fe9b5",class:{disabled:this.disabled,readonly:this.readonly},title:this.hostElement.textContent},t("div",{key:"2f80fc12601503db8a150f6d8598cca1008cd504",class:"slot-container"},t("slot",{key:"d56ad722b92e31bf8bd99371b9461ca4d2149cbd"})),!this.disabled&&!this.readonly?t("ix-icon-button",{ghost:true,oval:true,icon:i,size:"16",tabindex:this.disabled?-1:0,variant:"primary",disabled:this.disabled,onClick:e=>this.onCloseClick(e)}):null)}get hostElement(){return s(this)}};a.style=l;class c extends CustomEvent{constructor(e){super("ix-select-item:labelChange",{bubbles:true,detail:e})}}class n extends CustomEvent{constructor(e){super("ix-select-item:valueChange",{bubbles:true,detail:e})}}const h=":host{display:block;position:relative}:host>ix-dropdown-item{width:100%}:host ix-dropdown-item{color:var(--theme-color-std-text)}:host .select-item-checked{background-color:var(--theme-select-list-item--background--selected);--ix-dropdown-item-checked-color:var(--theme-color-std-text)}:host(.display-none){display:none}";const d=class{constructor(t){e(this,t);this.itemClick=o(this,"itemClick",7);this.selected=false;this.hover=false;this.componentLoaded=false}async getDropdownItemElement(){return this.dropdownItem}async onItemClick(e){e===null||e===void 0?void 0:e.preventDefault();e===null||e===void 0?void 0:e.stopPropagation();this.itemClick.emit(this.value)}get dropdownItem(){return this.hostElement.querySelector("ix-dropdown-item")}componentDidRender(){if(this.value===undefined||this.value===null){console.warn("ix-select-item must have a `value` property")}this.componentLoaded=true}onValueChange(e,o){if(this.componentLoaded){this.hostElement.dispatchEvent(new n({newValue:e,oldValue:o}))}}labelChange(e,o){if(this.componentLoaded){this.hostElement.dispatchEvent(new c({newValue:e,oldValue:o}))}}render(){return t(r,{key:"19f50b530d04e8ea3ba6b5eb759d214446b9cdad"},t("ix-dropdown-item",{key:"2677202fb6a5db694bc546ad2ad5b2f3402242cf",class:{"select-item-checked":this.selected},checked:this.selected,label:this.label?this.label:this.value,onItemClick:e=>this.onItemClick(e)}))}get hostElement(){return s(this)}static get watchers(){return{value:["onValueChange"],label:["labelChange"]}}};d.style=h;export{a as ix_filter_chip,d as ix_select_item};
|
|
2
|
+
//# sourceMappingURL=p-9f7d82d2.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{h as n}from"./p-DJsXFBNm.js";import{a as t}from"./p-Bb7pDeaQ.js";import{s as e}from"./p-CFsAnuUU.js";import{c as a}from"./p-CX81WQtk.js";import{c as s}from"./p-pXYAoEyc.js";import{a as i}from"./p-Ou74PMQs.js";function r(t){return n("textarea",Object.assign({readOnly:t.readonly,disabled:t.disabled,maxLength:t.maxLength,minLength:t.minLength,cols:t.textareaCols,rows:t.textareaRows,ref:t.textAreaRef,class:{"is-invalid":t.isInvalid},required:t.required,value:t.value,placeholder:t.placeholder,onInput:n=>{const e=n.target;t.updateFormInternalValue(e.value);t.valueChange(e.value)},onBlur:()=>t.onBlur(),style:{resize:t.resizeBehavior,height:t.textareaHeight,width:t.textareaWidth}},t.ariaAttributes))}function o(t){return n("input",Object.assign({id:t.id,autoComplete:"off",readOnly:t.readonly,disabled:t.disabled,step:t.step,min:t.min,max:t.max,maxLength:t.maxLength?Number(t.maxLength):undefined,minLength:t.minLength?Number(t.minLength):undefined,ref:t.inputRef,pattern:t.pattern,type:t.type,class:{"is-invalid":t.isInvalid},required:t.required,value:t.value,placeholder:t.placeholder,onKeyPress:n=>t.onKeyPress(n),onInput:n=>{const e=n.target;t.updateFormInternalValue(e.value);t.valueChange(e.value)},onBlur:()=>t.onBlur()},t.ariaAttributes))}const u=(t,e)=>n("div",{class:"end-container",ref:t.slotEndRef},n("slot",{name:"end",onSlotchange:t.onSlotChange}),e);const c=t=>n("div",{class:"start-container",ref:t.slotStartRef},n("slot",{name:"start",onSlotchange:t.onSlotChange}));function l(n){const t=5;i({targets:n,duration:200,easing:"easeInOutSine",loop:2,translateX:[{value:t*-1},{value:t},{value:t/-2},{value:t/2},{value:0}]})}function f(n,t){n.isInvalid=t.isInvalid||t.isInvalidByRequired;n.isValid=t.isValid;n.isInfo=t.isInfo;n.isWarning=t.isWarning}function d(n,t){if(n.allowedCharactersPattern){const e=new RegExp(n.allowedCharactersPattern);if(!e.test(t.key)){t.preventDefault();l(n.inputRef.current)}}}async function m(n,t){const a=t.validity;const s=n.validityStateChange.emit(a);if(s.defaultPrevented){return}if(!n.value){return}const i=await e(n);if(i){return}const{valid:r}=a;n.hostElement.classList.toggle("ix-invalid--validity-invalid",!r)}function p(n,t){n.ixBlur.emit();if(!t){throw new Error("Input element is not available")}t.setAttribute("data-ix-touched","true");m(n,t)}function v(n,t,e){var a;if(!n){return}const i=16;const r=s(t+i/2);if(e.slotEnd){n.style.paddingRight=`calc(${r} + ${(a=e.additionalPaddingRight)!==null&&a!==void 0?a:"0rem"})`}else{n.style.paddingLeft=r}}function h(n,t,e){requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(n){const t=n.getBoundingClientRect();if(t){v(e,t.width,{slotEnd:false})}}if(t){const n=t.getBoundingClientRect();if(n){v(e,n.width,{slotEnd:true})}}}))}))}function b(n){const e={"aria-invalid":`${t(n.isInvalid)}`,"aria-required":`${t(n.required)}`};if(n.isInvalid&&n.invalidText){e["aria-errormessage"]=n.invalidText}return e}const g=(n,t)=>{const e=j(n,t);const s=a(t);s.observe(n,{subtree:true,attributes:true});return()=>{e.disconnect();s.disconnect()}};function j(n,t){const e=new IntersectionObserver((n=>{n.forEach((n=>{if(n.isIntersecting){t()}}))}));e.observe(n);return e}export{o as I,u as S,r as T,g as a,h as b,c,d,m as e,b as g,f as m,p as o};
|
|
2
|
+
//# sourceMappingURL=p-BsJawkTz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-BsJawkTz.js","sources":["src/components/input/input.fc.tsx","src/components/input/input.animation.ts","src/components/input/input.util.ts"],"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 */\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { MakeRef } from '../utils/make-ref';\nimport { A11yAttributes } from '../utils/a11y';\n\nexport function TextareaElement(\n props: Readonly<{\n resizeBehavior: 'both' | 'horizontal' | 'vertical' | 'none';\n textareaHeight?: string;\n textareaWidth?: string;\n textareaRows?: number;\n textareaCols?: number;\n disabled: boolean;\n readonly: boolean;\n maxLength?: number;\n minLength?: number;\n isInvalid: boolean;\n required: boolean;\n value: string;\n placeholder?: string;\n textAreaRef: (el: HTMLTextAreaElement | undefined) => void;\n valueChange: (value: string) => void;\n updateFormInternalValue: (value: string) => void;\n onBlur: () => void;\n ariaAttributes?: A11yAttributes;\n }>\n) {\n return (\n <textarea\n readOnly={props.readonly}\n disabled={props.disabled}\n maxLength={props.maxLength}\n minLength={props.minLength}\n cols={props.textareaCols}\n rows={props.textareaRows}\n ref={props.textAreaRef}\n class={{\n 'is-invalid': props.isInvalid,\n }}\n required={props.required}\n value={props.value}\n placeholder={props.placeholder}\n onInput={(inputEvent) => {\n const target = inputEvent.target as HTMLInputElement;\n props.updateFormInternalValue(target.value);\n props.valueChange(target.value);\n }}\n onBlur={() => props.onBlur()}\n style={{\n resize: props.resizeBehavior,\n height: props.textareaHeight,\n width: props.textareaWidth,\n }}\n {...props.ariaAttributes}\n ></textarea>\n );\n}\n\nexport function InputElement(\n props: Readonly<{\n id: string;\n disabled: boolean;\n readonly: boolean;\n maxLength?: string | number;\n minLength?: string | number;\n max?: string | number;\n min?: string | number;\n step?: string | number;\n pattern?: string;\n type: string;\n isInvalid: boolean;\n required: boolean;\n value: string | number;\n placeholder?: string;\n inputRef: (el: HTMLInputElement | undefined) => void;\n onKeyPress: (event: KeyboardEvent) => void;\n valueChange: (value: string) => void;\n updateFormInternalValue: (value: string) => void;\n onBlur: () => void;\n ariaAttributes?: A11yAttributes;\n }>\n) {\n return (\n <input\n id={props.id}\n autoComplete=\"off\"\n readOnly={props.readonly}\n disabled={props.disabled}\n step={props.step}\n min={props.min}\n max={props.max}\n maxLength={props.maxLength ? Number(props.maxLength) : undefined}\n minLength={props.minLength ? Number(props.minLength) : undefined}\n ref={props.inputRef}\n pattern={props.pattern}\n type={props.type}\n class={{\n 'is-invalid': props.isInvalid,\n }}\n required={props.required}\n value={props.value}\n placeholder={props.placeholder}\n onKeyPress={(event) => props.onKeyPress(event)}\n onInput={(inputEvent) => {\n const target = inputEvent.target as HTMLInputElement;\n props.updateFormInternalValue(target.value);\n props.valueChange(target.value);\n }}\n onBlur={() => props.onBlur()}\n {...props.ariaAttributes}\n ></input>\n );\n}\n\nexport const SlotEnd: FunctionalComponent<{\n slotEndRef: MakeRef<HTMLDivElement>;\n onSlotChange?: (e: Event) => void;\n}> = (props, children) => {\n return (\n <div class=\"end-container\" ref={props.slotEndRef}>\n <slot name=\"end\" onSlotchange={props.onSlotChange}></slot>\n {children}\n </div>\n );\n};\n\nexport const SlotStart: FunctionalComponent<{\n slotStartRef: MakeRef<HTMLDivElement>;\n onSlotChange?: (e: Event) => void;\n}> = (props) => {\n return (\n <div class=\"start-container\" ref={props.slotStartRef}>\n <slot name=\"start\" onSlotchange={props.onSlotChange}></slot>\n </div>\n );\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 */\nimport anime from 'animejs';\n\nexport function shakeInput(input: HTMLInputElement) {\n const xMax = 5;\n anime({\n targets: input,\n duration: 200,\n easing: 'easeInOutSine',\n loop: 2,\n translateX: [\n {\n value: xMax * -1,\n },\n {\n value: xMax,\n },\n {\n value: xMax / -2,\n },\n {\n value: xMax / 2,\n },\n {\n value: 0,\n },\n ],\n });\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 { A11yAttributes, a11yBoolean } from '../utils/a11y';\nimport {\n IxFormComponent,\n IxInputFieldComponent,\n ValidationResults,\n shouldSuppressInternalValidation,\n} from '../utils/input';\nimport { createMutationObserver } from '../utils/mutation-observer';\nimport { convertToRemString } from '../utils/rwd.util';\nimport { generateUUID } from '../utils/uuid';\nimport { shakeInput } from './input.animation';\n\nexport function createIdIfNotExists(\n element: IxFormComponent,\n idPrefix: string = 'input'\n) {\n return element.hasAttribute('id')\n ? element.getAttribute('id')\n : `${idPrefix}-${generateUUID()}`;\n}\n\nexport function mapValidationResult<T>(\n ref: IxInputFieldComponent<T>,\n result: ValidationResults\n) {\n ref.isInvalid = result.isInvalid || result.isInvalidByRequired;\n ref.isValid = result.isValid;\n ref.isInfo = result.isInfo;\n ref.isWarning = result.isWarning;\n}\n\nexport function checkAllowedKeys<T>(\n comp: IxInputFieldComponent<T>,\n event: KeyboardEvent\n) {\n if (comp.allowedCharactersPattern) {\n const regex = new RegExp(comp.allowedCharactersPattern);\n if (!regex.test(event.key)) {\n event.preventDefault();\n shakeInput(comp.inputRef.current);\n }\n }\n}\n\nexport async function checkInternalValidity<T>(\n comp: IxFormComponent<T>,\n input: HTMLInputElement | HTMLTextAreaElement\n) {\n const validityState = input.validity;\n\n const eventResult = comp.validityStateChange.emit(validityState);\n\n if (eventResult.defaultPrevented) {\n return;\n }\n\n if (!comp.value) {\n return;\n }\n\n const skipValidation = await shouldSuppressInternalValidation(comp);\n if (skipValidation) {\n return;\n }\n\n const { valid } = validityState;\n comp.hostElement.classList.toggle('ix-invalid--validity-invalid', !valid);\n}\n\nexport function onInputBlur<T>(\n comp: IxFormComponent<T>,\n input?: HTMLInputElement | HTMLTextAreaElement | null\n) {\n comp.ixBlur.emit();\n\n if (!input) {\n throw new Error('Input element is not available');\n }\n\n input.setAttribute('data-ix-touched', 'true');\n checkInternalValidity(comp, input);\n}\n\nexport function applyPaddingEnd(\n inputElement: HTMLElement | null,\n width: number,\n options: {\n slotEnd: boolean;\n additionalPaddingRight?: string;\n }\n) {\n if (!inputElement) {\n return;\n }\n\n const remInPixels = 16;\n const padding = convertToRemString(width + remInPixels / 2);\n\n if (options.slotEnd) {\n inputElement.style.paddingRight = `calc(${padding} + ${\n options.additionalPaddingRight ?? '0rem'\n })`;\n } else {\n inputElement.style.paddingLeft = padding;\n }\n}\n\nexport function adjustPaddingForStartAndEnd(\n startElement: HTMLElement | null,\n endElement: HTMLElement | null,\n inputElement: HTMLElement | null\n) {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (startElement) {\n const startBoundingRect = startElement.getBoundingClientRect();\n if (startBoundingRect) {\n applyPaddingEnd(inputElement, startBoundingRect.width, {\n slotEnd: false,\n });\n }\n }\n\n if (endElement) {\n const endBoundingRect = endElement.getBoundingClientRect();\n if (endBoundingRect) {\n applyPaddingEnd(inputElement, endBoundingRect.width, {\n slotEnd: true,\n });\n }\n }\n });\n });\n}\n\nexport function getAriaAttributesForInput(\n component: IxInputFieldComponent\n): A11yAttributes {\n const inputAria: A11yAttributes = {\n 'aria-invalid': `${a11yBoolean(component.isInvalid)}`,\n 'aria-required': `${a11yBoolean(component.required)}`,\n };\n\n if (component.isInvalid && component.invalidText) {\n inputAria['aria-errormessage'] = component.invalidText;\n }\n return inputAria;\n}\n\nexport type DisposableChangesAndVisibilityObservers = () => void;\n\nexport const addDisposableChangesAndVisibilityObservers = (\n element: HTMLElement,\n callback: () => void\n): DisposableChangesAndVisibilityObservers => {\n const intersectionObserver = observeElementUntilVisible(element, callback);\n const mutationObserver = createMutationObserver(callback);\n\n mutationObserver.observe(element, {\n subtree: true,\n attributes: true,\n });\n\n return () => {\n intersectionObserver.disconnect();\n mutationObserver.disconnect();\n };\n};\n\nfunction observeElementUntilVisible(\n hostElement: HTMLElement,\n updateCallback: () => void\n): IntersectionObserver {\n const intersectionObserver = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n updateCallback();\n }\n });\n });\n\n intersectionObserver.observe(hostElement);\n return intersectionObserver;\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAKG,SAAU,eAAe,CAC7B,KAmBE,EAAA;IAEF,QACE,8BACE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,IAAI,EAAE,KAAK,CAAC,YAAY,EACxB,IAAI,EAAE,KAAK,CAAC,YAAY,EACxB,GAAG,EAAE,KAAK,CAAC,WAAW,EACtB,KAAK,EAAE;YACL,YAAY,EAAE,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AC;AAEF,IAAA,OAAO,MAAK;QACV,oBAAoB,CAAC,UAAU,EAAE;QACjC,gBAAgB,CAAC,UAAU,EAAE;AAC/B,KAAC;AACH;AAEA,SAAS,0BAA0B,CACjC,WAAwB,EACxB,cAA0B,EAAA;IAE1B,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,CAAC,OAAO,KAAI;AAChE,QAAA,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;AACxB,YAAA,IAAI,KAAK,CAAC,cAAc,EAAE;AACxB,gBAAA,cAAc,EAAE;;AAEpB,SAAC,CAAC;AACJ,KAAC,CAAC;AAEF,IAAA,oBAAoB,CAAC,OAAO,CAAC,WAAW,CAAC;AACzC,IAAA,OAAO,oBAAoB;AAC7B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-BxQZld1q.js","sources":["src/components/utils/delegate.ts","src/components/utils/modal/message.ts","src/components/utils/modal/modal.ts"],"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\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\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 iconError,\n iconInfo,\n iconQuestion,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\nimport { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\nimport { ModalConfig } from './modal';\n\nexport type MessageConfig<T> = Omit<\n ModalConfig<T, unknown>,\n 'content' | 'title'\n> &\n MessageContent;\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions: MessageAction[] = [];\n\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n } as MessageAction,\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n } as MessageAction,\n ];\n}\n\nexport type MessageAction = {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n};\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: MessageAction[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageConfig<T>) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n } else if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef =\n await getCoreDelegate().attachView<HTMLIxModalElement>(dialog);\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconInfo,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconWarning,\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconError,\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconSuccess,\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconQuestion,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\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 { IxModalSize } from '../../modal/modal';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement | undefined;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n await dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n requestAnimationFrame(() => {\n const autofocusElement = dialogRef.querySelector(\n '[autofocus],[auto-focus]'\n );\n\n if (autofocusElement) {\n (autofocusElement as HTMLIxButtonElement).focus();\n }\n });\n\n return {\n ht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O,CAAC;;AAG3E,IAAA,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC;AACpC,IAAA,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC;AAEhC,IAAA,MAAM,SAAS,CAAC,SAAS,EAAE;IAC3B,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAe,KAAI;AAC1E,QAAA,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;AACpB,QAAA,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;AACtC,KAAC,CAAC;IAEF,SAAS,CAAC,gBAAgB,CACxB,eAAe,EACf,OAAO,EAAE,MAAM,EAAe,KAAI;AAChC,QAAA,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;AACtB,QAAA,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;AACtC,KAAC,CACF;IAED,qBAAqB,CAAC,MAAK;QACzB,MAAM,gBAAgB,GAAG,SAAS,CAAC,aAAa,CAC9C,0BAA0B,CAC3B;QAED,IAAI,gBAAgB,EAAE;YACnB,gBAAwC,CAAC,KAAK,EAAE;;AAErD,KAAC,CAAC;IAEF,OAAO;AACL,QAAA,WAAW,EAAE,SAAS;QACtB,OAAO;QACP,SAAS;KACV;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"p-BxQZld1q.js","sources":["src/components/utils/delegate.ts","src/components/utils/modal/message.ts","src/components/utils/modal/modal.ts"],"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\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\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 iconError,\n iconInfo,\n iconQuestion,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\nimport { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\nimport { ModalConfig } from './modal';\n\nexport type MessageConfig<T> = Omit<\n ModalConfig<T, unknown>,\n 'content' | 'title'\n> &\n MessageContent;\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions: MessageAction[] = [];\n\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n } as MessageAction,\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n } as MessageAction,\n ];\n}\n\nexport type MessageAction = {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n};\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: MessageAction[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageConfig<T>) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n } else if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef =\n await getCoreDelegate().attachView<HTMLIxModalElement>(dialog);\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconInfo,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconWarning,\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconError,\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconSuccess,\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: iconQuestion,\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\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 type { IxModalSize } from '../../modal/modal.types';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement | undefined;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n await dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n requestAnimationFrame(() => {\n const autofocusElement = dialogRef.querySelector(\n '[autofocus],[auto-focus]'\n );\n\n if (autofocusElement) {\n (autofocusElement as HTMLIxButtonElement).focus();\n }\n });\n\n return {\n htmlElement: dialogRef,\n onClose,\n onDismiss,\n };\n}\n"],"names":["setA11yAttributes"],"mappings":";;;AAAA;;;;;;;AAOG;AAWH,MAAM,wBAAwB,CAAA;AAC5B,IAAA,MAAM,UAAU,CACd,IAAS,EACT,MAAuB,EAAA;;AAEvB,QAAA,MAAM,eAAe,GAAG,CAAA,EAAA,GAAA,MAAM,aAAN,MAAM,KAAA,MAAA,GAAA,MAAA,GAAN,MAAM,CAAE,aAAa,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,QAAQ,CAAC,IAAI;AAC9D,QAAA,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC;AACjC,QAAA,OAAO,IAAI;;IAGb,MAAM,UAAU,CAAC,IAAS,EAAA;QACxB,IAAI,CAAC,MAAM,EAAE;;AAEhB;AAED,MAAM,YAAY,GAAG,IAAI,wBAAwB,EAAE;AACnD,IAAI,eAAe,GAAsB,YAAY;AAE/C,SAAU,yBAAyB,CAAC,QAA2B,EAAA;IACnE,eAAe,GAAG,QAAQ;AAC5B;AAEO,MAAM,eAAe,GAAG,MAAK;AAClC,IAAA,OAAO,eAAe;AACxB;MAEa,eAAe,GAAG,MAAM;;AC5CrC;;;;;;;AAOG;AAmBH,SAASA,mBAAiB,CAAC,OAAoB,EAAE,MAAsB,EAAA;AACrE,IAAA,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe;AAC9C,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc;AAE5C,I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getAssociatedFormElement&&typeof i.getAssociatedFormElement==="function"){const n=await i.getAssociatedFormElement();if(!n){return false}return n.noValidate}return false}function e(i,n,t){const e=new MutationObserver(n);e.observe(i,{subtree:t===null||t===void 0?void 0:t.includeChildren,childList:t===null||t===void 0?void 0:t.includeChildren,attributes:true,attributeFilter:["class"]});return{destroy(){e.disconnect()}}}function o(i,n,t){return i.classList.contains(`${n}`)||(t?!!i.querySelector(`.${n}`):false)}function a(i,n=false){return{isInvalid:o(i,"ix-invalid",n),isInvalidByRequired:o(i,"ix-invalid--required",n),isValid:o(i,"ix-valid",n),isInfo:o(i,"ix-info",n),isWarning:o(i,"ix-warning",n)}}function s(o){return(s,l)=>{let u;let r;const{componentWillLoad:c,disconnectedCallback:d,connectedCallback:f}=s;s.connectedCallback=function(){const e=i(this);u=async()=>{const i=await t(e);if(i){return}if(e.hasValidValue&&typeof e.hasValidValue==="function"){const i=await e.hasValidValue();const t=await n(e);if(e.required){e.classList.toggle("ix-invalid--required",!i&&t)}else{e.classList.remove("ix-invalid--required")}}if(e.getValidityState&&typeof e.getValidityState==="function"){const i=await e.getValidityState();e.classList.toggle(`ix-invalid--validity-patternMismatch`,i.patternMismatch)}};e.addEventListener("checkedChange",u);e.addEventListener("valueChange",u);e.addEventListener("ixBlur",u);setTimeout(u);return f===null||f===void 0?void 0:f.call(this)};s.componentWillLoad=function(){const n=i(this);r=e(n,(()=>{const i=a(n,o===null||o===void 0?void 0:o.includeChildren);s[l].call(this,i)}),o);const t=a(n,o===null||o===void 0?void 0:o.includeChildren);s[l].call(this,t);return c===null||c===void 0?void 0:c.call(this)};s.disconnectedCallback=function(){const n=i(this);if(n&&r){r.destroy();r=null}if(n&&u){n.removeEventListener("checkedChange",u);n.removeEventListener("valueChange",u);n.removeEventListener("ixBlur",u);u=null}return d===null||d===void 0?void 0:d.call(this)}}}export{s as H,a,e as c,t as s};
|
|
2
|
+
//# sourceMappingURL=p-CFsAnuUU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-CFsAnuUU.js","sources":["src/components/utils/input/validation.ts"],"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 */\nimport { getElement } from '@stencil/core';\nimport { HTMLIxFormComponentElement, IxFormComponent } from '.';\nimport { IxComponent } from '../internal';\n\nexport type ClassMutationObserver = {\n destroy: () => void;\n};\n\nexport async function isTouched<T>(host: IxFormComponent<T>) {\n if (typeof host.isTouched === 'function') {\n return host.isTouched();\n }\n}\n\nexport async function shouldSuppressInternalValidation<T>(\n host: IxFormComponent<T>\n) {\n if (\n host.getAssociatedFormElement &&\n typeof host.getAssociatedFormElement === 'function'\n ) {\n const form = await host.getAssociatedFormElement();\n\n if (!form) {\n return false;\n }\n\n return form.noValidate;\n }\n\n return false;\n}\n\nexport function createClassMutationObserver(\n element: HTMLElement,\n callback: () => void,\n options?: {\n includeChildren?: boolean;\n }\n): ClassMutationObserver {\n const observer = new MutationObserver(callback);\n observer.observe(element, {\n subtree: options?.includeChildren,\n childList: options?.includeChildren,\n attributes: true,\n attributeFilter: ['class'],\n });\n\n return {\n destroy() {\n observer.disconnect();\n },\n };\n}\n\nexport type ValidationResultProperty =\n | 'isInvalid'\n | 'isInvalidByRequired'\n | 'isValid'\n | 'isInfo'\n | 'isWarning';\nexport type ValidationResults = Record<ValidationResultProperty, boolean>;\n\nfunction containsClass(\n hostElement: HTMLIxFormComponentElement<unknown>,\n className: string,\n includeChildren: boolean\n) {\n return (\n hostElement.classList.contains(`${className}`) ||\n (includeChildren ? !!hostElement.querySelector(`.${className}`) : false)\n );\n}\n\nexport function checkFieldClasses(\n hostElement: HTMLIxFormComponentElement<unknown>,\n includeChildren = false\n): ValidationResults {\n return {\n isInvalid: containsClass(hostElement, 'ix-invalid', includeChildren),\n isInvalidByRequired: containsClass(\n hostElement,\n 'ix-invalid--required',\n includeChildren\n ),\n isValid: containsClass(hostElement, 'ix-valid', includeChildren),\n isInfo: containsClass(hostElement, 'ix-info', includeChildren),\n isWarning: containsClass(hostElement, 'ix-warning', includeChildren),\n };\n}\n\nexport function HookValidationLifecycle(options?: {\n includeChildren?: boolean;\n}) {\n return (proto: IxComponent, methodName: string) => {\n let checkIfRequiredFunction: (() => Promise<void>) | null;\n let classMutationObserver: ClassMutationObserver | null;\n const { componentWillLoad, disconnectedCallback, connectedCallback } =\n proto;\n\n proto.connectedCallback = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n\n checkIfRequiredFunction = async () => {\n const skipValidation = await shouldSuppressInternalValidation(host);\n if (skipValidation) {\n return;\n }\n\n if (host.hasValidValue && typeof host.hasValidValue === 'function') {\n const hasValue = await host.hasValidValue();\n const touched = await isTouched(host);\n\n if (host.required) {\n host.classList.toggle('ix-invalid--required', !hasValue && touched);\n } else {\n host.classList.remove('ix-invalid--required');\n }\n }\n\n if (\n host.getValidityState &&\n typeof host.getValidityState === 'function'\n ) {\n const validityState = await host.getValidityState();\n\n host.classList.toggle(\n `ix-invalid--validity-patternMismatch`,\n validityState.patternMismatch\n );\n }\n };\n\n host.addEventListener('checkedChange', checkIfRequiredFunction);\n host.addEventListener('valueChange', checkIfRequiredFunction);\n host.addEventListener('ixBlur', checkIfRequiredFunction);\n setTimeout(checkIfRequiredFunction);\n return connectedCallback?.call(this);\n };\n\n proto.componentWillLoad = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n classMutationObserver = createClassMutationObserver(\n host,\n () => {\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n },\n options\n );\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n return componentWillLoad?.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this);\n\n if (host && classMutationObserver) {\n classMutationObserver.destroy();\n classMutationObserver = null;\n }\n\n if (host && checkIfRequiredFunction) {\n host.removeEventListener('checkedChange', checkIfRequiredFunction);\n host.removeEventListener('valueChange', checkIfRequiredFunction);\n host.removeEventListener('ixBlur', checkIfRequiredFunction);\n checkIfRequiredFunction = null;\n }\n\n return disconnectedCallback?.call(this);\n };\n };\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AASI,eAAe,SAAS,CAAI,IAAwB,EAAA;AACzD,IAAA,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,UAAU,EAAE;AACxC,QAAA,OAAO,IAAI,CAAC,SAAS,EAAE;;AAE3B;AAEO,eAAe,gCAAgC,CACpD,IAAwB,EAAA;IAExB,IACE,IAAI,CAAC,wBAAwB;AAC7B,QAAA,OAAO,IAAI,CAAC,wBAAwB,KAAK,UAAU,EACnD;AACA,QAAA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE;QAElD,IAAI,CAAC,IAAI,EAAE;AACT,YAAA,OAAO,KAAK;;QAGd,OAAO,IAAI,CAAC,UAAU;;AAGxB,IAAA,OAAO,KAAK;AACd;SAEgB,2BAA2B,CACzC,OAAoB,EACpB,QAAoB,EACpB,OAEC,EAAA;AAED,IAAA,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC;AAC/C,IAAA,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE;AACxB,QAAA,OAAO,EAAE,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,eAAe;AACjC,QAAA,SAAS,EAAE,OAAO,KAAA,IAAA,IAAP,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,eAAe;AACnC,QAAA,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,CAAC,OAAO,CAAC;AAC3B,KAAA,CAAC;IAEF,OAAO;QACL,OAAO,GAAA;YACL,QAAQ,CAAC,UAAU,EAAE;SACtB;KACF;AACH;AAUA,SAAS,aAAa,CACpB,WAAgD,EAChD,SAA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E,MAAM,CAAC;aACrC,EACD,OAAO,CACR;AACD,YAAA,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,EAAE,OAAO,KAAP,IAAA,IAAA,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAE,eAAe,CAAC;YAChE,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;YACpC,OAAO,iBAAiB,KAAjB,IAAA,IAAA,iBAAiB,KAAjB,MAAA,GAAA,MAAA,GAAA,iBAAiB,CAAE,IAAI,CAAC,IAAI,CAAC;AACtC,SAAC;QAED,KAAK,CAAC,oBAAoB,GAAG,YAAA;AAC3B,YAAA,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;AAE7B,YAAA,IAAI,IAAI,IAAI,qBAAqB,EAAE;gBACjC,qBAAqB,CAAC,OAAO,EAAE;gBAC/B,qBAAqB,GAAG,IAAI;;AAG9B,YAAA,IAAI,IAAI,IAAI,uBAAuB,EAAE;AACnC,gBAAA,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE,uBAAuB,CAAC;AAClE,gBAAA,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE,uBAAuB,CAAC;AAChE,gBAAA,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,uBAAuB,CAAC;gBAC3D,uBAAuB,GAAG,IAAI;;YAGhC,OAAO,oBAAoB,KAApB,IAAA,IAAA,oBAAoB,KAApB,MAAA,GAAA,MAAA,GAAA,oBAAoB,CAAE,IAAI,CAAC,IAAI,CAAC;AACzC,SAAC;AACH,KAAC;AACH;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./p-DJsXFBNm.js";const n={target:"window",defaultEnabled:true};function e(t,e={}){const i=Object.assign(Object.assign({},n),e);let o;const s=t=>{o(t)};const c={on:t=>{o=t},isEnabled:i.defaultEnabled,enable:n=>{c.isEnabled=n;if(n){addEventListener(t,s)}else{removeEventListener(t,s)}},destroy:()=>{c.enable(false)}};c.enable(!!i.defaultEnabled);return c}function i(n,i){return(o,s)=>{const{componentWillLoad:c,componentWillRender:r,disconnectedCallback:_}=o;if(i){o.componentWillRender=function(){var n;const e=t(this);(n=e[`__ix__${s}`])===null||n===void 0?void 0:n.enable(i(this));return r&&r.call(this)}}o.componentWillLoad=function(){const i=e(n);const o=t(this);const r=this[s];o[`__ix__${s}`]=i;i.on(r.bind(this));return c&&c.call(this)};o.disconnectedCallback=function(){var n;const e=t(this);if(e&&e[`__ix__${s}`]){(n=e[`__ix__${s}`])===null||n===void 0?void 0:n.destroy();e[`__ix__${s}`]=null}return _&&_.call(this)}}}export{i as O};
|
|
2
|
+
//# sourceMappingURL=p-CpY7qbN7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-CpY7qbN7.js","sources":["src/components/utils/listener.ts"],"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\nimport { getElement } from '@stencil/core';\nimport { HTMLStencilElement } from '@stencil/core/internal';\n\nexport type ListenerOptions = {\n target?: 'window';\n defaultEnabled?: boolean;\n};\n\ntype HostListener = {\n on: (onEventCallback: any) => void;\n isEnabled: boolean | undefined;\n enable: (state: boolean) => void;\n destroy: () => void;\n};\n\nconst defaultOptions: ListenerOptions = {\n target: 'window',\n defaultEnabled: true,\n};\n\nexport function createListener(\n event: string,\n options: ListenerOptions = {}\n): HostListener {\n const opts = {\n ...defaultOptions,\n ...options,\n };\n\n let callback: any;\n const onEvent = (event: Event) => {\n callback(event);\n };\n\n const resultObject = {\n on: (onEventCallback: any) => {\n callback = onEventCallback;\n },\n\n isEnabled: opts.defaultEnabled,\n\n enable: (state: boolean) => {\n resultObject.isEnabled = state;\n\n if (state) {\n addEventListener(event, onEvent);\n } else {\n removeEventListener(event, onEvent);\n }\n },\n\n destroy: () => {\n resultObject.enable(false);\n },\n };\n\n resultObject.enable(!!opts.defaultEnabled);\n return resultObject;\n}\n\ntype HTMLStencilElementWithListener = HTMLStencilElement & {\n [K in `__ix__${string}`]?: HostListener | null;\n};\n\nexport function OnListener<T>(event: string, fnExp?: (self: T) => boolean) {\n return (proto: any, methodName: string) => {\n const { componentWillLoad, componentWillRender, disconnectedCallback } =\n proto;\n\n if (fnExp) {\n proto.componentWillRender = function () {\n const host = getElement(this) as HTMLStencilElementWithListener;\n host[`__ix__${methodName}`]?.enable(fnExp(this));\n return componentWillRender && componentWillRender.call(this);\n };\n }\n\n proto.componentWillLoad = function () {\n const listener = createListener(event);\n const host = getElement(this) as HTMLStencilElementWithListener;\n const method = this[methodName];\n\n host[`__ix__${methodName}`] = listener;\n\n listener.on(method.bind(this));\n return componentWillLoad && componentWillLoad.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this) as HTMLStencilElementWithListener;\n\n if (host && host[`__ix__${methodName}`]) {\n host[`__ix__${methodName}`]?.destroy();\n host[`__ix__${methodName}`] = null;\n }\n\n return disconnectedCallback && disconnectedCallback.call(this);\n };\n };\n}\n"],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAiBH,MAAM,cAAc,GAAoB;AACtC,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,cAAc,EAAE,IAAI;CACrB;SAEe,cAAc,CAC5B,KAAa,EACb,UAA2B,EAAE,EAAA;AAE7B,IAAA,MAAM,IAAI,GACL,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,cAAc,CACd,EAAA,OAAO,CACX;AAED,IAAA,IAAI,QAAa;AACjB,IAAA,MAAM,OAAO,GAAG,CAAC,KAAY,KAAI;QAC/B,QAAQ,CAAC,KAAK,CAAC;AACjB,KAAC;AAED,IAAA,MAAM,YAAY,GAAG;AACnB,QAAA,EAAE,EAAE,CAAC,eAAoB,KAAI;YAC3B,QAAQ,GAAG,eAAe;SAC3B;Q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AC,CAAS,MAAA,EAAA,UAAU,EAAE,CAAC,GAAG,QAAQ;YAEtC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,OAAO,iBAAiB,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;AAC1D,SAAC;QAED,KAAK,CAAC,oBAAoB,GAAG,YAAA;;AAC3B,YAAA,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAmC;YAE/D,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,UAAU,CAAA,CAAE,CAAC,EAAE;gBACvC,CAAA,EAAA,GAAA,IAAI,CAAC,CAAS,MAAA,EAAA,UAAU,EAAE,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,OAAO,EAAE;AACtC,gBAAA,IAAI,CAAC,CAAS,MAAA,EAAA,UAAU,EAAE,CAAC,GAAG,IAAI;;YAGpC,OAAO,oBAAoB,IAAI,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC;AAChE,SAAC;AACH,KAAC;AACH;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,f as o,h as s,a as i,H as n}from"./p-DJsXFBNm.js";import{p as a}from"./p-DLTnniMb.js";const r=".text-xs{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a{color:var(--theme-color-primary)}:host{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}: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 .settings-header{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}:host .settings-header h2{color:var(--theme-nav-overlay-header--color);margin-bottom:1rem}:host ix-tabs{margin-bottom:1.5rem}:host .settings-tabs{margin-bottom:1.5rem}";const l=class{constructor(o){t(this,o);this.tabChange=e(this,"tabChange",7);this.close=e(this,"close",7);this.label="Settings";this.show=false}updateTab(t){h(this,t)}componentWillLoad(){f(this)}componentDidLoad(){o(this.el)}render(){return s(g,{key:"a59dd5a81b91ff4ae7f516cb192700bffaee3f84",context:this})}get el(){return i(this)}static get watchers(){return{activeTabLabel:["updateTab"]}}};l.style=r;function m(t){return Array.from(t.el.querySelectorAll(t instanceof l?"ix-menu-settings-item":"ix-menu-about-item"))}function h(t,e){const{defaultPrevented:o}=t.tabChange.emit(e);if(o){return}t.activeTabLabel=e;t.items.forEach((e=>{e.style.display="none";if(e.label===t.activeTabLabel){e.style.display="block"}}))}function f(t){t.items=m(t);if(t.items.length){const e=t.activeTabLabel||t.items[0].label;if(e){h(t,e)}}t.items.forEach((e=>{e.addEventListener("labelChange",(e=>{t.items=m(t);if(e.detail.oldLabel===t.activeTabLabel){t.activeTabLabel=e.detail.newLabel}}))}))}const c=t=>t.items.map((({label:e})=>s("ix-tab-item",{selected:e===t.activeTabLabel,onTabClick:t=>t.preventDefault(),onClick:()=>{if(e){h(t,e)}}},e)));const g=({context:t})=>{const e=t.items.findIndex((e=>e.label===t.activeTabLabel));return s(n,{slot:t instanceof l?"ix-menu-settings":"ix-menu-about",class:{show:t.show}},s("div",{class:t instanceof l?"settings-header":"about-header"},s("h2",{class:"text-h2"},t.label),s("ix-icon-button",{ghost:true,size:"24",icon:a,onClick:e=>t.close.emit({name:t instanceof l?"ix-menu-settings":"ix-menu-about",nativeEvent:e})})),s("ix-tabs",{selected:e!==-1?e:0},c(t)),s("slot",null))};export{g as M,l as a,f as i,h as s};
|
|
2
|
+
//# sourceMappingURL=p-Cpl-a_ti.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-Cpl-a_ti.js","sources":["src/components/menu-settings/menu-settings.scss?tag=ix-menu-settings&encapsulation=shadow","src/components/menu-settings/menu-settings.tsx","src/components/utils/menu-tabs/menu-tabs-utils.ts","src/components/utils/menu-tabs/menu-tabs-fc.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/fonts';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n background-color: var(--theme-nav-overlay--background);\n padding: $medium-space $default-space $default-space $x-large-space;\n flex-grow: 1;\n position: absolute;\n width: 100%;\n height: 100%;\n\n .settings-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n height: $x-large-space;\n margin-bottom: $small-space;\n\n h2 {\n color: var(--theme-nav-overlay-header--color);\n margin-bottom: 1rem;\n }\n }\n\n ix-tabs {\n margin-bottom: 1.5rem;\n }\n\n .settings-tabs {\n margin-bottom: $large-space;\n }\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 Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { MenuTabs } from '../utils/menu-tabs/menu-tabs-fc';\nimport {\n CustomCloseEvent,\n initialize,\n setTab,\n} from '../utils/menu-tabs/menu-tabs-utils';\n\n@Component({\n tag: 'ix-menu-settings',\n styleUrl: 'menu-settings.scss',\n shadow: true,\n})\nexport class MenuSettings {\n @Element() el!: HTMLIxMenuSettingsElement;\n\n /**\n * Active tab\n */\n // eslint-disable-next-line @stencil-community/strict-mutable\n @Prop({ mutable: true }) activeTabLabel?: string;\n\n /**\n * Label of first tab\n */\n @Prop() label = 'Settings';\n\n /** @internal */\n @Prop() show = false;\n\n /**\n * Active tab changed\n * @since 3.0.0\n */\n @Event() tabChange!: EventEmitter<string>;\n\n /**\n * Popover closed\n */\n @Event() close!: EventEmitter<CustomCloseEvent>;\n\n @State() items!: HTMLIxMenuSettingsItemElement[];\n\n @Watch('activeTabLabel')\n updateTab(label: string) {\n setTab(this, label);\n }\n\n componentWillLoad() {\n initialize(this);\n }\n\n componentDidLoad() {\n forceUpdate(this.el);\n }\n\n render() {\n return <MenuTabs context={this} />;\n }\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 { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\n\nfunction getItems(\n context: MenuSettings | MenuAbout\n): HTMLIxMenuSettingsItemElement[] | HTMLIxMenuAboutItemElement[] {\n return Array.from(\n context.el.querySelectorAll(\n context instanceof MenuSettings\n ? 'ix-menu-settings-item'\n : 'ix-menu-about-item'\n )\n );\n}\n\nexport function setTab(context: MenuSettings | MenuAbout, label: string) {\n const { defaultPrevented } = context.tabChange.emit(label);\n\n if (defaultPrevented) {\n return;\n }\n\n context.activeTabLabel = label;\n context.items.forEach((i) => {\n i.style.display = 'none';\n if (i.label === context.activeTabLabel) {\n i.style.display = 'block';\n }\n });\n}\n\nexport function initialize(context: MenuSettings | MenuAbout) {\n context.items = getItems(context);\n\n if (context.items.length) {\n const selectedLabel = context.activeTabLabel || context.items[0].label;\n if (selectedLabel) {\n setTab(context, selectedLabel);\n }\n }\n\n context.items.forEach((item) => {\n item.addEventListener('labelChange', (e: CustomEvent) => {\n context.items = getItems(context);\n\n if (e.detail.oldLabel === context.activeTabLabel) {\n context.activeTabLabel = e.detail.newLabel;\n }\n });\n });\n}\n\nexport interface CustomLabelChangeEvent {\n name: string;\n oldLabel: string;\n newLabel: string;\n}\n\nexport interface CustomCloseEvent {\n nativeEvent: MouseEvent;\n name: string;\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 { FunctionalComponent, h, Host } from '@stencil/core';\nimport { setTab } from './menu-tabs-utils';\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\nimport { iconClose } from '@siemens/ix-icons/icons';\n\ninterface MenuTabsProps {\n context: MenuSettings | MenuAbout;\n}\n\nconst getTabItems = (context: MenuSettings | MenuAbout) => {\n return context.items.map(({ label }) => {\n return (\n <ix-tab-item\n selected={label === context.activeTabLabel}\n onTabClick={(e) => e.preventDefault()}\n onClick={() => {\n if (label) {\n setTab(context, label);\n }\n }}\n >\n {label}\n </ix-tab-item>\n );\n });\n};\n\nexport const MenuTabs: FunctionalComponent<MenuTabsProps> = ({ context }) => {\n const selectedIndex = context.items.findIndex(\n (item) => item.label === context.activeTabLabel\n );\n return (\n <Host\n slot={\n context instanceof MenuSettings ? 'ix-menu-settings' : 'ix-menu-about'\n }\n class={{\n show: context.show,\n }}\n >\n <div\n class={\n context instanceof MenuSettings ? 'settings-header' : 'about-header'\n }\n >\n <h2 class=\"text-h2\">{context.label}</h2>\n <ix-icon-button\n ghost\n size=\"24\"\n icon={iconClose}\n onClick={(e) =>\n context.close.emit({\n name:\n context instanceof MenuSettings\n ? 'ix-menu-settings'\n : 'ix-menu-about',\n nativeEvent: e,\n })\n }\n ></ix-icon-button>\n </div>\n <ix-tabs selected={selectedIndex !== -1 ? selectedIndex : 0}>\n {getTabItems(context)}\n </ix-tabs>\n <slot></slot>\n </Host>\n );\n};\n"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG,sjIAAsjI;;MCgCjkI,YAAY,GAAA,MAAA;AALzB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAcE;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,UAAU;;AAGlB,QAAA,IAAI,CAAA,IAAA,GAAG,KAAK;AA+BrB;AAfC,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;;IAGrB,iBAAiB,GAAA;QACf,UAAU,CAAC,IAAI,CAAC;;IAGlB,gBAAgB,GAAA;AACd,QAAA,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;;IAGtB,MAAM,GAAA;AACJ,QAAA,OAAO,EAAC,QAAQ,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,OAAO,EAAE,IAAI,GAAI;;;;;;;;;AC5EtC;;;;;;;AAOG;AAKH,SAAS,QAAQ,CACf,OAAiC,EAAA;AAEjC,IAAA,OAAO,KAAK,CAAC,IAAI,CACf,OAAO,CAAC,EAAE,CAAC,gBAAgB,CACzB,OAAO,YAAY;AACjB,UAAE;AACF,UAAE,oBAAoB,CACzB,CACF;AACH;AAEgB,SAAA,MAAM,CAAC,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AQ,EAAE,aAAa,KAAK,EAAE,GAAG,aAAa,GAAG,CAAC,EAAA,EACxD,WAAW,CAAC,OAAO,CAAC,CACb;QACV,CAAa,CAAA,MAAA,EAAA,IAAA,CAAA,CACR;AAEX;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{h as t}from"./p-DJsXFBNm.js";import{i,a as e,b as n,c as o}from"./p-DLTnniMb.js";function a({invalidText:t,warningText:i,infoText:e,validText:n,helperText:o}){return t||i||e||n||o}function s({isInvalid:a,invalidText:s,isWarning:r,warningText:x,isInfo:l,infoText:c,isValid:d,validText:f,helperText:p}){if(a&&s!==undefined){return t("ix-typography",{textColor:"alarm",class:"bottom-text"},t("ix-icon",{class:"text-icon invalid",name:i,size:"16"}),s)}if(r&&x!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon warning",name:e,size:"16"}),x)}if(l&&c!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon info",name:n,size:"16"}),c)}if(d&&f!==undefined){return t("ix-typography",{textColor:"std",class:"bottom-text"},t("ix-icon",{class:"text-icon valid",name:o,size:"16"}),f)}return p&&t("ix-typography",{class:"bottom-text",textColor:"soft"},p)}export{s as H,a as h};
|
|
2
|
+
//# sourceMappingURL=p-CthRnoDv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-CthRnoDv.js","sources":["src/components/field-wrapper/helper-text-util.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 */\nimport { h } from '@stencil/core';\nimport {\n iconError,\n iconInfo,\n iconSuccess,\n iconWarning,\n} from '@siemens/ix-icons/icons';\n\nexport function hasAnyText({\n invalidText,\n warningText,\n infoText,\n validText,\n helperText,\n}: {\n invalidText?: string;\n warningText?: string;\n infoText?: string;\n validText?: string;\n helperText?: string;\n}) {\n return invalidText || warningText || infoText || validText || helperText;\n}\n\nexport function HelperText({\n isInvalid,\n invalidText,\n isWarning,\n warningText,\n isInfo,\n infoText,\n isValid,\n validText,\n helperText,\n}: {\n isInvalid: boolean;\n invalidText?: string;\n isWarning: boolean;\n warningText?: string;\n isInfo: boolean;\n infoText?: string;\n isValid: boolean;\n validText?: string;\n helperText?: string;\n}) {\n if (isInvalid && invalidText !== undefined) {\n return (\n <ix-typography textColor=\"alarm\" class=\"bottom-text\">\n <ix-icon class=\"text-icon invalid\" name={iconError} size=\"16\"></ix-icon>\n\n {invalidText}\n </ix-typography>\n );\n }\n\n if (isWarning && warningText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon\n class=\"text-icon warning\"\n name={iconWarning}\n size=\"16\"\n ></ix-icon>\n {warningText}\n </ix-typography>\n );\n }\n\n if (isInfo && infoText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon class=\"text-icon info\" name={iconInfo} size=\"16\"></ix-icon>\n {infoText}\n </ix-typography>\n );\n }\n\n if (isValid && validText !== undefined) {\n return (\n <ix-typography textColor=\"std\" class=\"bottom-text\">\n <ix-icon class=\"text-icon valid\" name={iconSuccess} size=\"16\"></ix-icon>\n {validText}\n </ix-typography>\n );\n }\n\n return (\n helperText && (\n <ix-typography class=\"bottom-text\" textColor=\"soft\">\n {helperText}\n </ix-typography>\n )\n );\n}\n"],"names":["HelperText"],"mappings":";;;AAAA;;;;;;;AAOG;AASa,SAAA,UAAU,CAAC,EACzB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,GAOX,EAAA;IACC,OAAO,WAAW,IAAI,WAAW,IAAI,QAAQ,IAAI,SAAS,IAAI,UAAU;AAC1E;AAEM,SAAUA,YAAU,CAAC,EACzB,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,EACP,S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
+
const e="siemens-ix";const t={hydratedSelectorName:"hydrated",lazyLoad:true,updatable:true};function n(e){const t={};if(e.ael){t.ael=e.ael}if(e.rel){t.rel=e.rel}if(e.ce){t.ce=e.ce}L(t)}async function r(e){n(e||{})}const s=r;const i="";var o=Object.defineProperty;var l=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:true})};var f="http://www.w3.org/2000/svg";var a="http://www.w3.org/1999/xhtml";var c=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(c||{});var u=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(u||{});var v="type";var d="value";var p="serialized:";var h=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var $=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var y=(e,t)=>{const n={i:0,$hostElement$:e,o:t,l:new Map};{n.u=new Promise((e=>n.v=e))}{n.p=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var m=(e,t)=>t in e;var b=(e,t)=>(0,console.error)(e,t);var w=new Map;var g=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const s=e.m;if(!s){return void 0}const i=w.get(s);if(i){return i[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${s}.entry.js${""}`).then((e=>{{w.set(s,e)}return e[r]}),(e=>{b(e,t.$hostElement$)}))};var S=new Map;var j="r";var O="o";var k="s";var x="t";var C="c";var E="s-id";var I="sty-id";var N="c-id";var M="{visibility:hidden}.hydrated{visibility:inherit}";var R="slot-fb{display:contents}slot-fb[hidden]{display:none}";var P="http://www.w3.org/1999/xlink";var U=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var A=typeof window!=="undefined"?window:{};var D={i:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var L=e=>{Object.assign(D,e)};var W=(()=>{var e;let t=false;try{(e=A.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var F=e=>Promise.resolve(e);var V=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var _=false;var z=[];var H=[];var T=(e,t)=>n=>{e.push(n);if(!_){_=true;if(t&&D.i&4){q(Y)}else{D.raf(Y)}}};var J=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){b(e)}}e.length=0};var Y=()=>{J(z);{J(H);if(_=z.length>0){D.raf(Y)}}};var q=e=>F().then(e);var B=T(z,false);var G=T(H,true);var K=e=>{e=typeof e;return e==="object"||e==="function"};function Q(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var X=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var Z=class e{static fromLocalValue(t){const n=t[v];const r=d in t?t[d]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,s]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const i=e.fromLocalValue(s);t.set(r,i)}return t;case"object":const s={};for(const[t,n]of r){s[t]=e.fromLocalValue(n)}return s;case"regexp":const{pattern:i,flags:o}=r;return new RegExp(i,o);case"set":const l=new Set;for(const t of r){l.add(e.fromLocalValue(t))}return l;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(v)){return false}const t=e[v];const n=Object.values({...c,...u}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(d)}return true}};var ee={};l(ee,{err:()=>ne,map:()=>re,ok:()=>te,unwrap:()=>se,unwrapErr:()=>ie});var te=e=>({isOk:true,isErr:false,value:e});var ne=e=>({isOk:false,isErr:true,value:e});function re(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>te(e)))}else{return te(n)}}if(e.isErr){const t=e.value;return ne(t)}throw"should never get here"}var se=e=>{if(e.isOk){return e.value}else{throw e.value}};var ie=e=>{if(e.isErr){return e.value}else{throw e.value}};function oe(e){if(typeof e!=="string"||!e.startsWith(p)){return e}return Z.fromLocalValue(JSON.parse(atob(e.slice(p.length))))}function le(e){const t=this.attachShadow({mode:"open"});if(V){const e=new CSSStyleSheet;e.replaceSync(i);t.adoptedStyleSheets.push(e)}}var fe=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};var ae=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const s=document.createTextNode("");s["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const i=t["s-cr"].parentNode;const o=ve(i,"appendChild");if(typeof r!=="undefined"){s["s-oo"]=r;const e=ve(i,"childNodes");const t=[s];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>o.call(i,e)))}else{o.call(i,s)}e["s-ol"]=s;e["s-sh"]=t["s-hn"]};var ce=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ue(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const s=this["s-cr"].parentElement;const i=s.__childNodes?s.childNodes:fe(s.childNodes);i.forEach((e=>{if(r===ce(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function ve(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var de=(e,t="")=>{{return()=>{}}};var pe=(e,t)=>{{return()=>{}}};var he=(e,t,...n)=>{let r=null;let s=null;let i=false;let o=false;const l=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(i=typeof e!=="function"&&!K(r)){r=String(r)}if(i&&o){l[l.length-1].j+=r}else{l.push(i?$e(null,r):r)}o=i}}};f(n);if(t){if(t.key){s=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,l,be)}const a=$e(e,null);a.O=t;if(l.length>0){a.k=l}{a.C=s}return a};var $e=(e,t)=>{const n={i:0,I:e,j:t,N:null,k:null};{n.O=null}{n.C=null}return n};var ye={};var me=e=>e&&e.I===ye;var be={forEach:(e,t)=>e.map(we).forEach(t),map:(e,t)=>e.map(we).map(t).map(ge)};var we=e=>({vattrs:e.O,vchildren:e.k,vkey:e.C,vname:e.M,vtag:e.I,vtext:e.j});var ge=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return he(e.vtag,t,...e.vchildren||[])}const t=$e(e.vtag,e.vtext);t.O=e.vattrs;t.k=e.vchildren;t.C=e.vkey;t.M=e.vname;return t};var Se=(e,t,n,r)=>{var s;const i=de("hydrateClient",t);const o=e.shadowRoot;const l=[];const f=[];const a=[];const c=o?[]:null;const u=$e(t,null);u.N=e;const v=Object.entries(((s=r.o)==null?void 0:s.R)||{});v.forEach((([t,[n,s]])=>{var i,o;if(!(n&31)){return}const l=s||t;const f=e.getAttribute(l);if(f!==null){const e=Ne(f,n,!!(((i=r.o)==null?void 0:i.i)&64));(o=r==null?void 0:r.l)==null?void 0:o.set(t,e)}}));if(A.document&&(!D.P||!D.P.size)){Oe(A.document.body,D.P=new Map)}e[E]=n;e.removeAttribute(E);r.U=je(u,l,f,c,e,e,n,a);let d=0;const p=l.length;let h;for(d;d<p;d++){h=l[d];const n=h.A+"."+h.D;const r=D.P.get(n);const s=h.N;if(!o){s["s-hn"]=t.toUpperCase();if(h.I==="slot"){s["s-cr"]=e["s-cr"]}}if(h.I==="slot"){h.M=h.N["s-sn"]||h.N["name"]||null;if(h.k){h.i|=2;if(!h.N.childNodes.length){h.k.forEach((e=>{h.N.appendChild(e.N)}))}}else{h.i|=1}}if(r&&r.isConnected){if(o&&r["s-en"]===""){r.parentNode.insertBefore(s,r.nextSibling)}r.parentNode.removeChild(r);if(!o){s["s-oo"]=parseInt(h.D)}}D.P.delete(n)}const $=[];const y=a.length;let m=0;let b;let w;let g;let S;for(m;m<y;m++){b=a[m];if(!b||!b.length)continue;g=b.length;w=0;for(w;w<g;w++){S=b[w];if(!$[S.hostId]){$[S.hostId]=D.P.get(S.hostId)}if(!$[S.hostId])continue;const e=$[S.hostId];if(!e.shadowRoot||!o){S.slot["s-cr"]=e["s-cr"];if(!S.slot["s-cr"]&&e.shadowRoot){S.slot["s-cr"]=e}else{S.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}ae(S.node,S.slot,false,S.node["s-oo"])}if(e.shadowRoot&&S.node.parentElement!==e){e.appendChild(S.node)}}}if(o&&!o.childNodes.length){let t=0;const n=c.length;if(n){for(t;t<n;t++){o.appendChild(c[t])}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8||e.nodeType===3&&!e.wholeText.trim()){e.parentNode.removeChild(e)}}}))}}D.P.delete(e["s-id"]);r.$hostElement$=e;i()};var je=(e,t,n,r,s,i,o,l=[])=>{let f;let a;let c;let u;if(i.nodeType===1){f=i.getAttribute(N);if(f){a=f.split(".");if(a[0]===o||a[0]==="0"){c=ke({i:0,A:a[0],D:a[1],L:a[2],W:a[3],I:i.tagName.toLowerCase(),N:i,O:{class:i.className||""}});t.push(c);i.removeAttribute(N);if(!e.k){e.k=[]}const s=c.N.getAttribute("s-sn");if(typeof s==="string"){if(c.I==="slot-fb"){xe(s,a[2],c,i,e,t,n,r,l)}c.N["s-sn"]=s;c.N.removeAttribute("s-sn")}if(c.W!==void 0){e.k[c.W]=c}e=c;if(r&&c.L==="0"){r[c.W]=c.N}}}if(i.shadowRoot){for(u=i.shadowRoot.childNodes.length-1;u>=0;u--){je(e,t,n,r,s,i.shadowRoot.childNodes[u],o,l)}}const v=i.__childNodes||i.childNodes;for(u=v.length-1;u>=0;u--){je(e,t,n,r,s,v[u],o,l)}}else if(i.nodeType===8){a=i.nodeValue.split(".");if(a[1]===o||a[1]==="0"){f=a[0];c=ke({A:a[1],D:a[2],L:a[3],W:a[4]||"0",N:i,O:null,k:null,C:null,M:null,I:null,j:null});if(f===x){c.N=Ee(i,3);if(c.N&&c.N.nodeType===3){c.j=c.N.textContent;t.push(c);i.remove();if(o===c.A){if(!e.k){e.k=[]}e.k[c.W]=c}if(r&&c.L==="0"){r[c.W]=c.N}}}else if(f===C){c.N=Ee(i,8);if(c.N&&c.N.nodeType===8){t.push(c);i.remove()}}else if(c.A===o){if(f===k){const s=i["s-sn"]=a[5]||"";xe(s,a[2],c,i,e,t,n,r,l)}else if(f===j){if(r){i.remove()}}}}}else if(e&&e.I==="style"){const t=$e(null,i.textContent);t.N=i;t.W="0";e.k=[t]}else{if(i.nodeType===3&&!i.wholeText.trim()){i.remove()}}return e};var Oe=(e,t)=>{if(e.nodeType===1){const n=e[E]||e.getAttribute(E);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){Oe(e.shadowRoot.childNodes[r],t)}}const s=e.__childNodes||e.childNodes;for(r=0;r<s.length;r++){Oe(s[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===O){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ke=e=>{const t={i:0,A:null,D:null,L:null,W:"0",N:null,O:null,k:null,C:null,M:null,I:null,j:null};return{...t,...e}};function xe(e,t,n,r,s,i,o,l,f){r["s-sr"]=true;n.M=e||null;n.I="slot";const a=(s==null?void 0:s.N)?s.N["s-id"]||s.N.getAttribute("s-id"):"";if(l&&A.document){const i=n.N=A.document.createElement(n.I);if(n.M){n.N.setAttribute("name",e)}if(a&&a!==n.A){s.N.insertBefore(i,s.N.children[0])}else{r.parentNode.insertBefore(i,r)}Ce(f,t,e,r,n.A);r.remove();if(n.L==="0"){l[n.W]=n.N}}else{const i=n.N;const o=a&&a!==n.A&&s.N.shadowRoot;Ce(f,t,e,r,o?a:n.A);ue(r);if(o){s.N.insertBefore(i,s.N.children[0])}}i.push(n);o.push(n);if(!s.k){s.k=[]}s.k[n.W]=n}var Ce=(e,t,n,r,s)=>{let i=r.nextSibling;e[t]=e[t]||[];while(i&&((i["getAttribute"]&&i.getAttribute("slot")||i["s-sn"])===n||n===""&&!i["s-sn"]&&(i.nodeType===8&&i.nodeValue.indexOf(".")!==1||i.nodeType===3))){i["s-sn"]=n;e[t].push({slot:r,node:i,hostId:s});i=i.nextSibling}};var Ee=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Ie=e=>{const t=X(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Ie("::slotted");Ie(":host");Ie(":host-context");var Ne=(e,t,n)=>{if(typeof e==="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]"))){try{e=JSON.parse(e);return e}catch(e){}}if(typeof e==="string"&&e.startsWith(p)){e=oe(e);return e}if(e!=null&&!K(e)){if(t&4){if(n&&typeof e==="string"){return e===""||!!e}else{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Me=e=>h(e).$hostElement$;var Re=(e,t,n)=>{const r=Me(e);return{emit:e=>Pe(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var Pe=(e,t,n)=>{const r=D.ce(t,n);e.dispatchEvent(r);return r};var Ue=new WeakMap;var Ae=(e,t,n)=>{let r=S.get(e);if(V&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}S.set(e,r)};var De=(e,t,n)=>{var r;const s=We(t);const i=S.get(s);if(!A.document){return s}e=e.nodeType===11?e:A.document;if(i){if(typeof i==="string"){e=e.head||e;let n=Ue.get(e);let o;if(!n){Ue.set(e,n=new Set)}if(!n.has(s)){if(e.host&&(o=e.querySelector(`[${I}="${s}"]`))){o.innerHTML=i}else{o=A.document.createElement("style");o.innerHTML=i;const n=(r=D.F)!=null?r:Q(A.document);if(n!=null){o.setAttribute("nonce",n)}if(!(t.i&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(V){const t=new CSSStyleSheet;t.replaceSync(i);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=i+t.innerHTML}else{e.prepend(o)}}}else{e.append(o)}}if(t.i&1){e.insertBefore(o,null)}}if(t.i&4){o.innerHTML+=R}if(n){n.add(s)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]}}return s};var Le=e=>{const t=e.o;const n=e.$hostElement$;const r=t.i;const s=de("attachStyles",t.$);const i=De(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h")}s()};var We=(e,t)=>"sc-"+e.$;var Fe=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var Ve=()=>{if(!A.document){return}const e=A.document.querySelectorAll(`[${I}]`);let t=0;for(;t<e.length;t++){Ae(e[t].getAttribute(I),Fe(e[t].innerHTML),true)}};var _e=(e,t,n,r,s,i,o)=>{if(n===r){return}let l=m(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const s=He(n);let i=He(r);if(e["s-si"]&&o){i.push(e["s-si"]);s.forEach((t=>{if(t.startsWith(e["s-si"]))i.push(t)}));i=[...new Set(i)];t.add(...i)}else{t.remove(...s.filter((e=>e&&!i.includes(e))));t.add(...i.filter((e=>e&&!s.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(m(A,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const s=t.endsWith(Te);t=t.replace(Je,"");if(n){D.rel(e,t,n,s)}if(r){D.ael(e,t,r,s)}}}else{const o=K(r);if((l||o&&r!==null)&&!s){try{if(!e.tagName.includes("-")){const s=r==null?"":r;if(t==="list"){l=false}else if(n==null||e[t]!=s){if(typeof e.__lookupSetter__(t)==="function"){e[t]=s}else{e.setAttribute(t,s)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(P,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||s)&&!o&&e.nodeType===1){r=r===true?"":r;if(a){e.setAttributeNS(P,t,r)}else{e.setAttribute(t,r)}}}};var ze=/\s/;var He=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ze)};var Te="Capture";var Je=new RegExp(Te+"$");var Ye=(e,t,n,r)=>{const s=t.N.nodeType===11&&t.N.host?t.N.host:t.N;const i=e&&e.O||{};const o=t.O||{};{for(const e of qe(Object.keys(i))){if(!(e in o)){_e(s,e,i[e],void 0,n,t.i,r)}}}for(const e of qe(Object.keys(o))){_e(s,e,i[e],o[e],n,t.i,r)}};function qe(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Be;var Ge=false;var Ke=(e,t,n)=>{const r=t.k[n];let s=0;let i;let o;if(r.j!==null){i=r.N=A.document.createTextNode(r.j)}else{if(!Ge){Ge=r.I==="svg"}if(!A.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}i=r.N=A.document.createElementNS(Ge?f:a,r.I);if(Ge&&r.I==="foreignObject"){Ge=false}{Ye(null,r,Ge)}if(r.k){for(s=0;s<r.k.length;++s){o=Ke(e,r,s);if(o){i.appendChild(o)}}}{if(r.I==="svg"){Ge=false}else if(i.tagName==="foreignObject"){Ge=true}}}i["s-hn"]=Be;return i};var Qe=(e,t,n,r,s,i)=>{let o=e;let l;if(o.shadowRoot&&o.tagName===Be){o=o.shadowRoot}for(;s<=i;++s){if(r[s]){l=Ke(null,n,s);if(l){r[s].N=l;rt(o,l,t)}}}};var Xe=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.N;nt(t);if(e){e.remove()}}}};var Ze=(e,t,n,r,s=false)=>{let i=0;let o=0;let l=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let p=r[v];let h;let $;while(i<=a&&o<=v){if(c==null){c=t[++i]}else if(u==null){u=t[--a]}else if(d==null){d=r[++o]}else if(p==null){p=r[--v]}else if(et(c,d,s)){tt(c,d,s);c=t[++i];d=r[++o]}else if(et(u,p,s)){tt(u,p,s);u=t[--a];p=r[--v]}else if(et(c,p,s)){tt(c,p,s);rt(e,c.N,u.N.nextSibling);c=t[++i];p=r[--v]}else if(et(u,d,s)){tt(u,d,s);rt(e,u.N,c.N);u=t[--a];d=r[++o]}else{l=-1;{for(f=i;f<=a;++f){if(t[f]&&t[f].C!==null&&t[f].C===d.C){l=f;break}}}if(l>=0){$=t[l];if($.I!==d.I){h=Ke(t&&t[o],n,l)}else{tt($,d,s);t[l]=void 0;h=$.N}d=r[++o]}else{h=Ke(t&&t[o],n,o);d=r[++o]}if(h){{rt(c.N.parentNode,h,c.N)}}}}if(i>a){Qe(e,r[v+1]==null?null:r[v+1].N,n,r,o,v)}else if(o>v){Xe(t,i,a)}};var et=(e,t,n=false)=>{if(e.I===t.I){if(!n){return e.C===t.C}if(n&&!e.C&&t.C){e.C=t.C}return true}return false};var tt=(e,n,r=false)=>{const s=n.N=e.N;const i=e.k;const o=n.k;const l=n.I;const f=n.j;if(f===null){{Ge=l==="svg"?true:l==="foreignObject"?false:Ge}{Ye(e,n,Ge,r)}if(i!==null&&o!==null){Ze(s,i,n,o,r)}else if(o!==null){if(e.j!==null){s.textContent=""}Qe(s,null,n,o,0,o.length-1)}else if(!r&&t.updatable&&i!==null){Xe(i,0,i.length-1)}if(Ge&&l==="svg"){Ge=false}}else if(e.j!==f){s.data=f}};var nt=e=>{{e.O&&e.O.ref&&e.O.ref(null);e.k&&e.k.map(nt)}};var rt=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var st=(e,t,n=false)=>{const r=e.$hostElement$;const s=e.o;const i=e.U||$e(null,null);const o=me(t);const l=o?t:he(null,null,t);Be=r.tagName;if(s.V){l.O=l.O||{};s.V.map((([e,t])=>l.O[t]=r[e]))}if(n&&l.O){for(const e of Object.keys(l.O)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){l.O[e]=r[e]}}}l.I=null;l.i|=4;e.U=l;l.N=i.N=r.shadowRoot||r;tt(i,l,n)};var it=(e,t)=>{if(t&&!e._&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e._=()=>{t["s-p"].splice(n-1,1);r()})))}};var ot=(e,t)=>{{e.i|=16}if(e.i&4){e.i|=512;return}it(e,e.H);const n=()=>lt(e,t);return G(n)};var lt=(e,t)=>{const n=e.$hostElement$;const r=de("scheduleUpdate",e.o.$);const s=e.t;if(!s){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let i;if(t){{e.i|=256;if(e.T){e.T.map((([e,t])=>ht(s,e,t,n)));e.T=void 0}}i=ht(s,"componentWillLoad",void 0,n)}else{i=ht(s,"componentWillUpdate",void 0,n)}i=ft(i,(()=>ht(s,"componentWillRender",void 0,n)));r();return ft(i,(()=>ct(e,s,t)))};var ft=(e,t)=>at(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var at=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var ct=async(e,t,n)=>{var r;const s=e.$hostElement$;const i=de("update",e.o.$);const o=s["s-rc"];if(n){Le(e)}const l=de("render",e.o.$);{ut(e,t,s,n)}if(o){o.map((e=>e()));s["s-rc"]=void 0}l();i();{const t=(r=s["s-p"])!=null?r:[];const n=()=>vt(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.i|=4;t.length=0}}};var ut=(e,t,n,r)=>{try{t=t.render();{e.i&=-17}{e.i|=2}{{{st(e,t,r)}}}}catch(t){b(t,e.$hostElement$)}return null};var vt=e=>{const t=e.o.$;const n=e.$hostElement$;const r=de("postUpdate",t);const s=e.t;const i=e.H;ht(s,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;{$t(n)}ht(s,"componentDidLoad",void 0,n);r();{e.h(n);if(!i){pt()}}}else{ht(s,"componentDidUpdate",void 0,n);r()}{e.v(n)}{if(e._){e._();e._=void 0}if(e.i&512){q((()=>ot(e,false)))}e.i&=-517}};var dt=e=>{{const t=h(e);const n=t.$hostElement$.isConnected;if(n&&(t.i&(2|16))===2){ot(t,false)}return n}};var pt=t=>{q((()=>Pe(A,"appload",{detail:{namespace:e}})))};var ht=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){b(e,r)}}return void 0};var $t=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var yt=(e,t)=>h(e).l.get(t);var mt=(e,t,n,r)=>{const s=h(e);if(!s){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const i=s.$hostElement$;const o=s.l.get(t);const l=s.i;const f=s.t;n=Ne(n,r.R[t][0],!!(r.i&64));const a=Number.isNaN(o)&&Number.isNaN(n);const c=n!==o&&!a;if((!(l&8)||o===void 0)&&c){s.l.set(t,n);if(f){if(r.J&&l&128){const e=r.J[t];if(e){e.map((e=>{try{f[e](n,o,t)}catch(e){b(e,i)}}))}}if((l&(2|16))===2){if(f.componentShouldUpdate){if(f.componentShouldUpdate(n,o,t)===false){return}}ot(s,false)}}}};var bt=(e,n,r)=>{var s,i;const o=e.prototype;if(n.i&64&&r&1){U.forEach((e=>{Object.defineProperty(o,e,{value(...t){const n=h(this);const r=n.t;if(!r){n.p.then((n=>{const r=n[e];typeof r==="function"&&r.call(n,...t)}))}else{const n=r[e];typeof n==="function"&&n.call(r,...t)}}})}))}if(n.R||(n.J||e.watchers)){if(e.watchers&&!n.J){n.J=e.watchers}const l=Object.entries((s=n.R)!=null?s:{});l.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:s,set:i}=Object.getOwnPropertyDescriptor(o,e)||{};if(s)n.R[e][0]|=2048;if(i)n.R[e][0]|=4096;if(r&1||!s){Object.defineProperty(o,e,{get(){{if((n.R[e][0]&2048)===0){return yt(this,e)}const t=h(this);const r=t?t.t:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(s){const o=h(this);if(i){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.l.get(e)){s=o.l.get(e)}else if(!o.l.get(e)&&r){o.l.set(e,r)}i.apply(this,[Ne(s,t,!!(n.i&64))]);s=t&32?this[e]:o.$hostElement$[e];mt(this,e,s,n);return}{if((r&1)===0||(n.R[e][0]&4096)===0){mt(this,e,s,n);if(r&1&&!o.t){o.p.then((()=>{if(n.R[e][0]&4096&&o.t[e]!==o.l.get(e)){o.t[e]=s}}))}return}const i=()=>{const r=o.t[e];if(!o.l.get(e)&&r){o.l.set(e,r)}o.t[e]=Ne(s,t,!!(n.i&64));mt(this,e,o.t[e],n)};if(o.t){i()}else{o.p.then((()=>i()))}}}})}else if(r&1&&t&64){Object.defineProperty(o,e,{value(...t){var n;const r=h(this);return(n=r==null?void 0:r.u)==null?void 0:n.then((()=>{var n;return(n=r.t)==null?void 0:n[e](...t)}))}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,s,i){D.jmp((()=>{var l;const f=r.get(e);if(this.hasOwnProperty(f)&&t.lazyLoad){i=this[f];delete this[f]}else if(o.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==i){return}else if(f==null){const t=h(this);const r=t==null?void 0:t.i;if(r&&!(r&8)&&r&128&&i!==s){const r=t.t;const o=(l=n.J)==null?void 0:l[e];o==null?void 0:o.forEach((t=>{if(r[t]!=null){r[t].call(r,i,s,e)}}))}return}const a=Object.getOwnPropertyDescriptor(o,f);i=i===null&&typeof this[f]==="boolean"?false:i;if(i!==this[f]&&(!a.get||!!a.set)){this[f]=i}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.J)!=null?i:{}),...l.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var s;const i=t[1]||e;r.set(i,e);if(t[0]&512){(s=n.V)==null?void 0:s.push([e,i])}return i}))]))}}return e};var wt=async(e,t,n,r)=>{let s;if((t.i&32)===0){t.i|=32;const r=n.m;if(r){const r=g(n,t);if(r&&"then"in r){const e=pe();s=await r;e()}else{s=r}if(!s){throw new Error(`Constructor for "${n.$}#${t.Y}" was not found`)}if(!s.isProxied){{n.J=s.watchers}bt(s,n,2);s.isProxied=true}const i=de("createInstance",n.$);{t.i|=8}try{new s(t)}catch(t){b(t,e)}{t.i&=-9}{t.i|=128}i();gt(t.t,e)}else{s=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.i|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const t=We(n);if(!S.has(t)){const r=de("registerStyles",n.$);Ae(t,e,!!(n.i&1));r()}}}const i=t.H;const o=()=>ot(t,true);if(i&&i["s-rc"]){i["s-rc"].push(o)}else{o()}};var gt=(e,t)=>{{ht(e,"connectedCallback",void 0,t)}};var St=e=>{if((D.i&1)===0){const t=h(e);const n=t.o;const r=de("connectedCallback",n.$);if(!(t.i&1)){t.i|=1;let r;{r=e.getAttribute(E);if(r){if(n.i&1){const t=De(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}Se(e,n.$,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){it(t,t.H=n);break}}}if(n.R){Object.entries(n.R).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{wt(e,t,n)}}else{Ct(e,t,n.q);if(t==null?void 0:t.t){gt(t.t,e)}else if(t==null?void 0:t.p){t.p.then((()=>gt(t.t,e)))}}r()}};var jt=(e,t)=>{{ht(e,"disconnectedCallback",void 0,t||e)}};var Ot=async e=>{if((D.i&1)===0){const t=h(e);{if(t.B){t.B.map((e=>e()));t.B=void 0}}if(t==null?void 0:t.t){jt(t.t,e)}else if(t==null?void 0:t.p){t.p.then((()=>jt(t.t,e)))}}if(Ue.has(e)){Ue.delete(e)}if(e.shadowRoot&&Ue.has(e.shadowRoot)){Ue.delete(e.shadowRoot)}};var kt=(e,t={})=>{var n;if(!A.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=de();const s=[];const i=t.exclude||[];const o=A.customElements;const l=A.document.head;const f=l.querySelector("meta[charset]");const a=A.document.createElement("style");const c=[];let u;let v=true;Object.assign(D,t);D.S=new URL(t.resourcesUrl||"./",A.document.baseURI).href;{D.i|=2}{Ve()}let d=false;e.map((e=>{e[1].map((t=>{var n;const r={i:t[0],$:t[1],R:t[2],q:t[3]};if(r.i&4){d=true}{r.R=t[2]}{r.q=t[3]}{r.V=[]}{r.J=(n=t[4])!=null?n:{}}const l=r.$;const f=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;y(e,r);if(r.i&1){{if(!e.shadowRoot){le.call(e,r)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=h(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;Ct(this,e,r.q)}if(u){clearTimeout(u);u=null}if(v){c.push(this)}else{D.jmp((()=>St(this)))}}disconnectedCallback(){D.jmp((()=>Ot(this)));D.raf((()=>{var e;const t=h(this);const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.U)==null?void 0:e.N)instanceof Node&&!t.U.N.isConnected){delete t.U.N}}))}componentOnReady(){return h(this).p}};if(r.i&64){f.formAssociated=true}r.m=e[0];if(!i.includes(l)&&!o.get(l)){s.push(l);o.define(l,bt(f,r,1))}}))}));if(s.length>0){if(d){a.textContent+=R}{a.textContent+=s.sort()+M}if(a.innerHTML.length){a.setAttribute("data-styles","");const e=(n=D.F)!=null?n:Q(A.document);if(e!=null){a.setAttribute("nonce",e)}l.insertBefore(a,f?f.nextSibling:l.firstChild)}}v=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{D.jmp((()=>u=setTimeout(pt,30)))}}r()};var xt=(e,t)=>t;var Ct=(e,t,n,r)=>{if(n&&A.document){n.map((([n,r,s])=>{const i=It(A.document,e,n);const o=Et(t,s);const l=Nt(n);D.ael(i,r,o,l);(t.B=t.B||[]).push((()=>D.rel(i,r,o,l)))}))}};var Et=(e,t)=>n=>{var r;try{{if(e.i&256){(r=e.t)==null?void 0:r[t](n)}else{(e.T=e.T||[]).push([t,n])}}}catch(t){b(t,e.$hostElement$)}};var It=(e,t,n)=>{if(n&8){return A}return t};var Nt=e=>W?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Mt=e=>D.F=e;export{xt as F,ye as H,Me as a,kt as b,Re as c,B as d,n as e,dt as f,s as g,he as h,F as p,$ as r,Mt as s};
|
|
3
|
+
//# sourceMappingURL=p-DJsXFBNm.js.map
|