@siemens/ix 1.1.0-beta.1 → 1.1.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/package.json +1 -1
- package/dist/cjs/_commonjsHelpers-1a0c346f.js +0 -23
- package/dist/cjs/animation-dfe01edc.js +0 -19
- package/dist/cjs/anime.es-8822f296.js +0 -1311
- package/dist/cjs/base-button-eb1d47db.js +0 -33
- package/dist/cjs/default-tree-item-4597cd84.js +0 -22
- package/dist/cjs/flip-tile-state-c95639e5.js +0 -18
- package/dist/cjs/index-1e4a348f.js +0 -1849
- package/dist/cjs/index.cjs.js +0 -96
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +0 -217
- package/dist/cjs/ix-application-header.cjs.entry.js +0 -30
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +0 -44
- package/dist/cjs/ix-blind.cjs.entry.js +0 -89
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +0 -155
- package/dist/cjs/ix-button.cjs.entry.js +0 -50
- package/dist/cjs/ix-category-filter.cjs.entry.js +0 -399
- package/dist/cjs/ix-chip.cjs.entry.js +0 -47
- package/dist/cjs/ix-counter-pill.cjs.entry.js +0 -40
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +0 -9039
- package/dist/cjs/ix-date-time-card.cjs.entry.js +0 -36
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +0 -113
- package/dist/cjs/ix-drawer.cjs.entry.js +0 -122
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +0 -203
- package/dist/cjs/ix-event-list_2.cjs.entry.js +0 -151
- package/dist/cjs/ix-expanding-search.cjs.entry.js +0 -92
- package/dist/cjs/ix-filter-chip.cjs.entry.js +0 -30
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +0 -79
- package/dist/cjs/ix-group_3.cjs.entry.js +0 -174
- package/dist/cjs/ix-icon-button.cjs.entry.js +0 -40
- package/dist/cjs/ix-icon.cjs.entry.js +0 -33
- package/dist/cjs/ix-input-group.cjs.entry.js +0 -40
- package/dist/cjs/ix-kpi.cjs.entry.js +0 -50
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +0 -165
- package/dist/cjs/ix-menu_9.cjs.entry.js +0 -888
- package/dist/cjs/ix-message-bar.cjs.entry.js +0 -58
- package/dist/cjs/ix-modal-example.cjs.entry.js +0 -24
- package/dist/cjs/ix-modal_2.cjs.entry.js +0 -14
- package/dist/cjs/ix-pill.cjs.entry.js +0 -40
- package/dist/cjs/ix-select_2.cjs.entry.js +0 -309
- package/dist/cjs/ix-spinner.cjs.entry.js +0 -30
- package/dist/cjs/ix-split-button_2.cjs.entry.js +0 -114
- package/dist/cjs/ix-tab-item.cjs.entry.js +0 -67
- package/dist/cjs/ix-tabs.cjs.entry.js +0 -187
- package/dist/cjs/ix-tile.cjs.entry.js +0 -27
- package/dist/cjs/ix-toast_2.cjs.entry.js +0 -159
- package/dist/cjs/ix-toggle.cjs.entry.js +0 -82
- package/dist/cjs/ix-tree_2.cjs.entry.js +0 -690
- package/dist/cjs/ix-upload.cjs.entry.js +0 -139
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +0 -107
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +0 -191
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/logical-filter-operator-467e2faf.js +0 -35
- package/dist/cjs/modal-5be2b1a3.js +0 -221
- package/dist/cjs/modal-utils-5d7bb217.js +0 -42
- package/dist/cjs/mutation-observer-29bedada.js +0 -13
- package/dist/cjs/my-component.cjs.entry.js +0 -19
- package/dist/cjs/popper-d7a0f999.js +0 -1801
- package/dist/cjs/rwd.util-482d41d4.js +0 -42
- package/dist/cjs/siemens-ix.cjs.js +0 -19
- package/dist/cjs/typed-event-8f5a32a2.js +0 -46
- package/dist/cjs/upload-file-state-923b2c65.js +0 -17
- package/dist/collection/collection-manifest.json +0 -264
- package/dist/collection/components/animated-tab/animated-tab.css +0 -14
- package/dist/collection/components/animated-tab/animated-tab.js +0 -59
- package/dist/collection/components/animated-tabs/animated-tabs.css +0 -158
- package/dist/collection/components/animated-tabs/animated-tabs.js +0 -303
- package/dist/collection/components/application-header/application-header.css +0 -30
- package/dist/collection/components/application-header/application-header.js +0 -56
- package/dist/collection/components/basic-navigation/basic-navigation.css +0 -29
- package/dist/collection/components/basic-navigation/basic-navigation.js +0 -91
- package/dist/collection/components/blind/blind.css +0 -146
- package/dist/collection/components/blind/blind.js +0 -152
- package/dist/collection/components/breadcrumb/breadcrumb.css +0 -228
- package/dist/collection/components/breadcrumb/breadcrumb.js +0 -252
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +0 -11
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +0 -59
- package/dist/collection/components/button/base-button.js +0 -29
- package/dist/collection/components/button/button.css +0 -15
- package/dist/collection/components/button/button.js +0 -192
- package/dist/collection/components/category-filter/category-filter.css +0 -188
- package/dist/collection/components/category-filter/category-filter.js +0 -704
- package/dist/collection/components/category-filter/filter-state.js +0 -10
- package/dist/collection/components/category-filter/input-state.js +0 -17
- package/dist/collection/components/category-filter/logical-filter-operator.js +0 -13
- package/dist/collection/components/chip/chip.css +0 -475
- package/dist/collection/components/chip/chip.js +0 -197
- package/dist/collection/components/counter-pill/counter-pill.css +0 -313
- package/dist/collection/components/counter-pill/counter-pill.js +0 -137
- package/dist/collection/components/date-picker/date-picker.css +0 -224
- package/dist/collection/components/date-picker/date-picker.js +0 -679
- package/dist/collection/components/date-picker/events.js +0 -1
- package/dist/collection/components/date-time-card/date-time-card.css +0 -51
- package/dist/collection/components/date-time-card/date-time-card.js +0 -89
- package/dist/collection/components/datetime-picker/datetime-picker.css +0 -44
- package/dist/collection/components/datetime-picker/datetime-picker.js +0 -501
- package/dist/collection/components/datetime-picker/event.js +0 -9
- package/dist/collection/components/drawer/drawer.css +0 -78
- package/dist/collection/components/drawer/drawer.js +0 -300
- package/dist/collection/components/dropdown/dropdown.css +0 -536
- package/dist/collection/components/dropdown/dropdown.js +0 -392
- package/dist/collection/components/dropdown-item/dropdown-item.css +0 -61
- package/dist/collection/components/dropdown-item/dropdown-item.js +0 -187
- package/dist/collection/components/event-list/event-list.css +0 -58
- package/dist/collection/components/event-list/event-list.js +0 -197
- package/dist/collection/components/event-list-item/event-list-item.css +0 -126
- package/dist/collection/components/event-list-item/event-list-item.js +0 -162
- package/dist/collection/components/expanding-search/expanding-search.css +0 -127
- package/dist/collection/components/expanding-search/expanding-search.js +0 -178
- package/dist/collection/components/filter-chip/filter-chip.css +0 -82
- package/dist/collection/components/filter-chip/filter-chip.js +0 -74
- package/dist/collection/components/flip-tile/flip-tile-state.js +0 -16
- package/dist/collection/components/flip-tile/flip-tile.css +0 -143
- package/dist/collection/components/flip-tile/flip-tile.js +0 -125
- package/dist/collection/components/flip-tile-content/flip-tile-content.css +0 -12
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +0 -23
- package/dist/collection/components/group/group.css +0 -170
- package/dist/collection/components/group/group.js +0 -329
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.css +0 -11
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js +0 -60
- package/dist/collection/components/group-item/group-item.css +0 -116
- package/dist/collection/components/group-item/group-item.js +0 -200
- package/dist/collection/components/icon/icon.css +0 -45
- package/dist/collection/components/icon/icon.js +0 -91
- package/dist/collection/components/icon-button/icon-button.js +0 -242
- package/dist/collection/components/input-group/input-group.css +0 -27
- package/dist/collection/components/input-group/input-group.js +0 -48
- package/dist/collection/components/kpi/kpi.css +0 -131
- package/dist/collection/components/kpi/kpi.js +0 -151
- package/dist/collection/components/map-navigation/map-navigation.css +0 -161
- package/dist/collection/components/map-navigation/map-navigation.js +0 -328
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +0 -237
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +0 -105
- package/dist/collection/components/menu/menu.css +0 -128
- package/dist/collection/components/menu/menu.js +0 -988
- package/dist/collection/components/menu-about/menu-about.css +0 -207
- package/dist/collection/components/menu-about/menu-about.js +0 -167
- package/dist/collection/components/menu-about-item/menu-about-item.css +0 -12
- package/dist/collection/components/menu-about-item/menu-about-item.js +0 -42
- package/dist/collection/components/menu-about-news/menu-about-news.css +0 -99
- package/dist/collection/components/menu-about-news/menu-about-news.js +0 -204
- package/dist/collection/components/menu-avatar/menu-avatar.css +0 -91
- package/dist/collection/components/menu-avatar/menu-avatar.js +0 -136
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +0 -12
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +0 -79
- package/dist/collection/components/menu-item/menu-item.css +0 -143
- package/dist/collection/components/menu-item/menu-item.js +0 -166
- package/dist/collection/components/menu-settings/menu-settings.css +0 -204
- package/dist/collection/components/menu-settings/menu-settings.js +0 -151
- package/dist/collection/components/menu-settings-item/menu-settings-item.css +0 -13
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +0 -42
- package/dist/collection/components/message-bar/message-bar.css +0 -68
- package/dist/collection/components/message-bar/message-bar.js +0 -125
- package/dist/collection/components/modal/modal-utils.js +0 -36
- package/dist/collection/components/modal/modal.css +0 -96
- package/dist/collection/components/modal/modal.js +0 -540
- package/dist/collection/components/modal-container/modal-container.css +0 -14
- package/dist/collection/components/modal-container/modal-container.js +0 -107
- package/dist/collection/components/my-component/example-modal.js +0 -31
- package/dist/collection/components/my-component/my-component.css +0 -34
- package/dist/collection/components/my-component/my-component.js +0 -22
- package/dist/collection/components/pill/pill.css +0 -269
- package/dist/collection/components/pill/pill.js +0 -155
- package/dist/collection/components/select/select.css +0 -176
- package/dist/collection/components/select/select.js +0 -509
- package/dist/collection/components/select-item/select-item.css +0 -14
- package/dist/collection/components/select-item/select-item.js +0 -169
- package/dist/collection/components/spinner/spinner.css +0 -42
- package/dist/collection/components/spinner/spinner.js +0 -137
- package/dist/collection/components/split-button/split-button.css +0 -11
- package/dist/collection/components/split-button/split-button.js +0 -310
- package/dist/collection/components/split-button-item/split-button-item.css +0 -12
- package/dist/collection/components/split-button-item/split-button-item.js +0 -79
- package/dist/collection/components/tab-item/tab-item.css +0 -195
- package/dist/collection/components/tab-item/tab-item.js +0 -219
- package/dist/collection/components/tabs/tabs.css +0 -84
- package/dist/collection/components/tabs/tabs.js +0 -305
- package/dist/collection/components/tile/tile.css +0 -92
- package/dist/collection/components/tile/tile.js +0 -60
- package/dist/collection/components/time-picker/time-picker.css +0 -94
- package/dist/collection/components/time-picker/time-picker.js +0 -431
- package/dist/collection/components/toast/toast-container.js +0 -170
- package/dist/collection/components/toast/toast-utils.js +0 -40
- package/dist/collection/components/toast/toast.css +0 -110
- package/dist/collection/components/toast/toast.js +0 -237
- package/dist/collection/components/toggle/toggle.css +0 -226
- package/dist/collection/components/toggle/toggle.js +0 -263
- package/dist/collection/components/tree/tree-model.js +0 -9
- package/dist/collection/components/tree/tree.css +0 -12
- package/dist/collection/components/tree/tree.js +0 -296
- package/dist/collection/components/tree-item/default-tree-item.js +0 -18
- package/dist/collection/components/tree-item/tree-item.css +0 -86
- package/dist/collection/components/tree-item/tree-item.js +0 -124
- package/dist/collection/components/upload/upload-file-state.js +0 -15
- package/dist/collection/components/upload/upload.css +0 -120
- package/dist/collection/components/upload/upload.js +0 -413
- package/dist/collection/components/utils/animation.js +0 -15
- package/dist/collection/components/utils/button-variants.js +0 -9
- package/dist/collection/components/utils/mutation-observer.js +0 -9
- package/dist/collection/components/utils/notification-color.js +0 -9
- package/dist/collection/components/utils/popover.util.js +0 -33
- package/dist/collection/components/utils/rwd.util.js +0 -37
- package/dist/collection/components/utils/toggle-theme.js +0 -24
- package/dist/collection/components/utils/typed-event.js +0 -42
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +0 -236
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +0 -167
- package/dist/collection/components/workflow-step/workflow-step.css +0 -131
- package/dist/collection/components/workflow-step/workflow-step.js +0 -249
- package/dist/collection/components/workflow-steps/workflow-steps.css +0 -29
- package/dist/collection/components/workflow-steps/workflow-steps.js +0 -182
- package/dist/collection/env.js +0 -9
- package/dist/collection/exports.js +0 -15
- package/dist/collection/index.js +0 -16
- package/dist/collection/utils/test/index.js +0 -9
- package/dist/collection/utils/test/page.js +0 -29
- package/dist/components/_commonjsHelpers.js +0 -19
- package/dist/components/animation.js +0 -17
- package/dist/components/anime.es.js +0 -1309
- package/dist/components/application-header.js +0 -43
- package/dist/components/base-button.js +0 -31
- package/dist/components/button.js +0 -68
- package/dist/components/date-picker.js +0 -385
- package/dist/components/date-time-card.js +0 -49
- package/dist/components/default-tree-item.js +0 -20
- package/dist/components/dropdown-item.js +0 -73
- package/dist/components/dropdown.js +0 -181
- package/dist/components/filter-chip.js +0 -48
- package/dist/components/flip-tile-state.js +0 -18
- package/dist/components/group-item.js +0 -63
- package/dist/components/icon-button.js +0 -68
- package/dist/components/icon.js +0 -47
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -62
- package/dist/components/ix-animated-tab.d.ts +0 -11
- package/dist/components/ix-animated-tab.js +0 -35
- package/dist/components/ix-animated-tabs.d.ts +0 -11
- package/dist/components/ix-animated-tabs.js +0 -229
- package/dist/components/ix-application-header.d.ts +0 -11
- package/dist/components/ix-application-header.js +0 -6
- package/dist/components/ix-basic-navigation.d.ts +0 -11
- package/dist/components/ix-basic-navigation.js +0 -66
- package/dist/components/ix-blind.d.ts +0 -11
- package/dist/components/ix-blind.js +0 -105
- package/dist/components/ix-breadcrumb-item.d.ts +0 -11
- package/dist/components/ix-breadcrumb-item.js +0 -35
- package/dist/components/ix-breadcrumb.d.ts +0 -11
- package/dist/components/ix-breadcrumb.js +0 -180
- package/dist/components/ix-button.d.ts +0 -11
- package/dist/components/ix-button.js +0 -6
- package/dist/components/ix-category-filter.d.ts +0 -11
- package/dist/components/ix-category-filter.js +0 -447
- package/dist/components/ix-chip.d.ts +0 -11
- package/dist/components/ix-chip.js +0 -74
- package/dist/components/ix-counter-pill.d.ts +0 -11
- package/dist/components/ix-counter-pill.js +0 -59
- package/dist/components/ix-date-picker.d.ts +0 -11
- package/dist/components/ix-date-picker.js +0 -6
- package/dist/components/ix-date-time-card.d.ts +0 -11
- package/dist/components/ix-date-time-card.js +0 -6
- package/dist/components/ix-datetime-picker.d.ts +0 -11
- package/dist/components/ix-datetime-picker.js +0 -184
- package/dist/components/ix-drawer.d.ts +0 -11
- package/dist/components/ix-drawer.js +0 -155
- package/dist/components/ix-dropdown-item.d.ts +0 -11
- package/dist/components/ix-dropdown-item.js +0 -6
- package/dist/components/ix-dropdown.d.ts +0 -11
- package/dist/components/ix-dropdown.js +0 -6
- package/dist/components/ix-event-list-item.d.ts +0 -11
- package/dist/components/ix-event-list-item.js +0 -59
- package/dist/components/ix-event-list.d.ts +0 -11
- package/dist/components/ix-event-list.js +0 -135
- package/dist/components/ix-expanding-search.d.ts +0 -11
- package/dist/components/ix-expanding-search.js +0 -124
- package/dist/components/ix-filter-chip.d.ts +0 -11
- package/dist/components/ix-filter-chip.js +0 -6
- package/dist/components/ix-flip-tile-content.d.ts +0 -11
- package/dist/components/ix-flip-tile-content.js +0 -33
- package/dist/components/ix-flip-tile.d.ts +0 -11
- package/dist/components/ix-flip-tile.js +0 -96
- package/dist/components/ix-group-dropdown-item.d.ts +0 -11
- package/dist/components/ix-group-dropdown-item.js +0 -47
- package/dist/components/ix-group-item.d.ts +0 -11
- package/dist/components/ix-group-item.js +0 -6
- package/dist/components/ix-group.d.ts +0 -11
- package/dist/components/ix-group.js +0 -174
- package/dist/components/ix-icon-button.d.ts +0 -11
- package/dist/components/ix-icon-button.js +0 -6
- package/dist/components/ix-icon.d.ts +0 -11
- package/dist/components/ix-icon.js +0 -6
- package/dist/components/ix-input-group.d.ts +0 -11
- package/dist/components/ix-input-group.js +0 -53
- package/dist/components/ix-kpi.d.ts +0 -11
- package/dist/components/ix-kpi.js +0 -75
- package/dist/components/ix-map-navigation-overlay.d.ts +0 -11
- package/dist/components/ix-map-navigation-overlay.js +0 -6
- package/dist/components/ix-map-navigation.d.ts +0 -11
- package/dist/components/ix-map-navigation.js +0 -182
- package/dist/components/ix-menu-about-item.d.ts +0 -11
- package/dist/components/ix-menu-about-item.js +0 -34
- package/dist/components/ix-menu-about-news.d.ts +0 -11
- package/dist/components/ix-menu-about-news.js +0 -78
- package/dist/components/ix-menu-about.d.ts +0 -11
- package/dist/components/ix-menu-about.js +0 -120
- package/dist/components/ix-menu-avatar-item.d.ts +0 -11
- package/dist/components/ix-menu-avatar-item.js +0 -6
- package/dist/components/ix-menu-avatar.d.ts +0 -11
- package/dist/components/ix-menu-avatar.js +0 -83
- package/dist/components/ix-menu-item.d.ts +0 -11
- package/dist/components/ix-menu-item.js +0 -6
- package/dist/components/ix-menu-settings-item.d.ts +0 -11
- package/dist/components/ix-menu-settings-item.js +0 -34
- package/dist/components/ix-menu-settings.d.ts +0 -11
- package/dist/components/ix-menu-settings.js +0 -107
- package/dist/components/ix-menu.d.ts +0 -11
- package/dist/components/ix-menu.js +0 -619
- package/dist/components/ix-message-bar.d.ts +0 -11
- package/dist/components/ix-message-bar.js +0 -88
- package/dist/components/ix-modal-container.d.ts +0 -11
- package/dist/components/ix-modal-container.js +0 -6
- package/dist/components/ix-modal-example.d.ts +0 -11
- package/dist/components/ix-modal-example.js +0 -67
- package/dist/components/ix-modal.d.ts +0 -11
- package/dist/components/ix-modal.js +0 -6
- package/dist/components/ix-pill.d.ts +0 -11
- package/dist/components/ix-pill.js +0 -66
- package/dist/components/ix-select-item.d.ts +0 -11
- package/dist/components/ix-select-item.js +0 -6
- package/dist/components/ix-select.d.ts +0 -11
- package/dist/components/ix-select.js +0 -339
- package/dist/components/ix-spinner.d.ts +0 -11
- package/dist/components/ix-spinner.js +0 -6
- package/dist/components/ix-split-button-item.d.ts +0 -11
- package/dist/components/ix-split-button-item.js +0 -49
- package/dist/components/ix-split-button.d.ts +0 -11
- package/dist/components/ix-split-button.js +0 -135
- package/dist/components/ix-tab-item.d.ts +0 -11
- package/dist/components/ix-tab-item.js +0 -6
- package/dist/components/ix-tabs.d.ts +0 -11
- package/dist/components/ix-tabs.js +0 -6
- package/dist/components/ix-tile.d.ts +0 -11
- package/dist/components/ix-tile.js +0 -42
- package/dist/components/ix-time-picker.d.ts +0 -11
- package/dist/components/ix-time-picker.js +0 -6
- package/dist/components/ix-toast-container.d.ts +0 -11
- package/dist/components/ix-toast-container.js +0 -110
- package/dist/components/ix-toast.d.ts +0 -11
- package/dist/components/ix-toast.js +0 -6
- package/dist/components/ix-toggle.d.ts +0 -11
- package/dist/components/ix-toggle.js +0 -104
- package/dist/components/ix-tree-item.d.ts +0 -11
- package/dist/components/ix-tree-item.js +0 -6
- package/dist/components/ix-tree.d.ts +0 -11
- package/dist/components/ix-tree.js +0 -694
- package/dist/components/ix-upload.d.ts +0 -11
- package/dist/components/ix-upload.js +0 -178
- package/dist/components/ix-validation-tooltip.d.ts +0 -11
- package/dist/components/ix-validation-tooltip.js +0 -124
- package/dist/components/ix-workflow-step.d.ts +0 -11
- package/dist/components/ix-workflow-step.js +0 -142
- package/dist/components/ix-workflow-steps.d.ts +0 -11
- package/dist/components/ix-workflow-steps.js +0 -101
- package/dist/components/logical-filter-operator.js +0 -33
- package/dist/components/luxon.js +0 -8584
- package/dist/components/map-navigation-overlay.js +0 -53
- package/dist/components/menu-avatar-item.js +0 -46
- package/dist/components/menu-item.js +0 -65
- package/dist/components/modal-container.js +0 -99
- package/dist/components/modal-utils.js +0 -38
- package/dist/components/modal.js +0 -189
- package/dist/components/mutation-observer.js +0 -11
- package/dist/components/my-component.d.ts +0 -11
- package/dist/components/my-component.js +0 -32
- package/dist/components/popover.util.js +0 -36
- package/dist/components/popper.js +0 -1799
- package/dist/components/rwd.util.js +0 -39
- package/dist/components/select-item.js +0 -71
- package/dist/components/spinner.js +0 -43
- package/dist/components/tab-item.js +0 -86
- package/dist/components/tabs.js +0 -207
- package/dist/components/time-picker.js +0 -193
- package/dist/components/toast.js +0 -123
- package/dist/components/tree-item.js +0 -52
- package/dist/components/typed-event.js +0 -44
- package/dist/components/upload-file-state.js +0 -17
- package/dist/esm/_commonjsHelpers-4bc7200a.js +0 -19
- package/dist/esm/animation-b667a4c4.js +0 -17
- package/dist/esm/anime.es-185e9087.js +0 -1309
- package/dist/esm/base-button-7bfb747f.js +0 -31
- package/dist/esm/default-tree-item-638c435a.js +0 -20
- package/dist/esm/flip-tile-state-28a1f8ce.js +0 -18
- package/dist/esm/index-55cfd20d.js +0 -1819
- package/dist/esm/index.js +0 -64
- package/dist/esm/ix-animated-tab_2.entry.js +0 -212
- package/dist/esm/ix-application-header.entry.js +0 -26
- package/dist/esm/ix-basic-navigation.entry.js +0 -40
- package/dist/esm/ix-blind.entry.js +0 -85
- package/dist/esm/ix-breadcrumb_2.entry.js +0 -150
- package/dist/esm/ix-button.entry.js +0 -46
- package/dist/esm/ix-category-filter.entry.js +0 -395
- package/dist/esm/ix-chip.entry.js +0 -43
- package/dist/esm/ix-counter-pill.entry.js +0 -36
- package/dist/esm/ix-date-picker_2.entry.js +0 -9034
- package/dist/esm/ix-date-time-card.entry.js +0 -32
- package/dist/esm/ix-datetime-picker.entry.js +0 -109
- package/dist/esm/ix-drawer.entry.js +0 -118
- package/dist/esm/ix-dropdown_2.entry.js +0 -198
- package/dist/esm/ix-event-list_2.entry.js +0 -146
- package/dist/esm/ix-expanding-search.entry.js +0 -88
- package/dist/esm/ix-filter-chip.entry.js +0 -26
- package/dist/esm/ix-flip-tile_2.entry.js +0 -74
- package/dist/esm/ix-group_3.entry.js +0 -168
- package/dist/esm/ix-icon-button.entry.js +0 -36
- package/dist/esm/ix-icon.entry.js +0 -29
- package/dist/esm/ix-input-group.entry.js +0 -36
- package/dist/esm/ix-kpi.entry.js +0 -46
- package/dist/esm/ix-map-navigation_2.entry.js +0 -160
- package/dist/esm/ix-menu_9.entry.js +0 -876
- package/dist/esm/ix-message-bar.entry.js +0 -54
- package/dist/esm/ix-modal-example.entry.js +0 -20
- package/dist/esm/ix-modal_2.entry.js +0 -5
- package/dist/esm/ix-pill.entry.js +0 -36
- package/dist/esm/ix-select_2.entry.js +0 -304
- package/dist/esm/ix-spinner.entry.js +0 -26
- package/dist/esm/ix-split-button_2.entry.js +0 -109
- package/dist/esm/ix-tab-item.entry.js +0 -63
- package/dist/esm/ix-tabs.entry.js +0 -183
- package/dist/esm/ix-tile.entry.js +0 -23
- package/dist/esm/ix-toast_2.entry.js +0 -154
- package/dist/esm/ix-toggle.entry.js +0 -78
- package/dist/esm/ix-tree_2.entry.js +0 -685
- package/dist/esm/ix-upload.entry.js +0 -135
- package/dist/esm/ix-validation-tooltip.entry.js +0 -103
- package/dist/esm/ix-workflow-step_2.entry.js +0 -186
- package/dist/esm/loader.js +0 -17
- package/dist/esm/logical-filter-operator-1bf83315.js +0 -33
- package/dist/esm/modal-8ed87a6c.js +0 -218
- package/dist/esm/modal-utils-ec39c1bc.js +0 -38
- package/dist/esm/mutation-observer-379959bb.js +0 -11
- package/dist/esm/my-component.entry.js +0 -15
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/popper-42db9fbd.js +0 -1799
- package/dist/esm/rwd.util-33a69d24.js +0 -39
- package/dist/esm/siemens-ix.js +0 -17
- package/dist/esm/typed-event-dd6c83dd.js +0 -44
- package/dist/esm/upload-file-state-631bb8a2.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/siemens-ix/index.esm.js +0 -1
- package/dist/siemens-ix/p-02501b64.entry.js +0 -1
- package/dist/siemens-ix/p-03ef9fe5.entry.js +0 -1
- package/dist/siemens-ix/p-0a12b3df.js +0 -1
- package/dist/siemens-ix/p-0bf04780.js +0 -1
- package/dist/siemens-ix/p-0e315bd7.entry.js +0 -1
- package/dist/siemens-ix/p-1c82637e.js +0 -1
- package/dist/siemens-ix/p-1d30454e.js +0 -1
- package/dist/siemens-ix/p-1d56d9b6.entry.js +0 -1
- package/dist/siemens-ix/p-235606b2.entry.js +0 -1
- package/dist/siemens-ix/p-2b7ed5d4.entry.js +0 -1
- package/dist/siemens-ix/p-301ddeb7.js +0 -1
- package/dist/siemens-ix/p-334b7d5c.entry.js +0 -1
- package/dist/siemens-ix/p-37417714.js +0 -1
- package/dist/siemens-ix/p-3f809fb3.entry.js +0 -1
- package/dist/siemens-ix/p-4287bd7e.entry.js +0 -1
- package/dist/siemens-ix/p-47ea9884.js +0 -1
- package/dist/siemens-ix/p-52d99490.entry.js +0 -1
- package/dist/siemens-ix/p-5a1dcc74.js +0 -1
- package/dist/siemens-ix/p-5f9f25ef.entry.js +0 -1
- package/dist/siemens-ix/p-5fed62f8.entry.js +0 -1
- package/dist/siemens-ix/p-6726f740.entry.js +0 -1
- package/dist/siemens-ix/p-67c2bca6.entry.js +0 -1
- package/dist/siemens-ix/p-6f625f0e.js +0 -1
- package/dist/siemens-ix/p-71de6498.entry.js +0 -1
- package/dist/siemens-ix/p-77823732.entry.js +0 -1
- package/dist/siemens-ix/p-78df1e46.entry.js +0 -1
- package/dist/siemens-ix/p-7d667916.entry.js +0 -1
- package/dist/siemens-ix/p-7f5a2e3c.entry.js +0 -1
- package/dist/siemens-ix/p-810b5232.js +0 -1
- package/dist/siemens-ix/p-81e46337.entry.js +0 -1
- package/dist/siemens-ix/p-8239c3a1.entry.js +0 -1
- package/dist/siemens-ix/p-893b7bf6.entry.js +0 -1
- package/dist/siemens-ix/p-94b86dec.entry.js +0 -1
- package/dist/siemens-ix/p-a49005f3.entry.js +0 -1
- package/dist/siemens-ix/p-a8396077.entry.js +0 -1
- package/dist/siemens-ix/p-ab715295.entry.js +0 -1
- package/dist/siemens-ix/p-b4003026.entry.js +0 -1
- package/dist/siemens-ix/p-b93c2fab.entry.js +0 -1
- package/dist/siemens-ix/p-bd15d8ca.entry.js +0 -1
- package/dist/siemens-ix/p-bdd294d2.js +0 -1
- package/dist/siemens-ix/p-be1ec062.entry.js +0 -1
- package/dist/siemens-ix/p-bf5513a0.entry.js +0 -1
- package/dist/siemens-ix/p-c0c9fb81.entry.js +0 -1
- package/dist/siemens-ix/p-c3738ffc.entry.js +0 -1
- package/dist/siemens-ix/p-c792adb4.entry.js +0 -1
- package/dist/siemens-ix/p-c9a5d942.entry.js +0 -1
- package/dist/siemens-ix/p-cb6e62ff.entry.js +0 -1
- package/dist/siemens-ix/p-cbd0f8a7.entry.js +0 -1
- package/dist/siemens-ix/p-d23706a7.js +0 -1
- package/dist/siemens-ix/p-d2fc562a.entry.js +0 -1
- package/dist/siemens-ix/p-da2cae32.js +0 -1
- package/dist/siemens-ix/p-df43662b.entry.js +0 -1
- package/dist/siemens-ix/p-f2636faf.entry.js +0 -1
- package/dist/siemens-ix/p-f86fcdf4.js +0 -1
- package/dist/siemens-ix/p-fa44655a.entry.js +0 -1
- package/dist/siemens-ix/p-fbe40498.js +0 -1
- package/dist/siemens-ix/p-fe5db4d1.entry.js +0 -1
- package/dist/siemens-ix/siemens-ix.css +0 -19249
- package/dist/siemens-ix/siemens-ix.esm.js +0 -1
- package/dist/types/components/animated-tab/animated-tab.d.ts +0 -11
- package/dist/types/components/animated-tabs/animated-tabs.d.ts +0 -44
- package/dist/types/components/application-header/application-header.d.ts +0 -10
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +0 -16
- package/dist/types/components/blind/blind.d.ts +0 -26
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +0 -48
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +0 -11
- package/dist/types/components/button/base-button.d.ts +0 -13
- package/dist/types/components/button/button.d.ts +0 -34
- package/dist/types/components/category-filter/category-filter.d.ts +0 -129
- package/dist/types/components/category-filter/filter-state.d.ts +0 -9
- package/dist/types/components/category-filter/input-state.d.ts +0 -6
- package/dist/types/components/category-filter/logical-filter-operator.d.ts +0 -4
- package/dist/types/components/chip/chip.d.ts +0 -38
- package/dist/types/components/counter-pill/counter-pill.d.ts +0 -24
- package/dist/types/components/date-picker/date-picker.d.ts +0 -136
- package/dist/types/components/date-picker/events.d.ts +0 -5
- package/dist/types/components/date-time-card/date-time-card.d.ts +0 -14
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +0 -128
- package/dist/types/components/datetime-picker/event.d.ts +0 -5
- package/dist/types/components/drawer/drawer.d.ts +0 -49
- package/dist/types/components/dropdown/dropdown.d.ts +0 -70
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +0 -33
- package/dist/types/components/event-list/event-list.d.ts +0 -31
- package/dist/types/components/event-list-item/event-list-item.d.ts +0 -34
- package/dist/types/components/expanding-search/expanding-search.d.ts +0 -31
- package/dist/types/components/filter-chip/filter-chip.d.ts +0 -14
- package/dist/types/components/flip-tile/flip-tile-state.d.ts +0 -7
- package/dist/types/components/flip-tile/flip-tile.d.ts +0 -22
- package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +0 -3
- package/dist/types/components/group/group.d.ts +0 -59
- package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +0 -11
- package/dist/types/components/group-item/group-item.d.ts +0 -39
- package/dist/types/components/icon/icon.d.ts +0 -15
- package/dist/types/components/icon-button/icon-button.d.ts +0 -51
- package/dist/types/components/input-group/input-group.d.ts +0 -5
- package/dist/types/components/kpi/kpi.d.ts +0 -25
- package/dist/types/components/map-navigation/map-navigation.d.ts +0 -51
- package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +0 -20
- package/dist/types/components/menu/menu.d.ts +0 -145
- package/dist/types/components/menu-about/menu-about.d.ts +0 -31
- package/dist/types/components/menu-about-item/menu-about-item.d.ts +0 -7
- package/dist/types/components/menu-about-news/menu-about-news.d.ts +0 -36
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +0 -26
- package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +0 -17
- package/dist/types/components/menu-item/menu-item.d.ts +0 -31
- package/dist/types/components/menu-settings/menu-settings.d.ts +0 -27
- package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +0 -7
- package/dist/types/components/message-bar/message-bar.d.ts +0 -23
- package/dist/types/components/modal/modal-utils.d.ts +0 -26
- package/dist/types/components/modal/modal.d.ts +0 -99
- package/dist/types/components/modal-container/modal-container.d.ts +0 -15
- package/dist/types/components/my-component/example-modal.d.ts +0 -6
- package/dist/types/components/my-component/my-component.d.ts +0 -3
- package/dist/types/components/pill/pill.d.ts +0 -28
- package/dist/types/components/select/select.d.ts +0 -83
- package/dist/types/components/select-item/select-item.d.ts +0 -31
- package/dist/types/components/spinner/spinner.d.ts +0 -11
- package/dist/types/components/split-button/split-button.d.ts +0 -57
- package/dist/types/components/split-button-item/split-button-item.d.ts +0 -17
- package/dist/types/components/tab-item/tab-item.d.ts +0 -36
- package/dist/types/components/tabs/tabs.d.ts +0 -46
- package/dist/types/components/tile/tile.d.ts +0 -7
- package/dist/types/components/time-picker/time-picker.d.ts +0 -80
- package/dist/types/components/toast/toast-container.d.ts +0 -25
- package/dist/types/components/toast/toast-utils.d.ts +0 -33
- package/dist/types/components/toast/toast.d.ts +0 -39
- package/dist/types/components/toggle/toggle.d.ts +0 -45
- package/dist/types/components/tree/tree-model.d.ts +0 -17
- package/dist/types/components/tree/tree.d.ts +0 -44
- package/dist/types/components/tree-item/default-tree-item.d.ts +0 -6
- package/dist/types/components/tree-item/tree-item.d.ts +0 -25
- package/dist/types/components/upload/upload-file-state.d.ts +0 -6
- package/dist/types/components/upload/upload.d.ts +0 -70
- package/dist/types/components/utils/animation.d.ts +0 -7
- package/dist/types/components/utils/button-variants.d.ts +0 -1
- package/dist/types/components/utils/mutation-observer.d.ts +0 -1
- package/dist/types/components/utils/notification-color.d.ts +0 -4
- package/dist/types/components/utils/popover.util.d.ts +0 -9
- package/dist/types/components/utils/rwd.util.d.ts +0 -2
- package/dist/types/components/utils/toggle-theme.d.ts +0 -1
- package/dist/types/components/utils/typed-event.d.ts +0 -15
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +0 -31
- package/dist/types/components/workflow-step/workflow-step.d.ts +0 -35
- package/dist/types/components/workflow-steps/workflow-steps.d.ts +0 -29
- package/dist/types/components.d.ts +0 -3689
- package/dist/types/env.d.ts +0 -1
- package/dist/types/exports.d.ts +0 -7
- package/dist/types/index.d.ts +0 -11
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/test/index.d.ts +0 -1
- package/dist/types/utils/test/page.d.ts +0 -3
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as anime } from './anime.es.js';
|
|
3
|
-
import { c as createMutationObserver } from './mutation-observer.js';
|
|
4
|
-
import { d as defineCustomElement$4 } from './dropdown.js';
|
|
5
|
-
import { d as defineCustomElement$3 } from './dropdown-item.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
|
7
|
-
|
|
8
|
-
const breadcrumbCss = ".sc-ix-breadcrumb-h{display:flex;height:2.5rem;justify-content:flex-start;align-items:center;background-color:transparent;overflow:hidden}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb{position:relative;display:flex;justify-content:flex-start;align-items:center;white-space:nowrap;border-radius:var(--theme-breadcrumb--border-radius);height:2rem;max-height:2rem;min-width:0;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem;padding:0.5rem 0 0.5rem 0.25rem;outline:none;cursor:pointer}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):hover{background-color:var(--theme-breadcrumb-btn--background--hover)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):hover .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):hover .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn--color--hover)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):hover .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn-arrow--color--hover)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):active{background-color:var(--theme-breadcrumb-btn--background--active)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):active .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):active .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn--color--active)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(.disabled):not(:disabled):active .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn-arrow--color--active)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;min-width:0;font-weight:700}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb ix-icon.sc-ix-breadcrumb{-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem;-webkit-margin-end:0;margin-inline-end:0}.sc-ix-breadcrumb-h .crumb.last.sc-ix-breadcrumb{background-color:transparent !important;cursor:default;-webkit-padding-end:0.25rem;padding-inline-end:0.25rem}.sc-ix-breadcrumb-h .crumb.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):focus-visible{border-color:var(--theme-focus--border-color)}.sc-ix-breadcrumb-h .crumb.sc-ix-breadcrumb:not(:last-of-type){flex-shrink:0;max-width:14rem}.sc-ix-breadcrumb-h .crumb-dropdown.sc-ix-breadcrumb{overflow:visible}.sc-ix-breadcrumb-h .crumb-dropdown.sc-ix-breadcrumb .glyph.sc-ix-breadcrumb::after{display:none}.sc-ix-breadcrumb-h .remove-anchor.sc-ix-breadcrumb::after{display:none}.sc-ix-breadcrumb-h .more-text.sc-ix-breadcrumb{display:flex}.sc-ix-breadcrumb-h .more-text.sc-ix-breadcrumb .more-text-ellipsis.sc-ix-breadcrumb{width:1rem;display:inline-block;font-weight:700}.sc-ix-breadcrumb-h .more-text.sc-ix-breadcrumb .glyph.sc-ix-breadcrumb{line-height:unset}.sc-ix-breadcrumb-h .crumb-items.sc-ix-breadcrumb{display:contents}.sc-ix-breadcrumb-h .crumb.btn.sc-ix-breadcrumb{background-color:var(--theme-breadcrumb-btn--background);border:var(--theme-btn--btn-thickness) solid transparent;transition:150ms}.sc-ix-breadcrumb-h .crumb.btn.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.btn.sc-ix-breadcrumb .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn--color)}.sc-ix-breadcrumb-h .crumb.btn.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn-arrow--color)}.sc-ix-breadcrumb-h .crumb.btn.last.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn-last--color)}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover{background-color:var(--theme-breadcrumb-btn--background--hover)}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn--color--hover)}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn-arrow--color--hover)}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active{background-color:var(--theme-breadcrumb-btn--background--active)}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn--color--active)}.sc-ix-breadcrumb-h .crumb.btn.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-btn-arrow--color--active)}.sc-ix-breadcrumb-h .crumb.ghost.sc-ix-breadcrumb{background-color:var(--theme-breadcrumb-ghost--background);border:var(--theme-btn--ghost-thickness) solid transparent;transition:150ms}.sc-ix-breadcrumb-h .crumb.ghost.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.ghost.sc-ix-breadcrumb .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost--color)}.sc-ix-breadcrumb-h .crumb.ghost.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost-arrow--color)}.sc-ix-breadcrumb-h .crumb.ghost.last.sc-ix-breadcrumb .crumb-text.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost-last--color)}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover{background-color:var(--theme-breadcrumb-ghost--background--hover)}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost--color--hover)}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):hover .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost-arrow--color--hover)}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active{background-color:var(--theme-breadcrumb-ghost--background--active)}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active .crumb-text.sc-ix-breadcrumb,.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active .glyph.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost--color--active)}.sc-ix-breadcrumb-h .crumb.ghost.clickable.sc-ix-breadcrumb:not(.remove-hover):not(.disabled):not(:disabled):active .crumb-text.sc-ix-breadcrumb+.glyph-chevron-right-small.sc-ix-breadcrumb{color:var(--theme-breadcrumb-ghost-arrow--color--active)}.dropdown-overflow.sc-ix-breadcrumb .dropdown-menu.sc-ix-breadcrumb{max-height:25rem;overflow-y:auto}";
|
|
9
|
-
|
|
10
|
-
const Breadcrumb = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.__registerHost();
|
|
14
|
-
this.itemClick = createEvent(this, "itemClick", 7);
|
|
15
|
-
this.nextClick = createEvent(this, "nextClick", 7);
|
|
16
|
-
/**
|
|
17
|
-
* Excess items will get hidden inside of dropdown
|
|
18
|
-
*/
|
|
19
|
-
this.visibleItemCount = 9;
|
|
20
|
-
/**
|
|
21
|
-
* Items will be accessible through a dropdown
|
|
22
|
-
*/
|
|
23
|
-
this.nextItems = [];
|
|
24
|
-
/**
|
|
25
|
-
* Ghost breadcrumbs will not show solid backgrounds on individual crumbs unless there is a mouse event (e.g. hover)
|
|
26
|
-
*/
|
|
27
|
-
this.ghost = false;
|
|
28
|
-
this.items = [];
|
|
29
|
-
}
|
|
30
|
-
get breadcrumbItems() {
|
|
31
|
-
return Array.from(this.hostElement.querySelectorAll('ix-breadcrumb-item'));
|
|
32
|
-
}
|
|
33
|
-
get crumbItems() {
|
|
34
|
-
return Array.from(this.hostElement.querySelectorAll('.crumb-items .crumb'));
|
|
35
|
-
}
|
|
36
|
-
onItemClick(item) {
|
|
37
|
-
this.itemClick.emit(item);
|
|
38
|
-
}
|
|
39
|
-
componentDidLoad() {
|
|
40
|
-
this.mutationObserver = createMutationObserver(() => {
|
|
41
|
-
const updatedItems = this.getItems();
|
|
42
|
-
const update = () => {
|
|
43
|
-
this.items = updatedItems;
|
|
44
|
-
};
|
|
45
|
-
if (updatedItems.length >= this.items.length) {
|
|
46
|
-
update();
|
|
47
|
-
}
|
|
48
|
-
else if (updatedItems.length < this.items.length) {
|
|
49
|
-
const last = this.crumbItems[this.crumbItems.length - 1];
|
|
50
|
-
this.animationFadeOut(last, () => update());
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
this.mutationObserver.observe(this.hostElement.querySelector('.crumb-items'), {
|
|
54
|
-
subtree: true,
|
|
55
|
-
childList: true,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
componentWillLoad() {
|
|
59
|
-
this.items = this.getItems();
|
|
60
|
-
}
|
|
61
|
-
getItems() {
|
|
62
|
-
return this.breadcrumbItems.map((item) => {
|
|
63
|
-
return { label: item.label, icon: item.icon };
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
disconnectedCallback() {
|
|
67
|
-
var _a;
|
|
68
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
69
|
-
}
|
|
70
|
-
animationFadeOut(ref, complete) {
|
|
71
|
-
anime({
|
|
72
|
-
targets: ref,
|
|
73
|
-
translateX: '-100%',
|
|
74
|
-
duration: 150,
|
|
75
|
-
opacity: [1, 0],
|
|
76
|
-
easing: 'linear',
|
|
77
|
-
complete: () => complete(),
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
animationFadeIn(ref) {
|
|
81
|
-
anime({
|
|
82
|
-
targets: ref,
|
|
83
|
-
duration: 150,
|
|
84
|
-
opacity: [0, 1],
|
|
85
|
-
translateX: ['-100%', '0%'],
|
|
86
|
-
easing: 'linear',
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
handleLastButtonRef(ref, last) {
|
|
90
|
-
var _a;
|
|
91
|
-
if (last) {
|
|
92
|
-
this.animationFadeIn(ref);
|
|
93
|
-
}
|
|
94
|
-
if (last && ((_a = this.nextItems) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
95
|
-
this.nextButtonRef = ref;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
sliceHiddenItems() {
|
|
99
|
-
let sliceIndex = 0;
|
|
100
|
-
if (this.items.length > this.visibleItemCount) {
|
|
101
|
-
sliceIndex = this.items.length - this.visibleItemCount;
|
|
102
|
-
}
|
|
103
|
-
return this.items.slice(sliceIndex);
|
|
104
|
-
}
|
|
105
|
-
clickItem(item, last) {
|
|
106
|
-
if (!last) {
|
|
107
|
-
this.onItemClick(item);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
renderBreadcrumbItems() {
|
|
111
|
-
return this.sliceHiddenItems().map((item, index, array) => {
|
|
112
|
-
var _a;
|
|
113
|
-
const last = index === array.length - 1;
|
|
114
|
-
const isLastItem = last && !((_a = this.nextItems) === null || _a === void 0 ? void 0 : _a.length);
|
|
115
|
-
return (h("div", { ref: (ref) => this.handleLastButtonRef(ref, last), "data-breadcrumb": index, class: {
|
|
116
|
-
crumb: true,
|
|
117
|
-
clickable: true,
|
|
118
|
-
ghost: this.ghost,
|
|
119
|
-
btn: !this.ghost,
|
|
120
|
-
last: isLastItem,
|
|
121
|
-
'remove-hover': isLastItem,
|
|
122
|
-
}, onClick: () => this.clickItem(item.label, last), "data-testid": "item" }, h("span", { class: "crumb-text remove-anchor" }, item.icon ? h("ix-icon", { name: item.icon, size: "16" }) : '', item.label), !isLastItem ? (h("span", { class: "glyph glyph-18 glyph-chevron-right-small text-default-text" })) : null));
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
render() {
|
|
126
|
-
var _a, _b, _c;
|
|
127
|
-
return (h(Host, null, h("ix-dropdown", { trigger: ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) > this.visibleItemCount
|
|
128
|
-
? this.previousButtonRef
|
|
129
|
-
: null }, this.items
|
|
130
|
-
.slice(0, this.items.length - this.visibleItemCount)
|
|
131
|
-
.map((item) => (h("ix-dropdown-item", { label: item.label, onClick: () => this.onItemClick(item.label) })))), ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > this.visibleItemCount ? (h("div", { class: "crumb crumb-dropdown", ref: (ref) => (this.previousButtonRef = ref) }, h("span", { class: "remove-anchor more-text" }, h("span", { class: "more-text-ellipsis" }, "..."), h("span", { class: "glyph glyph-16 glyph-chevron-right" })))) : null, h("div", { class: "crumb-items" }, this.renderBreadcrumbItems(), h("slot", null)), h("ix-dropdown", { trigger: this.nextButtonRef }, (_c = this.nextItems) === null || _c === void 0 ? void 0 : _c.map((item) => (h("ix-dropdown-item", { label: item, onClick: (e) => {
|
|
132
|
-
this.nextClick.emit({
|
|
133
|
-
event: e,
|
|
134
|
-
item,
|
|
135
|
-
});
|
|
136
|
-
} }))))));
|
|
137
|
-
}
|
|
138
|
-
get hostElement() { return this; }
|
|
139
|
-
static get style() { return breadcrumbCss; }
|
|
140
|
-
}, [6, "ix-breadcrumb", {
|
|
141
|
-
"visibleItemCount": [2, "visible-item-count"],
|
|
142
|
-
"nextItems": [16],
|
|
143
|
-
"ghost": [4],
|
|
144
|
-
"previousButtonRef": [32],
|
|
145
|
-
"nextButtonRef": [32],
|
|
146
|
-
"items": [32]
|
|
147
|
-
}]);
|
|
148
|
-
function defineCustomElement$1() {
|
|
149
|
-
if (typeof customElements === "undefined") {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
const components = ["ix-breadcrumb", "ix-dropdown", "ix-dropdown-item", "ix-icon"];
|
|
153
|
-
components.forEach(tagName => { switch (tagName) {
|
|
154
|
-
case "ix-breadcrumb":
|
|
155
|
-
if (!customElements.get(tagName)) {
|
|
156
|
-
customElements.define(tagName, Breadcrumb);
|
|
157
|
-
}
|
|
158
|
-
break;
|
|
159
|
-
case "ix-dropdown":
|
|
160
|
-
if (!customElements.get(tagName)) {
|
|
161
|
-
defineCustomElement$4();
|
|
162
|
-
}
|
|
163
|
-
break;
|
|
164
|
-
case "ix-dropdown-item":
|
|
165
|
-
if (!customElements.get(tagName)) {
|
|
166
|
-
defineCustomElement$3();
|
|
167
|
-
}
|
|
168
|
-
break;
|
|
169
|
-
case "ix-icon":
|
|
170
|
-
if (!customElements.get(tagName)) {
|
|
171
|
-
defineCustomElement$2();
|
|
172
|
-
}
|
|
173
|
-
break;
|
|
174
|
-
} });
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
const IxBreadcrumb = Breadcrumb;
|
|
178
|
-
const defineCustomElement = defineCustomElement$1;
|
|
179
|
-
|
|
180
|
-
export { IxBreadcrumb, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface IxButton extends Components.IxButton, HTMLElement {}
|
|
4
|
-
export const IxButton: {
|
|
5
|
-
prototype: IxButton;
|
|
6
|
-
new (): IxButton;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface IxCategoryFilter extends Components.IxCategoryFilter, HTMLElement {}
|
|
4
|
-
export const IxCategoryFilter: {
|
|
5
|
-
prototype: IxCategoryFilter;
|
|
6
|
-
new (): IxCategoryFilter;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as convertToRemString } from './rwd.util.js';
|
|
3
|
-
import { L as LogicalFilterOperator, I as InputState } from './logical-filter-operator.js';
|
|
4
|
-
import { d as defineCustomElement$3 } from './filter-chip.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
|
6
|
-
|
|
7
|
-
const categoryFilterCss = ".sc-ix-category-filter-h{display:block;position:relative}.sc-ix-category-filter-h .focus.sc-ix-category-filter{border-color:var(--theme-color-primary);box-shadow:0 0 0.25rem 0 var(--theme-color-primary) !important}.sc-ix-category-filter-h .btn-close.sc-ix-category-filter{position:absolute;top:0.25rem;right:0.25rem;min-width:1.5rem;width:1.5rem;height:1.5rem}.sc-ix-category-filter-h .input-container.sc-ix-category-filter{display:flex;height:100%;max-height:3.75rem;padding:1px 1.5rem 1px 2rem}.sc-ix-category-filter-h .input-container.no-icon.sc-ix-category-filter{padding-left:0.25rem}.sc-ix-category-filter-h .token-container.sc-ix-category-filter{flex-grow:1;overflow:hidden}.sc-ix-category-filter-h .text-input.sc-ix-category-filter{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text);background:transparent;flex-grow:1;height:1.75rem}.sc-ix-category-filter-h .text-input.sc-ix-category-filter,.sc-ix-category-filter-h .text-input.sc-ix-category-filter:hover,.sc-ix-category-filter-h .text-input.sc-ix-category-filter:focus-visible{border:none;outline:none}.sc-ix-category-filter-h .text-input.hide-placeholder.sc-ix-category-filter::-moz-placeholder{opacity:0}.sc-ix-category-filter-h .text-input.hide-placeholder.sc-ix-category-filter::placeholder{opacity:0}.sc-ix-category-filter-h .list-unstyled.sc-ix-category-filter{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;overflow-y:auto}.sc-ix-category-filter-h ix-icon.sc-ix-category-filter{position:absolute;top:0.5rem;left:0.5rem}.sc-ix-category-filter-h ix-filter-chip.sc-ix-category-filter{margin-right:0.5rem}.sc-ix-category-filter-h .category-preview.sc-ix-category-filter{display:flex;align-items:center;height:1.5rem;background-color:var(--theme-bg-3);border-top-left-radius:1rem;border-bottom-left-radius:1rem;padding:0.5rem;margin:2px 0}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter{box-shadow:var(--theme-box-shadow-level-1);background:var(--theme-color-1);position:absolute;top:2rem;overflow-y:auto;min-width:10rem;border:var(--theme-std-bdr-1);border-radius:0.25rem;padding:0.5rem;z-index:1}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item.sc-ix-category-filter,.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-header.sc-ix-category-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:2rem;padding:0.5rem}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-header.sc-ix-category-filter{color:var(--theme-color-soft-text)}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-id.sc-ix-category-filter{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-value.sc-ix-category-filter{border-top-right-radius:1rem;border-bottom-right-radius:1rem}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item.sc-ix-category-filter{cursor:pointer}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item.sc-ix-category-filter:focus{background-color:var(--theme-generic-bg-active);outline:none}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .plain-text-suggestion.sc-ix-category-filter{border-radius:1rem}.sc-ix-category-filter-h ul.sc-ix-category-filter{height:100%}.sc-ix-category-filter-h ul.sc-ix-category-filter>li.sc-ix-category-filter,.sc-ix-category-filter-h input.sc-ix-category-filter{padding-top:2px;padding-bottom:2px}";
|
|
8
|
-
|
|
9
|
-
const CategoryFilter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.__registerHost();
|
|
13
|
-
this.inputChanged = createEvent(this, "inputChanged", 7);
|
|
14
|
-
this.filterChanged = createEvent(this, "filterChanged", 7);
|
|
15
|
-
this.ID_CUSTOM_FILTER_VALUE = 'CW_CUSTOM_FILTER_VALUE';
|
|
16
|
-
this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;
|
|
17
|
-
this.filterTokens = [];
|
|
18
|
-
/**
|
|
19
|
-
* In certain use cases some categories are not available for selection any more.
|
|
20
|
-
* To allow proper display of set filters with these categories this ID to label mapping can be populated.
|
|
21
|
-
* Configuration object hash used to supply labels to the filter chips in the input field.
|
|
22
|
-
* Each ID maps to a string representing the label to display.
|
|
23
|
-
*/
|
|
24
|
-
this.nonSelectableCategories = {};
|
|
25
|
-
/**
|
|
26
|
-
* The icon next to the actual text input
|
|
27
|
-
* Defaults to 'search'
|
|
28
|
-
*/
|
|
29
|
-
this.icon = 'search';
|
|
30
|
-
/**
|
|
31
|
-
* If set to true allows that a single category can be set more than once.
|
|
32
|
-
* An already set category will not appear in the category dropdown if set to false.
|
|
33
|
-
*
|
|
34
|
-
* Defaults to true
|
|
35
|
-
*/
|
|
36
|
-
this.repeatCategories = true;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated For debugging purposes only!
|
|
39
|
-
*/
|
|
40
|
-
this.tmpDisableScrollIntoView = true;
|
|
41
|
-
/**
|
|
42
|
-
* i18n
|
|
43
|
-
*/
|
|
44
|
-
this.labelCategories = 'Categories';
|
|
45
|
-
/**
|
|
46
|
-
* i18n
|
|
47
|
-
*/
|
|
48
|
-
this.i18nPlainText = 'Filter by text';
|
|
49
|
-
this.documentClickCallback = this.handleDocumentClick.bind(this);
|
|
50
|
-
}
|
|
51
|
-
watchFilterState(newValue) {
|
|
52
|
-
this.setFilterState(newValue);
|
|
53
|
-
}
|
|
54
|
-
watchShowCategorySelection(newValue) {
|
|
55
|
-
if (newValue) {
|
|
56
|
-
document.addEventListener('click', this.documentClickCallback);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
document.removeEventListener('click', this.documentClickCallback);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
setDropdownOffset() {
|
|
63
|
-
const height = this.calculateDropdownHeight();
|
|
64
|
-
this.maxHeightDropdown = convertToRemString(height);
|
|
65
|
-
}
|
|
66
|
-
componentDidLoad() {
|
|
67
|
-
var _a, _b;
|
|
68
|
-
if (this.initialState !== undefined) {
|
|
69
|
-
this.setFilterState(this.initialState);
|
|
70
|
-
}
|
|
71
|
-
else if (this.filterState !== undefined) {
|
|
72
|
-
this.setFilterState(this.filterState);
|
|
73
|
-
}
|
|
74
|
-
(_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.addEventListener('keydown', this.handleFormElementKeyDown.bind(this));
|
|
75
|
-
(_b = this.formElement) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', (e) => e.preventDefault());
|
|
76
|
-
if (this.textInput == null) {
|
|
77
|
-
console.warn('Core UI category filter - unable to add event listeners to native input element');
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
this.textInput.addEventListener('click', () => (this.showCategorySelection = true));
|
|
81
|
-
this.textInput.addEventListener('focusin', () => {
|
|
82
|
-
this.hasFocus = true;
|
|
83
|
-
});
|
|
84
|
-
this.textInput.addEventListener('focusout', () => (this.hasFocus = false));
|
|
85
|
-
this.textInput.addEventListener('input', () => {
|
|
86
|
-
this.inputValue = this.textInput.value;
|
|
87
|
-
const inputState = new InputState(this.inputValue, this.category);
|
|
88
|
-
this.inputChanged.emit(inputState);
|
|
89
|
-
this.showCategorySelection = true;
|
|
90
|
-
});
|
|
91
|
-
this.textInput.addEventListener('keydown', this.handleInputElementKeyDown.bind(this));
|
|
92
|
-
}
|
|
93
|
-
setFilterState(state) {
|
|
94
|
-
this.filterTokens = [];
|
|
95
|
-
for (const token of state.tokens) {
|
|
96
|
-
this.addToken(token, this.ID_CUSTOM_FILTER_VALUE, this.categoryLogicalOperator, false);
|
|
97
|
-
}
|
|
98
|
-
for (const category of state.categories) {
|
|
99
|
-
this.addToken(category.value, category.id, category.operator, false);
|
|
100
|
-
}
|
|
101
|
-
this.emitFilterEvent();
|
|
102
|
-
}
|
|
103
|
-
handleDocumentClick(ev) {
|
|
104
|
-
const target = ev.target;
|
|
105
|
-
if (!this.hostElement.contains(target)) {
|
|
106
|
-
this.closeDropdown();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
closeDropdown() {
|
|
110
|
-
this.showCategorySelection = false;
|
|
111
|
-
this.category = undefined;
|
|
112
|
-
}
|
|
113
|
-
handleFormElementKeyDown(e) {
|
|
114
|
-
switch (e.code) {
|
|
115
|
-
case 'Enter':
|
|
116
|
-
case 'NumpadEnter':
|
|
117
|
-
if (this.category ||
|
|
118
|
-
document.activeElement.classList.contains('plain-text-suggestion')) {
|
|
119
|
-
const token = document.activeElement.getAttribute('data-id');
|
|
120
|
-
this.addToken(token, this.category);
|
|
121
|
-
}
|
|
122
|
-
else if (document.activeElement.classList.contains('category-item-id')) {
|
|
123
|
-
this.selectCategory(document.activeElement.getAttribute('data-id'));
|
|
124
|
-
}
|
|
125
|
-
e.preventDefault();
|
|
126
|
-
break;
|
|
127
|
-
case 'ArrowUp':
|
|
128
|
-
this.focusPreviousItem();
|
|
129
|
-
e.preventDefault();
|
|
130
|
-
break;
|
|
131
|
-
case 'ArrowDown':
|
|
132
|
-
this.focusNextItem();
|
|
133
|
-
e.preventDefault();
|
|
134
|
-
break;
|
|
135
|
-
case 'Escape':
|
|
136
|
-
this.closeDropdown();
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
focusPreviousItem() {
|
|
141
|
-
const sibling = document.activeElement.previousSibling;
|
|
142
|
-
if (sibling instanceof HTMLElement) {
|
|
143
|
-
sibling.focus();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
focusNextItem() {
|
|
147
|
-
const sibling = document.activeElement.nextSibling;
|
|
148
|
-
if (sibling instanceof HTMLElement) {
|
|
149
|
-
sibling.focus();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
handleInputElementKeyDown(e) {
|
|
153
|
-
var _a;
|
|
154
|
-
switch (e.code) {
|
|
155
|
-
case 'ArrowDown':
|
|
156
|
-
const selector = `.category-item-${this.category ? 'value' : 'id'}`;
|
|
157
|
-
let item = this.hostElement.querySelector(selector);
|
|
158
|
-
if (item instanceof HTMLElement) {
|
|
159
|
-
item.focus();
|
|
160
|
-
e.stopPropagation();
|
|
161
|
-
}
|
|
162
|
-
else if ((_a = this.suggestions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
163
|
-
item = this.hostElement.querySelector('.category-item');
|
|
164
|
-
if (item instanceof HTMLElement) {
|
|
165
|
-
item.focus();
|
|
166
|
-
e.stopPropagation();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
break;
|
|
170
|
-
case 'Backspace':
|
|
171
|
-
if (this.textInput.value !== '') {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
if (this.category) {
|
|
175
|
-
this.category = undefined;
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
const tokenCount = this.filterTokens.length;
|
|
179
|
-
if (tokenCount > 0) {
|
|
180
|
-
this.removeToken(tokenCount - 1);
|
|
181
|
-
}
|
|
182
|
-
break;
|
|
183
|
-
case 'Enter':
|
|
184
|
-
case 'NumpadEnter':
|
|
185
|
-
this.addToken(this.inputValue, this.category);
|
|
186
|
-
e.preventDefault();
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
emitFilterEvent() {
|
|
191
|
-
const tokens = this.filterTokens
|
|
192
|
-
.filter((item) => item.id === this.ID_CUSTOM_FILTER_VALUE)
|
|
193
|
-
.map((item) => item.value);
|
|
194
|
-
const categories = this.filterTokens.filter((item) => item.id !== this.ID_CUSTOM_FILTER_VALUE);
|
|
195
|
-
const filterState = {
|
|
196
|
-
tokens,
|
|
197
|
-
categories,
|
|
198
|
-
};
|
|
199
|
-
this.filterChanged.emit(filterState);
|
|
200
|
-
}
|
|
201
|
-
addToken(token, category = this.ID_CUSTOM_FILTER_VALUE, operator = this.categoryLogicalOperator, emitEvent = true) {
|
|
202
|
-
if (token === undefined || token === null) {
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
const newToken = token.trim();
|
|
206
|
-
if (newToken === '') {
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
if (this.filterTokens.find((value) => (value === null || value === void 0 ? void 0 : value.value) === newToken)) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
const pair = { id: category, value: newToken, operator };
|
|
213
|
-
this.filterTokens = [...this.filterTokens, pair];
|
|
214
|
-
this.textInput.value = '';
|
|
215
|
-
this.inputValue = '';
|
|
216
|
-
this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;
|
|
217
|
-
this.isScrollStateDirty = true;
|
|
218
|
-
this.textInput.focus();
|
|
219
|
-
if (emitEvent) {
|
|
220
|
-
this.emitFilterEvent();
|
|
221
|
-
}
|
|
222
|
-
this.closeDropdown();
|
|
223
|
-
}
|
|
224
|
-
removeToken(index) {
|
|
225
|
-
this.filterTokens = this.filterTokens.filter((_, i) => i !== index);
|
|
226
|
-
this.emitFilterEvent();
|
|
227
|
-
}
|
|
228
|
-
getCategoryIds() {
|
|
229
|
-
const ids = [];
|
|
230
|
-
for (const id in this.categories) {
|
|
231
|
-
if (Object.prototype.hasOwnProperty.call(this.categories, id)) {
|
|
232
|
-
ids.push(id);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return ids;
|
|
236
|
-
}
|
|
237
|
-
getCategoryLables() {
|
|
238
|
-
return this.getCategoryIds().map((id) => this.categories[id].label);
|
|
239
|
-
}
|
|
240
|
-
selectCategory(category) {
|
|
241
|
-
this.category = category;
|
|
242
|
-
this.textInput.value = '';
|
|
243
|
-
this.inputValue = '';
|
|
244
|
-
this.textInput.focus();
|
|
245
|
-
}
|
|
246
|
-
openCategorySelection() {
|
|
247
|
-
this.showCategorySelection = true;
|
|
248
|
-
}
|
|
249
|
-
resetFilter() {
|
|
250
|
-
this.closeDropdown();
|
|
251
|
-
this.filterTokens = [];
|
|
252
|
-
this.emitFilterEvent();
|
|
253
|
-
}
|
|
254
|
-
calculateDropdownX() {
|
|
255
|
-
var _a;
|
|
256
|
-
if (!this.textInput) {
|
|
257
|
-
return 0;
|
|
258
|
-
}
|
|
259
|
-
const xInput = this.textInput.getBoundingClientRect().x;
|
|
260
|
-
const xFrom = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().x;
|
|
261
|
-
return xInput - xFrom;
|
|
262
|
-
}
|
|
263
|
-
calculateDropdownY() {
|
|
264
|
-
if (!this.textInput) {
|
|
265
|
-
return 32;
|
|
266
|
-
}
|
|
267
|
-
return this.hostElement.getBoundingClientRect().height;
|
|
268
|
-
}
|
|
269
|
-
calculateDropdownHeight(top = 32) {
|
|
270
|
-
const hostTop = this.hostElement.getBoundingClientRect().top;
|
|
271
|
-
const offset = hostTop + top;
|
|
272
|
-
return window.innerHeight - offset;
|
|
273
|
-
}
|
|
274
|
-
filterMultiples(value) {
|
|
275
|
-
if (this.repeatCategories) {
|
|
276
|
-
return true;
|
|
277
|
-
}
|
|
278
|
-
const isCategoryAlreadySet = this.filterTokens.find((token) => token.id === value);
|
|
279
|
-
return !isCategoryAlreadySet;
|
|
280
|
-
}
|
|
281
|
-
filterDuplicateTokens(value) {
|
|
282
|
-
const isTokenAlreadySet = this.filterTokens.some((token) => token.value === value);
|
|
283
|
-
return !isTokenAlreadySet;
|
|
284
|
-
}
|
|
285
|
-
filterByInput(value) {
|
|
286
|
-
if (this.inputValue === undefined || this.inputValue === '') {
|
|
287
|
-
return true;
|
|
288
|
-
}
|
|
289
|
-
return value.toLowerCase().indexOf(this.inputValue.toLowerCase()) !== -1;
|
|
290
|
-
}
|
|
291
|
-
toggleCategoryOperator() {
|
|
292
|
-
switch (this.categoryLogicalOperator) {
|
|
293
|
-
case LogicalFilterOperator.EQUAL:
|
|
294
|
-
this.categoryLogicalOperator = LogicalFilterOperator.NOT_EQUAL;
|
|
295
|
-
break;
|
|
296
|
-
case LogicalFilterOperator.NOT_EQUAL:
|
|
297
|
-
this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;
|
|
298
|
-
break;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
getFilterChipLabel(value) {
|
|
302
|
-
var _a, _b, _c;
|
|
303
|
-
if (value.id === this.ID_CUSTOM_FILTER_VALUE) {
|
|
304
|
-
return value.value;
|
|
305
|
-
}
|
|
306
|
-
const operatorString = value.operator === LogicalFilterOperator.EQUAL ? '=' : '!=';
|
|
307
|
-
const label = (_c = (_b = (_a = this.categories[value.id]) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : this.nonSelectableCategories[value.id]) !== null && _c !== void 0 ? _c : value.id;
|
|
308
|
-
return `${label} ${operatorString} ${value.value}`;
|
|
309
|
-
}
|
|
310
|
-
componentDidRender() {
|
|
311
|
-
const newOffsetX = this.calculateDropdownX();
|
|
312
|
-
const newOffsetY = this.calculateDropdownY();
|
|
313
|
-
const newOffsetXRem = convertToRemString(newOffsetX);
|
|
314
|
-
const newOffsetYRem = convertToRemString(newOffsetY);
|
|
315
|
-
const maxWidthDropdown = this.hostElement.getBoundingClientRect().width - newOffsetX;
|
|
316
|
-
const maxHeightDropdown = this.calculateDropdownHeight(newOffsetY);
|
|
317
|
-
this.maxWidthDropdown = convertToRemString(maxWidthDropdown);
|
|
318
|
-
this.maxHeightDropdown = convertToRemString(maxHeightDropdown);
|
|
319
|
-
// This will throw a warning
|
|
320
|
-
if (newOffsetXRem !== this.offsetDropdownX) {
|
|
321
|
-
this.offsetDropdownX = newOffsetXRem;
|
|
322
|
-
}
|
|
323
|
-
// This will throw a warning
|
|
324
|
-
if (newOffsetYRem !== this.offsetDropdownY) {
|
|
325
|
-
this.offsetDropdownY = newOffsetYRem;
|
|
326
|
-
}
|
|
327
|
-
if (this.isScrollStateDirty) {
|
|
328
|
-
if (!this.tmpDisableScrollIntoView) {
|
|
329
|
-
this.textInput.scrollIntoView();
|
|
330
|
-
}
|
|
331
|
-
this.isScrollStateDirty = false;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
render() {
|
|
335
|
-
var _a, _b, _c, _d, _e, _f;
|
|
336
|
-
return (h(Host, null, h("form", { ref: (el) => (this.formElement = el) }, h("div", { class: {
|
|
337
|
-
'form-control': true,
|
|
338
|
-
'input-container': true,
|
|
339
|
-
focus: this.hasFocus,
|
|
340
|
-
'no-icon': this.hideIcon,
|
|
341
|
-
} }, h("ix-icon", { class: { 'd-none': this.hideIcon }, name: this.icon, size: "16" }), h("div", { class: "token-container" }, h("ul", { class: "list-unstyled" }, this.filterTokens.map((value, index) => (h("li", { class: {
|
|
342
|
-
animate__animated: true,
|
|
343
|
-
animate__fadein: true,
|
|
344
|
-
} }, h("ix-filter-chip", { onCloseClick: () => this.removeToken(index) }, this.getFilterChipLabel(value))))), this.categories === undefined ? ('') : (h("li", { class: {
|
|
345
|
-
'category-preview': true,
|
|
346
|
-
'd-none': !this.category,
|
|
347
|
-
} }, (_a = this.categories[this.category]) === null || _a === void 0 ? void 0 : _a.label)), h("input", { class: {
|
|
348
|
-
'text-input': true,
|
|
349
|
-
'hide-placeholder': this.category !== undefined,
|
|
350
|
-
}, ref: (el) => (this.textInput = el), type: "text", placeholder: this.placeholder, onFocus: () => this.openCategorySelection() }))), h("button", { class: {
|
|
351
|
-
btn: true,
|
|
352
|
-
'btn-invisible-secondary': true,
|
|
353
|
-
'btn-oval': true,
|
|
354
|
-
'btn-close': true,
|
|
355
|
-
'd-none': !this.filterTokens.length && !this.category,
|
|
356
|
-
}, onClick: () => this.resetFilter(), tabindex: "1" }, h("span", { class: "glyph glyph-error glyph-16" })))), h("div", { class: {
|
|
357
|
-
'category-selection-container': true,
|
|
358
|
-
'd-none': !this.showCategorySelection && this.category === undefined,
|
|
359
|
-
}, style: {
|
|
360
|
-
left: this.offsetDropdownX,
|
|
361
|
-
top: this.offsetDropdownY,
|
|
362
|
-
'max-width': this.maxWidthDropdown,
|
|
363
|
-
'max-height': this.maxHeightDropdown,
|
|
364
|
-
} }, h("div", { class: {
|
|
365
|
-
'd-none': !this.showCategorySelection || this.category !== undefined,
|
|
366
|
-
} }, h("div", { class: {
|
|
367
|
-
'category-item-header': true,
|
|
368
|
-
'd-none': this.getCategoryLables().filter((value) => this.filterByInput(value)).length === 0,
|
|
369
|
-
} }, this.labelCategories), (_b = this.getCategoryIds()) === null || _b === void 0 ? void 0 :
|
|
370
|
-
_b.filter((id) => this.filterByInput(this.categories[id].label)).filter((id) => this.filterMultiples(id)).map((id) => {
|
|
371
|
-
var _a;
|
|
372
|
-
return (h("div", { "data-id": id, title: id, class: "category-item category-item-id", onClick: () => this.selectCategory(id), tabindex: "0" }, (_a = this.categories[id]) === null || _a === void 0 ? void 0 : _a.label));
|
|
373
|
-
})), h("div", { class: {
|
|
374
|
-
'd-none': this.category === undefined,
|
|
375
|
-
} }, h("button", { class: "btn btn-invisible-secondary btn-icon", onClick: () => this.toggleCategoryOperator(), tabindex: "-1" }, this.categoryLogicalOperator === LogicalFilterOperator.NOT_EQUAL
|
|
376
|
-
? '='
|
|
377
|
-
: '!='), this.categories === undefined ? ('') : (h("div", { class: "category-item-header" }, (_c = this.categories[this.category]) === null || _c === void 0 ? void 0 : _c.label)), this.categories === undefined
|
|
378
|
-
? ''
|
|
379
|
-
: (_d = this.categories[this.category]) === null || _d === void 0 ? void 0 : _d.options.filter((value) => this.filterByInput(value)).filter((value) => this.filterDuplicateTokens(value)).map((id) => (h("div", { "data-id": id, title: id, class: "category-item category-item-value", onClick: () => this.addToken(id, this.category), tabindex: "0" }, `${this.categoryLogicalOperator ===
|
|
380
|
-
LogicalFilterOperator.EQUAL
|
|
381
|
-
? '='
|
|
382
|
-
: '!='} ${id}`)))), h("div", { class: {
|
|
383
|
-
'category-item-header': true,
|
|
384
|
-
'd-none': this.category !== undefined ||
|
|
385
|
-
this.getCategoryIds().filter((value) => this.filterByInput(value)).length > 0,
|
|
386
|
-
} }, this.i18nPlainText), h("div", { class: {
|
|
387
|
-
'd-none': !((_e = this.suggestions) === null || _e === void 0 ? void 0 : _e.length) || this.category !== undefined,
|
|
388
|
-
} }, (_f = this.suggestions) === null || _f === void 0 ? void 0 : _f.filter((value) => this.filterByInput(value)).filter((value) => this.filterDuplicateTokens(value)).map((suggestion) => (h("div", { "data-id": suggestion, class: "category-item plain-text-suggestion", onClick: () => this.addToken(suggestion), tabindex: "0" }, suggestion)))))));
|
|
389
|
-
}
|
|
390
|
-
get hostElement() { return this; }
|
|
391
|
-
static get watchers() { return {
|
|
392
|
-
"filterState": ["watchFilterState"],
|
|
393
|
-
"showCategorySelection": ["watchShowCategorySelection"]
|
|
394
|
-
}; }
|
|
395
|
-
static get style() { return categoryFilterCss; }
|
|
396
|
-
}, [2, "ix-category-filter", {
|
|
397
|
-
"initialState": [16],
|
|
398
|
-
"filterState": [16],
|
|
399
|
-
"placeholder": [1],
|
|
400
|
-
"categories": [16],
|
|
401
|
-
"nonSelectableCategories": [16],
|
|
402
|
-
"suggestions": [16],
|
|
403
|
-
"icon": [1],
|
|
404
|
-
"hideIcon": [4, "hide-icon"],
|
|
405
|
-
"repeatCategories": [4, "repeat-categories"],
|
|
406
|
-
"tmpDisableScrollIntoView": [4, "tmp-disable-scroll-into-view"],
|
|
407
|
-
"labelCategories": [1, "label-categories"],
|
|
408
|
-
"i18nPlainText": [1, "i-1-8n-plain-text"],
|
|
409
|
-
"hasFocus": [32],
|
|
410
|
-
"showCategorySelection": [32],
|
|
411
|
-
"categoryLogicalOperator": [32],
|
|
412
|
-
"inputValue": [32],
|
|
413
|
-
"category": [32],
|
|
414
|
-
"filterTokens": [32],
|
|
415
|
-
"offsetDropdownX": [32],
|
|
416
|
-
"offsetDropdownY": [32],
|
|
417
|
-
"maxHeightDropdown": [32],
|
|
418
|
-
"maxWidthDropdown": [32]
|
|
419
|
-
}, [[9, "resize", "setDropdownOffset"]]]);
|
|
420
|
-
function defineCustomElement$1() {
|
|
421
|
-
if (typeof customElements === "undefined") {
|
|
422
|
-
return;
|
|
423
|
-
}
|
|
424
|
-
const components = ["ix-category-filter", "ix-filter-chip", "ix-icon"];
|
|
425
|
-
components.forEach(tagName => { switch (tagName) {
|
|
426
|
-
case "ix-category-filter":
|
|
427
|
-
if (!customElements.get(tagName)) {
|
|
428
|
-
customElements.define(tagName, CategoryFilter);
|
|
429
|
-
}
|
|
430
|
-
break;
|
|
431
|
-
case "ix-filter-chip":
|
|
432
|
-
if (!customElements.get(tagName)) {
|
|
433
|
-
defineCustomElement$3();
|
|
434
|
-
}
|
|
435
|
-
break;
|
|
436
|
-
case "ix-icon":
|
|
437
|
-
if (!customElements.get(tagName)) {
|
|
438
|
-
defineCustomElement$2();
|
|
439
|
-
}
|
|
440
|
-
break;
|
|
441
|
-
} });
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
const IxCategoryFilter = CategoryFilter;
|
|
445
|
-
const defineCustomElement = defineCustomElement$1;
|
|
446
|
-
|
|
447
|
-
export { IxCategoryFilter, defineCustomElement };
|