@siemens/ix 1.1.0-beta.0 → 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,178 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { U as UploadFileState } from './upload-file-state.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './button.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './spinner.js';
|
|
5
|
-
|
|
6
|
-
const uploadCss = ".sc-ix-upload-h{display:block;min-height:4rem;height:4rem}.sc-ix-upload-h .file-upload-area.sc-ix-upload{display:flex;flex-direction:row;align-items:center;justify-content:space-between;overflow:hidden;height:100%;width:100%;padding:1rem;border:1px dashed var(--theme-upload--border-color);border-radius:var(--theme-upload--border-radius);color:var(--theme-upload-text--color)}.sc-ix-upload-h .file-upload-area.multiline.sc-ix-upload{max-height:unset;height:auto}.sc-ix-upload-h .file-upload-area.multiline.sc-ix-upload .glyph.sc-ix-upload{align-self:flex-start;-webkit-margin-before:3px;margin-block-start:3px}.sc-ix-upload-h .file-upload-area.multiline.sc-ix-upload>div.sc-ix-upload{align-self:flex-start}.sc-ix-upload-h .file-upload-area.sc-ix-upload:not(.multiline) .state.sc-ix-upload,.sc-ix-upload-h .file-upload-area.sc-ix-upload:not(.multiline) .upload-text.sc-ix-upload{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-ix-upload-h .file-upload-area.file-over.sc-ix-upload{border-color:var(--theme-upload--border-color--dragover);border-style:solid}.sc-ix-upload-h .file-upload-area.checking.sc-ix-upload{color:var(--theme-upload-text--color--checking);border-style:solid}.sc-ix-upload-h .file-upload-area.disabled.sc-ix-upload{border-style:solid;color:var(--theme-upload-text--color--disabled)}.sc-ix-upload-h .file-upload-area.sc-ix-upload ix-button.sc-ix-upload{-webkit-margin-start:1rem;margin-inline-start:1rem}.sc-ix-upload-h .file-upload-area.sc-ix-upload .upload-browser.sc-ix-upload{opacity:0;overflow:hidden;position:absolute;z-index:-1}.sc-ix-upload-h .file-upload-area.sc-ix-upload .loader.sc-ix-upload{margin:2.187rem auto;font-size:0.937rem;width:1rem;height:1rem;border-radius:50%;position:relative;text-indent:-9999em;animation:optimise-loading 1.1s infinite ease;transform:translateZ(0)}.sc-ix-upload-h .file-upload-area.sc-ix-upload .upload-filename.sc-ix-upload{margin-bottom:1rem}.sc-ix-upload-h .file-upload-area.sc-ix-upload .state.sc-ix-upload{display:flex;align-items:center}.sc-ix-upload-h .file-upload-area.sc-ix-upload .state.sc-ix-upload>ix-spinner.sc-ix-upload{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;height:1.5rem;width:1.5rem}.sc-ix-upload-h .file-upload-area.sc-ix-upload .state.sc-ix-upload>i.sc-ix-upload{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.sc-ix-upload-h .file-upload-area.sc-ix-upload .state.sc-ix-upload>i.glyph-error.sc-ix-upload{color:var(--theme-color-alarm)}.sc-ix-upload-h .file-upload-area.sc-ix-upload .state.sc-ix-upload>i.glyph-success.sc-ix-upload{color:var(--theme-color-success)}";
|
|
7
|
-
|
|
8
|
-
const Upload = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.filesChanged = createEvent(this, "filesChanged", 7);
|
|
13
|
-
/**
|
|
14
|
-
* If multiple is true the user can drop or select multiple files
|
|
15
|
-
*/
|
|
16
|
-
this.multiple = false;
|
|
17
|
-
/**
|
|
18
|
-
* Whether the text should wrap to more than one line
|
|
19
|
-
*/
|
|
20
|
-
this.multiline = false;
|
|
21
|
-
/**
|
|
22
|
-
* Disable all input events
|
|
23
|
-
*/
|
|
24
|
-
this.disabled = false;
|
|
25
|
-
/**
|
|
26
|
-
* After a file is uploaded you can set the upload component to a defined state
|
|
27
|
-
*/
|
|
28
|
-
this.state = UploadFileState.SELECT_FILE;
|
|
29
|
-
/**
|
|
30
|
-
* Will be used by state = UploadFileState.SELECT_FILE
|
|
31
|
-
*/
|
|
32
|
-
this.selectFileText = '+ Drag files here or…';
|
|
33
|
-
/**
|
|
34
|
-
* Will be used by state = UploadFileState.LOADING
|
|
35
|
-
*/
|
|
36
|
-
this.loadingText = 'Checking files…';
|
|
37
|
-
/**
|
|
38
|
-
* Will be used by state = UploadFileState.UPLOAD_FAILED
|
|
39
|
-
*/
|
|
40
|
-
this.uploadFailedText = 'Upload failed. Please try again.';
|
|
41
|
-
/**
|
|
42
|
-
* Will be used by state = UploadFileState.UPLOAD_SUCCESSED
|
|
43
|
-
*/
|
|
44
|
-
this.uploadSuccessText = 'Upload successful';
|
|
45
|
-
/**
|
|
46
|
-
* Label for upload file button
|
|
47
|
-
*/
|
|
48
|
-
this.i18nUploadFile = 'Upload file…';
|
|
49
|
-
/**
|
|
50
|
-
* Text for disabled state
|
|
51
|
-
*/
|
|
52
|
-
this.i18nUploadDisabled = 'File upload currently not possible.';
|
|
53
|
-
this.isFileOver = false;
|
|
54
|
-
}
|
|
55
|
-
get inputElement() {
|
|
56
|
-
return this.hostElement.querySelector('#upload-browser');
|
|
57
|
-
}
|
|
58
|
-
fileDropped(evt) {
|
|
59
|
-
evt.preventDefault();
|
|
60
|
-
const file = evt.dataTransfer.files;
|
|
61
|
-
this.isFileOver = false;
|
|
62
|
-
this.filesToUpload = this.convertToFileArray(file);
|
|
63
|
-
this.filesChanged.emit(this.filesToUpload);
|
|
64
|
-
}
|
|
65
|
-
fileOver(event) {
|
|
66
|
-
event.preventDefault();
|
|
67
|
-
event.dataTransfer.dropEffect = 'move';
|
|
68
|
-
if (!this.multiple && event.dataTransfer.items.length > 1) {
|
|
69
|
-
event.preventDefault();
|
|
70
|
-
event.stopPropagation();
|
|
71
|
-
event.dataTransfer.effectAllowed = 'none';
|
|
72
|
-
event.dataTransfer.dropEffect = 'none';
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
this.isFileOver = true;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
fileLeave() {
|
|
79
|
-
this.isFileOver = false;
|
|
80
|
-
}
|
|
81
|
-
fileChangeEvent(event) {
|
|
82
|
-
this.filesToUpload = this.convertToFileArray(event.target.files);
|
|
83
|
-
this.filesChanged.emit(this.filesToUpload);
|
|
84
|
-
// Workaround for bug in native input element, that prevents the user from uploading
|
|
85
|
-
// a file with the same name as the most recent one, but with changed content.
|
|
86
|
-
this.inputElement.type = '';
|
|
87
|
-
this.inputElement.type = 'file';
|
|
88
|
-
}
|
|
89
|
-
convertToFileArray(filesFromEvent) {
|
|
90
|
-
let files = [];
|
|
91
|
-
if (filesFromEvent instanceof FileList) {
|
|
92
|
-
files = Array.from(filesFromEvent);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
files = [filesFromEvent];
|
|
96
|
-
}
|
|
97
|
-
return files;
|
|
98
|
-
}
|
|
99
|
-
renderUploadState() {
|
|
100
|
-
if (this.disabled) {
|
|
101
|
-
return (h("span", { class: "state" }, h("span", { class: "upload-text" }, this.i18nUploadDisabled)));
|
|
102
|
-
}
|
|
103
|
-
switch (this.state) {
|
|
104
|
-
case UploadFileState.SELECT_FILE:
|
|
105
|
-
return (h("span", { class: "state" }, h("span", { class: "upload-text" }, this.selectFileText)));
|
|
106
|
-
case UploadFileState.LOADING:
|
|
107
|
-
return (h("span", { class: "state" }, h("ix-spinner", { variant: "primary" }), h("span", { class: "upload-text" }, this.loadingText)));
|
|
108
|
-
case UploadFileState.UPLOAD_FAILED:
|
|
109
|
-
return (h("span", { class: "state" }, h("i", { class: "glyph glyph-error" }), h("span", { class: "upload-text" }, this.uploadFailedText)));
|
|
110
|
-
case UploadFileState.UPLOAD_SUCCESSED:
|
|
111
|
-
return (h("span", { class: "state" }, h("i", { class: "glyph glyph-success" }), h("span", { class: "upload-text" }, this.uploadSuccessText)));
|
|
112
|
-
default:
|
|
113
|
-
return '';
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Set files
|
|
118
|
-
* @param obj
|
|
119
|
-
*/
|
|
120
|
-
async setFilesToUpload(obj) {
|
|
121
|
-
this.filesToUpload = obj;
|
|
122
|
-
}
|
|
123
|
-
render() {
|
|
124
|
-
return (h(Host, null, h("div", { class: {
|
|
125
|
-
'file-upload-area': true,
|
|
126
|
-
'file-over': this.isFileOver,
|
|
127
|
-
checking: this.state === UploadFileState.LOADING,
|
|
128
|
-
disabled: this.disabled,
|
|
129
|
-
multiline: this.multiline,
|
|
130
|
-
}, onDrop: (e) => this.fileDropped(e), onDragOver: (e) => this.fileOver(e), onDragLeave: () => this.fileLeave(), draggable: !this.disabled }, this.renderUploadState(), h("div", null, h("input", { multiple: this.multiple, type: "file", class: "upload-browser", id: "upload-browser", onChange: (e) => {
|
|
131
|
-
this.fileChangeEvent(e);
|
|
132
|
-
}, accept: this.accept }), h("ix-button", { tabindex: "-1", outline: true, onClick: () => this.inputElement.click(), disabled: this.disabled || this.state === UploadFileState.LOADING }, this.i18nUploadFile)))));
|
|
133
|
-
}
|
|
134
|
-
get hostElement() { return this; }
|
|
135
|
-
static get style() { return uploadCss; }
|
|
136
|
-
}, [2, "ix-upload", {
|
|
137
|
-
"accept": [1],
|
|
138
|
-
"multiple": [4],
|
|
139
|
-
"multiline": [4],
|
|
140
|
-
"disabled": [4],
|
|
141
|
-
"state": [1],
|
|
142
|
-
"selectFileText": [1, "select-file-text"],
|
|
143
|
-
"loadingText": [1, "loading-text"],
|
|
144
|
-
"uploadFailedText": [1, "upload-failed-text"],
|
|
145
|
-
"uploadSuccessText": [1, "upload-success-text"],
|
|
146
|
-
"i18nUploadFile": [1, "i-1-8n-upload-file"],
|
|
147
|
-
"i18nUploadDisabled": [1, "i-1-8n-upload-disabled"],
|
|
148
|
-
"isFileOver": [32],
|
|
149
|
-
"setFilesToUpload": [64]
|
|
150
|
-
}]);
|
|
151
|
-
function defineCustomElement$1() {
|
|
152
|
-
if (typeof customElements === "undefined") {
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
const components = ["ix-upload", "ix-button", "ix-spinner"];
|
|
156
|
-
components.forEach(tagName => { switch (tagName) {
|
|
157
|
-
case "ix-upload":
|
|
158
|
-
if (!customElements.get(tagName)) {
|
|
159
|
-
customElements.define(tagName, Upload);
|
|
160
|
-
}
|
|
161
|
-
break;
|
|
162
|
-
case "ix-button":
|
|
163
|
-
if (!customElements.get(tagName)) {
|
|
164
|
-
defineCustomElement$3();
|
|
165
|
-
}
|
|
166
|
-
break;
|
|
167
|
-
case "ix-spinner":
|
|
168
|
-
if (!customElements.get(tagName)) {
|
|
169
|
-
defineCustomElement$2();
|
|
170
|
-
}
|
|
171
|
-
break;
|
|
172
|
-
} });
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const IxUpload = Upload;
|
|
176
|
-
const defineCustomElement = defineCustomElement$1;
|
|
177
|
-
|
|
178
|
-
export { IxUpload, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface IxValidationTooltip extends Components.IxValidationTooltip, HTMLElement {}
|
|
4
|
-
export const IxValidationTooltip: {
|
|
5
|
-
prototype: IxValidationTooltip;
|
|
6
|
-
new (): IxValidationTooltip;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as createPopper } from './popper.js';
|
|
3
|
-
|
|
4
|
-
const validationTooltipCss = ".text-xs.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default.sc-ix-validation-tooltip{-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)}.text-default-single.sc-ix-validation-tooltip{-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)}.text-default-title.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl.sc-ix-validation-tooltip{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a.sc-ix-validation-tooltip{color:var(--theme-color-primary)}.sc-ix-validation-tooltip-h{display:block}.sc-ix-validation-tooltip-h .validation-tooltip.sc-ix-validation-tooltip{background-color:var(--theme-tootlip--background);color:var(--theme-tooltip--color);padding:5px 10px;border-radius:4px;font-size:13px;border:1px solid var(--theme-tooltip--border-color);box-shadow:0 0 2px 0 rgba(0, 0, 40, 0.1), 0 4px 8px 0 rgba(0, 0, 40, 0.1), 0 12px 18px 0 rgba(0, 0, 40, 0.1)}.sc-ix-validation-tooltip-h .validation-tooltip.sc-ix-validation-tooltip #arrow.sc-ix-validation-tooltip,.sc-ix-validation-tooltip-h .validation-tooltip.sc-ix-validation-tooltip #arrow.sc-ix-validation-tooltip::before{position:absolute;width:8px;height:8px;background:inherit}.sc-ix-validation-tooltip-h .validation-tooltip.sc-ix-validation-tooltip #arrow.sc-ix-validation-tooltip{visibility:hidden}.sc-ix-validation-tooltip-h .validation-tooltip.sc-ix-validation-tooltip #arrow.sc-ix-validation-tooltip::before{visibility:visible;content:\"\";transform:rotate(45deg);background-color:var(--theme-tootlip--background)}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=top].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip{bottom:-5px}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=top].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip::before{border-right:1px solid var(--theme-tooltip--border-color);border-bottom:1px solid var(--theme-tooltip--border-color)}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=bottom].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip{top:-5px}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=bottom].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip::before{border-left:1px solid var(--theme-tooltip--border-color);border-top:1px solid var(--theme-tooltip--border-color)}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=left].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip{right:-5px}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=left].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip::before{border-right:1px solid var(--theme-tooltip--border-color);border-top:1px solid var(--theme-tooltip--border-color)}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=right].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip{left:-5px}.sc-ix-validation-tooltip-h .validation-tooltip[data-popper-placement^=right].sc-ix-validation-tooltip>#arrow.sc-ix-validation-tooltip::before{border-left:1px solid var(--theme-tooltip--border-color);border-bottom:1px solid var(--theme-tooltip--border-color)}";
|
|
5
|
-
|
|
6
|
-
const ValidationTooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
/**
|
|
11
|
-
* Placement of the tooltip
|
|
12
|
-
*/
|
|
13
|
-
this.placement = 'top';
|
|
14
|
-
this.isInputValid = true;
|
|
15
|
-
this.onSubmitBind = this.onSubmit.bind(this);
|
|
16
|
-
this.onInputFocusBind = this.onInputFocus.bind(this);
|
|
17
|
-
}
|
|
18
|
-
get arrow() {
|
|
19
|
-
return this.hostElement.querySelector('#arrow');
|
|
20
|
-
}
|
|
21
|
-
get inputElement() {
|
|
22
|
-
return this.hostElement.querySelector('input');
|
|
23
|
-
}
|
|
24
|
-
get formElement() {
|
|
25
|
-
return this.inputElement.form;
|
|
26
|
-
}
|
|
27
|
-
get tooltipElement() {
|
|
28
|
-
return this.hostElement.querySelector('.validation-tooltip');
|
|
29
|
-
}
|
|
30
|
-
componentDidLoad() {
|
|
31
|
-
if (!this.inputElement) {
|
|
32
|
-
throw Error('Validation tooltip is only working with an direct input child.');
|
|
33
|
-
}
|
|
34
|
-
if (!this.formElement) {
|
|
35
|
-
throw Error('Validation tooltip is only working with an form element.');
|
|
36
|
-
}
|
|
37
|
-
this.formElement.addEventListener('submit', this.onSubmitBind);
|
|
38
|
-
this.inputElement.addEventListener('focus', this.onInputFocusBind);
|
|
39
|
-
this.observer = new MutationObserver(() => {
|
|
40
|
-
if (this.inputElement.classList.contains('is-invalid')) {
|
|
41
|
-
this.isInputValid = false;
|
|
42
|
-
this.validationChanged();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
this.observer.observe(this.inputElement, {
|
|
46
|
-
childList: false,
|
|
47
|
-
subtree: false,
|
|
48
|
-
attributes: true,
|
|
49
|
-
attributeFilter: ['class'],
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
onInputFocus() {
|
|
53
|
-
this.isInputValid = true;
|
|
54
|
-
}
|
|
55
|
-
onSubmit() {
|
|
56
|
-
if (this.formElement.classList.contains('needs-validation')) {
|
|
57
|
-
this.isInputValid = this.inputElement.validity.valid;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
disconnectedCallback() {
|
|
61
|
-
var _a, _b;
|
|
62
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
63
|
-
(_b = this.popper) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
64
|
-
this.formElement.removeEventListener('submit', this.onSubmitBind);
|
|
65
|
-
this.inputElement.removeEventListener('focus', this.onInputFocusBind);
|
|
66
|
-
}
|
|
67
|
-
validationChanged() {
|
|
68
|
-
if (!this.isInputValid) {
|
|
69
|
-
this.tooltipElement.style.display = 'block';
|
|
70
|
-
this.popper = createPopper(this.inputElement, this.tooltipElement, {
|
|
71
|
-
placement: this.placement,
|
|
72
|
-
strategy: 'absolute',
|
|
73
|
-
modifiers: [
|
|
74
|
-
{
|
|
75
|
-
name: 'offset',
|
|
76
|
-
options: {
|
|
77
|
-
offset: [0, 8],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'arrow',
|
|
82
|
-
options: {
|
|
83
|
-
element: this.arrow,
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
this.tooltipElement.style.display = 'none';
|
|
91
|
-
this.popper.destroy();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
render() {
|
|
95
|
-
return (h(Host, null, h("slot", null), h("div", { role: "tooltip", style: { display: 'none' }, class: "validation-tooltip text-default" }, this.message, h("slot", { name: "tooltip-message" }), h("div", { id: "arrow", "data-popper-arrow": true }))));
|
|
96
|
-
}
|
|
97
|
-
get hostElement() { return this; }
|
|
98
|
-
static get watchers() { return {
|
|
99
|
-
"isInputValid": ["validationChanged"]
|
|
100
|
-
}; }
|
|
101
|
-
static get style() { return validationTooltipCss; }
|
|
102
|
-
}, [6, "ix-validation-tooltip", {
|
|
103
|
-
"message": [1],
|
|
104
|
-
"placement": [1],
|
|
105
|
-
"isInputValid": [32]
|
|
106
|
-
}]);
|
|
107
|
-
function defineCustomElement$1() {
|
|
108
|
-
if (typeof customElements === "undefined") {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
const components = ["ix-validation-tooltip"];
|
|
112
|
-
components.forEach(tagName => { switch (tagName) {
|
|
113
|
-
case "ix-validation-tooltip":
|
|
114
|
-
if (!customElements.get(tagName)) {
|
|
115
|
-
customElements.define(tagName, ValidationTooltip);
|
|
116
|
-
}
|
|
117
|
-
break;
|
|
118
|
-
} });
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const IxValidationTooltip = ValidationTooltip;
|
|
122
|
-
const defineCustomElement = defineCustomElement$1;
|
|
123
|
-
|
|
124
|
-
export { IxValidationTooltip, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface IxWorkflowStep extends Components.IxWorkflowStep, HTMLElement {}
|
|
4
|
-
export const IxWorkflowStep: {
|
|
5
|
-
prototype: IxWorkflowStep;
|
|
6
|
-
new (): IxWorkflowStep;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
|
3
|
-
|
|
4
|
-
const workflowStepCss = ".sc-ix-workflow-step-h .step.sc-ix-workflow-step{display:flex;flex-direction:column;align-items:center;background-color:var(--theme-workflow-step--background);border-radius:var(--theme-workflow--border-radius);width:auto;padding:1.125rem 0 0.5rem 0;height:4rem;width:12.75rem}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step{display:flex;width:100%;align-items:center;justify-content:center}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.sc-ix-workflow-step{width:100%;height:0.125rem;background-color:var(--theme-workflow-step-icon-default--color)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.first.sc-ix-workflow-step,.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.last.sc-ix-workflow-step{width:50%;margin:0 0 0 auto}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.last.sc-ix-workflow-step{margin:0 auto 0 0}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.selected.sc-ix-workflow-step{background-color:var(--theme-workflow-step-icon-default--color--selected)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.done.sc-ix-workflow-step{background-color:var(--theme-workflow-step-icon-done--color)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.done.selected.sc-ix-workflow-step{background-color:var(--theme-workflow-step-icon-done--color--selected)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.warning.sc-ix-workflow-step{background-color:var(--theme-color-warning)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.success.sc-ix-workflow-step{background-color:var(--theme-color-success)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.error.sc-ix-workflow-step{background-color:var(--theme-color-alarm)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .iconWrapper.sc-ix-workflow-step{display:flex;align-items:center;justify-content:center;position:absolute}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .iconWrapper.sc-ix-workflow-step .absolute.sc-ix-workflow-step{position:absolute}.sc-ix-workflow-step-h .step.sc-ix-workflow-step .text.sc-ix-workflow-step{margin-top:1rem;width:auto;padding:0 0.5rem}.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step{flex-direction:row;padding:0}.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step .wrapper.sc-ix-workflow-step{width:auto;padding-left:1.125rem;height:4rem}.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.sc-ix-workflow-step{width:0.125rem;height:100%}.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.first.sc-ix-workflow-step,.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.last.sc-ix-workflow-step{height:50%;margin:auto 0 0 0}.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step .wrapper.sc-ix-workflow-step .line.last.sc-ix-workflow-step{margin:0 0 auto 0}.sc-ix-workflow-step-h .step.vertical.sc-ix-workflow-step .text.sc-ix-workflow-step{margin-top:0;margin-left:1rem;padding:0}.sc-ix-workflow-step-h .step.sc-ix-workflow-step:hover{background-color:var(--theme-workflow-step--background--hover)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step:active{background-color:var(--theme-workflow-step--background--active)}.sc-ix-workflow-step-h .step.sc-ix-workflow-step:focus-visible{outline:1px solid var(--focus--border-color);border-radius:0}.sc-ix-workflow-step-h .step.selected.sc-ix-workflow-step{background-color:var(--theme-workflow-step--background--selected)}.sc-ix-workflow-step-h .step.disabled.sc-ix-workflow-step{background-color:var(--theme-workflow-step--background--disabled)}.sc-ix-workflow-step-h .step.disabled.sc-ix-workflow-step .line.sc-ix-workflow-step{background-color:var(--theme-workflow-step-icon-default--color--disabled) !important}.sc-ix-workflow-step-h .step.disabled.sc-ix-workflow-step .text.sc-ix-workflow-step{color:var(--theme-workflow-step--color--disabled)}";
|
|
5
|
-
|
|
6
|
-
const WorkflowStep = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
/**
|
|
11
|
-
* Select orientation
|
|
12
|
-
*/
|
|
13
|
-
this.vertical = false;
|
|
14
|
-
/**
|
|
15
|
-
* Set disabled
|
|
16
|
-
*/
|
|
17
|
-
this.disabled = false;
|
|
18
|
-
/**
|
|
19
|
-
* Set status
|
|
20
|
-
*/
|
|
21
|
-
this.status = 'open';
|
|
22
|
-
/**
|
|
23
|
-
* Activate navigation click
|
|
24
|
-
*/
|
|
25
|
-
this.clickable = false;
|
|
26
|
-
/**
|
|
27
|
-
* Set selected
|
|
28
|
-
*/
|
|
29
|
-
this.selected = false;
|
|
30
|
-
/**
|
|
31
|
-
* Activate navigation click
|
|
32
|
-
*/
|
|
33
|
-
this.position = 'undefined';
|
|
34
|
-
this.iconName = 'circle';
|
|
35
|
-
this.iconColor = 'workflow-step-icon-default--color';
|
|
36
|
-
}
|
|
37
|
-
select() {
|
|
38
|
-
if (!this.clickable)
|
|
39
|
-
return;
|
|
40
|
-
if (this.disabled)
|
|
41
|
-
return;
|
|
42
|
-
this.selected = true;
|
|
43
|
-
this.selectedHandler();
|
|
44
|
-
}
|
|
45
|
-
selectedHandler() {
|
|
46
|
-
const selectedStyle = this.selected ? '--selected' : '';
|
|
47
|
-
if (this.status === 'open') {
|
|
48
|
-
this.iconName = this.selected ? 'circle-dot' : 'circle';
|
|
49
|
-
this.iconColor = `workflow-step-icon-default--color${selectedStyle}`;
|
|
50
|
-
}
|
|
51
|
-
if (this.status === 'done' && !this.disabled) {
|
|
52
|
-
this.iconColor = `workflow-step-icon-done--color${selectedStyle}`;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
watchPropHandler() {
|
|
56
|
-
switch (this.status) {
|
|
57
|
-
case 'open':
|
|
58
|
-
this.iconName = 'circle';
|
|
59
|
-
this.iconColor = 'workflow-step-icon-default--color';
|
|
60
|
-
break;
|
|
61
|
-
case 'success':
|
|
62
|
-
this.iconName = 'success';
|
|
63
|
-
this.iconColor = 'color-success';
|
|
64
|
-
break;
|
|
65
|
-
case 'done':
|
|
66
|
-
this.iconName = 'success';
|
|
67
|
-
this.iconColor = 'workflow-step-icon-done--color';
|
|
68
|
-
break;
|
|
69
|
-
case 'warning':
|
|
70
|
-
this.iconName = 'warning';
|
|
71
|
-
this.iconColor = 'color-warning';
|
|
72
|
-
break;
|
|
73
|
-
case 'error':
|
|
74
|
-
this.iconName = 'error';
|
|
75
|
-
this.iconColor = 'color-alarm';
|
|
76
|
-
break;
|
|
77
|
-
default:
|
|
78
|
-
this.iconName = 'circle';
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
if (this.disabled) {
|
|
82
|
-
this.iconColor = 'workflow-step-icon-success--color--disabled';
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
componentDidLoad() {
|
|
86
|
-
this.watchPropHandler();
|
|
87
|
-
this.selectedHandler();
|
|
88
|
-
this.customIconSlot = !!this.hostElement.querySelector('[slot="custom-icon"]');
|
|
89
|
-
}
|
|
90
|
-
render() {
|
|
91
|
-
const icons = !this.customIconSlot ? (h(Fragment, null, h("ix-icon", { color: "color-1", name: this.iconName === 'warning' ? 'triangle-filled' : 'circle-filled', class: "absolute", size: "24" }), h("ix-icon", { color: this.iconColor, name: this.iconName, class: "absolute", size: "24" }))) : ('');
|
|
92
|
-
return (h(Host, null, h("div", { tabIndex: 0, onClick: () => this.select(), class: {
|
|
93
|
-
step: true,
|
|
94
|
-
selected: this.selected,
|
|
95
|
-
vertical: this.vertical,
|
|
96
|
-
disabled: this.disabled,
|
|
97
|
-
} }, h("div", { class: "wrapper" }, h("div", { class: {
|
|
98
|
-
line: true,
|
|
99
|
-
selected: this.selected,
|
|
100
|
-
[this.status]: true,
|
|
101
|
-
[this.position]: true,
|
|
102
|
-
} }), h("div", { class: "iconWrapper" }, icons, h("slot", { name: "custom-icon" }))), h("div", { class: "text" }, h("slot", null)))));
|
|
103
|
-
}
|
|
104
|
-
get hostElement() { return this; }
|
|
105
|
-
static get watchers() { return {
|
|
106
|
-
"selected": ["selectedHandler"],
|
|
107
|
-
"status": ["watchPropHandler"]
|
|
108
|
-
}; }
|
|
109
|
-
static get style() { return workflowStepCss; }
|
|
110
|
-
}, [6, "ix-workflow-step", {
|
|
111
|
-
"vertical": [4],
|
|
112
|
-
"disabled": [4],
|
|
113
|
-
"status": [1],
|
|
114
|
-
"clickable": [4],
|
|
115
|
-
"selected": [1028],
|
|
116
|
-
"position": [1],
|
|
117
|
-
"iconName": [32],
|
|
118
|
-
"iconColor": [32]
|
|
119
|
-
}]);
|
|
120
|
-
function defineCustomElement$1() {
|
|
121
|
-
if (typeof customElements === "undefined") {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
const components = ["ix-workflow-step", "ix-icon"];
|
|
125
|
-
components.forEach(tagName => { switch (tagName) {
|
|
126
|
-
case "ix-workflow-step":
|
|
127
|
-
if (!customElements.get(tagName)) {
|
|
128
|
-
customElements.define(tagName, WorkflowStep);
|
|
129
|
-
}
|
|
130
|
-
break;
|
|
131
|
-
case "ix-icon":
|
|
132
|
-
if (!customElements.get(tagName)) {
|
|
133
|
-
defineCustomElement$2();
|
|
134
|
-
}
|
|
135
|
-
break;
|
|
136
|
-
} });
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const IxWorkflowStep = WorkflowStep;
|
|
140
|
-
const defineCustomElement = defineCustomElement$1;
|
|
141
|
-
|
|
142
|
-
export { IxWorkflowStep, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface IxWorkflowSteps extends Components.IxWorkflowSteps, HTMLElement {}
|
|
4
|
-
export const IxWorkflowSteps: {
|
|
5
|
-
prototype: IxWorkflowSteps;
|
|
6
|
-
new (): IxWorkflowSteps;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const workflowStepsCss = ".sc-ix-workflow-steps-h .steps.sc-ix-workflow-steps{display:flex}.sc-ix-workflow-steps-h .steps.vertical.sc-ix-workflow-steps{display:block}";
|
|
4
|
-
|
|
5
|
-
const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.stepSelected = createEvent(this, "stepSelected", 7);
|
|
10
|
-
/**
|
|
11
|
-
* Select orientation
|
|
12
|
-
*/
|
|
13
|
-
this.vertical = false;
|
|
14
|
-
/**
|
|
15
|
-
* Select linear mode
|
|
16
|
-
*/
|
|
17
|
-
this.linear = false;
|
|
18
|
-
/**
|
|
19
|
-
* Activate navigation click
|
|
20
|
-
*/
|
|
21
|
-
this.clickable = false;
|
|
22
|
-
/**
|
|
23
|
-
* Activate navigation click
|
|
24
|
-
*/
|
|
25
|
-
this.selectedIndex = 0;
|
|
26
|
-
}
|
|
27
|
-
getSteps() {
|
|
28
|
-
return Array.from(this.hostElement.querySelectorAll('ix-workflow-step'));
|
|
29
|
-
}
|
|
30
|
-
deselectAll() {
|
|
31
|
-
const steps = this.getSteps();
|
|
32
|
-
steps.forEach((element) => {
|
|
33
|
-
element.setAttribute('selected', 'false');
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
componentDidRender() {
|
|
37
|
-
const steps = this.getSteps();
|
|
38
|
-
steps.forEach((element, index) => {
|
|
39
|
-
element.setAttribute('vertical', this.vertical === true ? 'true' : 'false');
|
|
40
|
-
element.setAttribute('clickable', this.clickable === true ? 'true' : 'false');
|
|
41
|
-
element.setAttribute('selected', this.selectedIndex === index ? 'true' : 'false');
|
|
42
|
-
if (index === 0)
|
|
43
|
-
element.setAttribute('position', 'first');
|
|
44
|
-
if (index === steps.length - 1)
|
|
45
|
-
element.setAttribute('position', 'last');
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
componentWillRender() {
|
|
49
|
-
const steps = this.getSteps();
|
|
50
|
-
steps.forEach((element, index) => {
|
|
51
|
-
element.addEventListener('click', () => {
|
|
52
|
-
if (!this.clickable)
|
|
53
|
-
return;
|
|
54
|
-
const previousElement = steps[index - 1];
|
|
55
|
-
if (this.linear &&
|
|
56
|
-
previousElement &&
|
|
57
|
-
!['done', 'success'].includes(previousElement === null || previousElement === void 0 ? void 0 : previousElement.status)) {
|
|
58
|
-
return element.setAttribute('selected', 'false');
|
|
59
|
-
}
|
|
60
|
-
this.deselectAll();
|
|
61
|
-
element.setAttribute('selected', 'true');
|
|
62
|
-
this.stepSelected.emit(index);
|
|
63
|
-
});
|
|
64
|
-
// const isEnabled = element.getAttribute('first');
|
|
65
|
-
// if(isEnabled){
|
|
66
|
-
// }
|
|
67
|
-
// console.log(isEnabled)
|
|
68
|
-
// const isDisabled = element.getAttribute('disabled') !== null;
|
|
69
|
-
// if (!isDisabled) element.addEventListener('click', () => '');
|
|
70
|
-
//element.addEventListener('mousedown', event => this.clicked(element, index));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
render() {
|
|
74
|
-
return (h(Host, null, h("div", { class: { steps: true, vertical: this.vertical } }, h("slot", null))));
|
|
75
|
-
}
|
|
76
|
-
get hostElement() { return this; }
|
|
77
|
-
static get style() { return workflowStepsCss; }
|
|
78
|
-
}, [6, "ix-workflow-steps", {
|
|
79
|
-
"vertical": [4],
|
|
80
|
-
"linear": [4],
|
|
81
|
-
"clickable": [4],
|
|
82
|
-
"selectedIndex": [2, "selected-index"]
|
|
83
|
-
}]);
|
|
84
|
-
function defineCustomElement$1() {
|
|
85
|
-
if (typeof customElements === "undefined") {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const components = ["ix-workflow-steps"];
|
|
89
|
-
components.forEach(tagName => { switch (tagName) {
|
|
90
|
-
case "ix-workflow-steps":
|
|
91
|
-
if (!customElements.get(tagName)) {
|
|
92
|
-
customElements.define(tagName, WorkflowSteps);
|
|
93
|
-
}
|
|
94
|
-
break;
|
|
95
|
-
} });
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const IxWorkflowSteps = WorkflowSteps;
|
|
99
|
-
const defineCustomElement = defineCustomElement$1;
|
|
100
|
-
|
|
101
|
-
export { IxWorkflowSteps, defineCustomElement };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: MIT
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
class InputState {
|
|
10
|
-
constructor(token, category) {
|
|
11
|
-
this.token = token;
|
|
12
|
-
this.category = category;
|
|
13
|
-
}
|
|
14
|
-
hasCategory() {
|
|
15
|
-
return this.category !== undefined;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
21
|
-
*
|
|
22
|
-
* SPDX-License-Identifier: MIT
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
var LogicalFilterOperator;
|
|
28
|
-
(function (LogicalFilterOperator) {
|
|
29
|
-
LogicalFilterOperator["EQUAL"] = "Equal";
|
|
30
|
-
LogicalFilterOperator["NOT_EQUAL"] = "Not equal";
|
|
31
|
-
})(LogicalFilterOperator || (LogicalFilterOperator = {}));
|
|
32
|
-
|
|
33
|
-
export { InputState as I, LogicalFilterOperator as L };
|