@siemens/ix 1.1.0-beta.2 → 1.1.0-beta.4
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 +23 -0
- package/dist/cjs/animation-dfe01edc.js +19 -0
- package/dist/cjs/anime.es-8822f296.js +1311 -0
- package/dist/cjs/base-button-eb1d47db.js +33 -0
- package/dist/cjs/default-tree-item-4597cd84.js +22 -0
- package/dist/cjs/flip-tile-state-c95639e5.js +18 -0
- package/dist/cjs/index-1e4a348f.js +1849 -0
- package/dist/cjs/index.cjs.js +96 -0
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +217 -0
- package/dist/cjs/ix-application-header.cjs.entry.js +30 -0
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +44 -0
- package/dist/cjs/ix-blind.cjs.entry.js +89 -0
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +155 -0
- package/dist/cjs/ix-button.cjs.entry.js +50 -0
- package/dist/cjs/ix-category-filter.cjs.entry.js +399 -0
- package/dist/cjs/ix-chip.cjs.entry.js +47 -0
- package/dist/cjs/ix-counter-pill.cjs.entry.js +40 -0
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +9039 -0
- package/dist/cjs/ix-date-time-card.cjs.entry.js +36 -0
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +113 -0
- package/dist/cjs/ix-drawer.cjs.entry.js +122 -0
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +203 -0
- package/dist/cjs/ix-event-list_2.cjs.entry.js +151 -0
- package/dist/cjs/ix-expanding-search.cjs.entry.js +92 -0
- package/dist/cjs/ix-filter-chip.cjs.entry.js +30 -0
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +79 -0
- package/dist/cjs/ix-group_3.cjs.entry.js +174 -0
- package/dist/cjs/ix-icon-button.cjs.entry.js +40 -0
- package/dist/cjs/ix-icon.cjs.entry.js +33 -0
- package/dist/cjs/ix-input-group.cjs.entry.js +40 -0
- package/dist/cjs/ix-kpi.cjs.entry.js +50 -0
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +165 -0
- package/dist/cjs/ix-menu_9.cjs.entry.js +888 -0
- package/dist/cjs/ix-message-bar.cjs.entry.js +58 -0
- package/dist/cjs/ix-modal-example.cjs.entry.js +24 -0
- package/dist/cjs/ix-modal_2.cjs.entry.js +14 -0
- package/dist/cjs/ix-pill.cjs.entry.js +40 -0
- package/dist/cjs/ix-select_2.cjs.entry.js +309 -0
- package/dist/cjs/ix-spinner.cjs.entry.js +30 -0
- package/dist/cjs/ix-split-button_2.cjs.entry.js +114 -0
- package/dist/cjs/ix-tab-item.cjs.entry.js +67 -0
- package/dist/cjs/ix-tabs.cjs.entry.js +187 -0
- package/dist/cjs/ix-tile.cjs.entry.js +27 -0
- package/dist/cjs/ix-toast_2.cjs.entry.js +159 -0
- package/dist/cjs/ix-toggle.cjs.entry.js +82 -0
- package/dist/cjs/ix-tree_2.cjs.entry.js +690 -0
- package/dist/cjs/ix-upload.cjs.entry.js +139 -0
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +107 -0
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +191 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/logical-filter-operator-467e2faf.js +35 -0
- package/dist/cjs/modal-5be2b1a3.js +221 -0
- package/dist/cjs/modal-utils-5d7bb217.js +42 -0
- package/dist/cjs/mutation-observer-29bedada.js +13 -0
- package/dist/cjs/my-component.cjs.entry.js +19 -0
- package/dist/cjs/popper-d7a0f999.js +1801 -0
- package/dist/cjs/rwd.util-482d41d4.js +42 -0
- package/dist/cjs/siemens-ix.cjs.js +19 -0
- package/dist/cjs/typed-event-8f5a32a2.js +46 -0
- package/dist/cjs/upload-file-state-923b2c65.js +17 -0
- package/dist/collection/collection-manifest.json +264 -0
- package/dist/collection/components/animated-tab/animated-tab.css +14 -0
- package/dist/collection/components/animated-tab/animated-tab.js +59 -0
- package/dist/collection/components/animated-tabs/animated-tabs.css +158 -0
- package/dist/collection/components/animated-tabs/animated-tabs.js +303 -0
- package/dist/collection/components/application-header/application-header.css +30 -0
- package/dist/collection/components/application-header/application-header.js +56 -0
- package/dist/collection/components/basic-navigation/basic-navigation.css +29 -0
- package/dist/collection/components/basic-navigation/basic-navigation.js +91 -0
- package/dist/collection/components/blind/blind.css +146 -0
- package/dist/collection/components/blind/blind.js +152 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +228 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +252 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +11 -0
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +59 -0
- package/dist/collection/components/button/base-button.js +29 -0
- package/dist/collection/components/button/button.css +15 -0
- package/dist/collection/components/button/button.js +192 -0
- package/dist/collection/components/category-filter/category-filter.css +188 -0
- package/dist/collection/components/category-filter/category-filter.js +704 -0
- package/dist/collection/components/category-filter/filter-state.js +10 -0
- package/dist/collection/components/category-filter/input-state.js +17 -0
- package/dist/collection/components/category-filter/logical-filter-operator.js +13 -0
- package/dist/collection/components/chip/chip.css +475 -0
- package/dist/collection/components/chip/chip.js +197 -0
- package/dist/collection/components/counter-pill/counter-pill.css +313 -0
- package/dist/collection/components/counter-pill/counter-pill.js +137 -0
- package/dist/collection/components/date-picker/date-picker.css +224 -0
- package/dist/collection/components/date-picker/date-picker.js +679 -0
- package/dist/collection/components/date-picker/events.js +1 -0
- package/dist/collection/components/date-time-card/date-time-card.css +51 -0
- package/dist/collection/components/date-time-card/date-time-card.js +89 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +44 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +501 -0
- package/dist/collection/components/datetime-picker/event.js +9 -0
- package/dist/collection/components/drawer/drawer.css +78 -0
- package/dist/collection/components/drawer/drawer.js +300 -0
- package/dist/collection/components/dropdown/dropdown.css +536 -0
- package/dist/collection/components/dropdown/dropdown.js +392 -0
- package/dist/collection/components/dropdown-item/dropdown-item.css +61 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js +187 -0
- package/dist/collection/components/event-list/event-list.css +58 -0
- package/dist/collection/components/event-list/event-list.js +197 -0
- package/dist/collection/components/event-list-item/event-list-item.css +126 -0
- package/dist/collection/components/event-list-item/event-list-item.js +162 -0
- package/dist/collection/components/expanding-search/expanding-search.css +127 -0
- package/dist/collection/components/expanding-search/expanding-search.js +178 -0
- package/dist/collection/components/filter-chip/filter-chip.css +82 -0
- package/dist/collection/components/filter-chip/filter-chip.js +74 -0
- package/dist/collection/components/flip-tile/flip-tile-state.js +16 -0
- package/dist/collection/components/flip-tile/flip-tile.css +143 -0
- package/dist/collection/components/flip-tile/flip-tile.js +125 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.css +12 -0
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +23 -0
- package/dist/collection/components/group/group.css +170 -0
- package/dist/collection/components/group/group.js +329 -0
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.css +11 -0
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js +60 -0
- package/dist/collection/components/group-item/group-item.css +116 -0
- package/dist/collection/components/group-item/group-item.js +200 -0
- package/dist/collection/components/icon/icon.css +45 -0
- package/dist/collection/components/icon/icon.js +91 -0
- package/dist/collection/components/icon-button/icon-button.js +242 -0
- package/dist/collection/components/input-group/input-group.css +27 -0
- package/dist/collection/components/input-group/input-group.js +48 -0
- package/dist/collection/components/kpi/kpi.css +131 -0
- package/dist/collection/components/kpi/kpi.js +151 -0
- package/dist/collection/components/map-navigation/map-navigation.css +161 -0
- package/dist/collection/components/map-navigation/map-navigation.js +328 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +237 -0
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +105 -0
- package/dist/collection/components/menu/menu.css +128 -0
- package/dist/collection/components/menu/menu.js +988 -0
- package/dist/collection/components/menu-about/menu-about.css +207 -0
- package/dist/collection/components/menu-about/menu-about.js +167 -0
- package/dist/collection/components/menu-about-item/menu-about-item.css +12 -0
- package/dist/collection/components/menu-about-item/menu-about-item.js +42 -0
- package/dist/collection/components/menu-about-news/menu-about-news.css +99 -0
- package/dist/collection/components/menu-about-news/menu-about-news.js +204 -0
- package/dist/collection/components/menu-avatar/menu-avatar.css +91 -0
- package/dist/collection/components/menu-avatar/menu-avatar.js +136 -0
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +12 -0
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +79 -0
- package/dist/collection/components/menu-item/menu-item.css +143 -0
- package/dist/collection/components/menu-item/menu-item.js +166 -0
- package/dist/collection/components/menu-settings/menu-settings.css +204 -0
- package/dist/collection/components/menu-settings/menu-settings.js +151 -0
- package/dist/collection/components/menu-settings-item/menu-settings-item.css +13 -0
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +42 -0
- package/dist/collection/components/message-bar/message-bar.css +68 -0
- package/dist/collection/components/message-bar/message-bar.js +125 -0
- package/dist/collection/components/modal/modal-utils.js +36 -0
- package/dist/collection/components/modal/modal.css +96 -0
- package/dist/collection/components/modal/modal.js +540 -0
- package/dist/collection/components/modal-container/modal-container.css +14 -0
- package/dist/collection/components/modal-container/modal-container.js +107 -0
- package/dist/collection/components/my-component/example-modal.js +31 -0
- package/dist/collection/components/my-component/my-component.css +34 -0
- package/dist/collection/components/my-component/my-component.js +22 -0
- package/dist/collection/components/pill/pill.css +269 -0
- package/dist/collection/components/pill/pill.js +155 -0
- package/dist/collection/components/select/select.css +176 -0
- package/dist/collection/components/select/select.js +509 -0
- package/dist/collection/components/select-item/select-item.css +14 -0
- package/dist/collection/components/select-item/select-item.js +169 -0
- package/dist/collection/components/spinner/spinner.css +42 -0
- package/dist/collection/components/spinner/spinner.js +137 -0
- package/dist/collection/components/split-button/split-button.css +11 -0
- package/dist/collection/components/split-button/split-button.js +310 -0
- package/dist/collection/components/split-button-item/split-button-item.css +12 -0
- package/dist/collection/components/split-button-item/split-button-item.js +79 -0
- package/dist/collection/components/tab-item/tab-item.css +195 -0
- package/dist/collection/components/tab-item/tab-item.js +219 -0
- package/dist/collection/components/tabs/tabs.css +84 -0
- package/dist/collection/components/tabs/tabs.js +305 -0
- package/dist/collection/components/tile/tile.css +92 -0
- package/dist/collection/components/tile/tile.js +60 -0
- package/dist/collection/components/time-picker/time-picker.css +94 -0
- package/dist/collection/components/time-picker/time-picker.js +431 -0
- package/dist/collection/components/toast/toast-container.js +170 -0
- package/dist/collection/components/toast/toast-utils.js +40 -0
- package/dist/collection/components/toast/toast.css +110 -0
- package/dist/collection/components/toast/toast.js +237 -0
- package/dist/collection/components/toggle/toggle.css +226 -0
- package/dist/collection/components/toggle/toggle.js +263 -0
- package/dist/collection/components/tree/tree-model.js +9 -0
- package/dist/collection/components/tree/tree.css +12 -0
- package/dist/collection/components/tree/tree.js +296 -0
- package/dist/collection/components/tree-item/default-tree-item.js +18 -0
- package/dist/collection/components/tree-item/tree-item.css +86 -0
- package/dist/collection/components/tree-item/tree-item.js +124 -0
- package/dist/collection/components/upload/upload-file-state.js +15 -0
- package/dist/collection/components/upload/upload.css +120 -0
- package/dist/collection/components/upload/upload.js +413 -0
- package/dist/collection/components/utils/animation.js +15 -0
- package/dist/collection/components/utils/button-variants.js +9 -0
- package/dist/collection/components/utils/mutation-observer.js +9 -0
- package/dist/collection/components/utils/notification-color.js +9 -0
- package/dist/collection/components/utils/popover.util.js +33 -0
- package/dist/collection/components/utils/rwd.util.js +37 -0
- package/dist/collection/components/utils/toggle-theme.js +24 -0
- package/dist/collection/components/utils/typed-event.js +42 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +236 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +167 -0
- package/dist/collection/components/workflow-step/workflow-step.css +131 -0
- package/dist/collection/components/workflow-step/workflow-step.js +249 -0
- package/dist/collection/components/workflow-steps/workflow-steps.css +29 -0
- package/dist/collection/components/workflow-steps/workflow-steps.js +182 -0
- package/dist/collection/env.js +9 -0
- package/dist/collection/exports.js +15 -0
- package/dist/collection/index.js +16 -0
- package/dist/collection/utils/test/index.js +9 -0
- package/dist/collection/utils/test/page.js +29 -0
- package/dist/components/_commonjsHelpers.js +19 -0
- package/dist/components/animation.js +17 -0
- package/dist/components/anime.es.js +1309 -0
- package/dist/components/application-header.js +43 -0
- package/dist/components/base-button.js +31 -0
- package/dist/components/button.js +68 -0
- package/dist/components/date-picker.js +385 -0
- package/dist/components/date-time-card.js +49 -0
- package/dist/components/default-tree-item.js +20 -0
- package/dist/components/dropdown-item.js +73 -0
- package/dist/components/dropdown.js +181 -0
- package/dist/components/filter-chip.js +48 -0
- package/dist/components/flip-tile-state.js +18 -0
- package/dist/components/group-item.js +63 -0
- package/dist/components/icon-button.js +68 -0
- package/dist/components/icon.js +47 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +62 -0
- package/dist/components/ix-animated-tab.d.ts +11 -0
- package/dist/components/ix-animated-tab.js +35 -0
- package/dist/components/ix-animated-tabs.d.ts +11 -0
- package/dist/components/ix-animated-tabs.js +229 -0
- package/dist/components/ix-application-header.d.ts +11 -0
- package/dist/components/ix-application-header.js +6 -0
- package/dist/components/ix-basic-navigation.d.ts +11 -0
- package/dist/components/ix-basic-navigation.js +66 -0
- package/dist/components/ix-blind.d.ts +11 -0
- package/dist/components/ix-blind.js +105 -0
- package/dist/components/ix-breadcrumb-item.d.ts +11 -0
- package/dist/components/ix-breadcrumb-item.js +35 -0
- package/dist/components/ix-breadcrumb.d.ts +11 -0
- package/dist/components/ix-breadcrumb.js +180 -0
- package/dist/components/ix-button.d.ts +11 -0
- package/dist/components/ix-button.js +6 -0
- package/dist/components/ix-category-filter.d.ts +11 -0
- package/dist/components/ix-category-filter.js +447 -0
- package/dist/components/ix-chip.d.ts +11 -0
- package/dist/components/ix-chip.js +74 -0
- package/dist/components/ix-counter-pill.d.ts +11 -0
- package/dist/components/ix-counter-pill.js +59 -0
- package/dist/components/ix-date-picker.d.ts +11 -0
- package/dist/components/ix-date-picker.js +6 -0
- package/dist/components/ix-date-time-card.d.ts +11 -0
- package/dist/components/ix-date-time-card.js +6 -0
- package/dist/components/ix-datetime-picker.d.ts +11 -0
- package/dist/components/ix-datetime-picker.js +184 -0
- package/dist/components/ix-drawer.d.ts +11 -0
- package/dist/components/ix-drawer.js +155 -0
- package/dist/components/ix-dropdown-item.d.ts +11 -0
- package/dist/components/ix-dropdown-item.js +6 -0
- package/dist/components/ix-dropdown.d.ts +11 -0
- package/dist/components/ix-dropdown.js +6 -0
- package/dist/components/ix-event-list-item.d.ts +11 -0
- package/dist/components/ix-event-list-item.js +59 -0
- package/dist/components/ix-event-list.d.ts +11 -0
- package/dist/components/ix-event-list.js +135 -0
- package/dist/components/ix-expanding-search.d.ts +11 -0
- package/dist/components/ix-expanding-search.js +124 -0
- package/dist/components/ix-filter-chip.d.ts +11 -0
- package/dist/components/ix-filter-chip.js +6 -0
- package/dist/components/ix-flip-tile-content.d.ts +11 -0
- package/dist/components/ix-flip-tile-content.js +33 -0
- package/dist/components/ix-flip-tile.d.ts +11 -0
- package/dist/components/ix-flip-tile.js +96 -0
- package/dist/components/ix-group-dropdown-item.d.ts +11 -0
- package/dist/components/ix-group-dropdown-item.js +47 -0
- package/dist/components/ix-group-item.d.ts +11 -0
- package/dist/components/ix-group-item.js +6 -0
- package/dist/components/ix-group.d.ts +11 -0
- package/dist/components/ix-group.js +174 -0
- package/dist/components/ix-icon-button.d.ts +11 -0
- package/dist/components/ix-icon-button.js +6 -0
- package/dist/components/ix-icon.d.ts +11 -0
- package/dist/components/ix-icon.js +6 -0
- package/dist/components/ix-input-group.d.ts +11 -0
- package/dist/components/ix-input-group.js +53 -0
- package/dist/components/ix-kpi.d.ts +11 -0
- package/dist/components/ix-kpi.js +75 -0
- package/dist/components/ix-map-navigation-overlay.d.ts +11 -0
- package/dist/components/ix-map-navigation-overlay.js +6 -0
- package/dist/components/ix-map-navigation.d.ts +11 -0
- package/dist/components/ix-map-navigation.js +182 -0
- package/dist/components/ix-menu-about-item.d.ts +11 -0
- package/dist/components/ix-menu-about-item.js +34 -0
- package/dist/components/ix-menu-about-news.d.ts +11 -0
- package/dist/components/ix-menu-about-news.js +78 -0
- package/dist/components/ix-menu-about.d.ts +11 -0
- package/dist/components/ix-menu-about.js +120 -0
- package/dist/components/ix-menu-avatar-item.d.ts +11 -0
- package/dist/components/ix-menu-avatar-item.js +6 -0
- package/dist/components/ix-menu-avatar.d.ts +11 -0
- package/dist/components/ix-menu-avatar.js +83 -0
- package/dist/components/ix-menu-item.d.ts +11 -0
- package/dist/components/ix-menu-item.js +6 -0
- package/dist/components/ix-menu-settings-item.d.ts +11 -0
- package/dist/components/ix-menu-settings-item.js +34 -0
- package/dist/components/ix-menu-settings.d.ts +11 -0
- package/dist/components/ix-menu-settings.js +107 -0
- package/dist/components/ix-menu.d.ts +11 -0
- package/dist/components/ix-menu.js +619 -0
- package/dist/components/ix-message-bar.d.ts +11 -0
- package/dist/components/ix-message-bar.js +88 -0
- package/dist/components/ix-modal-container.d.ts +11 -0
- package/dist/components/ix-modal-container.js +6 -0
- package/dist/components/ix-modal-example.d.ts +11 -0
- package/dist/components/ix-modal-example.js +67 -0
- package/dist/components/ix-modal.d.ts +11 -0
- package/dist/components/ix-modal.js +6 -0
- package/dist/components/ix-pill.d.ts +11 -0
- package/dist/components/ix-pill.js +66 -0
- package/dist/components/ix-select-item.d.ts +11 -0
- package/dist/components/ix-select-item.js +6 -0
- package/dist/components/ix-select.d.ts +11 -0
- package/dist/components/ix-select.js +339 -0
- package/dist/components/ix-spinner.d.ts +11 -0
- package/dist/components/ix-spinner.js +6 -0
- package/dist/components/ix-split-button-item.d.ts +11 -0
- package/dist/components/ix-split-button-item.js +49 -0
- package/dist/components/ix-split-button.d.ts +11 -0
- package/dist/components/ix-split-button.js +135 -0
- package/dist/components/ix-tab-item.d.ts +11 -0
- package/dist/components/ix-tab-item.js +6 -0
- package/dist/components/ix-tabs.d.ts +11 -0
- package/dist/components/ix-tabs.js +6 -0
- package/dist/components/ix-tile.d.ts +11 -0
- package/dist/components/ix-tile.js +42 -0
- package/dist/components/ix-time-picker.d.ts +11 -0
- package/dist/components/ix-time-picker.js +6 -0
- package/dist/components/ix-toast-container.d.ts +11 -0
- package/dist/components/ix-toast-container.js +110 -0
- package/dist/components/ix-toast.d.ts +11 -0
- package/dist/components/ix-toast.js +6 -0
- package/dist/components/ix-toggle.d.ts +11 -0
- package/dist/components/ix-toggle.js +104 -0
- package/dist/components/ix-tree-item.d.ts +11 -0
- package/dist/components/ix-tree-item.js +6 -0
- package/dist/components/ix-tree.d.ts +11 -0
- package/dist/components/ix-tree.js +694 -0
- package/dist/components/ix-upload.d.ts +11 -0
- package/dist/components/ix-upload.js +178 -0
- package/dist/components/ix-validation-tooltip.d.ts +11 -0
- package/dist/components/ix-validation-tooltip.js +124 -0
- package/dist/components/ix-workflow-step.d.ts +11 -0
- package/dist/components/ix-workflow-step.js +142 -0
- package/dist/components/ix-workflow-steps.d.ts +11 -0
- package/dist/components/ix-workflow-steps.js +101 -0
- package/dist/components/logical-filter-operator.js +33 -0
- package/dist/components/luxon.js +8584 -0
- package/dist/components/map-navigation-overlay.js +53 -0
- package/dist/components/menu-avatar-item.js +46 -0
- package/dist/components/menu-item.js +65 -0
- package/dist/components/modal-container.js +99 -0
- package/dist/components/modal-utils.js +38 -0
- package/dist/components/modal.js +189 -0
- package/dist/components/mutation-observer.js +11 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +32 -0
- package/dist/components/popover.util.js +36 -0
- package/dist/components/popper.js +1799 -0
- package/dist/components/rwd.util.js +39 -0
- package/dist/components/select-item.js +71 -0
- package/dist/components/spinner.js +43 -0
- package/dist/components/tab-item.js +86 -0
- package/dist/components/tabs.js +207 -0
- package/dist/components/time-picker.js +193 -0
- package/dist/components/toast.js +123 -0
- package/dist/components/tree-item.js +52 -0
- package/dist/components/typed-event.js +44 -0
- package/dist/components/upload-file-state.js +17 -0
- package/dist/esm/_commonjsHelpers-4bc7200a.js +19 -0
- package/dist/esm/animation-b667a4c4.js +17 -0
- package/dist/esm/anime.es-185e9087.js +1309 -0
- package/dist/esm/base-button-7bfb747f.js +31 -0
- package/dist/esm/default-tree-item-638c435a.js +20 -0
- package/dist/esm/flip-tile-state-28a1f8ce.js +18 -0
- package/dist/esm/index-55cfd20d.js +1819 -0
- package/dist/esm/index.js +64 -0
- package/dist/esm/ix-animated-tab_2.entry.js +212 -0
- package/dist/esm/ix-application-header.entry.js +26 -0
- package/dist/esm/ix-basic-navigation.entry.js +40 -0
- package/dist/esm/ix-blind.entry.js +85 -0
- package/dist/esm/ix-breadcrumb_2.entry.js +150 -0
- package/dist/esm/ix-button.entry.js +46 -0
- package/dist/esm/ix-category-filter.entry.js +395 -0
- package/dist/esm/ix-chip.entry.js +43 -0
- package/dist/esm/ix-counter-pill.entry.js +36 -0
- package/dist/esm/ix-date-picker_2.entry.js +9034 -0
- package/dist/esm/ix-date-time-card.entry.js +32 -0
- package/dist/esm/ix-datetime-picker.entry.js +109 -0
- package/dist/esm/ix-drawer.entry.js +118 -0
- package/dist/esm/ix-dropdown_2.entry.js +198 -0
- package/dist/esm/ix-event-list_2.entry.js +146 -0
- package/dist/esm/ix-expanding-search.entry.js +88 -0
- package/dist/esm/ix-filter-chip.entry.js +26 -0
- package/dist/esm/ix-flip-tile_2.entry.js +74 -0
- package/dist/esm/ix-group_3.entry.js +168 -0
- package/dist/esm/ix-icon-button.entry.js +36 -0
- package/dist/esm/ix-icon.entry.js +29 -0
- package/dist/esm/ix-input-group.entry.js +36 -0
- package/dist/esm/ix-kpi.entry.js +46 -0
- package/dist/esm/ix-map-navigation_2.entry.js +160 -0
- package/dist/esm/ix-menu_9.entry.js +876 -0
- package/dist/esm/ix-message-bar.entry.js +54 -0
- package/dist/esm/ix-modal-example.entry.js +20 -0
- package/dist/esm/ix-modal_2.entry.js +5 -0
- package/dist/esm/ix-pill.entry.js +36 -0
- package/dist/esm/ix-select_2.entry.js +304 -0
- package/dist/esm/ix-spinner.entry.js +26 -0
- package/dist/esm/ix-split-button_2.entry.js +109 -0
- package/dist/esm/ix-tab-item.entry.js +63 -0
- package/dist/esm/ix-tabs.entry.js +183 -0
- package/dist/esm/ix-tile.entry.js +23 -0
- package/dist/esm/ix-toast_2.entry.js +154 -0
- package/dist/esm/ix-toggle.entry.js +78 -0
- package/dist/esm/ix-tree_2.entry.js +685 -0
- package/dist/esm/ix-upload.entry.js +135 -0
- package/dist/esm/ix-validation-tooltip.entry.js +103 -0
- package/dist/esm/ix-workflow-step_2.entry.js +186 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/logical-filter-operator-1bf83315.js +33 -0
- package/dist/esm/modal-8ed87a6c.js +218 -0
- package/dist/esm/modal-utils-ec39c1bc.js +38 -0
- package/dist/esm/mutation-observer-379959bb.js +11 -0
- package/dist/esm/my-component.entry.js +15 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/popper-42db9fbd.js +1799 -0
- package/dist/esm/rwd.util-33a69d24.js +39 -0
- package/dist/esm/siemens-ix.js +17 -0
- package/dist/esm/typed-event-dd6c83dd.js +44 -0
- package/dist/esm/upload-file-state-631bb8a2.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/siemens-ix/index.esm.js +1 -0
- package/dist/siemens-ix/p-02501b64.entry.js +1 -0
- package/dist/siemens-ix/p-03ef9fe5.entry.js +1 -0
- package/dist/siemens-ix/p-0a12b3df.js +1 -0
- package/dist/siemens-ix/p-0bf04780.js +1 -0
- package/dist/siemens-ix/p-0e315bd7.entry.js +1 -0
- package/dist/siemens-ix/p-1c82637e.js +1 -0
- package/dist/siemens-ix/p-1d30454e.js +1 -0
- package/dist/siemens-ix/p-1d56d9b6.entry.js +1 -0
- package/dist/siemens-ix/p-235606b2.entry.js +1 -0
- package/dist/siemens-ix/p-2b7ed5d4.entry.js +1 -0
- package/dist/siemens-ix/p-301ddeb7.js +1 -0
- package/dist/siemens-ix/p-334b7d5c.entry.js +1 -0
- package/dist/siemens-ix/p-37417714.js +1 -0
- package/dist/siemens-ix/p-3f809fb3.entry.js +1 -0
- package/dist/siemens-ix/p-4287bd7e.entry.js +1 -0
- package/dist/siemens-ix/p-47ea9884.js +1 -0
- package/dist/siemens-ix/p-52d99490.entry.js +1 -0
- package/dist/siemens-ix/p-5a1dcc74.js +1 -0
- package/dist/siemens-ix/p-5f9f25ef.entry.js +1 -0
- package/dist/siemens-ix/p-5fed62f8.entry.js +1 -0
- package/dist/siemens-ix/p-6726f740.entry.js +1 -0
- package/dist/siemens-ix/p-67c2bca6.entry.js +1 -0
- package/dist/siemens-ix/p-6f625f0e.js +1 -0
- package/dist/siemens-ix/p-71de6498.entry.js +1 -0
- package/dist/siemens-ix/p-77823732.entry.js +1 -0
- package/dist/siemens-ix/p-78df1e46.entry.js +1 -0
- package/dist/siemens-ix/p-7d667916.entry.js +1 -0
- package/dist/siemens-ix/p-7f5a2e3c.entry.js +1 -0
- package/dist/siemens-ix/p-810b5232.js +1 -0
- package/dist/siemens-ix/p-81e46337.entry.js +1 -0
- package/dist/siemens-ix/p-8239c3a1.entry.js +1 -0
- package/dist/siemens-ix/p-893b7bf6.entry.js +1 -0
- package/dist/siemens-ix/p-94b86dec.entry.js +1 -0
- package/dist/siemens-ix/p-a49005f3.entry.js +1 -0
- package/dist/siemens-ix/p-a8396077.entry.js +1 -0
- package/dist/siemens-ix/p-ab715295.entry.js +1 -0
- package/dist/siemens-ix/p-b4003026.entry.js +1 -0
- package/dist/siemens-ix/p-b93c2fab.entry.js +1 -0
- package/dist/siemens-ix/p-bd15d8ca.entry.js +1 -0
- package/dist/siemens-ix/p-bdd294d2.js +1 -0
- package/dist/siemens-ix/p-be1ec062.entry.js +1 -0
- package/dist/siemens-ix/p-bf5513a0.entry.js +1 -0
- package/dist/siemens-ix/p-c0c9fb81.entry.js +1 -0
- package/dist/siemens-ix/p-c3738ffc.entry.js +1 -0
- package/dist/siemens-ix/p-c792adb4.entry.js +1 -0
- package/dist/siemens-ix/p-c9a5d942.entry.js +1 -0
- package/dist/siemens-ix/p-cb6e62ff.entry.js +1 -0
- package/dist/siemens-ix/p-cbd0f8a7.entry.js +1 -0
- package/dist/siemens-ix/p-d23706a7.js +1 -0
- package/dist/siemens-ix/p-d2fc562a.entry.js +1 -0
- package/dist/siemens-ix/p-da2cae32.js +1 -0
- package/dist/siemens-ix/p-df43662b.entry.js +1 -0
- package/dist/siemens-ix/p-f2636faf.entry.js +1 -0
- package/dist/siemens-ix/p-f86fcdf4.js +1 -0
- package/dist/siemens-ix/p-fa44655a.entry.js +1 -0
- package/dist/siemens-ix/p-fbe40498.js +1 -0
- package/dist/siemens-ix/p-fe5db4d1.entry.js +1 -0
- package/dist/siemens-ix/siemens-ix.css +19249 -0
- package/dist/siemens-ix/siemens-ix.esm.js +1 -0
- package/dist/types/components/animated-tab/animated-tab.d.ts +11 -0
- package/dist/types/components/animated-tabs/animated-tabs.d.ts +44 -0
- package/dist/types/components/application-header/application-header.d.ts +10 -0
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +16 -0
- package/dist/types/components/blind/blind.d.ts +26 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +48 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +11 -0
- package/dist/types/components/button/base-button.d.ts +13 -0
- package/dist/types/components/button/button.d.ts +34 -0
- package/dist/types/components/category-filter/category-filter.d.ts +129 -0
- package/dist/types/components/category-filter/filter-state.d.ts +9 -0
- package/dist/types/components/category-filter/input-state.d.ts +6 -0
- package/dist/types/components/category-filter/logical-filter-operator.d.ts +4 -0
- package/dist/types/components/chip/chip.d.ts +38 -0
- package/dist/types/components/counter-pill/counter-pill.d.ts +24 -0
- package/dist/types/components/date-picker/date-picker.d.ts +136 -0
- package/dist/types/components/date-picker/events.d.ts +5 -0
- package/dist/types/components/date-time-card/date-time-card.d.ts +14 -0
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +128 -0
- package/dist/types/components/datetime-picker/event.d.ts +5 -0
- package/dist/types/components/drawer/drawer.d.ts +49 -0
- package/dist/types/components/dropdown/dropdown.d.ts +70 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +33 -0
- package/dist/types/components/event-list/event-list.d.ts +31 -0
- package/dist/types/components/event-list-item/event-list-item.d.ts +34 -0
- package/dist/types/components/expanding-search/expanding-search.d.ts +31 -0
- package/dist/types/components/filter-chip/filter-chip.d.ts +14 -0
- package/dist/types/components/flip-tile/flip-tile-state.d.ts +7 -0
- package/dist/types/components/flip-tile/flip-tile.d.ts +22 -0
- package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +3 -0
- package/dist/types/components/group/group.d.ts +59 -0
- package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +11 -0
- package/dist/types/components/group-item/group-item.d.ts +39 -0
- package/dist/types/components/icon/icon.d.ts +15 -0
- package/dist/types/components/icon-button/icon-button.d.ts +51 -0
- package/dist/types/components/input-group/input-group.d.ts +5 -0
- package/dist/types/components/kpi/kpi.d.ts +25 -0
- package/dist/types/components/map-navigation/map-navigation.d.ts +51 -0
- package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +20 -0
- package/dist/types/components/menu/menu.d.ts +145 -0
- package/dist/types/components/menu-about/menu-about.d.ts +31 -0
- package/dist/types/components/menu-about-item/menu-about-item.d.ts +7 -0
- package/dist/types/components/menu-about-news/menu-about-news.d.ts +36 -0
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +26 -0
- package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +17 -0
- package/dist/types/components/menu-item/menu-item.d.ts +31 -0
- package/dist/types/components/menu-settings/menu-settings.d.ts +27 -0
- package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +7 -0
- package/dist/types/components/message-bar/message-bar.d.ts +23 -0
- package/dist/types/components/modal/modal-utils.d.ts +26 -0
- package/dist/types/components/modal/modal.d.ts +99 -0
- package/dist/types/components/modal-container/modal-container.d.ts +15 -0
- package/dist/types/components/my-component/example-modal.d.ts +6 -0
- package/dist/types/components/my-component/my-component.d.ts +3 -0
- package/dist/types/components/pill/pill.d.ts +28 -0
- package/dist/types/components/select/select.d.ts +83 -0
- package/dist/types/components/select-item/select-item.d.ts +31 -0
- package/dist/types/components/spinner/spinner.d.ts +11 -0
- package/dist/types/components/split-button/split-button.d.ts +57 -0
- package/dist/types/components/split-button-item/split-button-item.d.ts +17 -0
- package/dist/types/components/tab-item/tab-item.d.ts +36 -0
- package/dist/types/components/tabs/tabs.d.ts +46 -0
- package/dist/types/components/tile/tile.d.ts +7 -0
- package/dist/types/components/time-picker/time-picker.d.ts +80 -0
- package/dist/types/components/toast/toast-container.d.ts +25 -0
- package/dist/types/components/toast/toast-utils.d.ts +33 -0
- package/dist/types/components/toast/toast.d.ts +39 -0
- package/dist/types/components/toggle/toggle.d.ts +45 -0
- package/dist/types/components/tree/tree-model.d.ts +17 -0
- package/dist/types/components/tree/tree.d.ts +44 -0
- package/dist/types/components/tree-item/default-tree-item.d.ts +6 -0
- package/dist/types/components/tree-item/tree-item.d.ts +25 -0
- package/dist/types/components/upload/upload-file-state.d.ts +6 -0
- package/dist/types/components/upload/upload.d.ts +70 -0
- package/dist/types/components/utils/animation.d.ts +7 -0
- package/dist/types/components/utils/button-variants.d.ts +1 -0
- package/dist/types/components/utils/mutation-observer.d.ts +1 -0
- package/dist/types/components/utils/notification-color.d.ts +4 -0
- package/dist/types/components/utils/popover.util.d.ts +9 -0
- package/dist/types/components/utils/rwd.util.d.ts +2 -0
- package/dist/types/components/utils/toggle-theme.d.ts +1 -0
- package/dist/types/components/utils/typed-event.d.ts +15 -0
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +31 -0
- package/dist/types/components/workflow-step/workflow-step.d.ts +35 -0
- package/dist/types/components/workflow-steps/workflow-steps.d.ts +29 -0
- package/dist/types/components.d.ts +3689 -0
- package/dist/types/env.d.ts +1 -0
- package/dist/types/exports.d.ts +7 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/test/index.d.ts +1 -0
- package/dist/types/utils/test/page.d.ts +3 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-55cfd20d.js';
|
|
2
|
+
|
|
3
|
+
const dateTimeCardCss = ".card.sc-ix-date-time-card{background-color:var(--theme-menu--background);width:100%;box-shadow:none;border:none;border-radius:unset}.card.individual.sc-ix-date-time-card{box-shadow:0 0 2px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 12px 18px 0px rgba(0, 0, 0, 0.1);border:1px solid var(--theme-menu--border-color);border-radius:4px}.card.left.sc-ix-date-time-card{border-radius:4px 0 0 4px;height:100%}.card.right.sc-ix-date-time-card{border-radius:0 4px 4px 0;height:100%}.card.sc-ix-date-time-card .header.sc-ix-date-time-card{padding:1rem}.card.sc-ix-date-time-card .separator.sc-ix-date-time-card{border:1px solid var(--theme-datepicker-separator--background);width:100%}.card.sc-ix-date-time-card .content.sc-ix-date-time-card{height:100%;padding:0px 1rem 1rem 1rem}";
|
|
4
|
+
|
|
5
|
+
const DateTimeCard = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* set styles
|
|
10
|
+
*/
|
|
11
|
+
this.individual = true;
|
|
12
|
+
/**
|
|
13
|
+
* Set corners style
|
|
14
|
+
*/
|
|
15
|
+
this.corners = 'rounded';
|
|
16
|
+
}
|
|
17
|
+
cardClasses() {
|
|
18
|
+
return {
|
|
19
|
+
card: true,
|
|
20
|
+
individual: this.individual,
|
|
21
|
+
left: this.corners === 'left',
|
|
22
|
+
right: this.corners === 'right',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (h(Host, null, h("div", { class: this.cardClasses() }, h("div", { class: "header" }, h("slot", { name: "header" })), h("div", { class: "separator" }), h("div", { class: "content" }, h("slot", null)))));
|
|
27
|
+
}
|
|
28
|
+
get hostElement() { return getElement(this); }
|
|
29
|
+
};
|
|
30
|
+
DateTimeCard.style = dateTimeCardCss;
|
|
31
|
+
|
|
32
|
+
export { DateTimeCard as ix_date_time_card };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-55cfd20d.js';
|
|
2
|
+
|
|
3
|
+
const datetimePickerCss = ".sc-ix-datetime-picker-h{display:block;background-color:var(--theme-menu--background);border-radius:4px}.flex.sc-ix-datetime-picker{display:flex;justify-content:center}.done.sc-ix-datetime-picker{display:inline-flex;justify-content:flex-end;padding:1rem;width:100%}.separator.sc-ix-datetime-picker{border:1px solid var(--theme-datepicker-separator--background);width:100%;margin-top:72px;height:1px}";
|
|
4
|
+
|
|
5
|
+
const DatePicker = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.done = createEvent(this, "done", 7);
|
|
9
|
+
this.timeChange = createEvent(this, "timeChange", 7);
|
|
10
|
+
this.dateChange = createEvent(this, "dateChange", 7);
|
|
11
|
+
this.dateSelect = createEvent(this, "dateSelect", 7);
|
|
12
|
+
/**
|
|
13
|
+
* Set range size
|
|
14
|
+
*/
|
|
15
|
+
this.range = true;
|
|
16
|
+
/**
|
|
17
|
+
* Show hour input
|
|
18
|
+
*/
|
|
19
|
+
this.showHour = false;
|
|
20
|
+
/**
|
|
21
|
+
* Show minutes input
|
|
22
|
+
*/
|
|
23
|
+
this.showMinutes = false;
|
|
24
|
+
/**
|
|
25
|
+
* Show seconds input
|
|
26
|
+
*/
|
|
27
|
+
this.showSeconds = false;
|
|
28
|
+
/**
|
|
29
|
+
* Date format string.
|
|
30
|
+
* See {@link https://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
31
|
+
*
|
|
32
|
+
* @since 1.1.0
|
|
33
|
+
*/
|
|
34
|
+
this.dateFormat = 'yyyy/LL/dd';
|
|
35
|
+
/**
|
|
36
|
+
* Time format string.
|
|
37
|
+
* See {@link https://moment.github.io/luxon/#/formatting?id=table-of-tokens} for all available tokens.
|
|
38
|
+
*
|
|
39
|
+
* @since 1.1.0
|
|
40
|
+
*/
|
|
41
|
+
this.timeFormat = 'TT';
|
|
42
|
+
/**
|
|
43
|
+
* Picker date. If the picker is in range mode this property is the end date.
|
|
44
|
+
* If the picker is not in range mode leave this value `null`
|
|
45
|
+
*
|
|
46
|
+
* Format is based on `format`
|
|
47
|
+
*
|
|
48
|
+
* @since 1.1.0
|
|
49
|
+
*/
|
|
50
|
+
this.to = null;
|
|
51
|
+
/**
|
|
52
|
+
* Show time reference input
|
|
53
|
+
*
|
|
54
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
55
|
+
*/
|
|
56
|
+
this.showTimeReference = undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Default behavior of the done event is to join the two events (date and time) into one combined string output.
|
|
59
|
+
* This combination can be configured over the delimiter
|
|
60
|
+
*
|
|
61
|
+
* @since 1.1.0
|
|
62
|
+
*/
|
|
63
|
+
this.eventDelimiter = ' - ';
|
|
64
|
+
/**
|
|
65
|
+
* Text of date select button
|
|
66
|
+
*
|
|
67
|
+
* @since 1.1.0
|
|
68
|
+
*/
|
|
69
|
+
this.textSelectDate = 'Done';
|
|
70
|
+
}
|
|
71
|
+
onDone() {
|
|
72
|
+
var _a;
|
|
73
|
+
this.done.emit([this._from, (_a = this._to) !== null && _a !== void 0 ? _a : '', this._time].join(this.eventDelimiter));
|
|
74
|
+
this.dateSelect.emit({
|
|
75
|
+
from: this._from,
|
|
76
|
+
to: this._to,
|
|
77
|
+
time: this._time,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
async onDateChange(event) {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
event.preventDefault();
|
|
83
|
+
event.stopPropagation();
|
|
84
|
+
const { detail: date } = event;
|
|
85
|
+
this.dateChange.emit(date);
|
|
86
|
+
const currentDateTime = await this.datePickerElement.getCurrentDate();
|
|
87
|
+
this._from = (_a = currentDateTime.start) === null || _a === void 0 ? void 0 : _a.toFormat(this.dateFormat);
|
|
88
|
+
this._to = (_b = currentDateTime.end) === null || _b === void 0 ? void 0 : _b.toFormat(this.dateFormat);
|
|
89
|
+
}
|
|
90
|
+
async onTimeChange(event) {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
event.stopPropagation();
|
|
93
|
+
const { detail: time } = event;
|
|
94
|
+
this.timeChange.emit(time);
|
|
95
|
+
const currentDateTime = await this.timePickerElement.getCurrentTime();
|
|
96
|
+
this._time = currentDateTime.toFormat(this.timeFormat);
|
|
97
|
+
}
|
|
98
|
+
componentDidLoad() {
|
|
99
|
+
this._from = this.from;
|
|
100
|
+
this._to = this.to;
|
|
101
|
+
this._time = this.time;
|
|
102
|
+
}
|
|
103
|
+
render() {
|
|
104
|
+
return (h(Host, null, h("div", { class: "flex" }, h("div", { class: "separator" }), h("ix-date-picker", { ref: (ref) => (this.datePickerElement = ref), corners: "left", individual: false, range: this.range, onDateChange: (event) => this.onDateChange(event), from: this.from, to: this.to, format: this.dateFormat, minDate: this.minDate, maxDate: this.maxDate, eventDelimiter: this.eventDelimiter }), h("ix-time-picker", { ref: (ref) => (this.timePickerElement = ref), corners: "right", individual: false, showHour: this.showHour, showMinutes: this.showMinutes, showSeconds: this.showSeconds, showTimeReference: this.showTimeReference, onTimeChange: (event) => this.onTimeChange(event), time: this.time, format: this.timeFormat, timeReference: this.timeReference }), h("div", { class: "separator" })), h("div", { class: "done" }, h("ix-button", { onClick: () => this.onDone() }, this.textSelectDate))));
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
DatePicker.style = datetimePickerCss;
|
|
108
|
+
|
|
109
|
+
export { DatePicker as ix_datetime_picker };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-55cfd20d.js';
|
|
2
|
+
import { a as anime } from './anime.es-185e9087.js';
|
|
3
|
+
|
|
4
|
+
const drawerCss = ".drawer-container.sc-ix-drawer{top:0;right:0;box-shadow:var(--theme-box-shadow-level-3);visibility:hidden;display:flex;position:absolute;flex-flow:column nowrap;justify-content:flex-start;align-items:center;max-height:100vh;min-height:1.5rem;background-color:var(--theme-color-1);border-radius:0.25rem;transition:all 300ms ease-out}.toggle.sc-ix-drawer{z-index:100;visibility:visible}.drawer-container.full-height.sc-ix-drawer{min-height:100%}.header.sc-ix-drawer{display:flex;position:relative;align-items:center;justify-content:flex-end;height:3.5rem;padding:0.5rem 1rem;width:100%;order:1}.header.sc-ix-drawer .header-content.sc-ix-drawer{flex-grow:1;margin-right:1rem}.content.sc-ix-drawer{position:relative;flex:1;flex-grow:1;order:2;height:100%;width:100%;overflow-y:auto}";
|
|
5
|
+
|
|
6
|
+
const Drawer = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.open = createEvent(this, "open", 7);
|
|
10
|
+
this.drawerClose = createEvent(this, "drawerClose", 7);
|
|
11
|
+
/**
|
|
12
|
+
* Show or hide the drawer
|
|
13
|
+
*/
|
|
14
|
+
this.show = false;
|
|
15
|
+
/**
|
|
16
|
+
* Fired in case of an outside click during drawer showed state
|
|
17
|
+
*/
|
|
18
|
+
this.closeOnClickOutside = true;
|
|
19
|
+
/**
|
|
20
|
+
* Render the drawer with maximum height
|
|
21
|
+
*/
|
|
22
|
+
this.fullHeight = false;
|
|
23
|
+
/**
|
|
24
|
+
* Min width interpreted as REM
|
|
25
|
+
*/
|
|
26
|
+
this.minWidth = 16;
|
|
27
|
+
/**
|
|
28
|
+
* Max width interpreted as REM
|
|
29
|
+
*/
|
|
30
|
+
this.maxWidth = 28;
|
|
31
|
+
/**
|
|
32
|
+
* Width interpreted as REM if not set to 'auto'
|
|
33
|
+
*/
|
|
34
|
+
this.width = this.minWidth;
|
|
35
|
+
this.callback = this.clickedOutside.bind(this);
|
|
36
|
+
}
|
|
37
|
+
onShowChanged(newValue) {
|
|
38
|
+
this.show = newValue !== undefined ? newValue : !this.show;
|
|
39
|
+
this.toggleDrawer(this.show);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Toggle or define show state of drawer
|
|
43
|
+
* @param show Overwrite toggle state with boolean
|
|
44
|
+
*/
|
|
45
|
+
async toggleDrawer(show) {
|
|
46
|
+
this.show = show !== undefined ? show : !this.show;
|
|
47
|
+
if (show) {
|
|
48
|
+
this.open.emit();
|
|
49
|
+
this.slideInRight(this.divElement);
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
window.addEventListener('mousedown', this.callback);
|
|
52
|
+
}, 300);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this.drawerClose.emit();
|
|
56
|
+
this.slideOutRight(this.divElement);
|
|
57
|
+
window.removeEventListener('mousedown', this.callback);
|
|
58
|
+
}
|
|
59
|
+
return Promise.resolve();
|
|
60
|
+
}
|
|
61
|
+
onCloseClicked() {
|
|
62
|
+
this.show = false;
|
|
63
|
+
}
|
|
64
|
+
clickedOutside(evt) {
|
|
65
|
+
if (!this.closeOnClickOutside) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const target = evt.target;
|
|
69
|
+
const closestElement = target.closest('#div-container');
|
|
70
|
+
const btn = target.closest('#drawer-btn');
|
|
71
|
+
if (evt.target.type !== "button" && closestElement !== this.divElement && target !== btn) {
|
|
72
|
+
this.show = false;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
slideOutRight(el) {
|
|
76
|
+
anime({
|
|
77
|
+
targets: el,
|
|
78
|
+
duration: Drawer.duration,
|
|
79
|
+
translateX: [0, '16rem'],
|
|
80
|
+
opacity: [1, 0],
|
|
81
|
+
easing: 'easeInSine',
|
|
82
|
+
complete: () => {
|
|
83
|
+
el.classList.add('d-none');
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
slideInRight(el) {
|
|
88
|
+
anime({
|
|
89
|
+
targets: el,
|
|
90
|
+
duration: Drawer.duration,
|
|
91
|
+
translateX: ['16rem', 0],
|
|
92
|
+
opacity: [0, 1],
|
|
93
|
+
easing: 'easeOutSine',
|
|
94
|
+
begin: () => {
|
|
95
|
+
el.classList.remove('d-none');
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
return (h("div", { class: {
|
|
101
|
+
'drawer-container': true,
|
|
102
|
+
toggle: this.show,
|
|
103
|
+
'full-height': this.fullHeight,
|
|
104
|
+
'd-none': true,
|
|
105
|
+
}, style: {
|
|
106
|
+
width: this.width === 'auto' ? this.width : `${this.width}rem`,
|
|
107
|
+
'min-width': `${this.minWidth}rem`,
|
|
108
|
+
'max-width': `${this.maxWidth}rem`,
|
|
109
|
+
}, ref: (el) => (this.divElement = el), "data-testid": "container", id: "div-container" }, h("div", { class: "header" }, h("div", { class: "header-content" }, h("slot", { name: "header" })), h("ix-icon-button", { icon: "close", size: "24", ghost: true, onClick: () => this.onCloseClicked(), "data-testid": "close-button" })), h("div", { class: "content" }, h("slot", null))));
|
|
110
|
+
}
|
|
111
|
+
static get watchers() { return {
|
|
112
|
+
"show": ["onShowChanged"]
|
|
113
|
+
}; }
|
|
114
|
+
};
|
|
115
|
+
Drawer.duration = 300;
|
|
116
|
+
Drawer.style = drawerCss;
|
|
117
|
+
|
|
118
|
+
export { Drawer as ix_drawer };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-55cfd20d.js';
|
|
2
|
+
import { c as createPopper } from './popper-42db9fbd.js';
|
|
3
|
+
|
|
4
|
+
const dropdownCss = ".dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:\"\";border-top:0.3em solid;border-right:0.3em solid transparent;border-bottom:0;border-left:0.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:#212529;--bs-dropdown-bg:#fff;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:0.375rem;--bs-dropdown-border-width:1px;--bs-dropdown-inner-border-radius:calc(0.375rem - 1px);--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-dropdown-link-color:#212529;--bs-dropdown-link-hover-color:#1e2125;--bs-dropdown-link-hover-bg:#e9ecef;--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:\"\";border-top:0;border-right:0.3em solid transparent;border-bottom:0.3em solid;border-left:0.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:\"\";border-top:0.3em solid transparent;border-right:0;border-bottom:0.3em solid transparent;border-left:0.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:\"\"}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:0.255em;vertical-align:0.255em;content:\"\";border-top:0.3em solid transparent;border-right:0.3em solid;border-bottom:0.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:0.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.dropup .btn,.dropright .btn,.dropdown .btn,.dropleft .btn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;text-align:left;width:100%}.dropdown-group{margin:0.687rem;display:block;position:relative;width:21.562rem;border-radius:0.25rem;background-color:#f8f9fa;border:solid 0.062rem rgba(0, 0, 0, 0.25)}.dropdown-group .dropdown-group-title{display:block;position:relative;font-size:0.875rem;text-align:left;margin:0.937rem 0 1.25rem 0.937rem}.dropdown-group .dropdown-group-content{position:relative;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;height:11.562rem;margin:0.937rem 0 0.937rem 0.937rem}.dropdown-group .dropdown-group-content>*{margin-bottom:1rem}.dropdown-group-submit{display:flex;justify-content:space-between;margin:0 0.687rem 0 0.687rem}.dropdown-menu{background-color:var(--theme-menu--background);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text);border:var(--theme-menu--border-thickness) solid var(--theme-menu--border--color);border-radius:var(--theme-menu--border-radius);max-width:100vw;padding:0.25rem 0;transition:background-color 150ms;box-shadow:var(--theme-menu--box-shadow)}.dropdown-menu.xl>.dropdown-item{height:2.5rem;line-height:2.187rem}.dropdown-header{display:flex;align-items:center;height:2.5rem;color:var(--theme-menu-header--color);padding:0 1rem}.dropdown-buttons{display:flex;padding:0.25rem 0.5rem}.dropdown-buttons ix-icon-button+ix-icon-button{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.dropdown-item{display:flex;height:2.5rem;position:relative;align-items:center;cursor:pointer;padding:0 2rem;border:1px solid transparent;color:var(--theme-menu-item--color)}.dropdown-item:focus-visible{background-color:var(--theme-menu-item--background);color:var(--theme-menu-item--color)}.dropdown-item:focus-visible{outline:none;background-color:var(--theme-menu-item--background);border-color:#119fff;color:var(--theme-menu-item--color--focus)}.dropdown-item:not(.disabled):not(:disabled){cursor:pointer}.dropdown-item:not(.disabled):not(:disabled):hover{color:var(--theme-menu-item--color--hover);background-color:var(--theme-menu-item--background--hover)}.dropdown-item:not(.disabled):not(:disabled){cursor:pointer}.dropdown-item:not(.disabled):not(:disabled):active{color:var(--theme-menu-item--color--active);background-color:var(--theme-menu-item--background--active)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--theme-menu-item--color--disabled);background-color:var(--theme-menu-item--background--disabled)}.dropdown-item>a,.dropdown-item a:hover,.dropdown-item a:active{color:var(--theme-color-std-text)}.dropdown-item>.glyph{color:var(--theme-menu-item-icon--color);-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.dropdown-item>.glyph.glyph-single-check{color:var(--theme-menu-item-icon-check--color)}.dropdown-item>input[type=checkbox]+label{margin-bottom:0px}.dropdown-item>input[type=checkbox]+label::before{margin-right:1rem}.dropdown-divider{border-top:1px solid var(--theme-menu-separator--background);margin:0.25rem 0}button.dropdown-toggle{position:relative;padding-right:1.5rem}button.dropdown-toggle::after{position:absolute;top:45%;right:0.5rem}:host{min-width:0px}";
|
|
5
|
+
|
|
6
|
+
const Dropdown = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.showChanged = createEvent(this, "showChanged", 7);
|
|
10
|
+
/**
|
|
11
|
+
* Show dropdown
|
|
12
|
+
*/
|
|
13
|
+
this.show = false;
|
|
14
|
+
/**
|
|
15
|
+
* Close behavior
|
|
16
|
+
*/
|
|
17
|
+
this.closeBehavior = 'both';
|
|
18
|
+
/**
|
|
19
|
+
* Placement of the dropdown
|
|
20
|
+
*/
|
|
21
|
+
this.placement = 'bottom-end';
|
|
22
|
+
/**
|
|
23
|
+
* Position strategy
|
|
24
|
+
*/
|
|
25
|
+
this.positioningStrategy = 'fixed';
|
|
26
|
+
/**
|
|
27
|
+
* Adjust dropdown width to the parent width
|
|
28
|
+
* @deprecated - property has a typo and will get removed in the next major version. Use `adjustDropdownWidthToReferenceWidth` instead.
|
|
29
|
+
*/
|
|
30
|
+
this.adjustDropdownWidthToReferenceWith = false;
|
|
31
|
+
/**
|
|
32
|
+
* Adjust dropdown width to the parent width
|
|
33
|
+
*/
|
|
34
|
+
this.adjustDropdownWidthToReferenceWidth = false;
|
|
35
|
+
this.openBind = this.open.bind(this);
|
|
36
|
+
}
|
|
37
|
+
get dropdownItems() {
|
|
38
|
+
return Array.from(this.hostElement.querySelectorAll('ix-dropdown-item'));
|
|
39
|
+
}
|
|
40
|
+
resolveElement(prop) {
|
|
41
|
+
if (typeof prop === 'string') {
|
|
42
|
+
return document.querySelector('#' + prop);
|
|
43
|
+
}
|
|
44
|
+
return prop;
|
|
45
|
+
}
|
|
46
|
+
async componentDidLoad() {
|
|
47
|
+
if (this.trigger) {
|
|
48
|
+
this.registerListener(this.trigger);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
registerListener(element) {
|
|
52
|
+
this.triggerElement = this.resolveElement(element);
|
|
53
|
+
this.triggerElement.addEventListener('click', this.openBind);
|
|
54
|
+
}
|
|
55
|
+
unregisterListener(element) {
|
|
56
|
+
const trigger = this.resolveElement(element);
|
|
57
|
+
trigger.removeEventListener('click', this.openBind);
|
|
58
|
+
}
|
|
59
|
+
componentDidRender() {
|
|
60
|
+
var _a;
|
|
61
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
62
|
+
}
|
|
63
|
+
async changedShow(newShow) {
|
|
64
|
+
var _a;
|
|
65
|
+
if (newShow) {
|
|
66
|
+
this.anchorElement = this.anchor
|
|
67
|
+
? this.resolveElement(this.anchor)
|
|
68
|
+
: this.resolveElement(this.trigger);
|
|
69
|
+
if (this.anchorElement) {
|
|
70
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
71
|
+
this.popperInstance = createPopper(this.anchorElement, this.dropdownRef, {
|
|
72
|
+
placement: this.placement,
|
|
73
|
+
strategy: this.positioningStrategy,
|
|
74
|
+
onFirstUpdate: ({ elements }) => {
|
|
75
|
+
if (this.adjustDropdownWidthToReferenceWith ||
|
|
76
|
+
this.adjustDropdownWidthToReferenceWidth) {
|
|
77
|
+
const { popper, reference } = elements;
|
|
78
|
+
const width = reference.getBoundingClientRect().width;
|
|
79
|
+
popper.style.width = `${width}px`;
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
changedTrigger(newTriggerValue, oldTriggerValue) {
|
|
87
|
+
if (newTriggerValue) {
|
|
88
|
+
this.registerListener(newTriggerValue);
|
|
89
|
+
}
|
|
90
|
+
if (oldTriggerValue) {
|
|
91
|
+
this.unregisterListener(oldTriggerValue);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
clickOutside(event) {
|
|
95
|
+
const target = event.target;
|
|
96
|
+
if (this.show === false ||
|
|
97
|
+
this.closeBehavior === false ||
|
|
98
|
+
this.anchorElement === target ||
|
|
99
|
+
this.triggerElement === target) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
switch (this.closeBehavior) {
|
|
103
|
+
case 'outside':
|
|
104
|
+
if (!this.dropdownRef.contains(target)) {
|
|
105
|
+
this.close();
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case 'inside':
|
|
109
|
+
if (this.dropdownRef.contains(target)) {
|
|
110
|
+
this.close();
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
default:
|
|
114
|
+
this.close();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
open(event) {
|
|
118
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
119
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
120
|
+
this.show = !this.show;
|
|
121
|
+
this.showChanged.emit(this.show);
|
|
122
|
+
}
|
|
123
|
+
close() {
|
|
124
|
+
this.show = false;
|
|
125
|
+
this.showChanged.emit(this.show);
|
|
126
|
+
}
|
|
127
|
+
disconnectedCallback() {
|
|
128
|
+
var _a;
|
|
129
|
+
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Update position of dropdown
|
|
133
|
+
*/
|
|
134
|
+
async updatePosition() {
|
|
135
|
+
var _a;
|
|
136
|
+
await ((_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.update());
|
|
137
|
+
}
|
|
138
|
+
render() {
|
|
139
|
+
return (h(Host, { ref: (ref) => (this.dropdownRef = ref), class: {
|
|
140
|
+
'dropdown-menu': true,
|
|
141
|
+
show: this.show,
|
|
142
|
+
}, style: {
|
|
143
|
+
margin: '0',
|
|
144
|
+
minWidth: '0px',
|
|
145
|
+
} }, h("div", { style: { display: 'contents' } }, this.header ? h("div", { class: "dropdown-header" }, this.header) : '', h("slot", null))));
|
|
146
|
+
}
|
|
147
|
+
get hostElement() { return getElement(this); }
|
|
148
|
+
static get watchers() { return {
|
|
149
|
+
"show": ["changedShow"],
|
|
150
|
+
"trigger": ["changedTrigger"]
|
|
151
|
+
}; }
|
|
152
|
+
};
|
|
153
|
+
Dropdown.style = dropdownCss;
|
|
154
|
+
|
|
155
|
+
const dropdownItemCss = ".sc-ix-dropdown-item-h{display:block;min-width:10rem}.icon-only.sc-ix-dropdown-item-h{min-width:0}.icon-only.sc-ix-dropdown-item-h .dropdown-item.sc-ix-dropdown-item{padding:0.25rem 0.5rem}.icon-only.sc-ix-dropdown-item-h .dropdown-item.sc-ix-dropdown-item:not(.disabled):not(:disabled):focus-visible{border-color:#199fff}.sc-ix-dropdown-item-h .checkmark.sc-ix-dropdown-item{position:absolute;left:0.5rem}.checked.sc-ix-dropdown-item-h{background-color:var(--theme-select-list-item--background--selected)}.sc-ix-dropdown-item-h .label.sc-ix-dropdown-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
|
156
|
+
|
|
157
|
+
const DropdownItem = class {
|
|
158
|
+
constructor(hostRef) {
|
|
159
|
+
registerInstance(this, hostRef);
|
|
160
|
+
this.itemClick = createEvent(this, "itemClick", 7);
|
|
161
|
+
/**
|
|
162
|
+
* Display hover state
|
|
163
|
+
*/
|
|
164
|
+
this.hover = false;
|
|
165
|
+
/**
|
|
166
|
+
* Disable item and remove event listeners
|
|
167
|
+
*/
|
|
168
|
+
this.disabled = false;
|
|
169
|
+
/**
|
|
170
|
+
* Whether the item is checked or not. If true a checkmark will mark the item as checked.
|
|
171
|
+
*/
|
|
172
|
+
this.checked = false;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Internal usage only
|
|
176
|
+
*/
|
|
177
|
+
async emitItemClick() {
|
|
178
|
+
this.itemClick.emit(this.hostElement);
|
|
179
|
+
}
|
|
180
|
+
render() {
|
|
181
|
+
return (h(Host, { class: {
|
|
182
|
+
checked: this.checked,
|
|
183
|
+
'icon-text': this.label !== undefined && this.icon !== undefined,
|
|
184
|
+
'icon-only': this.label === undefined && this.icon !== undefined,
|
|
185
|
+
} }, h("button", { class: {
|
|
186
|
+
'dropdown-item': true,
|
|
187
|
+
hover: this.hover,
|
|
188
|
+
disabled: this.disabled,
|
|
189
|
+
}, onClick: () => this.emitItemClick() }, this.checked ? (h("ix-icon", { class: "checkmark", name: "single-check", size: "16" })) : null, this.icon ? (h("span", { class: {
|
|
190
|
+
glyph: true,
|
|
191
|
+
[`glyph-${this.icon}`]: true,
|
|
192
|
+
} })) : null, this.label ? h("span", { class: "label" }, this.label) : null, h("slot", null))));
|
|
193
|
+
}
|
|
194
|
+
get hostElement() { return getElement(this); }
|
|
195
|
+
};
|
|
196
|
+
DropdownItem.style = dropdownItemCss;
|
|
197
|
+
|
|
198
|
+
export { Dropdown as ix_dropdown, DropdownItem as ix_dropdown_item };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-55cfd20d.js';
|
|
2
|
+
import { c as createMutationObserver } from './mutation-observer-379959bb.js';
|
|
3
|
+
import { a as convertToRemString } from './rwd.util-33a69d24.js';
|
|
4
|
+
|
|
5
|
+
const eventListCss = ".sc-ix-event-list-h{display:block;position:relative}ul.sc-ix-event-list{list-style:none;padding:0;margin-bottom:0}.sc-ix-event-list-s>.sc-ix-event-list-h:not(.item-size-s) .ix-event-list-item,.sc-ix-event-list-h:not(.item-size-l) .ix-event-list-item.sc-ix-event-list{display:none}.sc-ix-event-list-h.chevron .sc-ix-event-list-s .ix-event-list-item .chevron-icon{display:initial}.item-size-l .sc-ix-event-list-s .ix-event-list-item{height:6.5rem;max-height:6.5rem}.item-size-l .sc-ix-event-list-s .ix-event-list-item .event-content{height:6.5rem;max-height:6.5rem;white-space:normal}.compact .sc-ix-event-list-s .ix-event-list-item{margin-bottom:0px;border-radius:0px}.compact .sc-ix-event-list-s .ix-event-list-item .indicator{border-top-left-radius:0px;border-bottom-left-radius:0px}.compact .sc-ix-event-list-s .ix-event-list-item .event-list-item-container{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.compact .sc-ix-event-list-s .ix-event-list-item i.glyph{display:none}.compact.sc-ix-event-list .compact.sc-ix-event-list:not(:last-child) .event-list-item-container.sc-ix-event-list{border-bottom:none}";
|
|
6
|
+
|
|
7
|
+
const EventList = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.mutationObserver = createMutationObserver(this.onMutation.bind(this));
|
|
11
|
+
/**
|
|
12
|
+
* Determines the height of list items.
|
|
13
|
+
* This can either be one of two predefined sizes ('S' or 'L') or an absolute pixel value.
|
|
14
|
+
* In case a number is supplied it will get converted to rem internally.
|
|
15
|
+
* Defaults to 'S'.
|
|
16
|
+
*/
|
|
17
|
+
this.itemHeight = 'S';
|
|
18
|
+
/**
|
|
19
|
+
* Make event-list items more compact
|
|
20
|
+
*/
|
|
21
|
+
this.compact = false;
|
|
22
|
+
/**
|
|
23
|
+
* Animate state change transitions. Defaults to 'true'.
|
|
24
|
+
*/
|
|
25
|
+
this.animated = true;
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
if (this.animated) {
|
|
29
|
+
this.triggerFadeIn();
|
|
30
|
+
}
|
|
31
|
+
if (typeof this.itemHeight === 'number') {
|
|
32
|
+
const height = convertToRemString(this.itemHeight);
|
|
33
|
+
this.el.querySelectorAll('.ix-event-list-item').forEach((item) => {
|
|
34
|
+
item.classList.add('d-flex');
|
|
35
|
+
this.setCustomHeight(item, height);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
this.mutationObserver.observe(this.el, { childList: true, subtree: true });
|
|
39
|
+
}
|
|
40
|
+
onMutation(mutationRecords) {
|
|
41
|
+
this.triggerFadeOut().then(() => {
|
|
42
|
+
if (typeof this.itemHeight === 'number') {
|
|
43
|
+
const height = convertToRemString(this.itemHeight);
|
|
44
|
+
mutationRecords
|
|
45
|
+
.filter((mutation) => mutation.type === 'childList')
|
|
46
|
+
.forEach((mutation) => mutation.addedNodes.forEach((item) => {
|
|
47
|
+
var _a;
|
|
48
|
+
const itemHtml = item;
|
|
49
|
+
if (!((_a = itemHtml.classList) === null || _a === void 0 ? void 0 : _a.contains('ix-event-list-item'))) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
itemHtml.classList.add('d-flex');
|
|
53
|
+
this.setCustomHeight(itemHtml, height);
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
this.triggerFadeIn();
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
setCustomHeight(item, height) {
|
|
60
|
+
item.style.height = height;
|
|
61
|
+
item.style.maxHeight = height;
|
|
62
|
+
}
|
|
63
|
+
triggerFadeOut() {
|
|
64
|
+
if (!this.animated) {
|
|
65
|
+
return Promise.resolve();
|
|
66
|
+
}
|
|
67
|
+
const keyframes = [
|
|
68
|
+
{
|
|
69
|
+
opacity: 1,
|
|
70
|
+
easing: 'ease-in',
|
|
71
|
+
},
|
|
72
|
+
{ opacity: 0 },
|
|
73
|
+
];
|
|
74
|
+
const listElement = this.el.querySelector('ul');
|
|
75
|
+
return listElement.animate(keyframes, {
|
|
76
|
+
duration: EventList.fadeOutDuration,
|
|
77
|
+
}).finished;
|
|
78
|
+
}
|
|
79
|
+
triggerFadeIn() {
|
|
80
|
+
if (!this.animated) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const listItems = this.el.querySelectorAll('.ix-event-list-item');
|
|
84
|
+
listItems.forEach((e, i) => {
|
|
85
|
+
const delay = i * 80;
|
|
86
|
+
const offset = delay / (delay + EventList.fadeInDuration);
|
|
87
|
+
const keyframes = [
|
|
88
|
+
{ opacity: 0 },
|
|
89
|
+
{ opacity: 0, easing: 'ease-out', offset },
|
|
90
|
+
{ opacity: 1 },
|
|
91
|
+
];
|
|
92
|
+
const options = {
|
|
93
|
+
duration: EventList.fadeInDuration + delay,
|
|
94
|
+
iterations: 1,
|
|
95
|
+
};
|
|
96
|
+
e.animate(keyframes, options);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
return (h(Host, { class: {
|
|
101
|
+
'item-size-s': this.itemHeight === 'S',
|
|
102
|
+
'item-size-l': this.itemHeight === 'L',
|
|
103
|
+
compact: this.compact,
|
|
104
|
+
chevron: this.chevron,
|
|
105
|
+
} }, h("ul", null, h("slot", null))));
|
|
106
|
+
}
|
|
107
|
+
get el() { return getElement(this); }
|
|
108
|
+
};
|
|
109
|
+
EventList.fadeOutDuration = 50;
|
|
110
|
+
EventList.fadeInDuration = 150;
|
|
111
|
+
EventList.style = eventListCss;
|
|
112
|
+
|
|
113
|
+
const eventListItemCss = ".ix-event-list-item{display:flex;align-items:center;position:relative;height:2.5rem;max-height:2.5rem;border-radius:0.25rem;background-color:var(--theme-event-list-item-bg);overflow:hidden;cursor:pointer;margin-bottom:0.5rem}.ix-event-list-item:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item:not(.disabled):not(:disabled):hover{background-color:var(--theme-event-item--background--hover)}.ix-event-list-item:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item:not(.disabled):not(:disabled):active{background-color:var(--theme-event-item--background--active)}.ix-event-list-item .indicator{height:100%;width:0.5rem;max-width:0.5rem;min-width:0.5rem;border-top-left-radius:0.25rem;border-bottom-left-radius:0.25rem}.ix-event-list-item .indicator-empty{border:var(--theme-weak-bdr-1);border-right:none}.ix-event-list-item .event-list-item-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-grow:1;width:calc(100% - (1rem + 0.5rem));height:100%;border:0.062rem solid;border-color:var(--theme-event-list-item-border);border-top-left-radius:0;border-top-right-radius:0.25rem;border-bottom-left-radius:0;border-bottom-right-radius:0.25rem;border-left:none;padding-left:1rem}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled):hover{border-color:var(--theme-event-item--border--hover)}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled):active{border-color:var(--theme-event-item--border--active)}.ix-event-list-item.selected:not(:active,.active) .event-list-item-container{background-color:var(--theme-event-item--background--selected);border-color:var(--theme-event-item--border--selected)}.ix-event-list-item[disabled],.ix-event-list-item.disabled{pointer-events:none}.ix-event-list-item[disabled] .event-list-item-container,.ix-event-list-item.disabled .event-list-item-container{background-color:var(--theme-event-item--background--disabled);border-color:var(--theme-event-item--border--disabled)}.ix-event-list-item .chevron-icon{display:none;margin-left:auto;margin-right:0.5rem;opacity:0.6;align-self:center}.ix-event-list-item .event-content{display:flex;align-items:center;width:100%;height:100%;overflow:hidden}";
|
|
114
|
+
|
|
115
|
+
const EventListItem = class {
|
|
116
|
+
constructor(hostRef) {
|
|
117
|
+
registerInstance(this, hostRef);
|
|
118
|
+
this.itemClick = createEvent(this, "itemClick", 7);
|
|
119
|
+
/**
|
|
120
|
+
* Opacity of the status indicator.
|
|
121
|
+
* Defaults to 1.0
|
|
122
|
+
*
|
|
123
|
+
* @deprecated Will be removed in 7.0.0. Use color with alpha value.
|
|
124
|
+
*/
|
|
125
|
+
this.opacity = 1;
|
|
126
|
+
}
|
|
127
|
+
handleItemClick() {
|
|
128
|
+
this.itemClick.emit();
|
|
129
|
+
}
|
|
130
|
+
render() {
|
|
131
|
+
return (h("div", { class: {
|
|
132
|
+
'ix-event-list-item': true,
|
|
133
|
+
selected: this.selected,
|
|
134
|
+
disabled: this.disabled,
|
|
135
|
+
} }, h("div", { class: `indicator ${!this.color ? 'indicator-empty' : ''}`, style: {
|
|
136
|
+
'background-color': this.color
|
|
137
|
+
? `var(--theme-${this.color})`
|
|
138
|
+
: 'inherit',
|
|
139
|
+
opacity: `${this.disabled ? 0.4 : this.opacity}`,
|
|
140
|
+
} }), h("div", { class: "event-list-item-container" }, h("div", { class: "event-content" }, h("slot", null)), h("i", { class: "glyph glyph-16 glyph-chevron-right chevron-icon" }))));
|
|
141
|
+
}
|
|
142
|
+
get el() { return getElement(this); }
|
|
143
|
+
};
|
|
144
|
+
EventListItem.style = eventListItemCss;
|
|
145
|
+
|
|
146
|
+
export { EventList as ix_event_list, EventListItem as ix_event_list_item };
|