@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
|
@@ -84,7 +84,7 @@ export class MapNavigation {
|
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* Open a overlay inside content area
|
|
87
|
-
* @deprecated
|
|
87
|
+
* @deprecated Will be removed in 2.0.0. Use slot based approach
|
|
88
88
|
*
|
|
89
89
|
* @param name
|
|
90
90
|
* @param component
|
|
@@ -113,7 +113,7 @@ export class MapNavigation {
|
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Close current shown overlay
|
|
116
|
-
* @deprecated
|
|
116
|
+
* @deprecated Will be removed in 2.0.0. Use slot based approach
|
|
117
117
|
*/
|
|
118
118
|
async closeOverlay() {
|
|
119
119
|
anime({
|
|
@@ -134,7 +134,7 @@ export class MapNavigation {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
|
-
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("
|
|
137
|
+
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))))));
|
|
138
138
|
}
|
|
139
139
|
static get is() { return "ix-map-navigation"; }
|
|
140
140
|
static get encapsulation() { return "scoped"; }
|
|
@@ -286,7 +286,7 @@ export class MapNavigation {
|
|
|
286
286
|
"text": "Open a overlay inside content area",
|
|
287
287
|
"tags": [{
|
|
288
288
|
"name": "deprecated",
|
|
289
|
-
"text": "
|
|
289
|
+
"text": "Will be removed in 2.0.0. Use slot based approach"
|
|
290
290
|
}, {
|
|
291
291
|
"name": "param",
|
|
292
292
|
"text": "name"
|
|
@@ -317,7 +317,7 @@ export class MapNavigation {
|
|
|
317
317
|
"text": "Close current shown overlay",
|
|
318
318
|
"tags": [{
|
|
319
319
|
"name": "deprecated",
|
|
320
|
-
"text": "
|
|
320
|
+
"text": "Will be removed in 2.0.0. Use slot based approach"
|
|
321
321
|
}]
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
import { Popover } from '../utils/popover.util';
|
|
11
11
|
export class MenuAvatar {
|
|
12
12
|
constructor() {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h } from '@stencil/core';
|
|
9
|
+
import { h, } from '@stencil/core';
|
|
10
10
|
export class MenuAvatarItem {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.icon = undefined;
|
|
@@ -79,7 +79,7 @@ export class MenuItem {
|
|
|
79
79
|
"docs": {
|
|
80
80
|
"tags": [{
|
|
81
81
|
"name": "deprecated",
|
|
82
|
-
"text": "
|
|
82
|
+
"text": "Will be removed in 2.0.0. Replaced by slot based implementation"
|
|
83
83
|
}],
|
|
84
84
|
"text": "Caution: this is no longer working. Please use slot=\"bottom\" instead.\n\nPlace tab on bottom"
|
|
85
85
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
import anime from 'animejs';
|
|
11
11
|
export class MessageBar {
|
|
12
12
|
constructor() {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
export class Select {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.selectedIndices = [];
|
|
@@ -25,7 +25,8 @@ export class Select {
|
|
|
25
25
|
this.isDropdownEmpty = false;
|
|
26
26
|
this.hasFocus = false;
|
|
27
27
|
this.navigationItem = undefined;
|
|
28
|
-
this.
|
|
28
|
+
this.inputFilterText = undefined;
|
|
29
|
+
this.inputValue = undefined;
|
|
29
30
|
}
|
|
30
31
|
get items() {
|
|
31
32
|
return Array.from(this.hostElement.querySelectorAll('ix-select-item'));
|
|
@@ -43,9 +44,15 @@ export class Select {
|
|
|
43
44
|
return this.mode === 'multiple';
|
|
44
45
|
}
|
|
45
46
|
watchSelectedIndices(newId) {
|
|
46
|
-
if (newId) {
|
|
47
|
+
if (!newId) {
|
|
48
|
+
this.selectValue([]);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (Array.isArray(newId)) {
|
|
47
52
|
this.selectValue([...newId]);
|
|
53
|
+
return;
|
|
48
54
|
}
|
|
55
|
+
this.selectValue([newId]);
|
|
49
56
|
}
|
|
50
57
|
onItemClicked(event) {
|
|
51
58
|
const newId = event.detail;
|
|
@@ -87,10 +94,16 @@ export class Select {
|
|
|
87
94
|
this.addItem.emit(value);
|
|
88
95
|
}
|
|
89
96
|
selectValue(ids) {
|
|
97
|
+
var _a;
|
|
90
98
|
this.items.forEach((item) => {
|
|
91
99
|
item.selected = ids.some((i) => i === item.value);
|
|
92
100
|
});
|
|
93
101
|
this.value = this.selectedItems.map((item) => item.label);
|
|
102
|
+
if (this.isSingleMode) {
|
|
103
|
+
this.inputValue = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) ? this.value[0] : null;
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
this.inputValue = null;
|
|
94
107
|
}
|
|
95
108
|
componentWillLoad() {
|
|
96
109
|
if (this.selectedIndices) {
|
|
@@ -99,6 +112,23 @@ export class Select {
|
|
|
99
112
|
: [this.selectedIndices]);
|
|
100
113
|
}
|
|
101
114
|
}
|
|
115
|
+
componentDidLoad() {
|
|
116
|
+
this.labelMutationObserver = new MutationObserver(() => {
|
|
117
|
+
this.selectValue(Array.isArray(this.selectedIndices)
|
|
118
|
+
? this.selectedIndices
|
|
119
|
+
: [this.selectedIndices]);
|
|
120
|
+
});
|
|
121
|
+
this.labelMutationObserver.observe(this.hostElement, {
|
|
122
|
+
subtree: true,
|
|
123
|
+
attributes: true,
|
|
124
|
+
attributeFilter: ['label'],
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
disconnectedCallback() {
|
|
128
|
+
if (this.labelMutationObserver) {
|
|
129
|
+
this.labelMutationObserver.disconnect();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
102
132
|
itemExists(item) {
|
|
103
133
|
return this.items.find((i) => i.label === item);
|
|
104
134
|
}
|
|
@@ -129,8 +159,8 @@ export class Select {
|
|
|
129
159
|
}
|
|
130
160
|
async onEnterNavigation() {
|
|
131
161
|
var _a, _b;
|
|
132
|
-
if (this.editable && !this.itemExists(this.
|
|
133
|
-
this.emitAddItem(this.
|
|
162
|
+
if (this.editable && !this.itemExists(this.inputFilterText)) {
|
|
163
|
+
this.emitAddItem(this.inputFilterText);
|
|
134
164
|
this.navigationItem = this.items[this.items.length - 1];
|
|
135
165
|
}
|
|
136
166
|
(_a = this.navigationItem) === null || _a === void 0 ? void 0 : _a.onItemClick();
|
|
@@ -158,11 +188,11 @@ export class Select {
|
|
|
158
188
|
});
|
|
159
189
|
}
|
|
160
190
|
filterItemsWithTypeahead() {
|
|
161
|
-
this.
|
|
162
|
-
if (this.
|
|
191
|
+
this.inputFilterText = this.inputRef.value;
|
|
192
|
+
if (this.inputFilterText) {
|
|
163
193
|
this.items.forEach((item) => {
|
|
164
194
|
item.classList.remove('d-none');
|
|
165
|
-
if (!item.label.toLowerCase().includes(this.
|
|
195
|
+
if (!item.label.toLowerCase().includes(this.inputFilterText.toLowerCase())) {
|
|
166
196
|
item.classList.add('d-none');
|
|
167
197
|
}
|
|
168
198
|
});
|
|
@@ -179,7 +209,7 @@ export class Select {
|
|
|
179
209
|
}
|
|
180
210
|
clearInput() {
|
|
181
211
|
this.inputRef.value = '';
|
|
182
|
-
this.
|
|
212
|
+
this.inputFilterText = '';
|
|
183
213
|
}
|
|
184
214
|
clear() {
|
|
185
215
|
this.clearInput();
|
|
@@ -187,13 +217,6 @@ export class Select {
|
|
|
187
217
|
this.selectedIndices = [];
|
|
188
218
|
this.itemSelectionChange.emit(null);
|
|
189
219
|
}
|
|
190
|
-
getInputValue() {
|
|
191
|
-
var _a;
|
|
192
|
-
if (this.isSingleMode) {
|
|
193
|
-
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) ? this.value[0] : null;
|
|
194
|
-
}
|
|
195
|
-
return null;
|
|
196
|
-
}
|
|
197
220
|
render() {
|
|
198
221
|
var _a, _b, _c;
|
|
199
222
|
return (h(Host, null, h("div", { class: {
|
|
@@ -215,10 +238,10 @@ export class Select {
|
|
|
215
238
|
'allow-clear': this.allowClear && !!((_b = this.value) === null || _b === void 0 ? void 0 : _b.length),
|
|
216
239
|
}, placeholder: this.editable
|
|
217
240
|
? this.i18nPlaceholderEditable
|
|
218
|
-
: this.i18nPlaceholder, value: this.
|
|
241
|
+
: 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) => {
|
|
219
242
|
if (this.editable)
|
|
220
243
|
this.dropdownWrapperRef = ref;
|
|
221
|
-
} }, h("ix-icon", { class: "chevron", name: "chevron-down-small" }))))), this.allowClear && (((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) || this.
|
|
244
|
+
} }, 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) => {
|
|
222
245
|
e.preventDefault();
|
|
223
246
|
e.stopPropagation();
|
|
224
247
|
this.clear();
|
|
@@ -228,13 +251,13 @@ export class Select {
|
|
|
228
251
|
'd-none': this.disabled ||
|
|
229
252
|
this.readonly ||
|
|
230
253
|
(this.isDropdownEmpty && !this.editable),
|
|
231
|
-
}, 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.
|
|
254
|
+
}, 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: {
|
|
232
255
|
'add-item': true,
|
|
233
|
-
'd-none': !(this.editable && this.
|
|
234
|
-
}, label: this.
|
|
256
|
+
'd-none': !(this.editable && this.inputFilterText),
|
|
257
|
+
}, label: this.inputFilterText, onItemClick: (e) => {
|
|
235
258
|
e.preventDefault();
|
|
236
259
|
e.stopPropagation();
|
|
237
|
-
this.emitAddItem(this.
|
|
260
|
+
this.emitAddItem(this.inputFilterText);
|
|
238
261
|
} })))));
|
|
239
262
|
}
|
|
240
263
|
static get is() { return "ix-select"; }
|
|
@@ -424,7 +447,8 @@ export class Select {
|
|
|
424
447
|
"isDropdownEmpty": {},
|
|
425
448
|
"hasFocus": {},
|
|
426
449
|
"navigationItem": {},
|
|
427
|
-
"
|
|
450
|
+
"inputFilterText": {},
|
|
451
|
+
"inputValue": {}
|
|
428
452
|
};
|
|
429
453
|
}
|
|
430
454
|
static get events() {
|
|
@@ -466,7 +490,7 @@ export class Select {
|
|
|
466
490
|
"propName": "selectedIndices",
|
|
467
491
|
"methodName": "watchSelectedIndices"
|
|
468
492
|
}, {
|
|
469
|
-
"propName": "
|
|
493
|
+
"propName": "inputFilterText",
|
|
470
494
|
"methodName": "watchInputText"
|
|
471
495
|
}];
|
|
472
496
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
export class SelectItem {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.label = undefined;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { createPopper } from '@popperjs/core';
|
|
10
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { createPopper, } from '@popperjs/core';
|
|
10
|
+
import { h, Host, } from '@stencil/core';
|
|
11
11
|
import { getButtonClasses } from '../button/base-button';
|
|
12
12
|
export class SplitButton {
|
|
13
13
|
constructor() {
|
|
@@ -134,7 +134,7 @@ export class SplitButton {
|
|
|
134
134
|
"docs": {
|
|
135
135
|
"tags": [{
|
|
136
136
|
"name": "deprecated",
|
|
137
|
-
"text": "
|
|
137
|
+
"text": "Will be removed in 2.0.0. Use ghost property"
|
|
138
138
|
}],
|
|
139
139
|
"text": "Button invisible"
|
|
140
140
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h } from '@stencil/core';
|
|
9
|
+
import { h, } from '@stencil/core';
|
|
10
10
|
export class SplitButtonItem {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.icon = undefined;
|
|
@@ -27,7 +27,7 @@ export class TabItem {
|
|
|
27
27
|
stretched: props.layout === 'stretched',
|
|
28
28
|
bottom: props.placement === 'bottom',
|
|
29
29
|
top: props.placement === 'top',
|
|
30
|
-
circle: props.circle
|
|
30
|
+
circle: props.circle,
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
@@ -39,7 +39,17 @@ export class TabItem {
|
|
|
39
39
|
layout: this.layout,
|
|
40
40
|
placement: this.placement,
|
|
41
41
|
circle: this.rounded,
|
|
42
|
-
}), tabIndex: 0 }, h("div", { class: {
|
|
42
|
+
}), tabIndex: 0 }, h("div", { class: {
|
|
43
|
+
circle: this.rounded,
|
|
44
|
+
text: !this.rounded,
|
|
45
|
+
selected: this.selected,
|
|
46
|
+
disabled: this.disabled,
|
|
47
|
+
} }, h("slot", null)), h("div", { class: {
|
|
48
|
+
counter: true,
|
|
49
|
+
selected: this.selected,
|
|
50
|
+
hidden: !(this.rounded && this.counter !== undefined),
|
|
51
|
+
disabled: this.disabled,
|
|
52
|
+
} }, this.counter)));
|
|
43
53
|
}
|
|
44
54
|
static get is() { return "ix-tab-item"; }
|
|
45
55
|
static get originalStyleUrls() {
|
|
@@ -86,7 +86,7 @@ export class Tabs {
|
|
|
86
86
|
amount = amount > 0 ? 0 : amount < maxScrollWidth ? maxScrollWidth : amount;
|
|
87
87
|
const styles = [
|
|
88
88
|
`transform: translateX(${amount}px);`,
|
|
89
|
-
click ?
|
|
89
|
+
click ? 'transition: all ease-in-out 400ms;' : '',
|
|
90
90
|
].join('');
|
|
91
91
|
tabWrapper.setAttribute('style', styles);
|
|
92
92
|
if (click)
|
|
@@ -114,7 +114,7 @@ export class Tabs {
|
|
|
114
114
|
if (!this.showArrows())
|
|
115
115
|
return;
|
|
116
116
|
if (event.button > 0)
|
|
117
|
-
return;
|
|
117
|
+
return;
|
|
118
118
|
this.clickAction.timeout =
|
|
119
119
|
this.clickAction.timeout === null
|
|
120
120
|
? setTimeout(() => (this.clickAction.isClick = false), 300)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
import { DateTime } from 'luxon';
|
|
11
11
|
export class TimePicker {
|
|
12
12
|
constructor() {
|
|
@@ -172,7 +172,7 @@ export class TimePicker {
|
|
|
172
172
|
"docs": {
|
|
173
173
|
"tags": [{
|
|
174
174
|
"name": "deprecated",
|
|
175
|
-
"text": "
|
|
175
|
+
"text": "Will be removed in 2.0.0"
|
|
176
176
|
}],
|
|
177
177
|
"text": ""
|
|
178
178
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
export class Toast {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.type = 'info';
|
|
@@ -47,7 +47,7 @@ export class Toast {
|
|
|
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`,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
export class CuiToggle {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.checked = false;
|
|
@@ -130,7 +130,7 @@ export class CuiToggle {
|
|
|
130
130
|
"docs": {
|
|
131
131
|
"tags": [{
|
|
132
132
|
"name": "deprecated",
|
|
133
|
-
"text": "
|
|
133
|
+
"text": "Will be removed in 2.0.0"
|
|
134
134
|
}],
|
|
135
135
|
"text": "Basic and status colors from color palette"
|
|
136
136
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import { h, Host } from '@stencil/core';
|
|
9
|
+
import { h, Host, } from '@stencil/core';
|
|
10
10
|
import Hyperlist from 'hyperlist';
|
|
11
11
|
import { renderDefaultItem } from '../tree-item/default-tree-item';
|
|
12
12
|
export class Tree {
|
|
@@ -21,9 +21,9 @@ export 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;
|
|
@@ -27,16 +27,16 @@ export 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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
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 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -20,7 +20,7 @@ const ApplicationHeader = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, null, h("div", { class: "logo" }, h("slot", { name: "logo" })), h("
|
|
23
|
+
return (h(Host, null, h("div", { class: "logo" }, h("slot", { name: "logo" })), h("div", { class: "name" }, this.name), h("slot", null)));
|
|
24
24
|
}
|
|
25
25
|
get host() { return this; }
|
|
26
26
|
static get style() { return applicationHeaderCss; }
|
|
@@ -113,7 +113,7 @@ const DatePicker = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
113
113
|
weekdays = days.reduce((result, item, index) => {
|
|
114
114
|
const weekIndex = Math.floor(index / this.daysInWeek);
|
|
115
115
|
if (!result[weekIndex])
|
|
116
|
-
result[weekIndex] = [];
|
|
116
|
+
result[weekIndex] = [];
|
|
117
117
|
result[weekIndex].push(item);
|
|
118
118
|
return result;
|
|
119
119
|
}, []);
|
package/dist/components/icon.js
CHANGED
|
@@ -14,10 +14,10 @@ const Icon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
14
14
|
return (h(Host, { style: {
|
|
15
15
|
color: this.color ? `var(--theme-${this.color})` : 'inherit',
|
|
16
16
|
}, class: {
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
17
|
+
['size-12']: this.size === '12',
|
|
18
|
+
['size-16']: this.size === '16',
|
|
19
|
+
['size-24']: this.size === '24',
|
|
20
|
+
['size-32']: this.size === '32',
|
|
21
21
|
} }, h("i", { class: {
|
|
22
22
|
glyph: true,
|
|
23
23
|
[`glyph-${this.name}`]: true,
|
|
@@ -53,7 +53,9 @@ const Drawer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
53
53
|
const target = evt.target;
|
|
54
54
|
const closestElement = target.closest('#div-container');
|
|
55
55
|
const btn = target.closest('#drawer-btn');
|
|
56
|
-
if (evt.target.type !==
|
|
56
|
+
if (evt.target.type !== 'button' &&
|
|
57
|
+
closestElement !== this.divElement &&
|
|
58
|
+
target !== btn) {
|
|
57
59
|
this.show = false;
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const eventListItemCss = ".ix-event-list-item{display:flex;align-items:center;position:relative;height:2.5rem;max-height:2.5rem;border-radius:0.25rem;background-color:var(--theme-event-
|
|
3
|
+
const eventListItemCss = ".ix-event-list-item{display:flex;align-items:center;position:relative;height:2.5rem;max-height:2.5rem;border-radius:0.25rem;background-color:var(--theme-event-item--background);overflow:hidden;cursor:pointer;margin-bottom:0.5rem}.ix-event-list-item:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item:not(.disabled):not(:disabled):hover{background-color:var(--theme-event-item--background--hover)}.ix-event-list-item:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item:not(.disabled):not(:disabled):active{background-color:var(--theme-event-item--background--active)}.ix-event-list-item .indicator{height:100%;width:0.5rem;max-width:0.5rem;min-width:0.5rem;border-top-left-radius:0.25rem;border-bottom-left-radius:0.25rem}.ix-event-list-item .indicator-empty{border:var(--theme-weak-bdr-1);border-right:none}.ix-event-list-item .event-list-item-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-grow:1;width:calc(100% - (1rem + 0.5rem));height:100%;border:0.062rem solid;border-color:var(--theme-event-item--border);border-top-left-radius:0;border-top-right-radius:0.25rem;border-bottom-left-radius:0;border-bottom-right-radius:0.25rem;border-left:none;padding-left:1rem}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled):hover{border-color:var(--theme-event-item--border--hover)}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}.ix-event-list-item .event-list-item-container:not(.disabled):not(:disabled):active{border-color:var(--theme-event-item--border--active)}.ix-event-list-item.selected:not(:active,.active) .event-list-item-container{background-color:var(--theme-event-item--background--selected);border-color:var(--theme-event-item--border--selected)}.ix-event-list-item[disabled],.ix-event-list-item.disabled{pointer-events:none}.ix-event-list-item[disabled] .event-list-item-container,.ix-event-list-item.disabled .event-list-item-container{background-color:var(--theme-event-item--background--disabled);border-color:var(--theme-event-item--border--disabled)}.ix-event-list-item .chevron-icon{margin-left:auto;margin-right:0.5rem;opacity:0.6;align-self:center}.ix-event-list-item .event-content{display:flex;align-items:center;width:100%;height:100%;overflow:hidden}";
|
|
4
4
|
|
|
5
5
|
const EventListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -26,7 +26,7 @@ const EventListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
26
26
|
? `var(--theme-${this.color})`
|
|
27
27
|
: 'inherit',
|
|
28
28
|
opacity: `${this.disabled ? 0.4 : this.opacity}`,
|
|
29
|
-
} }), h("div", { class: "event-list-item-container" }, h("div", { class: "event-content" }, h("slot", null)), h("i", { class: "glyph glyph-16 glyph-chevron-right chevron-icon" }))));
|
|
29
|
+
} }), h("div", { class: "event-list-item-container" }, h("div", { class: "event-content" }, h("slot", null)), this.chevron ? (h("i", { class: "glyph glyph-16 glyph-chevron-right chevron-icon" })) : (''))));
|
|
30
30
|
}
|
|
31
31
|
get el() { return this; }
|
|
32
32
|
static get style() { return eventListItemCss; }
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { c as createMutationObserver } from './mutation-observer.js';
|
|
3
3
|
import { a as convertToRemString } from './rwd.util.js';
|
|
4
4
|
|
|
5
|
-
const eventListCss = ".sc-ix-event-list-h{display:block;position:relative}ul.sc-ix-event-list{list-style:none;padding:0;margin-bottom:0}.sc-ix-event-list-s>.sc-ix-event-list-h:not(.item-size-s) .ix-event-list-item,.sc-ix-event-list-h:not(.item-size-l) .ix-event-list-item.sc-ix-event-list{display:none}.sc-ix-event-list-h.chevron .sc-ix-event-list-s .ix-event-list-item .chevron-icon{display:initial}.item-size-l .sc-ix-event-list-s .ix-event-list-item{height:6.5rem;max-height:6.5rem}.item-size-l .sc-ix-event-list-s .ix-event-list-item .event-content{height:6.5rem;max-height:6.5rem;white-space:normal}.compact .sc-ix-event-list-s .ix-event-list-item{margin-bottom:0px;border-radius:0px}.compact .sc-ix-event-list-s .ix-event-list-item .indicator{border-top-left-radius:0px;border-bottom-left-radius:0px}.compact .sc-ix-event-list-s .ix-event-list-item .event-list-item-container{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.compact
|
|
5
|
+
const eventListCss = ".sc-ix-event-list-h{display:block;position:relative}ul.sc-ix-event-list{list-style:none;padding:0;margin-bottom:0}.sc-ix-event-list-s>.sc-ix-event-list-h:not(.item-size-s) .ix-event-list-item,.sc-ix-event-list-h:not(.item-size-l) .ix-event-list-item.sc-ix-event-list{display:none}.sc-ix-event-list-h.chevron .sc-ix-event-list-s .ix-event-list-item .chevron-icon{display:initial}.item-size-l .sc-ix-event-list-s .ix-event-list-item{height:6.5rem;max-height:6.5rem}.item-size-l .sc-ix-event-list-s .ix-event-list-item .event-content{height:6.5rem;max-height:6.5rem;white-space:normal}.compact .sc-ix-event-list-s .ix-event-list-item{margin-bottom:0px;border-radius:0px}.compact .sc-ix-event-list-s .ix-event-list-item .indicator{border-top-left-radius:0px;border-bottom-left-radius:0px}.compact .sc-ix-event-list-s .ix-event-list-item .event-list-item-container{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.compact.sc-ix-event-list .compact.sc-ix-event-list:not(:last-child) .event-list-item-container.sc-ix-event-list{border-bottom:none}";
|
|
6
6
|
|
|
7
7
|
const EventList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
8
|
constructor() {
|