@siemens/ix 1.4.2 → 1.5.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/_commonjsHelpers-1a0c346f.js +2 -0
- package/dist/cjs/_commonjsHelpers-1a0c346f.js.map +1 -0
- package/dist/cjs/animation-d5cc0bec.js +2 -0
- package/dist/cjs/animation-d5cc0bec.js.map +1 -0
- package/dist/cjs/anime.es-8822f296.js +2 -0
- package/dist/cjs/anime.es-8822f296.js.map +1 -0
- package/dist/cjs/base-button-497db257.js +2 -0
- package/dist/cjs/base-button-497db257.js.map +1 -0
- package/dist/cjs/context-a0900b95.js +2 -0
- package/dist/cjs/context-a0900b95.js.map +1 -0
- package/dist/cjs/default-tree-item-89cd1f3f.js +2 -0
- package/dist/cjs/default-tree-item-89cd1f3f.js.map +1 -0
- package/dist/cjs/flip-tile-state-b5ff5ea0.js +2 -0
- package/dist/cjs/flip-tile-state-b5ff5ea0.js.map +1 -0
- package/dist/cjs/floating-ui.dom.esm-01fe5abe.js +2 -0
- package/dist/cjs/floating-ui.dom.esm-01fe5abe.js.map +1 -0
- package/dist/cjs/{index-f4b8e6ee.js → index-478a4b66.js} +133 -3
- package/dist/cjs/index-478a4b66.js.map +1 -0
- package/dist/cjs/index.cjs.js +12 -11
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-application-header.cjs.entry.js +3 -1
- package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +3 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-blind.cjs.entry.js +9 -4
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +4 -2
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-burger-menu.cjs.entry.js +3 -1
- package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-button.cjs.entry.js +3 -1
- package/dist/cjs/ix-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-category-filter.cjs.entry.js +6 -4
- package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-chip.cjs.entry.js +9 -2
- package/dist/cjs/ix-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-counter-pill.cjs.entry.js +3 -1
- package/dist/cjs/ix-counter-pill.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +6 -4
- package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-divider.cjs.entry.js +3 -1
- package/dist/cjs/ix-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-drawer.cjs.entry.js +3 -1
- package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +3 -1
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-event-list_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-event-list_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-expanding-search.cjs.entry.js +14 -12
- package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-filter-chip.cjs.entry.js +5 -3
- package/dist/cjs/ix-filter-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +14 -3
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +3 -1
- package/dist/cjs/ix-group-context-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-group_3.cjs.entry.js +4 -2
- package/dist/cjs/ix-group_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-icon-button.cjs.entry.js +3 -1
- package/dist/cjs/ix-icon-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-icon.cjs.entry.js +3 -1
- package/dist/cjs/ix-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-index-button.cjs.entry.js +28 -0
- package/dist/cjs/ix-index-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-input-group.cjs.entry.js +4 -2
- package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-kpi.cjs.entry.js +3 -1
- package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-menu_9.cjs.entry.js +4 -2
- package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-message-bar.cjs.entry.js +3 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-modal-example.cjs.entry.js +3 -1
- package/dist/cjs/ix-modal-example.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-modal_2.cjs.entry.js +208 -7
- package/dist/cjs/ix-modal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-pagination.cjs.entry.js +115 -0
- package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-pill.cjs.entry.js +3 -1
- package/dist/cjs/ix-pill.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-select_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-spinner.cjs.entry.js +3 -1
- package/dist/cjs/ix-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-split-button_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-split-button_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tab-item.cjs.entry.js +3 -1
- package/dist/cjs/ix-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tabs.cjs.entry.js +3 -1
- package/dist/cjs/ix-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tile.cjs.entry.js +3 -1
- package/dist/cjs/ix-tile.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-toast_2.cjs.entry.js +13 -2
- package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-toggle.cjs.entry.js +3 -1
- package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tooltip.cjs.entry.js +3 -1
- package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tree_2.cjs.entry.js +7 -1
- package/dist/cjs/ix-tree_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-typography.cjs.entry.js +3 -1
- package/dist/cjs/ix-typography.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-upload.cjs.entry.js +4 -2
- package/dist/cjs/ix-upload.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +3 -1
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{logical-filter-operator-0faf70b8.js → logical-filter-operator-20233f71.js} +5 -3
- package/dist/cjs/logical-filter-operator-20233f71.js.map +1 -0
- package/dist/cjs/modal-utils-b645989b.js +2 -0
- package/dist/cjs/modal-utils-b645989b.js.map +1 -0
- package/dist/cjs/mutation-observer-eaaa5399.js +2 -0
- package/dist/cjs/mutation-observer-eaaa5399.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +3 -1
- package/dist/cjs/my-component.cjs.entry.js.map +1 -0
- package/dist/cjs/rwd.util-9480f0b5.js +2 -0
- package/dist/cjs/rwd.util-9480f0b5.js.map +1 -0
- package/dist/cjs/service-18dc5907.js +2 -0
- package/dist/cjs/service-18dc5907.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +12 -3
- package/dist/cjs/siemens-ix.cjs.js.map +1 -0
- package/dist/cjs/{theme-switcher-67669a35.js → theme-switcher-bdbd0d30.js} +10 -8
- package/dist/cjs/theme-switcher-bdbd0d30.js.map +1 -0
- package/dist/cjs/typed-event-f0f051da.js +2 -0
- package/dist/cjs/typed-event-f0f051da.js.map +1 -0
- package/dist/cjs/upload-file-state-a79acf2b.js +2 -0
- package/dist/cjs/upload-file-state-a79acf2b.js.map +1 -0
- package/dist/collection/collection-manifest.json +14 -12
- package/dist/collection/components/animated-tab/animated-tab.js +1 -0
- package/dist/collection/components/animated-tab/animated-tab.js.map +1 -0
- package/dist/collection/components/animated-tabs/animated-tabs.js +1 -0
- package/dist/collection/components/animated-tabs/animated-tabs.js.map +1 -0
- package/dist/collection/components/application-header/application-header.js +1 -0
- package/dist/collection/components/application-header/application-header.js.map +1 -0
- package/dist/collection/components/basic-navigation/basic-navigation.js +1 -0
- package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -0
- package/dist/collection/components/blind/blind.css +12 -6
- package/dist/collection/components/blind/blind.js +26 -2
- package/dist/collection/components/blind/blind.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +1 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -0
- package/dist/collection/components/button/base-button.js +1 -0
- package/dist/collection/components/button/base-button.js.map +1 -0
- package/dist/collection/components/button/button.js +5 -4
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/category-filter/category-filter.js +3 -2
- package/dist/collection/components/category-filter/category-filter.js.map +1 -0
- package/dist/collection/components/category-filter/filter-state.js +1 -0
- package/dist/collection/components/category-filter/filter-state.js.map +1 -0
- package/dist/collection/components/category-filter/input-state.js +4 -3
- package/dist/collection/components/category-filter/input-state.js.map +1 -0
- package/dist/collection/components/category-filter/logical-filter-operator.js +1 -0
- package/dist/collection/components/category-filter/logical-filter-operator.js.map +1 -0
- package/dist/collection/components/chip/chip.js +28 -2
- package/dist/collection/components/chip/chip.js.map +1 -0
- package/dist/collection/components/counter-pill/counter-pill.js +1 -0
- package/dist/collection/components/counter-pill/counter-pill.js.map +1 -0
- package/dist/collection/components/date-picker/date-picker.js +10 -9
- package/dist/collection/components/date-picker/date-picker.js.map +1 -0
- package/dist/collection/components/date-time-card/date-time-card.js +6 -1
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +9 -11
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -0
- package/dist/collection/components/divider/divider.js +1 -0
- package/dist/collection/components/divider/divider.js.map +1 -0
- package/dist/collection/components/drawer/drawer.js +1 -0
- package/dist/collection/components/drawer/drawer.js.map +1 -0
- package/dist/collection/components/dropdown/alignment.js +1 -0
- package/dist/collection/components/dropdown/alignment.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown.css +0 -5
- package/dist/collection/components/dropdown/dropdown.js +3 -2
- package/dist/collection/components/dropdown/dropdown.js.map +1 -0
- package/dist/collection/components/dropdown/placement.js +1 -0
- package/dist/collection/components/dropdown/placement.js.map +1 -0
- package/dist/collection/components/dropdown-button/dropdown-button.js +5 -4
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -0
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -0
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js.map +1 -0
- package/dist/collection/components/event-list/event-list.js +1 -0
- package/dist/collection/components/event-list/event-list.js.map +1 -0
- package/dist/collection/components/event-list-item/event-list-item.js +1 -0
- package/dist/collection/components/event-list-item/event-list-item.js.map +1 -0
- package/dist/collection/components/expanding-search/expanding-search.js +10 -9
- package/dist/collection/components/expanding-search/expanding-search.js.map +1 -0
- package/dist/collection/components/filter-chip/filter-chip.css +14 -7
- package/dist/collection/components/filter-chip/filter-chip.js +2 -1
- package/dist/collection/components/filter-chip/filter-chip.js.map +1 -0
- package/dist/collection/components/flip-tile/flip-tile-state.js +1 -0
- package/dist/collection/components/flip-tile/flip-tile-state.js.map +1 -0
- package/dist/collection/components/flip-tile/flip-tile.css +0 -4
- package/dist/collection/components/flip-tile/flip-tile.js +57 -2
- package/dist/collection/components/flip-tile/flip-tile.js.map +1 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.js.map +1 -0
- package/dist/collection/components/group/group-context-menu.js +1 -0
- package/dist/collection/components/group/group-context-menu.js.map +1 -0
- package/dist/collection/components/group/group.js +2 -1
- package/dist/collection/components/group/group.js.map +1 -0
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js +1 -0
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js.map +1 -0
- package/dist/collection/components/group-item/group-item.js +1 -0
- package/dist/collection/components/group-item/group-item.js.map +1 -0
- package/dist/collection/components/icon/icon.js +1 -0
- package/dist/collection/components/icon/icon.js.map +1 -0
- package/dist/collection/components/icon-button/icon-button.js +8 -2
- package/dist/collection/components/icon-button/icon-button.js.map +1 -0
- package/dist/collection/components/index-button/index-button.css +31 -0
- package/dist/collection/components/index-button/index-button.js +83 -0
- package/dist/collection/components/index-button/index-button.js.map +1 -0
- package/dist/collection/components/input-group/input-group.css +3 -0
- package/dist/collection/components/input-group/input-group.js +1 -0
- package/dist/collection/components/input-group/input-group.js.map +1 -0
- package/dist/collection/components/kpi/kpi.js +1 -0
- package/dist/collection/components/kpi/kpi.js.map +1 -0
- package/dist/collection/components/map-navigation/map-navigation.js +1 -0
- package/dist/collection/components/map-navigation/map-navigation.js.map +1 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +1 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js.map +1 -0
- package/dist/collection/components/menu/burger-menu.js +1 -0
- package/dist/collection/components/menu/burger-menu.js.map +1 -0
- package/dist/collection/components/menu/menu.js +1 -0
- package/dist/collection/components/menu/menu.js.map +1 -0
- package/dist/collection/components/menu-about/menu-about.js +1 -0
- package/dist/collection/components/menu-about/menu-about.js.map +1 -0
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -0
- package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -0
- package/dist/collection/components/menu-about-news/menu-about-news.js +1 -0
- package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -0
- package/dist/collection/components/menu-avatar/menu-avatar.js +1 -0
- package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -0
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -0
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -0
- package/dist/collection/components/menu-item/menu-item.js +1 -0
- package/dist/collection/components/menu-item/menu-item.js.map +1 -0
- package/dist/collection/components/menu-settings/menu-settings.js +1 -0
- package/dist/collection/components/menu-settings/menu-settings.js.map +1 -0
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -0
- package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -0
- package/dist/collection/components/message-bar/message-bar.js +1 -0
- package/dist/collection/components/message-bar/message-bar.js.map +1 -0
- package/dist/collection/components/modal/modal-utils.js +1 -0
- package/dist/collection/components/modal/modal-utils.js.map +1 -0
- package/dist/collection/components/modal/modal.js +1 -0
- package/dist/collection/components/modal/modal.js.map +1 -0
- package/dist/collection/components/modal-container/modal-container.js +6 -2
- package/dist/collection/components/modal-container/modal-container.js.map +1 -0
- package/dist/collection/components/my-component/example-modal.js +1 -0
- package/dist/collection/components/my-component/example-modal.js.map +1 -0
- package/dist/collection/components/my-component/my-component.js +1 -0
- package/dist/collection/components/my-component/my-component.js.map +1 -0
- package/dist/collection/components/pagination/pagination.css +58 -0
- package/dist/collection/components/pagination/pagination.js +303 -0
- package/dist/collection/components/pagination/pagination.js.map +1 -0
- package/dist/collection/components/pill/pill.js +1 -0
- package/dist/collection/components/pill/pill.js.map +1 -0
- package/dist/collection/components/select/select.js +1 -0
- package/dist/collection/components/select/select.js.map +1 -0
- package/dist/collection/components/select-item/events.js +1 -0
- package/dist/collection/components/select-item/events.js.map +1 -0
- package/dist/collection/components/select-item/select-item.js +1 -0
- package/dist/collection/components/select-item/select-item.js.map +1 -0
- package/dist/collection/components/spinner/spinner.js +1 -0
- package/dist/collection/components/spinner/spinner.js.map +1 -0
- package/dist/collection/components/split-button/split-button.js +5 -4
- package/dist/collection/components/split-button/split-button.js.map +1 -0
- package/dist/collection/components/split-button-item/split-button-item.js +1 -0
- package/dist/collection/components/split-button-item/split-button-item.js.map +1 -0
- package/dist/collection/components/tab-item/tab-item.js +1 -0
- package/dist/collection/components/tab-item/tab-item.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +1 -0
- package/dist/collection/components/tabs/tabs.js.map +1 -0
- package/dist/collection/components/tile/tile.js +1 -0
- package/dist/collection/components/tile/tile.js.map +1 -0
- package/dist/collection/components/time-picker/time-picker.js +5 -4
- package/dist/collection/components/time-picker/time-picker.js.map +1 -0
- package/dist/collection/components/toast/toast-container.js +17 -4
- package/dist/collection/components/toast/toast-container.js.map +1 -0
- package/dist/collection/components/toast/toast-utils.js +5 -1
- package/dist/collection/components/toast/toast-utils.js.map +1 -0
- package/dist/collection/components/toast/toast.js +1 -0
- package/dist/collection/components/toast/toast.js.map +1 -0
- package/dist/collection/components/toggle/toggle.js +1 -0
- package/dist/collection/components/toggle/toggle.js.map +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1 -0
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/components/tree/tree-model.js +1 -0
- package/dist/collection/components/tree/tree-model.js.map +1 -0
- package/dist/collection/components/tree/tree.js +39 -0
- package/dist/collection/components/tree/tree.js.map +1 -0
- package/dist/collection/components/tree-item/default-tree-item.js +1 -0
- package/dist/collection/components/tree-item/default-tree-item.js.map +1 -0
- package/dist/collection/components/tree-item/tree-item.js +1 -0
- package/dist/collection/components/tree-item/tree-item.js.map +1 -0
- package/dist/collection/components/typography/types.js +1 -0
- package/dist/collection/components/typography/types.js.map +1 -0
- package/dist/collection/components/typography/typography.js +1 -0
- package/dist/collection/components/typography/typography.js.map +1 -0
- package/dist/collection/components/upload/upload-file-state.js +1 -0
- package/dist/collection/components/upload/upload-file-state.js.map +1 -0
- package/dist/collection/components/upload/upload.js +2 -1
- package/dist/collection/components/upload/upload.js.map +1 -0
- package/dist/collection/components/utils/animation.js +1 -0
- package/dist/collection/components/utils/animation.js.map +1 -0
- package/dist/collection/components/utils/menu-service/menu-service.js +1 -0
- package/dist/collection/components/utils/menu-service/menu-service.js.map +1 -0
- package/dist/collection/components/utils/mutation-observer.js +1 -0
- package/dist/collection/components/utils/mutation-observer.js.map +1 -0
- package/dist/collection/components/utils/notification-color.js +1 -0
- package/dist/collection/components/utils/notification-color.js.map +1 -0
- package/dist/collection/components/utils/rwd.util.js +1 -0
- package/dist/collection/components/utils/rwd.util.js.map +1 -0
- package/dist/collection/components/utils/screen/context.js +1 -0
- package/dist/collection/components/utils/screen/context.js.map +1 -0
- package/dist/collection/components/utils/screen/index.js +1 -0
- package/dist/collection/components/utils/screen/index.js.map +1 -0
- package/dist/collection/components/utils/screen/mode.js +1 -0
- package/dist/collection/components/utils/screen/mode.js.map +1 -0
- package/dist/collection/components/utils/screen/service.js +1 -0
- package/dist/collection/components/utils/screen/service.js.map +1 -0
- package/dist/collection/components/utils/theme-switcher.js +9 -8
- package/dist/collection/components/utils/theme-switcher.js.map +1 -0
- package/dist/collection/components/utils/typed-event.js +1 -0
- package/dist/collection/components/utils/typed-event.js.map +1 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +1 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -0
- package/dist/collection/components/workflow-step/workflow-step.js +1 -0
- package/dist/collection/components/workflow-step/workflow-step.js.map +1 -0
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -0
- package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -0
- package/dist/collection/index.js +11 -6
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tests/utils/test/index.js +1 -0
- package/dist/collection/tests/utils/test/index.js.map +1 -0
- package/dist/collection/tests/utils/test/page.js +1 -0
- package/dist/collection/tests/utils/test/page.js.map +1 -0
- package/dist/collection/utils/test/index.js +1 -0
- package/dist/collection/utils/test/index.js.map +1 -0
- package/dist/collection/utils/test/page.js +1 -0
- package/dist/collection/utils/test/page.js.map +1 -0
- package/dist/components/_commonjsHelpers.js +2 -0
- package/dist/components/_commonjsHelpers.js.map +1 -0
- package/dist/components/animation.js +2 -0
- package/dist/components/animation.js.map +1 -0
- package/dist/components/anime.es.js +2 -0
- package/dist/components/anime.es.js.map +1 -0
- package/dist/components/application-header.js +2 -0
- package/dist/components/application-header.js.map +1 -0
- package/dist/components/base-button.js +2 -0
- package/dist/components/base-button.js.map +1 -0
- package/dist/components/burger-menu.js +2 -0
- package/dist/components/burger-menu.js.map +1 -0
- package/dist/components/button.js +2 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/date-time-card.js +2 -0
- package/dist/components/date-time-card.js.map +1 -0
- package/dist/components/default-tree-item.js +22 -0
- package/dist/components/default-tree-item.js.map +1 -0
- package/dist/components/dropdown-item.js +2 -0
- package/dist/components/dropdown-item.js.map +1 -0
- package/dist/components/dropdown.js +2 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/filter-chip.js +4 -2
- package/dist/components/filter-chip.js.map +1 -0
- package/dist/components/flip-tile-state.js +20 -0
- package/dist/components/flip-tile-state.js.map +1 -0
- package/dist/components/floating-ui.dom.esm.js +2 -0
- package/dist/components/floating-ui.dom.esm.js.map +1 -0
- package/dist/components/group-context-menu.js +2 -0
- package/dist/components/group-context-menu.js.map +1 -0
- package/dist/components/group-item.js +2 -0
- package/dist/components/group-item.js.map +1 -0
- package/dist/components/icon-button.js +2 -0
- package/dist/components/icon-button.js.map +1 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/index-button.js +41 -0
- package/dist/components/index-button.js.map +1 -0
- package/dist/components/index.d.ts +9 -75
- package/dist/components/index.js +13 -76
- package/dist/components/index.js.map +1 -0
- package/dist/components/ix-animated-tab.js +2 -0
- package/dist/components/ix-animated-tab.js.map +1 -0
- package/dist/components/ix-animated-tabs.js +2 -0
- package/dist/components/ix-animated-tabs.js.map +1 -0
- package/dist/components/ix-application-header.js +2 -0
- package/dist/components/ix-application-header.js.map +1 -0
- package/dist/components/ix-basic-navigation.js +2 -0
- package/dist/components/ix-basic-navigation.js.map +1 -0
- package/dist/components/ix-blind.js +17 -5
- package/dist/components/ix-blind.js.map +1 -0
- package/dist/components/ix-breadcrumb-item.js +2 -0
- package/dist/components/ix-breadcrumb-item.js.map +1 -0
- package/dist/components/ix-breadcrumb.js +3 -1
- package/dist/components/ix-breadcrumb.js.map +1 -0
- package/dist/components/ix-burger-menu.js +2 -0
- package/dist/components/ix-burger-menu.js.map +1 -0
- package/dist/components/ix-button.js +2 -0
- package/dist/components/ix-button.js.map +1 -0
- package/dist/components/ix-category-filter.js +6 -35
- package/dist/components/ix-category-filter.js.map +1 -0
- package/dist/components/ix-chip.js +8 -1
- package/dist/components/ix-chip.js.map +1 -0
- package/dist/components/ix-counter-pill.js +2 -0
- package/dist/components/ix-counter-pill.js.map +1 -0
- package/dist/components/ix-date-picker.js +2 -0
- package/dist/components/ix-date-picker.js.map +1 -0
- package/dist/components/ix-date-time-card.js +2 -0
- package/dist/components/ix-date-time-card.js.map +1 -0
- package/dist/components/ix-datetime-picker.js +5 -3
- package/dist/components/ix-datetime-picker.js.map +1 -0
- package/dist/components/ix-divider.js +2 -0
- package/dist/components/ix-divider.js.map +1 -0
- package/dist/components/ix-drawer.js +2 -0
- package/dist/components/ix-drawer.js.map +1 -0
- package/dist/components/ix-dropdown-button.js +2 -0
- package/dist/components/ix-dropdown-button.js.map +1 -0
- package/dist/components/ix-dropdown-item.js +2 -0
- package/dist/components/ix-dropdown-item.js.map +1 -0
- package/dist/components/ix-dropdown-quick-actions.js +2 -0
- package/dist/components/ix-dropdown-quick-actions.js.map +1 -0
- package/dist/components/ix-dropdown.js +2 -0
- package/dist/components/ix-dropdown.js.map +1 -0
- package/dist/components/ix-event-list-item.js +2 -0
- package/dist/components/ix-event-list-item.js.map +1 -0
- package/dist/components/ix-event-list.js +2 -0
- package/dist/components/ix-event-list.js.map +1 -0
- package/dist/components/ix-expanding-search.js +14 -12
- package/dist/components/ix-expanding-search.js.map +1 -0
- package/dist/components/ix-filter-chip.js +2 -0
- package/dist/components/ix-filter-chip.js.map +1 -0
- package/dist/components/ix-flip-tile-content.js +2 -0
- package/dist/components/ix-flip-tile-content.js.map +1 -0
- package/dist/components/ix-flip-tile.js +17 -20
- package/dist/components/ix-flip-tile.js.map +1 -0
- package/dist/components/ix-group-context-menu.js +2 -0
- package/dist/components/ix-group-context-menu.js.map +1 -0
- package/dist/components/ix-group-dropdown-item.js +2 -0
- package/dist/components/ix-group-dropdown-item.js.map +1 -0
- package/dist/components/ix-group-item.js +2 -0
- package/dist/components/ix-group-item.js.map +1 -0
- package/dist/components/ix-group.js +3 -1
- package/dist/components/ix-group.js.map +1 -0
- package/dist/components/ix-icon-button.js +2 -0
- package/dist/components/ix-icon-button.js.map +1 -0
- package/dist/components/ix-icon.js +2 -0
- package/dist/components/ix-icon.js.map +1 -0
- package/dist/components/ix-index-button.d.ts +11 -0
- package/dist/components/ix-index-button.js +8 -0
- package/dist/components/ix-index-button.js.map +1 -0
- package/dist/components/ix-input-group.js +3 -1
- package/dist/components/ix-input-group.js.map +1 -0
- package/dist/components/ix-kpi.js +2 -0
- package/dist/components/ix-kpi.js.map +1 -0
- package/dist/components/ix-map-navigation-overlay.js +2 -0
- package/dist/components/ix-map-navigation-overlay.js.map +1 -0
- package/dist/components/ix-map-navigation.js +2 -0
- package/dist/components/ix-map-navigation.js.map +1 -0
- package/dist/components/ix-menu-about-item.js +2 -0
- package/dist/components/ix-menu-about-item.js.map +1 -0
- package/dist/components/ix-menu-about-news.js +2 -0
- package/dist/components/ix-menu-about-news.js.map +1 -0
- package/dist/components/ix-menu-about.js +2 -0
- package/dist/components/ix-menu-about.js.map +1 -0
- package/dist/components/ix-menu-avatar-item.js +2 -0
- package/dist/components/ix-menu-avatar-item.js.map +1 -0
- package/dist/components/ix-menu-avatar.js +2 -0
- package/dist/components/ix-menu-avatar.js.map +1 -0
- package/dist/components/ix-menu-item.js +2 -0
- package/dist/components/ix-menu-item.js.map +1 -0
- package/dist/components/ix-menu-settings-item.js +2 -0
- package/dist/components/ix-menu-settings-item.js.map +1 -0
- package/dist/components/ix-menu-settings.js +2 -0
- package/dist/components/ix-menu-settings.js.map +1 -0
- package/dist/components/ix-menu.js +4 -88
- package/dist/components/ix-menu.js.map +1 -0
- package/dist/components/ix-message-bar.js +2 -0
- package/dist/components/ix-message-bar.js.map +1 -0
- package/dist/components/ix-modal-container.js +2 -0
- package/dist/components/ix-modal-container.js.map +1 -0
- package/dist/components/ix-modal-example.js +4 -38
- package/dist/components/ix-modal-example.js.map +1 -0
- package/dist/components/ix-modal.js +2 -0
- package/dist/components/ix-modal.js.map +1 -0
- package/dist/components/ix-pagination.d.ts +11 -0
- package/dist/components/ix-pagination.js +185 -0
- package/dist/components/ix-pagination.js.map +1 -0
- package/dist/components/ix-pill.js +2 -0
- package/dist/components/ix-pill.js.map +1 -0
- package/dist/components/ix-select-item.js +2 -0
- package/dist/components/ix-select-item.js.map +1 -0
- package/dist/components/ix-select.js +3 -341
- package/dist/components/ix-select.js.map +1 -0
- package/dist/components/ix-spinner.js +2 -0
- package/dist/components/ix-spinner.js.map +1 -0
- package/dist/components/ix-split-button-item.js +2 -0
- package/dist/components/ix-split-button-item.js.map +1 -0
- package/dist/components/ix-split-button.js +2 -0
- package/dist/components/ix-split-button.js.map +1 -0
- package/dist/components/ix-tab-item.js +2 -0
- package/dist/components/ix-tab-item.js.map +1 -0
- package/dist/components/ix-tabs.js +2 -0
- package/dist/components/ix-tabs.js.map +1 -0
- package/dist/components/ix-tile.js +2 -0
- package/dist/components/ix-tile.js.map +1 -0
- package/dist/components/ix-time-picker.js +2 -0
- package/dist/components/ix-time-picker.js.map +1 -0
- package/dist/components/ix-toast-container.js +12 -1
- package/dist/components/ix-toast-container.js.map +1 -0
- package/dist/components/ix-toast.js +2 -0
- package/dist/components/ix-toast.js.map +1 -0
- package/dist/components/ix-toggle.js +2 -0
- package/dist/components/ix-toggle.js.map +1 -0
- package/dist/components/ix-tooltip.js +2 -0
- package/dist/components/ix-tooltip.js.map +1 -0
- package/dist/components/ix-tree-item.js +2 -0
- package/dist/components/ix-tree-item.js.map +1 -0
- package/dist/components/ix-tree.js +8 -20
- package/dist/components/ix-tree.js.map +1 -0
- package/dist/components/ix-typography.js +2 -0
- package/dist/components/ix-typography.js.map +1 -0
- package/dist/components/ix-upload.js +5 -18
- package/dist/components/ix-upload.js.map +1 -0
- package/dist/components/ix-validation-tooltip.js +2 -0
- package/dist/components/ix-validation-tooltip.js.map +1 -0
- package/dist/components/ix-workflow-step.js +2 -0
- package/dist/components/ix-workflow-step.js.map +1 -0
- package/dist/components/ix-workflow-steps.js +2 -0
- package/dist/components/ix-workflow-steps.js.map +1 -0
- package/dist/{esm/logical-filter-operator-15696001.js → components/logical-filter-operator.js} +5 -3
- package/dist/components/logical-filter-operator.js.map +1 -0
- package/dist/components/luxon.js +2 -0
- package/dist/components/luxon.js.map +1 -0
- package/dist/components/map-navigation-overlay.js +2 -0
- package/dist/components/map-navigation-overlay.js.map +1 -0
- package/dist/components/menu-avatar-item.js +2 -0
- package/dist/components/menu-avatar-item.js.map +1 -0
- package/dist/components/menu-item.js +2 -0
- package/dist/components/menu-item.js.map +1 -0
- package/dist/components/modal-container.js +2 -0
- package/dist/components/modal-container.js.map +1 -0
- package/dist/components/modal-utils.js +40 -0
- package/dist/components/modal-utils.js.map +1 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/modal.js.map +1 -0
- package/dist/components/mutation-observer.js +2 -0
- package/dist/components/mutation-observer.js.map +1 -0
- package/dist/components/my-component.js +2 -0
- package/dist/components/my-component.js.map +1 -0
- package/dist/components/rwd.util.js +2 -0
- package/dist/components/rwd.util.js.map +1 -0
- package/dist/components/select-item.js +2 -0
- package/dist/components/select-item.js.map +1 -0
- package/dist/components/select.js +345 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/service.js +2 -0
- package/dist/components/service.js.map +1 -0
- package/dist/components/spinner.js +2 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/tab-item.js +2 -0
- package/dist/components/tab-item.js.map +1 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/theme-switcher.js +91 -0
- package/dist/components/theme-switcher.js.map +1 -0
- package/dist/components/time-picker.js +2 -0
- package/dist/components/time-picker.js.map +1 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/tree-item.js +2 -0
- package/dist/components/tree-item.js.map +1 -0
- package/dist/components/typed-event.js +2 -0
- package/dist/components/typed-event.js.map +1 -0
- package/dist/components/typography.js +2 -0
- package/dist/components/typography.js.map +1 -0
- package/dist/components/upload-file-state.js +19 -0
- package/dist/components/upload-file-state.js.map +1 -0
- package/dist/esm/_commonjsHelpers-4bc7200a.js +2 -0
- package/dist/esm/_commonjsHelpers-4bc7200a.js.map +1 -0
- package/dist/esm/animation-268dce50.js +2 -0
- package/dist/esm/animation-268dce50.js.map +1 -0
- package/dist/esm/anime.es-185e9087.js +2 -0
- package/dist/esm/anime.es-185e9087.js.map +1 -0
- package/dist/esm/base-button-5bfeb71c.js +2 -0
- package/dist/esm/base-button-5bfeb71c.js.map +1 -0
- package/dist/esm/context-f6a2b727.js +2 -0
- package/dist/esm/context-f6a2b727.js.map +1 -0
- package/dist/esm/default-tree-item-91ff2c08.js +2 -0
- package/dist/esm/default-tree-item-91ff2c08.js.map +1 -0
- package/dist/esm/flip-tile-state-051bb2fd.js +2 -0
- package/dist/esm/flip-tile-state-051bb2fd.js.map +1 -0
- package/dist/esm/floating-ui.dom.esm-3130eda0.js +2 -0
- package/dist/esm/floating-ui.dom.esm-3130eda0.js.map +1 -0
- package/dist/esm/{index-6b660a23.js → index-3d163acd.js} +133 -4
- package/dist/esm/index-3d163acd.js.map +1 -0
- package/dist/esm/index.js +9 -8
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/ix-animated-tab_2.entry.js +3 -1
- package/dist/esm/ix-animated-tab_2.entry.js.map +1 -0
- package/dist/esm/ix-application-header.entry.js +3 -1
- package/dist/esm/ix-application-header.entry.js.map +1 -0
- package/dist/esm/ix-basic-navigation.entry.js +3 -1
- package/dist/esm/ix-basic-navigation.entry.js.map +1 -0
- package/dist/esm/ix-blind.entry.js +9 -4
- package/dist/esm/ix-blind.entry.js.map +1 -0
- package/dist/esm/ix-breadcrumb_2.entry.js +4 -2
- package/dist/esm/ix-breadcrumb_2.entry.js.map +1 -0
- package/dist/esm/ix-burger-menu.entry.js +3 -1
- package/dist/esm/ix-burger-menu.entry.js.map +1 -0
- package/dist/esm/ix-button.entry.js +3 -1
- package/dist/esm/ix-button.entry.js.map +1 -0
- package/dist/esm/ix-category-filter.entry.js +6 -4
- package/dist/esm/ix-category-filter.entry.js.map +1 -0
- package/dist/esm/ix-chip.entry.js +9 -2
- package/dist/esm/ix-chip.entry.js.map +1 -0
- package/dist/esm/ix-counter-pill.entry.js +3 -1
- package/dist/esm/ix-counter-pill.entry.js.map +1 -0
- package/dist/esm/ix-date-picker_2.entry.js +3 -1
- package/dist/esm/ix-date-picker_2.entry.js.map +1 -0
- package/dist/esm/ix-date-time-card.entry.js +3 -1
- package/dist/esm/ix-date-time-card.entry.js.map +1 -0
- package/dist/esm/ix-datetime-picker.entry.js +6 -4
- package/dist/esm/ix-datetime-picker.entry.js.map +1 -0
- package/dist/esm/ix-divider.entry.js +3 -1
- package/dist/esm/ix-divider.entry.js.map +1 -0
- package/dist/esm/ix-drawer.entry.js +3 -1
- package/dist/esm/ix-drawer.entry.js.map +1 -0
- package/dist/esm/ix-dropdown-button.entry.js +3 -1
- package/dist/esm/ix-dropdown-button.entry.js.map +1 -0
- package/dist/esm/ix-dropdown-quick-actions.entry.js +3 -1
- package/dist/esm/ix-dropdown-quick-actions.entry.js.map +1 -0
- package/dist/esm/ix-dropdown_2.entry.js +3 -1
- package/dist/esm/ix-dropdown_2.entry.js.map +1 -0
- package/dist/esm/ix-event-list_2.entry.js +3 -1
- package/dist/esm/ix-event-list_2.entry.js.map +1 -0
- package/dist/esm/ix-expanding-search.entry.js +14 -12
- package/dist/esm/ix-expanding-search.entry.js.map +1 -0
- package/dist/esm/ix-filter-chip.entry.js +5 -3
- package/dist/esm/ix-filter-chip.entry.js.map +1 -0
- package/dist/esm/ix-flip-tile_2.entry.js +14 -3
- package/dist/esm/ix-flip-tile_2.entry.js.map +1 -0
- package/dist/esm/ix-group-context-menu.entry.js +3 -1
- package/dist/esm/ix-group-context-menu.entry.js.map +1 -0
- package/dist/esm/ix-group_3.entry.js +4 -2
- package/dist/esm/ix-group_3.entry.js.map +1 -0
- package/dist/esm/ix-icon-button.entry.js +3 -1
- package/dist/esm/ix-icon-button.entry.js.map +1 -0
- package/dist/esm/ix-icon.entry.js +3 -1
- package/dist/esm/ix-icon.entry.js.map +1 -0
- package/dist/esm/ix-index-button.entry.js +24 -0
- package/dist/esm/ix-index-button.entry.js.map +1 -0
- package/dist/esm/ix-input-group.entry.js +4 -2
- package/dist/esm/ix-input-group.entry.js.map +1 -0
- package/dist/esm/ix-kpi.entry.js +3 -1
- package/dist/esm/ix-kpi.entry.js.map +1 -0
- package/dist/esm/ix-map-navigation_2.entry.js +3 -1
- package/dist/esm/ix-map-navigation_2.entry.js.map +1 -0
- package/dist/esm/ix-menu_9.entry.js +4 -2
- package/dist/esm/ix-menu_9.entry.js.map +1 -0
- package/dist/esm/ix-message-bar.entry.js +3 -1
- package/dist/esm/ix-message-bar.entry.js.map +1 -0
- package/dist/esm/ix-modal-example.entry.js +3 -1
- package/dist/esm/ix-modal-example.entry.js.map +1 -0
- package/dist/esm/ix-modal_2.entry.js +210 -5
- package/dist/esm/ix-modal_2.entry.js.map +1 -0
- package/dist/esm/ix-pagination.entry.js +111 -0
- package/dist/esm/ix-pagination.entry.js.map +1 -0
- package/dist/esm/ix-pill.entry.js +3 -1
- package/dist/esm/ix-pill.entry.js.map +1 -0
- package/dist/esm/ix-select_2.entry.js +3 -1
- package/dist/esm/ix-select_2.entry.js.map +1 -0
- package/dist/esm/ix-spinner.entry.js +3 -1
- package/dist/esm/ix-spinner.entry.js.map +1 -0
- package/dist/esm/ix-split-button_2.entry.js +3 -1
- package/dist/esm/ix-split-button_2.entry.js.map +1 -0
- package/dist/esm/ix-tab-item.entry.js +3 -1
- package/dist/esm/ix-tab-item.entry.js.map +1 -0
- package/dist/esm/ix-tabs.entry.js +3 -1
- package/dist/esm/ix-tabs.entry.js.map +1 -0
- package/dist/esm/ix-tile.entry.js +3 -1
- package/dist/esm/ix-tile.entry.js.map +1 -0
- package/dist/esm/ix-toast_2.entry.js +13 -2
- package/dist/esm/ix-toast_2.entry.js.map +1 -0
- package/dist/esm/ix-toggle.entry.js +3 -1
- package/dist/esm/ix-toggle.entry.js.map +1 -0
- package/dist/esm/ix-tooltip.entry.js +3 -1
- package/dist/esm/ix-tooltip.entry.js.map +1 -0
- package/dist/esm/ix-tree_2.entry.js +7 -1
- package/dist/esm/ix-tree_2.entry.js.map +1 -0
- package/dist/esm/ix-typography.entry.js +3 -1
- package/dist/esm/ix-typography.entry.js.map +1 -0
- package/dist/esm/ix-upload.entry.js +4 -2
- package/dist/esm/ix-upload.entry.js.map +1 -0
- package/dist/esm/ix-validation-tooltip.entry.js +3 -1
- package/dist/esm/ix-validation-tooltip.entry.js.map +1 -0
- package/dist/esm/ix-workflow-step_2.entry.js +3 -1
- package/dist/esm/ix-workflow-step_2.entry.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/logical-filter-operator-92531263.js +35 -0
- package/dist/esm/logical-filter-operator-92531263.js.map +1 -0
- package/dist/esm/modal-utils-aecbcba5.js +2 -0
- package/dist/esm/modal-utils-aecbcba5.js.map +1 -0
- package/dist/esm/mutation-observer-7d01bbea.js +2 -0
- package/dist/esm/mutation-observer-7d01bbea.js.map +1 -0
- package/dist/esm/my-component.entry.js +3 -1
- package/dist/esm/my-component.entry.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/rwd.util-cfc2ea72.js +2 -0
- package/dist/esm/rwd.util-cfc2ea72.js.map +1 -0
- package/dist/esm/service-fc436c5b.js +2 -0
- package/dist/esm/service-fc436c5b.js.map +1 -0
- package/dist/esm/siemens-ix.js +9 -3
- package/dist/esm/siemens-ix.js.map +1 -0
- package/dist/esm/{theme-switcher-4b9e5cc2.js → theme-switcher-7498e4f2.js} +10 -8
- package/dist/esm/theme-switcher-7498e4f2.js.map +1 -0
- package/dist/esm/typed-event-a230184a.js +2 -0
- package/dist/esm/typed-event-a230184a.js.map +1 -0
- package/dist/esm/upload-file-state-532a36d3.js +2 -0
- package/dist/esm/upload-file-state-532a36d3.js.map +1 -0
- package/dist/siemens-ix/index.esm.js +2 -1
- package/dist/siemens-ix/index.esm.js.map +1 -0
- package/dist/siemens-ix/p-01f9f803.entry.js +2 -0
- package/dist/siemens-ix/p-01f9f803.entry.js.map +1 -0
- package/dist/siemens-ix/p-030078b4.entry.js +2 -0
- package/dist/siemens-ix/p-030078b4.entry.js.map +1 -0
- package/dist/siemens-ix/p-042b490c.entry.js +2 -0
- package/dist/siemens-ix/p-042b490c.entry.js.map +1 -0
- package/dist/siemens-ix/p-076c29d1.js +2 -1
- package/dist/siemens-ix/p-076c29d1.js.map +1 -0
- package/dist/siemens-ix/p-07fd8298.entry.js +2 -0
- package/dist/siemens-ix/p-07fd8298.entry.js.map +1 -0
- package/dist/siemens-ix/p-0e8a6997.entry.js +2 -0
- package/dist/siemens-ix/p-0e8a6997.entry.js.map +1 -0
- package/dist/siemens-ix/p-0f864265.entry.js +2 -0
- package/dist/siemens-ix/p-0f864265.entry.js.map +1 -0
- package/dist/siemens-ix/p-13adcf62.entry.js +2 -0
- package/dist/siemens-ix/p-13adcf62.entry.js.map +1 -0
- package/dist/siemens-ix/p-1572aab3.js +2 -1
- package/dist/siemens-ix/p-1572aab3.js.map +1 -0
- package/dist/siemens-ix/p-15bebd8a.js +2 -1
- package/dist/siemens-ix/p-15bebd8a.js.map +1 -0
- package/dist/siemens-ix/p-1666b0e2.entry.js +2 -0
- package/dist/siemens-ix/p-1666b0e2.entry.js.map +1 -0
- package/dist/siemens-ix/p-16ec6f50.entry.js +2 -0
- package/dist/siemens-ix/p-16ec6f50.entry.js.map +1 -0
- package/dist/siemens-ix/p-1701b127.entry.js +2 -0
- package/dist/siemens-ix/p-1701b127.entry.js.map +1 -0
- package/dist/siemens-ix/p-1a87eb66.entry.js +2 -0
- package/dist/siemens-ix/p-1a87eb66.entry.js.map +1 -0
- package/dist/siemens-ix/p-20bed29f.entry.js +2 -0
- package/dist/siemens-ix/p-20bed29f.entry.js.map +1 -0
- package/dist/siemens-ix/p-21aa3602.js +2 -1
- package/dist/siemens-ix/p-21aa3602.js.map +1 -0
- package/dist/siemens-ix/p-24d2d95e.entry.js +2 -0
- package/dist/siemens-ix/p-24d2d95e.entry.js.map +1 -0
- package/dist/siemens-ix/p-283686d7.entry.js +2 -0
- package/dist/siemens-ix/p-283686d7.entry.js.map +1 -0
- package/dist/siemens-ix/p-28f50519.entry.js +2 -0
- package/dist/siemens-ix/p-28f50519.entry.js.map +1 -0
- package/dist/siemens-ix/p-2dafa048.entry.js +2 -0
- package/dist/siemens-ix/p-2dafa048.entry.js.map +1 -0
- package/dist/siemens-ix/p-323d5529.js +2 -0
- package/dist/siemens-ix/p-323d5529.js.map +1 -0
- package/dist/siemens-ix/p-34e3a10e.entry.js +2 -0
- package/dist/siemens-ix/p-34e3a10e.entry.js.map +1 -0
- package/dist/siemens-ix/p-37417714.js +2 -1
- package/dist/siemens-ix/p-37417714.js.map +1 -0
- package/dist/siemens-ix/p-3776a37f.entry.js +2 -0
- package/dist/siemens-ix/p-3776a37f.entry.js.map +1 -0
- package/dist/siemens-ix/p-3b97bb69.js +2 -1
- package/dist/siemens-ix/p-3b97bb69.js.map +1 -0
- package/dist/siemens-ix/p-41f0a2b2.entry.js +2 -0
- package/dist/siemens-ix/p-41f0a2b2.entry.js.map +1 -0
- package/dist/siemens-ix/p-43965bd0.entry.js +2 -0
- package/dist/siemens-ix/p-43965bd0.entry.js.map +1 -0
- package/dist/siemens-ix/p-446a0a3f.entry.js +2 -0
- package/dist/siemens-ix/p-446a0a3f.entry.js.map +1 -0
- package/dist/siemens-ix/p-4ec66090.entry.js +2 -0
- package/dist/siemens-ix/p-4ec66090.entry.js.map +1 -0
- package/dist/siemens-ix/p-529d7530.js +2 -1
- package/dist/siemens-ix/p-529d7530.js.map +1 -0
- package/dist/siemens-ix/p-55d0fabf.entry.js +2 -0
- package/dist/siemens-ix/p-55d0fabf.entry.js.map +1 -0
- package/dist/siemens-ix/p-56ed024b.js +2 -1
- package/dist/siemens-ix/p-56ed024b.js.map +1 -0
- package/dist/siemens-ix/p-58ef1328.entry.js +2 -0
- package/dist/siemens-ix/p-58ef1328.entry.js.map +1 -0
- package/dist/siemens-ix/p-5b39e04e.js +2 -1
- package/dist/siemens-ix/p-5b39e04e.js.map +1 -0
- package/dist/siemens-ix/p-5d7e1440.entry.js +2 -0
- package/dist/siemens-ix/p-5d7e1440.entry.js.map +1 -0
- package/dist/siemens-ix/p-62b4d696.entry.js +2 -0
- package/dist/siemens-ix/p-62b4d696.entry.js.map +1 -0
- package/dist/siemens-ix/p-63666529.entry.js +2 -0
- package/dist/siemens-ix/p-63666529.entry.js.map +1 -0
- package/dist/siemens-ix/p-63e1264b.entry.js +2 -0
- package/dist/siemens-ix/p-63e1264b.entry.js.map +1 -0
- package/dist/siemens-ix/p-65b6330a.entry.js +2 -0
- package/dist/siemens-ix/p-65b6330a.entry.js.map +1 -0
- package/dist/siemens-ix/p-6bdfaf91.entry.js +2 -0
- package/dist/siemens-ix/p-6bdfaf91.entry.js.map +1 -0
- package/dist/siemens-ix/p-6f819085.js +2 -0
- package/dist/siemens-ix/p-6f819085.js.map +1 -0
- package/dist/siemens-ix/p-6facc3cc.entry.js +2 -0
- package/dist/siemens-ix/p-6facc3cc.entry.js.map +1 -0
- package/dist/siemens-ix/p-73f7ef87.entry.js +2 -0
- package/dist/siemens-ix/p-73f7ef87.entry.js.map +1 -0
- package/dist/siemens-ix/p-7d4a7388.entry.js +2 -0
- package/dist/siemens-ix/p-7d4a7388.entry.js.map +1 -0
- package/dist/siemens-ix/p-810b5232.js +2 -1
- package/dist/siemens-ix/p-810b5232.js.map +1 -0
- package/dist/siemens-ix/p-88a47c9b.entry.js +2 -0
- package/dist/siemens-ix/p-88a47c9b.entry.js.map +1 -0
- package/dist/siemens-ix/p-8fcd6f85.js +3 -0
- package/dist/siemens-ix/p-8fcd6f85.js.map +1 -0
- package/dist/siemens-ix/p-909ccf09.entry.js +2 -0
- package/dist/siemens-ix/p-909ccf09.entry.js.map +1 -0
- package/dist/siemens-ix/p-9546cbdd.entry.js +2 -0
- package/dist/siemens-ix/p-9546cbdd.entry.js.map +1 -0
- package/dist/siemens-ix/p-9ee41861.js +2 -1
- package/dist/siemens-ix/p-9ee41861.js.map +1 -0
- package/dist/siemens-ix/p-a30c7b5a.entry.js +2 -0
- package/dist/siemens-ix/p-a30c7b5a.entry.js.map +1 -0
- package/dist/siemens-ix/p-a4178e26.entry.js +2 -0
- package/dist/siemens-ix/p-a4178e26.entry.js.map +1 -0
- package/dist/siemens-ix/p-a4a16daa.entry.js +2 -0
- package/dist/siemens-ix/p-a4a16daa.entry.js.map +1 -0
- package/dist/siemens-ix/p-a92126b5.entry.js +2 -0
- package/dist/siemens-ix/p-a92126b5.entry.js.map +1 -0
- package/dist/siemens-ix/p-aa4141e4.entry.js +2 -0
- package/dist/siemens-ix/p-aa4141e4.entry.js.map +1 -0
- package/dist/siemens-ix/p-afd1f351.entry.js +2 -0
- package/dist/siemens-ix/p-afd1f351.entry.js.map +1 -0
- package/dist/siemens-ix/p-b14308ed.js +2 -1
- package/dist/siemens-ix/p-b14308ed.js.map +1 -0
- package/dist/siemens-ix/p-b64e82ce.entry.js +2 -0
- package/dist/siemens-ix/p-b64e82ce.entry.js.map +1 -0
- package/dist/siemens-ix/p-b9fbd029.entry.js +2 -0
- package/dist/siemens-ix/p-b9fbd029.entry.js.map +1 -0
- package/dist/siemens-ix/p-c0454c9a.js +2 -1
- package/dist/siemens-ix/p-c0454c9a.js.map +1 -0
- package/dist/siemens-ix/p-c19c2492.entry.js +2 -0
- package/dist/siemens-ix/p-c19c2492.entry.js.map +1 -0
- package/dist/siemens-ix/p-d7a3acce.entry.js +2 -0
- package/dist/siemens-ix/p-d7a3acce.entry.js.map +1 -0
- package/dist/siemens-ix/p-d7cf7a1a.entry.js +2 -0
- package/dist/siemens-ix/p-d7cf7a1a.entry.js.map +1 -0
- package/dist/siemens-ix/p-eb301ea2.entry.js +2 -0
- package/dist/siemens-ix/p-eb301ea2.entry.js.map +1 -0
- package/dist/siemens-ix/p-f34a16c6.js +2 -1
- package/dist/siemens-ix/p-f34a16c6.js.map +1 -0
- package/dist/siemens-ix/p-f6509805.entry.js +2 -0
- package/dist/siemens-ix/p-f6509805.entry.js.map +1 -0
- package/dist/siemens-ix/p-f6c54047.entry.js +2 -0
- package/dist/siemens-ix/p-f6c54047.entry.js.map +1 -0
- package/dist/siemens-ix/p-fef2f9e0.entry.js +2 -0
- package/dist/siemens-ix/p-fef2f9e0.entry.js.map +1 -0
- package/dist/siemens-ix/siemens-ix.css +79 -1092
- package/dist/siemens-ix/siemens-ix.esm.js +2 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -0
- package/dist/types/components/blind/blind.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/chip/chip.d.ts +8 -0
- package/dist/types/components/date-picker/date-picker.d.ts +6 -1
- package/dist/types/components/date-time-card/date-time-card.d.ts +4 -1
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +8 -3
- package/dist/types/components/dropdown/alignment.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +4 -1
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +3 -2
- package/dist/types/components/flip-tile/flip-tile.d.ts +11 -0
- package/dist/types/components/icon-button/icon-button.d.ts +3 -2
- package/dist/types/components/index-button/index-button.d.ts +16 -0
- package/dist/types/components/modal/modal-utils.d.ts +1 -1
- package/dist/types/components/modal-container/modal-container.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +55 -0
- package/dist/types/components/split-button/split-button.d.ts +3 -2
- package/dist/types/components/time-picker/time-picker.d.ts +2 -1
- package/dist/types/components/toast/toast-container.d.ts +3 -1
- package/dist/types/components/toast/toast-utils.d.ts +9 -6
- package/dist/types/components/tree/tree-model.d.ts +4 -4
- package/dist/types/components/tree/tree.d.ts +13 -0
- package/dist/types/components/tree-item/default-tree-item.d.ts +1 -1
- package/dist/types/components/typography/types.d.ts +1 -1
- package/dist/types/components/utils/notification-color.d.ts +1 -1
- package/dist/types/components/utils/screen/mode.d.ts +2 -2
- package/dist/types/components/utils/typed-event.d.ts +2 -2
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +273 -20
- package/dist/types/index.d.ts +10 -9
- package/dist/types/stencil-public-runtime.d.ts +71 -15
- package/loader/index.d.ts +9 -0
- package/package.json +19 -18
- package/scss/components/_forms.scss +1 -1
- package/dist/cjs/modal-a93045dd.js +0 -211
- package/dist/collection/components/button/button-variants.js +0 -1
- package/dist/collection/components/date-picker/events.js +0 -1
- package/dist/collection/components/datetime-picker/event.js +0 -1
- package/dist/collection/components/dropdown/dropdown-trigger-event.js +0 -1
- package/dist/collection/env.js +0 -9
- package/dist/collection/exports.js +0 -17
- package/dist/esm/modal-64e18970.js +0 -208
- package/dist/siemens-ix/p-06d5ab35.entry.js +0 -1
- package/dist/siemens-ix/p-098e22c3.entry.js +0 -1
- package/dist/siemens-ix/p-0bc4408b.entry.js +0 -1
- package/dist/siemens-ix/p-0d619f3e.entry.js +0 -1
- package/dist/siemens-ix/p-0dfe994b.entry.js +0 -1
- package/dist/siemens-ix/p-122c7f57.entry.js +0 -1
- package/dist/siemens-ix/p-122cf38d.entry.js +0 -1
- package/dist/siemens-ix/p-165c6a82.entry.js +0 -1
- package/dist/siemens-ix/p-1d48ce36.entry.js +0 -1
- package/dist/siemens-ix/p-20c88582.entry.js +0 -1
- package/dist/siemens-ix/p-22e84c7c.entry.js +0 -1
- package/dist/siemens-ix/p-2b33ead4.js +0 -1
- package/dist/siemens-ix/p-346c6c2f.entry.js +0 -1
- package/dist/siemens-ix/p-3624a41c.entry.js +0 -1
- package/dist/siemens-ix/p-3cc4df65.entry.js +0 -1
- package/dist/siemens-ix/p-4b2265fd.entry.js +0 -1
- package/dist/siemens-ix/p-4da15801.entry.js +0 -1
- package/dist/siemens-ix/p-560cfce8.entry.js +0 -1
- package/dist/siemens-ix/p-5890faf9.entry.js +0 -1
- package/dist/siemens-ix/p-5b47360e.entry.js +0 -1
- package/dist/siemens-ix/p-5ca7b937.entry.js +0 -1
- package/dist/siemens-ix/p-5feec7a4.entry.js +0 -1
- package/dist/siemens-ix/p-622fb593.entry.js +0 -1
- package/dist/siemens-ix/p-63776469.entry.js +0 -1
- package/dist/siemens-ix/p-66074788.js +0 -2
- package/dist/siemens-ix/p-67cf5cd4.entry.js +0 -1
- package/dist/siemens-ix/p-68ec0b51.entry.js +0 -1
- package/dist/siemens-ix/p-6b463b40.entry.js +0 -1
- package/dist/siemens-ix/p-6be65050.entry.js +0 -1
- package/dist/siemens-ix/p-71c91a11.entry.js +0 -1
- package/dist/siemens-ix/p-72cc8632.entry.js +0 -1
- package/dist/siemens-ix/p-75abd144.js +0 -1
- package/dist/siemens-ix/p-80fe33d1.entry.js +0 -1
- package/dist/siemens-ix/p-8778ba75.entry.js +0 -1
- package/dist/siemens-ix/p-94b440bc.entry.js +0 -1
- package/dist/siemens-ix/p-9c8c835c.entry.js +0 -1
- package/dist/siemens-ix/p-9eb8347c.entry.js +0 -1
- package/dist/siemens-ix/p-9fa6a59b.entry.js +0 -1
- package/dist/siemens-ix/p-ac1d6617.entry.js +0 -1
- package/dist/siemens-ix/p-ae35c07f.entry.js +0 -1
- package/dist/siemens-ix/p-affb60fb.js +0 -1
- package/dist/siemens-ix/p-b0573cc6.entry.js +0 -1
- package/dist/siemens-ix/p-b85458fb.entry.js +0 -1
- package/dist/siemens-ix/p-c2b50878.entry.js +0 -1
- package/dist/siemens-ix/p-c4568016.entry.js +0 -1
- package/dist/siemens-ix/p-c92ee533.entry.js +0 -1
- package/dist/siemens-ix/p-d1a16c62.entry.js +0 -1
- package/dist/siemens-ix/p-d1a8d791.entry.js +0 -1
- package/dist/siemens-ix/p-d7618223.entry.js +0 -1
- package/dist/siemens-ix/p-e5fd4b34.entry.js +0 -1
- package/dist/siemens-ix/p-f3cde62f.entry.js +0 -1
- package/dist/siemens-ix/p-fa262af7.entry.js +0 -1
- package/dist/siemens-ix/p-feefa8c7.entry.js +0 -1
- package/dist/types/components/button/button-variants.d.ts +0 -1
- package/dist/types/components/date-picker/events.d.ts +0 -5
- package/dist/types/components/datetime-picker/event.d.ts +0 -5
- package/dist/types/components/dropdown/dropdown-trigger-event.d.ts +0 -4
- package/dist/types/env.d.ts +0 -1
- package/dist/types/exports.d.ts +0 -9
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
|
+
*
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
/* Dimensions */
|
|
18
|
+
/* Font sizes */
|
|
19
|
+
/* Line heights */
|
|
20
|
+
/* Animation timings */
|
|
21
|
+
:host,
|
|
22
|
+
:host .advanced-pagination,
|
|
23
|
+
:host .item-count {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
:host .basic-pagination {
|
|
28
|
+
padding: 0 0.125rem;
|
|
29
|
+
}
|
|
30
|
+
:host .advanced-pagination {
|
|
31
|
+
padding: 0 0.75rem;
|
|
32
|
+
}
|
|
33
|
+
:host input {
|
|
34
|
+
width: 4.125rem;
|
|
35
|
+
text-align: center;
|
|
36
|
+
margin: 0 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
:host .page-buttons {
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
41
|
+
:host .total-count {
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
:host .item-count {
|
|
45
|
+
flex-grow: 1;
|
|
46
|
+
justify-content: flex-end;
|
|
47
|
+
-webkit-margin-start: 1.5rem;
|
|
48
|
+
margin-inline-start: 1.5rem;
|
|
49
|
+
}
|
|
50
|
+
:host .item-count ix-select {
|
|
51
|
+
width: 4.125rem;
|
|
52
|
+
-webkit-margin-start: 1.5rem;
|
|
53
|
+
margin-inline-start: 1.5rem;
|
|
54
|
+
}
|
|
55
|
+
:host ix-index-button + ix-index-button {
|
|
56
|
+
-webkit-margin-start: 0.125rem;
|
|
57
|
+
margin-inline-start: 0.125rem;
|
|
58
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
import { h, Host } from '@stencil/core';
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.5.0
|
|
12
|
+
*/
|
|
13
|
+
export class Pagination {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.maxCountPages = 7;
|
|
16
|
+
this.advanced = undefined;
|
|
17
|
+
this.itemCount = 15;
|
|
18
|
+
this.showItemCount = true;
|
|
19
|
+
this.count = undefined;
|
|
20
|
+
this.selectedPage = 0;
|
|
21
|
+
this.i18nPage = 'Page';
|
|
22
|
+
this.i18nOf = 'of';
|
|
23
|
+
this.i18nItems = 'Items';
|
|
24
|
+
}
|
|
25
|
+
selectPage(index) {
|
|
26
|
+
if (index < 0 || index >= this.count) {
|
|
27
|
+
console.warn(`ix-pagination - invalid index ${index}`);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.selectedPage = index;
|
|
31
|
+
this.pageSelected.emit(index);
|
|
32
|
+
}
|
|
33
|
+
increase() {
|
|
34
|
+
if (this.selectedPage === this.count - 1) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
this.selectPage(this.selectedPage + 1);
|
|
38
|
+
}
|
|
39
|
+
decrease() {
|
|
40
|
+
if (this.selectedPage === 0) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.selectPage(this.selectedPage - 1);
|
|
44
|
+
}
|
|
45
|
+
getPageButton(index) {
|
|
46
|
+
return (h("ix-index-button", { variant: "Primary", onClick: () => {
|
|
47
|
+
this.selectPage(index);
|
|
48
|
+
}, selected: this.selectedPage === index }, index + 1));
|
|
49
|
+
}
|
|
50
|
+
renderPageButtons() {
|
|
51
|
+
const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);
|
|
52
|
+
const hasOverflow = this.count > this.maxCountPages;
|
|
53
|
+
const hasOverflowStart = hasOverflow && this.selectedPage > pagesBeforeOverflow;
|
|
54
|
+
const hasOverflowEnd = hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;
|
|
55
|
+
const pageButtons = [];
|
|
56
|
+
let start = 0;
|
|
57
|
+
let end = Math.min(this.count, this.maxCountPages);
|
|
58
|
+
let pageCount = Math.floor((this.maxCountPages - 4) / 2);
|
|
59
|
+
if (hasOverflowStart) {
|
|
60
|
+
pageButtons.push(this.getPageButton(0));
|
|
61
|
+
pageButtons.push(h("ix-index-button", { variant: "Secondary", onClick: () => {
|
|
62
|
+
if (hasOverflowEnd) {
|
|
63
|
+
this.selectPage(this.selectedPage - Math.max(0, 2 * pageCount + 1));
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.selectPage(this.count - this.maxCountPages);
|
|
67
|
+
}
|
|
68
|
+
} }, "..."));
|
|
69
|
+
if (hasOverflowEnd) {
|
|
70
|
+
start = this.count - this.maxCountPages + 2;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
start = this.count - this.maxCountPages + 2;
|
|
74
|
+
end = this.count;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (hasOverflowEnd) {
|
|
78
|
+
if (hasOverflowStart) {
|
|
79
|
+
start = this.selectedPage - pageCount;
|
|
80
|
+
end = this.selectedPage + pageCount + 1;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
end = this.maxCountPages - 2;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
for (let i = start; i < end; i++) {
|
|
87
|
+
pageButtons.push(this.getPageButton(i));
|
|
88
|
+
}
|
|
89
|
+
if (hasOverflowEnd) {
|
|
90
|
+
pageButtons.push(h("ix-index-button", { variant: "Secondary", onClick: () => {
|
|
91
|
+
if (hasOverflowStart) {
|
|
92
|
+
this.selectPage(this.selectedPage + Math.max(0, 2 * pageCount + 1));
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
this.selectPage(this.maxCountPages - 1);
|
|
96
|
+
}
|
|
97
|
+
} }, "..."));
|
|
98
|
+
pageButtons.push(this.getPageButton(this.count - 1));
|
|
99
|
+
}
|
|
100
|
+
return h("span", { class: "page-buttons" }, pageButtons);
|
|
101
|
+
}
|
|
102
|
+
render() {
|
|
103
|
+
return (h(Host, null, h("ix-icon-button", { disabled: this.selectedPage === 0, ghost: true, icon: "chevron-left-small", onClick: () => this.decrease() }), this.advanced ? (h("div", { class: "advanced-pagination" }, this.i18nPage, h("input", { class: "form-control", type: "number", value: this.selectedPage, onChange: (e) => {
|
|
104
|
+
const index = Number.parseInt(e.target['value']);
|
|
105
|
+
this.selectPage(index);
|
|
106
|
+
} }), h("span", { class: "total-count" }, this.i18nOf, " ", this.count))) : (h("span", { class: "basic-pagination" }, this.renderPageButtons(), " ")), h("ix-icon-button", { disabled: this.selectedPage === this.count - 1, ghost: true, icon: "chevron-right-small", onClick: () => this.increase() }), this.advanced && this.showItemCount ? (h("span", { class: "item-count" }, this.i18nItems, h("ix-select", { i18nPlaceholder: "", i18nSelectListHeader: "", "selected-indices": this.itemCount, onItemSelectionChange: (e) => {
|
|
107
|
+
const count = Number.parseInt(e.detail[0]);
|
|
108
|
+
this.itemCountChanged.emit(count);
|
|
109
|
+
} }, h("ix-select-item", { label: "10", value: "10" }), h("ix-select-item", { label: "15", value: "15" }), h("ix-select-item", { label: "20", value: "20" }), h("ix-select-item", { label: "40", value: "40" }), h("ix-select-item", { label: "100", value: "100" })))) : ('')));
|
|
110
|
+
}
|
|
111
|
+
static get is() { return "ix-pagination"; }
|
|
112
|
+
static get encapsulation() { return "scoped"; }
|
|
113
|
+
static get originalStyleUrls() {
|
|
114
|
+
return {
|
|
115
|
+
"$": ["pagination.scss"]
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
static get styleUrls() {
|
|
119
|
+
return {
|
|
120
|
+
"$": ["pagination.css"]
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
static get properties() {
|
|
124
|
+
return {
|
|
125
|
+
"advanced": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "boolean",
|
|
130
|
+
"resolved": "boolean",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Advanced mode"
|
|
138
|
+
},
|
|
139
|
+
"attribute": "advanced",
|
|
140
|
+
"reflect": false
|
|
141
|
+
},
|
|
142
|
+
"itemCount": {
|
|
143
|
+
"type": "number",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "number",
|
|
147
|
+
"resolved": "number",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Number of items shown at once.\nCan only be changed in advaced mode."
|
|
155
|
+
},
|
|
156
|
+
"attribute": "item-count",
|
|
157
|
+
"reflect": false,
|
|
158
|
+
"defaultValue": "15"
|
|
159
|
+
},
|
|
160
|
+
"showItemCount": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"mutable": false,
|
|
163
|
+
"complexType": {
|
|
164
|
+
"original": "boolean",
|
|
165
|
+
"resolved": "boolean",
|
|
166
|
+
"references": {}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": "Show item count in advanced mode"
|
|
173
|
+
},
|
|
174
|
+
"attribute": "show-item-count",
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "true"
|
|
177
|
+
},
|
|
178
|
+
"count": {
|
|
179
|
+
"type": "number",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "number",
|
|
183
|
+
"resolved": "number",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Total number of pages"
|
|
191
|
+
},
|
|
192
|
+
"attribute": "count",
|
|
193
|
+
"reflect": false
|
|
194
|
+
},
|
|
195
|
+
"selectedPage": {
|
|
196
|
+
"type": "number",
|
|
197
|
+
"mutable": true,
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "number",
|
|
200
|
+
"resolved": "number",
|
|
201
|
+
"references": {}
|
|
202
|
+
},
|
|
203
|
+
"required": false,
|
|
204
|
+
"optional": false,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": "Zero based index of currently selected page"
|
|
208
|
+
},
|
|
209
|
+
"attribute": "selected-page",
|
|
210
|
+
"reflect": false,
|
|
211
|
+
"defaultValue": "0"
|
|
212
|
+
},
|
|
213
|
+
"i18nPage": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "string",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "i18n"
|
|
226
|
+
},
|
|
227
|
+
"attribute": "i-1-8n-page",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "'Page'"
|
|
230
|
+
},
|
|
231
|
+
"i18nOf": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string",
|
|
236
|
+
"resolved": "string",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "i18n"
|
|
244
|
+
},
|
|
245
|
+
"attribute": "i-1-8n-of",
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"defaultValue": "'of'"
|
|
248
|
+
},
|
|
249
|
+
"i18nItems": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "string",
|
|
254
|
+
"resolved": "string",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": false,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": "/**\n i18n"
|
|
262
|
+
},
|
|
263
|
+
"attribute": "i-1-8n-items",
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"defaultValue": "'Items'"
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
static get events() {
|
|
270
|
+
return [{
|
|
271
|
+
"method": "pageSelected",
|
|
272
|
+
"name": "pageSelected",
|
|
273
|
+
"bubbles": true,
|
|
274
|
+
"cancelable": true,
|
|
275
|
+
"composed": true,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": "Page selection event"
|
|
279
|
+
},
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "number",
|
|
282
|
+
"resolved": "number",
|
|
283
|
+
"references": {}
|
|
284
|
+
}
|
|
285
|
+
}, {
|
|
286
|
+
"method": "itemCountChanged",
|
|
287
|
+
"name": "itemCountChanged",
|
|
288
|
+
"bubbles": true,
|
|
289
|
+
"cancelable": true,
|
|
290
|
+
"composed": true,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": "Item count change event"
|
|
294
|
+
},
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "number",
|
|
297
|
+
"resolved": "number",
|
|
298
|
+
"references": {}
|
|
299
|
+
}
|
|
300
|
+
}];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE9E;;GAEG;AAMH,MAAM,OAAO,UAAU;;IACJ,kBAAa,GAAG,CAAC,CAAC;;qBAWf,EAAE;yBAKE,IAAI;;wBAUY,CAAC;oBAKtB,MAAM;kBAKR,IAAI;qBAMD,OAAO;;EAYnB,UAAU,CAAC,KAAa;IAC9B,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE;MACpC,OAAO,CAAC,IAAI,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;MACvD,OAAO;KACR;IAED,IAAI,CAAC,YAAY,GAAG,KAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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\nimport { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\n/**\n * @since 1.5.0\n */\n@Component({\n tag: 'ix-pagination',\n styleUrl: 'pagination.scss',\n scoped: true,\n})\nexport class Pagination {\n private readonly maxCountPages = 7;\n\n /**\n * Advanced mode\n */\n @Prop() advanced: boolean;\n\n /**\n * Number of items shown at once.\n * Can only be changed in advaced mode.\n */\n @Prop() itemCount = 15;\n\n /**\n * Show item count in advanced mode\n */\n @Prop() showItemCount = true;\n\n /**\n * Total number of pages\n */\n @Prop() count: number;\n\n /**\n * Zero based index of currently selected page\n */\n @Prop({ mutable: true }) selectedPage = 0;\n\n /**\n * i18n\n */\n @Prop() i18nPage = 'Page';\n\n /**\n * i18n\n */\n @Prop() i18nOf = 'of';\n\n /**\n /**\n * i18n\n */\n @Prop() i18nItems = 'Items';\n\n /**\n * Page selection event\n */\n @Event() pageSelected: EventEmitter<number>;\n\n /**\n * Item count change event\n */\n @Event() itemCountChanged: EventEmitter<number>;\n\n private selectPage(index: number) {\n if (index < 0 || index >= this.count) {\n console.warn(`ix-pagination - invalid index ${index}`);\n return;\n }\n\n this.selectedPage = index;\n this.pageSelected.emit(index);\n }\n\n private increase() {\n if (this.selectedPage === this.count - 1) {\n return;\n }\n\n this.selectPage(this.selectedPage + 1);\n }\n\n private decrease() {\n if (this.selectedPage === 0) {\n return;\n }\n\n this.selectPage(this.selectedPage - 1);\n }\n\n private getPageButton(index: number) {\n return (\n <ix-index-button\n variant=\"Primary\"\n onClick={() => {\n this.selectPage(index);\n }}\n selected={this.selectedPage === index}\n >\n {index + 1}\n </ix-index-button>\n );\n }\n\n private renderPageButtons() {\n const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);\n const hasOverflow = this.count > this.maxCountPages;\n const hasOverflowStart =\n hasOverflow && this.selectedPage > pagesBeforeOverflow;\n const hasOverflowEnd =\n hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;\n const pageButtons = [];\n\n let start = 0;\n let end = Math.min(this.count, this.maxCountPages);\n let pageCount = Math.floor((this.maxCountPages - 4) / 2);\n\n if (hasOverflowStart) {\n pageButtons.push(this.getPageButton(0));\n pageButtons.push(\n <ix-index-button\n variant=\"Secondary\"\n onClick={() => {\n if (hasOverflowEnd) {\n this.selectPage(\n this.selectedPage - Math.max(0, 2 * pageCount + 1)\n );\n } else {\n this.selectPage(this.count - this.maxCountPages);\n }\n }}\n >\n ...\n </ix-index-button>\n );\n\n if (hasOverflowEnd) {\n start = this.count - this.maxCountPages + 2;\n } else {\n start = this.count - this.maxCountPages + 2;\n end = this.count;\n }\n }\n\n if (hasOverflowEnd) {\n if (hasOverflowStart) {\n start = this.selectedPage - pageCount;\n end = this.selectedPage + pageCount + 1;\n } else {\n end = this.maxCountPages - 2;\n }\n }\n\n for (let i = start; i < end; i++) {\n pageButtons.push(this.getPageButton(i));\n }\n\n if (hasOverflowEnd) {\n pageButtons.push(\n <ix-index-button\n variant=\"Secondary\"\n onClick={() => {\n if (hasOverflowStart) {\n this.selectPage(\n this.selectedPage + Math.max(0, 2 * pageCount + 1)\n );\n } else {\n this.selectPage(this.maxCountPages - 1);\n }\n }}\n >\n ...\n </ix-index-button>\n );\n pageButtons.push(this.getPageButton(this.count - 1));\n }\n\n return <span class=\"page-buttons\">{pageButtons}</span>;\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n disabled={this.selectedPage === 0}\n ghost\n icon=\"chevron-left-small\"\n onClick={() => this.decrease()}\n ></ix-icon-button>\n\n {this.advanced ? (\n <div class=\"advanced-pagination\">\n {this.i18nPage}\n <input\n class=\"form-control\"\n type=\"number\"\n value={this.selectedPage}\n onChange={(e) => {\n const index = Number.parseInt(e.target['value']);\n this.selectPage(index);\n }}\n />\n <span class=\"total-count\">\n {this.i18nOf} {this.count}\n </span>\n </div>\n ) : (\n <span class=\"basic-pagination\">{this.renderPageButtons()} </span>\n )}\n\n <ix-icon-button\n disabled={this.selectedPage === this.count - 1}\n ghost\n icon=\"chevron-right-small\"\n onClick={() => this.increase()}\n ></ix-icon-button>\n\n {this.advanced && this.showItemCount ? (\n <span class=\"item-count\">\n {this.i18nItems}\n <ix-select\n i18nPlaceholder=\"\"\n i18nSelectListHeader=\"\"\n selected-indices={this.itemCount}\n onItemSelectionChange={(e) => {\n const count = Number.parseInt(e.detail[0]);\n this.itemCountChanged.emit(count);\n }}\n >\n <ix-select-item label=\"10\" value=\"10\"></ix-select-item>\n <ix-select-item label=\"15\" value=\"15\"></ix-select-item>\n <ix-select-item label=\"20\" value=\"20\"></ix-select-item>\n <ix-select-item label=\"40\" value=\"40\"></ix-select-item>\n <ix-select-item label=\"100\" value=\"100\"></ix-select-item>\n </ix-select>\n </span>\n ) : (\n ''\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.js","sourceRoot":"","sources":["../../../src/components/pill/pill.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,IAAI;;mBAcA,SAAS;mBAKN,KAAK;;;;qBAoBH,KAAK;;EAEzB,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IACH,KAAK,EAAE;QACL,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,YAAY,EAAE,IAAI,CAAC,SAAS;OAC7B,EACD,KAAK,EACH,IAAI,CAAC,OAAO,KAAK,QAAQ;QACvB,CAAC,CAAC;UACE,KAAK,EAAE,IAAI,CAAC,KAAK;UACjB,eAAe,EAAE,IAAI,CAAC,UAAU;SACjC;QACH,CAAC,CAAC,EAAE,EAER,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW;MAE1B,eACE,KAAK,EAAE;UACL,WAAW,EAAE,IAAI;UACjB,MAAM,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE;SACpD,EACD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,GACV;MACF,WAAK,KAAK,EAAC,MAAM;QACf,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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 { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'ix-pill',\n styleUrl: 'pill.scss',\n scoped: true,\n})\nexport class Pill {\n @Element() el: HTMLIxPillElement;\n\n /**\n * Pill variant\n */\n @Prop({ reflect: true }) variant:\n | 'primary'\n | 'alarm'\n | 'critical'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'success'\n | 'custom' = 'primary';\n\n /**\n * Show pill as outline\n */\n @Prop() outline = false;\n\n /**\n * Show icon\n */\n @Prop() icon: string | undefined;\n\n /**\n * Custom color for pill. Only working for `variant='custom'`\n */\n @Prop() background: string | undefined;\n\n /**\n * Custom font color for pill. Only working for `variant='custom'`\n */\n @Prop() color: string | undefined;\n\n /**\n * Align pill content left\n */\n @Prop() alignLeft = false;\n\n render() {\n return (\n <Host\n class={{\n outline: this.outline,\n 'align-left': this.alignLeft,\n }}\n style={\n this.variant === 'custom'\n ? {\n color: this.color,\n backgroundColor: this.background,\n }\n : {}\n }\n title={this.el.textContent}\n >\n <ix-icon\n class={{\n 'with-icon': true,\n hidden: this.icon === undefined || this.icon === '',\n }}\n name={this.icon}\n size={'16'}\n />\n <div class=\"slot\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AAQvB,MAAM,OAAO,MAAM;;2BAM6C,EAAE;sBAK3C,KAAK;gBAKY,QAAQ;oBAK3B,KAAK;oBAKL,KAAK;oBAKL,KAAK;2BAKE,kBAAkB;mCAKV,uBAAuB;gCAK1B,yBAAyB;wBAYhC,KAAK;;;;2BAIF,KAAK;oBACZ,KAAK;;;;;EAWzB,IAAI,KAAK;IACP,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;EACzE,CAAC;EAED,IAAI,aAAa;IACf,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;EACpD,CAAC;EAED,IAAI,aAAa;IACf,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;EACrD,CAAC;EAED,IAAI,YAAY;IACd,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC;EAChC,CAAC;EAED,IAAI,cAAc;IAChB,OAAO,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;EAClC,CAAC;EAGD,oBAAoB,CAAC,KAAwB;IAC3C,IAAI,CAAC,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AAI,CAAC,oBAAoB,CACtB;QACN,eAAa;QACb,WAAK,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,EAAE,KAAK,EAAC,YAAY,GAAO;QACpE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CACvC,EAAE,CACH,CAAC,CAAC,CAAC,CACF,uCACc,UAAU,EACtB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;YACL,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,eAAe,CAAC;WACnD,EACD,KAAK,EAAE,IAAI,CAAC,eAAe,EAC3B,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;YACjB,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;UACzC,CAAC,GACiB,CACrB,CACW,CACT,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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 {\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 { IxSelectItemLabelChangeEvent } from '../select-item/events';\n\n@Component({\n tag: 'ix-select',\n styleUrl: 'select.scss',\n scoped: true,\n})\nexport class Select {\n @Element() hostElement!: HTMLIxSelectElement;\n\n /**\n * Indices of selected items\n */\n @Prop({ mutable: true }) selectedIndices: string | string[] = [];\n\n /**\n * Show clear button\n */\n @Prop() allowClear = false;\n\n /**\n * Selection mode\n */\n @Prop() mode: 'single' | 'multiple' = 'single';\n\n /**\n * Select is extendable\n */\n @Prop() editable = false;\n\n /**\n * If true the select will be in disabled state\n */\n @Prop() disabled = false;\n\n /**\n * If true the select will be in readonly mode\n */\n @Prop() readonly = false;\n\n /**\n * Input field placeholder\n */\n @Prop() i18nPlaceholder = 'Select an option';\n\n /**\n * Input field placeholder for editable select\n */\n @Prop() i18nPlaceholderEditable = 'Type of select option';\n\n /**\n * Select list header\n */\n @Prop() i18nSelectListHeader = 'Please select an option';\n\n /**\n * Item selection changed\n */\n @Event() itemSelectionChange: EventEmitter<string | string[]>;\n\n /**\n * Item added to selection\n */\n @Event() addItem: EventEmitter<string>;\n\n @State() dropdownShow = false;\n @State() value: string[];\n @State() dropdownWrapperRef!: HTMLElement;\n @State() dropdownAnchor!: HTMLElement;\n @State() isDropdownEmpty = false;\n @State() hasFocus = false;\n @State() navigationItem: HTMLIxSelectItemElement;\n @State() inputFilterText: string;\n @State() inputValue: string;\n\n private inputRef!: HTMLInputElement;\n private dropdownRef!: HTMLIxDropdownElement;\n private addItemRef!: HTMLDivElement;\n\n private labelMutationObserver: MutationObserver;\n\n get items() {\n return Array.from(this.hostElement.querySelectorAll('ix-select-item'));\n }\n\n get selectedItems() {\n return this.items.filter((item) => item.selected);\n }\n\n get addItemButton() {\n return this.hostElement.querySelector('.add-item');\n }\n\n get isSingleMode() {\n return this.mode === 'single';\n }\n\n get isMultipleMode() {\n return this.mode === 'multiple';\n }\n\n @Watch('selectedIndices')\n watchSelectedIndices(newId: string | string[]) {\n if (!newId) {\n this.selectValue([]);\n return;\n }\n\n if (Array.isArray(newId)) {\n this.selectValue([...newId]);\n return;\n }\n\n this.selectValue([newId]);\n }\n\n @Listen('itemClick')\n onItemClicked(event: CustomEvent<string>) {\n const newId = event.detail;\n this.emitItemClick(newId);\n }\n\n @Watch('inputFilterText')\n watchInputText(newValue: string) {\n if (!this.editable) {\n return;\n }\n\n if (this.itemExists(newValue)) {\n return;\n }\n }\n\n private emitItemClick(newId: string) {\n if (this.isMultipleMode && Array.isArray(this.selectedIndices)) {\n if (this.selectedIndices.includes(newId)) {\n this.selectedIndices = this.selectedIndices.filter((i) => i !== newId);\n } else {\n this.selectedIndices = [...this.selectedIndices, newId];\n }\n } else {\n this.selectedIndices = [newId];\n }\n\n this.selectValue(this.selectedIndices);\n this.itemSelectionChange.emit(this.selectedIndices);\n }\n\n private emitAddItem(value: string) {\n if (value.trim() === '') {\n return;\n }\n\n const test = document.createElement('ix-select-item');\n test.value = value;\n test.label = value;\n\n this.addItemRef.appendChild(test);\n\n this.clearInput();\n this.emitItemClick(value);\n this.addItem.emit(value);\n }\n\n private selectValue(ids: string[]) {\n this.items.forEach((item) => {\n item.selected = ids.some((i) => i === item.value);\n });\n\n this.value = this.selectedItems.map((item) => item.label);\n\n if (this.isSingleMode) {\n this.inputValue = this.value?.length ? this.value[0] : null;\n return;\n }\n\n this.inputValue = null;\n }\n\n componentWillLoad() {\n if (this.selectedIndices) {\n this.selectValue(\n Array.isArray(this.selectedIndices)\n ? this.selectedIndices\n : [this.selectedIndices]\n );\n }\n }\n\n @Listen('ix-select-item:labelChange')\n onLabelChange(event: IxSelectItemLabelChangeEvent) {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.selectValue(\n Array.isArray(this.selectedIndices)\n ? this.selectedIndices\n : [this.selectedIndices]\n );\n }\n\n disconnectedCallback() {\n if (this.labelMutationObserver) {\n this.labelMutationObserver.disconnect();\n }\n }\n\n private itemExists(item: string) {\n return this.items.find((i) => i.label === item);\n }\n\n private dropdownVisibilityChanged(event: CustomEvent<boolean>) {\n this.dropdownShow = event.detail;\n\n if (event.detail) {\n this.inputRef.focus();\n this.inputRef.select();\n\n this.navigationItem = this.items[0];\n this.setHoverEffectForNavigatedSelectItem();\n this.removeHiddenFromItems();\n }\n this.hasFocus = event.detail;\n }\n\n @Listen('keydown', {\n target: 'window',\n })\n async onKeyDown(event: KeyboardEvent) {\n if (!this.dropdownShow) {\n return;\n }\n\n if (event.code === 'ArrowDown' || event.code === 'ArrowUp') {\n this.onArrowNavigation(event);\n }\n\n if (event.code === 'Enter' || event.code === 'NumpadEnter') {\n await this.onEnterNavigation();\n }\n\n if (event.code === 'Escape') {\n this.dropdownShow = false;\n }\n }\n\n private async onEnterNavigation() {\n if (this.isMultipleMode) {\n return;\n }\n\n if (this.editable && !this.itemExists(this.inputFilterText)) {\n this.emitAddItem(this.inputFilterText);\n this.navigationItem = this.items[this.items.length - 1];\n }\n\n this.navigationItem?.onItemClick();\n await this.dropdownRef?.updatePosition();\n\n if (this.isSingleMode && !this.editable) {\n this.dropdownShow = false;\n }\n }\n\n private onArrowNavigation(event: KeyboardEvent) {\n event.stopPropagation();\n event.preventDefault();\n\n const selectItems = this.items.filter(\n (i) => !i.classList.contains('d-none')\n );\n\n const index = selectItems.indexOf(this.navigationItem);\n\n if (event.code === 'ArrowDown' && index < selectItems.length - 1) {\n this.navigationItem = selectItems[index + 1];\n } else if (event.code === 'ArrowUp' && index > 0) {\n this.navigationItem = selectItems[index - 1];\n }\n\n this.setHoverEffectForNavigatedSelectItem();\n }\n\n private setHoverEffectForNavigatedSelectItem() {\n this.items.forEach((item: HTMLIxSelectItemElement) => {\n item.hover = item === this.navigationItem;\n });\n }\n\n private filterItemsWithTypeahead() {\n this.inputFilterText = this.inputRef.value;\n if (this.inputFilterText) {\n this.items.forEach((item) => {\n item.classList.remove('d-none');\n if (\n !item.label.toLowerCase().includes(this.inputFilterText.toLowerCase())\n ) {\n item.classList.add('d-none');\n }\n });\n } else {\n this.removeHiddenFromItems();\n }\n this.isDropdownEmpty = this.items.every((item) =>\n item.classList.contains('d-none')\n );\n }\n\n private removeHiddenFromItems() {\n this.items.forEach((item) => {\n item.classList.remove('d-none');\n });\n }\n\n private clearInput() {\n this.inputRef.value = '';\n this.inputFilterText = '';\n }\n\n private clear() {\n this.clearInput();\n this.value = [];\n this.selectedIndices = [];\n this.itemSelectionChange.emit(null);\n this.dropdownShow = false;\n }\n\n render() {\n return (\n <Host>\n <div\n class={{\n 'form-control': true,\n select: true,\n focus: this.hasFocus,\n editable: this.editable,\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n ref={(ref) => {\n this.dropdownAnchor = ref;\n if (!this.editable) this.dropdownWrapperRef = ref;\n }}\n >\n <div class=\"input-container\">\n <div class=\"chips\">\n {this.isMultipleMode\n ? this.selectedItems?.map((item) => (\n <ix-filter-chip\n disabled={this.disabled || this.readonly}\n key={item.value}\n onCloseClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n this.emitItemClick(item.value);\n }}\n >\n {item.label}\n </ix-filter-chip>\n ))\n : ''}\n <div class=\"trigger\">\n <input\n data-testid=\"input\"\n disabled={this.disabled}\n readOnly={this.readonly}\n type=\"text\"\n class={{\n 'allow-clear': this.allowClear && !!this.value?.length,\n }}\n placeholder={\n this.editable\n ? this.i18nPlaceholderEditable\n : this.i18nPlaceholder\n }\n value={this.inputValue}\n ref={(ref) => (this.inputRef = ref)}\n onInput={() => this.filterItemsWithTypeahead()}\n />\n {this.isMultipleMode &&\n this.allowClear &&\n (this.value?.length || this.inputFilterText) ? (\n <ix-icon-button\n class=\"clear\"\n icon=\"clear\"\n ghost\n oval\n size=\"24\"\n onClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n this.clear();\n }}\n />\n ) : null}\n {this.disabled || this.readonly ? null : (\n <div\n class=\"chevron-down-container\"\n ref={(ref) => {\n if (this.editable) this.dropdownWrapperRef = ref;\n }}\n >\n <ix-icon class=\"chevron\" name=\"chevron-down-small\" />\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n <ix-dropdown\n ref={(ref) => (this.dropdownRef = ref)}\n show={this.dropdownShow}\n class={{\n 'd-none':\n this.disabled ||\n this.readonly ||\n (this.isDropdownEmpty && !this.editable),\n }}\n anchor={this.dropdownAnchor}\n trigger={this.dropdownWrapperRef}\n onShowChanged={(e) => this.dropdownVisibilityChanged(e)}\n placement=\"auto-start\"\n overwriteDropdownStyle={async () => {\n return {\n width: `${this.hostElement.clientWidth}px`,\n };\n }}\n >\n <div class=\"select-list-header\" title={this.i18nSelectListHeader}>\n {this.i18nSelectListHeader}\n </div>\n <slot></slot>\n <div ref={(ref) => (this.addItemRef = ref)} class=\"d-contents\"></div>\n {this.itemExists(this.inputFilterText) ? (\n ''\n ) : (\n <ix-dropdown-item\n data-testid=\"add-item\"\n icon=\"plus\"\n class={{\n 'add-item': true,\n 'd-none': !(this.editable && this.inputFilterText),\n }}\n label={this.inputFilterText}\n onItemClick={(e) => {\n e.preventDefault();\n e.stopPropagation();\n this.emitAddItem(this.inputFilterText);\n }}\n ></ix-dropdown-item>\n )}\n </ix-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/components/select-item/events.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,OAAO,4BAA6B,SAAQ,WAGhD;EACA,YAAY,MAA8C;IACxD,KAAK,CAAC,4BAA4B,EAAE;MAClC,OAAO,EAAE,IAAI;MACb,MAAM;KACP,CAAC,CAAC;EACL,CAAC;CACF","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 class IxSelectItemLabelChangeEvent extends CustomEvent<{\n oldValue: string;\n newValue: string;\n}> {\n constructor(detail: { oldValue: string; newValue: string }) {\n super('ix-select-item:labelChange', {\n bubbles: true,\n detail,\n });\n }\n}\n"]}
|
|
@@ -0,0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ACrB,CACf,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { IxSelectItemLabelChangeEvent } from './events';\n\n@Component({\n tag: 'ix-select-item',\n styleUrl: 'select-item.scss',\n scoped: true,\n})\nexport class SelectItem {\n @Element() hostElement: HTMLIxSelectItemElement;\n\n /**\n * Displayed name of the item\n */\n @Prop({ reflect: true }) label: string;\n\n /**\n * Item value\n */\n @Prop({ reflect: true }) value!: any;\n\n /**\n * Whether the item is selected.\n */\n @Prop() selected = false;\n\n /**\n * @internal\n */\n @Prop() hover = false;\n\n /**\n * Item clicked\n */\n @Event() itemClick: EventEmitter<string>;\n\n /**\n * @internal\n * @param event\n */\n @Method()\n async onItemClick(event?: CustomEvent<HTMLIxDropdownItemElement>) {\n event?.preventDefault();\n event?.stopPropagation();\n\n this.itemClick.emit(this.value);\n }\n\n componentDidRender() {\n if (!this.value) {\n throw Error('ix-select-item must have a `value` property');\n }\n }\n\n @Watch('label')\n labelChange(newValue: string, oldValue: string) {\n this.hostElement.dispatchEvent(\n new IxSelectItemLabelChangeEvent({\n newValue: newValue,\n oldValue: oldValue,\n })\n );\n }\n\n render() {\n return (\n <Host>\n <ix-dropdown-item\n checked={this.selected}\n hover={this.hover}\n label={this.label ? this.label : this.value}\n onItemClick={(e) => this.onItemClick(e)}\n ></ix-dropdown-item>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@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EAAE,EAAC,2CAA2C,EAC9C,UAAU,EAAC,WAAW,EACtB,IAAI,EAAC,QAAQ,GACb;cACF,WAAK,aAAa,EAAC,YAAY,EAAC,KAAK,EAAC,UAAU,EAAC,EAAE,EAAC,QAAQ,GAAG,CACvD,CACR,CACF,CACA,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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 { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'ix-spinner',\n styleUrl: 'spinner.scss',\n scoped: true,\n})\nexport class Spinner {\n /**\n * Variant of spinner\n */\n @Prop() variant: 'primary' | 'sencodary' | 'secondary' = 'secondary';\n\n /**\n * Size of spinner\n */\n @Prop() size: 'medium' | 'large' = 'medium';\n\n render() {\n return (\n <Host\n class={{\n primary: this.variant === 'primary',\n large: this.size === 'large',\n }}\n >\n <svg\n viewBox=\"0 0 32 32\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g\n id=\"waiting-anim\"\n stroke=\"none\"\n stroke-width=\"1\"\n fill=\"none\"\n fill-rule=\"evenodd\"\n >\n <g\n id=\"stroke\"\n transform=\"translate(4.5, 3)\"\n fill-rule=\"nonzero\"\n stroke=\"#0F8287\"\n stroke-linejoin=\"round\"\n >\n <polygon\n id=\"w1\"\n points=\"11.2583302 0 11.2583302 6.5 11.2583302 13\"\n visibility=\"hidden\"\n >\n <set\n attributeName=\"visibility\"\n begin=\"0s;w6ul.end\"\n to=\"visible\"\n />\n <animate\n id=\"w1l\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"0s;w6ul.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 0 11.2583302 6.5 11.2583302 13\"\n to=\"11.2583302 0 22.5166605 6.5 11.2583302 13\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"w1ul\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f6uf.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 0 22.5166605 6.5 11.2583302 13\"\n to=\"16.88749535 9.25 22.5166605 6.5 11.2583302 13\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"w1ul.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"w2\"\n points=\"22.5166605 6.5 16.88749535 10 11.2583302 13\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"w1l.end\" to=\"visible\" />\n <animate\n id=\"w2l\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w1l.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"22.5166605 6.5 16.88749535 10 11.2583302 13\"\n to=\"22.5166605 6.5 22.5166605 19.5 11.2583302 13\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"w2ul\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w1ul.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"22.5166605 6.5 22.5166605 19.5 11.2583302 13\"\n to=\"16.88749535 16.25 22.5166605 19.5 11.2583302 13\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"w2ul.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"w3\"\n points=\"11.2583302 13 22.5166605 19.5 16.88749535 16.75\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"w2l.end\" to=\"visible\" />\n <animate\n id=\"w3l\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w2l.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 22.5166605 19.5 16.88749535 16.75\"\n to=\"11.2583302 13 22.5166605 19.5 11.2583302 26\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"w3ul\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w2ul.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 22.5166605 19.5 11.2583302 26\"\n to=\"11.2583302 13 11.2583302 19.5 11.2583302 26\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"w3ul.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"w4\"\n points=\"11.2583302 26 11.2583302 19.5 11.2583302 13\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"w3l.end\" to=\"visible\" />\n <animate\n id=\"w4l\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w3l.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 26 11.2583302 19.5 11.2583302 13\"\n to=\"11.2583302 26 4.4408921e-15 19.5 11.2583302 13\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"w4ul\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w3ul.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 26 4.4408921e-15 19.5 11.2583302 13\"\n to=\"5.62651 16.25 4.4408921e-15 19.5 11.2583302 13\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"w4ul.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"w5\"\n points=\"11.2583302 13 2.4062463e-14 19.5 5.6291651 16.25\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"w4l.end\" to=\"visible\" />\n <animate\n id=\"w5l\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w4l.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 2.4062463e-14 19.5 5.6291651 16.25\"\n to=\"11.2583302 13 2.4062463e-14 19.5 1.687539e-14 6.5\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"w5ul\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w4ul.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 2.4062463e-14 19.5 1.687539e-14 6.5\"\n to=\"11.2583302 13 5.6291651 9.75 1.687539e-14 6.5\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"w5ul.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"w6\"\n points=\"5.6291651 9.75 11.2583302 13 2.66453526e-15 6.5\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"w5l.end\" to=\"visible\" />\n <animate\n id=\"w6l\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w5l.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"5.6291651 9.75 11.2583302 13 2.66453526e-15 6.5\"\n to=\"11.2583302 0 11.2583302 13 2.66453526e-15 6.5\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"w6ul\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w5ul.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 0 11.2583302 13 2.66453526e-15 6.5\"\n to=\"11.2583302 0 11.2583302 13 11.2583302 6.5\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"w6ul.end\" to=\"hidden\" />\n </polygon>\n </g>\n <g\n id=\"fill\"\n transform=\"translate(4.5, 3)\"\n fill=\"#0F8287\"\n fill-rule=\"nonzero\"\n >\n <polygon\n id=\"f1\"\n points=\"11.2583302 0 11.2583302 6.5 11.2583302 13\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"w6l.end\" to=\"visible\" />\n <animate\n id=\"f1f\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"w6l.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 0 11.2583302 6.5 11.2583302 13\"\n to=\"11.2583302 0 22.5166605 6.5 11.2583302 13\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"f1uf\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f6f.end + 0.2s\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 0 22.5166605 6.5 11.2583302 13\"\n to=\"16.88749535 9.25 22.5166605 6.5 11.2583302 13\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"f1uf.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"f2\"\n points=\"22.5166605 6.5 16.88749535 10 11.2583302 13\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"f1f.end\" to=\"visible\" />\n <animate\n id=\"f2f\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f1f.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"22.5166605 6.5 16.88749535 10 11.2583302 13\"\n to=\"22.5166605 6.5 22.5166605 19.5 11.2583302 13\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"f2uf\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f1uf.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"22.5166605 6.5 22.5166605 19.5 11.2583302 13\"\n to=\"16.88749535 16.25 22.5166605 19.5 11.2583302 13\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"f2uf.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"f3\"\n points=\"11.2583302 13 22.5166605 19.5 16.88749535 16.75\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"f2f.end\" to=\"visible\" />\n <animate\n id=\"f3f\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f2f.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 22.5166605 19.5 16.88749535 16.75\"\n to=\"11.2583302 13 22.5166605 19.5 11.2583302 26\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"f3uf\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f2uf.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 22.5166605 19.5 11.2583302 26\"\n to=\"11.2583302 13 11.2583302 19.5 11.2583302 26\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"f3uf.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"f4\"\n points=\"11.2583302 26 11.2583302 19.5 11.2583302 13\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"f3f.end\" to=\"visible\" />\n <animate\n id=\"f4f\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f3f.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 26 11.2583302 19.5 11.2583302 13\"\n to=\"11.2583302 26 4.4408921e-15 19.5 11.2583302 13\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"f4uf\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f3uf.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 26 4.4408921e-15 19.5 11.2583302 13\"\n to=\"5.62651 16.25 4.4408921e-15 19.5 11.2583302 13\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"f4uf.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"f5\"\n points=\"11.2583302 13 2.4062463e-14 19.5 5.6291651 16.25\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"f4f.end\" to=\"visible\" />\n <animate\n id=\"f5f\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f4f.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 2.4062463e-14 19.5 5.6291651 16.25\"\n to=\"11.2583302 13 2.4062463e-14 19.5 1.687539e-14 6.5\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"f5uf\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f4uf.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 13 2.4062463e-14 19.5 1.687539e-14 6.5\"\n to=\"11.2583302 13 5.6291651 9.75 1.687539e-14 6.5\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"f5uf.end\" to=\"hidden\" />\n </polygon>\n\n <polygon\n id=\"f6\"\n points=\"5.6291651 9.75 11.2583302 13 2.66453526e-15 6.5\"\n visibility=\"hidden\"\n >\n <set attributeName=\"visibility\" begin=\"f5f.end\" to=\"visible\" />\n <animate\n id=\"f6f\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f5f.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"5.6291651 9.75 11.2583302 13 2.66453526e-15 6.5\"\n to=\"11.2583302 0 11.2583302 13 2.66453526e-15 6.5\"\n keySplines=\"1 0 0.8 1\"\n fill=\"freeze\"\n />\n <animate\n id=\"f6uf\"\n attributeName=\"points\"\n calcMode=\"spline\"\n begin=\"f5uf.end\"\n dur=\"0.4s\"\n keyTimes=\"0;1\"\n from=\"11.2583302 0 11.2583302 13 2.66453526e-15 6.5\"\n to=\"11.2583302 0 11.2583302 13 11.2583302 6.5\"\n keySplines=\"0.2 0 0 1\"\n fill=\"freeze\"\n />\n <set attributeName=\"visibility\" begin=\"f6uf.end\" to=\"hidden\" />\n </polygon>\n </g>\n </g>\n </svg>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -57,12 +57,12 @@ export class SplitButton {
|
|
|
57
57
|
"type": "string",
|
|
58
58
|
"mutable": false,
|
|
59
59
|
"complexType": {
|
|
60
|
-
"original": "
|
|
60
|
+
"original": "SplitButtonVariant",
|
|
61
61
|
"resolved": "\"Primary\" | \"Secondary\"",
|
|
62
62
|
"references": {
|
|
63
|
-
"
|
|
64
|
-
"location": "
|
|
65
|
-
"path": "
|
|
63
|
+
"SplitButtonVariant": {
|
|
64
|
+
"location": "local",
|
|
65
|
+
"path": "/__w/ix/ix/packages/core/src/components/split-button/split-button.tsx"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
},
|
|
@@ -258,3 +258,4 @@ export class SplitButton {
|
|
|
258
258
|
}
|
|
259
259
|
static get elementRef() { return "hostElement"; }
|
|
260
260
|
}
|
|
261
|
+
//# sourceMappingURL=split-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button.js","sourceRoot":"","sources":["../../../src/components/split-button/split-button.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAWzD,MAAM,OAAO,WAAW;;mBAMgB,SAAS;mBAK7B,KAAK;qBAOH,KAAK;iBAKT,KAAK;;gBAUN,EAAE;qBAKG,cAAc;oBAKf,KAAK;qBAKO,cAAc;kBAE3B,KAAK;;EAUvB,IAAI,UAAU;IACZ,OAAO,KAAK,CAAC,IAAI,CACf,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAC1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AI,CAC1B,CACL;MAEN,mBAAa,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC;QACjD,eAAa,CACD,CACT,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { getButtonClasses } from '../button/base-button';\nimport { ButtonVariant } from '../button/button';\nimport { Placement } from '../dropdown/placement';\n\nexport type SplitButtonVariant = ButtonVariant;\n\n@Component({\n tag: 'ix-split-button',\n styleUrl: 'split-button.scss',\n scoped: true,\n})\nexport class SplitButton {\n @Element() hostElement!: HTMLIxSplitButtonElement;\n\n /**\n * Color variant of button\n */\n @Prop() variant: SplitButtonVariant = 'Primary';\n\n /**\n * Button outline variant\n */\n @Prop() outline = false;\n\n /**\n * Button invisible\n *\n * @deprecated Will be removed in 2.0.0. Use ghost property\n */\n @Prop() invisible = false;\n\n /**\n * Button invisible\n */\n @Prop() ghost = false;\n\n /**\n * Button label\n */\n @Prop() label: string;\n\n /**\n * Button icon\n */\n @Prop() icon = '';\n\n /**\n * Splitbutton icon\n */\n @Prop() splitIcon = 'context-menu';\n\n /**\n * Disabled\n */\n @Prop() disabled = false;\n\n /**\n * Placement of the dropdown\n */\n @Prop() placement: Placement = 'bottom-start';\n\n @State() toggle = false;\n\n /**\n * Button clicked\n */\n @Event() buttonClick: EventEmitter<MouseEvent>;\n\n private triggerElement: HTMLElement;\n private dropdownElement: HTMLIxDropdownElement;\n\n get splitItems() {\n return Array.from(\n this.hostElement.querySelectorAll('ix-split-button-item')\n );\n }\n\n private linkTriggerRef() {\n if (this.triggerElement && this.dropdownElement) {\n this.dropdownElement.trigger = this.triggerElement;\n }\n }\n\n componentDidLoad() {\n this.linkTriggerRef();\n }\n\n render() {\n return (\n <Host>\n <div class={{ 'btn-group': true, 'middle-gap': !this.outline }}>\n <button\n class={{\n ...getButtonClasses(\n this.variant,\n this.outline,\n this.ghost || this.invisible,\n !this.label,\n false,\n false,\n this.disabled\n ),\n ...{\n 'left-button-border': !this.outline,\n },\n }}\n onClick={(e) => this.buttonClick.emit(e)}\n >\n {this.icon ? <ix-icon name={this.icon} /> : null} {this.label}\n </button>\n <button\n ref={(r) => (this.triggerElement = r)}\n class={{\n ...getButtonClasses(\n this.variant,\n this.outline,\n this.ghost || this.invisible,\n true,\n false,\n false,\n this.disabled\n ),\n ...{\n anchor: true,\n },\n }}\n >\n <ix-icon name={this.splitIcon} />\n </button>\n </div>\n\n <ix-dropdown ref={(r) => (this.dropdownElement = r)}>\n <slot></slot>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button-item.js","sourceRoot":"","sources":["../../../src/components/split-button-item/split-button-item.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,GACL,MAAM,eAAe,CAAC;AAOvB,MAAM,OAAO,eAAe;;;;;EAkB1B,MAAM;IACJ,OAAO,CACL,wBACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,GACpB,CACrB,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-split-button-item',\n styleUrl: 'split-button-item.css',\n scoped: true,\n})\nexport class SplitButtonItem {\n /**\n * Dropdown icon\n */\n @Prop() icon: string;\n\n /**\n * Dropdown label\n */\n @Prop() label: string;\n\n /**\n * Dropdown item clicked\n */\n @Event() itemClick: EventEmitter<MouseEvent>;\n\n @Element() hostElement: HTMLIxSplitButtonItemElement;\n\n render() {\n return (\n <ix-dropdown-item\n icon={this.icon}\n label={this.label}\n onClick={(e) => this.itemClick.emit(e)}\n ></ix-dropdown-item>\n );\n }\n}\n"]}
|