@siemens/ix 2.0.0-beta.0 → 2.0.0-beta.1
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-c158438e.js +50 -0
- package/dist/cjs/base-button-c158438e.js.map +1 -0
- package/dist/cjs/base-icon-button-bbca2582.js +20 -0
- package/dist/cjs/base-icon-button-bbca2582.js.map +1 -0
- package/dist/cjs/breakpoints-e19e827e.js +27 -0
- package/dist/cjs/breakpoints-e19e827e.js.map +1 -0
- package/dist/cjs/context-0fdf2fa1.js +106 -0
- package/dist/cjs/context-0fdf2fa1.js.map +1 -0
- package/dist/cjs/{floating-ui.dom.esm-b79b633f.js → floating-ui.dom.esm-3b936e26.js} +654 -534
- package/dist/cjs/floating-ui.dom.esm-3b936e26.js.map +1 -0
- package/dist/cjs/{icon-eeb2940a.js → icon-9e9f2faf.js} +2 -2
- package/dist/cjs/{icon-eeb2940a.js.map → icon-9e9f2faf.js.map} +1 -1
- package/dist/cjs/index-1061a1c1.js +8 -0
- package/dist/cjs/index-1061a1c1.js.map +1 -0
- package/dist/cjs/{index-e56a1d39.js → index-be499a74.js} +45 -398
- package/dist/cjs/index-be499a74.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/ix-action-card.cjs.entry.js +3 -3
- package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +10 -5
- package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +47 -0
- package/dist/cjs/ix-application-sidebar.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-application.cjs.entry.js +109 -0
- package/dist/cjs/ix-application.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +44 -10
- package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +5 -4
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +100 -92
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-burger-menu.cjs.entry.js +3 -3
- package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +22 -7
- package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +73 -40
- package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +2 -2
- package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-col.cjs.entry.js +77 -0
- package/dist/cjs/ix-col.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-content.cjs.entry.js +32 -0
- package/dist/cjs/ix-content.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-css-grid-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
- package/dist/cjs/ix-css-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-date-time-card.cjs.entry.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-divider.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +4 -3
- package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +6 -8
- package/dist/cjs/ix-dropdown_2.cjs.entry.js.map +1 -1
- 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-event-list_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-event-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +2 -2
- package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-filter-chip.cjs.entry.js +4 -3
- package/dist/cjs/ix-filter-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +28 -18
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-form-field.cjs.entry.js +27 -0
- package/dist/cjs/ix-form-field.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-grid.cjs.entry.js +29 -0
- package/dist/cjs/ix-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +2 -2
- package/dist/cjs/ix-group_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-group_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-button.cjs.entry.js +21 -13
- package/dist/cjs/ix-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +88 -0
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-icon.cjs.entry.js +2 -2
- package/dist/cjs/ix-input-group.cjs.entry.js +85 -18
- package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
- package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +2 -2
- package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-link-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +11 -3
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +6 -5
- package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu_9.cjs.entry.js +101 -75
- package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
- package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-content.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-content.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pagination.cjs.entry.js +32 -15
- package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +2 -2
- package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +5 -2
- package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-row.cjs.entry.js +21 -0
- package/dist/cjs/ix-row.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-select_2.cjs.entry.js +68 -49
- package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ix-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-split-button_2.cjs.entry.js +7 -5
- package/dist/cjs/ix-split-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tab-item.cjs.entry.js +11 -3
- package/dist/cjs/ix-tab-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tabs.cjs.entry.js +22 -7
- package/dist/cjs/ix-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +2 -2
- package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toggle-button.cjs.entry.js +77 -0
- package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/ix-tree_2.cjs.entry.js +16 -9
- package/dist/cjs/ix-tree_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-typography.cjs.entry.js +25 -12
- package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +2 -2
- package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +14 -18
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/menu-service-f7ef5265.js +159 -0
- package/dist/cjs/menu-service-f7ef5265.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js.map +1 -1
- package/dist/cjs/{shadow-dom-f9b90696.js → shadow-dom-9b10f758.js} +4 -1
- package/dist/cjs/shadow-dom-9b10f758.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +2 -2
- package/dist/cjs/{theme-switcher-bdbd0d30.js → theme-switcher-d0386ac9.js} +36 -4
- package/dist/cjs/theme-switcher-d0386ac9.js.map +1 -0
- package/dist/collection/collection-manifest.json +13 -13
- package/dist/collection/components/action-card/action-card.css +36 -0
- package/dist/collection/components/action-card/action-card.js +1 -1
- package/dist/collection/components/action-card/action-card.js.map +1 -1
- package/dist/collection/components/application/application.css +106 -0
- package/dist/collection/components/application/application.js +220 -0
- package/dist/collection/components/application/application.js.map +1 -0
- package/dist/collection/components/application-header/application-header.css +4 -2
- package/dist/collection/components/application-header/application-header.js +8 -28
- package/dist/collection/components/application-header/application-header.js.map +1 -1
- package/dist/collection/components/application-header/test/application-headet.ct.js +20 -0
- package/dist/collection/components/application-header/test/application-headet.ct.js.map +1 -0
- package/dist/collection/components/application-sidebar/application-sidebar.css +69 -0
- package/dist/collection/components/application-sidebar/application-sidebar.js +70 -0
- package/dist/collection/components/application-sidebar/application-sidebar.js.map +1 -0
- package/dist/collection/components/application-sidebar/events.js +15 -0
- package/dist/collection/components/application-sidebar/events.js.map +1 -0
- package/dist/collection/components/basic-navigation/basic-navigation.css +39 -2
- package/dist/collection/components/basic-navigation/basic-navigation.js +91 -8
- package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
- package/dist/collection/components/blind/blind.css +23 -8
- package/dist/collection/components/blind/blind.js +23 -2
- package/dist/collection/components/blind/blind.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +49 -153
- package/dist/collection/components/breadcrumb/breadcrumb.js +80 -92
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js +97 -0
- package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js.map +1 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +1063 -1
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +153 -3
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
- package/dist/collection/components/button/base-button.js +10 -1
- package/dist/collection/components/button/base-button.js.map +1 -1
- package/dist/collection/components/button/button.css +287 -208
- package/dist/collection/components/button/button.js +62 -44
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/card/card.css +36 -0
- package/dist/collection/components/card-accordion/card-accordion.css +37 -0
- package/dist/collection/components/card-content/card-content.css +36 -0
- package/dist/collection/components/card-list/card-list.css +36 -0
- package/dist/collection/components/category-filter/category-filter.css +1303 -4
- package/dist/collection/components/category-filter/category-filter.js +115 -55
- package/dist/collection/components/category-filter/category-filter.js.map +1 -1
- package/dist/collection/components/chip/chip.css +36 -0
- package/dist/collection/components/col/col.css +19 -0
- package/dist/collection/components/col/col.js +189 -0
- package/dist/collection/components/col/col.js.map +1 -0
- package/dist/collection/components/content/content.css +75 -0
- package/dist/collection/components/content/content.js +46 -0
- package/dist/collection/components/content/content.js.map +1 -0
- package/dist/collection/components/css-grid/builder.js.map +1 -0
- package/dist/collection/components/css-grid/css-grid-item.js.map +1 -0
- package/dist/collection/components/{layout/css-grid → css-grid}/css-grid.js +1 -1
- package/dist/collection/components/css-grid/css-grid.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker.css +38 -0
- package/dist/collection/components/date-time-card/date-time-card.css +38 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +36 -0
- package/dist/collection/components/drawer/drawer.css +36 -0
- package/dist/collection/components/dropdown/dropdown.css +36 -0
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.css +46 -4
- package/dist/collection/components/dropdown-button/dropdown-button.js +27 -1
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/collection/components/dropdown-header/dropdown-header.css +36 -0
- package/dist/collection/components/dropdown-item/dropdown-item.css +36 -0
- package/dist/collection/components/empty-state/empty-state.css +38 -0
- package/dist/collection/components/event-list/event-list.css +36 -0
- package/dist/collection/components/event-list-item/event-list-item.css +42 -4
- package/dist/collection/components/expanding-search/expanding-search.css +47 -4
- package/dist/collection/components/filter-chip/filter-chip.css +48 -1
- package/dist/collection/components/filter-chip/filter-chip.js +23 -1
- package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
- package/dist/collection/components/flip-tile/flip-tile.css +208 -0
- package/dist/collection/components/flip-tile/flip-tile.js +25 -36
- package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
- package/dist/collection/components/flip-tile/test/flip-tile.ct.js +57 -0
- package/dist/collection/components/flip-tile/test/flip-tile.ct.js.map +1 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +29 -1
- package/dist/collection/components/flip-tile-content/flip-tile-content.js.map +1 -1
- package/dist/collection/components/form-field/form-field.css +234 -0
- package/dist/collection/components/form-field/form-field.js +56 -0
- package/dist/collection/components/form-field/form-field.js.map +1 -0
- package/dist/collection/components/grid/grid.css +26 -0
- package/dist/collection/components/grid/grid.js +98 -0
- package/dist/collection/components/grid/grid.js.map +1 -0
- package/dist/collection/components/group/group.css +4 -4
- package/dist/collection/components/group-item/group-item.css +36 -0
- package/dist/collection/components/icon-button/base-icon-button.js +14 -0
- package/dist/collection/components/icon-button/base-icon-button.js.map +1 -0
- package/dist/collection/components/icon-button/icon-button.css +383 -173
- package/dist/collection/components/icon-button/icon-button.js +18 -49
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +618 -0
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +274 -0
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -0
- package/dist/collection/components/input-group/input-group.css +54 -1
- package/dist/collection/components/input-group/input-group.js +92 -17
- package/dist/collection/components/input-group/input-group.js.map +1 -1
- package/dist/collection/components/kpi/kpi.css +38 -2
- package/dist/collection/components/link-button/link-button.css +72 -66
- package/dist/collection/components/map-navigation/map-navigation.css +36 -0
- package/dist/collection/components/map-navigation/map-navigation.js +8 -0
- package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +56 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +1 -1
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js.map +1 -1
- package/dist/collection/components/menu/burger-menu.css +104 -62
- package/dist/collection/components/menu/menu.css +45 -6
- package/dist/collection/components/menu/menu.js +66 -103
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu/test/menu.ct.js +8 -10
- package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
- package/dist/collection/components/menu-about/menu-about.css +2 -2
- package/dist/collection/components/menu-about/menu-about.js +3 -3
- package/dist/collection/components/menu-about/menu-about.js.map +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.css +36 -0
- package/dist/collection/components/menu-avatar/menu-avatar.css +46 -2
- package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
- package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +36 -1
- package/dist/collection/components/menu-category/menu-category.css +41 -0
- package/dist/collection/components/menu-category/menu-category.js +3 -3
- package/dist/collection/components/menu-category/menu-category.js.map +1 -1
- package/dist/collection/components/menu-category/test/menu-category.ct.js +27 -10
- package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -1
- package/dist/collection/components/menu-item/menu-item.css +11 -6
- package/dist/collection/components/menu-item/menu-item.js +7 -1
- package/dist/collection/components/menu-item/menu-item.js.map +1 -1
- package/dist/collection/components/menu-settings/menu-settings.css +40 -1
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
- package/dist/collection/components/message-bar/message-bar.css +38 -0
- package/dist/collection/components/modal/modal.css +3 -3
- package/dist/collection/components/modal-content/modal-content.css +36 -0
- package/dist/collection/components/modal-footer/modal-footer.css +36 -0
- package/dist/collection/components/modal-header/modal-header.css +36 -0
- package/dist/collection/components/my-component/my-component.js +1 -1
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/collection/components/pagination/pagination.css +919 -2
- package/dist/collection/components/pagination/pagination.js +31 -14
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pill/pill.css +36 -0
- package/dist/collection/components/push-card/push-card.js +4 -1
- package/dist/collection/components/push-card/push-card.js.map +1 -1
- package/dist/collection/components/{animated-tab/animated-tab.css → row/row.css} +7 -4
- package/dist/collection/components/row/row.js +30 -0
- package/dist/collection/components/row/row.js.map +1 -0
- package/dist/collection/components/select/select.css +71 -6
- package/dist/collection/components/select/select.js +118 -55
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select/test/select.ct.js +10 -6
- package/dist/collection/components/select/test/select.ct.js.map +1 -1
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/select-item/select-item.js.map +1 -1
- package/dist/collection/components/spinner/spinner.css +148 -0
- package/dist/collection/components/split-button/split-button.css +36 -0
- package/dist/collection/components/split-button/split-button.js +1 -2
- package/dist/collection/components/split-button/split-button.js.map +1 -1
- package/dist/collection/components/split-button-item/split-button-item.js +4 -1
- package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.css +36 -1
- package/dist/collection/components/tab-item/tab-item.js +34 -1
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tabs/tabs.css +36 -0
- package/dist/collection/components/tabs/tabs.js +46 -5
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tabs/test/tabs.ct.js +84 -0
- package/dist/collection/components/tabs/test/tabs.ct.js.map +1 -0
- package/dist/collection/components/tile/tile.css +36 -0
- package/dist/collection/components/time-picker/time-picker.css +274 -13
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/toast/toast.css +36 -0
- package/dist/collection/components/toggle/toggle.css +36 -0
- package/dist/collection/components/toggle-button/toggle-button.css +447 -0
- package/dist/collection/components/toggle-button/toggle-button.js +246 -0
- package/dist/collection/components/toggle-button/toggle-button.js.map +1 -0
- package/dist/collection/components/tree/test/tree.ct.js +154 -0
- package/dist/collection/components/tree/test/tree.ct.js.map +1 -0
- package/dist/collection/components/tree/tree.js +14 -7
- package/dist/collection/components/tree/tree.js.map +1 -1
- package/dist/collection/components/tree-item/tree-item.css +56 -14
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js.map +1 -1
- package/dist/collection/components/typography/typography.css +391 -0
- package/dist/collection/components/typography/typography.js +95 -14
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/collection/components/upload/upload.css +36 -0
- package/dist/collection/components/utils/application-layout/context.js +19 -0
- package/dist/collection/components/utils/application-layout/context.js.map +1 -0
- package/dist/collection/components/utils/{screen → application-layout}/index.js +1 -1
- package/dist/collection/components/utils/application-layout/index.js.map +1 -0
- package/dist/collection/components/utils/application-layout/service.js +92 -0
- package/dist/collection/components/utils/application-layout/service.js.map +1 -0
- package/dist/collection/components/utils/breakpoints.js +22 -0
- package/dist/collection/components/utils/breakpoints.js.map +1 -0
- package/dist/collection/components/utils/context.js +79 -0
- package/dist/collection/components/utils/context.js.map +1 -0
- package/dist/collection/components/utils/shadow-dom.js +6 -0
- package/dist/collection/components/utils/shadow-dom.js.map +1 -1
- package/dist/collection/components/utils/theme-switcher.js +35 -3
- package/dist/collection/components/utils/theme-switcher.js.map +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +6 -6
- package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
- package/dist/collection/components/workflow-step/workflow-step.css +40 -2
- package/dist/collection/components/workflow-step/workflow-step.js +6 -13
- package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
- package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js +74 -0
- package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +1 -0
- package/dist/collection/components/workflow-steps/workflow-steps.css +38 -0
- package/dist/collection/components/workflow-steps/workflow-steps.js +8 -26
- package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
- package/dist/components/application-header.js +9 -5
- package/dist/components/application-header.js.map +1 -1
- package/dist/components/base-button.js +16 -2
- package/dist/components/base-button.js.map +1 -1
- package/dist/components/base-icon-button.js +18 -0
- package/dist/components/base-icon-button.js.map +1 -0
- package/dist/components/breadcrumb-item.js +99 -0
- package/dist/components/breadcrumb-item.js.map +1 -0
- package/dist/components/breakpoints.js +25 -0
- package/dist/components/breakpoints.js.map +1 -0
- package/dist/components/burger-menu.js +1 -1
- package/dist/components/burger-menu.js.map +1 -1
- package/dist/components/button.js +24 -9
- package/dist/components/button.js.map +1 -1
- package/dist/components/card-accordion.js +1 -1
- package/dist/components/card-accordion.js.map +1 -1
- package/dist/components/card-content.js +1 -1
- package/dist/components/card-content.js.map +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/context.js +86 -7
- package/dist/components/context.js.map +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/date-time-card.js +1 -1
- package/dist/components/date-time-card.js.map +1 -1
- package/dist/components/dropdown-item.js +2 -4
- package/dist/components/dropdown-item.js.map +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/filter-chip.js +5 -3
- package/dist/components/filter-chip.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +653 -533
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/group-context-menu.js +2 -16
- package/dist/components/group-context-menu.js.map +1 -1
- package/dist/components/group-item.js +1 -1
- package/dist/components/group-item.js.map +1 -1
- package/dist/components/icon-button.js +19 -14
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +6 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/ix-action-card.js +2 -2
- package/dist/components/ix-action-card.js.map +1 -1
- package/dist/components/ix-application-sidebar.d.ts +11 -0
- package/dist/components/ix-application-sidebar.js +63 -0
- package/dist/components/ix-application-sidebar.js.map +1 -0
- package/dist/components/{ix-animated-tab.d.ts → ix-application.d.ts} +4 -4
- package/dist/components/ix-application.js +128 -0
- package/dist/components/ix-application.js.map +1 -0
- package/dist/components/ix-basic-navigation.js +45 -10
- package/dist/components/ix-basic-navigation.js.map +1 -1
- package/dist/components/ix-blind.js +13 -5
- package/dist/components/ix-blind.js.map +1 -1
- package/dist/components/ix-breadcrumb-item.js +1 -32
- package/dist/components/ix-breadcrumb-item.js.map +1 -1
- package/dist/components/ix-breadcrumb.js +76 -98
- package/dist/components/ix-breadcrumb.js.map +1 -1
- package/dist/components/ix-card-list.js +1 -1
- package/dist/components/ix-card-list.js.map +1 -1
- package/dist/components/ix-category-filter.js +76 -41
- package/dist/components/ix-category-filter.js.map +1 -1
- package/dist/components/ix-chip.js +1 -1
- package/dist/components/ix-chip.js.map +1 -1
- package/dist/components/{ix-index-button.d.ts → ix-col.d.ts} +4 -4
- package/dist/components/ix-col.js +96 -0
- package/dist/components/ix-col.js.map +1 -0
- package/dist/components/ix-content.d.ts +11 -0
- package/dist/components/ix-content.js +48 -0
- package/dist/components/ix-content.js.map +1 -0
- package/dist/components/ix-css-grid-item.js.map +1 -1
- package/dist/components/ix-css-grid.js.map +1 -1
- package/dist/components/ix-datetime-picker.js +23 -17
- package/dist/components/ix-datetime-picker.js.map +1 -1
- package/dist/components/ix-drawer.js +1 -1
- package/dist/components/ix-drawer.js.map +1 -1
- package/dist/components/ix-dropdown-button.js +4 -2
- package/dist/components/ix-dropdown-button.js.map +1 -1
- package/dist/components/ix-dropdown-header.js +1 -1
- package/dist/components/ix-dropdown-header.js.map +1 -1
- package/dist/components/ix-empty-state.js +1 -1
- package/dist/components/ix-empty-state.js.map +1 -1
- package/dist/components/ix-event-list-item.js +1 -1
- package/dist/components/ix-event-list-item.js.map +1 -1
- package/dist/components/ix-event-list.js +1 -1
- package/dist/components/ix-event-list.js.map +1 -1
- package/dist/components/ix-expanding-search.js +1 -1
- package/dist/components/ix-expanding-search.js.map +1 -1
- package/dist/components/ix-flip-tile-content.js +5 -2
- package/dist/components/ix-flip-tile-content.js.map +1 -1
- package/dist/components/ix-flip-tile.js +27 -18
- package/dist/components/ix-flip-tile.js.map +1 -1
- package/dist/components/ix-form-field.d.ts +11 -0
- package/dist/components/ix-form-field.js +43 -0
- package/dist/components/ix-form-field.js.map +1 -0
- package/dist/components/ix-grid.d.ts +11 -0
- package/dist/components/ix-grid.js +47 -0
- package/dist/components/ix-grid.js.map +1 -0
- package/dist/components/ix-group.js +3 -2
- package/dist/components/ix-group.js.map +1 -1
- package/dist/components/ix-icon-toggle-button.d.ts +11 -0
- package/dist/components/ix-icon-toggle-button.js +122 -0
- package/dist/components/ix-icon-toggle-button.js.map +1 -0
- package/dist/components/ix-input-group.js +89 -18
- package/dist/components/ix-input-group.js.map +1 -1
- package/dist/components/ix-kpi.js +1 -1
- package/dist/components/ix-kpi.js.map +1 -1
- package/dist/components/ix-link-button.js +1 -1
- package/dist/components/ix-link-button.js.map +1 -1
- package/dist/components/ix-map-navigation.js +8 -1
- package/dist/components/ix-map-navigation.js.map +1 -1
- package/dist/components/ix-menu-about-news.js +1 -1
- package/dist/components/ix-menu-about-news.js.map +1 -1
- package/dist/components/ix-menu-about.js +4 -4
- package/dist/components/ix-menu-about.js.map +1 -1
- package/dist/components/ix-menu-avatar.js +3 -3
- package/dist/components/ix-menu-avatar.js.map +1 -1
- package/dist/components/ix-menu-category.js +4 -4
- package/dist/components/ix-menu-category.js.map +1 -1
- package/dist/components/ix-menu-settings.js +2 -2
- package/dist/components/ix-menu-settings.js.map +1 -1
- package/dist/components/ix-menu.js +80 -62
- package/dist/components/ix-menu.js.map +1 -1
- package/dist/components/ix-message-bar.js +1 -1
- package/dist/components/ix-message-bar.js.map +1 -1
- package/dist/components/ix-modal-content.js +1 -1
- package/dist/components/ix-modal-content.js.map +1 -1
- package/dist/components/ix-modal-footer.js +1 -1
- package/dist/components/ix-modal-footer.js.map +1 -1
- package/dist/components/ix-modal-header.js +1 -1
- package/dist/components/ix-modal-header.js.map +1 -1
- package/dist/components/ix-modal.js +1 -1
- package/dist/components/ix-modal.js.map +1 -1
- package/dist/components/ix-pagination.js +42 -24
- package/dist/components/ix-pagination.js.map +1 -1
- package/dist/components/ix-pill.js +1 -1
- package/dist/components/ix-pill.js.map +1 -1
- package/dist/components/ix-push-card.js +4 -1
- package/dist/components/ix-push-card.js.map +1 -1
- package/dist/components/ix-row.d.ts +11 -0
- package/dist/components/ix-row.js +35 -0
- package/dist/components/ix-row.js.map +1 -0
- package/dist/components/ix-split-button-item.js +4 -1
- package/dist/components/ix-split-button-item.js.map +1 -1
- package/dist/components/ix-split-button.js +2 -3
- package/dist/components/ix-split-button.js.map +1 -1
- package/dist/components/ix-tile.js +1 -1
- package/dist/components/ix-tile.js.map +1 -1
- package/dist/components/{ix-animated-tabs.d.ts → ix-toggle-button.d.ts} +4 -4
- package/dist/components/ix-toggle-button.js +111 -0
- package/dist/components/ix-toggle-button.js.map +1 -0
- package/dist/components/ix-toggle.js +1 -1
- package/dist/components/ix-toggle.js.map +1 -1
- package/dist/components/ix-tree.js +16 -8
- package/dist/components/ix-tree.js.map +1 -1
- package/dist/components/ix-upload.js +1 -1
- package/dist/components/ix-upload.js.map +1 -1
- package/dist/components/ix-validation-tooltip.js +8 -7
- package/dist/components/ix-validation-tooltip.js.map +1 -1
- package/dist/components/ix-workflow-step.js +5 -12
- package/dist/components/ix-workflow-step.js.map +1 -1
- package/dist/components/ix-workflow-steps.js +9 -7
- package/dist/components/ix-workflow-steps.js.map +1 -1
- package/dist/components/map-navigation-overlay.js +3 -2
- package/dist/components/map-navigation-overlay.js.map +1 -1
- package/dist/components/menu-avatar-item.js +1 -1
- package/dist/components/menu-avatar-item.js.map +1 -1
- package/dist/components/menu-item.js +8 -2
- package/dist/components/menu-item.js.map +1 -1
- package/dist/components/menu-service.js +79 -1
- package/dist/components/menu-service.js.map +1 -1
- package/dist/components/my-component.js.map +1 -1
- package/dist/components/select-item.js +3 -2
- package/dist/components/select-item.js.map +1 -1
- package/dist/components/select.js +70 -49
- package/dist/components/select.js.map +1 -1
- package/dist/{esm/shadow-dom-6860b1c4.js → components/shadow-dom.js} +4 -1
- package/dist/components/shadow-dom.js.map +1 -0
- package/dist/components/spinner.js +1 -1
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/tab-item.js +11 -3
- package/dist/components/tab-item.js.map +1 -1
- package/dist/components/tabs.js +23 -8
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/theme-switcher.js +35 -3
- package/dist/components/theme-switcher.js.map +1 -1
- package/dist/components/time-picker.js +18 -12
- package/dist/components/time-picker.js.map +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.js.map +1 -1
- package/dist/components/tree-item.js +3 -2
- package/dist/components/tree-item.js.map +1 -1
- package/dist/components/typography.js +28 -12
- package/dist/components/typography.js.map +1 -1
- package/dist/esm/base-button-87048318.js +47 -0
- package/dist/esm/base-button-87048318.js.map +1 -0
- package/dist/esm/base-icon-button-afac2d95.js +18 -0
- package/dist/esm/base-icon-button-afac2d95.js.map +1 -0
- package/dist/esm/breakpoints-b8d59fd9.js +25 -0
- package/dist/esm/breakpoints-b8d59fd9.js.map +1 -0
- package/dist/esm/context-6a3bc77f.js +101 -0
- package/dist/esm/context-6a3bc77f.js.map +1 -0
- package/dist/esm/{floating-ui.dom.esm-9b203a02.js → floating-ui.dom.esm-cbe44820.js} +654 -534
- package/dist/esm/floating-ui.dom.esm-cbe44820.js.map +1 -0
- package/dist/esm/{icon-4ac90a6d.js → icon-f54a8bc4.js} +2 -2
- package/dist/esm/{icon-4ac90a6d.js.map → icon-f54a8bc4.js.map} +1 -1
- package/dist/esm/index-7b24b7fa.js +6 -0
- package/dist/esm/index-7b24b7fa.js.map +1 -0
- package/dist/esm/{index-7334ee80.js → index-eb0be730.js} +46 -398
- package/dist/esm/index-eb0be730.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/ix-action-card.entry.js +3 -3
- package/dist/esm/ix-action-card.entry.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +10 -5
- package/dist/esm/ix-application-header.entry.js.map +1 -1
- package/dist/esm/ix-application-sidebar.entry.js +43 -0
- package/dist/esm/ix-application-sidebar.entry.js.map +1 -0
- package/dist/esm/ix-application.entry.js +105 -0
- package/dist/esm/ix-application.entry.js.map +1 -0
- package/dist/esm/ix-avatar.entry.js +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +44 -10
- package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
- package/dist/esm/ix-blind.entry.js +5 -4
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb_2.entry.js +100 -92
- package/dist/esm/ix-breadcrumb_2.entry.js.map +1 -1
- package/dist/esm/ix-burger-menu.entry.js +3 -3
- package/dist/esm/ix-burger-menu.entry.js.map +1 -1
- package/dist/esm/ix-button.entry.js +22 -7
- package/dist/esm/ix-button.entry.js.map +1 -1
- package/dist/esm/ix-card-accordion_2.entry.js +2 -2
- package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
- package/dist/esm/ix-card-list.entry.js +2 -2
- package/dist/esm/ix-card-list.entry.js.map +1 -1
- package/dist/esm/ix-card_2.entry.js +3 -3
- package/dist/esm/ix-card_2.entry.js.map +1 -1
- package/dist/esm/ix-category-filter.entry.js +73 -40
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-chip.entry.js +2 -2
- package/dist/esm/ix-chip.entry.js.map +1 -1
- package/dist/esm/ix-col.entry.js +73 -0
- package/dist/esm/ix-col.entry.js.map +1 -0
- package/dist/esm/ix-content-header.entry.js +1 -1
- package/dist/esm/ix-content.entry.js +28 -0
- package/dist/esm/ix-content.entry.js.map +1 -0
- package/dist/esm/ix-css-grid-item.entry.js +1 -1
- package/dist/esm/ix-css-grid-item.entry.js.map +1 -1
- package/dist/esm/ix-css-grid.entry.js +1 -1
- package/dist/esm/ix-css-grid.entry.js.map +1 -1
- package/dist/esm/ix-date-picker_2.entry.js +4 -4
- package/dist/esm/ix-date-picker_2.entry.js.map +1 -1
- package/dist/esm/ix-date-time-card.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/ix-drawer.entry.js +2 -2
- package/dist/esm/ix-drawer.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +4 -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-header.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
- package/dist/esm/ix-dropdown_2.entry.js +5 -7
- package/dist/esm/ix-dropdown_2.entry.js.map +1 -1
- 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_2.entry.js +3 -3
- package/dist/esm/ix-event-list_2.entry.js.map +1 -1
- package/dist/esm/ix-expanding-search.entry.js +2 -2
- package/dist/esm/ix-expanding-search.entry.js.map +1 -1
- package/dist/esm/ix-filter-chip.entry.js +4 -3
- package/dist/esm/ix-filter-chip.entry.js.map +1 -1
- package/dist/esm/ix-flip-tile_2.entry.js +28 -18
- package/dist/esm/ix-flip-tile_2.entry.js.map +1 -1
- package/dist/esm/ix-form-field.entry.js +23 -0
- package/dist/esm/ix-form-field.entry.js.map +1 -0
- package/dist/esm/ix-grid.entry.js +25 -0
- package/dist/esm/ix-grid.entry.js.map +1 -0
- package/dist/esm/ix-group-context-menu.entry.js +2 -2
- package/dist/esm/ix-group_2.entry.js +4 -4
- package/dist/esm/ix-group_2.entry.js.map +1 -1
- package/dist/esm/ix-icon-button.entry.js +21 -13
- package/dist/esm/ix-icon-button.entry.js.map +1 -1
- package/dist/esm/ix-icon-toggle-button.entry.js +84 -0
- package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -0
- package/dist/esm/ix-icon.entry.js +2 -2
- package/dist/esm/ix-input-group.entry.js +85 -18
- package/dist/esm/ix-input-group.entry.js.map +1 -1
- package/dist/esm/ix-key-value-list.entry.js +1 -1
- package/dist/esm/ix-key-value.entry.js +1 -1
- package/dist/esm/ix-kpi.entry.js +2 -2
- package/dist/esm/ix-kpi.entry.js.map +1 -1
- package/dist/esm/ix-link-button.entry.js +2 -2
- package/dist/esm/ix-link-button.entry.js.map +1 -1
- package/dist/esm/ix-map-navigation_2.entry.js +11 -3
- package/dist/esm/ix-map-navigation_2.entry.js.map +1 -1
- package/dist/esm/ix-menu-category.entry.js +6 -5
- package/dist/esm/ix-menu-category.entry.js.map +1 -1
- package/dist/esm/ix-menu_9.entry.js +101 -75
- package/dist/esm/ix-menu_9.entry.js.map +1 -1
- package/dist/esm/ix-message-bar.entry.js +2 -2
- package/dist/esm/ix-message-bar.entry.js.map +1 -1
- package/dist/esm/ix-modal-content.entry.js +2 -2
- package/dist/esm/ix-modal-content.entry.js.map +1 -1
- package/dist/esm/ix-modal-example.entry.js +1 -1
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-footer.entry.js.map +1 -1
- package/dist/esm/ix-modal-header.entry.js +2 -2
- package/dist/esm/ix-modal-header.entry.js.map +1 -1
- package/dist/esm/ix-modal-loading.entry.js +1 -1
- package/dist/esm/ix-modal.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-pagination.entry.js +32 -15
- package/dist/esm/ix-pagination.entry.js.map +1 -1
- package/dist/esm/ix-pill.entry.js +2 -2
- package/dist/esm/ix-pill.entry.js.map +1 -1
- package/dist/esm/ix-push-card.entry.js +5 -2
- package/dist/esm/ix-push-card.entry.js.map +1 -1
- package/dist/esm/ix-row.entry.js +17 -0
- package/dist/esm/ix-row.entry.js.map +1 -0
- package/dist/esm/ix-select_2.entry.js +68 -49
- package/dist/esm/ix-select_2.entry.js.map +1 -1
- package/dist/esm/ix-spinner.entry.js +2 -2
- package/dist/esm/ix-spinner.entry.js.map +1 -1
- package/dist/esm/ix-split-button_2.entry.js +7 -5
- package/dist/esm/ix-split-button_2.entry.js.map +1 -1
- package/dist/esm/ix-tab-item.entry.js +11 -3
- package/dist/esm/ix-tab-item.entry.js.map +1 -1
- package/dist/esm/ix-tabs.entry.js +22 -7
- package/dist/esm/ix-tabs.entry.js.map +1 -1
- package/dist/esm/ix-tile.entry.js +2 -2
- package/dist/esm/ix-tile.entry.js.map +1 -1
- package/dist/esm/ix-toast_2.entry.js +2 -2
- package/dist/esm/ix-toast_2.entry.js.map +1 -1
- package/dist/esm/ix-toggle-button.entry.js +73 -0
- package/dist/esm/ix-toggle-button.entry.js.map +1 -0
- package/dist/esm/ix-toggle.entry.js +2 -2
- package/dist/esm/ix-toggle.entry.js.map +1 -1
- package/dist/esm/ix-tooltip.entry.js +2 -2
- package/dist/esm/ix-tree_2.entry.js +16 -9
- package/dist/esm/ix-tree_2.entry.js.map +1 -1
- package/dist/esm/ix-typography.entry.js +25 -12
- package/dist/esm/ix-typography.entry.js.map +1 -1
- package/dist/esm/ix-upload.entry.js +2 -2
- package/dist/esm/ix-upload.entry.js.map +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +8 -8
- package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
- package/dist/esm/ix-workflow-step_2.entry.js +14 -18
- package/dist/esm/ix-workflow-step_2.entry.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/menu-service-12a09006.js +156 -0
- package/dist/esm/menu-service-12a09006.js.map +1 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/my-component.entry.js.map +1 -1
- package/dist/esm/shadow-dom-b9df3d9b.js +21 -0
- package/dist/esm/shadow-dom-b9df3d9b.js.map +1 -0
- package/dist/esm/siemens-ix.js +3 -3
- package/dist/esm/{theme-switcher-7498e4f2.js → theme-switcher-9ede3823.js} +36 -4
- package/dist/esm/theme-switcher-9ede3823.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/p-00616f87.entry.js +2 -0
- package/dist/siemens-ix/{p-8c14a4a3.entry.js.map → p-00616f87.entry.js.map} +1 -1
- package/dist/siemens-ix/p-00df4a8c.js +2 -0
- package/dist/siemens-ix/p-00df4a8c.js.map +1 -0
- package/dist/siemens-ix/p-04eeba9e.js +2 -0
- package/dist/siemens-ix/p-04eeba9e.js.map +1 -0
- package/dist/siemens-ix/{p-b89172b4.entry.js → p-0e2045b9.entry.js} +2 -2
- package/dist/siemens-ix/p-0e2045b9.entry.js.map +1 -0
- package/dist/siemens-ix/p-134b6bd5.js +2 -0
- package/dist/siemens-ix/p-134b6bd5.js.map +1 -0
- package/dist/siemens-ix/p-14621fbd.entry.js +2 -0
- package/dist/siemens-ix/p-14621fbd.entry.js.map +1 -0
- package/dist/siemens-ix/p-1b705d7b.js +2 -0
- package/dist/siemens-ix/p-1b705d7b.js.map +1 -0
- package/dist/siemens-ix/p-1b9b19e6.js +2 -0
- package/dist/siemens-ix/p-1b9b19e6.js.map +1 -0
- package/dist/siemens-ix/p-1fc8e513.entry.js +2 -0
- package/dist/siemens-ix/p-1fc8e513.entry.js.map +1 -0
- package/dist/siemens-ix/{p-157f7ec0.entry.js → p-26855b3f.entry.js} +2 -2
- package/dist/siemens-ix/p-281fa225.entry.js +2 -0
- package/dist/siemens-ix/{p-33670e98.entry.js.map → p-281fa225.entry.js.map} +1 -1
- package/dist/siemens-ix/p-2a29e187.entry.js +2 -0
- package/dist/siemens-ix/{p-5fedb19b.entry.js.map → p-2a29e187.entry.js.map} +1 -1
- package/dist/siemens-ix/p-36c48f12.entry.js +2 -0
- package/dist/siemens-ix/p-36c48f12.entry.js.map +1 -0
- package/dist/siemens-ix/p-36f0b470.entry.js +2 -0
- package/dist/siemens-ix/p-36f0b470.entry.js.map +1 -0
- package/dist/siemens-ix/p-37dd62fc.entry.js +2 -0
- package/dist/siemens-ix/p-37dd62fc.entry.js.map +1 -0
- package/dist/siemens-ix/{p-0e86b47b.entry.js → p-3983ee89.entry.js} +2 -2
- package/dist/siemens-ix/p-3dbeeecf.entry.js +2 -0
- package/dist/siemens-ix/p-3dbeeecf.entry.js.map +1 -0
- package/dist/siemens-ix/p-3eabf464.entry.js +2 -0
- package/dist/siemens-ix/p-3eabf464.entry.js.map +1 -0
- package/dist/siemens-ix/p-40ecc8be.entry.js +2 -0
- package/dist/siemens-ix/p-40ecc8be.entry.js.map +1 -0
- package/dist/siemens-ix/{p-918450cd.entry.js → p-43497703.entry.js} +2 -2
- package/dist/siemens-ix/p-43497703.entry.js.map +1 -0
- package/dist/siemens-ix/{p-0fab8cae.entry.js → p-4659c550.entry.js} +2 -2
- package/dist/siemens-ix/p-475d8732.entry.js +2 -0
- package/dist/siemens-ix/p-475d8732.entry.js.map +1 -0
- package/dist/siemens-ix/p-49b9f9f5.entry.js +2 -0
- package/dist/siemens-ix/{p-c0345859.entry.js.map → p-49b9f9f5.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-02f01e39.entry.js → p-4dbae019.entry.js} +2 -2
- package/dist/siemens-ix/p-4f8954a7.entry.js +2 -0
- package/dist/siemens-ix/p-4f8954a7.entry.js.map +1 -0
- package/dist/siemens-ix/p-5017cf39.entry.js +2 -0
- package/dist/siemens-ix/p-5017cf39.entry.js.map +1 -0
- package/dist/siemens-ix/p-5029fd0f.entry.js +2 -0
- package/dist/siemens-ix/p-5029fd0f.entry.js.map +1 -0
- package/dist/siemens-ix/p-553ebcb1.entry.js +2 -0
- package/dist/siemens-ix/{p-b6d52b6f.entry.js.map → p-553ebcb1.entry.js.map} +1 -1
- package/dist/siemens-ix/p-5650383d.entry.js +2 -0
- package/dist/siemens-ix/p-5650383d.entry.js.map +1 -0
- package/dist/siemens-ix/p-567f71a2.entry.js +2 -0
- package/dist/siemens-ix/p-567f71a2.entry.js.map +1 -0
- package/dist/siemens-ix/p-5d132cc5.entry.js +2 -0
- package/dist/siemens-ix/p-5d132cc5.entry.js.map +1 -0
- package/dist/siemens-ix/p-5e3f8c0b.entry.js +2 -0
- package/dist/siemens-ix/p-5e3f8c0b.entry.js.map +1 -0
- package/dist/siemens-ix/p-61ffc6e1.entry.js +2 -0
- package/dist/siemens-ix/p-61ffc6e1.entry.js.map +1 -0
- package/dist/siemens-ix/p-655d177c.entry.js +2 -0
- package/dist/siemens-ix/p-655d177c.entry.js.map +1 -0
- package/dist/siemens-ix/p-737fca1b.entry.js +2 -0
- package/dist/siemens-ix/{p-1b1bc523.entry.js.map → p-737fca1b.entry.js.map} +1 -1
- package/dist/siemens-ix/p-76a509c7.js +3 -0
- package/dist/siemens-ix/p-76a509c7.js.map +1 -0
- package/dist/siemens-ix/{p-4d194d55.entry.js → p-7918fd50.entry.js} +2 -2
- package/dist/siemens-ix/p-7918fd50.entry.js.map +1 -0
- package/dist/siemens-ix/p-7a884056.entry.js +2 -0
- package/dist/siemens-ix/{p-c4ea8815.entry.js.map → p-7a884056.entry.js.map} +1 -1
- package/dist/siemens-ix/p-7b536489.entry.js +2 -0
- package/dist/siemens-ix/p-7b536489.entry.js.map +1 -0
- package/dist/siemens-ix/p-85f39bd4.js +2 -0
- package/dist/siemens-ix/p-85f39bd4.js.map +1 -0
- package/dist/siemens-ix/{p-db74796e.js → p-8c7d1e06.js} +2 -2
- package/dist/siemens-ix/p-8e39298f.js +2 -0
- package/dist/siemens-ix/p-8e39298f.js.map +1 -0
- package/dist/siemens-ix/p-94ecb1af.entry.js +2 -0
- package/dist/siemens-ix/p-94ecb1af.entry.js.map +1 -0
- package/dist/siemens-ix/p-9848e4de.entry.js +2 -0
- package/dist/siemens-ix/p-9848e4de.entry.js.map +1 -0
- package/dist/siemens-ix/p-98b03a9b.entry.js +2 -0
- package/dist/siemens-ix/p-98b03a9b.entry.js.map +1 -0
- package/dist/siemens-ix/p-9a05ac00.js +2 -0
- package/dist/siemens-ix/p-9a05ac00.js.map +1 -0
- package/dist/siemens-ix/p-9b6075de.entry.js +2 -0
- package/dist/siemens-ix/p-9b6075de.entry.js.map +1 -0
- package/dist/siemens-ix/p-a0fdaa04.entry.js +2 -0
- package/dist/siemens-ix/p-a18f1744.entry.js +2 -0
- package/dist/siemens-ix/p-a18f1744.entry.js.map +1 -0
- package/dist/siemens-ix/p-a3d6abfb.entry.js +2 -0
- package/dist/siemens-ix/p-a3d6abfb.entry.js.map +1 -0
- package/dist/siemens-ix/p-a5ae7bfa.entry.js +2 -0
- package/dist/siemens-ix/p-a5ae7bfa.entry.js.map +1 -0
- package/dist/siemens-ix/p-a6345f97.entry.js +2 -0
- package/dist/siemens-ix/p-a6345f97.entry.js.map +1 -0
- package/dist/siemens-ix/p-a8424ce3.entry.js +2 -0
- package/dist/siemens-ix/p-a8424ce3.entry.js.map +1 -0
- package/dist/siemens-ix/p-a85299c6.entry.js +2 -0
- package/dist/siemens-ix/p-a85299c6.entry.js.map +1 -0
- package/dist/siemens-ix/p-ab452b82.js +2 -0
- package/dist/siemens-ix/p-ab452b82.js.map +1 -0
- package/dist/siemens-ix/p-ab4bdb4e.entry.js +2 -0
- package/dist/siemens-ix/p-ab4bdb4e.entry.js.map +1 -0
- package/dist/siemens-ix/p-ac00ae47.entry.js +2 -0
- package/dist/siemens-ix/p-ac00ae47.entry.js.map +1 -0
- package/dist/siemens-ix/p-b007e4b4.entry.js +2 -0
- package/dist/siemens-ix/{p-b21bc31c.entry.js.map → p-b007e4b4.entry.js.map} +1 -1
- package/dist/siemens-ix/p-b0a1930d.entry.js +2 -0
- package/dist/siemens-ix/p-b0a1930d.entry.js.map +1 -0
- package/dist/siemens-ix/{p-34807901.entry.js → p-b25c770f.entry.js} +2 -2
- package/dist/siemens-ix/{p-34807901.entry.js.map → p-b25c770f.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-f38e7420.entry.js → p-b38eff08.entry.js} +2 -2
- package/dist/siemens-ix/p-b45ca515.entry.js +2 -0
- package/dist/siemens-ix/p-b45ca515.entry.js.map +1 -0
- package/dist/siemens-ix/{p-f0219d7a.entry.js → p-b735ee5e.entry.js} +2 -2
- package/dist/siemens-ix/p-c1ac2d01.entry.js +2 -0
- package/dist/siemens-ix/{p-06603826.entry.js.map → p-c1ac2d01.entry.js.map} +1 -1
- package/dist/siemens-ix/p-c1f5a59a.entry.js +2 -0
- package/dist/siemens-ix/p-c1f5a59a.entry.js.map +1 -0
- package/dist/siemens-ix/p-c75264af.entry.js +2 -0
- package/dist/siemens-ix/p-c75264af.entry.js.map +1 -0
- package/dist/siemens-ix/p-cd0e77f1.entry.js +2 -0
- package/dist/siemens-ix/{p-9547706d.entry.js.map → p-cd0e77f1.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-d48d74af.entry.js → p-cd1e0061.entry.js} +2 -2
- package/dist/siemens-ix/p-ce0a7c1a.entry.js +2 -0
- package/dist/siemens-ix/{p-07a0b330.entry.js.map → p-ce0a7c1a.entry.js.map} +1 -1
- package/dist/siemens-ix/p-d214f57a.entry.js +2 -0
- package/dist/siemens-ix/{p-a9619a92.entry.js.map → p-d214f57a.entry.js.map} +1 -1
- package/dist/siemens-ix/p-d29bcf75.entry.js +2 -0
- package/dist/siemens-ix/p-d29bcf75.entry.js.map +1 -0
- package/dist/siemens-ix/{p-0dea55bf.entry.js → p-d87de06f.entry.js} +2 -2
- package/dist/siemens-ix/{p-d7e8417d.entry.js → p-da133606.entry.js} +2 -2
- package/dist/siemens-ix/p-da133606.entry.js.map +1 -0
- package/dist/siemens-ix/p-db174600.entry.js +2 -0
- package/dist/siemens-ix/p-db2f237f.entry.js +2 -0
- package/dist/siemens-ix/p-db2f237f.entry.js.map +1 -0
- package/dist/siemens-ix/p-dc77f962.entry.js +2 -0
- package/dist/siemens-ix/{p-d81d0f62.entry.js.map → p-dc77f962.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-81333042.entry.js → p-de013166.entry.js} +2 -2
- package/dist/siemens-ix/p-de013166.entry.js.map +1 -0
- package/dist/siemens-ix/p-e2c200f3.entry.js +2 -0
- package/dist/siemens-ix/{p-2ea3d53a.entry.js.map → p-e2c200f3.entry.js.map} +1 -1
- package/dist/siemens-ix/p-e610b2b8.entry.js +2 -0
- package/dist/siemens-ix/{p-e8f2e141.entry.js.map → p-e610b2b8.entry.js.map} +1 -1
- package/dist/siemens-ix/p-eb29049a.entry.js +2 -0
- package/dist/siemens-ix/p-eb29049a.entry.js.map +1 -0
- package/dist/siemens-ix/p-eb3f1ef6.entry.js +2 -0
- package/dist/siemens-ix/p-eb3f1ef6.entry.js.map +1 -0
- package/dist/siemens-ix/p-ebeef6fd.entry.js +2 -0
- package/dist/siemens-ix/p-ebeef6fd.entry.js.map +1 -0
- package/dist/siemens-ix/p-f71da594.entry.js +2 -0
- package/dist/siemens-ix/{p-7d2aec76.entry.js.map → p-f71da594.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-20aa7350.entry.js → p-f88b25d7.entry.js} +2 -2
- package/dist/siemens-ix/p-f9b004ba.entry.js +2 -0
- package/dist/siemens-ix/{p-bf019e35.entry.js.map → p-f9b004ba.entry.js.map} +1 -1
- package/dist/siemens-ix/p-f9d4ca13.entry.js +2 -0
- package/dist/siemens-ix/p-f9d4ca13.entry.js.map +1 -0
- package/dist/siemens-ix/p-feb80449.entry.js +2 -0
- package/dist/siemens-ix/{p-a64d88de.entry.js.map → p-feb80449.entry.js.map} +1 -1
- package/dist/siemens-ix/siemens-ix-core.css +1 -12289
- package/dist/siemens-ix/siemens-ix.css +8249 -11730
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
- package/dist/siemens-ix/theme/classic-dark.css +1 -1062
- package/dist/siemens-ix/theme/classic-light.css +1 -1062
- package/dist/siemens-ix/theme/legacy-classic-dark.css +1 -1061
- package/dist/siemens-ix/theme/legacy-classic-light.css +1 -1061
- package/dist/types/components/application/application.d.ts +36 -0
- package/dist/types/components/application-header/application-header.d.ts +2 -5
- package/dist/types/components/application-header/test/application-headet.ct.d.ts +1 -0
- package/dist/types/components/application-sidebar/application-sidebar.d.ts +7 -0
- package/dist/types/components/application-sidebar/events.d.ts +4 -0
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +14 -2
- package/dist/types/components/blind/blind.d.ts +5 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +15 -14
- package/dist/types/components/breadcrumb/test/breadcrumb.ct.d.ts +1 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +15 -0
- package/dist/types/components/button/base-button.d.ts +25 -0
- package/dist/types/components/button/button.d.ts +4 -10
- package/dist/types/components/category-filter/category-filter.d.ts +12 -5
- package/dist/types/components/col/col.d.ts +31 -0
- package/dist/types/components/content/content.d.ts +7 -0
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +7 -0
- package/dist/types/components/filter-chip/filter-chip.d.ts +5 -0
- package/dist/types/components/flip-tile/flip-tile.d.ts +9 -11
- package/dist/types/components/flip-tile/test/flip-tile.ct.d.ts +1 -0
- package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +6 -0
- package/dist/types/components/form-field/form-field.d.ts +10 -0
- package/dist/types/components/grid/grid.d.ts +18 -0
- package/dist/types/components/icon-button/base-icon-button.d.ts +2 -0
- package/dist/types/components/icon-button/icon-button.d.ts +2 -13
- package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +54 -0
- package/dist/types/components/input-group/input-group.d.ts +11 -1
- package/dist/types/components/map-navigation/map-navigation.d.ts +1 -0
- package/dist/types/components/menu/menu.d.ts +9 -14
- package/dist/types/components/menu-item/menu-item.d.ts +2 -0
- package/dist/types/components/pagination/pagination.d.ts +1 -1
- package/dist/types/components/row/row.d.ts +6 -0
- package/dist/types/components/select/select.d.ts +23 -7
- package/dist/types/components/tab-item/tab-item.d.ts +10 -0
- package/dist/types/components/tabs/tabs.d.ts +8 -0
- package/dist/types/components/tabs/test/tabs.ct.d.ts +1 -0
- package/dist/types/components/toggle-button/toggle-button.d.ts +48 -0
- package/dist/types/components/tree/test/tree.ct.d.ts +1 -0
- package/dist/types/components/tree/tree.d.ts +2 -1
- package/dist/types/components/typography/typography.d.ts +24 -1
- package/dist/types/components/utils/application-layout/context.d.ts +6 -0
- package/dist/types/components/utils/application-layout/index.d.ts +1 -0
- package/dist/types/components/utils/application-layout/service.d.ts +16 -0
- package/dist/types/components/utils/breakpoints.d.ts +8 -0
- package/dist/types/components/utils/context.d.ts +57 -0
- package/dist/types/components/utils/shadow-dom.d.ts +1 -1
- package/dist/types/components/utils/theme-switcher.d.ts +10 -3
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +1 -1
- package/dist/types/components/workflow-step/workflow-step.d.ts +1 -2
- package/dist/types/components/workflow-steps/test/workflow-steps.ct.d.ts +1 -0
- package/dist/types/components/workflow-steps/workflow-steps.d.ts +0 -5
- package/dist/types/components.d.ts +556 -167
- package/package.json +7 -5
- package/scss/_core.scss +66 -0
- package/scss/components/_checkboxes.scss +9 -3
- package/scss/components/_fonts.scss +131 -0
- package/scss/components/_table.scss +1 -1
- package/scss/components/form/_input.scss +155 -0
- package/scss/ix-core.scss +2 -75
- package/scss/ix.scss +3 -74
- package/scss/{_fonts.scss → legacy/_fonts.scss} +1 -1
- package/scss/{components → legacy/components}/_buttons.scss +14 -12
- package/scss/{components → legacy/components}/_dropdown.scss +1 -1
- package/scss/{components → legacy/components}/_forms.scss +6 -1
- package/scss/{components → legacy/components}/_modal.scss +1 -1
- package/scss/legacy/mixins/_fonts.scss +166 -0
- package/scss/mixins/_break-points.scss +25 -0
- package/scss/mixins/_fonts.scss +149 -105
- package/scss/mixins/_hover.scss +3 -1
- package/scss/mixins/_scrollbar.scss +44 -0
- package/scss/mixins/shadow-dom/_component.scss +4 -0
- package/scss/theme/classic-dark/_boxShadow.scss +5 -5
- package/scss/theme/classic-dark/_fontFamilies.scss +2 -1
- package/scss/theme/classic-dark/_fontSizes.scss +11 -0
- package/scss/theme/classic-dark/_fontWeights.scss +2 -1
- package/scss/theme/classic-dark/_index.scss +7 -0
- package/scss/theme/classic-dark/_letterSpacing.scss +13 -0
- package/scss/theme/classic-dark/_lineHeights.scss +4 -1
- package/scss/theme/classic-dark/_sizing.scss +12 -0
- package/scss/theme/classic-dark/_spacing.scss +12 -0
- package/scss/theme/classic-dark/_typography.scss +39 -16
- package/scss/theme/classic-light/_boxShadow.scss +5 -5
- package/scss/theme/classic-light/_fontFamilies.scss +2 -1
- package/scss/theme/classic-light/_fontSizes.scss +11 -0
- package/scss/theme/classic-light/_fontWeights.scss +2 -1
- package/scss/theme/classic-light/_index.scss +7 -0
- package/scss/theme/classic-light/_letterSpacing.scss +13 -0
- package/scss/theme/classic-light/_lineHeights.scss +4 -1
- package/scss/theme/classic-light/_sizing.scss +12 -0
- package/scss/theme/classic-light/_spacing.scss +12 -0
- package/scss/theme/classic-light/_typography.scss +39 -16
- package/scss/theme/legacy-classic-dark/_fontFamilies.scss +2 -1
- package/scss/theme/legacy-classic-dark/_fontSizes.scss +11 -0
- package/scss/theme/legacy-classic-dark/_fontWeights.scss +2 -1
- package/scss/theme/legacy-classic-dark/_index.scss +7 -0
- package/scss/theme/legacy-classic-dark/_letterSpacing.scss +13 -0
- package/scss/theme/legacy-classic-dark/_lineHeights.scss +4 -1
- package/scss/theme/legacy-classic-dark/_sizing.scss +12 -0
- package/scss/theme/legacy-classic-dark/_spacing.scss +12 -0
- package/scss/theme/legacy-classic-dark/_typography.scss +39 -16
- package/scss/theme/legacy-classic-light/_fontFamilies.scss +2 -1
- package/scss/theme/legacy-classic-light/_fontSizes.scss +11 -0
- package/scss/theme/legacy-classic-light/_fontWeights.scss +2 -1
- package/scss/theme/legacy-classic-light/_index.scss +7 -0
- package/scss/theme/legacy-classic-light/_letterSpacing.scss +13 -0
- package/scss/theme/legacy-classic-light/_lineHeights.scss +4 -1
- package/scss/theme/legacy-classic-light/_sizing.scss +12 -0
- package/scss/theme/legacy-classic-light/_spacing.scss +12 -0
- package/scss/theme/legacy-classic-light/_typography.scss +39 -16
- package/dist/cjs/base-button-497db257.js +0 -35
- package/dist/cjs/base-button-497db257.js.map +0 -1
- package/dist/cjs/context-2ce9a350.js +0 -26
- package/dist/cjs/context-2ce9a350.js.map +0 -1
- package/dist/cjs/floating-ui.dom.esm-b79b633f.js.map +0 -1
- package/dist/cjs/index-e56a1d39.js.map +0 -1
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +0 -214
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-index-button.cjs.entry.js +0 -28
- package/dist/cjs/ix-index-button.cjs.entry.js.map +0 -1
- package/dist/cjs/menu-service-d1b87142.js +0 -80
- package/dist/cjs/menu-service-d1b87142.js.map +0 -1
- package/dist/cjs/service-0e27b06b.js +0 -145
- package/dist/cjs/service-0e27b06b.js.map +0 -1
- package/dist/cjs/shadow-dom-f9b90696.js.map +0 -1
- package/dist/cjs/theme-switcher-bdbd0d30.js.map +0 -1
- package/dist/collection/components/animated-tab/animated-tab.js +0 -69
- package/dist/collection/components/animated-tab/animated-tab.js.map +0 -1
- package/dist/collection/components/animated-tabs/animated-tabs.css +0 -158
- package/dist/collection/components/animated-tabs/animated-tabs.js +0 -303
- package/dist/collection/components/animated-tabs/animated-tabs.js.map +0 -1
- package/dist/collection/components/index-button/index-button.css +0 -31
- package/dist/collection/components/index-button/index-button.js +0 -83
- package/dist/collection/components/index-button/index-button.js.map +0 -1
- package/dist/collection/components/layout/css-grid/builder.js.map +0 -1
- package/dist/collection/components/layout/css-grid/css-grid-item.js.map +0 -1
- package/dist/collection/components/layout/css-grid/css-grid.js.map +0 -1
- package/dist/collection/components/utils/screen/context.js +0 -34
- package/dist/collection/components/utils/screen/context.js.map +0 -1
- package/dist/collection/components/utils/screen/index.js.map +0 -1
- package/dist/collection/components/utils/screen/mode.js +0 -85
- package/dist/collection/components/utils/screen/mode.js.map +0 -1
- package/dist/collection/components/utils/screen/service.js +0 -68
- package/dist/collection/components/utils/screen/service.js.map +0 -1
- package/dist/components/index-button.js +0 -41
- package/dist/components/index-button.js.map +0 -1
- package/dist/components/ix-animated-tab.js +0 -39
- package/dist/components/ix-animated-tab.js.map +0 -1
- package/dist/components/ix-animated-tabs.js +0 -224
- package/dist/components/ix-animated-tabs.js.map +0 -1
- package/dist/components/ix-index-button.js +0 -8
- package/dist/components/ix-index-button.js.map +0 -1
- package/dist/components/service.js +0 -143
- package/dist/components/service.js.map +0 -1
- package/dist/esm/base-button-5bfeb71c.js +0 -33
- package/dist/esm/base-button-5bfeb71c.js.map +0 -1
- package/dist/esm/context-381170ae.js +0 -22
- package/dist/esm/context-381170ae.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-9b203a02.js.map +0 -1
- package/dist/esm/index-7334ee80.js.map +0 -1
- package/dist/esm/ix-animated-tab_2.entry.js +0 -209
- package/dist/esm/ix-animated-tab_2.entry.js.map +0 -1
- package/dist/esm/ix-index-button.entry.js +0 -24
- package/dist/esm/ix-index-button.entry.js.map +0 -1
- package/dist/esm/menu-service-b3076949.js +0 -78
- package/dist/esm/menu-service-b3076949.js.map +0 -1
- package/dist/esm/service-586129b5.js +0 -143
- package/dist/esm/service-586129b5.js.map +0 -1
- package/dist/esm/shadow-dom-6860b1c4.js.map +0 -1
- package/dist/esm/theme-switcher-7498e4f2.js.map +0 -1
- package/dist/siemens-ix/p-00f74fc9.entry.js +0 -2
- package/dist/siemens-ix/p-00f74fc9.entry.js.map +0 -1
- package/dist/siemens-ix/p-01c37ebe.entry.js +0 -2
- package/dist/siemens-ix/p-01c37ebe.entry.js.map +0 -1
- package/dist/siemens-ix/p-0574cf88.entry.js +0 -2
- package/dist/siemens-ix/p-0574cf88.entry.js.map +0 -1
- package/dist/siemens-ix/p-06603826.entry.js +0 -2
- package/dist/siemens-ix/p-06fcaee3.entry.js +0 -2
- package/dist/siemens-ix/p-06fcaee3.entry.js.map +0 -1
- package/dist/siemens-ix/p-07a0b330.entry.js +0 -2
- package/dist/siemens-ix/p-09ce5f12.entry.js +0 -2
- package/dist/siemens-ix/p-09ce5f12.entry.js.map +0 -1
- package/dist/siemens-ix/p-0c9ead45.entry.js +0 -2
- package/dist/siemens-ix/p-0c9ead45.entry.js.map +0 -1
- package/dist/siemens-ix/p-15996fa7.entry.js +0 -2
- package/dist/siemens-ix/p-15996fa7.entry.js.map +0 -1
- package/dist/siemens-ix/p-1b1bc523.entry.js +0 -2
- package/dist/siemens-ix/p-2ea3d53a.entry.js +0 -2
- package/dist/siemens-ix/p-303b8c2f.entry.js +0 -2
- package/dist/siemens-ix/p-303b8c2f.entry.js.map +0 -1
- package/dist/siemens-ix/p-323d5529.js +0 -2
- package/dist/siemens-ix/p-323d5529.js.map +0 -1
- package/dist/siemens-ix/p-33670e98.entry.js +0 -2
- package/dist/siemens-ix/p-34633470.entry.js +0 -2
- package/dist/siemens-ix/p-34633470.entry.js.map +0 -1
- package/dist/siemens-ix/p-38e69215.entry.js +0 -2
- package/dist/siemens-ix/p-38e69215.entry.js.map +0 -1
- package/dist/siemens-ix/p-3a99b0c8.entry.js +0 -2
- package/dist/siemens-ix/p-3a99b0c8.entry.js.map +0 -1
- package/dist/siemens-ix/p-45738e84.js +0 -2
- package/dist/siemens-ix/p-45738e84.js.map +0 -1
- package/dist/siemens-ix/p-4d194d55.entry.js.map +0 -1
- package/dist/siemens-ix/p-56a27b34.entry.js +0 -2
- package/dist/siemens-ix/p-56a27b34.entry.js.map +0 -1
- package/dist/siemens-ix/p-5b39e04e.js +0 -2
- package/dist/siemens-ix/p-5b39e04e.js.map +0 -1
- package/dist/siemens-ix/p-5fedb19b.entry.js +0 -2
- package/dist/siemens-ix/p-627148db.entry.js +0 -2
- package/dist/siemens-ix/p-627148db.entry.js.map +0 -1
- package/dist/siemens-ix/p-62f4db99.entry.js +0 -2
- package/dist/siemens-ix/p-62f4db99.entry.js.map +0 -1
- package/dist/siemens-ix/p-63b82e40.entry.js +0 -2
- package/dist/siemens-ix/p-63b82e40.entry.js.map +0 -1
- package/dist/siemens-ix/p-68c44614.entry.js +0 -2
- package/dist/siemens-ix/p-68c44614.entry.js.map +0 -1
- package/dist/siemens-ix/p-7021c2d1.entry.js +0 -2
- package/dist/siemens-ix/p-7021c2d1.entry.js.map +0 -1
- package/dist/siemens-ix/p-709d38fe.entry.js +0 -2
- package/dist/siemens-ix/p-709d38fe.entry.js.map +0 -1
- package/dist/siemens-ix/p-785726e8.entry.js +0 -2
- package/dist/siemens-ix/p-785726e8.entry.js.map +0 -1
- package/dist/siemens-ix/p-7d2aec76.entry.js +0 -2
- package/dist/siemens-ix/p-81333042.entry.js.map +0 -1
- package/dist/siemens-ix/p-8c14a4a3.entry.js +0 -2
- package/dist/siemens-ix/p-8ce73af1.entry.js +0 -2
- package/dist/siemens-ix/p-8ce73af1.entry.js.map +0 -1
- package/dist/siemens-ix/p-904aa275.entry.js +0 -2
- package/dist/siemens-ix/p-904aa275.entry.js.map +0 -1
- package/dist/siemens-ix/p-918450cd.entry.js.map +0 -1
- package/dist/siemens-ix/p-9547706d.entry.js +0 -2
- package/dist/siemens-ix/p-9903e755.entry.js +0 -2
- package/dist/siemens-ix/p-9903e755.entry.js.map +0 -1
- package/dist/siemens-ix/p-9d264ca8.entry.js +0 -2
- package/dist/siemens-ix/p-9d264ca8.entry.js.map +0 -1
- package/dist/siemens-ix/p-a64d88de.entry.js +0 -2
- package/dist/siemens-ix/p-a8e8a942.entry.js +0 -2
- package/dist/siemens-ix/p-a9619a92.entry.js +0 -2
- package/dist/siemens-ix/p-b21bc31c.entry.js +0 -2
- package/dist/siemens-ix/p-b6d52b6f.entry.js +0 -2
- package/dist/siemens-ix/p-b89172b4.entry.js.map +0 -1
- package/dist/siemens-ix/p-b899b25b.js +0 -3
- package/dist/siemens-ix/p-b899b25b.js.map +0 -1
- package/dist/siemens-ix/p-bf019e35.entry.js +0 -2
- package/dist/siemens-ix/p-c0345859.entry.js +0 -2
- package/dist/siemens-ix/p-c4ea8815.entry.js +0 -2
- package/dist/siemens-ix/p-c84a43ef.entry.js +0 -2
- package/dist/siemens-ix/p-c84a43ef.entry.js.map +0 -1
- package/dist/siemens-ix/p-d0a8aa6f.entry.js +0 -2
- package/dist/siemens-ix/p-d43bf856.js +0 -2
- package/dist/siemens-ix/p-d43bf856.js.map +0 -1
- package/dist/siemens-ix/p-d737ad96.js +0 -2
- package/dist/siemens-ix/p-d737ad96.js.map +0 -1
- package/dist/siemens-ix/p-d7e8417d.entry.js.map +0 -1
- package/dist/siemens-ix/p-d81d0f62.entry.js +0 -2
- package/dist/siemens-ix/p-d991a3d6.entry.js +0 -2
- package/dist/siemens-ix/p-d991a3d6.entry.js.map +0 -1
- package/dist/siemens-ix/p-dbca4dd5.entry.js +0 -2
- package/dist/siemens-ix/p-dbca4dd5.entry.js.map +0 -1
- package/dist/siemens-ix/p-e1c92dcb.entry.js +0 -2
- package/dist/siemens-ix/p-e1c92dcb.entry.js.map +0 -1
- package/dist/siemens-ix/p-e275814e.js +0 -2
- package/dist/siemens-ix/p-e275814e.js.map +0 -1
- package/dist/siemens-ix/p-e3db25ef.entry.js +0 -2
- package/dist/siemens-ix/p-e3db25ef.entry.js.map +0 -1
- package/dist/siemens-ix/p-e8f2e141.entry.js +0 -2
- package/dist/siemens-ix/p-eca0b89c.entry.js +0 -2
- package/dist/siemens-ix/p-eca0b89c.entry.js.map +0 -1
- package/dist/siemens-ix/p-ef73f7e3.entry.js +0 -2
- package/dist/siemens-ix/p-ef73f7e3.entry.js.map +0 -1
- package/dist/siemens-ix/p-f22423c2.js +0 -2
- package/dist/siemens-ix/p-f22423c2.js.map +0 -1
- package/dist/siemens-ix/p-f4d634f5.entry.js +0 -2
- package/dist/siemens-ix/p-f4d634f5.entry.js.map +0 -1
- package/dist/siemens-ix/p-fafe1aeb.entry.js +0 -2
- package/dist/siemens-ix/p-fafe1aeb.entry.js.map +0 -1
- package/dist/siemens-ix/p-fe073f2a.entry.js +0 -2
- package/dist/siemens-ix/p-fe073f2a.entry.js.map +0 -1
- package/dist/siemens-ix/p-ff17104c.entry.js +0 -2
- package/dist/siemens-ix/p-ff17104c.entry.js.map +0 -1
- package/dist/types/components/animated-tab/animated-tab.d.ts +0 -11
- package/dist/types/components/animated-tabs/animated-tabs.d.ts +0 -44
- package/dist/types/components/index-button/index-button.d.ts +0 -16
- package/dist/types/components/utils/screen/context.d.ts +0 -5
- package/dist/types/components/utils/screen/index.d.ts +0 -1
- package/dist/types/components/utils/screen/mode.d.ts +0 -13
- package/dist/types/components/utils/screen/service.d.ts +0 -15
- /package/dist/collection/components/{layout/css-grid → css-grid}/builder.js +0 -0
- /package/dist/collection/components/{layout/css-grid → css-grid}/css-grid-item.css +0 -0
- /package/dist/collection/components/{layout/css-grid → css-grid}/css-grid-item.js +0 -0
- /package/dist/collection/components/{layout/css-grid → css-grid}/css-grid.css +0 -0
- /package/dist/siemens-ix/{p-157f7ec0.entry.js.map → p-26855b3f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0e86b47b.entry.js.map → p-3983ee89.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0fab8cae.entry.js.map → p-4659c550.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-02f01e39.entry.js.map → p-4dbae019.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-db74796e.js.map → p-8c7d1e06.js.map} +0 -0
- /package/dist/siemens-ix/{p-a8e8a942.entry.js.map → p-a0fdaa04.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f38e7420.entry.js.map → p-b38eff08.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f0219d7a.entry.js.map → p-b735ee5e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d48d74af.entry.js.map → p-cd1e0061.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0dea55bf.entry.js.map → p-d87de06f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d0a8aa6f.entry.js.map → p-db174600.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-20aa7350.entry.js.map → p-f88b25d7.entry.js.map} +0 -0
- /package/dist/types/components/{layout/css-grid → css-grid}/builder.d.ts +0 -0
- /package/dist/types/components/{layout/css-grid → css-grid}/css-grid-item.d.ts +0 -0
- /package/dist/types/components/{layout/css-grid → css-grid}/css-grid.d.ts +0 -0
- /package/scss/{components → legacy/components}/_button-group.scss +0 -0
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-7334ee80.js';
|
|
2
|
-
import { a as anime } from './anime.es-185e9087.js';
|
|
3
|
-
import { A as Animation } from './animation-268dce50.js';
|
|
4
|
-
import { c as convertToAbbreviationString } from './rwd.util-cfc2ea72.js';
|
|
5
|
-
|
|
6
|
-
const animatedTabCss = ".sc-ix-animated-tab-h{display:block;height:100%;width:100%;position:absolute}";
|
|
7
|
-
|
|
8
|
-
const AnimatedTab = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.icon = undefined;
|
|
12
|
-
this.count = undefined;
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return (h(Host, null, h("slot", null)));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
AnimatedTab.style = animatedTabCss;
|
|
19
|
-
|
|
20
|
-
const animatedTabsCss = ".sc-ix-animated-tabs-h{--animate-duration:300ms;display:flex;flex-direction:column;align-items:center;height:100%;width:100%;position:relative}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs{display:flex;padding:0;margin:0;position:relative}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs{display:flex;justify-content:center;width:5rem;height:4.5rem;cursor:pointer;padding-top:0.625rem}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.bottom.sc-ix-animated-tabs{padding-top:0.875rem}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs{background:var(--theme-animated-tab-circle--background);border:solid 1px var(--theme-animated-tab-circle--border-color);display:flex;align-items:center;justify-content:center;border-radius:6.25rem;width:3rem;height:3rem;position:relative;transition:150ms}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs ix-icon.sc-ix-animated-tabs{color:var(--theme-animated-tab-icon--color) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled):hover{background:var(--theme-animated-tab-circle--background--hover);border-color:var(--theme-animated-tab-circle--border-color--hover)}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled):hover ix-icon.sc-ix-animated-tabs{color:var(--theme-animated-tab-icon--color--hover) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled):active{background:var(--theme-animated-tab-circle--background--active);border-color:var(--theme-animated-tab-circle--border-color--active)}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled):active ix-icon.sc-ix-animated-tabs{color:var(--theme-animated-tab-icon--color--active) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.selected.sc-ix-animated-tabs{background:var(--theme-animated-tab-circle--background--selected);border-color:var(--theme-animated-tab-circle--border-color--selected) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.selected.sc-ix-animated-tabs ix-icon.sc-ix-animated-tabs{color:var(--theme-animated-tab-icon--color--selected) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.selected.sc-ix-animated-tabs .count.sc-ix-animated-tabs{border-color:var(--theme-tab-pill--border-color--selected) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.disabled.sc-ix-animated-tabs ix-icon.sc-ix-animated-tabs,.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:disabled ix-icon.sc-ix-animated-tabs{color:var(--theme-animated-tab-icon--color--disabled) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs:not(.disabled):not(:disabled):focus-visible{border-color:var(--theme-focus--border-color) !important}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs .count.sc-ix-animated-tabs{-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);display:flex;align-items:center;height:1rem;position:absolute;background-color:var(--theme-pill-outline--background);bottom:-0.55rem;border:1px solid var(--theme-tab-pill--border-color);border-radius:6.25rem;color:var(--theme-pill-outline--color);padding:0 0.25rem;background:var(--theme-color-1);transition:150ms}.sc-ix-animated-tabs-h ul.sc-ix-animated-tabs li.sc-ix-animated-tabs .tab-container.sc-ix-animated-tabs .count.bottom.sc-ix-animated-tabs{top:-0.55rem}.sc-ix-animated-tabs-h .content-container.sc-ix-animated-tabs{display:flex;flex-direction:row;height:calc(100% - 4.5rem);width:100%;overflow-y:auto;overflow-x:hidden}.sc-ix-animated-tabs-h .tab-active-underline.sc-ix-animated-tabs{background-color:var(--theme-animated-tab-indicator--background--selected);height:0.125rem;width:5rem;margin-top:-0.125rem;transition:150ms;position:absolute;top:4.5rem}.sc-ix-animated-tabs-h .tab-active-underline.bottom.sc-ix-animated-tabs{top:0;margin-top:0}";
|
|
21
|
-
|
|
22
|
-
const AnimatedTabs = class {
|
|
23
|
-
constructor(hostRef) {
|
|
24
|
-
registerInstance(this, hostRef);
|
|
25
|
-
this.tabClick = createEvent(this, "tabClick", 7);
|
|
26
|
-
this.easing = 'easeInOutSine';
|
|
27
|
-
this.firstRender = true;
|
|
28
|
-
this.tabs = undefined;
|
|
29
|
-
this.activeIndex = undefined;
|
|
30
|
-
this.disableAnimations = false;
|
|
31
|
-
this.selectedIndex = 0;
|
|
32
|
-
this.tabPlacement = 'top';
|
|
33
|
-
}
|
|
34
|
-
onTabSelectionChange(newSelectionIndex, oldSelectionIndex) {
|
|
35
|
-
this.updateTabAnimation(oldSelectionIndex, newSelectionIndex);
|
|
36
|
-
}
|
|
37
|
-
onMouseDown() {
|
|
38
|
-
this.activeIndex = undefined;
|
|
39
|
-
}
|
|
40
|
-
get animatedTabs() {
|
|
41
|
-
return Array.from(this.hostElement.querySelectorAll('ix-animated-tab'));
|
|
42
|
-
}
|
|
43
|
-
get tabsContainer() {
|
|
44
|
-
return this.hostElement.querySelector('.tabs-container');
|
|
45
|
-
}
|
|
46
|
-
get contentContainer() {
|
|
47
|
-
return this.hostElement.querySelector('.content-container');
|
|
48
|
-
}
|
|
49
|
-
componentWillLoad() {
|
|
50
|
-
this.tabs = this.animatedTabs;
|
|
51
|
-
}
|
|
52
|
-
componentDidLoad() {
|
|
53
|
-
this.onTabSelectionChange(this.selectedIndex, -1);
|
|
54
|
-
this.observer = new MutationObserver(() => {
|
|
55
|
-
// Will trigger a re-render even if only the count attribute of a child tab changed
|
|
56
|
-
this.tabs = this.animatedTabs;
|
|
57
|
-
});
|
|
58
|
-
this.observer.observe(this.contentContainer, {
|
|
59
|
-
childList: true,
|
|
60
|
-
subtree: true,
|
|
61
|
-
attributes: true,
|
|
62
|
-
attributeFilter: ['count'],
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
//@ts-expect-error
|
|
66
|
-
disconnectCallback() {
|
|
67
|
-
var _a;
|
|
68
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
69
|
-
}
|
|
70
|
-
isSelected(tab) {
|
|
71
|
-
return this.tabs.indexOf(tab) === this.selectedIndex;
|
|
72
|
-
}
|
|
73
|
-
showTab(tab) {
|
|
74
|
-
if (this.isSelected(tab)) {
|
|
75
|
-
tab.classList.remove('d-none');
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
hideTab(tab) {
|
|
79
|
-
if (!this.isSelected(tab)) {
|
|
80
|
-
tab.classList.add('d-none');
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
slideOutLeft(tab) {
|
|
84
|
-
if (this.disableAnimations) {
|
|
85
|
-
this.hideTab(tab);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
anime({
|
|
89
|
-
targets: tab,
|
|
90
|
-
duration: Animation.mediumTime,
|
|
91
|
-
opacity: [1, 0],
|
|
92
|
-
translateX: [0, '-100%'],
|
|
93
|
-
easing: this.easing,
|
|
94
|
-
complete: () => {
|
|
95
|
-
this.hideTab(tab);
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
slideOutRight(tab) {
|
|
100
|
-
if (this.disableAnimations) {
|
|
101
|
-
this.hideTab(tab);
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
anime({
|
|
105
|
-
targets: tab,
|
|
106
|
-
duration: Animation.mediumTime,
|
|
107
|
-
opacity: [1, 0],
|
|
108
|
-
translateX: [0, '100%'],
|
|
109
|
-
easing: this.easing,
|
|
110
|
-
complete: () => {
|
|
111
|
-
this.hideTab(tab);
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
slideInLeft(tab) {
|
|
116
|
-
if (this.firstRender) {
|
|
117
|
-
tab.classList.remove('d-none');
|
|
118
|
-
this.firstRender = false;
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
if (this.disableAnimations) {
|
|
122
|
-
this.showTab(tab);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
anime({
|
|
126
|
-
targets: tab,
|
|
127
|
-
duration: Animation.mediumTime,
|
|
128
|
-
opacity: [0, 1],
|
|
129
|
-
translateX: ['-100%', 0],
|
|
130
|
-
easing: this.easing,
|
|
131
|
-
begin: () => {
|
|
132
|
-
this.showTab(tab);
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
slideInRight(tab) {
|
|
137
|
-
if (this.firstRender) {
|
|
138
|
-
tab.classList.remove('d-none');
|
|
139
|
-
this.firstRender = false;
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
if (this.disableAnimations) {
|
|
143
|
-
this.showTab(tab);
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
anime({
|
|
147
|
-
targets: tab,
|
|
148
|
-
duration: Animation.mediumTime,
|
|
149
|
-
opacity: [0, 1],
|
|
150
|
-
translateX: ['100%', 0],
|
|
151
|
-
easing: this.easing,
|
|
152
|
-
begin: () => {
|
|
153
|
-
this.showTab(tab);
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
updateTabAnimation(oldIndex, newIndex) {
|
|
158
|
-
var _a;
|
|
159
|
-
(_a = this.tabs) === null || _a === void 0 ? void 0 : _a.forEach((tab, tabIndex) => {
|
|
160
|
-
if (tabIndex === oldIndex) {
|
|
161
|
-
if (tabIndex < newIndex) {
|
|
162
|
-
this.slideOutLeft(tab);
|
|
163
|
-
}
|
|
164
|
-
else if (tabIndex > newIndex) {
|
|
165
|
-
this.slideOutRight(tab);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
else if (tabIndex === newIndex) {
|
|
169
|
-
if (tabIndex < oldIndex) {
|
|
170
|
-
this.slideInLeft(tab);
|
|
171
|
-
}
|
|
172
|
-
else if (tabIndex > oldIndex) {
|
|
173
|
-
this.slideInRight(tab);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
tab.classList.add('d-none');
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
onTabClick(index) {
|
|
182
|
-
this.selectedIndex = index;
|
|
183
|
-
this.tabClick.emit(index);
|
|
184
|
-
}
|
|
185
|
-
onTabMouseDown(index) {
|
|
186
|
-
this.activeIndex = index;
|
|
187
|
-
}
|
|
188
|
-
render() {
|
|
189
|
-
return (h(Host, { class: { 'flex-column-reverse': this.tabPlacement === 'bottom' } }, h("ul", { class: "tabs-container" }, this.animatedTabs.map((element, index) => (h("li", { class: { bottom: this.tabPlacement === 'bottom' }, onClick: () => this.onTabClick(index), onMouseDown: () => this.onTabMouseDown(index) }, h("div", { class: {
|
|
190
|
-
'tab-container': true,
|
|
191
|
-
selected: this.selectedIndex === index,
|
|
192
|
-
} }, h("ix-icon", { name: element.icon }), element.count ? (h("span", { class: {
|
|
193
|
-
count: true,
|
|
194
|
-
bottom: this.tabPlacement === 'bottom',
|
|
195
|
-
} }, convertToAbbreviationString(element.count))) : (''))))), h("div", { class: {
|
|
196
|
-
'tab-active-underline': true,
|
|
197
|
-
bottom: this.tabPlacement === 'bottom',
|
|
198
|
-
}, style: { 'margin-left': `calc(${this.selectedIndex} * 5rem)` } })), h("div", { class: "content-container" }, h("slot", null))));
|
|
199
|
-
}
|
|
200
|
-
get hostElement() { return getElement(this); }
|
|
201
|
-
static get watchers() { return {
|
|
202
|
-
"selectedIndex": ["onTabSelectionChange"]
|
|
203
|
-
}; }
|
|
204
|
-
};
|
|
205
|
-
AnimatedTabs.style = animatedTabsCss;
|
|
206
|
-
|
|
207
|
-
export { AnimatedTab as ix_animated_tab, AnimatedTabs as ix_animated_tabs };
|
|
208
|
-
|
|
209
|
-
//# sourceMappingURL=ix-animated-tab_2.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"ix-animated-tab.ix-animated-tabs.entry.js","mappings":"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","names":[],"sources":["./src/components/animated-tab/animated-tab.scss?tag=ix-animated-tab&encapsulation=scoped","./src/components/animated-tab/animated-tab.tsx","./src/components/animated-tabs/animated-tabs.scss?tag=ix-animated-tabs&encapsulation=scoped","./src/components/animated-tabs/animated-tabs.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:host {\n display: block;\n height: 100%;\n width: 100%;\n position: absolute;\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';\n\n@Component({\n tag: 'ix-animated-tab',\n styleUrl: 'animated-tab.scss',\n scoped: true,\n})\nexport class AnimatedTab {\n /**\n * Icon of the tab\n */\n @Prop() icon: string;\n\n /**\n * Show notification number\n */\n @Prop({ reflect: true }) count: number;\n\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 'common-variables';\n@import 'mixins/fonts';\n@import 'mixins/hover';\n\n:host {\n --animate-duration: #{$medium-time};\n\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n position: relative;\n\n ul {\n display: flex;\n padding: 0;\n margin: 0;\n position: relative;\n\n li {\n display: flex;\n justify-content: center;\n width: 5rem;\n height: 4.5rem;\n cursor: pointer;\n padding-top: 0.625rem;\n\n &.bottom {\n padding-top: 0.875rem;\n }\n\n .tab-container {\n background: var(--theme-animated-tab-circle--background);\n border: solid 1px var(--theme-animated-tab-circle--border-color);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6.25rem;\n width: 3rem;\n height: 3rem;\n position: relative;\n transition: $default-time;\n\n ix-icon {\n color: var(--theme-animated-tab-icon--color) !important;\n }\n\n @include hover {\n background: var(--theme-animated-tab-circle--background--hover);\n border-color: var(--theme-animated-tab-circle--border-color--hover);\n\n ix-icon {\n color: var(--theme-animated-tab-icon--color--hover) !important;\n }\n }\n\n @include active {\n background: var(--theme-animated-tab-circle--background--active);\n border-color: var(--theme-animated-tab-circle--border-color--active);\n\n ix-icon {\n color: var(--theme-animated-tab-icon--color--active) !important;\n }\n }\n\n &.selected {\n background: var(--theme-animated-tab-circle--background--selected);\n border-color: var(\n --theme-animated-tab-circle--border-color--selected\n ) !important;\n\n ix-icon {\n color: var(--theme-animated-tab-icon--color--selected) !important;\n }\n\n .count {\n border-color: var(\n --theme-tab-pill--border-color--selected\n ) !important;\n }\n }\n\n // TODO\n &.disabled,\n &:disabled {\n ix-icon {\n color: var(--theme-animated-tab-icon--color--disabled) !important;\n }\n }\n\n // TODO\n @include focus-visible {\n border-color: var(--theme-focus--border-color) !important;\n }\n\n .count {\n @include text-caption-single;\n display: flex;\n align-items: center;\n height: 1rem;\n position: absolute;\n background-color: var(--theme-pill-outline--background);\n bottom: -0.55rem;\n border: 1px solid var(--theme-tab-pill--border-color);\n border-radius: 6.25rem;\n color: var(--theme-pill-outline--color);\n padding: 0 $tiny-space;\n background: var(--theme-color-1);\n transition: $default-time;\n\n &.bottom {\n top: -0.55rem;\n }\n }\n }\n }\n }\n\n .content-container {\n display: flex;\n flex-direction: row;\n height: calc(100% - 4.5rem);\n width: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n }\n\n .tab-active-underline {\n background-color: var(--theme-animated-tab-indicator--background--selected);\n height: 0.125rem;\n width: 5rem;\n margin-top: -0.125rem;\n transition: $default-time;\n position: absolute;\n top: 4.5rem;\n\n &.bottom {\n top: 0;\n margin-top: 0;\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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport anime from 'animejs';\nimport Animation from '../utils/animation';\nimport { convertToAbbreviationString } from '../utils/rwd.util';\n\n@Component({\n tag: 'ix-animated-tabs',\n styleUrl: 'animated-tabs.scss',\n scoped: true,\n})\nexport class AnimatedTabs {\n @Element() hostElement: HTMLIxAnimatedTabsElement;\n\n @State() tabs: HTMLIxAnimatedTabElement[];\n\n @State() activeIndex: number;\n\n /**\n * @internal For debugging purposes only\n */\n @Prop() disableAnimations = false;\n\n /**\n * Current selected tab index\n */\n @Prop() selectedIndex = 0;\n\n /**\n * Placement of the tabs\n */\n @Prop() tabPlacement: 'top' | 'bottom' = 'top';\n\n /**\n * Tab navigated\n */\n @Event() tabClick: EventEmitter;\n\n private easing = 'easeInOutSine';\n private firstRender = true;\n private observer: MutationObserver;\n\n @Watch('selectedIndex')\n onTabSelectionChange(newSelectionIndex: number, oldSelectionIndex: number) {\n this.updateTabAnimation(oldSelectionIndex, newSelectionIndex);\n }\n\n @Listen('mouseup', { passive: true })\n onMouseDown() {\n this.activeIndex = undefined;\n }\n\n get animatedTabs() {\n return Array.from(this.hostElement.querySelectorAll('ix-animated-tab'));\n }\n\n get tabsContainer() {\n return this.hostElement.querySelector('.tabs-container');\n }\n\n get contentContainer() {\n return this.hostElement.querySelector('.content-container');\n }\n\n componentWillLoad() {\n this.tabs = this.animatedTabs;\n }\n\n componentDidLoad() {\n this.onTabSelectionChange(this.selectedIndex, -1);\n\n this.observer = new MutationObserver(() => {\n // Will trigger a re-render even if only the count attribute of a child tab changed\n this.tabs = this.animatedTabs;\n });\n\n this.observer.observe(this.contentContainer, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['count'],\n });\n }\n\n //@ts-expect-error\n private disconnectCallback(): void {\n this.observer?.disconnect();\n }\n\n private isSelected(tab: HTMLElement) {\n return this.tabs.indexOf(tab as any) === this.selectedIndex;\n }\n\n private showTab(tab: HTMLElement) {\n if (this.isSelected(tab)) {\n tab.classList.remove('d-none');\n }\n }\n\n private hideTab(tab: HTMLElement) {\n if (!this.isSelected(tab)) {\n tab.classList.add('d-none');\n }\n }\n\n private slideOutLeft(tab: HTMLElement) {\n if (this.disableAnimations) {\n this.hideTab(tab);\n\n return;\n }\n\n anime({\n targets: tab,\n duration: Animation.mediumTime,\n opacity: [1, 0],\n translateX: [0, '-100%'],\n easing: this.easing,\n complete: () => {\n this.hideTab(tab);\n },\n });\n }\n\n private slideOutRight(tab: HTMLElement) {\n if (this.disableAnimations) {\n this.hideTab(tab);\n\n return;\n }\n\n anime({\n targets: tab,\n duration: Animation.mediumTime,\n opacity: [1, 0],\n translateX: [0, '100%'],\n easing: this.easing,\n complete: () => {\n this.hideTab(tab);\n },\n });\n }\n\n private slideInLeft(tab: HTMLElement) {\n if (this.firstRender) {\n tab.classList.remove('d-none');\n this.firstRender = false;\n return;\n }\n\n if (this.disableAnimations) {\n this.showTab(tab);\n\n return;\n }\n\n anime({\n targets: tab,\n duration: Animation.mediumTime,\n opacity: [0, 1],\n translateX: ['-100%', 0],\n easing: this.easing,\n begin: () => {\n this.showTab(tab);\n },\n });\n }\n\n private slideInRight(tab: HTMLElement) {\n if (this.firstRender) {\n tab.classList.remove('d-none');\n this.firstRender = false;\n return;\n }\n\n if (this.disableAnimations) {\n this.showTab(tab);\n\n return;\n }\n\n anime({\n targets: tab,\n duration: Animation.mediumTime,\n opacity: [0, 1],\n translateX: ['100%', 0],\n easing: this.easing,\n begin: () => {\n this.showTab(tab);\n },\n });\n }\n\n private updateTabAnimation(oldIndex: number, newIndex: number) {\n this.tabs?.forEach((tab, tabIndex) => {\n if (tabIndex === oldIndex) {\n if (tabIndex < newIndex) {\n this.slideOutLeft(tab);\n } else if (tabIndex > newIndex) {\n this.slideOutRight(tab);\n }\n } else if (tabIndex === newIndex) {\n if (tabIndex < oldIndex) {\n this.slideInLeft(tab);\n } else if (tabIndex > oldIndex) {\n this.slideInRight(tab);\n }\n } else {\n tab.classList.add('d-none');\n }\n });\n }\n\n private onTabClick(index: number) {\n this.selectedIndex = index;\n this.tabClick.emit(index);\n }\n\n private onTabMouseDown(index: number) {\n this.activeIndex = index;\n }\n\n render() {\n return (\n <Host class={{ 'flex-column-reverse': this.tabPlacement === 'bottom' }}>\n <ul class=\"tabs-container\">\n {this.animatedTabs.map((element, index) => (\n <li\n class={{ bottom: this.tabPlacement === 'bottom' }}\n onClick={() => this.onTabClick(index)}\n onMouseDown={() => this.onTabMouseDown(index)}\n >\n <div\n class={{\n 'tab-container': true,\n selected: this.selectedIndex === index,\n }}\n >\n <ix-icon name={element.icon}></ix-icon>\n {element.count ? (\n <span\n class={{\n count: true,\n bottom: this.tabPlacement === 'bottom',\n }}\n >\n {convertToAbbreviationString(element.count)}\n </span>\n ) : (\n ''\n )}\n </div>\n </li>\n ))}\n <div\n class={{\n 'tab-active-underline': true,\n bottom: this.tabPlacement === 'bottom',\n }}\n style={{ 'margin-left': `calc(${this.selectedIndex} * 5rem)` }}\n ></div>\n </ul>\n <div class=\"content-container\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-7334ee80.js';
|
|
2
|
-
|
|
3
|
-
const indexButtonCss = ".sc-ix-index-button-h{max-height:2rem}.sc-ix-index-button-h .btn.sc-ix-index-button{min-width:2rem;height:2rem}.sc-ix-index-button-h .btn.selected.sc-ix-index-button{background-color:var(--theme-btn-invisible-secondary--background--selected);color:var(--theme-btn-invisible-secondary--color--selected)}";
|
|
4
|
-
|
|
5
|
-
const IxIndexButton = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.variant = 'primary';
|
|
9
|
-
this.selected = undefined;
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return (h(Host, null, h("button", { class: {
|
|
13
|
-
btn: true,
|
|
14
|
-
'btn-invisible-primary': this.variant === 'primary',
|
|
15
|
-
'btn-invisible-secondary': this.variant === 'secondary',
|
|
16
|
-
selected: this.selected,
|
|
17
|
-
} }, h("slot", null))));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
IxIndexButton.style = indexButtonCss;
|
|
21
|
-
|
|
22
|
-
export { IxIndexButton as ix_index_button };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=ix-index-button.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"ix-index-button.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,gTAAgT;;MCsB1T,aAAa;;;mBAIc,SAAS;;;EAO/C,MAAM;IACJ,QACE,EAAC,IAAI,QACH,cACE,KAAK,EAAE;QACL,GAAG,EAAE,IAAI;QACT,uBAAuB,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;QACnD,yBAAyB,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;QACvD,QAAQ,EAAE,IAAI,CAAC,QAAQ;OACxB,IAED,eAAa,CACN,CACJ,EACP;GACH;;;;;;","names":[],"sources":["./src/components/index-button/index-button.scss?tag=ix-index-button&encapsulation=scoped","./src/components/index-button/index-button.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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\n:host {\n max-height: $x-large-space;\n\n .btn {\n min-width: $x-large-space;\n height: $x-large-space;\n\n &.selected {\n background-color: var(--theme-btn-invisible-secondary--background--selected);\n color: var(--theme-btn-invisible-secondary--color--selected);\n }\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2022 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 { ButtonVariant } from '../button/button';\n\nexport type IndexButtonVariant = ButtonVariant;\n\n/**\n * @internal\n */\n@Component({\n tag: 'ix-index-button',\n styleUrl: 'index-button.scss',\n scoped: true,\n})\nexport class IxIndexButton {\n /**\n * Button variant\n */\n @Prop() variant: IndexButtonVariant = 'primary';\n\n /**\n * Selection state\n */\n @Prop() selected: boolean;\n\n render() {\n return (\n <Host>\n <button\n class={{\n btn: true,\n 'btn-invisible-primary': this.variant === 'primary',\n 'btn-invisible-secondary': this.variant === 'secondary',\n selected: this.selected,\n }}\n >\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { T as TypedEvent } from './typed-event-a230184a.js';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
5
|
-
*
|
|
6
|
-
* SPDX-License-Identifier: MIT
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
13
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
14
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
-
};
|
|
17
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
18
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
19
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
|
-
};
|
|
22
|
-
var _MenuService_isPinned;
|
|
23
|
-
class MenuService {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.menuElement = null;
|
|
26
|
-
this.menuExpandChange = new TypedEvent();
|
|
27
|
-
_MenuService_isPinned.set(this, false);
|
|
28
|
-
}
|
|
29
|
-
register(menuElement) {
|
|
30
|
-
if (this.menuElement) {
|
|
31
|
-
console.warn('Menu already defined');
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
this.menuElement = menuElement;
|
|
35
|
-
this.menuElement.addEventListener('expandChange', (event) => {
|
|
36
|
-
this.menuExpandChange.emit(event.detail);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
setIsPinned(pinned) {
|
|
40
|
-
__classPrivateFieldSet(this, _MenuService_isPinned, pinned, "f");
|
|
41
|
-
}
|
|
42
|
-
async open() {
|
|
43
|
-
if (this.menuElement) {
|
|
44
|
-
this.menuElement.toggleMenu(true);
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
async close() {
|
|
50
|
-
if (this.menuElement) {
|
|
51
|
-
this.menuElement.toggleMenu(false);
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
async toggle() {
|
|
57
|
-
if (this.menuElement) {
|
|
58
|
-
this.menuElement.toggleMenu();
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
get nativeElement() {
|
|
64
|
-
return this.menuElement;
|
|
65
|
-
}
|
|
66
|
-
get expandChange() {
|
|
67
|
-
return this.menuExpandChange;
|
|
68
|
-
}
|
|
69
|
-
get isPinned() {
|
|
70
|
-
return __classPrivateFieldGet(this, _MenuService_isPinned, "f");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
_MenuService_isPinned = new WeakMap();
|
|
74
|
-
const menuController = new MenuService();
|
|
75
|
-
|
|
76
|
-
export { menuController as m };
|
|
77
|
-
|
|
78
|
-
//# sourceMappingURL=menu-service-b3076949.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"menu-service-b3076949.js","mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;AAWA,MAAM,WAAW;EAAjB;IACE,gBAAW,GAA6B,IAAI,CAAC;IAC7C,qBAAgB,GAAG,IAAI,UAAU,EAAW,CAAC;IAC7C,gCAAY,KAAK,EAAC;GA0DnB;EAxDC,QAAQ,CAAC,WAA8B;IACrC,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;MACrC,OAAO;KACR;IACD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IAC/B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAC/B,cAAc,EACd,CAAC,KAA2B;MAC1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1C,CACF,CAAC;GACH;EAEM,WAAW,CAAC,MAAe;IAChC,uBAAA,IAAI,yBAAa,MAAM,MAAA,CAAC;GACzB;EAEM,MAAM,IAAI;IACf,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;MAClC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;GACd;EAEM,MAAM,KAAK;IAChB,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;MACnC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;GACd;EAEM,MAAM,MAAM;IACjB,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;MAC9B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;GACd;EAED,IAAI,aAAa;IACf,OAAO,IAAI,CAAC,WAAW,CAAC;GACzB;EAED,IAAI,YAAY;IACd,OAAO,IAAI,CAAC,gBAAgB,CAAC;GAC9B;EAED,IAAI,QAAQ;IACV,OAAO,uBAAA,IAAI,6BAAU,CAAC;GACvB;CACF;;MAEY,cAAc,GAAG,IAAI,WAAW;;;;","names":[],"sources":["./src/components/utils/menu-service/menu-service.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\nimport { TypedEvent } from '../typed-event';\n\nclass MenuService {\n menuElement: HTMLIxMenuElement | null = null;\n menuExpandChange = new TypedEvent<boolean>();\n #isPinned = false;\n\n register(menuElement: HTMLIxMenuElement) {\n if (this.menuElement) {\n console.warn('Menu already defined');\n return;\n }\n this.menuElement = menuElement;\n this.menuElement.addEventListener(\n 'expandChange',\n (event: CustomEvent<boolean>) => {\n this.menuExpandChange.emit(event.detail);\n }\n );\n }\n\n public setIsPinned(pinned: boolean) {\n this.#isPinned = pinned;\n }\n\n public async open() {\n if (this.menuElement) {\n this.menuElement.toggleMenu(true);\n return true;\n }\n\n return false;\n }\n\n public async close() {\n if (this.menuElement) {\n this.menuElement.toggleMenu(false);\n return true;\n }\n\n return false;\n }\n\n public async toggle() {\n if (this.menuElement) {\n this.menuElement.toggleMenu();\n return true;\n }\n\n return false;\n }\n\n get nativeElement() {\n return this.menuElement;\n }\n\n get expandChange() {\n return this.menuExpandChange;\n }\n\n get isPinned() {\n return this.#isPinned;\n }\n}\n\nexport const menuController = new MenuService();\n"],"version":3}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { T as TypedEvent } from './typed-event-a230184a.js';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
5
|
-
*
|
|
6
|
-
* SPDX-License-Identifier: MIT
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
let supportedModes = ['small', 'medium', 'large'];
|
|
12
|
-
const smallMediaQuery = `only screen and (max-width: 40em)`;
|
|
13
|
-
const mediumMediaQuery = `only screen and (min-width: 40.063em) and (max-width: 64em)`;
|
|
14
|
-
const largeMediaQuery = `only screen and (min-width: 64.063em)`;
|
|
15
|
-
const setSupportedModes = (modes) => (supportedModes = modes);
|
|
16
|
-
const createMediaQueryListener = (query, callback) => {
|
|
17
|
-
const listener = window.matchMedia(query);
|
|
18
|
-
const fn = (event) => {
|
|
19
|
-
callback(event);
|
|
20
|
-
};
|
|
21
|
-
listener.addEventListener('change', fn);
|
|
22
|
-
return {
|
|
23
|
-
matchMedia: listener,
|
|
24
|
-
dispose: () => {
|
|
25
|
-
listener.removeEventListener('change', fn);
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const getFallbackMode = (modes, detectedMode) => {
|
|
30
|
-
if (modes.length === 1) {
|
|
31
|
-
return modes[0];
|
|
32
|
-
}
|
|
33
|
-
if (detectedMode === 'large' && !modes.includes(detectedMode)) {
|
|
34
|
-
return getFallbackMode(modes, 'medium');
|
|
35
|
-
}
|
|
36
|
-
if (detectedMode === 'medium' && !modes.includes(detectedMode)) {
|
|
37
|
-
return getFallbackMode(modes, 'large');
|
|
38
|
-
}
|
|
39
|
-
if (detectedMode === 'small' && !modes.includes(detectedMode)) {
|
|
40
|
-
return getFallbackMode(modes, 'medium');
|
|
41
|
-
}
|
|
42
|
-
return detectedMode;
|
|
43
|
-
};
|
|
44
|
-
const createModeListener = (modeChangeCallback) => {
|
|
45
|
-
const smallListener = createMediaQueryListener(smallMediaQuery, ({ matches }) => {
|
|
46
|
-
if (!matches) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
modeChangeCallback(getFallbackMode(supportedModes, 'small'));
|
|
50
|
-
});
|
|
51
|
-
const mediumListener = createMediaQueryListener(mediumMediaQuery, ({ matches }) => {
|
|
52
|
-
if (!matches) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
modeChangeCallback(getFallbackMode(supportedModes, 'medium'));
|
|
56
|
-
});
|
|
57
|
-
const largeListener = createMediaQueryListener(largeMediaQuery, ({ matches }) => {
|
|
58
|
-
if (!matches) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
modeChangeCallback(getFallbackMode(supportedModes, 'large'));
|
|
62
|
-
});
|
|
63
|
-
const matchSmall = smallListener.matchMedia.matches;
|
|
64
|
-
const matchMedium = mediumListener.matchMedia.matches;
|
|
65
|
-
if (matchSmall) {
|
|
66
|
-
modeChangeCallback(getFallbackMode(supportedModes, 'small'));
|
|
67
|
-
}
|
|
68
|
-
else if (matchMedium) {
|
|
69
|
-
modeChangeCallback(getFallbackMode(supportedModes, 'medium'));
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
modeChangeCallback(getFallbackMode(supportedModes, 'large'));
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
dispose: () => {
|
|
76
|
-
smallListener.dispose();
|
|
77
|
-
mediumListener.dispose();
|
|
78
|
-
largeListener.dispose();
|
|
79
|
-
},
|
|
80
|
-
matchMedia: [
|
|
81
|
-
smallListener.matchMedia,
|
|
82
|
-
mediumListener.matchMedia,
|
|
83
|
-
largeListener.matchMedia,
|
|
84
|
-
],
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
89
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
90
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
91
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
92
|
-
};
|
|
93
|
-
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
94
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
95
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
96
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
97
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
98
|
-
};
|
|
99
|
-
var _ScreenMode_modeChangeListener, _ScreenMode_mode, _ScreenMode_isDetectionEnabled;
|
|
100
|
-
class ScreenMode {
|
|
101
|
-
constructor() {
|
|
102
|
-
_ScreenMode_modeChangeListener.set(this, new TypedEvent());
|
|
103
|
-
_ScreenMode_mode.set(this, 'large');
|
|
104
|
-
_ScreenMode_isDetectionEnabled.set(this, true);
|
|
105
|
-
createModeListener((mode) => {
|
|
106
|
-
if (!__classPrivateFieldGet(this, _ScreenMode_isDetectionEnabled, "f")) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
__classPrivateFieldGet(this, _ScreenMode_modeChangeListener, "f").emit(mode);
|
|
110
|
-
__classPrivateFieldSet(this, _ScreenMode_mode, mode, "f");
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
get mode() {
|
|
114
|
-
return __classPrivateFieldGet(this, _ScreenMode_mode, "f");
|
|
115
|
-
}
|
|
116
|
-
get onChange() {
|
|
117
|
-
return __classPrivateFieldGet(this, _ScreenMode_modeChangeListener, "f");
|
|
118
|
-
}
|
|
119
|
-
get isDetectionEnabled() {
|
|
120
|
-
return __classPrivateFieldGet(this, _ScreenMode_isDetectionEnabled, "f");
|
|
121
|
-
}
|
|
122
|
-
disableModeDetection() {
|
|
123
|
-
__classPrivateFieldSet(this, _ScreenMode_isDetectionEnabled, false, "f");
|
|
124
|
-
}
|
|
125
|
-
enableModeDetection() {
|
|
126
|
-
__classPrivateFieldSet(this, _ScreenMode_isDetectionEnabled, true, "f");
|
|
127
|
-
}
|
|
128
|
-
setMode(mode) {
|
|
129
|
-
__classPrivateFieldSet(this, _ScreenMode_mode, mode, "f");
|
|
130
|
-
__classPrivateFieldGet(this, _ScreenMode_modeChangeListener, "f").emit(mode);
|
|
131
|
-
}
|
|
132
|
-
setSupportedMods(modes) {
|
|
133
|
-
setSupportedModes(modes);
|
|
134
|
-
const mode = getFallbackMode(modes, __classPrivateFieldGet(this, _ScreenMode_mode, "f"));
|
|
135
|
-
this.setMode(mode);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
_ScreenMode_modeChangeListener = new WeakMap(), _ScreenMode_mode = new WeakMap(), _ScreenMode_isDetectionEnabled = new WeakMap();
|
|
139
|
-
const screenMode = new ScreenMode();
|
|
140
|
-
|
|
141
|
-
export { screenMode as s };
|
|
142
|
-
|
|
143
|
-
//# sourceMappingURL=service-586129b5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"service-586129b5.js","mappings":"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","names":[],"sources":["./src/components/utils/screen/mode.ts","./src/components/utils/screen/service.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 Mode = 'large' | 'medium' | 'small';\n\nlet supportedModes: Mode[] = ['small', 'medium', 'large'];\n\nconst smallMediaQuery = `only screen and (max-width: 40em)`;\nconst mediumMediaQuery = `only screen and (min-width: 40.063em) and (max-width: 64em)`;\nconst largeMediaQuery = `only screen and (min-width: 64.063em)`;\n\nexport type MediaQueryListener = {\n matchMedia: MediaQueryList;\n dispose: () => void;\n};\n\nexport const setSupportedModes = (modes: Mode[]) => (supportedModes = modes);\n\nexport const createMediaQueryListener = (\n query: string,\n callback: (event: MediaQueryListEvent) => void\n): MediaQueryListener => {\n const listener = window.matchMedia(query);\n const fn = (event: MediaQueryListEvent) => {\n callback(event);\n };\n listener.addEventListener('change', fn);\n\n return {\n matchMedia: listener,\n dispose: () => {\n listener.removeEventListener('change', fn);\n },\n };\n};\n\nexport const getFallbackMode = (modes: Mode[], detectedMode: Mode): Mode => {\n if (modes.length === 1) {\n return modes[0];\n }\n\n if (detectedMode === 'large' && !modes.includes(detectedMode)) {\n return getFallbackMode(modes, 'medium');\n }\n if (detectedMode === 'medium' && !modes.includes(detectedMode)) {\n return getFallbackMode(modes, 'large');\n }\n if (detectedMode === 'small' && !modes.includes(detectedMode)) {\n return getFallbackMode(modes, 'medium');\n }\n return detectedMode;\n};\n\nexport type ModeChangeCallback = (mode: Mode) => void;\n\nexport const createModeListener = (\n modeChangeCallback: (mode: Mode) => void\n) => {\n const smallListener = createMediaQueryListener(\n smallMediaQuery,\n ({ matches }) => {\n if (!matches) {\n return;\n }\n modeChangeCallback(getFallbackMode(supportedModes, 'small'));\n }\n );\n\n const mediumListener = createMediaQueryListener(\n mediumMediaQuery,\n ({ matches }) => {\n if (!matches) {\n return;\n }\n modeChangeCallback(getFallbackMode(supportedModes, 'medium'));\n }\n );\n\n const largeListener = createMediaQueryListener(\n largeMediaQuery,\n ({ matches }) => {\n if (!matches) {\n return;\n }\n modeChangeCallback(getFallbackMode(supportedModes, 'large'));\n }\n );\n\n const matchSmall = smallListener.matchMedia.matches;\n const matchMedium = mediumListener.matchMedia.matches;\n\n if (matchSmall) {\n modeChangeCallback(getFallbackMode(supportedModes, 'small'));\n } else if (matchMedium) {\n modeChangeCallback(getFallbackMode(supportedModes, 'medium'));\n } else {\n modeChangeCallback(getFallbackMode(supportedModes, 'large'));\n }\n\n return {\n dispose: () => {\n smallListener.dispose();\n mediumListener.dispose();\n largeListener.dispose();\n },\n matchMedia: [\n smallListener.matchMedia,\n mediumListener.matchMedia,\n largeListener.matchMedia,\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 */\nimport { TypedEvent } from '../typed-event';\nimport {\n createModeListener,\n getFallbackMode,\n Mode,\n setSupportedModes,\n} from './mode';\n\nclass ScreenMode {\n #modeChangeListener = new TypedEvent<Mode>();\n #mode: Mode = 'large';\n\n #isDetectionEnabled = true;\n\n constructor() {\n createModeListener((mode) => {\n if (!this.#isDetectionEnabled) {\n return;\n }\n\n this.#modeChangeListener.emit(mode);\n this.#mode = mode;\n });\n }\n\n get mode() {\n return this.#mode;\n }\n\n get onChange() {\n return this.#modeChangeListener;\n }\n\n get isDetectionEnabled() {\n return this.#isDetectionEnabled;\n }\n\n public disableModeDetection() {\n this.#isDetectionEnabled = false;\n }\n\n public enableModeDetection() {\n this.#isDetectionEnabled = true;\n }\n\n public setMode(mode: Mode) {\n this.#mode = mode;\n this.#modeChangeListener.emit(mode);\n }\n\n public setSupportedMods(modes: Mode[]) {\n setSupportedModes(modes);\n const mode = getFallbackMode(modes, this.#mode);\n\n this.setMode(mode);\n }\n}\n\nexport const screenMode = new ScreenMode();\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"shadow-dom-6860b1c4.js","mappings":"AAAA;;;;;;;;SAegB,kBAAkB,CAAC,IAAS;EAC1C,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC;SAEe,kBAAkB,CAAC,IAAS;EAC1C,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AAC/D;;;;","names":[],"sources":["./src/components/utils/shadow-dom.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 */\nexport function closestElement(selector: string, el: any) {\n return (\n el.closest(selector) ||\n closestElement(selector, (el.getRootNode() as any).host)\n );\n}\n\nexport function getSlottedElements(slot: any) {\n return slot.assignedElements({ flatten: true });\n}\n\nexport function hasSlottedElements(slot: any) {\n return slot.assignedElements({ flatten: true }).length !== 0;\n}\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"theme-switcher-7498e4f2.js","mappings":"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","names":[],"sources":["./src/components/utils/theme-switcher.ts"],"sourcesContent":["import { TypedEvent } from './typed-event';\n\nexport class ThemeSwitcher {\n readonly prefixTheme = 'theme-';\n readonly suffixLight = '-light';\n readonly suffixDark = '-dark';\n readonly defaultTheme = 'theme-classic-dark';\n\n mutationObserver: MutationObserver;\n _themeChanged = new TypedEvent<string>();\n\n public get themeChanged() {\n return this._themeChanged;\n }\n\n private hasVariantSuffix(className: string) {\n return (\n className.endsWith(this.suffixDark) ||\n className.endsWith(this.suffixLight)\n );\n }\n\n private isThemeClass(className: string) {\n return (\n className.startsWith(this.prefixTheme) && this.hasVariantSuffix(className)\n );\n }\n\n public setTheme(themeName: string) {\n if (!this.isThemeClass(themeName)) {\n throw Error(\n `Provided theme name ${themeName} does not match our naming conventions. (theme-<name>-(dark,light))`\n );\n }\n\n const oldThemes: string[] = [];\n\n document.body.classList.forEach((className) => {\n if (this.isThemeClass(className)) {\n oldThemes.push(className);\n }\n });\n\n document.body.classList.remove(...oldThemes);\n document.body.classList.add(themeName);\n }\n\n public toggleMode() {\n const oldThemes: string[] = [];\n\n document.body.classList.forEach((className) => {\n if (this.isThemeClass(className)) {\n oldThemes.push(className);\n }\n });\n\n if (oldThemes.length === 0) {\n document.body.classList.add(this.getOppositeMode(this.defaultTheme));\n return;\n }\n\n oldThemes.forEach((themeName) => {\n document.body.classList.replace(\n themeName,\n this.getOppositeMode(themeName)\n );\n });\n }\n\n private getOppositeMode(themeName: string) {\n if (themeName.endsWith(this.suffixDark)) {\n return themeName.replace(/-dark$/g, this.suffixLight);\n }\n\n if (themeName.endsWith(this.suffixLight)) {\n return themeName.replace(/-light$/g, this.suffixDark);\n }\n }\n\n private handleMutations(mutations: MutationRecord[]) {\n return mutations.forEach((mutation) => {\n const { target } = mutation;\n (target as HTMLElement).classList.forEach((className) => {\n if (\n this.isThemeClass(className) &&\n !mutation.oldValue?.includes(className)\n ) {\n this._themeChanged.emit(className);\n }\n });\n });\n }\n\n private registerMutationObserver() {\n if (typeof (window as any) === 'undefined') {\n return;\n }\n\n if (!('MutationObserver' in window)) {\n console.warn(\n 'ThemeSwitcher not supported by your browser. Missing MutationObserver API'\n );\n return;\n }\n\n this.mutationObserver = new MutationObserver((mutations) => {\n this.handleMutations(mutations);\n });\n\n this.mutationObserver.observe(document.body, {\n attributeFilter: ['class'],\n attributeOldValue: true,\n });\n }\n\n public constructor() {\n this.registerMutationObserver();\n }\n}\n\nexport const themeSwitcher = new ThemeSwitcher();\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as e,H as n,g as a}from"./p-b899b25b.js";const i=':host{display:flex;position:relative;flex-direction:column;width:100%;height:2.5rem;max-height:2.5rem;transition:var(--theme-default-time) ease-in-out}:host *,:host *::after,:host *::before{box-sizing:border-box}:host .expand-action{all:unset;display:flex;position:relative;-webkit-appearance:button;-moz-appearance:button;appearance:button;height:2.5rem;width:100%;background-color:var(--theme-color-component-1);align-items:center;justify-content:flex-start}:host .expand-action:not(.disabled):not(:disabled).hover,:host .expand-action:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}:host .expand-action:not(.disabled):not(:disabled).active,:host .expand-action:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}:host .expand-action:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .expand-action::before{content:"";position:absolute;width:100%;height:100%;background-color:var(--ix-card-background);z-index:-1}:host .expand-action:not(.show),:host .expand-action:not(.show)::before{border-bottom-left-radius:var(--theme-default-border-radius);border-bottom-right-radius:var(--theme-default-border-radius)}:host .expand-icon{margin-left:0.5rem;transition:var(--theme-default-time) transform ease-in-out}:host .expand-icon.show{transform:rotate(90deg)}:host .expand-content{display:flex;flex-direction:column;opacity:0;position:absolute;top:2.5rem;transition:var(--theme-default-time) ease-in-out;width:100%;height:0;max-height:20rem;background-color:var(--theme-color-component-1)}:host .expand-content.show{height:15rem;opacity:1}:host .expand-content.show .expand-content-body{display:none;overflow:hidden}:host .expand-content.show .expand-content-body{display:block;overflow:auto}:host .expand-content-footer{display:block;position:relative;width:100%;height:1rem;margin-top:auto;margin-bottom:0px;background-color:var(--theme-color-component-1);border-bottom-left-radius:var(--theme-default-border-radius);border-bottom-right-radius:var(--theme-default-border-radius)}:host(.show){height:calc(15rem + 2.5rem);max-height:calc(15rem + 2.5rem)}';let s=0;const r=(t="expand-content")=>[t,s++].join("-");const d=class{constructor(e){t(this,e);this.accordionExpand=o(this,"accordionExpand",7);this.expandContent=false}get expandedContent(){return this.hostElement.shadowRoot.querySelector(".expand-content")}onExpandActionClick(t){t.preventDefault();t.stopPropagation();this.expandContent=!this.expandContent;this.accordionExpand.emit({expand:this.expandContent,nativeEvent:t});if(this.expandContent){this.scrollExpandedContentIntoView()}}scrollExpandedContentIntoView(){setTimeout((()=>{const t=this.expandedContent.getBoundingClientRect();if(t.bottom>window.innerHeight){this.hostElement.shadowRoot.querySelector(".expand-content").scrollIntoView(false)}}),150)}render(){return e(n,{slot:"card-accordion",class:{show:this.expandContent}},e("button",{tabIndex:0,class:{"expand-action":true,show:this.expandContent},onClick:t=>this.onExpandActionClick(t),role:"button",type:"button","aria-expanded":this.expandContent,"aria-controls":r()},e("ix-icon",{name:"chevron-right-small",class:{"expand-icon":true,show:this.expandContent}})),e("div",{class:{"expand-content":true,show:this.expandContent}},e("div",{class:"expand-content-body"},e("slot",null)),e("div",{class:"expand-content-footer"})))}get hostElement(){return a(this)}};d.style=i;const c=":host{display:flex;position:relative;flex-direction:row;align-items:center;padding:0px;margin-bottom:0.5rem;gap:1rem;width:100%}:host .title-actions{display:flex;position:relative;flex-direction:row;gap:0.25rem;margin-left:auto;margin-right:0px}";const l=class{constructor(o){t(this,o)}render(){return e(n,null,e("slot",null),e("div",{class:"title-actions"},e("slot",{name:"title-actions"})))}};l.style=c;export{d as ix_card_accordion,l as ix_card_title};
|
|
2
|
-
//# sourceMappingURL=p-00f74fc9.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["cardAccordionCss","accordionControlId","getAriaControlsId","prefix","join","CardAccordion","expandedContent","this","hostElement","shadowRoot","querySelector","onExpandActionClick","event","preventDefault","stopPropagation","expandContent","accordionExpand","emit","expand","nativeEvent","scrollExpandedContentIntoView","setTimeout","rect","getBoundingClientRect","bottom","window","innerHeight","scrollIntoView","render","h","Host","slot","class","show","tabIndex","onClick","role","type","name","cardTitleCss","CardHeader"],"sources":["./src/components/card-accordion/card-accordion.scss?tag=ix-card-accordion&encapsulation=shadow","./src/components/card-accordion/card-accordion.tsx","./src/components/card-title/card-title.scss?tag=ix-card-title&encapsulation=shadow","./src/components/card-title/card-title.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@import 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n\n$action-height: 2.5rem;\n$expand-content-height: 15rem;\n\n:host {\n @include ix-component;\n display: flex;\n position: relative;\n flex-direction: column;\n width: 100%;\n height: $action-height;\n max-height: $action-height;\n transition: var(--theme-default-time) ease-in-out;\n\n .expand-action {\n all: unset;\n display: flex;\n position: relative;\n\n appearance: button;\n\n height: $action-height;\n width: 100%;\n\n background-color: var(--theme-color-component-1);\n align-items: center;\n justify-content: flex-start;\n @include ghost-hover-pressed();\n\n @include focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: var(--theme-btn--focus--outline-offset);\n }\n }\n\n .expand-action::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: var(--ix-card-background);\n z-index: -1;\n }\n\n .expand-action:not(.show),\n .expand-action:not(.show)::before {\n border-bottom-left-radius: var(--theme-default-border-radius);\n border-bottom-right-radius: var(--theme-default-border-radius);\n }\n\n .expand-icon {\n margin-left: 0.5rem;\n transition: var(--theme-default-time) transform ease-in-out;\n }\n\n .expand-icon.show {\n transform: rotate(90deg);\n }\n\n .expand-content {\n display: flex;\n flex-direction: column;\n opacity: 0;\n position: absolute;\n top: $action-height;\n transition: var(--theme-default-time) ease-in-out;\n width: 100%;\n height: 0;\n max-height: 20rem;\n background-color: var(--theme-color-component-1);\n }\n\n .expand-content.show {\n height: $expand-content-height;\n opacity: 1;\n }\n\n .expand-content.show .expand-content-body {\n display: none;\n overflow: hidden;\n }\n\n .expand-content.show .expand-content-body {\n display: block;\n overflow: auto;\n }\n\n .expand-content-footer {\n display: block;\n position: relative;\n width: 100%;\n height: 1rem;\n\n margin-top: auto;\n margin-bottom: 0px;\n\n background-color: var(--theme-color-component-1);\n border-bottom-left-radius: var(--theme-default-border-radius);\n border-bottom-right-radius: var(--theme-default-border-radius);\n }\n}\n\n:host(.show) {\n height: calc(#{$expand-content-height} + #{$action-height});\n max-height: calc(#{$expand-content-height} + #{$action-height});\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n State,\n} from '@stencil/core';\n\nlet accordionControlId = 0;\nconst getAriaControlsId = (prefix: string = 'expand-content') => {\n return [prefix, accordionControlId++].join('-');\n};\n\nexport type CardAccordionExpandChangeEvent = {\n expand: boolean;\n nativeEvent: Event;\n};\n\n/**\n * @since 1.6.0\n */\n@Component({\n tag: 'ix-card-accordion',\n styleUrl: 'card-accordion.scss',\n shadow: true,\n})\nexport class CardAccordion {\n @Element() hostElement: HTMLIxCardAccordionElement;\n\n /**\n * @internal\n */\n @Event() accordionExpand: EventEmitter<CardAccordionExpandChangeEvent>;\n\n @State() expandContent = false;\n\n get expandedContent() {\n return this.hostElement.shadowRoot.querySelector('.expand-content');\n }\n\n onExpandActionClick(event: Event) {\n event.preventDefault();\n event.stopPropagation();\n this.expandContent = !this.expandContent;\n this.accordionExpand.emit({\n expand: this.expandContent,\n nativeEvent: event,\n });\n\n if (this.expandContent) {\n this.scrollExpandedContentIntoView();\n }\n }\n\n private scrollExpandedContentIntoView() {\n setTimeout(() => {\n const rect = this.expandedContent.getBoundingClientRect();\n if (rect.bottom > window.innerHeight) {\n this.hostElement.shadowRoot\n .querySelector('.expand-content')\n .scrollIntoView(false);\n }\n }, 150);\n }\n\n render() {\n return (\n <Host\n slot=\"card-accordion\"\n class={{\n show: this.expandContent,\n }}\n >\n <button\n tabIndex={0}\n class={{ 'expand-action': true, show: this.expandContent }}\n onClick={(event) => this.onExpandActionClick(event)}\n role=\"button\"\n type=\"button\"\n aria-expanded={this.expandContent}\n aria-controls={getAriaControlsId()}\n >\n <ix-icon\n name=\"chevron-right-small\"\n class={{\n 'expand-icon': true,\n show: this.expandContent,\n }}\n ></ix-icon>\n </button>\n <div\n class={{\n 'expand-content': true,\n show: this.expandContent,\n }}\n >\n <div class={'expand-content-body'}>\n <slot></slot>\n </div>\n <div class={'expand-content-footer'}></div>\n </div>\n </Host>\n );\n }\n}\n","@import 'common-variables';\n\n:host {\n display: flex;\n position: relative;\n flex-direction: row;\n align-items: center;\n padding: 0px;\n margin-bottom: $small-space;\n gap: $default-space;\n\n width: 100%;\n\n .title-actions {\n display: flex;\n position: relative;\n flex-direction: row;\n gap: 0.25rem;\n margin-left: auto;\n margin-right: 0px;\n }\n}\n","import { Component, h, Host } from '@stencil/core';\n\n/**\n * @slot title-actions - Place additional actions inside title\n *\n * @since 1.6.0\n */\n@Component({\n tag: 'ix-card-title',\n styleUrl: 'card-title.scss',\n shadow: true,\n})\nexport class CardHeader {\n render() {\n return (\n <Host>\n <slot></slot>\n <div class=\"title-actions\">\n <slot name=\"title-actions\"></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAmB,isECUzB,IAAIC,EAAqB,EACzB,MAAMC,EAAoB,CAACC,EAAiB,mBACnC,CAACA,EAAQF,KAAsBG,KAAK,K,MAgBhCC,EAAa,M,6FAQC,K,CAErBC,sBACF,OAAOC,KAAKC,YAAYC,WAAWC,cAAc,kB,CAGnDC,oBAAoBC,GAClBA,EAAMC,iBACND,EAAME,kBACNP,KAAKQ,eAAiBR,KAAKQ,cAC3BR,KAAKS,gBAAgBC,KAAK,CACxBC,OAAQX,KAAKQ,cACbI,YAAaP,IAGf,GAAIL,KAAKQ,cAAe,CACtBR,KAAKa,+B,EAIDA,gCACNC,YAAW,KACT,MAAMC,EAAOf,KAAKD,gBAAgBiB,wBAClC,GAAID,EAAKE,OAASC,OAAOC,YAAa,CACpCnB,KAAKC,YAAYC,WACdC,cAAc,mBACdiB,eAAe,M,IAEnB,I,CAGLC,SACE,OACEC,EAACC,EAAI,CACHC,KAAK,iBACLC,MAAO,CACLC,KAAM1B,KAAKQ,gBAGbc,EAAA,UACEK,SAAU,EACVF,MAAO,CAAE,gBAAiB,KAAMC,KAAM1B,KAAKQ,eAC3CoB,QAAUvB,GAAUL,KAAKI,oBAAoBC,GAC7CwB,KAAK,SACLC,KAAK,SAAQ,gBACE9B,KAAKQ,cAAa,gBAClBb,KAEf2B,EAAA,WACES,KAAK,sBACLN,MAAO,CACL,cAAe,KACfC,KAAM1B,KAAKQ,kBAIjBc,EAAA,OACEG,MAAO,CACL,iBAAkB,KAClBC,KAAM1B,KAAKQ,gBAGbc,EAAA,OAAKG,MAAO,uBACVH,EAAA,cAEFA,EAAA,OAAKG,MAAO,2B,8CCrGtB,MAAMO,EAAe,wP,MCYRC,EAAU,M,yBACrBZ,SACE,OACEC,EAACC,EAAI,KACHD,EAAA,aACAA,EAAA,OAAKG,MAAM,iBACTH,EAAA,QAAMS,KAAK,mB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,H as s,g as c}from"./p-b899b25b.js";const n=".sc-ix-select-h{display:inline-block;position:relative;height:auto;border-radius:var(--theme-input--border-radius)}.sc-ix-select-h .d-none.sc-ix-select{display:none}.sc-ix-select-h .select.sc-ix-select{position:relative;display:flex;align-items:center;height:auto;background-color:var(--theme-input--background);border:var(--theme-input--border-thickness) solid var(--theme-input--border-color);border-radius:var(--theme-input--border-radius);padding:0 0 0 0.5rem;box-shadow:var(--theme-inset-shadow-1) !important}.sc-ix-select-h .select.sc-ix-select:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-select-h .select.sc-ix-select:not(.disabled):not(:disabled):hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover)}.sc-ix-select-h .select.sc-ix-select:focus-within{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline:1px solid #119fff !important;outline-offset:var(--theme-input--focus--outline-offset)}.sc-ix-select-h .select.readonly.sc-ix-select{box-shadow:none !important}.sc-ix-select-h .hidden.sc-ix-select{display:none !important}.sc-ix-select-h .trigger.sc-ix-select{display:flex;align-items:center;flex-grow:1;height:100%}.sc-ix-select-h .input-container.sc-ix-select{display:flex;position:relative;align-items:flex-start;width:100%}.sc-ix-select-h .input-container.sc-ix-select .chips.sc-ix-select{position:relative;display:flex;align-items:center;flex-wrap:wrap;height:100%;max-height:3.5rem;flex-grow:1;overflow-y:auto}.sc-ix-select-h .input-container.sc-ix-select .chips.sc-ix-select>ix-filter-chip.sc-ix-select{margin:0.1rem}.sc-ix-select-h .input-container.sc-ix-select input.sc-ix-select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-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);background:transparent;height:1.75rem;width:100%}.sc-ix-select-h .input-container.sc-ix-select input.sc-ix-select,.sc-ix-select-h .input-container.sc-ix-select input.sc-ix-select:hover,.sc-ix-select-h .input-container.sc-ix-select input.sc-ix-select:focus-visible{border:none;outline:none}.sc-ix-select-h .input-container.sc-ix-select input.sc-ix-select::-moz-placeholder{color:var(--theme-input-select-icon--color)}.sc-ix-select-h .input-container.sc-ix-select input.sc-ix-select::placeholder{color:var(--theme-input-select-icon--color)}.sc-ix-select-h .input-container.sc-ix-select input.hide-placeholder.sc-ix-select::-moz-placeholder{opacity:0}.sc-ix-select-h .input-container.sc-ix-select input.hide-placeholder.sc-ix-select::placeholder{opacity:0}.sc-ix-select-h .chevron-down-container.sc-ix-select{display:flex;align-items:center;justify-content:center;width:2rem;min-width:2rem;height:2rem}.sc-ix-select-h .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-select-h .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled):hover{color:var(--theme-color-dynamic--hover)}.sc-ix-select-h .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-select-h .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled):active{color:var(--theme-color-dynamic--hover)}.sc-ix-select-h .editable.sc-ix-select .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-select-h .editable.sc-ix-select .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled):hover{color:var(--theme-color-std-text);background-color:var(--theme-btn-invisible-secondary--background--hover)}.sc-ix-select-h .editable.sc-ix-select .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-select-h .editable.sc-ix-select .chevron-down-container.sc-ix-select:not(.disabled):not(:disabled):active{color:var(--theme-color-std-text);background-color:var(--theme-btn-invisible-secondary--background--active)}.sc-ix-select-h .add-item.sc-ix-select{display:flex;justify-content:flex-start;align-items:center;position:relative;width:100%}.sc-ix-select-h .select-list-header.sc-ix-select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;height:2rem;color:var(--theme-select-list-item-hint--color);margin:0 0.5rem 0 1rem}";const o=class{constructor(i){e(this,i);this.itemSelectionChange=t(this,"itemSelectionChange",7);this.inputChange=t(this,"inputChange",7);this.addItem=t(this,"addItem",7);this.selectedIndices=[];this.allowClear=false;this.mode="single";this.editable=false;this.disabled=false;this.readonly=false;this.i18nPlaceholder="Select an option";this.i18nPlaceholderEditable="Type of select option";this.i18nSelectListHeader="Please select an option";this.i18nNoMatches="No matches";this.hideListHeader=false;this.dropdownShow=false;this.value=undefined;this.dropdownWrapperRef=undefined;this.dropdownAnchor=undefined;this.isDropdownEmpty=false;this.hasFocus=false;this.navigationItem=undefined;this.inputFilterText=undefined;this.inputValue=undefined}get items(){return Array.from(this.hostElement.querySelectorAll("ix-select-item"))}get selectedItems(){return this.items.filter((e=>e.selected))}get addItemButton(){return this.hostElement.querySelector(".add-item")}get isSingleMode(){return this.mode==="single"}get isMultipleMode(){return this.mode==="multiple"}get isEveryDropdownItemHidden(){return this.items.every((e=>e.classList.contains("d-none")))}watchSelectedIndices(e){if(!e){this.selectValue([]);return}if(Array.isArray(e)){this.selectValue([...e]);return}this.selectValue([e])}onItemClicked(e){const t=e.detail;this.emitItemClick(t)}emitItemClick(e){if(this.isMultipleMode&&Array.isArray(this.selectedIndices)){if(this.selectedIndices.includes(e)){this.selectedIndices=this.selectedIndices.filter((t=>t!==e))}else{this.selectedIndices=[...this.selectedIndices,e]}}else{this.selectedIndices=[e]}this.selectValue(this.selectedIndices);this.itemSelectionChange.emit(this.selectedIndices)}emitAddItem(e){if(e.trim()===""){return}const t=document.createElement("ix-select-item");t.value=e;t.label=e;this.addItemRef.appendChild(t);this.clearInput();this.emitItemClick(e);this.addItem.emit(e)}selectValue(e){var t;this.items.forEach((t=>{t.selected=e.some((e=>e===t.value))}));this.value=this.selectedItems.map((e=>e.label));if(this.isSingleMode){this.inputValue=((t=this.value)===null||t===void 0?void 0:t.length)?this.value[0]:null;return}this.inputValue=null}componentDidLoad(){this.inputRef.addEventListener("input",(()=>{this.inputChange.emit(this.inputRef.value)}))}componentWillLoad(){if(this.selectedIndices){this.selectValue(Array.isArray(this.selectedIndices)?this.selectedIndices:[this.selectedIndices])}}onLabelChange(e){e.preventDefault();e.stopImmediatePropagation();this.selectValue(Array.isArray(this.selectedIndices)?this.selectedIndices:[this.selectedIndices])}disconnectedCallback(){if(this.labelMutationObserver){this.labelMutationObserver.disconnect()}}itemExists(e){return this.items.find((t=>t.label===e))}dropdownVisibilityChanged(e){this.dropdownShow=e.detail;this.hasFocus=e.detail;if(e.detail){this.inputRef.focus();this.inputRef.select();this.removeHiddenFromItems();this.isDropdownEmpty=this.isEveryDropdownItemHidden}else{this.navigationItem=undefined}}async onKeyDown(e){if(!this.dropdownShow){return}if(e.code==="ArrowDown"||e.code==="ArrowUp"){this.onArrowNavigation(e)}if(e.code==="Enter"||e.code==="NumpadEnter"){await this.onEnterNavigation()}if(e.code==="Escape"){this.dropdownShow=false}}async onEnterNavigation(){var e,t;if(this.isMultipleMode){return}if(this.editable&&!this.itemExists(this.inputFilterText)){this.emitAddItem(this.inputFilterText);this.navigationItem=this.items[this.items.length-1]}(e=this.navigationItem)===null||e===void 0?void 0:e.onItemClick();await((t=this.dropdownRef)===null||t===void 0?void 0:t.updatePosition());if(this.isSingleMode&&!this.editable){this.dropdownShow=false}}onArrowNavigation(e){e.stopPropagation();e.preventDefault();const t=this.items.find((e=>document.activeElement===e.querySelector("button")));this.navigationItem=t;const i=this.items.filter((e=>!e.classList.contains("d-none")));const s=i.indexOf(this.navigationItem);if(e.code==="ArrowDown"&&s<i.length-1){this.navigationItem=i[s+1]}else if(e.code==="ArrowUp"&&s>0){this.navigationItem=i[s-1]}this.setHoverEffectForNavigatedSelectItem()}setHoverEffectForNavigatedSelectItem(){var e;(e=this.navigationItem)===null||e===void 0?void 0:e.querySelector("button").focus()}filterItemsWithTypeahead(){this.inputFilterText=this.inputRef.value;if(this.inputFilterText){this.items.forEach((e=>{e.classList.remove("d-none");if(!e.label.toLowerCase().includes(this.inputFilterText.toLowerCase())){e.classList.add("d-none")}}))}else{this.removeHiddenFromItems()}this.isDropdownEmpty=this.isEveryDropdownItemHidden}removeHiddenFromItems(){this.items.forEach((e=>{e.classList.remove("d-none")}))}clearInput(){this.inputRef.value="";this.inputFilterText=""}clear(){this.clearInput();this.value=[];this.selectedIndices=[];this.itemSelectionChange.emit(null);this.dropdownShow=false}onInputBlur(e){if(this.editable){return}if(this.isSingleMode){if(this.dropdownShow&&this.isDropdownEmpty){this.dropdownShow=false}}if(!this.dropdownShow&&this.mode!=="multiple"){e.target["value"]=this.value}}placeholderValue(){if(this.editable){return this.i18nPlaceholderEditable}if(this.readonly){return""}return this.i18nPlaceholder}isAddItemVisible(){return!this.itemExists(this.inputFilterText)&&this.editable&&this.inputFilterText}render(){var e,t,c;return i(s,null,i("div",{class:{"form-control":true,select:true,focus:this.hasFocus,editable:this.editable,disabled:this.disabled,readonly:this.readonly},ref:e=>{this.dropdownAnchor=e;if(!this.editable)this.dropdownWrapperRef=e}},i("div",{class:"input-container"},i("div",{class:"chips"},this.isMultipleMode?(e=this.selectedItems)===null||e===void 0?void 0:e.map((e=>i("ix-filter-chip",{disabled:this.disabled||this.readonly,key:e.value,onCloseClick:t=>{t.preventDefault();t.stopPropagation();this.emitItemClick(e.value)}},e.label))):"",i("div",{class:"trigger"},i("input",{"data-testid":"input",disabled:this.disabled,readOnly:this.readonly,type:"text",class:{"allow-clear":this.allowClear&&!!((t=this.value)===null||t===void 0?void 0:t.length)},placeholder:this.placeholderValue(),value:this.inputValue,ref:e=>this.inputRef=e,onBlur:e=>this.onInputBlur(e),onInput:()=>this.filterItemsWithTypeahead()}),this.allowClear&&(((c=this.value)===null||c===void 0?void 0:c.length)||this.inputFilterText)?i("ix-icon-button",{class:"clear",icon:"clear",ghost:true,oval:true,size:"16",onClick:e=>{e.preventDefault();e.stopPropagation();this.clear()}}):null,this.disabled||this.readonly?null:i("div",{class:"chevron-down-container",ref:e=>{if(this.editable)this.dropdownWrapperRef=e}},i("ix-icon",{class:"chevron",name:"chevron-down-small"})))))),i("ix-dropdown",{ref:e=>this.dropdownRef=e,show:this.dropdownShow,closeBehavior:this.isMultipleMode?"outside":"both",class:{"d-none":this.disabled||this.readonly},anchor:this.dropdownAnchor,trigger:this.dropdownWrapperRef,onShowChanged:e=>this.dropdownVisibilityChanged(e),placement:"bottom-start",overwriteDropdownStyle:async()=>({minWidth:`${this.hostElement.clientWidth}px`})},i("div",{class:{"select-list-header":true,hidden:this.hideListHeader||this.isDropdownEmpty},title:this.i18nSelectListHeader},this.i18nSelectListHeader),i("slot",null),i("div",{ref:e=>this.addItemRef=e,class:"d-contents"}),this.isAddItemVisible()?i("ix-dropdown-item",{"data-testid":"add-item",icon:"plus",class:{"add-item":true},label:this.inputFilterText,onItemClick:e=>{e.preventDefault();e.stopPropagation();this.emitAddItem(this.inputFilterText)}}):null,this.isDropdownEmpty&&!this.editable?i("div",{class:"select-list-header"},this.i18nNoMatches):""))}get hostElement(){return c(this)}static get watchers(){return{selectedIndices:["watchSelectedIndices"]}}};o.style=n;class l extends CustomEvent{constructor(e){super("ix-select-item:labelChange",{bubbles:true,detail:e})}}const h=".sc-ix-select-item-h{display:block;position:relative}.sc-ix-select-item-h>ix-dropdown-item.sc-ix-select-item{width:100%}.sc-ix-select-item-h .select-item-checked.sc-ix-select-item{background-color:var(--theme-select-list-item--background--selected);--ix-dropdown-item-checked-color:var(--theme-color-std-text)}.d-none.sc-ix-select-item-h{display:none}";const r=class{constructor(i){e(this,i);this.itemClick=t(this,"itemClick",7);this.label=undefined;this.value=undefined;this.selected=false;this.hover=false}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)}componentDidRender(){if(!this.value){throw Error("ix-select-item must have a `value` property")}}labelChange(e,t){this.hostElement.dispatchEvent(new l({newValue:e,oldValue:t}))}render(){return i(s,null,i("ix-dropdown-item",{class:{"select-item-checked":this.selected},checked:this.selected,label:this.label?this.label:this.value,onItemClick:e=>this.onItemClick(e)}))}get hostElement(){return c(this)}static get watchers(){return{label:["labelChange"]}}};r.style=h;export{o as ix_select,r as ix_select_item};
|
|
2
|
-
//# sourceMappingURL=p-01c37ebe.entry.js.map
|