@siemens/ix 1.1.0-beta.3 → 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,431 @@
|
|
|
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 { Component, Element, Event, h, Host, Method, Prop, State, } from '@stencil/core';
|
|
10
|
+
import { DateTime } from 'luxon';
|
|
11
|
+
export class TimePicker {
|
|
12
|
+
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* Format of time string
|
|
15
|
+
*
|
|
16
|
+
* @since 1.1.0
|
|
17
|
+
*/
|
|
18
|
+
this.format = 'TT';
|
|
19
|
+
/**
|
|
20
|
+
* Corner style
|
|
21
|
+
*/
|
|
22
|
+
this.corners = 'rounded';
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated - will get removed with next major release
|
|
25
|
+
*/
|
|
26
|
+
this.individual = true;
|
|
27
|
+
/**
|
|
28
|
+
* Show hour input
|
|
29
|
+
*/
|
|
30
|
+
this.showHour = false;
|
|
31
|
+
/**
|
|
32
|
+
* Show minutes input
|
|
33
|
+
*/
|
|
34
|
+
this.showMinutes = false;
|
|
35
|
+
/**
|
|
36
|
+
* Show seconds input
|
|
37
|
+
*/
|
|
38
|
+
this.showSeconds = false;
|
|
39
|
+
/**
|
|
40
|
+
* Select time with format string
|
|
41
|
+
*
|
|
42
|
+
* @since 1.1.0
|
|
43
|
+
*/
|
|
44
|
+
this.time = DateTime.now().toFormat(this.format);
|
|
45
|
+
/**
|
|
46
|
+
* Show time reference input
|
|
47
|
+
*
|
|
48
|
+
* @since 1.1.0 time reference is default aligned with formt tt
|
|
49
|
+
*/
|
|
50
|
+
this.showTimeReference = undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Set time reference
|
|
53
|
+
*/
|
|
54
|
+
this.timeReference = DateTime.fromFormat(this.time, this.format).toFormat('a');
|
|
55
|
+
/**
|
|
56
|
+
* Text of date select button
|
|
57
|
+
*
|
|
58
|
+
* @since 1.1.0
|
|
59
|
+
*/
|
|
60
|
+
this.textSelectTime = 'Done';
|
|
61
|
+
this._time = DateTime.fromFormat(this.time, this.format);
|
|
62
|
+
}
|
|
63
|
+
get hour() {
|
|
64
|
+
return this._time.hour;
|
|
65
|
+
}
|
|
66
|
+
get minutes() {
|
|
67
|
+
return this._time.minute;
|
|
68
|
+
}
|
|
69
|
+
get seconds() {
|
|
70
|
+
return this._time.second;
|
|
71
|
+
}
|
|
72
|
+
updateInput(step, { hours = undefined, minutes = undefined, seconds = undefined }) {
|
|
73
|
+
if (hours)
|
|
74
|
+
step === 'up' ? this.hourInputRef.stepUp() : this.hourInputRef.stepDown();
|
|
75
|
+
if (minutes)
|
|
76
|
+
step === 'up'
|
|
77
|
+
? this.minuteInputRef.stepUp()
|
|
78
|
+
: this.minuteInputRef.stepDown();
|
|
79
|
+
if (seconds)
|
|
80
|
+
step === 'up'
|
|
81
|
+
? this.secondInputRef.stepUp()
|
|
82
|
+
: this.secondInputRef.stepDown();
|
|
83
|
+
this._time = this._time.set({
|
|
84
|
+
hour: Number(this.hourInputRef.value),
|
|
85
|
+
minute: Number(this.minuteInputRef.value),
|
|
86
|
+
second: Number(this.secondInputRef.value),
|
|
87
|
+
});
|
|
88
|
+
this.emitTimeChange();
|
|
89
|
+
}
|
|
90
|
+
changeReference() {
|
|
91
|
+
this.referenceInputRef.value =
|
|
92
|
+
this.referenceInputRef.value === 'PM' ? 'AM' : 'PM';
|
|
93
|
+
this.setHourAccordingToReference();
|
|
94
|
+
this.emitTimeChange();
|
|
95
|
+
}
|
|
96
|
+
setHourAccordingToReference() {
|
|
97
|
+
let hour = Number(this.hourInputRef.value);
|
|
98
|
+
if (this.referenceInputRef.value === 'PM')
|
|
99
|
+
hour += 12;
|
|
100
|
+
this._time = this._time.set({ hour });
|
|
101
|
+
}
|
|
102
|
+
emitTimeChange() {
|
|
103
|
+
const time = this._time.toFormat(this.format);
|
|
104
|
+
this.timeChange.emit(time);
|
|
105
|
+
}
|
|
106
|
+
componentWillLoad() {
|
|
107
|
+
if (this.showTimeReference === undefined) {
|
|
108
|
+
const matchedKeys = Object.keys(DateTime.fromFormatExplain(this.time, this.format).matches);
|
|
109
|
+
this.showTimeReference = matchedKeys.includes('a');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get current time
|
|
114
|
+
*/
|
|
115
|
+
async getCurrentTime() {
|
|
116
|
+
return this._time;
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
let hideHour = !this.showHour;
|
|
120
|
+
let hideMinutes = !this.showMinutes;
|
|
121
|
+
let hideSeconds = !this.showSeconds;
|
|
122
|
+
const hideTimeReference = !this.showTimeReference;
|
|
123
|
+
const hideIndividual = !this.individual;
|
|
124
|
+
if (!this.showHour && !this.showMinutes && !this.showSeconds) {
|
|
125
|
+
hideHour = false;
|
|
126
|
+
hideMinutes = false;
|
|
127
|
+
hideSeconds = false;
|
|
128
|
+
}
|
|
129
|
+
const hideHourSeperator = hideMinutes || hideHour;
|
|
130
|
+
const hideMinutesSeperator = hideSeconds || hideMinutes;
|
|
131
|
+
return (h(Host, null,
|
|
132
|
+
h("ix-date-time-card", { individual: this.individual, corners: this.corners },
|
|
133
|
+
h("div", { class: "header", slot: "header" },
|
|
134
|
+
h("div", { class: "title" }, "Time")),
|
|
135
|
+
h("div", { class: "clock" },
|
|
136
|
+
h("div", { class: { columns: true, hidden: hideHour } },
|
|
137
|
+
h("ix-icon-button", { size: "16", onClick: () => this.updateInput('up', { hours: true }), ghost: true, icon: "chevron-up", variant: "Primary", class: "arrows" }),
|
|
138
|
+
h("input", { name: "hours", type: "number", placeholder: "00", value: this.hour, min: "0", disabled: true, max: this.showTimeReference === true ? 11 : 23, ref: (ref) => (this.hourInputRef = ref) }),
|
|
139
|
+
h("ix-icon-button", { size: "16", onClick: () => this.updateInput('down', { hours: true }), ghost: true, icon: "chevron-down", variant: "Primary", class: "arrows" })),
|
|
140
|
+
h("div", { class: { 'column-seperator': true, hidden: hideHourSeperator } }, ":"),
|
|
141
|
+
h("div", { class: { columns: true, hidden: hideMinutes } },
|
|
142
|
+
h("ix-icon-button", { size: "16", onClick: () => this.updateInput('up', { minutes: true }), ghost: true, icon: "chevron-up", variant: "Primary", class: "arrows" }),
|
|
143
|
+
h("input", { name: "minutes", type: "number", placeholder: "00", value: this.minutes, min: "0", max: "59", disabled: true, ref: (ref) => (this.minuteInputRef = ref) }),
|
|
144
|
+
h("ix-icon-button", { size: "16", onClick: () => this.updateInput('down', { minutes: true }), ghost: true, icon: "chevron-down", variant: "Primary", class: "arrows" })),
|
|
145
|
+
h("div", { class: { 'column-seperator': true, hidden: hideMinutesSeperator } }, ":"),
|
|
146
|
+
h("div", { class: { columns: true, hidden: hideSeconds } },
|
|
147
|
+
h("ix-icon-button", { size: "16", onClick: () => this.updateInput('up', { seconds: true }), ghost: true, icon: "chevron-up", variant: "Primary", class: "arrows" }),
|
|
148
|
+
h("input", { name: "seconds", type: "number", placeholder: "00", value: this.seconds, disabled: true, min: "0", max: "59", ref: (ref) => (this.secondInputRef = ref) }),
|
|
149
|
+
h("ix-icon-button", { size: "16", onClick: () => this.updateInput('down', { seconds: true }), ghost: true, icon: "chevron-down", variant: "Primary", class: "arrows" })),
|
|
150
|
+
h("div", { class: {
|
|
151
|
+
columns: true,
|
|
152
|
+
'default-space': true,
|
|
153
|
+
hidden: hideTimeReference,
|
|
154
|
+
} },
|
|
155
|
+
h("ix-icon-button", { size: "16", onClick: () => this.changeReference(), ghost: true, icon: "chevron-up", variant: "Primary", class: "arrows" }),
|
|
156
|
+
h("input", { name: "reference", type: "text", ref: (ref) => (this.referenceInputRef = ref), value: this.timeReference, disabled: true, class: "text-align" }),
|
|
157
|
+
h("ix-icon-button", { size: "16", onClick: () => this.changeReference(), ghost: true, icon: "chevron-down", variant: "Primary", class: "arrows" }))),
|
|
158
|
+
h("div", { class: { button: true, hidden: hideIndividual } },
|
|
159
|
+
h("ix-button", { onClick: () => this.done.emit(this._time.toFormat(this.format)) }, this.textSelectTime)))));
|
|
160
|
+
}
|
|
161
|
+
static get is() { return "ix-time-picker"; }
|
|
162
|
+
static get encapsulation() { return "scoped"; }
|
|
163
|
+
static get originalStyleUrls() { return {
|
|
164
|
+
"$": ["time-picker.scss"]
|
|
165
|
+
}; }
|
|
166
|
+
static get styleUrls() { return {
|
|
167
|
+
"$": ["time-picker.css"]
|
|
168
|
+
}; }
|
|
169
|
+
static get properties() { return {
|
|
170
|
+
"format": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [{
|
|
182
|
+
"name": "since",
|
|
183
|
+
"text": "1.1.0"
|
|
184
|
+
}],
|
|
185
|
+
"text": "Format of time string"
|
|
186
|
+
},
|
|
187
|
+
"attribute": "format",
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"defaultValue": "'TT'"
|
|
190
|
+
},
|
|
191
|
+
"corners": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "DateTimeCardCorners",
|
|
196
|
+
"resolved": "\"left\" | \"right\" | \"rounded\"",
|
|
197
|
+
"references": {
|
|
198
|
+
"DateTimeCardCorners": {
|
|
199
|
+
"location": "import",
|
|
200
|
+
"path": "../date-time-card/date-time-card"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": false,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": "Corner style"
|
|
209
|
+
},
|
|
210
|
+
"attribute": "corners",
|
|
211
|
+
"reflect": false,
|
|
212
|
+
"defaultValue": "'rounded'"
|
|
213
|
+
},
|
|
214
|
+
"individual": {
|
|
215
|
+
"type": "boolean",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "boolean",
|
|
219
|
+
"resolved": "boolean",
|
|
220
|
+
"references": {}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [{
|
|
226
|
+
"name": "deprecated",
|
|
227
|
+
"text": "- will get removed with next major release"
|
|
228
|
+
}],
|
|
229
|
+
"text": ""
|
|
230
|
+
},
|
|
231
|
+
"attribute": "individual",
|
|
232
|
+
"reflect": false,
|
|
233
|
+
"defaultValue": "true"
|
|
234
|
+
},
|
|
235
|
+
"showHour": {
|
|
236
|
+
"type": "boolean",
|
|
237
|
+
"mutable": false,
|
|
238
|
+
"complexType": {
|
|
239
|
+
"original": "boolean",
|
|
240
|
+
"resolved": "boolean",
|
|
241
|
+
"references": {}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": "Show hour input"
|
|
248
|
+
},
|
|
249
|
+
"attribute": "show-hour",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "false"
|
|
252
|
+
},
|
|
253
|
+
"showMinutes": {
|
|
254
|
+
"type": "boolean",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "boolean",
|
|
258
|
+
"resolved": "boolean",
|
|
259
|
+
"references": {}
|
|
260
|
+
},
|
|
261
|
+
"required": false,
|
|
262
|
+
"optional": false,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "Show minutes input"
|
|
266
|
+
},
|
|
267
|
+
"attribute": "show-minutes",
|
|
268
|
+
"reflect": false,
|
|
269
|
+
"defaultValue": "false"
|
|
270
|
+
},
|
|
271
|
+
"showSeconds": {
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "boolean",
|
|
276
|
+
"resolved": "boolean",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": "Show seconds input"
|
|
284
|
+
},
|
|
285
|
+
"attribute": "show-seconds",
|
|
286
|
+
"reflect": false,
|
|
287
|
+
"defaultValue": "false"
|
|
288
|
+
},
|
|
289
|
+
"time": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "string",
|
|
294
|
+
"resolved": "string",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [{
|
|
301
|
+
"name": "since",
|
|
302
|
+
"text": "1.1.0"
|
|
303
|
+
}],
|
|
304
|
+
"text": "Select time with format string"
|
|
305
|
+
},
|
|
306
|
+
"attribute": "time",
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"defaultValue": "DateTime.now().toFormat(this.format)"
|
|
309
|
+
},
|
|
310
|
+
"showTimeReference": {
|
|
311
|
+
"type": "any",
|
|
312
|
+
"mutable": true,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "any",
|
|
315
|
+
"resolved": "any",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [{
|
|
322
|
+
"name": "since",
|
|
323
|
+
"text": "1.1.0 time reference is default aligned with formt tt"
|
|
324
|
+
}],
|
|
325
|
+
"text": "Show time reference input"
|
|
326
|
+
},
|
|
327
|
+
"attribute": "show-time-reference",
|
|
328
|
+
"reflect": false,
|
|
329
|
+
"defaultValue": "undefined"
|
|
330
|
+
},
|
|
331
|
+
"timeReference": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"mutable": false,
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "'AM' | 'PM'",
|
|
336
|
+
"resolved": "\"AM\" | \"PM\"",
|
|
337
|
+
"references": {}
|
|
338
|
+
},
|
|
339
|
+
"required": false,
|
|
340
|
+
"optional": false,
|
|
341
|
+
"docs": {
|
|
342
|
+
"tags": [],
|
|
343
|
+
"text": "Set time reference"
|
|
344
|
+
},
|
|
345
|
+
"attribute": "time-reference",
|
|
346
|
+
"reflect": false,
|
|
347
|
+
"defaultValue": "DateTime.fromFormat(\n this.time,\n this.format\n ).toFormat('a') as 'PM' | 'AM'"
|
|
348
|
+
},
|
|
349
|
+
"textSelectTime": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"mutable": false,
|
|
352
|
+
"complexType": {
|
|
353
|
+
"original": "string",
|
|
354
|
+
"resolved": "string",
|
|
355
|
+
"references": {}
|
|
356
|
+
},
|
|
357
|
+
"required": false,
|
|
358
|
+
"optional": false,
|
|
359
|
+
"docs": {
|
|
360
|
+
"tags": [{
|
|
361
|
+
"name": "since",
|
|
362
|
+
"text": "1.1.0"
|
|
363
|
+
}],
|
|
364
|
+
"text": "Text of date select button"
|
|
365
|
+
},
|
|
366
|
+
"attribute": "text-select-time",
|
|
367
|
+
"reflect": false,
|
|
368
|
+
"defaultValue": "'Done'"
|
|
369
|
+
}
|
|
370
|
+
}; }
|
|
371
|
+
static get states() { return {
|
|
372
|
+
"hourInputRef": {},
|
|
373
|
+
"minuteInputRef": {},
|
|
374
|
+
"secondInputRef": {},
|
|
375
|
+
"referenceInputRef": {}
|
|
376
|
+
}; }
|
|
377
|
+
static get events() { return [{
|
|
378
|
+
"method": "done",
|
|
379
|
+
"name": "done",
|
|
380
|
+
"bubbles": true,
|
|
381
|
+
"cancelable": true,
|
|
382
|
+
"composed": true,
|
|
383
|
+
"docs": {
|
|
384
|
+
"tags": [],
|
|
385
|
+
"text": "Time event"
|
|
386
|
+
},
|
|
387
|
+
"complexType": {
|
|
388
|
+
"original": "string",
|
|
389
|
+
"resolved": "string",
|
|
390
|
+
"references": {}
|
|
391
|
+
}
|
|
392
|
+
}, {
|
|
393
|
+
"method": "timeChange",
|
|
394
|
+
"name": "timeChange",
|
|
395
|
+
"bubbles": true,
|
|
396
|
+
"cancelable": true,
|
|
397
|
+
"composed": true,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "Time change event"
|
|
401
|
+
},
|
|
402
|
+
"complexType": {
|
|
403
|
+
"original": "string",
|
|
404
|
+
"resolved": "string",
|
|
405
|
+
"references": {}
|
|
406
|
+
}
|
|
407
|
+
}]; }
|
|
408
|
+
static get methods() { return {
|
|
409
|
+
"getCurrentTime": {
|
|
410
|
+
"complexType": {
|
|
411
|
+
"signature": "() => Promise<DateTime>",
|
|
412
|
+
"parameters": [],
|
|
413
|
+
"references": {
|
|
414
|
+
"Promise": {
|
|
415
|
+
"location": "global"
|
|
416
|
+
},
|
|
417
|
+
"DateTime": {
|
|
418
|
+
"location": "import",
|
|
419
|
+
"path": "luxon"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"return": "Promise<DateTime>"
|
|
423
|
+
},
|
|
424
|
+
"docs": {
|
|
425
|
+
"text": "Get current time",
|
|
426
|
+
"tags": []
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}; }
|
|
430
|
+
static get elementRef() { return "hostElement"; }
|
|
431
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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 { Component, Element, h, Host, Method, Prop } from '@stencil/core';
|
|
10
|
+
import { TypedEvent } from '../utils/typed-event';
|
|
11
|
+
export class ToastContainer {
|
|
12
|
+
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
*/
|
|
15
|
+
this.containerId = 'toast-container';
|
|
16
|
+
/**
|
|
17
|
+
*/
|
|
18
|
+
this.containerClass = 'toast-container';
|
|
19
|
+
/**
|
|
20
|
+
*/
|
|
21
|
+
this.position = 'bottom-right';
|
|
22
|
+
}
|
|
23
|
+
get hostContainer() {
|
|
24
|
+
return document.getElementById(this.containerId);
|
|
25
|
+
}
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
if (!document.getElementById(this.containerId)) {
|
|
28
|
+
const toastContainer = document.createElement('div');
|
|
29
|
+
toastContainer.id = this.containerId;
|
|
30
|
+
toastContainer.classList.add(this.containerClass);
|
|
31
|
+
toastContainer.classList.add(`toast-container--${this.position}`);
|
|
32
|
+
document.body.appendChild(toastContainer);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Display a toast message
|
|
37
|
+
* @param config
|
|
38
|
+
*/
|
|
39
|
+
async showToast(config) {
|
|
40
|
+
const toast = document.createElement('ix-toast');
|
|
41
|
+
const onClose = new TypedEvent();
|
|
42
|
+
function removeToast(result) {
|
|
43
|
+
toast.remove();
|
|
44
|
+
onClose.emit(result);
|
|
45
|
+
}
|
|
46
|
+
toast.toastTitle = config.title;
|
|
47
|
+
toast.type = config.type;
|
|
48
|
+
toast.autoClose = config.autoClose;
|
|
49
|
+
toast.autoCloseDelay = config.autoCloseDelay;
|
|
50
|
+
toast.icon = config.icon;
|
|
51
|
+
toast.iconColor = config.iconColor;
|
|
52
|
+
toast.addEventListener('closeToast', (event) => {
|
|
53
|
+
const { detail } = event;
|
|
54
|
+
removeToast(detail);
|
|
55
|
+
});
|
|
56
|
+
if (typeof config.message === 'string') {
|
|
57
|
+
toast.innerText = config.message;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
toast.appendChild(config.message);
|
|
61
|
+
}
|
|
62
|
+
this.hostContainer.appendChild(toast);
|
|
63
|
+
return {
|
|
64
|
+
onClose,
|
|
65
|
+
close: (result) => {
|
|
66
|
+
removeToast(result);
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return h(Host, null);
|
|
72
|
+
}
|
|
73
|
+
static get is() { return "ix-toast-container"; }
|
|
74
|
+
static get encapsulation() { return "scoped"; }
|
|
75
|
+
static get properties() { return {
|
|
76
|
+
"containerId": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"attribute": "container-id",
|
|
91
|
+
"reflect": false,
|
|
92
|
+
"defaultValue": "'toast-container'"
|
|
93
|
+
},
|
|
94
|
+
"containerClass": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "string",
|
|
99
|
+
"resolved": "string",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"attribute": "container-class",
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "'toast-container'"
|
|
111
|
+
},
|
|
112
|
+
"position": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "string",
|
|
117
|
+
"resolved": "string",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"attribute": "position",
|
|
127
|
+
"reflect": false,
|
|
128
|
+
"defaultValue": "'bottom-right'"
|
|
129
|
+
}
|
|
130
|
+
}; }
|
|
131
|
+
static get methods() { return {
|
|
132
|
+
"showToast": {
|
|
133
|
+
"complexType": {
|
|
134
|
+
"signature": "(config: ToastConfig) => Promise<{ onClose: TypedEvent<any>; close: (result?: any) => void; }>",
|
|
135
|
+
"parameters": [{
|
|
136
|
+
"tags": [{
|
|
137
|
+
"name": "param",
|
|
138
|
+
"text": "config"
|
|
139
|
+
}],
|
|
140
|
+
"text": ""
|
|
141
|
+
}],
|
|
142
|
+
"references": {
|
|
143
|
+
"Promise": {
|
|
144
|
+
"location": "global"
|
|
145
|
+
},
|
|
146
|
+
"TypedEvent": {
|
|
147
|
+
"location": "import",
|
|
148
|
+
"path": "../utils/typed-event"
|
|
149
|
+
},
|
|
150
|
+
"ToastConfig": {
|
|
151
|
+
"location": "import",
|
|
152
|
+
"path": "./toast-utils"
|
|
153
|
+
},
|
|
154
|
+
"CustomEvent": {
|
|
155
|
+
"location": "global"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"return": "Promise<{ onClose: TypedEvent<any>; close: (result?: any) => void; }>"
|
|
159
|
+
},
|
|
160
|
+
"docs": {
|
|
161
|
+
"text": "Display a toast message",
|
|
162
|
+
"tags": [{
|
|
163
|
+
"name": "param",
|
|
164
|
+
"text": "config"
|
|
165
|
+
}]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}; }
|
|
169
|
+
static get elementRef() { return "host"; }
|
|
170
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
function getToastContainer() {
|
|
10
|
+
const containerList = Array.from(document.querySelectorAll('ix-toast-container'));
|
|
11
|
+
const [container] = containerList;
|
|
12
|
+
if (containerList.length > 1) {
|
|
13
|
+
console.warn('Multiple toast container are found. Only there first is used.');
|
|
14
|
+
return container;
|
|
15
|
+
}
|
|
16
|
+
if (!container) {
|
|
17
|
+
const toastContainer = document.createElement('ix-toast-container');
|
|
18
|
+
document.body.appendChild(toastContainer);
|
|
19
|
+
return toastContainer;
|
|
20
|
+
}
|
|
21
|
+
return container;
|
|
22
|
+
}
|
|
23
|
+
async function toast(config) {
|
|
24
|
+
const context = getToastContainer();
|
|
25
|
+
const toast = await context.showToast(config);
|
|
26
|
+
return toast;
|
|
27
|
+
}
|
|
28
|
+
toast.info = (config) => {
|
|
29
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'info' }));
|
|
30
|
+
};
|
|
31
|
+
toast.error = (config) => {
|
|
32
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'error' }));
|
|
33
|
+
};
|
|
34
|
+
toast.success = (config) => {
|
|
35
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'success' }));
|
|
36
|
+
};
|
|
37
|
+
toast.warning = (config) => {
|
|
38
|
+
return toast(Object.assign(Object.assign({}, config), { type: 'warning' }));
|
|
39
|
+
};
|
|
40
|
+
export { toast };
|