@siemens/ix 1.1.0 → 1.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-40761405.js +178 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-category-filter.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +3 -1
- package/dist/cjs/ix-event-list_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-icon.cjs.entry.js +4 -4
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu_9.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-select_2.cjs.entry.js +45 -22
- package/dist/cjs/ix-tab-item.cjs.entry.js +12 -2
- package/dist/cjs/ix-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ix-toast_2.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{modal-42934387.js → modal-2112fb71.js} +1 -1
- package/dist/cjs/{rwd.util-482d41d4.js → rwd.util-2326824e.js} +2 -2
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/cjs/{typed-event-8f5a32a2.js → typed-event-5030cc6a.js} +3 -3
- package/dist/collection/components/animated-tabs/animated-tabs.js +3 -3
- package/dist/collection/components/application-header/application-header.css +1 -0
- package/dist/collection/components/application-header/application-header.js +1 -1
- package/dist/collection/components/blind/blind.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/category-filter/category-filter.js +3 -3
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +3 -3
- package/dist/collection/components/drawer/drawer.js +4 -2
- package/dist/collection/components/dropdown/dropdown.js +3 -3
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/event-list/event-list.css +0 -3
- package/dist/collection/components/event-list-item/event-list-item.css +2 -3
- package/dist/collection/components/event-list-item/event-list-item.js +2 -2
- package/dist/collection/components/expanding-search/expanding-search.js +1 -1
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/group/group.js +1 -1
- package/dist/collection/components/group-item/group-item.js +1 -1
- package/dist/collection/components/icon/icon.js +4 -4
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/map-navigation/map-navigation.css +1 -19
- package/dist/collection/components/map-navigation/map-navigation.js +5 -5
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.css +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.js +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/select/select.js +48 -24
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/split-button/split-button.js +3 -3
- package/dist/collection/components/split-button-item/split-button-item.js +1 -1
- package/dist/collection/components/tab-item/tab-item.js +12 -2
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/time-picker/time-picker.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/utils/rwd.util.js +2 -2
- package/dist/collection/components/utils/typed-event.js +3 -3
- package/dist/collection/components/workflow-step/workflow-step.js +1 -1
- package/dist/components/application-header.js +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/icon.js +4 -4
- package/dist/components/ix-drawer.js +3 -1
- package/dist/components/ix-event-list-item.js +2 -2
- package/dist/components/ix-event-list.js +1 -1
- package/dist/components/ix-map-navigation.js +11 -5
- package/dist/components/ix-menu-avatar.js +1 -1
- package/dist/components/ix-select.js +47 -23
- package/dist/components/map-navigation-overlay.js +1 -1
- package/dist/components/rwd.util.js +2 -2
- package/dist/components/tab-item.js +12 -2
- package/dist/components/tabs.js +2 -2
- package/dist/components/toast.js +1 -1
- package/dist/components/typed-event.js +3 -3
- package/dist/esm/index-b22287de.js +178 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/ix-animated-tab_2.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +2 -2
- package/dist/esm/ix-category-filter.entry.js +1 -1
- package/dist/esm/ix-date-picker_2.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +3 -1
- package/dist/esm/ix-event-list_2.entry.js +4 -4
- package/dist/esm/ix-icon.entry.js +4 -4
- package/dist/esm/ix-map-navigation_2.entry.js +5 -5
- package/dist/esm/ix-menu_9.entry.js +2 -2
- package/dist/esm/ix-modal_2.entry.js +2 -2
- package/dist/esm/ix-select_2.entry.js +45 -22
- package/dist/esm/ix-tab-item.entry.js +12 -2
- package/dist/esm/ix-tabs.entry.js +2 -2
- package/dist/esm/ix-toast_2.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{modal-f1e45879.js → modal-309a156f.js} +1 -1
- package/dist/esm/{rwd.util-33a69d24.js → rwd.util-4a61a4b8.js} +2 -2
- package/dist/esm/siemens-ix.js +1 -1
- package/dist/esm/{typed-event-dd6c83dd.js → typed-event-ab58c27e.js} +3 -3
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/p-0e3aab52.entry.js +1 -0
- package/dist/siemens-ix/p-25fda9f7.entry.js +1 -0
- package/dist/siemens-ix/{p-003b58b3.js → p-2f07c86a.js} +1 -1
- package/dist/siemens-ix/{p-8c5948e2.entry.js → p-41e42413.entry.js} +1 -1
- package/dist/siemens-ix/{p-6f625f0e.js → p-4944ad0b.js} +0 -0
- package/dist/siemens-ix/{p-a4ed41f9.entry.js → p-6e8a38c4.entry.js} +1 -1
- package/dist/siemens-ix/p-74e15a57.entry.js +1 -0
- package/dist/siemens-ix/{p-fca4a226.entry.js → p-8ee057c1.entry.js} +1 -1
- package/dist/siemens-ix/p-a8b6454f.entry.js +1 -0
- package/dist/siemens-ix/{p-9cc43bf2.entry.js → p-abd3b0f8.entry.js} +1 -1
- package/dist/siemens-ix/p-b50dc630.entry.js +1 -0
- package/dist/siemens-ix/{p-0bf04780.js → p-c8cc3bb3.js} +0 -0
- package/dist/siemens-ix/siemens-ix.css +44 -31
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/animated-tabs/animated-tabs.d.ts +1 -1
- package/dist/types/components/category-filter/category-filter.d.ts +2 -2
- package/dist/types/components/date-picker/date-picker.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +1 -1
- package/dist/types/components/event-list-item/event-list-item.d.ts +1 -1
- package/dist/types/components/icon-button/icon-button.d.ts +1 -1
- package/dist/types/components/map-navigation/map-navigation.d.ts +2 -2
- package/dist/types/components/menu-item/menu-item.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +8 -5
- package/dist/types/components/split-button/split-button.d.ts +1 -1
- package/dist/types/components/time-picker/time-picker.d.ts +1 -1
- package/dist/types/components/toggle/toggle.d.ts +1 -1
- package/dist/types/components.d.ts +21 -35
- package/package.json +2 -2
- package/scss/components/_button-group.scss +2 -0
- package/scss/components/_buttons.scss +5 -0
- package/scss/components/_checkboxes.scss +19 -16
- package/scss/components/_radiobuttons.scss +12 -12
- package/src/components/animated-tabs/readme.md +4 -5
- package/src/components/category-filter/readme.md +13 -14
- package/src/components/date-picker/readme.md +2 -2
- package/src/components/dropdown/readme.md +11 -11
- package/src/components/event-list-item/readme.md +7 -7
- package/src/components/icon-button/readme.md +1 -1
- package/src/components/map-navigation/readme.md +2 -2
- package/src/components/menu-item/readme.md +8 -8
- package/src/components/split-button/readme.md +11 -11
- package/src/components/time-picker/readme.md +12 -12
- package/src/components/toggle/readme.md +10 -10
- package/dist/siemens-ix/p-0419f23d.entry.js +0 -1
- package/dist/siemens-ix/p-1686ce8c.entry.js +0 -1
- package/dist/siemens-ix/p-a2e33741.entry.js +0 -1
- package/dist/siemens-ix/p-a3760331.entry.js +0 -1
- package/dist/siemens-ix/p-ca8a41ea.entry.js +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as anime } from './anime.es.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './application-header.js';
|
|
3
4
|
import { d as defineCustomElement$4 } from './icon.js';
|
|
4
5
|
import { d as defineCustomElement$3 } from './icon-button.js';
|
|
5
6
|
import { d as defineCustomElement$2 } from './map-navigation-overlay.js';
|
|
6
7
|
|
|
7
|
-
const mapNavigationCss = ".sc-ix-map-navigation-h{display:flex;position:relative;width:100%;height:100%}.sc-ix-map-navigation-h .map-nav.sc-ix-map-navigation{display:flex;margin-left:4rem;position:relative;height:100%;flex-grow:1;overflow:hidden}.sc-ix-map-navigation-h .map-nav-sidebar.sc-ix-map-navigation{display:flex;flex-direction:column;align-items:center;width:29.75rem;max-width:29.75rem;min-width:29.75rem;height:100%;left:4rem;background-color:var(--theme-map-navigation--background);-webkit-border-end:0.125rem solid var(--theme-map-navigation-separator--background);border-inline-end:0.125rem solid var(--theme-map-navigation-separator--background);z-index:99}.sc-ix-map-navigation-h .map-nav-sidebar-content.sc-ix-map-navigation{align-items:center;position:relative;overflow:auto;height:100%;width:100%}.sc-ix-map-navigation-h .map-nav-sidebar-content.sc-ix-map-navigation .map-nav-sidebar-static-content.sc-ix-map-navigation{-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);display:flex;justify-content:space-between;margin-top:0.437rem;margin-bottom:0.812rem;margin-left:1rem;margin-right:1rem}.sc-ix-map-navigation-h .map-nav-header.sc-ix-map-navigation{display:flex;position:relative;align-items:center;height:3.5rem;min-height:3.5rem;width:100%}.sc-ix-map-navigation-h .map-nav-header.sc-ix-map-navigation .map-nav-header-brand.sc-ix-map-navigation{background-color:var(--theme-map-navigation-background);display:flex;align-items:center;height:100%;width:100%;padding:0 1rem
|
|
8
|
+
const mapNavigationCss = ".sc-ix-map-navigation-h{display:flex;position:relative;width:100%;height:100%}.sc-ix-map-navigation-h .map-nav.sc-ix-map-navigation{display:flex;margin-left:4rem;position:relative;height:100%;flex-grow:1;overflow:hidden}.sc-ix-map-navigation-h .map-nav-sidebar.sc-ix-map-navigation{display:flex;flex-direction:column;align-items:center;width:29.75rem;max-width:29.75rem;min-width:29.75rem;height:100%;left:4rem;background-color:var(--theme-map-navigation--background);-webkit-border-end:0.125rem solid var(--theme-map-navigation-separator--background);border-inline-end:0.125rem solid var(--theme-map-navigation-separator--background);z-index:99}.sc-ix-map-navigation-h .map-nav-sidebar-content.sc-ix-map-navigation{align-items:center;position:relative;overflow:auto;height:100%;width:100%}.sc-ix-map-navigation-h .map-nav-sidebar-content.sc-ix-map-navigation .map-nav-sidebar-static-content.sc-ix-map-navigation{-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);display:flex;justify-content:space-between;margin-top:0.437rem;margin-bottom:0.812rem;margin-left:1rem;margin-right:1rem}.sc-ix-map-navigation-h .map-nav-header.sc-ix-map-navigation{display:flex;position:relative;align-items:center;height:3.5rem;min-height:3.5rem;width:100%}.sc-ix-map-navigation-h .map-nav-header.sc-ix-map-navigation .map-nav-header-brand.sc-ix-map-navigation{background-color:var(--theme-map-navigation-background);display:flex;align-items:center;height:100%;width:100%;padding:0 1rem;--theme-app-header-logo--color:var(--theme-color-std-text)}.sc-ix-map-navigation-h .map-nav-header.sc-ix-map-navigation .map-nav-header-brand.sc-ix-map-navigation button.sc-ix-map-navigation{margin-left:1rem}.sc-ix-map-navigation-h .map-nav-header-content.sc-ix-map-navigation{display:flex;height:3.5rem;align-items:center;overflow:hidden;padding:0 1rem}.sc-ix-map-navigation-h .map-nav-header-content.sc-ix-map-navigation:empty{height:0}.sc-ix-map-navigation-h .map-nav-title.sc-ix-map-navigation{-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);display:flex;align-items:center;flex-grow:1}.sc-ix-map-navigation-h .content.sc-ix-map-navigation{display:block;flex-grow:1;position:relative;height:100%;overflow:hidden;z-index:calc(var(--theme-z-index-sticky) - 1)}";
|
|
8
9
|
|
|
9
10
|
const MapNavigation = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
11
|
constructor() {
|
|
@@ -86,7 +87,7 @@ const MapNavigation = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* Open a overlay inside content area
|
|
89
|
-
* @deprecated
|
|
90
|
+
* @deprecated Will be removed in 2.0.0. Use slot based approach
|
|
90
91
|
*
|
|
91
92
|
* @param name
|
|
92
93
|
* @param component
|
|
@@ -115,7 +116,7 @@ const MapNavigation = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
115
116
|
}
|
|
116
117
|
/**
|
|
117
118
|
* Close current shown overlay
|
|
118
|
-
* @deprecated
|
|
119
|
+
* @deprecated Will be removed in 2.0.0. Use slot based approach
|
|
119
120
|
*/
|
|
120
121
|
async closeOverlay() {
|
|
121
122
|
anime({
|
|
@@ -136,7 +137,7 @@ const MapNavigation = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
139
|
render() {
|
|
139
|
-
return (h(Host, null, h("div", { id: "menu-placeholder" }), h("div", { class: "map-nav" }, h("div", { class: "map-nav-sidebar" }, h("div", { class: "map-nav-header" }, h("
|
|
140
|
+
return (h(Host, null, h("div", { id: "menu-placeholder" }), h("div", { class: "map-nav" }, h("div", { class: "map-nav-sidebar" }, h("div", { class: "map-nav-header" }, h("ix-application-header", { name: this.applicationName, class: "map-nav-header-brand" }, h("slot", { name: "logo" }))), h("div", { class: "map-nav-sidebar-content" }, h("div", { class: "map-nav-sidebar-static-content" }, h("div", { class: "map-nav-title" }, this.navigationTitle), this.hideContextMenu ? ('') : (h("ix-icon-button", { icon: "context-menu", ghost: true, size: "24", variant: "Secondary", onClick: (_) => this.contextMenuClick.emit() }))), h("div", { class: "map-nav-sidebar-user-content" }, h("slot", { name: "sidebar-content" })))), h("div", { class: "content" }, h("div", { class: "map-nav-header-content bg-2" }, h("slot", { name: "content-header" })), h("main", null, h("slot", null))))));
|
|
140
141
|
}
|
|
141
142
|
get hostElement() { return this; }
|
|
142
143
|
static get style() { return mapNavigationCss; }
|
|
@@ -154,13 +155,18 @@ function defineCustomElement$1() {
|
|
|
154
155
|
if (typeof customElements === "undefined") {
|
|
155
156
|
return;
|
|
156
157
|
}
|
|
157
|
-
const components = ["ix-map-navigation", "ix-icon", "ix-icon-button", "ix-map-navigation-overlay"];
|
|
158
|
+
const components = ["ix-map-navigation", "ix-application-header", "ix-icon", "ix-icon-button", "ix-map-navigation-overlay"];
|
|
158
159
|
components.forEach(tagName => { switch (tagName) {
|
|
159
160
|
case "ix-map-navigation":
|
|
160
161
|
if (!customElements.get(tagName)) {
|
|
161
162
|
customElements.define(tagName, MapNavigation);
|
|
162
163
|
}
|
|
163
164
|
break;
|
|
165
|
+
case "ix-application-header":
|
|
166
|
+
if (!customElements.get(tagName)) {
|
|
167
|
+
defineCustomElement$5();
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
164
170
|
case "ix-icon":
|
|
165
171
|
if (!customElements.get(tagName)) {
|
|
166
172
|
defineCustomElement$4();
|
|
@@ -5,7 +5,7 @@ import { d as defineCustomElement$4 } from './dropdown-item.js';
|
|
|
5
5
|
import { d as defineCustomElement$3 } from './icon.js';
|
|
6
6
|
import { d as defineCustomElement$2 } from './menu-avatar-item.js';
|
|
7
7
|
|
|
8
|
-
const menuAvatarCss = ".sc-ix-menu-avatar-h{display:block;position:relative;margin-bottom:0.5rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar{display:flex;align-items:center;height:2.5rem;max-height:2.5rem;padding-left:0.25rem;margin-left:0.75rem;margin-right:0.75rem;transition:0.15s;border-radius:1.25rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar>svg.sc-ix-menu-avatar{height:2rem;width:2rem;min-height:2rem;min-width:2rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar #avatar-path-background.sc-ix-menu-avatar{fill:var(--theme-avatar--background)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar #avatar-path-person.sc-ix-menu-avatar{fill:var(--theme-
|
|
8
|
+
const menuAvatarCss = ".sc-ix-menu-avatar-h{display:block;position:relative;margin-bottom:0.5rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar{display:flex;align-items:center;height:2.5rem;max-height:2.5rem;padding-left:0.25rem;margin-left:0.75rem;margin-right:0.75rem;transition:0.15s;border-radius:1.25rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar>svg.sc-ix-menu-avatar{height:2rem;width:2rem;min-height:2rem;min-width:2rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar #avatar-path-background.sc-ix-menu-avatar{fill:var(--theme-avatar--background)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar #avatar-path-person.sc-ix-menu-avatar{fill:var(--theme-color-4)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar .avatar-name.sc-ix-menu-avatar{display:flex;flex-direction:column;overflow:hidden;white-space:nowrap;margin-left:1rem;line-height:1.14}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar .avatar-name.sc-ix-menu-avatar .text-default-single.sc-ix-menu-avatar{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled):hover{background-color:var(--theme-avatar-btn--background--hover);color:var(--theme-avatar-btn--color--hover)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled):active{background-color:var(--theme-avatar-btn--background--active);color:var(--theme-avatar-btn--color--active)}";
|
|
9
9
|
|
|
10
10
|
const MenuAvatar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
11
11
|
constructor() {
|
|
@@ -30,7 +30,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
30
30
|
this.isDropdownEmpty = false;
|
|
31
31
|
this.hasFocus = false;
|
|
32
32
|
this.navigationItem = undefined;
|
|
33
|
-
this.
|
|
33
|
+
this.inputFilterText = undefined;
|
|
34
|
+
this.inputValue = undefined;
|
|
34
35
|
}
|
|
35
36
|
get items() {
|
|
36
37
|
return Array.from(this.hostElement.querySelectorAll('ix-select-item'));
|
|
@@ -48,9 +49,15 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
48
49
|
return this.mode === 'multiple';
|
|
49
50
|
}
|
|
50
51
|
watchSelectedIndices(newId) {
|
|
51
|
-
if (newId) {
|
|
52
|
+
if (!newId) {
|
|
53
|
+
this.selectValue([]);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (Array.isArray(newId)) {
|
|
52
57
|
this.selectValue([...newId]);
|
|
58
|
+
return;
|
|
53
59
|
}
|
|
60
|
+
this.selectValue([newId]);
|
|
54
61
|
}
|
|
55
62
|
onItemClicked(event) {
|
|
56
63
|
const newId = event.detail;
|
|
@@ -92,10 +99,16 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
92
99
|
this.addItem.emit(value);
|
|
93
100
|
}
|
|
94
101
|
selectValue(ids) {
|
|
102
|
+
var _a;
|
|
95
103
|
this.items.forEach((item) => {
|
|
96
104
|
item.selected = ids.some((i) => i === item.value);
|
|
97
105
|
});
|
|
98
106
|
this.value = this.selectedItems.map((item) => item.label);
|
|
107
|
+
if (this.isSingleMode) {
|
|
108
|
+
this.inputValue = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) ? this.value[0] : null;
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this.inputValue = null;
|
|
99
112
|
}
|
|
100
113
|
componentWillLoad() {
|
|
101
114
|
if (this.selectedIndices) {
|
|
@@ -104,6 +117,23 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
104
117
|
: [this.selectedIndices]);
|
|
105
118
|
}
|
|
106
119
|
}
|
|
120
|
+
componentDidLoad() {
|
|
121
|
+
this.labelMutationObserver = new MutationObserver(() => {
|
|
122
|
+
this.selectValue(Array.isArray(this.selectedIndices)
|
|
123
|
+
? this.selectedIndices
|
|
124
|
+
: [this.selectedIndices]);
|
|
125
|
+
});
|
|
126
|
+
this.labelMutationObserver.observe(this.hostElement, {
|
|
127
|
+
subtree: true,
|
|
128
|
+
attributes: true,
|
|
129
|
+
attributeFilter: ['label'],
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
disconnectedCallback() {
|
|
133
|
+
if (this.labelMutationObserver) {
|
|
134
|
+
this.labelMutationObserver.disconnect();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
107
137
|
itemExists(item) {
|
|
108
138
|
return this.items.find((i) => i.label === item);
|
|
109
139
|
}
|
|
@@ -134,8 +164,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
134
164
|
}
|
|
135
165
|
async onEnterNavigation() {
|
|
136
166
|
var _a, _b;
|
|
137
|
-
if (this.editable && !this.itemExists(this.
|
|
138
|
-
this.emitAddItem(this.
|
|
167
|
+
if (this.editable && !this.itemExists(this.inputFilterText)) {
|
|
168
|
+
this.emitAddItem(this.inputFilterText);
|
|
139
169
|
this.navigationItem = this.items[this.items.length - 1];
|
|
140
170
|
}
|
|
141
171
|
(_a = this.navigationItem) === null || _a === void 0 ? void 0 : _a.onItemClick();
|
|
@@ -163,11 +193,11 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
163
193
|
});
|
|
164
194
|
}
|
|
165
195
|
filterItemsWithTypeahead() {
|
|
166
|
-
this.
|
|
167
|
-
if (this.
|
|
196
|
+
this.inputFilterText = this.inputRef.value;
|
|
197
|
+
if (this.inputFilterText) {
|
|
168
198
|
this.items.forEach((item) => {
|
|
169
199
|
item.classList.remove('d-none');
|
|
170
|
-
if (!item.label.toLowerCase().includes(this.
|
|
200
|
+
if (!item.label.toLowerCase().includes(this.inputFilterText.toLowerCase())) {
|
|
171
201
|
item.classList.add('d-none');
|
|
172
202
|
}
|
|
173
203
|
});
|
|
@@ -184,7 +214,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
184
214
|
}
|
|
185
215
|
clearInput() {
|
|
186
216
|
this.inputRef.value = '';
|
|
187
|
-
this.
|
|
217
|
+
this.inputFilterText = '';
|
|
188
218
|
}
|
|
189
219
|
clear() {
|
|
190
220
|
this.clearInput();
|
|
@@ -192,13 +222,6 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
192
222
|
this.selectedIndices = [];
|
|
193
223
|
this.itemSelectionChange.emit(null);
|
|
194
224
|
}
|
|
195
|
-
getInputValue() {
|
|
196
|
-
var _a;
|
|
197
|
-
if (this.isSingleMode) {
|
|
198
|
-
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) ? this.value[0] : null;
|
|
199
|
-
}
|
|
200
|
-
return null;
|
|
201
|
-
}
|
|
202
225
|
render() {
|
|
203
226
|
var _a, _b, _c;
|
|
204
227
|
return (h(Host, null, h("div", { class: {
|
|
@@ -220,10 +243,10 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
220
243
|
'allow-clear': this.allowClear && !!((_b = this.value) === null || _b === void 0 ? void 0 : _b.length),
|
|
221
244
|
}, placeholder: this.editable
|
|
222
245
|
? this.i18nPlaceholderEditable
|
|
223
|
-
: this.i18nPlaceholder, value: this.
|
|
246
|
+
: this.i18nPlaceholder, value: this.inputValue, ref: (ref) => (this.inputRef = ref), onInput: () => this.filterItemsWithTypeahead() }), this.disabled || this.readonly ? null : (h("div", { class: "chevron-down-container", ref: (ref) => {
|
|
224
247
|
if (this.editable)
|
|
225
248
|
this.dropdownWrapperRef = ref;
|
|
226
|
-
} }, h("ix-icon", { class: "chevron", name: "chevron-down-small" }))))), this.allowClear && (((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) || this.
|
|
249
|
+
} }, h("ix-icon", { class: "chevron", name: "chevron-down-small" }))))), this.allowClear && (((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) || this.inputFilterText) ? (h("ix-icon-button", { class: "clear", icon: "clear", ghost: true, oval: true, size: "24", onClick: (e) => {
|
|
227
250
|
e.preventDefault();
|
|
228
251
|
e.stopPropagation();
|
|
229
252
|
this.clear();
|
|
@@ -233,19 +256,19 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
233
256
|
'd-none': this.disabled ||
|
|
234
257
|
this.readonly ||
|
|
235
258
|
(this.isDropdownEmpty && !this.editable),
|
|
236
|
-
}, anchor: this.dropdownAnchor, trigger: this.dropdownWrapperRef, onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "bottom", positioningStrategy: 'fixed', adjustDropdownWidthToReferenceWidth: true }, h("div", { class: "select-list-header" }, this.i18nSelectListHeader), h("slot", null), h("div", { ref: (ref) => (this.addItemRef = ref), class: "d-contents" }), this.itemExists(this.
|
|
259
|
+
}, anchor: this.dropdownAnchor, trigger: this.dropdownWrapperRef, onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "bottom", positioningStrategy: 'fixed', adjustDropdownWidthToReferenceWidth: true }, h("div", { class: "select-list-header" }, this.i18nSelectListHeader), h("slot", null), h("div", { ref: (ref) => (this.addItemRef = ref), class: "d-contents" }), this.itemExists(this.inputFilterText) ? ('') : (h("ix-dropdown-item", { "data-testid": "add-item", icon: "plus", class: {
|
|
237
260
|
'add-item': true,
|
|
238
|
-
'd-none': !(this.editable && this.
|
|
239
|
-
}, label: this.
|
|
261
|
+
'd-none': !(this.editable && this.inputFilterText),
|
|
262
|
+
}, label: this.inputFilterText, onItemClick: (e) => {
|
|
240
263
|
e.preventDefault();
|
|
241
264
|
e.stopPropagation();
|
|
242
|
-
this.emitAddItem(this.
|
|
265
|
+
this.emitAddItem(this.inputFilterText);
|
|
243
266
|
} })))));
|
|
244
267
|
}
|
|
245
268
|
get hostElement() { return this; }
|
|
246
269
|
static get watchers() { return {
|
|
247
270
|
"selectedIndices": ["watchSelectedIndices"],
|
|
248
|
-
"
|
|
271
|
+
"inputFilterText": ["watchInputText"]
|
|
249
272
|
}; }
|
|
250
273
|
static get style() { return selectCss; }
|
|
251
274
|
}, [6, "ix-select", {
|
|
@@ -265,7 +288,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
265
288
|
"isDropdownEmpty": [32],
|
|
266
289
|
"hasFocus": [32],
|
|
267
290
|
"navigationItem": [32],
|
|
268
|
-
"
|
|
291
|
+
"inputFilterText": [32],
|
|
292
|
+
"inputValue": [32]
|
|
269
293
|
}, [[0, "itemClick", "onItemClicked"], [8, "keydown", "onKeyDown"]]]);
|
|
270
294
|
function defineCustomElement$1() {
|
|
271
295
|
if (typeof customElements === "undefined") {
|
|
@@ -21,9 +21,9 @@ const convertToAbbreviationString = (num) => {
|
|
|
21
21
|
{ unit: 't', value: Math.pow(10, 12) },
|
|
22
22
|
{ unit: 'B', value: Math.pow(10, 9) },
|
|
23
23
|
{ unit: 'M', value: Math.pow(10, 6) },
|
|
24
|
-
{ unit: 'K', value: Math.pow(10, 3) },
|
|
24
|
+
{ unit: 'K', value: Math.pow(10, 3) },
|
|
25
25
|
];
|
|
26
|
-
units.some(pow => {
|
|
26
|
+
units.some((pow) => {
|
|
27
27
|
let formattedNum = Math.abs(num);
|
|
28
28
|
if (formattedNum >= pow.value) {
|
|
29
29
|
formattedNum /= pow.value;
|
|
@@ -24,7 +24,7 @@ const TabItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
24
24
|
stretched: props.layout === 'stretched',
|
|
25
25
|
bottom: props.placement === 'bottom',
|
|
26
26
|
top: props.placement === 'top',
|
|
27
|
-
circle: props.circle
|
|
27
|
+
circle: props.circle,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
@@ -36,7 +36,17 @@ const TabItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
36
36
|
layout: this.layout,
|
|
37
37
|
placement: this.placement,
|
|
38
38
|
circle: this.rounded,
|
|
39
|
-
}), tabIndex: 0 }, h("div", { class: {
|
|
39
|
+
}), tabIndex: 0 }, h("div", { class: {
|
|
40
|
+
circle: this.rounded,
|
|
41
|
+
text: !this.rounded,
|
|
42
|
+
selected: this.selected,
|
|
43
|
+
disabled: this.disabled,
|
|
44
|
+
} }, h("slot", null)), h("div", { class: {
|
|
45
|
+
counter: true,
|
|
46
|
+
selected: this.selected,
|
|
47
|
+
hidden: !(this.rounded && this.counter !== undefined),
|
|
48
|
+
disabled: this.disabled,
|
|
49
|
+
} }, this.counter)));
|
|
40
50
|
}
|
|
41
51
|
static get style() { return tabItemCss; }
|
|
42
52
|
}, [4, "ix-tab-item", {
|
package/dist/components/tabs.js
CHANGED
|
@@ -83,7 +83,7 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
83
83
|
amount = amount > 0 ? 0 : amount < maxScrollWidth ? maxScrollWidth : amount;
|
|
84
84
|
const styles = [
|
|
85
85
|
`transform: translateX(${amount}px);`,
|
|
86
|
-
click ?
|
|
86
|
+
click ? 'transition: all ease-in-out 400ms;' : '',
|
|
87
87
|
].join('');
|
|
88
88
|
tabWrapper.setAttribute('style', styles);
|
|
89
89
|
if (click)
|
|
@@ -111,7 +111,7 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
111
|
if (!this.showArrows())
|
|
112
112
|
return;
|
|
113
113
|
if (event.button > 0)
|
|
114
|
-
return;
|
|
114
|
+
return;
|
|
115
115
|
this.clickAction.timeout =
|
|
116
116
|
this.clickAction.timeout === null
|
|
117
117
|
? setTimeout(() => (this.clickAction.isClick = false), 300)
|
package/dist/components/toast.js
CHANGED
|
@@ -47,7 +47,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
47
47
|
render() {
|
|
48
48
|
let progressBarElement;
|
|
49
49
|
let progressBarStyle = {};
|
|
50
|
-
const progressBarClass = [
|
|
50
|
+
const progressBarClass = ['toast-progress-bar'];
|
|
51
51
|
if (!this.touched) {
|
|
52
52
|
progressBarStyle = {
|
|
53
53
|
animationDuration: `${this.autoCloseDelay}ms`,
|
|
@@ -27,16 +27,16 @@ class TypedEvent {
|
|
|
27
27
|
};
|
|
28
28
|
this.emit = (event) => {
|
|
29
29
|
/** Update any general listeners */
|
|
30
|
-
this.listeners.forEach(listener => listener(event));
|
|
30
|
+
this.listeners.forEach((listener) => listener(event));
|
|
31
31
|
/** Clear the `once` queue */
|
|
32
32
|
if (this.listenersOncer.length > 0) {
|
|
33
33
|
const toCall = this.listenersOncer;
|
|
34
34
|
this.listenersOncer = [];
|
|
35
|
-
toCall.forEach(listener => listener(event));
|
|
35
|
+
toCall.forEach((listener) => listener(event));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
this.pipe = (te) => {
|
|
39
|
-
return this.on(e => te.emit(e));
|
|
39
|
+
return this.on((e) => te.emit(e));
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1930,7 +1930,184 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1930
1930
|
if (module) {
|
|
1931
1931
|
return module[exportName];
|
|
1932
1932
|
}
|
|
1933
|
-
|
|
1933
|
+
|
|
1934
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1935
|
+
const processMod = importedModule => {
|
|
1936
|
+
cmpModules.set(bundleId, importedModule);
|
|
1937
|
+
return importedModule[exportName];
|
|
1938
|
+
}
|
|
1939
|
+
switch(bundleId) {
|
|
1940
|
+
|
|
1941
|
+
case 'ix-application-header':
|
|
1942
|
+
return import(
|
|
1943
|
+
/* webpackMode: "lazy" */
|
|
1944
|
+
'./ix-application-header.entry.js').then(processMod, consoleError);
|
|
1945
|
+
case 'ix-basic-navigation':
|
|
1946
|
+
return import(
|
|
1947
|
+
/* webpackMode: "lazy" */
|
|
1948
|
+
'./ix-basic-navigation.entry.js').then(processMod, consoleError);
|
|
1949
|
+
case 'ix-blind':
|
|
1950
|
+
return import(
|
|
1951
|
+
/* webpackMode: "lazy" */
|
|
1952
|
+
'./ix-blind.entry.js').then(processMod, consoleError);
|
|
1953
|
+
case 'ix-button':
|
|
1954
|
+
return import(
|
|
1955
|
+
/* webpackMode: "lazy" */
|
|
1956
|
+
'./ix-button.entry.js').then(processMod, consoleError);
|
|
1957
|
+
case 'ix-category-filter':
|
|
1958
|
+
return import(
|
|
1959
|
+
/* webpackMode: "lazy" */
|
|
1960
|
+
'./ix-category-filter.entry.js').then(processMod, consoleError);
|
|
1961
|
+
case 'ix-chip':
|
|
1962
|
+
return import(
|
|
1963
|
+
/* webpackMode: "lazy" */
|
|
1964
|
+
'./ix-chip.entry.js').then(processMod, consoleError);
|
|
1965
|
+
case 'ix-counter-pill':
|
|
1966
|
+
return import(
|
|
1967
|
+
/* webpackMode: "lazy" */
|
|
1968
|
+
'./ix-counter-pill.entry.js').then(processMod, consoleError);
|
|
1969
|
+
case 'ix-drawer':
|
|
1970
|
+
return import(
|
|
1971
|
+
/* webpackMode: "lazy" */
|
|
1972
|
+
'./ix-drawer.entry.js').then(processMod, consoleError);
|
|
1973
|
+
case 'ix-expanding-search':
|
|
1974
|
+
return import(
|
|
1975
|
+
/* webpackMode: "lazy" */
|
|
1976
|
+
'./ix-expanding-search.entry.js').then(processMod, consoleError);
|
|
1977
|
+
case 'ix-filter-chip':
|
|
1978
|
+
return import(
|
|
1979
|
+
/* webpackMode: "lazy" */
|
|
1980
|
+
'./ix-filter-chip.entry.js').then(processMod, consoleError);
|
|
1981
|
+
case 'ix-icon':
|
|
1982
|
+
return import(
|
|
1983
|
+
/* webpackMode: "lazy" */
|
|
1984
|
+
'./ix-icon.entry.js').then(processMod, consoleError);
|
|
1985
|
+
case 'ix-icon-button':
|
|
1986
|
+
return import(
|
|
1987
|
+
/* webpackMode: "lazy" */
|
|
1988
|
+
'./ix-icon-button.entry.js').then(processMod, consoleError);
|
|
1989
|
+
case 'ix-input-group':
|
|
1990
|
+
return import(
|
|
1991
|
+
/* webpackMode: "lazy" */
|
|
1992
|
+
'./ix-input-group.entry.js').then(processMod, consoleError);
|
|
1993
|
+
case 'ix-message-bar':
|
|
1994
|
+
return import(
|
|
1995
|
+
/* webpackMode: "lazy" */
|
|
1996
|
+
'./ix-message-bar.entry.js').then(processMod, consoleError);
|
|
1997
|
+
case 'ix-pill':
|
|
1998
|
+
return import(
|
|
1999
|
+
/* webpackMode: "lazy" */
|
|
2000
|
+
'./ix-pill.entry.js').then(processMod, consoleError);
|
|
2001
|
+
case 'ix-spinner':
|
|
2002
|
+
return import(
|
|
2003
|
+
/* webpackMode: "lazy" */
|
|
2004
|
+
'./ix-spinner.entry.js').then(processMod, consoleError);
|
|
2005
|
+
case 'ix-tile':
|
|
2006
|
+
return import(
|
|
2007
|
+
/* webpackMode: "lazy" */
|
|
2008
|
+
'./ix-tile.entry.js').then(processMod, consoleError);
|
|
2009
|
+
case 'ix-toggle':
|
|
2010
|
+
return import(
|
|
2011
|
+
/* webpackMode: "lazy" */
|
|
2012
|
+
'./ix-toggle.entry.js').then(processMod, consoleError);
|
|
2013
|
+
case 'ix-upload':
|
|
2014
|
+
return import(
|
|
2015
|
+
/* webpackMode: "lazy" */
|
|
2016
|
+
'./ix-upload.entry.js').then(processMod, consoleError);
|
|
2017
|
+
case 'ix-animated-tab_2':
|
|
2018
|
+
return import(
|
|
2019
|
+
/* webpackMode: "lazy" */
|
|
2020
|
+
'./ix-animated-tab_2.entry.js').then(processMod, consoleError);
|
|
2021
|
+
case 'ix-breadcrumb_2':
|
|
2022
|
+
return import(
|
|
2023
|
+
/* webpackMode: "lazy" */
|
|
2024
|
+
'./ix-breadcrumb_2.entry.js').then(processMod, consoleError);
|
|
2025
|
+
case 'ix-dropdown_2':
|
|
2026
|
+
return import(
|
|
2027
|
+
/* webpackMode: "lazy" */
|
|
2028
|
+
'./ix-dropdown_2.entry.js').then(processMod, consoleError);
|
|
2029
|
+
case 'ix-event-list_2':
|
|
2030
|
+
return import(
|
|
2031
|
+
/* webpackMode: "lazy" */
|
|
2032
|
+
'./ix-event-list_2.entry.js').then(processMod, consoleError);
|
|
2033
|
+
case 'ix-flip-tile_2':
|
|
2034
|
+
return import(
|
|
2035
|
+
/* webpackMode: "lazy" */
|
|
2036
|
+
'./ix-flip-tile_2.entry.js').then(processMod, consoleError);
|
|
2037
|
+
case 'ix-map-navigation_2':
|
|
2038
|
+
return import(
|
|
2039
|
+
/* webpackMode: "lazy" */
|
|
2040
|
+
'./ix-map-navigation_2.entry.js').then(processMod, consoleError);
|
|
2041
|
+
case 'ix-modal_2':
|
|
2042
|
+
return import(
|
|
2043
|
+
/* webpackMode: "lazy" */
|
|
2044
|
+
'./ix-modal_2.entry.js').then(processMod, consoleError);
|
|
2045
|
+
case 'ix-select_2':
|
|
2046
|
+
return import(
|
|
2047
|
+
/* webpackMode: "lazy" */
|
|
2048
|
+
'./ix-select_2.entry.js').then(processMod, consoleError);
|
|
2049
|
+
case 'ix-split-button_2':
|
|
2050
|
+
return import(
|
|
2051
|
+
/* webpackMode: "lazy" */
|
|
2052
|
+
'./ix-split-button_2.entry.js').then(processMod, consoleError);
|
|
2053
|
+
case 'ix-toast_2':
|
|
2054
|
+
return import(
|
|
2055
|
+
/* webpackMode: "lazy" */
|
|
2056
|
+
'./ix-toast_2.entry.js').then(processMod, consoleError);
|
|
2057
|
+
case 'ix-tree_2':
|
|
2058
|
+
return import(
|
|
2059
|
+
/* webpackMode: "lazy" */
|
|
2060
|
+
'./ix-tree_2.entry.js').then(processMod, consoleError);
|
|
2061
|
+
case 'ix-workflow-step_2':
|
|
2062
|
+
return import(
|
|
2063
|
+
/* webpackMode: "lazy" */
|
|
2064
|
+
'./ix-workflow-step_2.entry.js').then(processMod, consoleError);
|
|
2065
|
+
case 'ix-group_3':
|
|
2066
|
+
return import(
|
|
2067
|
+
/* webpackMode: "lazy" */
|
|
2068
|
+
'./ix-group_3.entry.js').then(processMod, consoleError);
|
|
2069
|
+
case 'ix-menu_9':
|
|
2070
|
+
return import(
|
|
2071
|
+
/* webpackMode: "lazy" */
|
|
2072
|
+
'./ix-menu_9.entry.js').then(processMod, consoleError);
|
|
2073
|
+
case 'ix-datetime-picker':
|
|
2074
|
+
return import(
|
|
2075
|
+
/* webpackMode: "lazy" */
|
|
2076
|
+
'./ix-datetime-picker.entry.js').then(processMod, consoleError);
|
|
2077
|
+
case 'ix-kpi':
|
|
2078
|
+
return import(
|
|
2079
|
+
/* webpackMode: "lazy" */
|
|
2080
|
+
'./ix-kpi.entry.js').then(processMod, consoleError);
|
|
2081
|
+
case 'ix-modal-example':
|
|
2082
|
+
return import(
|
|
2083
|
+
/* webpackMode: "lazy" */
|
|
2084
|
+
'./ix-modal-example.entry.js').then(processMod, consoleError);
|
|
2085
|
+
case 'ix-validation-tooltip':
|
|
2086
|
+
return import(
|
|
2087
|
+
/* webpackMode: "lazy" */
|
|
2088
|
+
'./ix-validation-tooltip.entry.js').then(processMod, consoleError);
|
|
2089
|
+
case 'my-component':
|
|
2090
|
+
return import(
|
|
2091
|
+
/* webpackMode: "lazy" */
|
|
2092
|
+
'./my-component.entry.js').then(processMod, consoleError);
|
|
2093
|
+
case 'ix-date-picker_2':
|
|
2094
|
+
return import(
|
|
2095
|
+
/* webpackMode: "lazy" */
|
|
2096
|
+
'./ix-date-picker_2.entry.js').then(processMod, consoleError);
|
|
2097
|
+
case 'ix-tab-item':
|
|
2098
|
+
return import(
|
|
2099
|
+
/* webpackMode: "lazy" */
|
|
2100
|
+
'./ix-tab-item.entry.js').then(processMod, consoleError);
|
|
2101
|
+
case 'ix-tabs':
|
|
2102
|
+
return import(
|
|
2103
|
+
/* webpackMode: "lazy" */
|
|
2104
|
+
'./ix-tabs.entry.js').then(processMod, consoleError);
|
|
2105
|
+
case 'ix-date-time-card':
|
|
2106
|
+
return import(
|
|
2107
|
+
/* webpackMode: "lazy" */
|
|
2108
|
+
'./ix-date-time-card.entry.js').then(processMod, consoleError);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
1934
2111
|
return import(
|
|
1935
2112
|
/* @vite-ignore */
|
|
1936
2113
|
/* webpackInclude: /\.entry\.js$/ */
|
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { I as InputState, L as LogicalFilterOperator } from './logical-filter-operator-1bf83315.js';
|
|
2
2
|
export { F as FlipTileState } from './flip-tile-state-28a1f8ce.js';
|
|
3
|
-
export { a as Modal, M as ModalContainer } from './modal-
|
|
4
|
-
export { c as convertToAbbreviationString, a as convertToRemString } from './rwd.util-
|
|
3
|
+
export { a as Modal, M as ModalContainer } from './modal-309a156f.js';
|
|
4
|
+
export { c as convertToAbbreviationString, a as convertToRemString } from './rwd.util-4a61a4b8.js';
|
|
5
5
|
export { c as closeModal, d as dismissModal, m as modal } from './modal-utils-ec39c1bc.js';
|
|
6
6
|
export { r as renderDefaultItem } from './default-tree-item-638c435a.js';
|
|
7
7
|
export { U as UploadFileState } from './upload-file-state-631bb8a2.js';
|
|
8
8
|
import './index-b22287de.js';
|
|
9
|
-
import './typed-event-
|
|
9
|
+
import './typed-event-ab58c27e.js';
|
|
10
10
|
import './anime.es-185e9087.js';
|
|
11
11
|
import './animation-b667a4c4.js';
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-b22287de.js';
|
|
2
2
|
import { a as anime } from './anime.es-185e9087.js';
|
|
3
3
|
import { A as Animation } from './animation-b667a4c4.js';
|
|
4
|
-
import { c as convertToAbbreviationString } from './rwd.util-
|
|
4
|
+
import { c as convertToAbbreviationString } from './rwd.util-4a61a4b8.js';
|
|
5
5
|
|
|
6
6
|
const animatedTabCss = ".sc-ix-animated-tab-h{display:block;height:100%;width:100%;position:absolute}";
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-b22287de.js';
|
|
2
2
|
|
|
3
|
-
const applicationHeaderCss = ":host{display:flex;align-items:center;position:relative;width:100%;height:2.75rem;padding-left:1rem;color:var(--theme-app-header-logo--color);background-color:var(--theme-app-header--background);border-bottom:var(--theme-app-header--border-width) solid var(--theme-app-header--border-color)}:host .name{margin-left:2.5rem;margin-right:2.5rem}:host .logo{display:inline-flex;align-items:center;position:relative;height:32px;overflow:hidden}";
|
|
3
|
+
const applicationHeaderCss = ":host{display:flex;align-items:center;position:relative;width:100%;height:2.75rem;padding-left:1rem;color:var(--theme-app-header-logo--color);background-color:var(--theme-app-header--background);border-bottom:var(--theme-app-header--border-width) solid var(--theme-app-header--border-color)}:host .name{margin-left:2.5rem;margin-right:2.5rem}:host .logo{display:inline-flex;align-items:center;position:relative;height:32px;overflow:hidden;line-height:0rem}";
|
|
4
4
|
|
|
5
5
|
const ApplicationHeader = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -18,7 +18,7 @@ const ApplicationHeader = class {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, null, h("div", { class: "logo" }, h("slot", { name: "logo" })), h("
|
|
21
|
+
return (h(Host, null, h("div", { class: "logo" }, h("slot", { name: "logo" })), h("div", { class: "name" }, this.name), h("slot", null)));
|
|
22
22
|
}
|
|
23
23
|
get host() { return getElement(this); }
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b22287de.js';
|
|
2
|
-
import { a as convertToRemString } from './rwd.util-
|
|
2
|
+
import { a as convertToRemString } from './rwd.util-4a61a4b8.js';
|
|
3
3
|
import { L as LogicalFilterOperator, I as InputState } from './logical-filter-operator-1bf83315.js';
|
|
4
4
|
|
|
5
5
|
const categoryFilterCss = ".sc-ix-category-filter-h{display:block;position:relative}.sc-ix-category-filter-h .focus.sc-ix-category-filter{border-color:var(--theme-color-primary);box-shadow:0 0 0.25rem 0 var(--theme-color-primary) !important}.sc-ix-category-filter-h .btn-close.sc-ix-category-filter{position:absolute;top:0.25rem;right:0.25rem;min-width:1.5rem;width:1.5rem;height:1.5rem}.sc-ix-category-filter-h .input-container.sc-ix-category-filter{display:flex;height:100%;max-height:3.75rem;padding:1px 1.5rem 1px 2rem}.sc-ix-category-filter-h .input-container.no-icon.sc-ix-category-filter{padding-left:0.25rem}.sc-ix-category-filter-h .token-container.sc-ix-category-filter{flex-grow:1;overflow:hidden}.sc-ix-category-filter-h .text-input.sc-ix-category-filter{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text);background:transparent;flex-grow:1;height:1.75rem}.sc-ix-category-filter-h .text-input.sc-ix-category-filter,.sc-ix-category-filter-h .text-input.sc-ix-category-filter:hover,.sc-ix-category-filter-h .text-input.sc-ix-category-filter:focus-visible{border:none;outline:none}.sc-ix-category-filter-h .text-input.hide-placeholder.sc-ix-category-filter::-moz-placeholder{opacity:0}.sc-ix-category-filter-h .text-input.hide-placeholder.sc-ix-category-filter::placeholder{opacity:0}.sc-ix-category-filter-h .list-unstyled.sc-ix-category-filter{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;overflow-y:auto}.sc-ix-category-filter-h ix-icon.sc-ix-category-filter{position:absolute;top:0.5rem;left:0.5rem}.sc-ix-category-filter-h ix-filter-chip.sc-ix-category-filter{margin-right:0.5rem}.sc-ix-category-filter-h .category-preview.sc-ix-category-filter{display:flex;align-items:center;height:1.5rem;background-color:var(--theme-bg-3);border-top-left-radius:1rem;border-bottom-left-radius:1rem;padding:0.5rem;margin:2px 0}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter{box-shadow:var(--theme-box-shadow-level-1);background:var(--theme-color-1);position:absolute;top:2rem;overflow-y:auto;min-width:10rem;border:var(--theme-std-bdr-1);border-radius:0.25rem;padding:0.5rem;z-index:1}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item.sc-ix-category-filter,.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-header.sc-ix-category-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:2rem;padding:0.5rem}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-header.sc-ix-category-filter{color:var(--theme-color-soft-text)}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-id.sc-ix-category-filter{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item-value.sc-ix-category-filter{border-top-right-radius:1rem;border-bottom-right-radius:1rem}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item.sc-ix-category-filter{cursor:pointer}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .category-item.sc-ix-category-filter:focus{background-color:var(--theme-generic-bg-active);outline:none}.sc-ix-category-filter-h .category-selection-container.sc-ix-category-filter .plain-text-suggestion.sc-ix-category-filter{border-radius:1rem}.sc-ix-category-filter-h ul.sc-ix-category-filter{height:100%}.sc-ix-category-filter-h ul.sc-ix-category-filter>li.sc-ix-category-filter,.sc-ix-category-filter-h input.sc-ix-category-filter{padding-top:2px;padding-bottom:2px}";
|
|
@@ -8688,7 +8688,7 @@ const DatePicker = class {
|
|
|
8688
8688
|
weekdays = days.reduce((result, item, index) => {
|
|
8689
8689
|
const weekIndex = Math.floor(index / this.daysInWeek);
|
|
8690
8690
|
if (!result[weekIndex])
|
|
8691
|
-
result[weekIndex] = [];
|
|
8691
|
+
result[weekIndex] = [];
|
|
8692
8692
|
result[weekIndex].push(item);
|
|
8693
8693
|
return result;
|
|
8694
8694
|
}, []);
|
|
@@ -50,7 +50,9 @@ const Drawer = class {
|
|
|
50
50
|
const target = evt.target;
|
|
51
51
|
const closestElement = target.closest('#div-container');
|
|
52
52
|
const btn = target.closest('#drawer-btn');
|
|
53
|
-
if (evt.target.type !==
|
|
53
|
+
if (evt.target.type !== 'button' &&
|
|
54
|
+
closestElement !== this.divElement &&
|
|
55
|
+
target !== btn) {
|
|
54
56
|
this.show = false;
|
|
55
57
|
}
|
|
56
58
|
}
|