@siemens/ix 1.0.0-beta.2
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/LICENSE +21 -0
- 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 +19 -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 +8881 -0
- package/dist/cjs/ix-date-time-card.cjs.entry.js +36 -0
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +44 -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 +91 -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 +190 -0
- package/dist/cjs/ix-menu_9.cjs.entry.js +872 -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 +155 -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.cjs.entry.js +114 -0
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +83 -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 +258 -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 +29 -0
- package/dist/collection/components/application-header/application-header.js +45 -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 +12 -0
- package/dist/collection/components/button/button.js +192 -0
- package/dist/collection/components/category-filter/category-filter.css +189 -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 +222 -0
- package/dist/collection/components/date-picker/date-picker.js +365 -0
- package/dist/collection/components/date-time-card/date-time-card.css +49 -0
- package/dist/collection/components/date-time-card/date-time-card.js +89 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +35 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +161 -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 +109 -0
- package/dist/collection/components/event-list-item/event-list-item.js +162 -0
- package/dist/collection/components/expanding-search/expanding-search.css +124 -0
- package/dist/collection/components/expanding-search/expanding-search.js +177 -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 +355 -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 +969 -0
- package/dist/collection/components/menu-about/menu-about.css +207 -0
- package/dist/collection/components/menu-about/menu-about.js +188 -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 +140 -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 +274 -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 +232 -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 +80 -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 +235 -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 +13 -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 +32 -0
- package/dist/components/base-button.js +31 -0
- package/dist/components/button.js +68 -0
- package/dist/components/date-picker.js +268 -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 +105 -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 +123 -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 +227 -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 +6 -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 +601 -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-about.js +120 -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 +140 -0
- package/dist/components/toast.js +119 -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 +15 -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 +8876 -0
- package/dist/esm/ix-date-time-card.entry.js +32 -0
- package/dist/esm/ix-datetime-picker.entry.js +40 -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 +87 -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 +185 -0
- package/dist/esm/ix-menu_9.entry.js +860 -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 +150 -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.entry.js +110 -0
- package/dist/esm/ix-workflow-steps.entry.js +79 -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-03d95feb.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-235606b2.entry.js +1 -0
- package/dist/siemens-ix/p-240d22b6.entry.js +1 -0
- package/dist/siemens-ix/p-2cda7278.entry.js +1 -0
- package/dist/siemens-ix/p-2ce29bcd.entry.js +1 -0
- package/dist/siemens-ix/p-301ddeb7.js +1 -0
- package/dist/siemens-ix/p-3613be96.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-40842bea.entry.js +1 -0
- package/dist/siemens-ix/p-47ea9884.js +1 -0
- package/dist/siemens-ix/p-4ffec6ae.entry.js +1 -0
- package/dist/siemens-ix/p-504927a0.entry.js +1 -0
- package/dist/siemens-ix/p-5990f0cb.entry.js +1 -0
- package/dist/siemens-ix/p-59c81e2a.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-61b032bf.entry.js +1 -0
- package/dist/siemens-ix/p-662d756f.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-78df1e46.entry.js +1 -0
- package/dist/siemens-ix/p-7a4c744e.entry.js +1 -0
- package/dist/siemens-ix/p-7d667916.entry.js +1 -0
- package/dist/siemens-ix/p-7ec8a00e.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-9d9b8ad1.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-bbcee9fb.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-c3738ffc.entry.js +1 -0
- package/dist/siemens-ix/p-ca71538c.entry.js +1 -0
- package/dist/siemens-ix/p-caf856f2.entry.js +1 -0
- package/dist/siemens-ix/p-cde8f20e.entry.js +1 -0
- package/dist/siemens-ix/p-d23706a7.js +1 -0
- package/dist/siemens-ix/p-d31bf6db.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-e1f54836.entry.js +1 -0
- package/dist/siemens-ix/p-e4d1a964.entry.js +1 -0
- package/dist/siemens-ix/p-f2636faf.entry.js +1 -0
- package/dist/siemens-ix/p-f6da7e07.entry.js +1 -0
- package/dist/siemens-ix/p-f86fcdf4.js +1 -0
- package/dist/siemens-ix/p-fbe40498.js +1 -0
- package/dist/siemens-ix/p-fe020fa3.entry.js +1 -0
- package/dist/siemens-ix/p-fe5db4d1.entry.js +1 -0
- package/dist/siemens-ix/siemens-ix.css +19243 -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 +7 -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 +56 -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 +31 -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 +59 -0
- package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +20 -0
- package/dist/types/components/menu/menu.d.ts +143 -0
- package/dist/types/components/menu-about/menu-about.d.ts +34 -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 +46 -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 +3453 -0
- package/dist/types/env.d.ts +1 -0
- package/dist/types/exports.d.ts +5 -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 +86 -0
- package/scss/_common-variables.scss +60 -0
- package/scss/_fonts.scss +70 -0
- package/scss/_z-index.scss +18 -0
- package/scss/components/_button-group.scss +24 -0
- package/scss/components/_buttons.scss +150 -0
- package/scss/components/_checkboxes.scss +177 -0
- package/scss/components/_dropdown.scss +175 -0
- package/scss/components/_forms.scss +146 -0
- package/scss/components/_input-group.scss +34 -0
- package/scss/components/_links.scss +31 -0
- package/scss/components/_modal.scss +41 -0
- package/scss/components/_radiobuttons.scss +169 -0
- package/scss/components/_shadows.scss +35 -0
- package/scss/components/_table.scss +27 -0
- package/scss/ix.scss +95 -0
- package/scss/mixins/_animations.scss +30 -0
- package/scss/mixins/_fonts.scss +166 -0
- package/scss/mixins/_hover.scss +59 -0
- package/scss/mixins/_shadows.scss +12 -0
- package/scss/mixins/_text-truncation.scss +14 -0
- package/scss/theme/_define-theme-colors.scss +22 -0
- package/scss/theme/_define-theme-variable.scss +12 -0
- package/scss/theme/_define-theme.scss +36 -0
- package/scss/theme/_static-colors.scss +19 -0
- package/scss/theme/classic-dark/_sizes.scss +66 -0
- package/scss/theme/classic-dark/_variables.scss +827 -0
- package/scss/theme/classic-dark/index.scss +15 -0
- package/scss/theme/classic-light/_sizes.scss +66 -0
- package/scss/theme/classic-light/_variables.scss +830 -0
- package/scss/theme/classic-light/index.scss +15 -0
- package/src/components/animated-tab/readme.md +24 -0
- package/src/components/animated-tabs/readme.md +32 -0
- package/src/components/application-header/readme.md +21 -0
- package/src/components/basic-navigation/readme.md +22 -0
- package/src/components/blind/readme.md +29 -0
- package/src/components/breadcrumb/readme.md +33 -0
- package/src/components/breadcrumb-item/readme.md +22 -0
- package/src/components/button/readme.md +27 -0
- package/src/components/category-filter/readme.md +40 -0
- package/src/components/chip/readme.md +36 -0
- package/src/components/counter-pill/readme.md +25 -0
- package/src/components/date-picker/readme.md +32 -0
- package/src/components/date-time-card/readme.md +22 -0
- package/src/components/datetime-picker/readme.md +32 -0
- package/src/components/drawer/readme.md +47 -0
- package/src/components/dropdown/readme.md +49 -0
- package/src/components/dropdown-item/readme.md +45 -0
- package/src/components/event-list/readme.md +24 -0
- package/src/components/event-list-item/readme.md +32 -0
- package/src/components/expanding-search/readme.md +32 -0
- package/src/components/filter-chip/readme.md +30 -0
- package/src/components/flip-tile/readme.md +22 -0
- package/src/components/flip-tile-content/readme.md +14 -0
- package/src/components/group/readme.md +36 -0
- package/src/components/group-dropdown-item/readme.md +22 -0
- package/src/components/group-item/readme.md +34 -0
- package/src/components/icon/readme.md +23 -0
- package/src/components/icon-button/readme.md +31 -0
- package/src/components/input-group/readme.md +14 -0
- package/src/components/kpi/readme.md +27 -0
- package/src/components/map-navigation/readme.md +54 -0
- package/src/components/map-navigation-overlay/readme.md +30 -0
- package/src/components/menu/readme.md +86 -0
- package/src/components/menu-about/readme.md +31 -0
- package/src/components/menu-about-item/readme.md +21 -0
- package/src/components/menu-about-news/readme.md +34 -0
- package/src/components/menu-avatar/readme.md +30 -0
- package/src/components/menu-avatar-item/readme.md +29 -0
- package/src/components/menu-item/readme.md +26 -0
- package/src/components/menu-settings/readme.md +30 -0
- package/src/components/menu-settings-item/readme.md +21 -0
- package/src/components/message-bar/readme.md +31 -0
- package/src/components/modal/readme.md +67 -0
- package/src/components/modal-container/readme.md +29 -0
- package/src/components/my-component/readme.md +16 -0
- package/src/components/pill/readme.md +26 -0
- package/src/components/select/readme.md +37 -0
- package/src/components/select-item/readme.md +44 -0
- package/src/components/spinner/readme.md +22 -0
- package/src/components/split-button/readme.md +36 -0
- package/src/components/split-button-item/readme.md +29 -0
- package/src/components/tab-item/readme.md +28 -0
- package/src/components/tabs/readme.md +25 -0
- package/src/components/tile/readme.md +21 -0
- package/src/components/time-picker/readme.md +34 -0
- package/src/components/toast/readme.md +36 -0
- package/src/components/toggle/readme.md +35 -0
- package/src/components/tree/readme.md +32 -0
- package/src/components/tree-item/readme.md +31 -0
- package/src/components/upload/readme.md +51 -0
- package/src/components/validation-tooltip/readme.md +31 -0
- package/src/components/workflow-step/readme.md +28 -0
- package/src/components/workflow-steps/readme.md +33 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxChip extends Components.IxChip, HTMLElement {}
|
|
4
|
+
export const IxChip: {
|
|
5
|
+
prototype: IxChip;
|
|
6
|
+
new (): IxChip;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './icon.js';
|
|
3
|
+
|
|
4
|
+
const chipCss = ".sc-ix-chip-h{display:inline-flex;position:relative;align-items:center;border-radius:100px;padding:0.5rem 0.75rem;height:2rem;max-height:2rem;cursor:pointer;margin-left:0.25rem}.sc-ix-chip-h .with-icon.sc-ix-chip{margin-right:0.25rem}.sc-ix-chip-h .close-button-container.sc-ix-chip{display:inline-flex;flex-grow:1;margin-left:0.75rem}.sc-ix-chip-h .close-button.sc-ix-chip{position:relative;width:1rem;height:1rem;min-width:unset;min-height:unset;margin-left:auto;margin-right:0}[variant=primary].sc-ix-chip-h{background-color:var(--theme-color-primary);color:var(--theme-chip-primary--color)}[variant=primary].sc-ix-chip-h .close-button.sc-ix-chip{color:var(--theme-chip-primary--color);pointer-events:auto}[variant=primary].sc-ix-chip-h:hover{background-color:var(--theme-chip-primary--background--hover)}[variant=primary].sc-ix-chip-h:active{background-color:var(--theme-chip-primary--background--active)}[variant=primary].sc-ix-chip-h:focus,[variant=primary].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=primary].outline.sc-ix-chip-h{color:var(--theme-chip-primary-outline--color);background-color:transparent;border:solid 1px var(--theme-chip-primary-outline--border-color)}[variant=primary].outline.sc-ix-chip-h .close-button.sc-ix-chip{color:var(--theme-chip-primary-outline--color)}[variant=primary].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-primary-outline--background--hover)}[variant=primary].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-primary-outline--background--active)}[variant=alarm].sc-ix-chip-h{color:var(--theme-color-alarm--contrast)}[variant=alarm].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=alarm].active.sc-ix-chip-h::after,[variant=alarm].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=alarm].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-alarm)}[variant=alarm].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-alarm--contrast)}[variant=alarm].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=alarm].sc-ix-chip-h:not(.outline).active::after,[variant=alarm].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=alarm].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-alarm)}[variant=alarm].outline.sc-ix-chip-h:hover::after{display:none}[variant=alarm].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=alarm].outline.active.sc-ix-chip-h::after,[variant=alarm].outline.sc-ix-chip-h:active::after{display:none}[variant=alarm].outline.active.sc-ix-chip-h,[variant=alarm].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=alarm].sc-ix-chip-h:focus,[variant=alarm].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=critical].sc-ix-chip-h{color:var(--theme-color-critical--contrast)}[variant=critical].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=critical].active.sc-ix-chip-h::after,[variant=critical].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=critical].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-critical)}[variant=critical].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-critical--contrast)}[variant=critical].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=critical].sc-ix-chip-h:not(.outline).active::after,[variant=critical].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=critical].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-critical)}[variant=critical].outline.sc-ix-chip-h:hover::after{display:none}[variant=critical].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=critical].outline.active.sc-ix-chip-h::after,[variant=critical].outline.sc-ix-chip-h:active::after{display:none}[variant=critical].outline.active.sc-ix-chip-h,[variant=critical].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=critical].sc-ix-chip-h:focus,[variant=critical].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=warning].sc-ix-chip-h{color:var(--theme-color-warning--contrast)}[variant=warning].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=warning].active.sc-ix-chip-h::after,[variant=warning].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=warning].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-warning)}[variant=warning].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-warning--contrast)}[variant=warning].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=warning].sc-ix-chip-h:not(.outline).active::after,[variant=warning].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=warning].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-warning)}[variant=warning].outline.sc-ix-chip-h:hover::after{display:none}[variant=warning].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=warning].outline.active.sc-ix-chip-h::after,[variant=warning].outline.sc-ix-chip-h:active::after{display:none}[variant=warning].outline.active.sc-ix-chip-h,[variant=warning].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=warning].sc-ix-chip-h:focus,[variant=warning].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=info].sc-ix-chip-h{color:var(--theme-color-info--contrast)}[variant=info].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=info].active.sc-ix-chip-h::after,[variant=info].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=info].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-info)}[variant=info].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-info--contrast)}[variant=info].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=info].sc-ix-chip-h:not(.outline).active::after,[variant=info].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=info].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-info)}[variant=info].outline.sc-ix-chip-h:hover::after{display:none}[variant=info].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=info].outline.active.sc-ix-chip-h::after,[variant=info].outline.sc-ix-chip-h:active::after{display:none}[variant=info].outline.active.sc-ix-chip-h,[variant=info].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=info].sc-ix-chip-h:focus,[variant=info].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=neutral].sc-ix-chip-h{color:var(--theme-color-neutral--contrast)}[variant=neutral].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=neutral].active.sc-ix-chip-h::after,[variant=neutral].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=neutral].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-neutral)}[variant=neutral].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-neutral--contrast)}[variant=neutral].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=neutral].sc-ix-chip-h:not(.outline).active::after,[variant=neutral].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=neutral].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-neutral)}[variant=neutral].outline.sc-ix-chip-h:hover::after{display:none}[variant=neutral].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=neutral].outline.active.sc-ix-chip-h::after,[variant=neutral].outline.sc-ix-chip-h:active::after{display:none}[variant=neutral].outline.active.sc-ix-chip-h,[variant=neutral].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=neutral].sc-ix-chip-h:focus,[variant=neutral].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=success].sc-ix-chip-h{color:var(--theme-color-success--contrast)}[variant=success].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=success].active.sc-ix-chip-h::after,[variant=success].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=success].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-success)}[variant=success].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-success--contrast)}[variant=success].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=success].sc-ix-chip-h:not(.outline).active::after,[variant=success].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=success].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-success)}[variant=success].outline.sc-ix-chip-h:hover::after{display:none}[variant=success].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=success].outline.active.sc-ix-chip-h::after,[variant=success].outline.sc-ix-chip-h:active::after{display:none}[variant=success].outline.active.sc-ix-chip-h,[variant=success].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=success].sc-ix-chip-h:focus,[variant=success].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=custom].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, var(--theme-l-hover));left:0;border-radius:100px;pointer-events:none}[variant=custom].active.sc-ix-chip-h::after,[variant=custom].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, var(--theme-l-active));left:0;border-radius:100px;pointer-events:none}[variant=custom].sc-ix-chip-h:focus,[variant=custom].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.sc-ix-chip-h .slot-container.sc-ix-chip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
|
5
|
+
|
|
6
|
+
const Chip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.close = createEvent(this, "close", 7);
|
|
11
|
+
/**
|
|
12
|
+
* Chip variant
|
|
13
|
+
*/
|
|
14
|
+
this.variant = 'primary';
|
|
15
|
+
/**
|
|
16
|
+
* Display chip in active state. Only working witht `variant="primary"`
|
|
17
|
+
*/
|
|
18
|
+
this.active = false;
|
|
19
|
+
/**
|
|
20
|
+
* Show close icon
|
|
21
|
+
*/
|
|
22
|
+
this.closable = false;
|
|
23
|
+
/**
|
|
24
|
+
* Show chip with outline style
|
|
25
|
+
*/
|
|
26
|
+
this.outline = false;
|
|
27
|
+
}
|
|
28
|
+
getCloseButton() {
|
|
29
|
+
return (h("div", { class: "close-button-container" }, h("button", { type: "button", class: "btn btn-invisible-secondary btn-icon btn-oval close-button", onClick: (event) => this.close.emit(event) }, this.variant === 'custom' ? (h("i", { class: "glyph glyph-16 glyph-close-small", style: { color: this.color } })) : (h("ix-icon", { name: 'close-small', size: '16' })))));
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h(Host, { class: {
|
|
33
|
+
outline: this.outline,
|
|
34
|
+
}, tabIndex: "-1", title: this.el.textContent, style: this.variant === 'custom'
|
|
35
|
+
? {
|
|
36
|
+
color: this.color,
|
|
37
|
+
backgroundColor: this.background,
|
|
38
|
+
}
|
|
39
|
+
: {} }, this.icon ? (h("ix-icon", { class: 'with-icon', name: this.icon, size: '24' })) : null, h("span", { class: "slot-container" }, h("slot", null)), this.closable ? this.getCloseButton() : null));
|
|
40
|
+
}
|
|
41
|
+
get el() { return this; }
|
|
42
|
+
static get style() { return chipCss; }
|
|
43
|
+
}, [6, "ix-chip", {
|
|
44
|
+
"variant": [513],
|
|
45
|
+
"active": [4],
|
|
46
|
+
"closable": [4],
|
|
47
|
+
"icon": [1],
|
|
48
|
+
"background": [1],
|
|
49
|
+
"color": [1],
|
|
50
|
+
"outline": [4]
|
|
51
|
+
}]);
|
|
52
|
+
function defineCustomElement$1() {
|
|
53
|
+
if (typeof customElements === "undefined") {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const components = ["ix-chip", "ix-icon"];
|
|
57
|
+
components.forEach(tagName => { switch (tagName) {
|
|
58
|
+
case "ix-chip":
|
|
59
|
+
if (!customElements.get(tagName)) {
|
|
60
|
+
customElements.define(tagName, Chip);
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
case "ix-icon":
|
|
64
|
+
if (!customElements.get(tagName)) {
|
|
65
|
+
defineCustomElement$2();
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
} });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const IxChip = Chip;
|
|
72
|
+
const defineCustomElement = defineCustomElement$1;
|
|
73
|
+
|
|
74
|
+
export { IxChip, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxCounterPill extends Components.IxCounterPill, HTMLElement {}
|
|
4
|
+
export const IxCounterPill: {
|
|
5
|
+
prototype: IxCounterPill;
|
|
6
|
+
new (): IxCounterPill;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const counterPillCss = ".sc-ix-counter-pill-h{display:inline-flex;position:relative;align-items:center;justify-content:center;border-radius:100px;padding:0px 6px;margin-left:0.25rem;min-width:1.5rem;height:1.25rem;min-height:1.25rem;max-height:1.25rem;cursor:auto}.sc-ix-counter-pill-h .with-icon.sc-ix-counter-pill{margin-right:0.25rem}.align-left.sc-ix-counter-pill-h{justify-content:flex-start}[variant=primary].sc-ix-counter-pill-h{background-color:var(--theme-color-primary);color:var(--theme-chip-primary--color)}[variant=primary].sc-ix-counter-pill-h .close-button.sc-ix-counter-pill{color:var(--theme-chip-primary--color);pointer-events:auto}[variant=primary].outline.sc-ix-counter-pill-h{color:var(--theme-chip-primary-outline--color);background-color:transparent;border:solid 1px var(--theme-chip-primary-outline--border-color)}[variant=primary].outline.sc-ix-counter-pill-h .close-button.sc-ix-counter-pill{color:var(--theme-chip-primary-outline--color)}[variant=alarm].sc-ix-counter-pill-h{color:var(--theme-color-alarm--contrast)}[variant=alarm].sc-ix-counter-pill-h:not(.outline){background-color:var(--theme-color-alarm)}[variant=alarm].sc-ix-counter-pill-h:not(.outline) .close-button.sc-ix-counter-pill{color:var(--theme-color-alarm--contrast)}[variant=alarm].sc-ix-counter-pill-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=alarm].sc-ix-counter-pill-h:not(.outline).active::after,[variant=alarm].sc-ix-counter-pill-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=alarm].outline.sc-ix-counter-pill-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-alarm)}[variant=alarm].outline.sc-ix-counter-pill-h:hover::after{display:none}[variant=alarm].outline.sc-ix-counter-pill-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=alarm].outline.active.sc-ix-counter-pill-h::after,[variant=alarm].outline.sc-ix-counter-pill-h:active::after{display:none}[variant=alarm].outline.active.sc-ix-counter-pill-h,[variant=alarm].outline.sc-ix-counter-pill-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=critical].sc-ix-counter-pill-h{color:var(--theme-color-critical--contrast)}[variant=critical].sc-ix-counter-pill-h:not(.outline){background-color:var(--theme-color-critical)}[variant=critical].sc-ix-counter-pill-h:not(.outline) .close-button.sc-ix-counter-pill{color:var(--theme-color-critical--contrast)}[variant=critical].sc-ix-counter-pill-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=critical].sc-ix-counter-pill-h:not(.outline).active::after,[variant=critical].sc-ix-counter-pill-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=critical].outline.sc-ix-counter-pill-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-critical)}[variant=critical].outline.sc-ix-counter-pill-h:hover::after{display:none}[variant=critical].outline.sc-ix-counter-pill-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=critical].outline.active.sc-ix-counter-pill-h::after,[variant=critical].outline.sc-ix-counter-pill-h:active::after{display:none}[variant=critical].outline.active.sc-ix-counter-pill-h,[variant=critical].outline.sc-ix-counter-pill-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=warning].sc-ix-counter-pill-h{color:var(--theme-color-warning--contrast)}[variant=warning].sc-ix-counter-pill-h:not(.outline){background-color:var(--theme-color-warning)}[variant=warning].sc-ix-counter-pill-h:not(.outline) .close-button.sc-ix-counter-pill{color:var(--theme-color-warning--contrast)}[variant=warning].sc-ix-counter-pill-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=warning].sc-ix-counter-pill-h:not(.outline).active::after,[variant=warning].sc-ix-counter-pill-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=warning].outline.sc-ix-counter-pill-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-warning)}[variant=warning].outline.sc-ix-counter-pill-h:hover::after{display:none}[variant=warning].outline.sc-ix-counter-pill-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=warning].outline.active.sc-ix-counter-pill-h::after,[variant=warning].outline.sc-ix-counter-pill-h:active::after{display:none}[variant=warning].outline.active.sc-ix-counter-pill-h,[variant=warning].outline.sc-ix-counter-pill-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=info].sc-ix-counter-pill-h{color:var(--theme-color-info--contrast)}[variant=info].sc-ix-counter-pill-h:not(.outline){background-color:var(--theme-color-info)}[variant=info].sc-ix-counter-pill-h:not(.outline) .close-button.sc-ix-counter-pill{color:var(--theme-color-info--contrast)}[variant=info].sc-ix-counter-pill-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=info].sc-ix-counter-pill-h:not(.outline).active::after,[variant=info].sc-ix-counter-pill-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=info].outline.sc-ix-counter-pill-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-info)}[variant=info].outline.sc-ix-counter-pill-h:hover::after{display:none}[variant=info].outline.sc-ix-counter-pill-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=info].outline.active.sc-ix-counter-pill-h::after,[variant=info].outline.sc-ix-counter-pill-h:active::after{display:none}[variant=info].outline.active.sc-ix-counter-pill-h,[variant=info].outline.sc-ix-counter-pill-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=neutral].sc-ix-counter-pill-h{color:var(--theme-color-neutral--contrast)}[variant=neutral].sc-ix-counter-pill-h:not(.outline){background-color:var(--theme-color-neutral)}[variant=neutral].sc-ix-counter-pill-h:not(.outline) .close-button.sc-ix-counter-pill{color:var(--theme-color-neutral--contrast)}[variant=neutral].sc-ix-counter-pill-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=neutral].sc-ix-counter-pill-h:not(.outline).active::after,[variant=neutral].sc-ix-counter-pill-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=neutral].outline.sc-ix-counter-pill-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-neutral)}[variant=neutral].outline.sc-ix-counter-pill-h:hover::after{display:none}[variant=neutral].outline.sc-ix-counter-pill-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=neutral].outline.active.sc-ix-counter-pill-h::after,[variant=neutral].outline.sc-ix-counter-pill-h:active::after{display:none}[variant=neutral].outline.active.sc-ix-counter-pill-h,[variant=neutral].outline.sc-ix-counter-pill-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=success].sc-ix-counter-pill-h{color:var(--theme-color-success--contrast)}[variant=success].sc-ix-counter-pill-h:not(.outline){background-color:var(--theme-color-success)}[variant=success].sc-ix-counter-pill-h:not(.outline) .close-button.sc-ix-counter-pill{color:var(--theme-color-success--contrast)}[variant=success].sc-ix-counter-pill-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=success].sc-ix-counter-pill-h:not(.outline).active::after,[variant=success].sc-ix-counter-pill-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=success].outline.sc-ix-counter-pill-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-success)}[variant=success].outline.sc-ix-counter-pill-h:hover::after{display:none}[variant=success].outline.sc-ix-counter-pill-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=success].outline.active.sc-ix-counter-pill-h::after,[variant=success].outline.sc-ix-counter-pill-h:active::after{display:none}[variant=success].outline.active.sc-ix-counter-pill-h,[variant=success].outline.sc-ix-counter-pill-h:active{background-color:var(--theme-chip-outline--background--active)}.sc-ix-counter-pill-h .slot.sc-ix-counter-pill{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-ix-counter-pill-h{min-height:1rem;max-height:1rem;height:1rem;font-size:0.75rem;padding:0 0.25rem;min-width:1rem;width:auto;padding:0 4px}.sc-ix-counter-pill-h .slot-container.sc-ix-counter-pill{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
|
4
|
+
|
|
5
|
+
const CounterPill = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
/**
|
|
10
|
+
* Pill variant
|
|
11
|
+
*/
|
|
12
|
+
this.variant = 'primary';
|
|
13
|
+
/**
|
|
14
|
+
* Show pill as outline
|
|
15
|
+
*/
|
|
16
|
+
this.outline = false;
|
|
17
|
+
/**
|
|
18
|
+
* Align pill content left
|
|
19
|
+
*/
|
|
20
|
+
this.alignLeft = false;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, { class: {
|
|
24
|
+
outline: this.outline,
|
|
25
|
+
'align-left': this.alignLeft,
|
|
26
|
+
}, style: this.variant === 'custom'
|
|
27
|
+
? {
|
|
28
|
+
color: this.color,
|
|
29
|
+
backgroundColor: this.background,
|
|
30
|
+
}
|
|
31
|
+
: {}, title: this.el.textContent }, h("span", { class: "slot-container" }, h("slot", null))));
|
|
32
|
+
}
|
|
33
|
+
get el() { return this; }
|
|
34
|
+
static get style() { return counterPillCss; }
|
|
35
|
+
}, [6, "ix-counter-pill", {
|
|
36
|
+
"variant": [513],
|
|
37
|
+
"outline": [4],
|
|
38
|
+
"background": [1],
|
|
39
|
+
"color": [1],
|
|
40
|
+
"alignLeft": [4, "align-left"]
|
|
41
|
+
}]);
|
|
42
|
+
function defineCustomElement$1() {
|
|
43
|
+
if (typeof customElements === "undefined") {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const components = ["ix-counter-pill"];
|
|
47
|
+
components.forEach(tagName => { switch (tagName) {
|
|
48
|
+
case "ix-counter-pill":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
customElements.define(tagName, CounterPill);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
} });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const IxCounterPill = CounterPill;
|
|
57
|
+
const defineCustomElement = defineCustomElement$1;
|
|
58
|
+
|
|
59
|
+
export { IxCounterPill, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxDatePicker extends Components.IxDatePicker, HTMLElement {}
|
|
4
|
+
export const IxDatePicker: {
|
|
5
|
+
prototype: IxDatePicker;
|
|
6
|
+
new (): IxDatePicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxDateTimeCard extends Components.IxDateTimeCard, HTMLElement {}
|
|
4
|
+
export const IxDateTimeCard: {
|
|
5
|
+
prototype: IxDateTimeCard;
|
|
6
|
+
new (): IxDateTimeCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxDatetimePicker extends Components.IxDatetimePicker, HTMLElement {}
|
|
4
|
+
export const IxDatetimePicker: {
|
|
5
|
+
prototype: IxDatetimePicker;
|
|
6
|
+
new (): IxDatetimePicker;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$8 } from './button.js';
|
|
3
|
+
import { d as defineCustomElement$7 } from './date-picker.js';
|
|
4
|
+
import { d as defineCustomElement$6 } from './date-time-card.js';
|
|
5
|
+
import { d as defineCustomElement$5 } from './dropdown.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './icon.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './icon-button.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './time-picker.js';
|
|
9
|
+
|
|
10
|
+
const datetimePickerCss = ".sc-ix-datetime-picker-h{background-color:var(--theme-menu--background);box-shadow:0 0 2px 0 var(--theme-input--border-color-bottom--disabled), 0 4px 8px 0 var(--theme-input--border-color-bottom--disabled), 0 12px 18px 0px var(--theme-input--border-color-bottom--disabled);border-radius:4px}.flex.sc-ix-datetime-picker{display:flex}.done.sc-ix-datetime-picker{display:flex;justify-content:flex-end;margin:0 1rem 1rem 0}";
|
|
11
|
+
|
|
12
|
+
const DatePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.done = createEvent(this, "done", 7);
|
|
17
|
+
/**
|
|
18
|
+
* Set range size
|
|
19
|
+
*/
|
|
20
|
+
this.range = true;
|
|
21
|
+
/**
|
|
22
|
+
* Show Hour Input
|
|
23
|
+
*/
|
|
24
|
+
this.showHour = false;
|
|
25
|
+
/**
|
|
26
|
+
* Show Minutes Input
|
|
27
|
+
*/
|
|
28
|
+
this.showMinutes = false;
|
|
29
|
+
/**
|
|
30
|
+
* Show Seconds Input
|
|
31
|
+
*/
|
|
32
|
+
this.showSeconds = false;
|
|
33
|
+
/**
|
|
34
|
+
* Show Time Reference Input
|
|
35
|
+
*/
|
|
36
|
+
this.showTimeReference = false;
|
|
37
|
+
}
|
|
38
|
+
doneEvent() {
|
|
39
|
+
console.log(this.date + ' ' + this.time);
|
|
40
|
+
this.done.emit(this.date + ' ' + this.time);
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (h(Host, null, h("div", { class: "flex" }, h("ix-date-picker", { corners: "left", individual: false, range: this.range, onDateChange: (date) => (this.date = date.detail) }), h("ix-time-picker", { corners: "right", individual: false, showHour: this.showHour, showMinutes: this.showMinutes, showSeconds: this.showSeconds, showTimeReference: this.showTimeReference, onTimeChange: (time) => (this.time = time.detail) })), h("div", { class: "done" }, h("ix-button", { onClick: () => this.doneEvent() }, "Done"))));
|
|
44
|
+
}
|
|
45
|
+
static get style() { return datetimePickerCss; }
|
|
46
|
+
}, [2, "ix-datetime-picker", {
|
|
47
|
+
"range": [4],
|
|
48
|
+
"showHour": [4, "show-hour"],
|
|
49
|
+
"showMinutes": [4, "show-minutes"],
|
|
50
|
+
"showSeconds": [4, "show-seconds"],
|
|
51
|
+
"showTimeReference": [4, "show-time-reference"]
|
|
52
|
+
}]);
|
|
53
|
+
function defineCustomElement$1() {
|
|
54
|
+
if (typeof customElements === "undefined") {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const components = ["ix-datetime-picker", "ix-button", "ix-date-picker", "ix-date-time-card", "ix-dropdown", "ix-icon", "ix-icon-button", "ix-time-picker"];
|
|
58
|
+
components.forEach(tagName => { switch (tagName) {
|
|
59
|
+
case "ix-datetime-picker":
|
|
60
|
+
if (!customElements.get(tagName)) {
|
|
61
|
+
customElements.define(tagName, DatePicker);
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
case "ix-button":
|
|
65
|
+
if (!customElements.get(tagName)) {
|
|
66
|
+
defineCustomElement$8();
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
case "ix-date-picker":
|
|
70
|
+
if (!customElements.get(tagName)) {
|
|
71
|
+
defineCustomElement$7();
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
case "ix-date-time-card":
|
|
75
|
+
if (!customElements.get(tagName)) {
|
|
76
|
+
defineCustomElement$6();
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
case "ix-dropdown":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
defineCustomElement$5();
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
case "ix-icon":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
defineCustomElement$4();
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
case "ix-icon-button":
|
|
90
|
+
if (!customElements.get(tagName)) {
|
|
91
|
+
defineCustomElement$3();
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
94
|
+
case "ix-time-picker":
|
|
95
|
+
if (!customElements.get(tagName)) {
|
|
96
|
+
defineCustomElement$2();
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
} });
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const IxDatetimePicker = DatePicker;
|
|
103
|
+
const defineCustomElement = defineCustomElement$1;
|
|
104
|
+
|
|
105
|
+
export { IxDatetimePicker, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxDrawer extends Components.IxDrawer, HTMLElement {}
|
|
4
|
+
export const IxDrawer: {
|
|
5
|
+
prototype: IxDrawer;
|
|
6
|
+
new (): IxDrawer;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { a as anime } from './anime.es.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './icon-button.js';
|
|
5
|
+
|
|
6
|
+
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}";
|
|
7
|
+
|
|
8
|
+
const Drawer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.open = createEvent(this, "open", 7);
|
|
13
|
+
this.drawerClose = createEvent(this, "drawerClose", 7);
|
|
14
|
+
/**
|
|
15
|
+
* Show or hide the drawer
|
|
16
|
+
*/
|
|
17
|
+
this.show = false;
|
|
18
|
+
/**
|
|
19
|
+
* Fired in case of an outside click during drawer showed state
|
|
20
|
+
*/
|
|
21
|
+
this.closeOnClickOutside = true;
|
|
22
|
+
/**
|
|
23
|
+
* Render the drawer with maximum height
|
|
24
|
+
*/
|
|
25
|
+
this.fullHeight = false;
|
|
26
|
+
/**
|
|
27
|
+
* Min width interpreted as REM
|
|
28
|
+
*/
|
|
29
|
+
this.minWidth = 16;
|
|
30
|
+
/**
|
|
31
|
+
* Max width interpreted as REM
|
|
32
|
+
*/
|
|
33
|
+
this.maxWidth = 28;
|
|
34
|
+
/**
|
|
35
|
+
* Width interpreted as REM if not set to 'auto'
|
|
36
|
+
*/
|
|
37
|
+
this.width = this.minWidth;
|
|
38
|
+
this.callback = this.clickedOutside.bind(this);
|
|
39
|
+
}
|
|
40
|
+
onShowChanged(newValue) {
|
|
41
|
+
this.show = newValue !== undefined ? newValue : !this.show;
|
|
42
|
+
this.toggleDrawer(this.show);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Toggle or define show state of drawer
|
|
46
|
+
* @param show Overwrite toggle state with boolean
|
|
47
|
+
*/
|
|
48
|
+
async toggleDrawer(show) {
|
|
49
|
+
this.show = show !== undefined ? show : !this.show;
|
|
50
|
+
if (show) {
|
|
51
|
+
this.open.emit();
|
|
52
|
+
this.slideInRight(this.divElement);
|
|
53
|
+
setTimeout(() => {
|
|
54
|
+
window.addEventListener('mousedown', this.callback);
|
|
55
|
+
}, 300);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.drawerClose.emit();
|
|
59
|
+
this.slideOutRight(this.divElement);
|
|
60
|
+
window.removeEventListener('mousedown', this.callback);
|
|
61
|
+
}
|
|
62
|
+
return Promise.resolve();
|
|
63
|
+
}
|
|
64
|
+
onCloseClicked() {
|
|
65
|
+
this.show = false;
|
|
66
|
+
}
|
|
67
|
+
clickedOutside(evt) {
|
|
68
|
+
if (!this.closeOnClickOutside) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const target = evt.target;
|
|
72
|
+
const closestElement = target.closest('#div-container');
|
|
73
|
+
const btn = target.closest('#drawer-btn');
|
|
74
|
+
if (closestElement !== this.divElement && target !== btn) {
|
|
75
|
+
this.show = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
slideOutRight(el) {
|
|
79
|
+
anime({
|
|
80
|
+
targets: el,
|
|
81
|
+
duration: Drawer.duration,
|
|
82
|
+
translateX: [0, '16rem'],
|
|
83
|
+
opacity: [1, 0],
|
|
84
|
+
easing: 'easeInSine',
|
|
85
|
+
complete: () => {
|
|
86
|
+
el.classList.add('d-none');
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
slideInRight(el) {
|
|
91
|
+
anime({
|
|
92
|
+
targets: el,
|
|
93
|
+
duration: Drawer.duration,
|
|
94
|
+
translateX: ['16rem', 0],
|
|
95
|
+
opacity: [0, 1],
|
|
96
|
+
easing: 'easeOutSine',
|
|
97
|
+
begin: () => {
|
|
98
|
+
el.classList.remove('d-none');
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
render() {
|
|
103
|
+
return (h("div", { class: {
|
|
104
|
+
'drawer-container': true,
|
|
105
|
+
toggle: this.show,
|
|
106
|
+
'full-height': this.fullHeight,
|
|
107
|
+
'd-none': true,
|
|
108
|
+
}, style: {
|
|
109
|
+
width: this.width === 'auto' ? this.width : `${this.width}rem`,
|
|
110
|
+
'min-width': `${this.minWidth}rem`,
|
|
111
|
+
'max-width': `${this.maxWidth}rem`,
|
|
112
|
+
}, 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))));
|
|
113
|
+
}
|
|
114
|
+
static get watchers() { return {
|
|
115
|
+
"show": ["onShowChanged"]
|
|
116
|
+
}; }
|
|
117
|
+
static get style() { return drawerCss; }
|
|
118
|
+
}, [6, "ix-drawer", {
|
|
119
|
+
"show": [1028],
|
|
120
|
+
"closeOnClickOutside": [4, "close-on-click-outside"],
|
|
121
|
+
"fullHeight": [4, "full-height"],
|
|
122
|
+
"minWidth": [2, "min-width"],
|
|
123
|
+
"maxWidth": [2, "max-width"],
|
|
124
|
+
"width": [8],
|
|
125
|
+
"toggleDrawer": [64]
|
|
126
|
+
}]);
|
|
127
|
+
Drawer.duration = 300;
|
|
128
|
+
function defineCustomElement$1() {
|
|
129
|
+
if (typeof customElements === "undefined") {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const components = ["ix-drawer", "ix-icon", "ix-icon-button"];
|
|
133
|
+
components.forEach(tagName => { switch (tagName) {
|
|
134
|
+
case "ix-drawer":
|
|
135
|
+
if (!customElements.get(tagName)) {
|
|
136
|
+
customElements.define(tagName, Drawer);
|
|
137
|
+
}
|
|
138
|
+
break;
|
|
139
|
+
case "ix-icon":
|
|
140
|
+
if (!customElements.get(tagName)) {
|
|
141
|
+
defineCustomElement$3();
|
|
142
|
+
}
|
|
143
|
+
break;
|
|
144
|
+
case "ix-icon-button":
|
|
145
|
+
if (!customElements.get(tagName)) {
|
|
146
|
+
defineCustomElement$2();
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
} });
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const IxDrawer = Drawer;
|
|
153
|
+
const defineCustomElement = defineCustomElement$1;
|
|
154
|
+
|
|
155
|
+
export { IxDrawer, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxDropdownItem extends Components.IxDropdownItem, HTMLElement {}
|
|
4
|
+
export const IxDropdownItem: {
|
|
5
|
+
prototype: IxDropdownItem;
|
|
6
|
+
new (): IxDropdownItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxDropdown extends Components.IxDropdown, HTMLElement {}
|
|
4
|
+
export const IxDropdown: {
|
|
5
|
+
prototype: IxDropdown;
|
|
6
|
+
new (): IxDropdown;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxEventListItem extends Components.IxEventListItem, HTMLElement {}
|
|
4
|
+
export const IxEventListItem: {
|
|
5
|
+
prototype: IxEventListItem;
|
|
6
|
+
new (): IxEventListItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
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 .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 .cui-event-list-item-content-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 .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}.ix-event-list-item:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item:not(.disabled):not(:disabled):hover{background-color:var(--theme-event-list-item-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-list-item-pressed)}.ix-event-list-item.selected{background-color:var(--theme-event-item--background--selected)}.ix-event-list-item[disabled],.ix-event-list-item.disabled{pointer-events:none}";
|
|
4
|
+
|
|
5
|
+
const EventListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.itemClick = createEvent(this, "itemClick", 7);
|
|
10
|
+
/**
|
|
11
|
+
* Opacity of the status indicator.
|
|
12
|
+
* Defaults to 1.0
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Will be removed in 7.0.0. Use color with alpha value.
|
|
15
|
+
*/
|
|
16
|
+
this.opacity = 1;
|
|
17
|
+
}
|
|
18
|
+
handleItemClick() {
|
|
19
|
+
this.itemClick.emit();
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h("div", { class: {
|
|
23
|
+
'ix-event-list-item': true,
|
|
24
|
+
selected: this.selected,
|
|
25
|
+
disabled: this.disabled,
|
|
26
|
+
} }, h("div", { class: `indicator ${!this.color ? 'indicator-empty' : ''}`, style: {
|
|
27
|
+
'background-color': this.color
|
|
28
|
+
? `var(--theme-${this.color})`
|
|
29
|
+
: 'inherit',
|
|
30
|
+
opacity: `${this.disabled ? 0.4 : this.opacity}`,
|
|
31
|
+
} }), h("div", { class: "cui-event-list-item-content-container" }, h("div", { class: "event-content" }, h("slot", null)), h("i", { class: "glyph glyph-16 glyph-chevron-right chevron-icon" }))));
|
|
32
|
+
}
|
|
33
|
+
get el() { return this; }
|
|
34
|
+
static get style() { return eventListItemCss; }
|
|
35
|
+
}, [4, "ix-event-list-item", {
|
|
36
|
+
"color": [1],
|
|
37
|
+
"selected": [4],
|
|
38
|
+
"disabled": [4],
|
|
39
|
+
"chevron": [4],
|
|
40
|
+
"opacity": [2]
|
|
41
|
+
}, [[1, "click", "handleItemClick"]]]);
|
|
42
|
+
function defineCustomElement$1() {
|
|
43
|
+
if (typeof customElements === "undefined") {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const components = ["ix-event-list-item"];
|
|
47
|
+
components.forEach(tagName => { switch (tagName) {
|
|
48
|
+
case "ix-event-list-item":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
customElements.define(tagName, EventListItem);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
} });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const IxEventListItem = EventListItem;
|
|
57
|
+
const defineCustomElement = defineCustomElement$1;
|
|
58
|
+
|
|
59
|
+
export { IxEventListItem, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxEventList extends Components.IxEventList, HTMLElement {}
|
|
4
|
+
export const IxEventList: {
|
|
5
|
+
prototype: IxEventList;
|
|
6
|
+
new (): IxEventList;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|