@siemens/ix 1.1.0-beta.1 → 1.1.0-beta.3
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,124 +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
|
-
import { Component, Event, h, Host, Prop } from '@stencil/core';
|
|
10
|
-
export class TreeItem {
|
|
11
|
-
render() {
|
|
12
|
-
var _a, _b, _c;
|
|
13
|
-
return (h(Host, { class: {
|
|
14
|
-
selected: (_a = this.context) === null || _a === void 0 ? void 0 : _a.isSelected,
|
|
15
|
-
} },
|
|
16
|
-
h("div", { class: "icon-toggle-container", onClick: (e) => {
|
|
17
|
-
e.preventDefault();
|
|
18
|
-
this.toggle.emit();
|
|
19
|
-
} }, this.hasChildren ? (h("ix-icon", { name: "chevron-right", size: "16", class: {
|
|
20
|
-
['icon-toggle-down']: (_b = this.context) === null || _b === void 0 ? void 0 : _b.isExpanded,
|
|
21
|
-
}, color: `color-${((_c = this.context) === null || _c === void 0 ? void 0 : _c.isExpanded) ? 'primary' : 'std-text'}` })) : null),
|
|
22
|
-
h("div", { class: "tree-node-container", onClick: (e) => {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
this.itemClick.emit();
|
|
25
|
-
} },
|
|
26
|
-
this.text,
|
|
27
|
-
h("slot", null))));
|
|
28
|
-
}
|
|
29
|
-
static get is() { return "ix-tree-item"; }
|
|
30
|
-
static get encapsulation() { return "scoped"; }
|
|
31
|
-
static get originalStyleUrls() { return {
|
|
32
|
-
"$": ["tree-item.scss"]
|
|
33
|
-
}; }
|
|
34
|
-
static get styleUrls() { return {
|
|
35
|
-
"$": ["tree-item.css"]
|
|
36
|
-
}; }
|
|
37
|
-
static get properties() { return {
|
|
38
|
-
"text": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"mutable": false,
|
|
41
|
-
"complexType": {
|
|
42
|
-
"original": "string",
|
|
43
|
-
"resolved": "string",
|
|
44
|
-
"references": {}
|
|
45
|
-
},
|
|
46
|
-
"required": false,
|
|
47
|
-
"optional": false,
|
|
48
|
-
"docs": {
|
|
49
|
-
"tags": [],
|
|
50
|
-
"text": "Text"
|
|
51
|
-
},
|
|
52
|
-
"attribute": "text",
|
|
53
|
-
"reflect": false
|
|
54
|
-
},
|
|
55
|
-
"hasChildren": {
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"mutable": false,
|
|
58
|
-
"complexType": {
|
|
59
|
-
"original": "boolean",
|
|
60
|
-
"resolved": "boolean",
|
|
61
|
-
"references": {}
|
|
62
|
-
},
|
|
63
|
-
"required": false,
|
|
64
|
-
"optional": false,
|
|
65
|
-
"docs": {
|
|
66
|
-
"tags": [],
|
|
67
|
-
"text": "Has tree item children"
|
|
68
|
-
},
|
|
69
|
-
"attribute": "has-children",
|
|
70
|
-
"reflect": false
|
|
71
|
-
},
|
|
72
|
-
"context": {
|
|
73
|
-
"type": "unknown",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "TreeItemContext",
|
|
77
|
-
"resolved": "TreeItemContext",
|
|
78
|
-
"references": {
|
|
79
|
-
"TreeItemContext": {
|
|
80
|
-
"location": "import",
|
|
81
|
-
"path": "../tree/tree-model"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": "Context"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}; }
|
|
93
|
-
static get events() { return [{
|
|
94
|
-
"method": "toggle",
|
|
95
|
-
"name": "toggle",
|
|
96
|
-
"bubbles": true,
|
|
97
|
-
"cancelable": true,
|
|
98
|
-
"composed": true,
|
|
99
|
-
"docs": {
|
|
100
|
-
"tags": [],
|
|
101
|
-
"text": "Expand/Collapsed toggled"
|
|
102
|
-
},
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "void",
|
|
105
|
-
"resolved": "void",
|
|
106
|
-
"references": {}
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
"method": "itemClick",
|
|
110
|
-
"name": "itemClick",
|
|
111
|
-
"bubbles": true,
|
|
112
|
-
"cancelable": true,
|
|
113
|
-
"composed": true,
|
|
114
|
-
"docs": {
|
|
115
|
-
"tags": [],
|
|
116
|
-
"text": "Clicked"
|
|
117
|
-
},
|
|
118
|
-
"complexType": {
|
|
119
|
-
"original": "void",
|
|
120
|
-
"resolved": "void",
|
|
121
|
-
"references": {}
|
|
122
|
-
}
|
|
123
|
-
}]; }
|
|
124
|
-
}
|
|
@@ -1,15 +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
|
-
export var UploadFileState;
|
|
10
|
-
(function (UploadFileState) {
|
|
11
|
-
UploadFileState["SELECT_FILE"] = "SELECT_FILE";
|
|
12
|
-
UploadFileState["LOADING"] = "LOADING";
|
|
13
|
-
UploadFileState["UPLOAD_FAILED"] = "UPLOAD_FAILED";
|
|
14
|
-
UploadFileState["UPLOAD_SUCCESSED"] = "UPLOAD_SUCCESSED";
|
|
15
|
-
})(UploadFileState || (UploadFileState = {}));
|
|
@@ -1,120 +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
|
-
/*
|
|
10
|
-
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
11
|
-
*
|
|
12
|
-
* SPDX-License-Identifier: MIT
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
/* Dimensions */
|
|
18
|
-
/* Font sizes */
|
|
19
|
-
/* Line heights */
|
|
20
|
-
/* Animation timings */
|
|
21
|
-
/*
|
|
22
|
-
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
23
|
-
*
|
|
24
|
-
* SPDX-License-Identifier: MIT
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/
|
|
29
|
-
:host {
|
|
30
|
-
display: block;
|
|
31
|
-
min-height: 4rem;
|
|
32
|
-
height: 4rem;
|
|
33
|
-
}
|
|
34
|
-
:host .file-upload-area {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: space-between;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
height: 100%;
|
|
41
|
-
width: 100%;
|
|
42
|
-
padding: 1rem;
|
|
43
|
-
border: 1px dashed var(--theme-upload--border-color);
|
|
44
|
-
border-radius: var(--theme-upload--border-radius);
|
|
45
|
-
color: var(--theme-upload-text--color);
|
|
46
|
-
}
|
|
47
|
-
:host .file-upload-area.multiline {
|
|
48
|
-
max-height: unset;
|
|
49
|
-
height: auto;
|
|
50
|
-
}
|
|
51
|
-
:host .file-upload-area.multiline .glyph {
|
|
52
|
-
align-self: flex-start;
|
|
53
|
-
-webkit-margin-before: 3px;
|
|
54
|
-
margin-block-start: 3px;
|
|
55
|
-
}
|
|
56
|
-
:host .file-upload-area.multiline > div {
|
|
57
|
-
align-self: flex-start;
|
|
58
|
-
}
|
|
59
|
-
:host .file-upload-area:not(.multiline) .state,
|
|
60
|
-
:host .file-upload-area:not(.multiline) .upload-text {
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
text-overflow: ellipsis;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
}
|
|
65
|
-
:host .file-upload-area.file-over {
|
|
66
|
-
border-color: var(--theme-upload--border-color--dragover);
|
|
67
|
-
border-style: solid;
|
|
68
|
-
}
|
|
69
|
-
:host .file-upload-area.checking {
|
|
70
|
-
color: var(--theme-upload-text--color--checking);
|
|
71
|
-
border-style: solid;
|
|
72
|
-
}
|
|
73
|
-
:host .file-upload-area.disabled {
|
|
74
|
-
border-style: solid;
|
|
75
|
-
color: var(--theme-upload-text--color--disabled);
|
|
76
|
-
}
|
|
77
|
-
:host .file-upload-area ix-button {
|
|
78
|
-
-webkit-margin-start: 1rem;
|
|
79
|
-
margin-inline-start: 1rem;
|
|
80
|
-
}
|
|
81
|
-
:host .file-upload-area .upload-browser {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
overflow: hidden;
|
|
84
|
-
position: absolute;
|
|
85
|
-
z-index: -1;
|
|
86
|
-
}
|
|
87
|
-
:host .file-upload-area .loader {
|
|
88
|
-
margin: 2.187rem auto;
|
|
89
|
-
font-size: 0.937rem;
|
|
90
|
-
width: 1rem;
|
|
91
|
-
height: 1rem;
|
|
92
|
-
border-radius: 50%;
|
|
93
|
-
position: relative;
|
|
94
|
-
text-indent: -9999em;
|
|
95
|
-
animation: optimise-loading 1.1s infinite ease;
|
|
96
|
-
transform: translateZ(0);
|
|
97
|
-
}
|
|
98
|
-
:host .file-upload-area .upload-filename {
|
|
99
|
-
margin-bottom: 1rem;
|
|
100
|
-
}
|
|
101
|
-
:host .file-upload-area .state {
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
}
|
|
105
|
-
:host .file-upload-area .state > ix-spinner {
|
|
106
|
-
-webkit-margin-end: 0.5rem;
|
|
107
|
-
margin-inline-end: 0.5rem;
|
|
108
|
-
height: 1.5rem;
|
|
109
|
-
width: 1.5rem;
|
|
110
|
-
}
|
|
111
|
-
:host .file-upload-area .state > i {
|
|
112
|
-
-webkit-margin-end: 0.5rem;
|
|
113
|
-
margin-inline-end: 0.5rem;
|
|
114
|
-
}
|
|
115
|
-
:host .file-upload-area .state > i.glyph-error {
|
|
116
|
-
color: var(--theme-color-alarm);
|
|
117
|
-
}
|
|
118
|
-
:host .file-upload-area .state > i.glyph-success {
|
|
119
|
-
color: var(--theme-color-success);
|
|
120
|
-
}
|
|
@@ -1,413 +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
|
-
import { Component, Element, Event, h, Host, Method, Prop, State } from '@stencil/core';
|
|
10
|
-
import { UploadFileState } from './upload-file-state';
|
|
11
|
-
export class Upload {
|
|
12
|
-
constructor() {
|
|
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" },
|
|
102
|
-
h("span", { class: "upload-text" }, this.i18nUploadDisabled)));
|
|
103
|
-
}
|
|
104
|
-
switch (this.state) {
|
|
105
|
-
case UploadFileState.SELECT_FILE:
|
|
106
|
-
return (h("span", { class: "state" },
|
|
107
|
-
h("span", { class: "upload-text" }, this.selectFileText)));
|
|
108
|
-
case UploadFileState.LOADING:
|
|
109
|
-
return (h("span", { class: "state" },
|
|
110
|
-
h("ix-spinner", { variant: "primary" }),
|
|
111
|
-
h("span", { class: "upload-text" }, this.loadingText)));
|
|
112
|
-
case UploadFileState.UPLOAD_FAILED:
|
|
113
|
-
return (h("span", { class: "state" },
|
|
114
|
-
h("i", { class: "glyph glyph-error" }),
|
|
115
|
-
h("span", { class: "upload-text" }, this.uploadFailedText)));
|
|
116
|
-
case UploadFileState.UPLOAD_SUCCESSED:
|
|
117
|
-
return (h("span", { class: "state" },
|
|
118
|
-
h("i", { class: "glyph glyph-success" }),
|
|
119
|
-
h("span", { class: "upload-text" }, this.uploadSuccessText)));
|
|
120
|
-
default:
|
|
121
|
-
return '';
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Set files
|
|
126
|
-
* @param obj
|
|
127
|
-
*/
|
|
128
|
-
async setFilesToUpload(obj) {
|
|
129
|
-
this.filesToUpload = obj;
|
|
130
|
-
}
|
|
131
|
-
render() {
|
|
132
|
-
return (h(Host, null,
|
|
133
|
-
h("div", { class: {
|
|
134
|
-
'file-upload-area': true,
|
|
135
|
-
'file-over': this.isFileOver,
|
|
136
|
-
checking: this.state === UploadFileState.LOADING,
|
|
137
|
-
disabled: this.disabled,
|
|
138
|
-
multiline: this.multiline,
|
|
139
|
-
}, onDrop: (e) => this.fileDropped(e), onDragOver: (e) => this.fileOver(e), onDragLeave: () => this.fileLeave(), draggable: !this.disabled },
|
|
140
|
-
this.renderUploadState(),
|
|
141
|
-
h("div", null,
|
|
142
|
-
h("input", { multiple: this.multiple, type: "file", class: "upload-browser", id: "upload-browser", onChange: (e) => {
|
|
143
|
-
this.fileChangeEvent(e);
|
|
144
|
-
}, accept: this.accept }),
|
|
145
|
-
h("ix-button", { tabindex: "-1", outline: true, onClick: () => this.inputElement.click(), disabled: this.disabled || this.state === UploadFileState.LOADING }, this.i18nUploadFile)))));
|
|
146
|
-
}
|
|
147
|
-
static get is() { return "ix-upload"; }
|
|
148
|
-
static get encapsulation() { return "scoped"; }
|
|
149
|
-
static get originalStyleUrls() { return {
|
|
150
|
-
"$": ["upload.scss"]
|
|
151
|
-
}; }
|
|
152
|
-
static get styleUrls() { return {
|
|
153
|
-
"$": ["upload.css"]
|
|
154
|
-
}; }
|
|
155
|
-
static get properties() { return {
|
|
156
|
-
"accept": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"mutable": false,
|
|
159
|
-
"complexType": {
|
|
160
|
-
"original": "string",
|
|
161
|
-
"resolved": "string",
|
|
162
|
-
"references": {}
|
|
163
|
-
},
|
|
164
|
-
"required": false,
|
|
165
|
-
"optional": false,
|
|
166
|
-
"docs": {
|
|
167
|
-
"tags": [],
|
|
168
|
-
"text": "The accept attribute specifies the types of files that the server accepts (that can be submitted through a file upload).\n[accept]{@link https ://www.w3schools.com/tags/att_input_accept.asp}"
|
|
169
|
-
},
|
|
170
|
-
"attribute": "accept",
|
|
171
|
-
"reflect": false
|
|
172
|
-
},
|
|
173
|
-
"multiple": {
|
|
174
|
-
"type": "boolean",
|
|
175
|
-
"mutable": false,
|
|
176
|
-
"complexType": {
|
|
177
|
-
"original": "boolean",
|
|
178
|
-
"resolved": "boolean",
|
|
179
|
-
"references": {}
|
|
180
|
-
},
|
|
181
|
-
"required": false,
|
|
182
|
-
"optional": false,
|
|
183
|
-
"docs": {
|
|
184
|
-
"tags": [],
|
|
185
|
-
"text": "If multiple is true the user can drop or select multiple files"
|
|
186
|
-
},
|
|
187
|
-
"attribute": "multiple",
|
|
188
|
-
"reflect": false,
|
|
189
|
-
"defaultValue": "false"
|
|
190
|
-
},
|
|
191
|
-
"multiline": {
|
|
192
|
-
"type": "boolean",
|
|
193
|
-
"mutable": false,
|
|
194
|
-
"complexType": {
|
|
195
|
-
"original": "boolean",
|
|
196
|
-
"resolved": "boolean",
|
|
197
|
-
"references": {}
|
|
198
|
-
},
|
|
199
|
-
"required": false,
|
|
200
|
-
"optional": false,
|
|
201
|
-
"docs": {
|
|
202
|
-
"tags": [],
|
|
203
|
-
"text": "Whether the text should wrap to more than one line"
|
|
204
|
-
},
|
|
205
|
-
"attribute": "multiline",
|
|
206
|
-
"reflect": false,
|
|
207
|
-
"defaultValue": "false"
|
|
208
|
-
},
|
|
209
|
-
"disabled": {
|
|
210
|
-
"type": "boolean",
|
|
211
|
-
"mutable": false,
|
|
212
|
-
"complexType": {
|
|
213
|
-
"original": "boolean",
|
|
214
|
-
"resolved": "boolean",
|
|
215
|
-
"references": {}
|
|
216
|
-
},
|
|
217
|
-
"required": false,
|
|
218
|
-
"optional": false,
|
|
219
|
-
"docs": {
|
|
220
|
-
"tags": [],
|
|
221
|
-
"text": "Disable all input events"
|
|
222
|
-
},
|
|
223
|
-
"attribute": "disabled",
|
|
224
|
-
"reflect": false,
|
|
225
|
-
"defaultValue": "false"
|
|
226
|
-
},
|
|
227
|
-
"state": {
|
|
228
|
-
"type": "string",
|
|
229
|
-
"mutable": false,
|
|
230
|
-
"complexType": {
|
|
231
|
-
"original": "UploadFileState",
|
|
232
|
-
"resolved": "UploadFileState.LOADING | UploadFileState.SELECT_FILE | UploadFileState.UPLOAD_FAILED | UploadFileState.UPLOAD_SUCCESSED",
|
|
233
|
-
"references": {
|
|
234
|
-
"UploadFileState": {
|
|
235
|
-
"location": "import",
|
|
236
|
-
"path": "./upload-file-state"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"required": false,
|
|
241
|
-
"optional": false,
|
|
242
|
-
"docs": {
|
|
243
|
-
"tags": [],
|
|
244
|
-
"text": "After a file is uploaded you can set the upload component to a defined state"
|
|
245
|
-
},
|
|
246
|
-
"attribute": "state",
|
|
247
|
-
"reflect": false,
|
|
248
|
-
"defaultValue": "UploadFileState.SELECT_FILE"
|
|
249
|
-
},
|
|
250
|
-
"selectFileText": {
|
|
251
|
-
"type": "string",
|
|
252
|
-
"mutable": false,
|
|
253
|
-
"complexType": {
|
|
254
|
-
"original": "string",
|
|
255
|
-
"resolved": "string",
|
|
256
|
-
"references": {}
|
|
257
|
-
},
|
|
258
|
-
"required": false,
|
|
259
|
-
"optional": false,
|
|
260
|
-
"docs": {
|
|
261
|
-
"tags": [],
|
|
262
|
-
"text": "Will be used by state = UploadFileState.SELECT_FILE"
|
|
263
|
-
},
|
|
264
|
-
"attribute": "select-file-text",
|
|
265
|
-
"reflect": false,
|
|
266
|
-
"defaultValue": "'+ Drag files here or\u2026'"
|
|
267
|
-
},
|
|
268
|
-
"loadingText": {
|
|
269
|
-
"type": "string",
|
|
270
|
-
"mutable": false,
|
|
271
|
-
"complexType": {
|
|
272
|
-
"original": "string",
|
|
273
|
-
"resolved": "string",
|
|
274
|
-
"references": {}
|
|
275
|
-
},
|
|
276
|
-
"required": false,
|
|
277
|
-
"optional": false,
|
|
278
|
-
"docs": {
|
|
279
|
-
"tags": [],
|
|
280
|
-
"text": "Will be used by state = UploadFileState.LOADING"
|
|
281
|
-
},
|
|
282
|
-
"attribute": "loading-text",
|
|
283
|
-
"reflect": false,
|
|
284
|
-
"defaultValue": "'Checking files\u2026'"
|
|
285
|
-
},
|
|
286
|
-
"uploadFailedText": {
|
|
287
|
-
"type": "string",
|
|
288
|
-
"mutable": false,
|
|
289
|
-
"complexType": {
|
|
290
|
-
"original": "string",
|
|
291
|
-
"resolved": "string",
|
|
292
|
-
"references": {}
|
|
293
|
-
},
|
|
294
|
-
"required": false,
|
|
295
|
-
"optional": false,
|
|
296
|
-
"docs": {
|
|
297
|
-
"tags": [],
|
|
298
|
-
"text": "Will be used by state = UploadFileState.UPLOAD_FAILED"
|
|
299
|
-
},
|
|
300
|
-
"attribute": "upload-failed-text",
|
|
301
|
-
"reflect": false,
|
|
302
|
-
"defaultValue": "'Upload failed. Please try again.'"
|
|
303
|
-
},
|
|
304
|
-
"uploadSuccessText": {
|
|
305
|
-
"type": "string",
|
|
306
|
-
"mutable": false,
|
|
307
|
-
"complexType": {
|
|
308
|
-
"original": "string",
|
|
309
|
-
"resolved": "string",
|
|
310
|
-
"references": {}
|
|
311
|
-
},
|
|
312
|
-
"required": false,
|
|
313
|
-
"optional": false,
|
|
314
|
-
"docs": {
|
|
315
|
-
"tags": [],
|
|
316
|
-
"text": "Will be used by state = UploadFileState.UPLOAD_SUCCESSED"
|
|
317
|
-
},
|
|
318
|
-
"attribute": "upload-success-text",
|
|
319
|
-
"reflect": false,
|
|
320
|
-
"defaultValue": "'Upload successful'"
|
|
321
|
-
},
|
|
322
|
-
"i18nUploadFile": {
|
|
323
|
-
"type": "string",
|
|
324
|
-
"mutable": false,
|
|
325
|
-
"complexType": {
|
|
326
|
-
"original": "string",
|
|
327
|
-
"resolved": "string",
|
|
328
|
-
"references": {}
|
|
329
|
-
},
|
|
330
|
-
"required": false,
|
|
331
|
-
"optional": false,
|
|
332
|
-
"docs": {
|
|
333
|
-
"tags": [],
|
|
334
|
-
"text": "Label for upload file button"
|
|
335
|
-
},
|
|
336
|
-
"attribute": "i-1-8n-upload-file",
|
|
337
|
-
"reflect": false,
|
|
338
|
-
"defaultValue": "'Upload file\u2026'"
|
|
339
|
-
},
|
|
340
|
-
"i18nUploadDisabled": {
|
|
341
|
-
"type": "string",
|
|
342
|
-
"mutable": false,
|
|
343
|
-
"complexType": {
|
|
344
|
-
"original": "string",
|
|
345
|
-
"resolved": "string",
|
|
346
|
-
"references": {}
|
|
347
|
-
},
|
|
348
|
-
"required": false,
|
|
349
|
-
"optional": false,
|
|
350
|
-
"docs": {
|
|
351
|
-
"tags": [],
|
|
352
|
-
"text": "Text for disabled state"
|
|
353
|
-
},
|
|
354
|
-
"attribute": "i-1-8n-upload-disabled",
|
|
355
|
-
"reflect": false,
|
|
356
|
-
"defaultValue": "'File upload currently not possible.'"
|
|
357
|
-
}
|
|
358
|
-
}; }
|
|
359
|
-
static get states() { return {
|
|
360
|
-
"isFileOver": {}
|
|
361
|
-
}; }
|
|
362
|
-
static get events() { return [{
|
|
363
|
-
"method": "filesChanged",
|
|
364
|
-
"name": "filesChanged",
|
|
365
|
-
"bubbles": true,
|
|
366
|
-
"cancelable": true,
|
|
367
|
-
"composed": true,
|
|
368
|
-
"docs": {
|
|
369
|
-
"tags": [],
|
|
370
|
-
"text": "You get an array of Files after drop-action or browse action is finished"
|
|
371
|
-
},
|
|
372
|
-
"complexType": {
|
|
373
|
-
"original": "Array<File>",
|
|
374
|
-
"resolved": "File[]",
|
|
375
|
-
"references": {
|
|
376
|
-
"Array": {
|
|
377
|
-
"location": "global"
|
|
378
|
-
},
|
|
379
|
-
"File": {
|
|
380
|
-
"location": "global"
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}]; }
|
|
385
|
-
static get methods() { return {
|
|
386
|
-
"setFilesToUpload": {
|
|
387
|
-
"complexType": {
|
|
388
|
-
"signature": "(obj: any) => Promise<void>",
|
|
389
|
-
"parameters": [{
|
|
390
|
-
"tags": [{
|
|
391
|
-
"name": "param",
|
|
392
|
-
"text": "obj"
|
|
393
|
-
}],
|
|
394
|
-
"text": ""
|
|
395
|
-
}],
|
|
396
|
-
"references": {
|
|
397
|
-
"Promise": {
|
|
398
|
-
"location": "global"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
"return": "Promise<void>"
|
|
402
|
-
},
|
|
403
|
-
"docs": {
|
|
404
|
-
"text": "Set files",
|
|
405
|
-
"tags": [{
|
|
406
|
-
"name": "param",
|
|
407
|
-
"text": "obj"
|
|
408
|
-
}]
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}; }
|
|
412
|
-
static get elementRef() { return "hostElement"; }
|
|
413
|
-
}
|
|
@@ -1,15 +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
|
-
export default class Animation {
|
|
10
|
-
}
|
|
11
|
-
Animation.shortTime = 0;
|
|
12
|
-
Animation.defaultTime = 150;
|
|
13
|
-
Animation.mediumTime = 300;
|
|
14
|
-
Animation.slowTime = 500;
|
|
15
|
-
Animation.xSlowTime = 1000;
|