@siemens/ix 1.1.1 → 1.2.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 → index-17eb8998.js} +241 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +1 -1
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/ix-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-counter-pill.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +4 -2
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-expanding-search.cjs.entry.js +1 -1
- package/dist/cjs/ix-filter-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +37 -0
- package/dist/cjs/ix-group_3.cjs.entry.js +4 -4
- package/dist/cjs/ix-icon-button.cjs.entry.js +5 -2
- package/dist/cjs/ix-icon.cjs.entry.js +5 -5
- package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +1 -1
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu_9.cjs.entry.js +3 -3
- package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-pill.cjs.entry.js +1 -1
- package/dist/cjs/ix-select_2.cjs.entry.js +21 -13
- package/dist/cjs/ix-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ix-split-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-tab-item.cjs.entry.js +13 -3
- package/dist/cjs/ix-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ix-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-toast_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-42934387.js → modal-e4a6983d.js} +3 -2
- package/dist/cjs/{modal-utils-5d7bb217.js → modal-utils-9ee0acda.js} +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/{rwd.util-482d41d4.js → rwd.util-2326824e.js} +2 -2
- package/dist/cjs/siemens-ix.cjs.js +2 -2
- package/dist/cjs/{typed-event-8f5a32a2.js → typed-event-5030cc6a.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/blind/blind.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/chip/chip.js +2 -2
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/drawer/drawer.js +4 -2
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- 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-context-menu.css +24 -0
- package/dist/collection/components/group/group-context-menu.js +51 -0
- package/dist/collection/components/group/group.css +1 -11
- package/dist/collection/components/group/group.js +2 -2
- package/dist/collection/components/group-item/group-item.css +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.css +42 -0
- package/dist/collection/components/icon-button/icon-button.js +11 -1
- 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/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal-utils.js +1 -1
- package/dist/collection/components/modal/modal.js +8 -2
- package/dist/collection/components/modal-container/modal-container.js +5 -4
- package/dist/collection/components/select/select.css +7 -14
- package/dist/collection/components/select/select.js +19 -11
- package/dist/collection/components/select-item/select-item.js +1 -1
- 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/toast/toast.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/date-picker.js +1 -1
- package/dist/components/group-context-menu.js +61 -0
- package/dist/components/group-item.js +1 -1
- package/dist/components/icon-button.js +4 -1
- package/dist/components/icon.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/ix-drawer.js +3 -1
- package/dist/components/ix-group-context-menu.d.ts +11 -0
- package/dist/components/ix-group-context-menu.js +6 -0
- package/dist/components/ix-group.js +5 -5
- package/dist/components/ix-menu-avatar.js +1 -1
- package/dist/components/ix-modal-example.js +1 -1
- package/dist/components/ix-select.js +20 -12
- package/dist/components/map-navigation-overlay.js +1 -1
- package/dist/components/modal-container.js +1 -0
- 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 → index-6f4f3582.js} +241 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/ix-animated-tab_2.entry.js +2 -2
- package/dist/esm/ix-application-header.entry.js +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +1 -1
- package/dist/esm/ix-blind.entry.js +1 -1
- package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ix-button.entry.js +1 -1
- package/dist/esm/ix-category-filter.entry.js +2 -2
- package/dist/esm/ix-chip.entry.js +1 -1
- package/dist/esm/ix-counter-pill.entry.js +1 -1
- package/dist/esm/ix-date-picker_2.entry.js +2 -2
- package/dist/esm/ix-date-time-card.entry.js +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +4 -2
- package/dist/esm/ix-dropdown_2.entry.js +1 -1
- package/dist/esm/ix-event-list_2.entry.js +2 -2
- package/dist/esm/ix-expanding-search.entry.js +1 -1
- package/dist/esm/ix-filter-chip.entry.js +1 -1
- package/dist/esm/ix-flip-tile_2.entry.js +1 -1
- package/dist/esm/ix-group-context-menu.entry.js +33 -0
- package/dist/esm/ix-group_3.entry.js +4 -4
- package/dist/esm/ix-icon-button.entry.js +5 -2
- package/dist/esm/ix-icon.entry.js +5 -5
- package/dist/esm/ix-input-group.entry.js +1 -1
- package/dist/esm/ix-kpi.entry.js +1 -1
- package/dist/esm/ix-map-navigation_2.entry.js +2 -2
- package/dist/esm/ix-menu_9.entry.js +3 -3
- package/dist/esm/ix-message-bar.entry.js +1 -1
- package/dist/esm/ix-modal-example.entry.js +2 -2
- package/dist/esm/ix-modal_2.entry.js +3 -3
- package/dist/esm/ix-pill.entry.js +1 -1
- package/dist/esm/ix-select_2.entry.js +21 -13
- package/dist/esm/ix-spinner.entry.js +1 -1
- package/dist/esm/ix-split-button_2.entry.js +1 -1
- package/dist/esm/ix-tab-item.entry.js +13 -3
- package/dist/esm/ix-tabs.entry.js +3 -3
- package/dist/esm/ix-tile.entry.js +1 -1
- package/dist/esm/ix-toast_2.entry.js +3 -3
- package/dist/esm/ix-toggle.entry.js +1 -1
- package/dist/esm/ix-tree_2.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +1 -1
- package/dist/esm/ix-workflow-step_2.entry.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{modal-f1e45879.js → modal-e7343756.js} +3 -2
- package/dist/esm/{modal-utils-ec39c1bc.js → modal-utils-df50b35a.js} +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/{rwd.util-33a69d24.js → rwd.util-4a61a4b8.js} +2 -2
- package/dist/esm/siemens-ix.js +2 -2
- 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-05c16b94.js +2 -0
- package/dist/siemens-ix/{p-6d075808.entry.js → p-0a8cfa42.entry.js} +1 -1
- package/dist/siemens-ix/{p-4f2fbbb5.entry.js → p-150d7a02.entry.js} +1 -1
- package/dist/siemens-ix/p-16e95211.entry.js +1 -0
- package/dist/siemens-ix/{p-b49fbfc3.entry.js → p-1cf3348f.entry.js} +1 -1
- package/dist/siemens-ix/p-1fe97752.entry.js +1 -0
- package/dist/siemens-ix/{p-0e3aab52.entry.js → p-23d5469a.entry.js} +1 -1
- package/dist/siemens-ix/p-23d79e3d.entry.js +1 -0
- package/dist/siemens-ix/{p-c1674778.entry.js → p-2e24ae23.entry.js} +1 -1
- package/dist/siemens-ix/{p-e0c85889.entry.js → p-33283dbf.entry.js} +1 -1
- package/dist/siemens-ix/{p-477681a5.entry.js → p-3663f989.entry.js} +1 -1
- package/dist/siemens-ix/{p-d1a17dd8.entry.js → p-418e2d14.entry.js} +1 -1
- package/dist/siemens-ix/{p-e5da6672.entry.js → p-47d55e3d.entry.js} +1 -1
- package/dist/siemens-ix/{p-6f625f0e.js → p-4944ad0b.js} +0 -0
- package/dist/siemens-ix/{p-56bba5f9.entry.js → p-4b170382.entry.js} +1 -1
- package/dist/siemens-ix/{p-eff31ef4.entry.js → p-537f0678.entry.js} +1 -1
- package/dist/siemens-ix/{p-d62d2304.entry.js → p-5661957c.entry.js} +1 -1
- package/dist/siemens-ix/{p-1cd8f35f.entry.js → p-592f1ed3.entry.js} +1 -1
- package/dist/siemens-ix/{p-afefc17c.entry.js → p-5e222be2.entry.js} +1 -1
- package/dist/siemens-ix/{p-aa620cc7.entry.js → p-65e61684.entry.js} +1 -1
- package/dist/siemens-ix/{p-b7a46add.entry.js → p-72f851ae.entry.js} +1 -1
- package/dist/siemens-ix/{p-d5199425.entry.js → p-7adc0686.entry.js} +1 -1
- package/dist/siemens-ix/{p-0cdac3da.entry.js → p-8a7141a6.entry.js} +1 -1
- package/dist/siemens-ix/{p-18652f43.entry.js → p-8b4e4718.entry.js} +1 -1
- package/dist/siemens-ix/p-94604cdf.js +1 -0
- package/dist/siemens-ix/{p-8c5948e2.entry.js → p-9566c834.entry.js} +1 -1
- package/dist/siemens-ix/p-96e46f99.js +1 -0
- package/dist/siemens-ix/{p-b8849072.entry.js → p-9b5290d4.entry.js} +1 -1
- package/dist/siemens-ix/{p-5b4399b3.entry.js → p-9e90827e.entry.js} +1 -1
- package/dist/siemens-ix/{p-fca4a226.entry.js → p-a12f6079.entry.js} +1 -1
- package/dist/siemens-ix/p-a5fa7ae5.entry.js +1 -0
- package/dist/siemens-ix/{p-a4ed41f9.entry.js → p-a88618e3.entry.js} +1 -1
- package/dist/siemens-ix/{p-9cc43bf2.entry.js → p-b242bd39.entry.js} +1 -1
- package/dist/siemens-ix/{p-b18d15c7.entry.js → p-be641020.entry.js} +1 -1
- package/dist/siemens-ix/p-c0fecc2b.entry.js +1 -0
- package/dist/siemens-ix/{p-38a598ed.entry.js → p-c3e90c06.entry.js} +1 -1
- package/dist/siemens-ix/{p-0bf04780.js → p-c8cc3bb3.js} +0 -0
- package/dist/siemens-ix/{p-25fda9f7.entry.js → p-c993560f.entry.js} +1 -1
- package/dist/siemens-ix/{p-44ab1dce.entry.js → p-cc0f6f6b.entry.js} +1 -1
- package/dist/siemens-ix/{p-0a85cdff.entry.js → p-d0bb8225.entry.js} +1 -1
- package/dist/siemens-ix/{p-7fb73253.entry.js → p-d8688602.entry.js} +1 -1
- package/dist/siemens-ix/{p-87c46ff3.entry.js → p-e2925222.entry.js} +1 -1
- package/dist/siemens-ix/{p-8e60010d.entry.js → p-e7621b0a.entry.js} +1 -1
- package/dist/siemens-ix/{p-746ebc92.entry.js → p-ea333007.entry.js} +1 -1
- package/dist/siemens-ix/{p-1d1eeeea.entry.js → p-eb150313.entry.js} +1 -1
- package/dist/siemens-ix/{p-dc8f82d5.entry.js → p-eed28e55.entry.js} +1 -1
- package/dist/siemens-ix/{p-72b5c8d5.entry.js → p-f7be9635.entry.js} +1 -1
- package/dist/siemens-ix/{p-f34f7e30.entry.js → p-fecf0ade.entry.js} +1 -1
- package/dist/siemens-ix/siemens-ix.css +37 -62
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/chip/chip.d.ts +1 -1
- package/dist/types/components/group/group-context-menu.d.ts +11 -0
- package/dist/types/components/modal/modal-utils.d.ts +10 -7
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal-container/modal-container.d.ts +2 -6
- package/dist/types/components.d.ts +20 -7
- package/package.json +2 -2
- package/scss/components/_buttons.scss +1 -12
- package/scss/components/_checkboxes.scss +14 -18
- package/scss/components/_modal.scss +1 -1
- package/scss/components/_radiobuttons.scss +12 -43
- package/scss/theme/classic-dark/_variables.scss +3 -3
- package/scss/theme/classic-light/_variables.scss +1 -2
- package/src/components/chip/readme.md +9 -9
- package/src/components/group/readme.md +0 -22
- package/src/components/modal/readme.md +2 -2
- package/src/components/modal-container/readme.md +2 -2
- package/dist/siemens-ix/p-003b58b3.js +0 -1
- package/dist/siemens-ix/p-0419f23d.entry.js +0 -1
- package/dist/siemens-ix/p-161561ef.entry.js +0 -1
- package/dist/siemens-ix/p-5c038d1d.js +0 -2
- package/dist/siemens-ix/p-a8b6454f.entry.js +0 -1
- package/dist/siemens-ix/p-c0a126c6.entry.js +0 -1
- package/dist/siemens-ix/p-d23706a7.js +0 -1
|
@@ -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;
|
|
@@ -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() {
|
|
@@ -10,7 +10,7 @@ function getModalContainer() {
|
|
|
10
10
|
const containerList = Array.from(document.querySelectorAll('ix-modal-container'));
|
|
11
11
|
const [container] = containerList;
|
|
12
12
|
if (containerList.length > 1) {
|
|
13
|
-
console.warn('Multiple modal
|
|
13
|
+
console.warn('Multiple modal containers were found. The one instatiated first will be used.');
|
|
14
14
|
return container;
|
|
15
15
|
}
|
|
16
16
|
if (!container) {
|
|
@@ -472,7 +472,7 @@ export class Modal {
|
|
|
472
472
|
return {
|
|
473
473
|
"dismiss": {
|
|
474
474
|
"complexType": {
|
|
475
|
-
"signature": "(reason?:
|
|
475
|
+
"signature": "<T = any>(reason?: T) => Promise<void>",
|
|
476
476
|
"parameters": [{
|
|
477
477
|
"tags": [{
|
|
478
478
|
"name": "param",
|
|
@@ -483,6 +483,9 @@ export class Modal {
|
|
|
483
483
|
"references": {
|
|
484
484
|
"Promise": {
|
|
485
485
|
"location": "global"
|
|
486
|
+
},
|
|
487
|
+
"T": {
|
|
488
|
+
"location": "global"
|
|
486
489
|
}
|
|
487
490
|
},
|
|
488
491
|
"return": "Promise<void>"
|
|
@@ -497,7 +500,7 @@ export class Modal {
|
|
|
497
500
|
},
|
|
498
501
|
"close": {
|
|
499
502
|
"complexType": {
|
|
500
|
-
"signature": "(result:
|
|
503
|
+
"signature": "<T = any>(result: T) => Promise<void>",
|
|
501
504
|
"parameters": [{
|
|
502
505
|
"tags": [{
|
|
503
506
|
"name": "param",
|
|
@@ -508,6 +511,9 @@ export class Modal {
|
|
|
508
511
|
"references": {
|
|
509
512
|
"Promise": {
|
|
510
513
|
"location": "global"
|
|
514
|
+
},
|
|
515
|
+
"T": {
|
|
516
|
+
"location": "global"
|
|
511
517
|
}
|
|
512
518
|
},
|
|
513
519
|
"return": "Promise<void>"
|
|
@@ -51,6 +51,7 @@ export class ModalContainer {
|
|
|
51
51
|
onDismiss.emit(event.detail);
|
|
52
52
|
});
|
|
53
53
|
return {
|
|
54
|
+
htmlElement: modal,
|
|
54
55
|
onClose,
|
|
55
56
|
onDismiss,
|
|
56
57
|
};
|
|
@@ -74,7 +75,7 @@ export class ModalContainer {
|
|
|
74
75
|
return {
|
|
75
76
|
"showModal": {
|
|
76
77
|
"complexType": {
|
|
77
|
-
"signature": "(config: ModalConfig) => Promise<
|
|
78
|
+
"signature": "(config: ModalConfig) => Promise<ModalInstance>",
|
|
78
79
|
"parameters": [{
|
|
79
80
|
"tags": [{
|
|
80
81
|
"name": "param",
|
|
@@ -86,9 +87,9 @@ export class ModalContainer {
|
|
|
86
87
|
"Promise": {
|
|
87
88
|
"location": "global"
|
|
88
89
|
},
|
|
89
|
-
"
|
|
90
|
+
"ModalInstance": {
|
|
90
91
|
"location": "import",
|
|
91
|
-
"path": "../
|
|
92
|
+
"path": "../modal/modal-utils"
|
|
92
93
|
},
|
|
93
94
|
"ModalConfig": {
|
|
94
95
|
"location": "import",
|
|
@@ -98,7 +99,7 @@ export class ModalContainer {
|
|
|
98
99
|
"location": "global"
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
|
-
"return": "Promise<
|
|
102
|
+
"return": "Promise<ModalInstance<any>>"
|
|
102
103
|
},
|
|
103
104
|
"docs": {
|
|
104
105
|
"text": "Display modal dialog",
|
|
@@ -81,24 +81,20 @@
|
|
|
81
81
|
display: flex;
|
|
82
82
|
position: relative;
|
|
83
83
|
align-items: flex-start;
|
|
84
|
-
height: calc(2rem - 2 * var(--theme-input--border-thickness));
|
|
85
84
|
width: 100%;
|
|
86
85
|
}
|
|
87
|
-
:host .input-container.allow-clear {
|
|
88
|
-
padding-right: 3.5rem;
|
|
89
|
-
}
|
|
90
86
|
:host .input-container .chips {
|
|
91
87
|
position: relative;
|
|
92
88
|
display: flex;
|
|
93
89
|
align-items: center;
|
|
94
90
|
flex-wrap: wrap;
|
|
95
91
|
height: 100%;
|
|
96
|
-
max-
|
|
97
|
-
flex-
|
|
98
|
-
|
|
92
|
+
max-height: 3.5rem;
|
|
93
|
+
flex-grow: 1;
|
|
94
|
+
overflow-y: auto;
|
|
99
95
|
}
|
|
100
96
|
:host .input-container .chips > ix-filter-chip {
|
|
101
|
-
margin: 0.1rem;
|
|
97
|
+
margin: 0 0.1rem;
|
|
102
98
|
}
|
|
103
99
|
:host .input-container input {
|
|
104
100
|
overflow: hidden;
|
|
@@ -114,8 +110,6 @@
|
|
|
114
110
|
background: transparent;
|
|
115
111
|
height: 1.75rem;
|
|
116
112
|
width: 100%;
|
|
117
|
-
-webkit-margin-end: 2rem;
|
|
118
|
-
margin-inline-end: 2rem;
|
|
119
113
|
}
|
|
120
114
|
:host .input-container input, :host .input-container input:hover, :host .input-container input:focus-visible {
|
|
121
115
|
border: none;
|
|
@@ -153,10 +147,6 @@
|
|
|
153
147
|
:host .editable .chevron-down-container:not(.disabled):not(:disabled):active {
|
|
154
148
|
background-color: var(--theme-btn-invisible-secondary--background--active);
|
|
155
149
|
}
|
|
156
|
-
:host .clear {
|
|
157
|
-
position: absolute;
|
|
158
|
-
right: 2rem;
|
|
159
|
-
}
|
|
160
150
|
:host .add-item {
|
|
161
151
|
display: flex;
|
|
162
152
|
justify-content: flex-start;
|
|
@@ -165,6 +155,9 @@
|
|
|
165
155
|
width: 100%;
|
|
166
156
|
}
|
|
167
157
|
:host .select-list-header {
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
text-overflow: ellipsis;
|
|
160
|
+
white-space: nowrap;
|
|
168
161
|
display: flex;
|
|
169
162
|
align-items: center;
|
|
170
163
|
height: 2rem;
|
|
@@ -159,6 +159,9 @@ export class Select {
|
|
|
159
159
|
}
|
|
160
160
|
async onEnterNavigation() {
|
|
161
161
|
var _a, _b;
|
|
162
|
+
if (this.isMultipleMode) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
162
165
|
if (this.editable && !this.itemExists(this.inputFilterText)) {
|
|
163
166
|
this.emitAddItem(this.inputFilterText);
|
|
164
167
|
this.navigationItem = this.items[this.items.length - 1];
|
|
@@ -216,6 +219,7 @@ export class Select {
|
|
|
216
219
|
this.value = [];
|
|
217
220
|
this.selectedIndices = [];
|
|
218
221
|
this.itemSelectionChange.emit(null);
|
|
222
|
+
this.dropdownShow = false;
|
|
219
223
|
}
|
|
220
224
|
render() {
|
|
221
225
|
var _a, _b, _c;
|
|
@@ -230,28 +234,32 @@ export class Select {
|
|
|
230
234
|
this.dropdownAnchor = ref;
|
|
231
235
|
if (!this.editable)
|
|
232
236
|
this.dropdownWrapperRef = ref;
|
|
233
|
-
} }, h("div", { class: "input-container" },
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
} }, h("div", { class: "input-container" }, h("div", { class: "chips" }, this.isMultipleMode
|
|
238
|
+
? (_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.map((item) => (h("ix-filter-chip", { disabled: this.disabled || this.readonly, onCloseClick: (e) => {
|
|
239
|
+
e.preventDefault();
|
|
240
|
+
e.stopPropagation();
|
|
241
|
+
this.emitItemClick(item.value);
|
|
242
|
+
} }, item.label)))
|
|
243
|
+
: '', h("div", { class: "trigger" }, h("input", { "data-testid": "input", disabled: this.disabled, readOnly: this.readonly, type: "text", class: {
|
|
238
244
|
'allow-clear': this.allowClear && !!((_b = this.value) === null || _b === void 0 ? void 0 : _b.length),
|
|
239
245
|
}, placeholder: this.editable
|
|
240
246
|
? this.i18nPlaceholderEditable
|
|
241
|
-
: this.i18nPlaceholder, value: this.inputValue, ref: (ref) => (this.inputRef = ref), onInput: () => this.filterItemsWithTypeahead() }), this.
|
|
242
|
-
|
|
243
|
-
|
|
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) => {
|
|
247
|
+
: this.i18nPlaceholder, value: this.inputValue, ref: (ref) => (this.inputRef = ref), onInput: () => this.filterItemsWithTypeahead() }), this.isMultipleMode &&
|
|
248
|
+
this.allowClear &&
|
|
249
|
+
(((_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) => {
|
|
245
250
|
e.preventDefault();
|
|
246
251
|
e.stopPropagation();
|
|
247
252
|
this.clear();
|
|
248
|
-
} })) : null
|
|
253
|
+
} })) : null, this.disabled || this.readonly ? null : (h("div", { class: "chevron-down-container", ref: (ref) => {
|
|
254
|
+
if (this.editable)
|
|
255
|
+
this.dropdownWrapperRef = ref;
|
|
256
|
+
} }, h("ix-icon", { class: "chevron", name: "chevron-down-small" }))))))), h("ix-dropdown", { ref: (ref) => (this.dropdownRef = ref), show: this.dropdownShow, style: {
|
|
249
257
|
width: '100%',
|
|
250
258
|
}, class: {
|
|
251
259
|
'd-none': this.disabled ||
|
|
252
260
|
this.readonly ||
|
|
253
261
|
(this.isDropdownEmpty && !this.editable),
|
|
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: {
|
|
262
|
+
}, anchor: this.dropdownAnchor, trigger: this.dropdownWrapperRef, onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "bottom", positioningStrategy: 'fixed', adjustDropdownWidthToReferenceWidth: true }, h("div", { class: "select-list-header", title: this.i18nSelectListHeader }, 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: {
|
|
255
263
|
'add-item': true,
|
|
256
264
|
'd-none': !(this.editable && this.inputFilterText),
|
|
257
265
|
}, label: this.inputFilterText, onItemClick: (e) => {
|
|
@@ -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,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
|
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
|
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
|
}
|
|
@@ -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
|
}, []);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './icon.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './icon-button.js';
|
|
4
|
+
|
|
5
|
+
const groupContextMenuCss = ".sc-ix-group-context-menu-h{display:block;position:relative;-webkit-margin-before:0.3125rem;margin-block-start:0.3125rem;-webkit-margin-end:0.3125rem;margin-inline-end:0.3125rem;-webkit-margin-start:auto;margin-inline-start:auto}.sc-ix-group-context-menu-h ix-icon-button.sc-ix-group-context-menu::after{display:none}.sc-ix-group-context-menu-h .hide.sc-ix-group-context-menu{visibility:collapse}";
|
|
6
|
+
|
|
7
|
+
const GroupContextMenu = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.showContextMenu = false;
|
|
12
|
+
}
|
|
13
|
+
get dropdownElement() {
|
|
14
|
+
return this.host.querySelector('ix-dropdown');
|
|
15
|
+
}
|
|
16
|
+
get groupDropdownItem() {
|
|
17
|
+
return this.host.querySelectorAll('ix-group-dropdown-item');
|
|
18
|
+
}
|
|
19
|
+
configureDropdown(triggerElement) {
|
|
20
|
+
this.dropdownElement.positioningStrategy = 'fixed';
|
|
21
|
+
this.dropdownElement.trigger = triggerElement;
|
|
22
|
+
}
|
|
23
|
+
componentWillRender() {
|
|
24
|
+
this.showContextMenu = !!this.dropdownElement;
|
|
25
|
+
}
|
|
26
|
+
disconnectedCallback() {
|
|
27
|
+
this.observer.disconnect();
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return (h(Host, null, h("ix-icon-button", { class: { hide: !this.showContextMenu }, ref: (ref) => this.dropdownElement ? this.configureDropdown(ref) : null, size: "24", ghost: true, icon: "context-menu" }), h("slot", null)));
|
|
31
|
+
}
|
|
32
|
+
get host() { return this; }
|
|
33
|
+
static get style() { return groupContextMenuCss; }
|
|
34
|
+
}, [6, "ix-group-context-menu", {
|
|
35
|
+
"showContextMenu": [32]
|
|
36
|
+
}]);
|
|
37
|
+
function defineCustomElement() {
|
|
38
|
+
if (typeof customElements === "undefined") {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const components = ["ix-group-context-menu", "ix-icon", "ix-icon-button"];
|
|
42
|
+
components.forEach(tagName => { switch (tagName) {
|
|
43
|
+
case "ix-group-context-menu":
|
|
44
|
+
if (!customElements.get(tagName)) {
|
|
45
|
+
customElements.define(tagName, GroupContextMenu);
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
case "ix-icon":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
defineCustomElement$2();
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
case "ix-icon-button":
|
|
54
|
+
if (!customElements.get(tagName)) {
|
|
55
|
+
defineCustomElement$1();
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
} });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { GroupContextMenu as G, defineCustomElement as d };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
3
3
|
|
|
4
|
-
const groupItemCss = ".sc-ix-group-item-h{display:flex;min-height:2.25rem;height:2.25rem;align-items:center;justify-content:space-between;padding:0.5rem 1.5rem 0.5rem 2.5rem;position:relative;margin-top:0.0625rem;border:1px solid var(--theme-group-item--border-color);outline:none;background-color:var(--theme-group-item--background)}.last.sc-ix-group-item-h{border-bottom-left-radius:0.25rem;border-bottom-right-radius:0.25rem}.sc-ix-group-item-h ix-icon.sc-ix-group-item{margin-right:0.25rem;margin-top:-0.125rem}.sc-ix-group-item-h .group-entry-selection-indicator.sc-ix-group-item{position:absolute;left:0;height:100%;width:0.25rem}.sc-ix-group-item-h .group-entry-text.sc-ix-group-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}.sc-ix-group-item-h .group-entry-text-secondary.sc-ix-group-item{display:flex;justify-content:flex-end;flex-grow:1;white-space:nowrap;color:var(--theme-color-soft-text);font-size:0.875rem}.sc-ix-group-item-h .group-entry-text-secondary.sc-ix-group-item,.sc-ix-group-item-h .group-entry-text-secondary.sc-ix-group-item span.sc-ix-group-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled):hover{background-color:var(--theme-group-item--background--hover);border-color:var(--theme-group-item--border-color--hover)}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled):active{background-color:var(--theme-group-item--background--active);border-color:var(--theme-group-item--border-color--active)}.selected.sc-ix-group-item-h{border-top-width:0.062rem !important;border-color:var(--theme-group-item--border-color--selected);background-color:var(--theme-group-item--background--selected)}.selected.sc-ix-group-item-h .group-entry-selection-indicator.sc-ix-group-item{background-color:var(--theme-color-input
|
|
4
|
+
const groupItemCss = ".sc-ix-group-item-h{display:flex;min-height:2.25rem;height:2.25rem;align-items:center;justify-content:space-between;padding:0.5rem 1.5rem 0.5rem 2.5rem;position:relative;margin-top:0.0625rem;border:1px solid var(--theme-group-item--border-color);outline:none;background-color:var(--theme-group-item--background)}.last.sc-ix-group-item-h{border-bottom-left-radius:0.25rem;border-bottom-right-radius:0.25rem}.sc-ix-group-item-h ix-icon.sc-ix-group-item{margin-right:0.25rem;margin-top:-0.125rem}.sc-ix-group-item-h .group-entry-selection-indicator.sc-ix-group-item{position:absolute;left:0;height:100%;width:0.25rem}.sc-ix-group-item-h .group-entry-text.sc-ix-group-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}.sc-ix-group-item-h .group-entry-text-secondary.sc-ix-group-item{display:flex;justify-content:flex-end;flex-grow:1;white-space:nowrap;color:var(--theme-color-soft-text);font-size:0.875rem}.sc-ix-group-item-h .group-entry-text-secondary.sc-ix-group-item,.sc-ix-group-item-h .group-entry-text-secondary.sc-ix-group-item span.sc-ix-group-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled):hover{background-color:var(--theme-group-item--background--hover);border-color:var(--theme-group-item--border-color--hover)}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled){cursor:pointer}.sc-ix-group-item-h:not(.suppress-selection):not(.disabled):not(:disabled):active{background-color:var(--theme-group-item--background--active);border-color:var(--theme-group-item--border-color--active)}.selected.sc-ix-group-item-h{border-top-width:0.062rem !important;border-color:var(--theme-group-item--border-color--selected);background-color:var(--theme-group-item--background--selected)}.selected.sc-ix-group-item-h .group-entry-selection-indicator.sc-ix-group-item{background-color:var(--theme-color-input--focus)}.sc-ix-group-item-h:not(.disabled):not(:disabled):focus-visible{border-color:var(--focus--border-color) !important}";
|
|
5
5
|
|
|
6
6
|
const GroupItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -2,6 +2,8 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
|
|
|
2
2
|
import { g as getButtonClasses } from './base-button.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
4
4
|
|
|
5
|
+
const iconButtonCss = ".sc-ix-icon-button-h .icon-button.sc-ix-icon-button{padding:0;overflow:hidden}.sc-ix-icon-button-h .btn-icon-12.sc-ix-icon-button{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.sc-ix-icon-button-h .btn-icon-16.sc-ix-icon-button{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.sc-ix-icon-button-h .btn-icon-32.sc-ix-icon-button{height:2rem;width:2rem;min-width:2rem;min-height:2rem}";
|
|
6
|
+
|
|
5
7
|
const IconButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
8
|
constructor() {
|
|
7
9
|
super();
|
|
@@ -19,11 +21,12 @@ const IconButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
19
21
|
this.type = 'button';
|
|
20
22
|
}
|
|
21
23
|
getIconButtonClasses() {
|
|
22
|
-
return Object.assign({ 'btn-icon-
|
|
24
|
+
return Object.assign(Object.assign({}, getButtonClasses(this.variant, this.outline, this.ghost || this.invisible, true, this.oval, this.selected, this.disabled)), { 'icon-button': true, 'btn-icon-12': this.size === '12', 'btn-icon-16': this.size === '16', 'btn-icon-32': this.size === '32' || this.size === '24' || !this.size });
|
|
23
25
|
}
|
|
24
26
|
render() {
|
|
25
27
|
return (h("button", { class: this.getIconButtonClasses(), type: this.type }, h("ix-icon", { size: this.size, name: this.icon, color: this.color }), h("div", { style: { display: 'none' } }, h("slot", null))));
|
|
26
28
|
}
|
|
29
|
+
static get style() { return iconButtonCss; }
|
|
27
30
|
}, [6, "ix-icon-button", {
|
|
28
31
|
"variant": [1],
|
|
29
32
|
"outline": [4],
|
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,
|
|
@@ -23,6 +23,7 @@ export { FilterChip as IxFilterChip } from '../types/components/filter-chip/filt
|
|
|
23
23
|
export { FlipTile as IxFlipTile } from '../types/components/flip-tile/flip-tile';
|
|
24
24
|
export { FlipTileContent as IxFlipTileContent } from '../types/components/flip-tile-content/flip-tile-content';
|
|
25
25
|
export { Group as IxGroup } from '../types/components/group/group';
|
|
26
|
+
export { GroupContextMenu as IxGroupContextMenu } from '../types/components/group/group-context-menu';
|
|
26
27
|
export { GroupDropdownItem as IxGroupDropdownItem } from '../types/components/group-dropdown-item/group-dropdown-item';
|
|
27
28
|
export { GroupItem as IxGroupItem } from '../types/components/group-item/group-item';
|
|
28
29
|
export { Icon as IxIcon } from '../types/components/icon/icon';
|
package/dist/components/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export { IxExpandingSearch, defineCustomElement as defineCustomElementIxExpandin
|
|
|
29
29
|
export { IxFilterChip, defineCustomElement as defineCustomElementIxFilterChip } from './ix-filter-chip.js';
|
|
30
30
|
export { IxFlipTileContent, defineCustomElement as defineCustomElementIxFlipTileContent } from './ix-flip-tile-content.js';
|
|
31
31
|
export { IxGroup, defineCustomElement as defineCustomElementIxGroup } from './ix-group.js';
|
|
32
|
+
export { IxGroupContextMenu, defineCustomElement as defineCustomElementIxGroupContextMenu } from './ix-group-context-menu.js';
|
|
32
33
|
export { IxGroupDropdownItem, defineCustomElement as defineCustomElementIxGroupDropdownItem } from './ix-group-dropdown-item.js';
|
|
33
34
|
export { IxGroupItem, defineCustomElement as defineCustomElementIxGroupItem } from './ix-group-item.js';
|
|
34
35
|
export { IxIcon, defineCustomElement as defineCustomElementIxIcon } from './ix-icon.js';
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface IxGroupContextMenu extends Components.IxGroupContextMenu, HTMLElement {}
|
|
4
|
+
export const IxGroupContextMenu: {
|
|
5
|
+
prototype: IxGroupContextMenu;
|
|
6
|
+
new (): IxGroupContextMenu;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$5 } from './
|
|
2
|
+
import { d as defineCustomElement$5 } from './group-context-menu.js';
|
|
3
3
|
import { d as defineCustomElement$4 } from './group-item.js';
|
|
4
4
|
import { d as defineCustomElement$3 } from './icon.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './icon-button.js';
|
|
6
6
|
|
|
7
|
-
const groupCss = ".sc-ix-group-h{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:column;position:relative;max-width:19.75rem;border-color:var(--theme-group-item--border-color)}.sc-ix-group-h .group-header
|
|
7
|
+
const groupCss = ".sc-ix-group-h{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:column;position:relative;max-width:19.75rem;border-color:var(--theme-group-item--border-color)}.sc-ix-group-h .group-header.sc-ix-group{height:4rem;min-height:4rem;max-height:4rem;border-radius:0.25rem;border:var(--theme-std-bdr-1);display:flex;background-color:var(--theme-group-item--background);border:1px solid var(--theme-group-item--border-color);color:var(--theme-group-header--color);cursor:pointer}.sc-ix-group-h .group-header.sc-ix-group:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-group-h .group-header.sc-ix-group:not(.disabled):not(:disabled):hover{background-color:var(--theme-group-item--background--hover);border-color:var(--theme-group-item--border-color--hover)}.sc-ix-group-h .group-header.sc-ix-group:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-group-h .group-header.sc-ix-group:not(.disabled):not(:disabled):active{background-color:var(--theme-group-item--background--active);border-color:var(--theme-group-item--border-color--active)}.sc-ix-group-h .group-header.sc-ix-group:not(.disabled):not(:disabled):focus-visible{border-color:var(--focus--border-color);border-radius:var(--theme-group--border-radius--focus);outline:none}.sc-ix-group-h .group-header-clickable.sc-ix-group{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;width:100%;min-width:0}.sc-ix-group-h .group-header.expand.sc-ix-group{border-bottom-left-radius:0;border-bottom-right-radius:0}.sc-ix-group-h .group-header-selection-indicator.sc-ix-group{width:0.25rem}.sc-ix-group-h .group-header-content.sc-ix-group{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;justify-content:space-between;min-width:0;padding:0.5rem;padding-left:0;width:100%}.sc-ix-group-h .group-header-content.sc-ix-group .group-header-props-container.sc-ix-group{width:100%}.sc-ix-group-h .group-header-content.sc-ix-group .group-header-title.sc-ix-group{display:flex;align-items:center;font-size:1rem;font-weight:700;height:1.5rem}.sc-ix-group-h .group-header-content.sc-ix-group .group-header-title.sc-ix-group>*.sc-ix-group{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.sc-ix-group-h .group-header-content.sc-ix-group .group-subheader.sc-ix-group{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:1.25rem;font-size:0.875rem;color:var(--theme-group-subheader--color)}.sc-ix-group-h .expand-icon.sc-ix-group{padding:0.125rem 0.437rem;color:var(--theme-color-std-text)}.sc-ix-group-h .btn-expand-header.sc-ix-group{margin:0.5rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}.sc-ix-group-h .group-content.sc-ix-group{display:flex;flex-direction:column}.sc-ix-group-h .group-header.selected.sc-ix-group{border:var(--theme-primary-bdr-2);background-color:var(--theme-group-item--background--selected)}.sc-ix-group-h .group-header.selected.sc-ix-group .group-header-selection-indicator.sc-ix-group{background-color:var(--theme-color-input--focus)}.sc-ix-group-h .footer.sc-ix-group{height:auto;min-height:0}";
|
|
8
8
|
|
|
9
9
|
const Group = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
10
|
constructor() { super(); this.__registerHost(); this.selectGroup = createEvent(this, "selectGroup", 7); this.selectItem = createEvent(this, "selectItem", 7); this.collapsedChanged = createEvent(this, "collapsedChanged", 7); this.suppressHeaderSelection = false; this.header = undefined; this.subHeader = undefined; this.collapsed = true; this.selected = undefined; this.index = undefined; this.expandOnHeaderClick = false; this.dropdownTriggerRef = undefined; }
|
|
@@ -99,7 +99,7 @@ const Group = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
99
99
|
'group-header': true,
|
|
100
100
|
expand: !this.collapsed,
|
|
101
101
|
selected: this.selected,
|
|
102
|
-
}, tabindex: "0" }, h("div", { class: "group-header-clickable", onClick: (e) => this.onHeaderClick(e) }, h("div", { class: "group-header-selection-indicator" }), h("ix-icon", { class: "btn-expand-header", name: `chevron-${this.collapsed ? 'right' : 'down'}-small`, onClick: (e) => this.onExpandClick(e) }), h("div", { class: "group-header-content" }, this.header ? (h("div", { class: "group-header-props-container" }, h("div", { class: "group-header-title" }, h("span", { title: this.header }, this.header)), h("div", { class: "group-subheader", title: this.subHeader }, this.subHeader))) : null, h("slot", { name: "header" }))), h("
|
|
102
|
+
}, tabindex: "0" }, h("div", { class: "group-header-clickable", onClick: (e) => this.onHeaderClick(e) }, h("div", { class: "group-header-selection-indicator" }), h("ix-icon", { class: "btn-expand-header", name: `chevron-${this.collapsed ? 'right' : 'down'}-small`, onClick: (e) => this.onExpandClick(e) }), h("div", { class: "group-header-content" }, this.header ? (h("div", { class: "group-header-props-container" }, h("div", { class: "group-header-title" }, h("span", { title: this.header }, this.header)), h("div", { class: "group-subheader", title: this.subHeader }, this.subHeader))) : null, h("slot", { name: "header" }))), h("ix-group-context-menu", null, h("slot", { name: "dropdown" }))), h("div", { class: {
|
|
103
103
|
'group-content': true,
|
|
104
104
|
'd-none': this.collapsed,
|
|
105
105
|
} }, h("slot", null)), h("div", { class: "d-none" }, h("ix-group-item", { class: "footer last", suppressSelection: true, focusable: false }, h("slot", { name: "footer" })))));
|
|
@@ -120,14 +120,14 @@ function defineCustomElement$1() {
|
|
|
120
120
|
if (typeof customElements === "undefined") {
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
const components = ["ix-group", "ix-
|
|
123
|
+
const components = ["ix-group", "ix-group-context-menu", "ix-group-item", "ix-icon", "ix-icon-button"];
|
|
124
124
|
components.forEach(tagName => { switch (tagName) {
|
|
125
125
|
case "ix-group":
|
|
126
126
|
if (!customElements.get(tagName)) {
|
|
127
127
|
customElements.define(tagName, Group);
|
|
128
128
|
}
|
|
129
129
|
break;
|
|
130
|
-
case "ix-
|
|
130
|
+
case "ix-group-context-menu":
|
|
131
131
|
if (!customElements.get(tagName)) {
|
|
132
132
|
defineCustomElement$5();
|
|
133
133
|
}
|