@ukic/canary-web-components 3.0.0-canary.13 → 3.0.0-canary.14
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/core.cjs.js +1 -1
- package/dist/cjs/{helpers-0e4c4fdd.js → helpers-32016c21.js} +21 -3
- package/dist/cjs/helpers-32016c21.js.map +1 -0
- package/dist/cjs/ic-button_3.cjs.entry.js +59 -1
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +52 -19
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +15 -10
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +6 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +36 -22
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +13 -10
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -4
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +7 -4
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skip-link.cjs.entry.js +10 -9
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +13 -12
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +3 -3
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +29 -8
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +113 -12
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +3 -2
- package/dist/collection/components/ic-date-input/ic-date-input.js +83 -24
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js +18 -0
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +34 -9
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js +9 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js.map +1 -1
- package/dist/collection/components/ic-date-picker/story-data.js +16 -1
- package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +50 -7
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +146 -16
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +384 -12
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.types.js +2 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.types.js.map +1 -0
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +1 -1
- package/dist/components/helpers2.js +19 -3
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-button2.js +59 -1
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-data-table.js +1 -1
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +58 -21
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +15 -9
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-menu-item2.js +1 -1
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-navigation-group.js +6 -3
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +37 -23
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +5 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-select2.js +13 -10
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +7 -4
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skip-link.js +10 -9
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +1 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +13 -12
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-tree-item.js +29 -7
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +119 -14
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/core/core.css +35 -29
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0ad472d0.entry.js +2 -0
- package/dist/core/p-0ad472d0.entry.js.map +1 -0
- package/dist/core/{p-fde3bbb2.entry.js → p-0c97a53d.entry.js} +2 -2
- package/dist/core/p-250bf568.entry.js +2 -0
- package/dist/core/p-250bf568.entry.js.map +1 -0
- package/dist/core/{p-c6f1e205.entry.js → p-48163a2a.entry.js} +2 -2
- package/dist/core/p-48163a2a.entry.js.map +1 -0
- package/dist/core/{p-95f2c59a.entry.js → p-4f00aa91.entry.js} +2 -2
- package/dist/core/{p-95f2c59a.entry.js.map → p-4f00aa91.entry.js.map} +1 -1
- package/dist/core/p-54e01fad.entry.js +2 -0
- package/dist/core/p-54e01fad.entry.js.map +1 -0
- package/dist/core/p-5d85bd73.entry.js +2 -0
- package/dist/core/p-5d85bd73.entry.js.map +1 -0
- package/dist/core/p-6040a025.entry.js +2 -0
- package/dist/core/p-6040a025.entry.js.map +1 -0
- package/dist/core/p-62f7f2bd.entry.js +2 -0
- package/dist/core/p-62f7f2bd.entry.js.map +1 -0
- package/dist/core/p-72310da8.js +2 -0
- package/dist/core/p-72310da8.js.map +1 -0
- package/dist/core/p-762a4d7c.entry.js +2 -0
- package/dist/core/p-762a4d7c.entry.js.map +1 -0
- package/dist/core/p-836d302a.entry.js +2 -0
- package/dist/core/p-836d302a.entry.js.map +1 -0
- package/dist/core/p-881bb783.entry.js +2 -0
- package/dist/core/p-881bb783.entry.js.map +1 -0
- package/dist/core/{p-3dc4e128.entry.js → p-895a3eb1.entry.js} +2 -2
- package/dist/core/p-9a46b1e5.entry.js +2 -0
- package/dist/core/p-9a46b1e5.entry.js.map +1 -0
- package/dist/core/{p-67f3bf1a.entry.js → p-a13dc5ba.entry.js} +2 -2
- package/dist/core/{p-e86c1c95.entry.js → p-c0687222.entry.js} +2 -2
- package/dist/core/p-c0687222.entry.js.map +1 -0
- package/dist/core/p-c4f7e479.entry.js +2 -0
- package/dist/core/p-c4f7e479.entry.js.map +1 -0
- package/dist/core/{p-f6013934.entry.js → p-ef25bb6d.entry.js} +2 -2
- package/dist/core/p-ef25bb6d.entry.js.map +1 -0
- package/dist/core/p-fb11ce9b.entry.js +2 -0
- package/dist/core/p-fb11ce9b.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-4e38ba2b.js → helpers-5479985d.js} +20 -4
- package/dist/esm/helpers-5479985d.js.map +1 -0
- package/dist/esm/ic-button_3.entry.js +59 -1
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
- package/dist/esm/ic-data-table.entry.js +2 -2
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +52 -19
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +15 -10
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +6 -3
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +37 -23
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +13 -10
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +5 -4
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +7 -4
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skip-link.entry.js +10 -9
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +1 -1
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +13 -12
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +3 -3
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +29 -8
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +113 -12
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +15 -4
- package/dist/types/components/ic-date-input/ic-date-input.stories.d.ts +6 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.stories.d.ts +8 -0
- package/dist/types/components/ic-date-picker/story-data.d.ts +1 -0
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +6 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +17 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.stories.d.ts +91 -13
- package/dist/types/components/ic-tree-view/ic-tree-view.types.d.ts +12 -0
- package/dist/types/components.d.ts +39 -6
- package/dist/types/utils/helpers.d.ts +2 -2
- package/hydrate/index.js +449 -184
- package/hydrate/index.mjs +449 -184
- package/package.json +3 -3
- package/dist/cjs/helpers-0e4c4fdd.js.map +0 -1
- package/dist/core/p-44ffa951.entry.js +0 -2
- package/dist/core/p-44ffa951.entry.js.map +0 -1
- package/dist/core/p-47962514.entry.js +0 -2
- package/dist/core/p-47962514.entry.js.map +0 -1
- package/dist/core/p-5329e478.entry.js +0 -2
- package/dist/core/p-5329e478.entry.js.map +0 -1
- package/dist/core/p-5b2a7c1a.entry.js +0 -2
- package/dist/core/p-5b2a7c1a.entry.js.map +0 -1
- package/dist/core/p-8c4f212a.entry.js +0 -2
- package/dist/core/p-8c4f212a.entry.js.map +0 -1
- package/dist/core/p-9265efef.entry.js +0 -2
- package/dist/core/p-9265efef.entry.js.map +0 -1
- package/dist/core/p-a35cdfc3.entry.js +0 -2
- package/dist/core/p-a35cdfc3.entry.js.map +0 -1
- package/dist/core/p-ac74cdac.entry.js +0 -2
- package/dist/core/p-ac74cdac.entry.js.map +0 -1
- package/dist/core/p-ad3e543e.entry.js +0 -2
- package/dist/core/p-ad3e543e.entry.js.map +0 -1
- package/dist/core/p-ae2bae87.entry.js +0 -2
- package/dist/core/p-ae2bae87.entry.js.map +0 -1
- package/dist/core/p-afde50b8.js +0 -2
- package/dist/core/p-afde50b8.js.map +0 -1
- package/dist/core/p-b84213d1.entry.js +0 -2
- package/dist/core/p-b84213d1.entry.js.map +0 -1
- package/dist/core/p-c6f1e205.entry.js.map +0 -1
- package/dist/core/p-cd59dc16.entry.js +0 -2
- package/dist/core/p-cd59dc16.entry.js.map +0 -1
- package/dist/core/p-e86c1c95.entry.js.map +0 -1
- package/dist/core/p-f6013934.entry.js.map +0 -1
- package/dist/esm/helpers-4e38ba2b.js.map +0 -1
- /package/dist/core/{p-fde3bbb2.entry.js.map → p-0c97a53d.entry.js.map} +0 -0
- /package/dist/core/{p-3dc4e128.entry.js.map → p-895a3eb1.entry.js.map} +0 -0
- /package/dist/core/{p-67f3bf1a.entry.js.map → p-a13dc5ba.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
@@ -3480,21 +3480,21 @@ const getOptionsWithoutGroupTitlesCount = (options) => {
|
|
3480
3480
|
return optionsWithoutGroupTitles.length;
|
3481
3481
|
};
|
3482
3482
|
const deviceSizeMatches$1 = (size) => window.matchMedia(`(max-width: ${size}px)`).matches;
|
3483
|
-
const getCurrentDeviceSize = () => {
|
3484
|
-
if (deviceSizeMatches$1(DEVICE_SIZES.S)) {
|
3485
|
-
return DEVICE_SIZES.S;
|
3483
|
+
const getCurrentDeviceSize$1 = () => {
|
3484
|
+
if (deviceSizeMatches$1(DEVICE_SIZES$1.S)) {
|
3485
|
+
return DEVICE_SIZES$1.S;
|
3486
3486
|
}
|
3487
|
-
if (deviceSizeMatches$1(DEVICE_SIZES.M)) {
|
3488
|
-
return DEVICE_SIZES.M;
|
3487
|
+
if (deviceSizeMatches$1(DEVICE_SIZES$1.M)) {
|
3488
|
+
return DEVICE_SIZES$1.M;
|
3489
3489
|
}
|
3490
|
-
if (deviceSizeMatches$1(DEVICE_SIZES.L)) {
|
3491
|
-
return DEVICE_SIZES.L;
|
3490
|
+
if (deviceSizeMatches$1(DEVICE_SIZES$1.L)) {
|
3491
|
+
return DEVICE_SIZES$1.L;
|
3492
3492
|
}
|
3493
|
-
if (deviceSizeMatches$1(DEVICE_SIZES.XL)) {
|
3494
|
-
return DEVICE_SIZES.XL;
|
3493
|
+
if (deviceSizeMatches$1(DEVICE_SIZES$1.XL)) {
|
3494
|
+
return DEVICE_SIZES$1.XL;
|
3495
3495
|
}
|
3496
3496
|
//fallback needed as all of above get initialised to 0 in jest tests
|
3497
|
-
return DEVICE_SIZES.UNDEFINED;
|
3497
|
+
return DEVICE_SIZES$1.UNDEFINED;
|
3498
3498
|
};
|
3499
3499
|
const getCssProperty$1 = (cssVar) => getComputedStyle(document.documentElement).getPropertyValue(cssVar);
|
3500
3500
|
/**
|
@@ -3568,7 +3568,7 @@ const getNavItemParentDetails = ({ parentElement, }) => {
|
|
3568
3568
|
}
|
3569
3569
|
return navType;
|
3570
3570
|
};
|
3571
|
-
const DEVICE_SIZES = {
|
3571
|
+
const DEVICE_SIZES$1 = {
|
3572
3572
|
XS: Number(getCssProperty$1("--ic-breakpoint-xs").replace("px", "")), // 0
|
3573
3573
|
S: Number(getCssProperty$1("--ic-breakpoint-sm").replace("px", "")), // 576
|
3574
3574
|
M: Number(getCssProperty$1("--ic-breakpoint-md").replace("px", "")), // 768
|
@@ -4617,7 +4617,7 @@ class BreadcrumbGroup {
|
|
4617
4617
|
this.IC_BREADCRUMB = "ic-breadcrumb";
|
4618
4618
|
this.resizeObserver = null;
|
4619
4619
|
this.SHOW_BACK_ICON = "show-back-icon";
|
4620
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
4620
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
4621
4621
|
this.expandedBreadcrumbs = false;
|
4622
4622
|
/**
|
4623
4623
|
* If `true`, display only a single breadcrumb for the parent page with a back icon.
|
@@ -4770,7 +4770,7 @@ class BreadcrumbGroup {
|
|
4770
4770
|
this.resizeObserverCallback = (currSize) => {
|
4771
4771
|
if (currSize !== this.deviceSize) {
|
4772
4772
|
this.deviceSize = currSize;
|
4773
|
-
if (this.deviceSize <= DEVICE_SIZES.S) {
|
4773
|
+
if (this.deviceSize <= DEVICE_SIZES$1.S) {
|
4774
4774
|
this.el.setAttribute("back-breadcrumb-only", "true");
|
4775
4775
|
if (this.collapsed) {
|
4776
4776
|
this.setLastParentCollapsedBackBreadcrumb();
|
@@ -4798,7 +4798,7 @@ class BreadcrumbGroup {
|
|
4798
4798
|
};
|
4799
4799
|
this.runResizeObserver = () => {
|
4800
4800
|
this.resizeObserver = new ResizeObserver(() => {
|
4801
|
-
const currSize = getCurrentDeviceSize();
|
4801
|
+
const currSize = getCurrentDeviceSize$1();
|
4802
4802
|
this.resizeObserverCallback(currSize);
|
4803
4803
|
});
|
4804
4804
|
this.resizeObserver.observe(this.el);
|
@@ -4827,7 +4827,7 @@ class BreadcrumbGroup {
|
|
4827
4827
|
checkResizeObserver$1(this.runResizeObserver);
|
4828
4828
|
}
|
4829
4829
|
if (this.collapsed && allBreadcrumbs.length > 2) {
|
4830
|
-
if (getCurrentDeviceSize() === DEVICE_SIZES.S) {
|
4830
|
+
if (getCurrentDeviceSize$1() === DEVICE_SIZES$1.S) {
|
4831
4831
|
this.setLastParentCollapsedBackBreadcrumb();
|
4832
4832
|
}
|
4833
4833
|
else {
|
@@ -4877,10 +4877,10 @@ var arrowDropdown$1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="non
|
|
4877
4877
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>
|
4878
4878
|
</svg>`;
|
4879
4879
|
|
4880
|
-
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-text-pressed-active);--button-loading-outer-color:var(--ic-button-secondary-background-pressed)}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background-non-transparent)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent\n ) !important}:host(.ic-button-variant-secondary.background.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n )}:host(.ic-button-variant-secondary.background.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n ) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-color:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-color:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n );color:var(--ic-button-primary-text)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n ) !important}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n );color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-acti)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-acti) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-architectural-300);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-architectural-300);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-architectural-300);background:none}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button,:host(.clear-button) .button,:host(.dismiss-icon) ::slotted(a),:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon) .button:hover,:host(.clear-button) .button:hover,:host(.dismiss-icon) ::slotted(a:hover),:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon),:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.dismiss-icon) .button:focus,:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(--ic-action-dark-hover);--ic-button-secondary-text-pressed-monochrome:var(--ic-action-dark-pressed);--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(--ic-action-light-hover);--ic-button-secondary-text-pressed-monochrome:var(--ic-action-light-pressed);--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4880
|
+
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-text-pressed-active);--button-loading-outer-color:var(--ic-button-secondary-background-pressed)}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background-non-transparent)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent\n ) !important}:host(.ic-button-variant-secondary.background.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n )}:host(.ic-button-variant-secondary.background.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n ) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-color:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-color:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n );color:var(--ic-button-primary-text)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n ) !important}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n );color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-acti)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-acti) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-architectural-300);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-architectural-300);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-architectural-300);background:none}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button,:host(.clear-button) .button,:host(.dismiss-icon) ::slotted(a),:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon) .button:hover,:host(.clear-button) .button:hover,:host(.dismiss-icon) ::slotted(a:hover),:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon),:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.dismiss-icon) .button:focus,:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(--ic-action-dark-hover);--ic-button-secondary-text-pressed-monochrome:var(--ic-action-dark-pressed);--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(--ic-action-light-hover);--ic-button-secondary-text-pressed-monochrome:var(--ic-action-light-pressed);--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4881
4881
|
var IcButtonStyle0 = icButtonCss;
|
4882
4882
|
|
4883
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
4883
|
+
var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
4884
4884
|
var t = {};
|
4885
4885
|
for (var p in s)
|
4886
4886
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -5042,6 +5042,63 @@ class Button {
|
|
5042
5042
|
var _a;
|
5043
5043
|
return (_a = this.variant) === null || _a === void 0 ? void 0 : _a.startsWith("icon");
|
5044
5044
|
};
|
5045
|
+
this.arrangeRouterItem = () => {
|
5046
|
+
var _a, _b, _c, _d;
|
5047
|
+
const setStyles = (element, styles) => {
|
5048
|
+
Object.entries(styles).forEach(([key, value]) => {
|
5049
|
+
element.style.setProperty(key, value);
|
5050
|
+
});
|
5051
|
+
};
|
5052
|
+
const iconWrapper = document.createElement("div");
|
5053
|
+
const icon = (_a = this.routerSlot) === null || _a === void 0 ? void 0 : _a.querySelector("svg");
|
5054
|
+
const badge = (_b = this.routerSlot) === null || _b === void 0 ? void 0 : _b.querySelector("ic-badge");
|
5055
|
+
const label = (_d = (_c = this.routerSlot) === null || _c === void 0 ? void 0 : _c.textContent) === null || _d === void 0 ? void 0 : _d.trim();
|
5056
|
+
const icTypography = document.createElement("ic-typography");
|
5057
|
+
setStyles(icTypography, {
|
5058
|
+
"font-family": "var(--ic-font-body-family)",
|
5059
|
+
"font-size": "0.875rem",
|
5060
|
+
"font-weight": "600",
|
5061
|
+
});
|
5062
|
+
setStyles(this.routerSlot, {
|
5063
|
+
gap: "0",
|
5064
|
+
});
|
5065
|
+
if (icon) {
|
5066
|
+
setStyles(icon, {
|
5067
|
+
fill: "currentcolor",
|
5068
|
+
});
|
5069
|
+
icon.getAttribute("slot") === "left-icon" &&
|
5070
|
+
setStyles(iconWrapper, {
|
5071
|
+
"margin-right": "var(--ic-space-xs)",
|
5072
|
+
});
|
5073
|
+
icon.getAttribute("slot") === "right-icon" &&
|
5074
|
+
setStyles(iconWrapper, {
|
5075
|
+
"margin-left": "var(--ic-space-xs)",
|
5076
|
+
});
|
5077
|
+
if (icon.getAttribute("slot") === "top-icon") {
|
5078
|
+
setStyles(this.routerSlot, {
|
5079
|
+
display: "flex",
|
5080
|
+
"flex-direction": "column",
|
5081
|
+
"--height": "fit-content",
|
5082
|
+
});
|
5083
|
+
}
|
5084
|
+
iconWrapper.append(icon);
|
5085
|
+
}
|
5086
|
+
badge && iconWrapper.append(badge);
|
5087
|
+
if (label) {
|
5088
|
+
icTypography.textContent = label;
|
5089
|
+
}
|
5090
|
+
if (this.routerSlot) {
|
5091
|
+
this.routerSlot.textContent = "";
|
5092
|
+
if (icon && icon.getAttribute("slot") === "right-icon") {
|
5093
|
+
this.routerSlot.append(icTypography);
|
5094
|
+
this.routerSlot.append(iconWrapper);
|
5095
|
+
}
|
5096
|
+
else {
|
5097
|
+
this.routerSlot.append(iconWrapper);
|
5098
|
+
this.routerSlot.append(icTypography);
|
5099
|
+
}
|
5100
|
+
}
|
5101
|
+
};
|
5045
5102
|
}
|
5046
5103
|
watchDisabledHandler() {
|
5047
5104
|
removeDisabledFalse$1(this.disabled, this.el);
|
@@ -5063,7 +5120,7 @@ class Button {
|
|
5063
5120
|
}
|
5064
5121
|
componentWillLoad() {
|
5065
5122
|
var _a;
|
5066
|
-
const _b = inheritAttributes(this.el, [...IC_INHERITED_ARIA, "title"]), { title, "aria-label": ariaLabel } = _b, restInheritedAttributes = __rest(_b, ["title", "aria-label"]);
|
5123
|
+
const _b = inheritAttributes(this.el, [...IC_INHERITED_ARIA, "title"]), { title, "aria-label": ariaLabel } = _b, restInheritedAttributes = __rest$1(_b, ["title", "aria-label"]);
|
5067
5124
|
this.title = title;
|
5068
5125
|
this.ariaLabel = ariaLabel;
|
5069
5126
|
this.inheritedAttributes = restInheritedAttributes;
|
@@ -5098,6 +5155,7 @@ class Button {
|
|
5098
5155
|
this.hostMutationObserver.observe(this.el, {
|
5099
5156
|
attributes: true,
|
5100
5157
|
});
|
5158
|
+
this.hasRouterSlot() && this.arrangeRouterItem();
|
5101
5159
|
}
|
5102
5160
|
}
|
5103
5161
|
componentWillRender() {
|
@@ -5452,6 +5510,22 @@ const isEmptyString = (value) => value ? value.trim().length === 0 : true;
|
|
5452
5510
|
// A helper function that checks if a prop has been defined
|
5453
5511
|
const isPropDefined = (prop) => prop !== undefined ? prop : null;
|
5454
5512
|
const deviceSizeMatches = (size) => window.matchMedia(`(max-width: ${size}px)`).matches;
|
5513
|
+
const getCurrentDeviceSize = () => {
|
5514
|
+
if (deviceSizeMatches(DEVICE_SIZES.S)) {
|
5515
|
+
return DEVICE_SIZES.S;
|
5516
|
+
}
|
5517
|
+
if (deviceSizeMatches(DEVICE_SIZES.M)) {
|
5518
|
+
return DEVICE_SIZES.M;
|
5519
|
+
}
|
5520
|
+
if (deviceSizeMatches(DEVICE_SIZES.L)) {
|
5521
|
+
return DEVICE_SIZES.L;
|
5522
|
+
}
|
5523
|
+
if (deviceSizeMatches(DEVICE_SIZES.XL)) {
|
5524
|
+
return DEVICE_SIZES.XL;
|
5525
|
+
}
|
5526
|
+
//fallback needed as all of above get initialised to 0 in jest tests
|
5527
|
+
return DEVICE_SIZES.UNDEFINED;
|
5528
|
+
};
|
5455
5529
|
const getCssProperty = (cssVar) => getComputedStyle(document.documentElement).getPropertyValue(cssVar);
|
5456
5530
|
const getSlotElements = (slot) => {
|
5457
5531
|
const slotContent = slot.firstElementChild;
|
@@ -5466,14 +5540,14 @@ const getSlotElements = (slot) => {
|
|
5466
5540
|
return slot === null ? null : [slot];
|
5467
5541
|
}
|
5468
5542
|
};
|
5469
|
-
|
5543
|
+
const DEVICE_SIZES = {
|
5470
5544
|
XS: Number(getCssProperty("--ic-breakpoint-xs").replace("px", "")), // 0
|
5471
5545
|
S: Number(getCssProperty("--ic-breakpoint-sm").replace("px", "")), // 576
|
5472
5546
|
M: Number(getCssProperty("--ic-breakpoint-md").replace("px", "")), // 768
|
5473
5547
|
L: Number(getCssProperty("--ic-breakpoint-lg").replace("px", "")), // 992
|
5474
5548
|
XL: Number(getCssProperty("--ic-breakpoint-xl").replace("px", "")), // 1200
|
5475
5549
|
UNDEFINED: 1200,
|
5476
|
-
}
|
5550
|
+
};
|
5477
5551
|
const isSlotUsed = (element, slotName) => Array.from(element.children).some((child) => child.getAttribute("slot") === slotName);
|
5478
5552
|
const hasShadowDom = (el) => !!el.shadowRoot && !!el.attachShadow;
|
5479
5553
|
const getInputHelperTextID = (id) => id + "-helper-text";
|
@@ -6492,7 +6566,7 @@ class DataRow {
|
|
6492
6566
|
registerInstance(this, hostRef);
|
6493
6567
|
this.hasEndComponent = false;
|
6494
6568
|
this.resizeObserver = null;
|
6495
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
6569
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
6496
6570
|
/**
|
6497
6571
|
* The size of the data row component.
|
6498
6572
|
*/
|
@@ -6521,7 +6595,7 @@ class DataRow {
|
|
6521
6595
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
6522
6596
|
}
|
6523
6597
|
componentWillLoad() {
|
6524
|
-
this.deviceSize = getCurrentDeviceSize();
|
6598
|
+
this.deviceSize = getCurrentDeviceSize$1();
|
6525
6599
|
this.hasEndComponent = slotHasContent(this.el, "end-component");
|
6526
6600
|
this.checkLabelAbove();
|
6527
6601
|
}
|
@@ -6537,9 +6611,9 @@ class DataRow {
|
|
6537
6611
|
const rowSize = (row === null || row === void 0 ? void 0 : row.clientWidth) + 46;
|
6538
6612
|
if (rowSize) {
|
6539
6613
|
this.listSize =
|
6540
|
-
rowSize < DEVICE_SIZES.S
|
6614
|
+
rowSize < DEVICE_SIZES$1.S
|
6541
6615
|
? "xs"
|
6542
|
-
: rowSize < DEVICE_SIZES.M
|
6616
|
+
: rowSize < DEVICE_SIZES$1.M
|
6543
6617
|
? "m"
|
6544
6618
|
: "xl";
|
6545
6619
|
}
|
@@ -6589,7 +6663,7 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
6589
6663
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
6590
6664
|
</svg>`;
|
6591
6665
|
|
6592
|
-
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-data-table-cell-background-selected) !important}.table-row:hover{background-color:var(--ic-data-table-cell-background-hover) !important}.table-row-selected:hover{background-color:var(\n --ic-data-table-cell-background-selected-hover\n ) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left;vertical-align:top}.data-type-number,.data-type-date{text-align:right;justify-content:end;vertical-align:top}.cell-alignment-top{vertical-align:top;align-items:flex-start}.cell-alignment-middle{vertical-align:middle;align-items:center}.cell-alignment-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-dialog) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg){fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-dialog) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-
|
6666
|
+
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-data-table-cell-background-selected) !important}.table-row:hover{background-color:var(--ic-data-table-cell-background-hover) !important}.table-row-selected:hover{background-color:var(\n --ic-data-table-cell-background-selected-hover\n ) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left;vertical-align:top}.data-type-number,.data-type-date{text-align:right;justify-content:end;vertical-align:top}.cell-alignment-top{vertical-align:top;align-items:flex-start}.cell-alignment-middle{vertical-align:middle;align-items:center}.cell-alignment-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-dialog) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-dialog) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-description-text)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
|
6593
6667
|
var IcDataTableStyle0 = icDataTableCss;
|
6594
6668
|
|
6595
6669
|
/**
|
@@ -8186,20 +8260,25 @@ class DateInput {
|
|
8186
8260
|
this.KEYBOARD_EVENT_OBJECT_STRING = "[object KeyboardEvent]";
|
8187
8261
|
this.MAX_DAY = 31;
|
8188
8262
|
this.MAX_MONTH = 12;
|
8189
|
-
this.previousEmittedDate = undefined;
|
8190
8263
|
this.previousSelectedDate = null;
|
8191
8264
|
this.selectedDate = null;
|
8192
|
-
this.
|
8193
|
-
this.
|
8194
|
-
this.year = "";
|
8265
|
+
this.externalSetDate = false;
|
8266
|
+
this.clearInput = false;
|
8195
8267
|
this.calendarFocused = false;
|
8196
8268
|
this.clearButtonFocused = false;
|
8197
8269
|
this.removeLabelledBy = false;
|
8270
|
+
this.day = "";
|
8271
|
+
this.month = "";
|
8272
|
+
this.year = "";
|
8198
8273
|
/**
|
8199
8274
|
* The format in which the date will be displayed.
|
8200
8275
|
*/
|
8201
8276
|
// eslint-disable-next-line sonarjs/no-duplicate-string
|
8202
8277
|
this.dateFormat = "DD/MM/YYYY";
|
8278
|
+
/**
|
8279
|
+
* If `true`, every individual input field completed will emit an icChange event.
|
8280
|
+
*/
|
8281
|
+
this.emitDatePartChange = false;
|
8203
8282
|
/**
|
8204
8283
|
* If `true`, the disabled state will be set.
|
8205
8284
|
*/
|
@@ -8586,9 +8665,12 @@ class DateInput {
|
|
8586
8665
|
};
|
8587
8666
|
this.setDate = (date) => {
|
8588
8667
|
if (date === null || date === "" || date === undefined) {
|
8589
|
-
this.day
|
8590
|
-
|
8591
|
-
this.
|
8668
|
+
if (this.day)
|
8669
|
+
this.day = null;
|
8670
|
+
if (this.month)
|
8671
|
+
this.month = null;
|
8672
|
+
if (this.year)
|
8673
|
+
this.year = null;
|
8592
8674
|
this.inputsInOrder.forEach((input) => {
|
8593
8675
|
input.classList.remove(this.FIT_TO_VALUE);
|
8594
8676
|
this.setPreventInput(input, false);
|
@@ -8611,9 +8693,11 @@ class DateInput {
|
|
8611
8693
|
}
|
8612
8694
|
else if (typeof date === "string") {
|
8613
8695
|
const defaultDateArray = splitStringDate(date, this.dateFormat);
|
8696
|
+
this.selectedDate = new Date(Number(defaultDateArray[0]), Number(defaultDateArray[1]) - 1, Number(defaultDateArray[2]));
|
8614
8697
|
this.year = defaultDateArray[0];
|
8615
8698
|
this.month = defaultDateArray[1];
|
8616
8699
|
this.day = defaultDateArray[2];
|
8700
|
+
this.setValueAndEmitChange(this.selectedDate);
|
8617
8701
|
}
|
8618
8702
|
}
|
8619
8703
|
this.setValidationMessage();
|
@@ -9008,11 +9092,13 @@ class DateInput {
|
|
9008
9092
|
}
|
9009
9093
|
};
|
9010
9094
|
this.handleClear = () => {
|
9095
|
+
this.clearInput = true;
|
9011
9096
|
this.inputsInOrder.forEach((input) => {
|
9012
9097
|
input.classList.remove(this.FIT_TO_VALUE);
|
9013
9098
|
this.setInputValue(input, true);
|
9014
9099
|
this.setPreventInput(input, false);
|
9015
9100
|
});
|
9101
|
+
this.clearInput = false;
|
9016
9102
|
this.isDateSetFromKeyboardEvent = false;
|
9017
9103
|
this.setValidationMessage();
|
9018
9104
|
this.handleDateChange(true);
|
@@ -9052,13 +9138,31 @@ class DateInput {
|
|
9052
9138
|
this.removeLabelledBy = true;
|
9053
9139
|
};
|
9054
9140
|
this.emitIcChange = (d) => {
|
9055
|
-
|
9056
|
-
|
9057
|
-
this.
|
9058
|
-
this.
|
9141
|
+
this.selectedDate = d;
|
9142
|
+
if (!dateMatches(this.selectedDate, d) ||
|
9143
|
+
this.day !== null ||
|
9144
|
+
this.month !== null ||
|
9145
|
+
this.year !== null) {
|
9146
|
+
this.icChange.emit({
|
9147
|
+
value: d,
|
9148
|
+
dateObject: {
|
9149
|
+
day: this.day === "" ? null : this.day,
|
9150
|
+
month: this.month === "" ? null : this.month,
|
9151
|
+
year: this.year === "" ? null : this.year,
|
9152
|
+
},
|
9153
|
+
});
|
9059
9154
|
}
|
9060
9155
|
};
|
9061
9156
|
}
|
9157
|
+
watchInputHandler() {
|
9158
|
+
if (this.emitDatePartChange &&
|
9159
|
+
!this.externalSetDate &&
|
9160
|
+
!this.clearInput &&
|
9161
|
+
!(this.day && this.month && this.year) &&
|
9162
|
+
this.selectedDate === null) {
|
9163
|
+
this.emitIcChange(this.selectedDate);
|
9164
|
+
}
|
9165
|
+
}
|
9062
9166
|
watchDisabledHandler() {
|
9063
9167
|
removeDisabledFalse(this.disabled, this.el);
|
9064
9168
|
}
|
@@ -9112,11 +9216,8 @@ class DateInput {
|
|
9112
9216
|
this.watchMinHandler();
|
9113
9217
|
this.watchMaxHandler();
|
9114
9218
|
if (this.value) {
|
9219
|
+
this.externalSetDate = true;
|
9115
9220
|
this.setDate(this.value);
|
9116
|
-
this.previousEmittedDate = this.selectedDate;
|
9117
|
-
}
|
9118
|
-
else {
|
9119
|
-
this.previousEmittedDate = null;
|
9120
9221
|
}
|
9121
9222
|
this.screenReaderInfoId = `${this.inputId}-screen-reader-info`;
|
9122
9223
|
this.assistiveHintId = `${this.inputId}-assistive-hint`;
|
@@ -9185,7 +9286,10 @@ class DateInput {
|
|
9185
9286
|
* @internal Used to enable other components to invoke an IcChange event from the input.
|
9186
9287
|
*/
|
9187
9288
|
async triggerIcChange(d) {
|
9289
|
+
this.externalSetDate = true;
|
9290
|
+
this.setDate(d);
|
9188
9291
|
this.emitIcChange(d);
|
9292
|
+
this.externalSetDate = false;
|
9189
9293
|
}
|
9190
9294
|
removeAriaLabelledBy() {
|
9191
9295
|
this.inputCompContainerEl.removeAttribute(this.ARIA_LABELLED_BY);
|
@@ -9302,19 +9406,22 @@ class DateInput {
|
|
9302
9406
|
: "";
|
9303
9407
|
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
9304
9408
|
renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
|
9305
|
-
return (hAsync(Host, { key: '
|
9409
|
+
return (hAsync(Host, { key: 'a37b652ab1896d583a970f2fe3f23480fe923406', class: {
|
9306
9410
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
9307
9411
|
[`ic-date-input-disabled`]: disabled,
|
9308
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
9412
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '41c1cd439879613d8920593309e19c050e5d451e', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: 'a598faa23eda4cf283cd5e542008aad20150736e', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled })), hAsync("span", { key: '71265eb5808610652efe874a2ad9828c970a9176', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '67121b1b28fa69acd5c143d8dacb9c634db15f05', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: '2af3f97d24ed25ba868b08d13b4467075b350a36', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: 'c7c455f3f16458f6a56e604e8f8499834f277933', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'ccf2a9ca8154cdc108fdbbe4a8b1cf2fd6fb5070', class: "input-container" }, hAsync("div", { key: 'c044b44ee99dcf32722bdbfa481c8464a9a4d7bb', class: "date-inputs" }, this.getInputsInOrder()[0], "/", this.getInputsInOrder()[1], "/", this.getInputsInOrder()[2]), hAsync("div", { key: '30818ad45a24cdca204f8b629f064840420afb44', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '99a6a5b62893e56cf5d3a4f6645ce2aa1b77e538', id: "clear-button", "aria-label": "Clear input", class: {
|
9309
9413
|
["clear-button"]: true,
|
9310
9414
|
["hidden"]: isEmptyString(this.day) &&
|
9311
9415
|
isEmptyString(this.month) &&
|
9312
9416
|
isEmptyString(this.year),
|
9313
|
-
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '
|
9417
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '77a0ba0e9dfa3b99a97252178e42f49261619503', class: "show-calendar-button-wrapper" }, hAsync("div", { key: '70408bceb4963e3ba54fe5630ba95905d15be0a6', class: { divider: true, [size]: true } }), hAsync("ic-button", { key: 'f38c632d59fe23bfda2f20a8a9646028ac40f99b', id: "calendar-button", ref: (el) => (this.calendarButtonEl = el), "aria-label": "Display calendar", "aria-haspopup": "dialog", class: "calendar-button", disabled: this.disabled, innerHTML: Calendar, onClick: this.handleCalendarOpen, variant: "icon-tertiary", size: size, onFocus: this.handleCalendarFocus, onBlur: this.handleCalendarBlur, theme: this.calendarFocused ? "light" : "dark" })))))), hAsync("span", { key: '614cc74c88f8d83e04ec9bde0d984567c536d65c', id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: 'f1dea32613b9f162808ffef69baa6231c86998d3', ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidDateText)) && (hAsync("ic-input-validation", { key: '802cdf9f7bc52c9164137059b46f5c1dfcbcdb80', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId })))));
|
9314
9418
|
}
|
9315
9419
|
static get delegatesFocus() { return true; }
|
9316
9420
|
get el() { return getElement(this); }
|
9317
9421
|
static get watchers() { return {
|
9422
|
+
"day": ["watchInputHandler"],
|
9423
|
+
"month": ["watchInputHandler"],
|
9424
|
+
"year": ["watchInputHandler"],
|
9318
9425
|
"disabled": ["watchDisabledHandler"],
|
9319
9426
|
"disableFuture": ["watchDisableFutureHandler"],
|
9320
9427
|
"disablePast": ["watchDisablePastHandler"],
|
@@ -9328,6 +9435,7 @@ class DateInput {
|
|
9328
9435
|
"$tagName$": "ic-date-input",
|
9329
9436
|
"$members$": {
|
9330
9437
|
"dateFormat": [1, "date-format"],
|
9438
|
+
"emitDatePartChange": [4, "emit-date-part-change"],
|
9331
9439
|
"disabled": [4],
|
9332
9440
|
"disableDays": [1040],
|
9333
9441
|
"disableDaysMessage": [1, "disable-days-message"],
|
@@ -9352,15 +9460,15 @@ class DateInput {
|
|
9352
9460
|
"value": [1025],
|
9353
9461
|
"validationStatus": [1025, "validation-status"],
|
9354
9462
|
"validationText": [1, "validation-text"],
|
9355
|
-
"day": [32],
|
9356
9463
|
"invalidDateText": [32],
|
9357
9464
|
"maxDate": [32],
|
9358
9465
|
"minDate": [32],
|
9359
|
-
"month": [32],
|
9360
|
-
"year": [32],
|
9361
9466
|
"calendarFocused": [32],
|
9362
9467
|
"clearButtonFocused": [32],
|
9363
9468
|
"removeLabelledBy": [32],
|
9469
|
+
"day": [32],
|
9470
|
+
"month": [32],
|
9471
|
+
"year": [32],
|
9364
9472
|
"getDate": [64],
|
9365
9473
|
"setCalendarFocus": [64],
|
9366
9474
|
"setDisableDays": [64],
|
@@ -9532,6 +9640,10 @@ class DatePicker {
|
|
9532
9640
|
* If `true`, the disabled state will be set.
|
9533
9641
|
*/
|
9534
9642
|
this.disabled = false;
|
9643
|
+
/**
|
9644
|
+
* If `true`, every individual input field completed will emit an icChange event.
|
9645
|
+
*/
|
9646
|
+
this.emitDatePartChange = false;
|
9535
9647
|
/**
|
9536
9648
|
* The days of the week to disable.
|
9537
9649
|
*/
|
@@ -10238,6 +10350,7 @@ class DatePicker {
|
|
10238
10350
|
showClearButton: true,
|
10239
10351
|
showCalendarButton: true,
|
10240
10352
|
value: this.value,
|
10353
|
+
emitDatePartChange: this.emitDatePartChange,
|
10241
10354
|
};
|
10242
10355
|
if (this.dateFormat !== DEFAULT_DATE_FORMAT) {
|
10243
10356
|
inputProps.dateFormat = this.dateFormat;
|
@@ -10460,30 +10573,30 @@ class DatePicker {
|
|
10460
10573
|
yesterday.setDate(minDate.getDate() - 1);
|
10461
10574
|
minDay = yesterday;
|
10462
10575
|
}
|
10463
|
-
return (hAsync(Host, { key: '
|
10576
|
+
return (hAsync(Host, { key: '5e9ccc7a11ec9af59b92c82a57220d2331487ae3', onKeyDown: this.keyDownHandler, class: {
|
10464
10577
|
[`ic-date-picker-${size}`]: true,
|
10465
10578
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
10466
|
-
} }, hAsync("div", { key: '
|
10579
|
+
} }, hAsync("div", { key: '4a955bd86f7d40729b9e06a951b74f1ac8e6537d', class: "date-input-container" }, hAsync("ic-date-input", Object.assign({ key: 'dfad29fcd55af0bd223043829bf9ba0a50a13c83', ref: (el) => (this.inputEl = el) }, dateInputProps))), calendarOpen && (hAsync("div", { key: '54b425398ff5d01f48579295f11afe134dd4754d' }, hAsync("span", { key: '7dd1c85c21aa42e4e349ed3b5c49e30d8079b805', id: "dialog-description", class: "sr-only" }, dialogDescription), hAsync("div", { key: '60277961fe96cd039c2896667c540799da9ee791', role: "dialog", "aria-modal": "true", "aria-label": dialogLabel, "aria-describedBy": "dialog-description", class: {
|
10467
10580
|
"calendar-container": true,
|
10468
10581
|
above: this.showPickerAbove,
|
10469
|
-
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '
|
10582
|
+
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '13e933dec8f72ad6b3c321e2d20068e44676d526', ref: (el) => (this.liveRegionEl = el), id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: 'ef5b6ecc2837afa98e54b3d1f3f7c35b9d76cbe8', class: {
|
10470
10583
|
"month-year-nav-container": true,
|
10471
|
-
} }, hAsync("div", { key: '
|
10584
|
+
} }, hAsync("div", { key: '4d0758186767ffc0a53bbd98546c71d6f3ae68e1', class: "month-year-nav" }, this.previousMonthButton(), hAsync("span", { key: '87a8892fcc48cbdd31e71e98677afb4a65b4509a', id: "select-month-hint", "aria-hidden": "true" }, monthButtonText), hAsync("ic-button", { key: '54562344011fdc11a801ed4ab3bf0f9d1cbb0720', ref: (el) => (this.monthButtonEl = el), size: size, class: "month-picker-button", "aria-haspopup": "menu", "aria-expanded": monthPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": monthLabel, "aria-describedby": "select-month-hint", onKeyDown: this.monthButtonKeyDownHandler, onClick: this.monthButtonClickHandler }, monthNames[monthInView]), this.nextMonthButton()), hAsync("div", { key: 'cd717c2e91642b10bef03f749c839caaeb90c5d4', class: "month-year-nav" }, this.previousYearButton(), hAsync("span", { key: '41b425d37f008489a105a540ab0e05460e10c322', id: "select-year-hint", "aria-hidden": "true" }, yearButtonText), hAsync("ic-button", { key: '06c7108cddf69046a6c2b5ac6226dff3ff3ff5c3', ref: (el) => (this.yearButtonEl = el), size: size, class: "year-picker-button", "aria-haspopup": "menu", "aria-expanded": yearPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": yearLabel, "aria-describedby": "select-year-hint", onKeyDown: this.yearButtonKeyDownHandler, onClick: this.yearButtonClickHandler }, this.yearInView), this.nextYearButton())), !(monthPickerVisible || yearPickerVisible) && (hAsync("div", { key: '280daa0c705cdd4016b461aef7e8d781e79a99b4', class: {
|
10472
10585
|
calendar: true,
|
10473
10586
|
hidden: monthPickerVisible || yearPickerVisible,
|
10474
|
-
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '
|
10587
|
+
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: 'fb5ca495827648da54f931081d7ada104813d6d6', class: "weekdays", "aria-hidden": "true" }, orderedDaysOfWeek.map((dayName) => {
|
10475
10588
|
const header = size === "small" ? dayName.charAt(0) : dayName;
|
10476
10589
|
return (hAsync("div", { class: "calendar-day-header" }, hAsync("ic-typography", { variant: "caption" }, header)));
|
10477
|
-
})), hAsync("div", { key: '
|
10590
|
+
})), hAsync("div", { key: 'cb969df058c5c9992eea64185219c12dd4f63f16', class: "calendar-days-container" }, this.currMonthView.map((day) => (hAsync(DayButton, { day: day, disableDay: this.disableDays.includes(Number(day.getDay())), today: dateMatches(day, this.today), selected: dateMatches(day, this.selectedDate), focussed: dateMatches(day, this.focussedDate), inRange: dateInRange(day, minDay, maxDate), monthInView: monthInView, onSelectDay: this.handleSelectDay, focussedDayRef: this.setFocussedDayEl, onFocusDay: this.onDayButtonFocusHandler, onBlurDay: this.onDayButtonBlurHandler, showDaysOutsideMonth: this.showDaysOutsideMonth })))))), hAsync("div", { key: '6878f71a8e9849309935aed5f3ace0ea0528a5b9', class: {
|
10478
10591
|
"month-picker-container": true,
|
10479
10592
|
hidden: !monthPickerVisible,
|
10480
|
-
} }, monthPickerVisible && (hAsync(MonthPicker, { key: '
|
10593
|
+
} }, monthPickerVisible && (hAsync(MonthPicker, { key: '3adce24e8a23ce361de3f6e377eadcea09ba9407', size: size, onSelectMonth: this.handleSelectMonth, monthInView: monthInView, focussedMonth: focussedMonth, onKeyDown: this.monthPickerKeyDownHandler, focussedMonthRef: this.setFocussedMonthEl, minDate: minDate, maxDate: maxDate, yearInView: yearInView }))), hAsync("div", { key: 'c645f72d43f2ca109ee37f182d1e8d3ee54e8b91', class: {
|
10481
10594
|
"year-picker-container": true,
|
10482
10595
|
hidden: !yearPickerVisible,
|
10483
|
-
} }, yearPickerVisible && (hAsync(YearPicker, { key: '
|
10596
|
+
} }, yearPickerVisible && (hAsync(YearPicker, { key: '3e3022a85c04a79e59f141e2e11b969712e40ca9', decadeView: decadeView, size: size, focussedYear: focussedYear, onSelectYear: this.handleSelectYear, onKeyDown: this.yearPickerKeyDownHandler, onFocusYear: this.onYearButtonFocusHandler, onBlurYear: this.onYearButtonBlurHandler, yearInView: yearInView, minDate: minDate, maxDate: maxDate, focussedYearRef: this.setFocussedYearEl }))), hAsync("div", { key: '6cbaef27a87bb48333241842a2654facb90578a6', class: {
|
10484
10597
|
"bottom-buttons": true,
|
10485
10598
|
"no-today": !showPickerTodayButton,
|
10486
|
-
} }, showPickerTodayButton && (hAsync("ic-button", { key: '
|
10599
|
+
} }, showPickerTodayButton && (hAsync("ic-button", { key: 'efdb2b56aa7b886c3bb90379a553d86143a5479a', id: "today-button", variant: "tertiary", ref: (el) => (this.todayButtonEl = el), size: size, "aria-label": "Navigate to current date", onClick: this.todayButtonClickHandler, onKeyDown: this.todayButtonKeyDownHandler, disabled: this.isCurrentMonth() }, "Go to today")), showPickerClearButton && (hAsync("ic-button", { key: 'd54bb6a21e9cf1164d09c27a01d1b334a52eb433', id: "clear-button", "aria-label": "clear selected date", ref: (el) => (this.clearButtonEl = el), variant: "tertiary", size: size, onClick: this.clearButtonClickHandler, onKeyDown: this.clearButtonKeyDownHandler, disabled: this.value === "" ||
|
10487
10600
|
this.value === null ||
|
10488
10601
|
this.value === undefined }, "Clear"))))))));
|
10489
10602
|
}
|
@@ -10511,6 +10624,7 @@ class DatePicker {
|
|
10511
10624
|
"$members$": {
|
10512
10625
|
"dateFormat": [1, "date-format"],
|
10513
10626
|
"disabled": [4],
|
10627
|
+
"emitDatePartChange": [4, "emit-date-part-change"],
|
10514
10628
|
"disableDays": [16],
|
10515
10629
|
"disableDaysMessage": [1, "disable-days-message"],
|
10516
10630
|
"disableFuture": [4, "disable-future"],
|
@@ -11180,7 +11294,7 @@ class Footer {
|
|
11180
11294
|
this.runResizeObserver = () => {
|
11181
11295
|
if (this.footerEl) {
|
11182
11296
|
this.resizeObserver = new ResizeObserver(() => {
|
11183
|
-
const currSize = getCurrentDeviceSize();
|
11297
|
+
const currSize = getCurrentDeviceSize$1();
|
11184
11298
|
this.resizeObserverCallback(currSize);
|
11185
11299
|
});
|
11186
11300
|
this.resizeObserver.observe(this.footerEl);
|
@@ -11195,7 +11309,7 @@ class Footer {
|
|
11195
11309
|
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
11196
11310
|
}
|
11197
11311
|
componentWillLoad() {
|
11198
|
-
this.deviceSize = getCurrentDeviceSize();
|
11312
|
+
this.deviceSize = getCurrentDeviceSize$1();
|
11199
11313
|
}
|
11200
11314
|
componentDidLoad() {
|
11201
11315
|
checkResizeObserver$1(this.runResizeObserver);
|
@@ -11272,7 +11386,7 @@ var IcFooterLinkStyle0 = icFooterLinkCss;
|
|
11272
11386
|
class FooterLink {
|
11273
11387
|
constructor(hostRef) {
|
11274
11388
|
registerInstance(this, hostRef);
|
11275
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
11389
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
11276
11390
|
this.footerConfig = { small: false, grouped: false };
|
11277
11391
|
this.foregroundColor = getBrandForegroundAppearance();
|
11278
11392
|
/**
|
@@ -11346,7 +11460,7 @@ class FooterLinkGroup {
|
|
11346
11460
|
constructor(hostRef) {
|
11347
11461
|
registerInstance(this, hostRef);
|
11348
11462
|
this.expanded = false;
|
11349
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
11463
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
11350
11464
|
this.dropdownIconStyle = getBrandForegroundAppearance();
|
11351
11465
|
this.small = false;
|
11352
11466
|
this.handleKeydown = (event) => {
|
@@ -15175,7 +15289,7 @@ class MenuGroup {
|
|
15175
15289
|
}; }
|
15176
15290
|
}
|
15177
15291
|
|
15178
|
-
const icMenuItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}li{list-style:none;padding:0}:host ::part(button){color:var(--ic-popover-menu-item-check);padding:calc(var(--ic-space-xxxs) / 2);display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:0;min-height:2.5rem;height:auto}.focus-border{display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:var(--ic-border-radius);margin:calc(var(--ic-space-xxxs) / 2);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;--icon-height:auto}:host(.ic-menu-item-disabled) ::part(button){color:var(--ic-popover-menu-item-check-disabled) !important;--ic-typography-color:var(--ic-popover-menu-item-check-disabled) !important;pointer-events:none}:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host([variant=\"destructive\"]) ::part(button){color:var(--ic-popover-menu-destructive-item-icon);--ic-typography-color:var(--ic-popover-menu-destructive-item-label)}:host ::part(button):hover{background-color:var(--ic-popover-background-hover)}:host ::part(button):focus-visible,:host ::part(button):focus{color:var(--ic-popover-menu-item-icon-focused);--ic-typography-color:purple;background-color:var(--ic-popover-background-focus);box-shadow:none}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{color:var(--ic-popover-menu-item-icon-disabled) !important;--ic-typography-color:orange !important}:host([variant=\"destructive\"]) ::part(button):focus-visible,:host([variant=\"destructive\"]) ::part(button):focus{background-color:var(--ic-popover-destructive-background-focus)}ic-button:focus-within .menu-item-label,ic-button:focus-within .shortcut,ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-focused)}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:var(--ic-popover-menu-border)}:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-item-label) !important;--ic-typography-color:var(--ic-popover-menu-item-label) !important}:host([variant=\"destructive\"]) ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-destructive-item-label) !important;--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.menu-item-info{display:flex;flex-direction:column;flex:1;align-items:baseline;white-space:pre-line;text-align:left}.menu-labels{display:flex;align-items:baseline;gap:var(--ic-space-xs)}.menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}.shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut);display:flex;flex:min-content}:host([variant=\"destructive\"]) .menu-item-label{text-transform:uppercase;font-weight:600;letter-spacing:0.025em}ic-button:active .menu-item-label{--ic-typography-color:var(--ic-popover-menu-item-label)}ic-button:active .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}ic-button:active .shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut)}:host([variant=\"destructive\"]) ic-button:active .menu-item-label{--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.icon,.check-icon,.submenu-icon,.icon ::slotted(svg),.check-icon svg,.submenu-icon svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.check-icon.hide{visibility:hidden}@media (forced-colors: active){:host ::part(button){border:canvas}:host ::part(button):focus-visible{outline:var(--ic-space-xxxs) solid transparent}.focus-border{border-color:canvas}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:GrayText}:host(.ic-menu-item-disabled) .menu-item-info,:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-info,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:GrayText !important}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{outline-color:GrayText !important}}";
|
15292
|
+
const icMenuItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}li{list-style:none;padding:0}:host ::part(button){color:var(--ic-popover-menu-item-check);--ic-typography-color:var(--ic-popover-menu-item-check);padding:calc(var(--ic-space-xxxs) / 2);display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:0;min-height:2.5rem;height:auto}.focus-border{display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:var(--ic-border-radius);margin:calc(var(--ic-space-xxxs) / 2);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;--icon-height:auto}:host(.ic-menu-item-disabled) ::part(button){color:var(--ic-popover-menu-item-check-disabled) !important;--ic-typography-color:var(--ic-popover-menu-item-check-disabled) !important;pointer-events:none}:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host([variant=\"destructive\"]) ::part(button){color:var(--ic-popover-menu-destructive-item-icon);--ic-typography-color:var(--ic-popover-menu-destructive-item-label)}:host ::part(button):hover{background-color:var(--ic-popover-background-hover)}:host ::part(button):focus-visible,:host ::part(button):focus{color:var(--ic-popover-menu-item-icon-focused);--ic-typography-color:purple;background-color:var(--ic-popover-background-focus);box-shadow:none}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{color:var(--ic-popover-menu-item-icon-disabled) !important;--ic-typography-color:orange !important}:host([variant=\"destructive\"]) ::part(button):focus-visible,:host([variant=\"destructive\"]) ::part(button):focus{background-color:var(--ic-popover-destructive-background-focus)}ic-button:focus-within .menu-item-label,ic-button:focus-within .shortcut,ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-focused)}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:var(--ic-popover-menu-border)}:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-item-label) !important;--ic-typography-color:var(--ic-popover-menu-item-label) !important}:host([variant=\"destructive\"]) ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-destructive-item-label) !important;--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.menu-item-info{display:flex;flex-direction:column;flex:1;align-items:baseline;white-space:pre-line;text-align:left}.menu-labels{display:flex;align-items:baseline;gap:var(--ic-space-xs)}.menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}.shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut);display:flex;flex:min-content}:host([variant=\"destructive\"]) .menu-item-label{text-transform:uppercase;font-weight:600;letter-spacing:0.025em}ic-button:active .menu-item-label{--ic-typography-color:var(--ic-popover-menu-item-label)}ic-button:active .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}ic-button:active .shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut)}:host([variant=\"destructive\"]) ic-button:active .menu-item-label{--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.icon,.check-icon,.submenu-icon,.icon ::slotted(svg),.check-icon svg,.submenu-icon svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.check-icon.hide{visibility:hidden}@media (forced-colors: active){:host ::part(button){border:canvas}:host ::part(button):focus-visible{outline:var(--ic-space-xxxs) solid transparent}.focus-border{border-color:canvas}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:GrayText}:host(.ic-menu-item-disabled) .menu-item-info,:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-info,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:GrayText !important}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{outline-color:GrayText !important}}";
|
15179
15293
|
var IcMenuItemStyle0 = icMenuItemCss;
|
15180
15294
|
|
15181
15295
|
/**
|
@@ -15447,13 +15561,14 @@ class NavigationGroup {
|
|
15447
15561
|
constructor(hostRef) {
|
15448
15562
|
registerInstance(this, hostRef);
|
15449
15563
|
this.navigationGroupOpened = createEvent(this, "navigationGroupOpened", 7);
|
15564
|
+
this.navigationGroupExpanded = createEvent(this, "navigationGroupExpanded", 7);
|
15450
15565
|
this.allGroupedNavigationItems = [];
|
15451
15566
|
this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS = 100;
|
15452
15567
|
this.IC_NAVIGATION_ITEM = "ic-navigation-item";
|
15453
15568
|
this.mouseGate = false;
|
15454
15569
|
this.nodeName = "IC-NAVIGATION-GROUP";
|
15455
15570
|
this.GROUPED_LINKS_WRAPPER_CLASS = ".grouped-links-wrapper";
|
15456
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
15571
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
15457
15572
|
this.dropdownOpen = false;
|
15458
15573
|
this.expanded = true;
|
15459
15574
|
this.focusStyle = getBrandForegroundAppearance();
|
@@ -15502,7 +15617,7 @@ class NavigationGroup {
|
|
15502
15617
|
this.deviceSize = size;
|
15503
15618
|
this.inTopNavSideMenu =
|
15504
15619
|
size <=
|
15505
|
-
(((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.customMobileBreakpoint) || DEVICE_SIZES.L);
|
15620
|
+
(((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.customMobileBreakpoint) || DEVICE_SIZES$1.L);
|
15506
15621
|
}
|
15507
15622
|
};
|
15508
15623
|
this.setGroupedNavItemTabIndex = (tabIndexValue) => {
|
@@ -15670,7 +15785,7 @@ class NavigationGroup {
|
|
15670
15785
|
}
|
15671
15786
|
componentWillLoad() {
|
15672
15787
|
var _a, _b;
|
15673
|
-
this.deviceSize = getCurrentDeviceSize();
|
15788
|
+
this.deviceSize = getCurrentDeviceSize$1();
|
15674
15789
|
const { navType, parent } = getNavItemParentDetails(this.el);
|
15675
15790
|
this.navigationType = navType;
|
15676
15791
|
this.parentEl = parent;
|
@@ -15716,6 +15831,8 @@ class NavigationGroup {
|
|
15716
15831
|
}
|
15717
15832
|
toggleDropdown() {
|
15718
15833
|
this.dropdownOpen = !this.dropdownOpen;
|
15834
|
+
this.inTopNavSideMenu &&
|
15835
|
+
this.navigationGroupExpanded.emit({ expanded: this.dropdownOpen });
|
15719
15836
|
}
|
15720
15837
|
showDropdown() {
|
15721
15838
|
if (!this.dropdownOpen) {
|
@@ -15736,13 +15853,13 @@ class NavigationGroup {
|
|
15736
15853
|
}
|
15737
15854
|
render() {
|
15738
15855
|
const { label, dropdownOpen, inTopNavSideMenu, expandable } = this;
|
15739
|
-
return (hAsync(Host, { key: '
|
15856
|
+
return (hAsync(Host, { key: '642acbeff8a4ff9569bd49e84a3437fea5805101', class: {
|
15740
15857
|
["in-side-menu"]: inTopNavSideMenu,
|
15741
15858
|
"ic-navigation-group-expanded": this.expanded,
|
15742
15859
|
"ic-navigation-group-collapsed": !this.expanded,
|
15743
15860
|
["ic-navigation-group-side-nav"]: this.navigationType === "side",
|
15744
15861
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
15745
|
-
}, role: "listitem" }, hAsync("button", { key: '
|
15862
|
+
}, role: "listitem" }, hAsync("button", { key: 'c6d9e31b96f715579af6cfffcb9e5dbf4b676745', onMouseEnter: !inTopNavSideMenu && this.navigationType === "top"
|
15746
15863
|
? this.handleMouseEnter
|
15747
15864
|
: undefined, onMouseLeave: this.navigationType === "top" ? this.handleMouseLeave : undefined, tabindex: inTopNavSideMenu && !expandable ? "-1" : "0", onBlur: this.handleBlur, onClick: expandable ? this.handleClick : undefined, onKeyDown: this.handleKeydown, class: {
|
15748
15865
|
["navigation-group"]: true,
|
@@ -15751,7 +15868,7 @@ class NavigationGroup {
|
|
15751
15868
|
["navigation-group-side-menu-collapsed"]: inTopNavSideMenu && !!expandable && !dropdownOpen,
|
15752
15869
|
["navigation-group-side-menu-expanded"]: inTopNavSideMenu && !!expandable && dropdownOpen,
|
15753
15870
|
["selected"]: dropdownOpen && !inTopNavSideMenu,
|
15754
|
-
}, ref: (el) => (this.groupEl = el), "aria-expanded": `${dropdownOpen || this.expanded}`, "aria-haspopup": `${!inTopNavSideMenu && this.navigationType === "top"}` }, hAsync("ic-typography", { key: '
|
15871
|
+
}, ref: (el) => (this.groupEl = el), "aria-expanded": `${dropdownOpen || this.expanded}`, "aria-haspopup": `${!inTopNavSideMenu && this.navigationType === "top"}` }, hAsync("ic-typography", { key: '4eedda13cf661fd31a272abbf549751146f2da2d', variant: this.navigationType === "side" ? "caption" : "label" }, label), this.navigationType === "side" && expandable && (hAsync("div", { key: 'ce67b3b8aeb81de3630b3b635a88d93509496290', class: {
|
15755
15872
|
"chevron-toggle-icon-wrapper": true,
|
15756
15873
|
"chevron-toggle-icon-closed": this.expanded,
|
15757
15874
|
}, innerHTML: chevronIcon }))), this.renderNavigationItems()));
|
@@ -15798,7 +15915,7 @@ class NavigationItem {
|
|
15798
15915
|
this.hostMutationObserver = null;
|
15799
15916
|
this.ANIMATION_DURATION = parseInt(getCssProperty$1("--ic-transition-duration-slow")) || 0;
|
15800
15917
|
this.ARIA_LABEL_STRING = "aria-label";
|
15801
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
15918
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
15802
15919
|
this.focusStyle = getBrandForegroundAppearance();
|
15803
15920
|
this.inTopNavSideMenu = false;
|
15804
15921
|
this.isSideNavMobile = false;
|
@@ -15849,7 +15966,7 @@ class NavigationItem {
|
|
15849
15966
|
this.deviceSize = size;
|
15850
15967
|
this.inTopNavSideMenu =
|
15851
15968
|
size <=
|
15852
|
-
(((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.customMobileBreakpoint) || DEVICE_SIZES.L);
|
15969
|
+
(((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.customMobileBreakpoint) || DEVICE_SIZES$1.L);
|
15853
15970
|
}
|
15854
15971
|
};
|
15855
15972
|
this.sideNavExpandHandler = ({ detail, }) => {
|
@@ -15934,7 +16051,7 @@ class NavigationItem {
|
|
15934
16051
|
const { navType, parent } = getNavItemParentDetails(this.el);
|
15935
16052
|
this.navigationType = navType;
|
15936
16053
|
this.parentEl = parent;
|
15937
|
-
this.deviceSize = getCurrentDeviceSize();
|
16054
|
+
this.deviceSize = getCurrentDeviceSize$1();
|
15938
16055
|
this.sideNavExpanded =
|
15939
16056
|
((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.classList.contains("sm-expanded")) ||
|
15940
16057
|
((_b = this.parentEl) === null || _b === void 0 ? void 0 : _b.classList.contains("xs-menu-open")) ||
|
@@ -16046,6 +16163,8 @@ class NavigationItem {
|
|
16046
16163
|
const icNavigationMenuCss = ":host{display:block;position:fixed;top:0;left:0;width:100%;min-height:100% !important;background:rgb(0 0 0 / 60%);z-index:var(--ic-z-index-navigation-menu)}.popout-modal{position:absolute;inset:0}.popout-menu{position:fixed;top:0;right:0;width:16rem;bottom:0;background-color:var(--ic-top-navigation-menu-background);color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);box-shadow:var(--ic-elevation-overlay);overflow-y:auto;overflow-x:hidden}:host(.inline) .popout-menu{position:absolute}.menu-close-button-container{position:relative;left:11.875rem;padding:var(--ic-space-md) 0}.nav-group-first{padding-bottom:0}.menu-buttons-container{padding:var(--ic-space-sm) 0;border-bottom:var(--ic-border-width) solid var(--ic-architectural-200)}.menu-buttons-container-nav-item-above{margin-top:var(--ic-space-md);border-top:var(--ic-border-width) solid var(--ic-architectural-200)}.menu-status-version-container{display:flex;flex-wrap:wrap;gap:var(--ic-space-xs);padding:var(--ic-space-md) var(--ic-space-md) var(--ic-space-xl)}.status-version-no-buttons{border-top:var(--ic-space-1px) solid var(--ic-architectural-200)}.menu-status{background-color:var(--ic-status-tag-neutral);--ic-typography-color:var(--ic-status-tag-text);border-radius:var(--ic-space-md);width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) var(--ic-space-sm)}.menu-version{border-radius:var(--ic-space-md);background-color:var(--ic-status-tag-outlined-background-neutral);--ic-typography-color:var(--ic-color-text-primary-light);padding:var(--ic-space-xxs) var(--ic-space-sm)}.menu-status-text,.menu-version-text{overflow-wrap:break-word}.navigation-landmark-text{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}";
|
16047
16164
|
var IcNavigationMenuStyle0 = icNavigationMenuCss;
|
16048
16165
|
|
16166
|
+
const NAV_GROUP_TAG = "IC-NAVIGATION-GROUP";
|
16167
|
+
const NAV_ITEM_TAG = "IC-NAVIGATION-ITEM";
|
16049
16168
|
/**
|
16050
16169
|
* @slot navigation - Content will be rendered at top of panel.
|
16051
16170
|
* @slot buttons - Content will be rendered above version info and below navigation.
|
@@ -16071,6 +16190,21 @@ class NavigationMenu {
|
|
16071
16190
|
* The version info to display.
|
16072
16191
|
*/
|
16073
16192
|
this.version = "";
|
16193
|
+
this.setLastTabStop = (lastNavGroupExpanded) => {
|
16194
|
+
let lastEl = this.navigationEls[this.navigationEls.length - 1];
|
16195
|
+
if (lastEl.tagName === NAV_GROUP_TAG && lastNavGroupExpanded) {
|
16196
|
+
const childNavItems = lastEl.children;
|
16197
|
+
lastEl = childNavItems[childNavItems.length - 1];
|
16198
|
+
}
|
16199
|
+
if (lastEl.tagName === NAV_ITEM_TAG) {
|
16200
|
+
//check for slotted content i.e. react router link
|
16201
|
+
const slotContent = getSlot(lastEl, "navigation-item");
|
16202
|
+
if (slotContent !== null) {
|
16203
|
+
lastEl = slotContent;
|
16204
|
+
}
|
16205
|
+
}
|
16206
|
+
this.lastTabStop = lastEl;
|
16207
|
+
};
|
16074
16208
|
this.closeMenu = () => {
|
16075
16209
|
this.icNavigationMenuClose.emit();
|
16076
16210
|
};
|
@@ -16083,8 +16217,8 @@ class NavigationMenu {
|
|
16083
16217
|
if (this.lastTabStop !== null) {
|
16084
16218
|
switch (this.lastTabStop.tagName) {
|
16085
16219
|
case "IC-NAVIGATION-BUTTON":
|
16086
|
-
case
|
16087
|
-
case
|
16220
|
+
case NAV_ITEM_TAG:
|
16221
|
+
case NAV_GROUP_TAG:
|
16088
16222
|
focusEl = this.lastTabStop;
|
16089
16223
|
focusEl.focus();
|
16090
16224
|
break;
|
@@ -16097,15 +16231,20 @@ class NavigationMenu {
|
|
16097
16231
|
}
|
16098
16232
|
componentWillLoad() {
|
16099
16233
|
this.navBarEl = document.querySelector("ic-top-navigation");
|
16100
|
-
|
16101
|
-
if (navigationEls) {
|
16234
|
+
this.navigationEls = getSlotContent(this.el, "navigation");
|
16235
|
+
if (this.navigationEls) {
|
16102
16236
|
this.hasNavigation = true;
|
16103
|
-
const lastEl = navigationEls[navigationEls.length - 1];
|
16104
|
-
if (lastEl.tagName ===
|
16237
|
+
const lastEl = this.navigationEls[this.navigationEls.length - 1];
|
16238
|
+
if (lastEl.tagName === NAV_ITEM_TAG) {
|
16105
16239
|
this.navItemAboveButtons = true;
|
16106
16240
|
}
|
16107
|
-
|
16108
|
-
|
16241
|
+
else if (lastEl.tagName === NAV_GROUP_TAG) {
|
16242
|
+
lastEl.addEventListener("navigationGroupExpanded", ((event) => {
|
16243
|
+
this.setLastTabStop(event.detail.expanded);
|
16244
|
+
}));
|
16245
|
+
}
|
16246
|
+
const firstEl = this.navigationEls[0];
|
16247
|
+
if (firstEl.tagName === NAV_GROUP_TAG) {
|
16109
16248
|
this.navGroupFirst = true;
|
16110
16249
|
}
|
16111
16250
|
}
|
@@ -16115,16 +16254,8 @@ class NavigationMenu {
|
|
16115
16254
|
this.lastTabStop = buttonContent[buttonContent.length - 1];
|
16116
16255
|
}
|
16117
16256
|
else {
|
16118
|
-
if (this.hasNavigation && navigationEls) {
|
16119
|
-
|
16120
|
-
//check for slotted content i.e. react router link
|
16121
|
-
const slotContent = getSlot(lastEl, "navigation-item");
|
16122
|
-
if (slotContent !== null) {
|
16123
|
-
this.lastTabStop = slotContent;
|
16124
|
-
}
|
16125
|
-
else {
|
16126
|
-
this.lastTabStop = lastEl;
|
16127
|
-
}
|
16257
|
+
if (this.hasNavigation && this.navigationEls) {
|
16258
|
+
this.setLastTabStop(false);
|
16128
16259
|
}
|
16129
16260
|
}
|
16130
16261
|
}
|
@@ -16157,16 +16288,16 @@ class NavigationMenu {
|
|
16157
16288
|
}
|
16158
16289
|
}
|
16159
16290
|
render() {
|
16160
|
-
return (hAsync(Host, { key: '
|
16291
|
+
return (hAsync(Host, { key: 'ac20556d28ccb50fa78fdb0a14e6096e1793d808', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: 'e429e9f4554ee2f40aa8b4e44c2cb3bc4dbb448e', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: '9fb05be7a68bea1bc06cca1034f0ae77dd09797e', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: 'e0ac3dfe4995af4270ab21f5f559ef86e9eae2de', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: '3d1b37adb6d60d486f97eddf28324f69049924a3', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '45b00dbad25c373903c39d5cfca30717fa865150', class: {
|
16161
16292
|
["menu-close-button-container"]: true,
|
16162
16293
|
["nav-group-first"]: this.navGroupFirst,
|
16163
|
-
} }, hAsync("ic-button", { key: '
|
16294
|
+
} }, hAsync("ic-button", { key: '4da3bf37bc5a3ee5622e05053828dd0991445084', ref: (el) => (this.closeButton = el), id: "menu-close-button", class: "menu-close-button", variant: "icon", size: "large", "aria-label": `Close ${this.hasNavigation ? "navigation" : "app"} menu`, onClick: this.closeMenu }, hAsync("svg", { key: 'cb90b4946f8f649ceb98915ff2a57f234b5f8ed4', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'a49a4b42ddf2c9060070cd93eaba2a55c3e474cb', d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" })))), this.hasNavigation && hAsync("slot", { key: '78878e2499e04a899f93bbe4b9a6a2a9aff080ab', name: "navigation" })), this.hasButtons && (hAsync("div", { key: 'cb8eb1bf24e483d5ad4aad20dadb926e106eb2c2', class: {
|
16164
16295
|
["menu-buttons-container"]: true,
|
16165
16296
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
16166
|
-
} }, hAsync("slot", { key: '
|
16297
|
+
} }, hAsync("slot", { key: '1d36a228ba3a62686f9939df9c8dd6e29289ebb8', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: 'c4b0d0c4140644eea60d24eac6bd845c21965969', class: {
|
16167
16298
|
["menu-status-version-container"]: true,
|
16168
16299
|
["status-version-no-buttons"]: !this.hasButtons,
|
16169
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
16300
|
+
} }, this.status !== "" && (hAsync("div", { key: '02add8908b41c544f2d01f0c780812d06ea749a9', class: "menu-status" }, hAsync("ic-typography", { key: '11311c3647663e911e45bd8de112f6e0ca895b11', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: 'c65a3bcac0289629f181fac381693ea648811312', class: "menu-version" }, hAsync("ic-typography", { key: '4de53de27365201c2cff5500c0b0d17da4628faa', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
16170
16301
|
}
|
16171
16302
|
get el() { return getElement(this); }
|
16172
16303
|
static get style() { return IcNavigationMenuStyle0; }
|
@@ -16202,7 +16333,7 @@ class PageHeader {
|
|
16202
16333
|
registerInstance(this, hostRef);
|
16203
16334
|
this.resizeObserver = null;
|
16204
16335
|
this.areButtonsReversed = false;
|
16205
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
16336
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
16206
16337
|
/**
|
16207
16338
|
* The alignment of the page header.
|
16208
16339
|
*/
|
@@ -16244,7 +16375,7 @@ class PageHeader {
|
|
16244
16375
|
};
|
16245
16376
|
this.applyReverseOrder = () => {
|
16246
16377
|
var _a;
|
16247
|
-
const currSize = getCurrentDeviceSize();
|
16378
|
+
const currSize = getCurrentDeviceSize$1();
|
16248
16379
|
if (currSize !== this.deviceSize) {
|
16249
16380
|
this.deviceSize = currSize;
|
16250
16381
|
}
|
@@ -16272,11 +16403,11 @@ class PageHeader {
|
|
16272
16403
|
});
|
16273
16404
|
this.areButtonsReversed = !this.areButtonsReversed;
|
16274
16405
|
};
|
16275
|
-
if ((this.deviceSize > DEVICE_SIZES.S &&
|
16406
|
+
if ((this.deviceSize > DEVICE_SIZES$1.S &&
|
16276
16407
|
actionAreaHeight <= max &&
|
16277
16408
|
!this.areButtonsReversed) ||
|
16278
|
-
(((this.deviceSize > DEVICE_SIZES.S && actionAreaHeight > max) ||
|
16279
|
-
this.deviceSize <= DEVICE_SIZES.S) &&
|
16409
|
+
(((this.deviceSize > DEVICE_SIZES$1.S && actionAreaHeight > max) ||
|
16410
|
+
this.deviceSize <= DEVICE_SIZES$1.S) &&
|
16280
16411
|
this.areButtonsReversed)) {
|
16281
16412
|
appendActionContent();
|
16282
16413
|
}
|
@@ -17291,6 +17422,7 @@ class PopoverMenu {
|
|
17291
17422
|
this.el.getAttribute(this.ARIA_LABEL) === null) {
|
17292
17423
|
console.error(`No aria-label specified for popover menu component - aria-label required`);
|
17293
17424
|
}
|
17425
|
+
this.watchOpenHandler();
|
17294
17426
|
}
|
17295
17427
|
componentWillRender() {
|
17296
17428
|
this.anchorEl = this.findAnchorEl(this.anchor);
|
@@ -17390,17 +17522,17 @@ class PopoverMenu {
|
|
17390
17522
|
}
|
17391
17523
|
}
|
17392
17524
|
render() {
|
17393
|
-
return (hAsync(Host, { key: '
|
17525
|
+
return (hAsync(Host, { key: '22d7146fb66905fd58370ecdb03dcbe750d5c287', class: {
|
17394
17526
|
["ic-popover-menu-open"]: !!this.open,
|
17395
17527
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17396
|
-
} }, hAsync("div", { key: '
|
17528
|
+
} }, hAsync("div", { key: '63efc4505ce4a676839c259b174604c79b0e7781', id: this.parentPopover === undefined
|
17397
17529
|
? `ic-popover-submenu-${this.submenuId}`
|
17398
17530
|
: "", class: {
|
17399
17531
|
menu: true,
|
17400
|
-
} }, hAsync("span", { key: '
|
17532
|
+
} }, hAsync("span", { key: '14860cdc189b85398dd92dce52907869d8223598', class: {
|
17401
17533
|
"opening-from-parent": this.openingFromParent,
|
17402
17534
|
"opening-from-child": this.openingFromChild,
|
17403
|
-
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '
|
17535
|
+
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '8e7a29c0d1159c156313247279c9b4bfb3e6ada4' }, hAsync("span", { key: 'c2f9aa89fb51c822714ba71d078add0f55e529b1', role: "menu" }, hAsync("ic-menu-item", { key: '619dc3d8ba9dd9d479623d67fad0e3bc0d45f113', class: "ic-popover-submenu-back-button", ref: (el) => (this.backButton = el), label: "Back", onClick: this.handleBackButtonClick, id: `ic-popover-submenu-back-button-${this.submenuLevel}` }, hAsync("svg", { key: '61974e7d25308ab26ee4759243ba2f577f0e7ca8', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: '11e3b1b7496c19deeb22af35d4033e33d9c71b15', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: '4f55d2cdc04fdc15157a76176339d8cb6548b3f2', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("ul", { key: 'ad2855ce0d5366fdf3a9ecaff58fba23edaee6f9', class: "button", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: '1f8122018db85fc386bc24fdb710de976d967240' }))))));
|
17404
17536
|
}
|
17405
17537
|
static get delegatesFocus() { return true; }
|
17406
17538
|
get el() { return getElement(this); }
|
@@ -18569,7 +18701,7 @@ var Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w
|
|
18569
18701
|
</svg>
|
18570
18702
|
`;
|
18571
18703
|
|
18572
|
-
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative;--ic-input-label-helpertext-padding:var(--ic-space-xxs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-labe);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.select-input.with-clear-button{padding-right:0}.value-text{max-width:calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xxs);color:var(--ic-select-expand-icon-color)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.ic-select-disabled) .value-text,.placeholder{color:var(--ic-select-content-placeholder-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}:host(.ic-select-large) .divider{height:var(--ic-space-xl)}.clear-button{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.searchable-select-results-status,.multi-select-selected-count{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}::slotted([slot=\"icon\"]){fill:var(--ic-select-content-placeholder-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-select-content-text)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
18704
|
+
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative;--ic-input-label-helpertext-padding:var(--ic-space-xxs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-labe);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.select-input.with-clear-button{padding-right:0}.value-text{max-width:calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xxs);color:var(--ic-select-expand-icon-color)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.ic-select-disabled) .value-text,:host(.ic-select-disabled) .select-input,.placeholder{color:var(--ic-select-content-placeholder-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}:host(.ic-select-large) .divider{height:var(--ic-space-xl)}.clear-button{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.searchable-select-results-status,.multi-select-selected-count{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}::slotted([slot=\"icon\"]){fill:var(--ic-select-content-placeholder-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-select-content-text)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
18573
18705
|
var IcSelectStyle0 = icSelectCss;
|
18574
18706
|
|
18575
18707
|
let inputIds$2 = 0;
|
@@ -19424,16 +19556,20 @@ class Select {
|
|
19424
19556
|
const valueLabelString = multiple
|
19425
19557
|
? this.getMultipleOptionsString(currValue)
|
19426
19558
|
: this.getLabelFromValue(currValue);
|
19427
|
-
|
19559
|
+
const isClearable = !disabled &&
|
19560
|
+
(searchable
|
19561
|
+
? this.searchableSelectInputValue
|
19562
|
+
: currValue && showClearButton);
|
19563
|
+
return (hAsync(Host, { key: 'b648c4ce0e6857a7d3cb8ee576227a76502238c2', class: {
|
19428
19564
|
"ic-select-disabled": !!disabled,
|
19429
19565
|
"ic-select-searchable": !!searchable,
|
19430
19566
|
[`ic-select-${size}`]: size !== "medium",
|
19431
19567
|
"ic-select-full-width": !!fullWidth,
|
19432
19568
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
19433
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
19569
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '2297242b13d87560ea0b3cdcd3dcef6d0fc82d8a', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '65dc301bdd942344c0926f902add9da46dea58b9', for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), hAsync("ic-input-component-container", { key: 'b05b9bea3da1eec103e0a192f71123b5c4ecab4e', ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (hAsync("span", { key: 'a5c509b3c5ae8d0b4e7aadcbbe1dd24a1a35e6d2', slot: "left-icon", class: {
|
19434
19570
|
["readonly"]: !!readonly,
|
19435
19571
|
["has-value"]: !!this.value,
|
19436
|
-
} }, hAsync("slot", { key: '
|
19572
|
+
} }, hAsync("slot", { key: '0fb4fdcb39c9d5d8bd7b53011132d30060ea4f69', name: "icon" }))), readonly ? (hAsync("ic-typography", null, hAsync("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (hAsync("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), hAsync("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
19437
19573
|
if (option.children) {
|
19438
19574
|
return (hAsync("optgroup", { label: option.label }, option.children.map((option) => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
19439
19575
|
}
|
@@ -19443,8 +19579,7 @@ class Select {
|
|
19443
19579
|
}))) : searchable ? (hAsync("div", { class: "searchable-select-container" }, hAsync("input", { class: {
|
19444
19580
|
"select-input": true,
|
19445
19581
|
"with-clear-button": !!this.searchableSelectInputValue,
|
19446
|
-
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${this.open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), this.searchableSelectInputValue &&
|
19447
|
-
(showClearButton || searchable) && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
19582
|
+
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${this.open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), isClearable && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
19448
19583
|
? "Clear input"
|
19449
19584
|
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
19450
19585
|
"expand-icon": true,
|
@@ -19453,14 +19588,14 @@ class Select {
|
|
19453
19588
|
? `${optionsSelectedCount}, ${valueLabelString}`
|
19454
19589
|
: valueLabelString) || placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, hAsync("ic-typography", { variant: "body", class: {
|
19455
19590
|
"value-text": true,
|
19456
|
-
"with-clear-button": !!
|
19591
|
+
"with-clear-button": !!isClearable,
|
19457
19592
|
placeholder: multiple
|
19458
19593
|
? !this.value || this.value.length < 1
|
19459
19594
|
: !this.getLabelFromValue(currValue),
|
19460
|
-
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" },
|
19595
|
+
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
19461
19596
|
"expand-icon": true,
|
19462
19597
|
"expand-icon-open": this.open,
|
19463
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))),
|
19598
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", theme: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'b44ead58c89e05ff0bfcdeda827b4b436dd05f1c', class: {
|
19464
19599
|
"no-results": this.loading ||
|
19465
19600
|
this.hasTimedOut ||
|
19466
19601
|
(this.noOptions !== null &&
|
@@ -19470,7 +19605,7 @@ class Select {
|
|
19470
19605
|
? this.searchableSelectElement
|
19471
19606
|
: this.customSelectElement), inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable || multiple || this.selectOnEnter
|
19472
19607
|
? "manual"
|
19473
|
-
: "automatic", closeOnSelect: !multiple })), this.multiple && (hAsync("div", { key: '
|
19608
|
+
: "automatic", closeOnSelect: !multiple })), this.multiple && (hAsync("div", { key: '178feb2274a4942b173858f35b98f2e64031d419', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, !!this.disabled) && (hAsync("ic-input-validation", { key: '65c7647103b74749c240af0cfdee7c5e2afdeca0', class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText || "", for: this.inputId })))));
|
19474
19609
|
}
|
19475
19610
|
static get delegatesFocus() { return true; }
|
19476
19611
|
get el() { return getElement(this); }
|
@@ -19564,8 +19699,8 @@ class SideNavigation {
|
|
19564
19699
|
this.resizeObserver = null;
|
19565
19700
|
this.COLLAPSED_ICON_LABELS_END = "collapsed-icon-labels-end";
|
19566
19701
|
this.COLLAPSED_ICON_LABELS_START = "collapsed-icon-labels-start";
|
19567
|
-
this.deviceSize = getCurrentDeviceSize();
|
19568
|
-
this.deviceSizeAppTitle = DEVICE_SIZES.S;
|
19702
|
+
this.deviceSize = getCurrentDeviceSize$1();
|
19703
|
+
this.deviceSizeAppTitle = DEVICE_SIZES$1.S;
|
19569
19704
|
this.foregroundColor = getBrandForegroundAppearance();
|
19570
19705
|
this.hasSecondaryNavigation = false;
|
19571
19706
|
this.menuExpanded = false;
|
@@ -19652,7 +19787,7 @@ class SideNavigation {
|
|
19652
19787
|
};
|
19653
19788
|
this.toggleMenuExpanded = (expanded) => {
|
19654
19789
|
var _a, _b, _c, _d;
|
19655
|
-
if (this.deviceSize > DEVICE_SIZES.S) {
|
19790
|
+
if (this.deviceSize > DEVICE_SIZES$1.S) {
|
19656
19791
|
this.menuExpanded = expanded;
|
19657
19792
|
}
|
19658
19793
|
if (this.menuExpanded) {
|
@@ -19698,11 +19833,14 @@ class SideNavigation {
|
|
19698
19833
|
}
|
19699
19834
|
const iconWrapper = document.createElement("div");
|
19700
19835
|
const icon = navItemSlot === null || navItemSlot === void 0 ? void 0 : navItemSlot.querySelector("svg");
|
19836
|
+
const badge = navItemSlot === null || navItemSlot === void 0 ? void 0 : navItemSlot.querySelector("ic-badge");
|
19701
19837
|
const label = (_a = navItem.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
19702
19838
|
const icTypography = document.createElement("ic-typography");
|
19703
19839
|
icTypography.classList.add("ic-typography-label", "hydrated", "navigation-item-side-nav-slotted-text");
|
19840
|
+
iconWrapper.style.position = "relative";
|
19704
19841
|
iconWrapper.style.height = "var(--ic-space-lg)";
|
19705
19842
|
icon && iconWrapper.append(icon);
|
19843
|
+
badge && iconWrapper.append(badge);
|
19706
19844
|
if (label) {
|
19707
19845
|
icTypography.textContent = label;
|
19708
19846
|
}
|
@@ -19847,7 +19985,7 @@ class SideNavigation {
|
|
19847
19985
|
(_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.style.setProperty("padding-left", value);
|
19848
19986
|
};
|
19849
19987
|
this.renderAppTitle = (isAppNameSubtitleVariant) => {
|
19850
|
-
const displayShortAppTitle = this.deviceSize <= DEVICE_SIZES.S && !isEmptyString$1(this.shortAppTitle);
|
19988
|
+
const displayShortAppTitle = this.deviceSize <= DEVICE_SIZES$1.S && !isEmptyString$1(this.shortAppTitle);
|
19851
19989
|
return (hAsync("ic-typography", { variant: displayShortAppTitle || isAppNameSubtitleVariant
|
19852
19990
|
? "subtitle-small"
|
19853
19991
|
: "h3", "aria-label": displayShortAppTitle
|
@@ -19857,7 +19995,7 @@ class SideNavigation {
|
|
19857
19995
|
this.resizeObserverCallback = (currSize) => {
|
19858
19996
|
var _a, _b, _c, _d;
|
19859
19997
|
this.deviceSize = currSize;
|
19860
|
-
const isSmallAndDisableTopBar = currSize === DEVICE_SIZES.S && !this.disableTopBarBehaviour;
|
19998
|
+
const isSmallAndDisableTopBar = currSize === DEVICE_SIZES$1.S && !this.disableTopBarBehaviour;
|
19861
19999
|
if (!this.disableAutoParentStyling) {
|
19862
20000
|
const topBarHeight = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".top-bar")) === null || _b === void 0 ? void 0 : _b.scrollHeight;
|
19863
20001
|
this.setParentPaddingTop(isSmallAndDisableTopBar ? `${topBarHeight}px` : "0");
|
@@ -19872,17 +20010,17 @@ class SideNavigation {
|
|
19872
20010
|
}
|
19873
20011
|
if (!this.disableAutoParentStyling) {
|
19874
20012
|
const paddingLeft = `calc(var(--ic-space-xxl) ${this.collapsedIconLabels ? "* 2" : "+ var(--ic-space-xs)"})`;
|
19875
|
-
if (currSize > DEVICE_SIZES.L) {
|
20013
|
+
if (currSize > DEVICE_SIZES$1.L) {
|
19876
20014
|
this.setParentPaddingTop("0");
|
19877
20015
|
this.setParentPaddingLeft("0");
|
19878
20016
|
}
|
19879
|
-
else if ((currSize > DEVICE_SIZES.S || this.disableTopBarBehaviour) &&
|
19880
|
-
currSize <= DEVICE_SIZES.M &&
|
20017
|
+
else if ((currSize > DEVICE_SIZES$1.S || this.disableTopBarBehaviour) &&
|
20018
|
+
currSize <= DEVICE_SIZES$1.M &&
|
19881
20019
|
this.static) {
|
19882
20020
|
this.setParentPaddingLeft(paddingLeft);
|
19883
20021
|
}
|
19884
|
-
else if ((currSize > DEVICE_SIZES.S || this.disableTopBarBehaviour) &&
|
19885
|
-
currSize <= DEVICE_SIZES.L) {
|
20022
|
+
else if ((currSize > DEVICE_SIZES$1.S || this.disableTopBarBehaviour) &&
|
20023
|
+
currSize <= DEVICE_SIZES$1.L) {
|
19886
20024
|
this.setParentPaddingLeft(this.static && this.menuExpanded
|
19887
20025
|
? "calc(var(--ic-space-xl) * 10)"
|
19888
20026
|
: paddingLeft);
|
@@ -19891,7 +20029,7 @@ class SideNavigation {
|
|
19891
20029
|
};
|
19892
20030
|
this.runResizeObserver = () => {
|
19893
20031
|
this.resizeObserver = new ResizeObserver(() => {
|
19894
|
-
const currSize = getCurrentDeviceSize();
|
20032
|
+
const currSize = getCurrentDeviceSize$1();
|
19895
20033
|
this.deviceSizeAppTitle = currSize;
|
19896
20034
|
this.resizeObserverCallback(currSize);
|
19897
20035
|
});
|
@@ -19942,7 +20080,7 @@ class SideNavigation {
|
|
19942
20080
|
componentDidLoad() {
|
19943
20081
|
this.emitSideNavigationExpanded({
|
19944
20082
|
sideNavExpanded: this.menuExpanded,
|
19945
|
-
sideNavMobile: this.deviceSize === DEVICE_SIZES.S && !this.disableTopBarBehaviour,
|
20083
|
+
sideNavMobile: this.deviceSize === DEVICE_SIZES$1.S && !this.disableTopBarBehaviour,
|
19946
20084
|
});
|
19947
20085
|
checkResizeObserver$1(this.runResizeObserver);
|
19948
20086
|
this.styleSlottedCollapsedIconLabel();
|
@@ -19964,10 +20102,10 @@ class SideNavigation {
|
|
19964
20102
|
}
|
19965
20103
|
render() {
|
19966
20104
|
const { appTitle, menuOpen, foregroundColor, menuExpanded, href, status, version, collapsedIconLabels, inline, } = this;
|
19967
|
-
const isSDevice = !this.disableTopBarBehaviour && this.deviceSize === DEVICE_SIZES.S;
|
19968
|
-
const isMdDevice = this.deviceSize === DEVICE_SIZES.M;
|
19969
|
-
const isLgDevice = this.deviceSize >= DEVICE_SIZES.L;
|
19970
|
-
const isAppNameSubtitleVariant = this.deviceSizeAppTitle === DEVICE_SIZES.S;
|
20105
|
+
const isSDevice = !this.disableTopBarBehaviour && this.deviceSize === DEVICE_SIZES$1.S;
|
20106
|
+
const isMdDevice = this.deviceSize === DEVICE_SIZES$1.M;
|
20107
|
+
const isLgDevice = this.deviceSize >= DEVICE_SIZES$1.L;
|
20108
|
+
const isAppNameSubtitleVariant = this.deviceSizeAppTitle === DEVICE_SIZES$1.S;
|
19971
20109
|
const displayExpandBtn = isMdDevice || this.disableTopBarBehaviour || (isLgDevice && !this.static);
|
19972
20110
|
const topBarProps = {
|
19973
20111
|
isSDevice,
|
@@ -19977,21 +20115,21 @@ class SideNavigation {
|
|
19977
20115
|
isAppNameSubtitleVariant,
|
19978
20116
|
appTitle: appTitle || "",
|
19979
20117
|
};
|
19980
|
-
return (hAsync(Host, { key: '
|
20118
|
+
return (hAsync(Host, { key: 'da621f79cc6d0e721b46d89689623ab603869c5c', class: {
|
19981
20119
|
"xs-menu-open": menuOpen && isSDevice,
|
19982
20120
|
"xs-menu-close": !menuOpen && isSDevice,
|
19983
20121
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
19984
20122
|
"sm-expanded": !isSDevice && menuExpanded,
|
19985
|
-
"side-display": this.deviceSize > DEVICE_SIZES.S || !!this.disableTopBarBehaviour,
|
20123
|
+
"side-display": this.deviceSize > DEVICE_SIZES$1.S || !!this.disableTopBarBehaviour,
|
19986
20124
|
[`ic-side-navigation-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
19987
20125
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
19988
20126
|
["ic-side-navigation-inline"]: !!inline,
|
19989
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
20127
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'e1a1746cf0b72f95df40c4de8c5b24142e42958c', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'fb4d44f6de1f637c1f913c7bc1979d261b138961', class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { key: 'd242bf8b7266a913ddf15cd6d3c710b67998478b', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: '5496dfe55e4ea5b5a86ff9cbf49d3a1948580c38', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '5c963c5a63930a85c8d56a8acf9f402b11cb5717', class: "navigation-list" }, hAsync("slot", { key: '6e9893f2302d72b8a8dd8c91efc69324e28b7845', name: "primary-navigation" }))))), hAsync("div", { key: '3a5a9c6510d4e70389ff271e089d46732b7ff35a', class: {
|
19990
20128
|
["bottom-wrapper"]: true,
|
19991
20129
|
["classification-spacing"]: hasClassificationBanner(),
|
19992
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
20130
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: 'a325206b9aaab5d2c68e0854b6d88f6c0754a2f7', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: 'cce653a875b1768a5c5960d2c86a55e42e104456', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: 'd61e1b6969d597bdb48ba59be75e50f95c3327e9', class: "navigation-list" }, hAsync("slot", { key: '75d0ddba3f9b6663f0888e579d60dfdf77455944', name: "secondary-navigation" })))), hAsync("div", { key: 'a5e646f3027491a5e3288bafb03a49699ad7fe16', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: '709a1cd78355adb93d7d5e0636252ba8b53cc3dc' }), displayExpandBtn && (hAsync("button", { key: '2f61bbc7a06cbd5f1d90a126507a6fce4d329545', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '8c21e3ecb652850205f4fbe785be95acd7d8120b', class: "app-status-wrapper" }, status !== "" && (hAsync("div", { key: '96b2fe13baecbb436c6f90d69bc1eba2447ef37d', class: {
|
19993
20131
|
["app-status"]: true,
|
19994
|
-
} }, hAsync("ic-typography", { key: '
|
20132
|
+
} }, hAsync("ic-typography", { key: '017292fb3f29859ee96b6af1f12e787a95300a3d', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version !== "" && (hAsync("ic-typography", { key: 'ded1fc5cf16022ec9c2eea424910cbc0c88132a8', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
19995
20133
|
}
|
19996
20134
|
get el() { return getElement(this); }
|
19997
20135
|
static get watchers() { return {
|
@@ -20075,26 +20213,26 @@ class Skeleton {
|
|
20075
20213
|
}; }
|
20076
20214
|
}
|
20077
20215
|
|
20078
|
-
const icSkipLinkCss = "ic-link{position:absolute;left:-9999px}ic-link:focus{z-index:var(--ic-z-index-skip-link);left:var(--ic-space-sm);padding:var(--ic-space-sm);box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}.display-top:focus{top:var(--ic-space-sm)}.full-width:focus{display:flex;
|
20216
|
+
const icSkipLinkCss = ":host{display:block}ic-link{position:absolute;left:-9999px}ic-link:focus{z-index:var(--ic-z-index-skip-link);left:var(--ic-space-sm);padding:var(--ic-space-sm);box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);width:-moz-fit-content;width:fit-content}.display-top:focus{top:var(--ic-skip-link-position-top, var(--ic-space-sm))}.inline:focus{position:static;display:inline-block;margin:var(--ic-space-xs) 0}.full-width:focus{display:flex;right:var(--ic-space-sm);width:auto}.inline.full-width:focus{justify-content:start}.show-background{background:var(--ic-skip-link-background)}";
|
20079
20217
|
var IcSkipLinkStyle0 = icSkipLinkCss;
|
20080
20218
|
|
20081
20219
|
class SkipLink {
|
20082
20220
|
constructor(hostRef) {
|
20083
20221
|
registerInstance(this, hostRef);
|
20084
20222
|
/**
|
20085
|
-
* If `true`, the link will fill the width of the page.
|
20223
|
+
* If `true`, the skip link will fill the width of the page.
|
20086
20224
|
*/
|
20087
20225
|
this.fullWidth = false;
|
20088
20226
|
/**
|
20089
|
-
* If `true`, the link will appear inline with surrounding page content when focused.
|
20227
|
+
* If `true`, the skip link will appear inline with surrounding page content when focused.
|
20090
20228
|
*/
|
20091
20229
|
this.inline = false;
|
20092
20230
|
/**
|
20093
|
-
* The label displayed when the link is focused.
|
20231
|
+
* The label displayed when the skip link is focused.
|
20094
20232
|
*/
|
20095
20233
|
this.label = "Skip to main content";
|
20096
20234
|
/**
|
20097
|
-
* If `true`, the link will display as black in the light theme, and white in the dark theme.
|
20235
|
+
* If `true`, the skip link will display as black in the light theme, and white in the dark theme.
|
20098
20236
|
*/
|
20099
20237
|
this.monochrome = false;
|
20100
20238
|
/**
|
@@ -20108,13 +20246,14 @@ class SkipLink {
|
|
20108
20246
|
}
|
20109
20247
|
render() {
|
20110
20248
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
20111
|
-
return (hAsync(Host, { key: '
|
20249
|
+
return (hAsync(Host, { key: 'ed2c4e6527f04dbf634a971c0f8e5ebc6655f27e', class: {
|
20112
20250
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20113
|
-
} }, hAsync("ic-link", { key: '
|
20251
|
+
} }, hAsync("ic-link", { key: 'f72fcc3cdff5e39b0ed5ca843feed93241ff5603', class: {
|
20114
20252
|
"display-top": !inline,
|
20115
|
-
"full-width": fullWidth,
|
20253
|
+
"full-width": !!fullWidth,
|
20116
20254
|
"show-background": !transparentBackground,
|
20117
|
-
|
20255
|
+
inline: !!inline,
|
20256
|
+
}, href: `#${target}`, monochrome: monochrome, theme: theme }, label)));
|
20118
20257
|
}
|
20119
20258
|
get el() { return getElement(this); }
|
20120
20259
|
static get style() { return IcSkipLinkStyle0; }
|
@@ -20136,7 +20275,7 @@ class SkipLink {
|
|
20136
20275
|
}; }
|
20137
20276
|
}
|
20138
20277
|
|
20139
|
-
const icStatusTagCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}.tag{padding:var(--ic-space-xxs) var(--ic-space-sm);font-size:0.875rem;border-radius:var(--ic-space-md);display:inline-block;min-width:2.5rem;text-align:center;--ic-typography-color:var(--ic-status-tag-text)}.small{padding:var(--ic-space-xxxs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.large{padding:var(--ic-space-xs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.filled-neutral{background-color:var(--ic-status-tag-neutral)}.filled-success{background-color:var(--ic-status-tag-success)}.filled-warning{background-color:var(--ic-status-tag-warning);--ic-typography-color:var(--ic-status-tag-text
|
20278
|
+
const icStatusTagCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}.tag{padding:var(--ic-space-xxs) var(--ic-space-sm);font-size:0.875rem;border-radius:var(--ic-space-md);display:inline-block;min-width:2.5rem;text-align:center;--ic-typography-color:var(--ic-status-tag-text)}.small{padding:var(--ic-space-xxxs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.large{padding:var(--ic-space-xs) var(--ic-space-sm);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.filled-neutral{background-color:var(--ic-status-tag-neutral)}.filled-success{background-color:var(--ic-status-tag-success)}.filled-warning{background-color:var(--ic-status-tag-warning);--ic-typography-color:var(--ic-status-tag-filled-warning-text)}.filled-danger{background-color:var(--ic-status-tag-error)}.outlined{padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))\n calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined.small{padding:var(--ic-space-1px) calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined.large{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))\n calc(var(--ic-space-sm) - var(--ic-space-1px))}.outlined-neutral{background-color:var(--ic-status-tag-outlined-background-neutral);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-neutral);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-success{background-color:var(--ic-status-tag-outlined-background-success);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-success);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-warning{background-color:var(--ic-status-tag-outlined-background-warning);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-warning);--ic-typography-color:var(--ic-status-tag-text-inverted)}.outlined-danger{background-color:var(--ic-status-tag-outlined-background-error);border:var(--ic-border-width) solid var(--ic-status-tag-outlined-error);--ic-typography-color:var(--ic-status-tag-text-inverted)}@media (forced-colors: active){.tag{border:var(--ic-border-hc);-ms-high-contrast-adjust:none;forced-color-adjust:none}}";
|
20140
20279
|
var IcStatusTagStyle0 = icStatusTagCss;
|
20141
20280
|
|
20142
20281
|
class StatusTag {
|
@@ -20203,7 +20342,7 @@ var warningIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" x
|
|
20203
20342
|
<path d="M7.99935 4.32666L13.0193 13H2.97935L7.99935 4.32666ZM7.99935 1.66666L0.666016 14.3333H15.3327L7.99935 1.66666ZM8.66602 11H7.33268V12.3333H8.66602V11ZM8.66602 6.99999H7.33268V9.66666H8.66602V6.99999Z" fill="currentColor"/>
|
20204
20343
|
</svg>`;
|
20205
20344
|
|
20206
|
-
const icStepCss = ":host{display:flex;flex:auto;--ic-typography-color:currentcolor}.step{display:flex;flex:1 1 0}.step-icon{display:flex;justify-content:center}.heading,.subheading,.step-status,.next-step{white-space:pre-line}.next-step{color:var(--ic-stepper-compact-step-next-text)}.visually-hidden{position:absolute;left:-625rem;top:auto;width:1px;height:1px;overflow:hidden}:host(.ic-step-compact){-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm);--compact-step-inner-color:var(--ic-step-indicator-status-current);--compact-step-outer-color:var(--ic-step-indicator-status-remaining);--compact-step-circular-line-width:var(--ic-space-xxs)}:host(.ic-step-compact) .step{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm)}:host(.ic-step-compact) .step:not(.current){display:none;opacity:0;visibility:hidden}.compact-step-progress-indicator{margin:var(--ic-space-xs) 0 0}:host ic-loading-indicator::part(ic-loading-container){border-radius:50%}:host() ic-loading-indicator::part(ic-loading-container){background-color:var(--ic-step-indicator-background)}:host(.ic-step-compact) .heading-area{display:flex;flex-direction:column;width:14.25rem}:host(.ic-step-compact) .heading{color:var(--ic-stepper-compact-step-title)}:host(.ic-step-compact) .disabled .heading{color:var(--ic-stepper-compact-step-title)}.info-line{display:flex;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs)}.step-status{display:flex;color:var(--ic-stepper-compact-step-requirement-text);-moz-column-gap:var(--ic-space-xxxs);column-gap:var(--ic-space-xxxs)}.compact-step-completed .step-status{color:var(--ic-stepper-compact-step-completed-text)}.compact-step-disabled :is(.heading,.step-status){color:var(--ic-stepper-compact-step-requirement-text-disabled)}.step-num{color:var(--ic-stepper-compact-step-stage-text);white-space:nowrap}:host(.ic-step-compact) .step-icon{margin:var(--ic-space-xxxs)}:host(.ic-step-compact) .step-icon svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-step-default) .step{flex-direction:column}:host(.ic-step-default.last-step){flex-grow:initial}.step-top{display:flex;width:100%;align-items:center;align-self:flex-start;height:2.5rem}:host(.ic-step-default) .step-icon{border-radius:50%}:host(.ic-step-default) .step-icon{background-color:var(--ic-step-number-inactive)}.step-icon-inner{width:var(--ic-space-xl);height:var(--ic-space-xl);display:flex;justify-content:center;align-items:center;border-radius:50%;color:var(--ic-step-number-text-inactive)}:host(.ic-step-default) .current{color:var(--ic-status-info-default)}:host(.ic-step-default.ic-step-light) .current,:host(.ic-step-default.ic-step-light) .current .heading-area{color:var(--ic-status-info-contrast)}:host(.ic-step-default) .heading-area{margin:var(--ic-space-xs) 0;padding-right:var(--ic-space-xs);width:100%}:host(.ic-step-light) .heading-area{color:var(--ic-architectural-200)}:host(.ic-step-compact.ic-step-light) .heading-area{color:var(--ic-architectural-white)}:host(.ic-step-default) .heading,.subheading{width:-moz-fit-content;width:fit-content}.heading{color:var(--ic-step-title)}.current .heading{color:var(--ic-step-title-current)}.completed .heading{color:var(--ic-step-title-success)}.disabled .heading{color:var(--ic-step-title-disabled)}.subheading{color:var(--ic-step-title-status-text-inactive)}.current .subheading{color:var(--ic-step-title-status-text-current)}.disabled .subheading{color:var(--ic-step-title-status-text-disabled)}:host(.ic-step-default) .completed{color:var(--ic-status-success-default)}:host(.ic-step-default.ic-step-light) .completed,:host(.ic-step-default.ic-step-light) .completed .heading-area{color:var(--ic-status-success-contrast)}.active .step-icon-inner{box-shadow:inset var(--ic-step-number-inactive-outline) 0 0 0 0.125rem}:host(.ic-step-light) .active .step-icon-inner{color:var(--ic-architectural-white)}.current .step-icon-inner{background-color:var(--ic-step-number-background-active);color:var(--ic-step-number-text)}.disabled{color:var(--ic-architectural-200)}:host(.ic-step-default.ic-step-light) .disabled,:host(.ic-step-default.ic-step-light) .disabled .heading-area{color:var(--ic-architectural-400)}.disabled .step-icon-inner{border:var(--ic-border-width) dashed var(--ic-step-number-disabled);width:calc(var(--ic-space-xl) - var(--ic-space-xxxs));height:calc(var(--ic-space-xl) - var(--ic-space-xxxs));color:var(--ic-step-number-text-disabled)}.disabled .step-icon{background-color:transparent !important}.completed .step-icon-inner{background:var(--ic-step-number-background-success);box-shadow:inset var(--ic-step-number-background-success) 0 0 0\n var(--ic-space-xxxs);border-radius:100%}:host(.ic-step-default) .current .step-icon{border:var(--ic-space-xxxs) solid var(--ic-step-number-current-outline);padding:var(--ic-space-xxxs);margin:0 calc(-1 * var(--ic-space-xxxs));background-color:var(--ic-step-number-current-outer-fill);}.step-connect{height:var(--ic-space-xxxs);background-color:var(--ic-stepper-connector-remaining-status);margin:0 var(--ic-space-xs);border-radius:var(--ic-space-xxs);width:100%}.aligned-full-width.step-connect{min-width:6.25rem;width:100%}.disabled .step-connect{height:0;background-color:rgb(0 0 0 / 0%);border-top:0.125rem dashed var(--ic-stepper-connector-disabled);border-radius:0}.completed .step-connect{background-color:var(--ic-stepper-connector-success)}.step-connect-inner{width:70%;display:flex;flex:auto;height:var(--ic-space-xxxs);border-radius:var(--ic-space-xxs);background-color:var(--ic-stepper-connector-current-status)}.step-icon-inner .check-icon{padding-top:var(--ic-space-xxs)}.step-icon-inner .check-icon svg{width:var(--ic-space-md);height:auto}.step-icon-inner .check-icon>svg>path{fill:var(--ic-step-number-icon-success)}@media (forced-colors: active){.compact-step-disabled :is(.heading,.step-status){color:GrayText}.step-connect:not(.disabled .step-connect){border:var(--ic-border-hc)}.active .step-icon-inner,.completed .step-icon-inner,.current .step-icon-inner{forced-color-adjust:none;box-shadow:inset canvastext 0 0 0 0.125rem;background-color:transparent;color:canvastext}:host(.ic-step-default) .current .step-icon{padding:0;border:none}.disabled,.disabled .heading-area,.disabled .step-icon-inner,.disabled .heading{color:GrayText}.step-connect-inner,.completed .step-connect{background-color:canvastext}.step-icon-inner .check-icon>svg>path{fill:canvastext}}";
|
20345
|
+
const icStepCss = ":host{display:flex;flex:auto;--ic-typography-color:currentcolor}.step{display:flex;flex:1 1 0}.step-icon{display:flex;justify-content:center}.heading,.subheading,.step-status,.next-step{white-space:pre-line}.next-step{color:var(--ic-stepper-compact-step-next-text)}.visually-hidden{position:absolute;left:-625rem;top:auto;width:1px;height:1px;overflow:hidden}:host(.ic-step-compact){-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm);--compact-step-inner-color:var(--ic-step-indicator-status-current);--compact-step-outer-color:var(--ic-step-indicator-status-remaining);--compact-step-circular-line-width:var(--ic-space-xxs)}:host(.ic-step-compact) .step{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm)}:host(.ic-step-compact) .step:not(.current){display:none;opacity:0;visibility:hidden}.compact-step-progress-indicator{margin:var(--ic-space-xs) 0 0}:host ic-loading-indicator::part(ic-loading-container){border-radius:50%}:host() ic-loading-indicator::part(ic-loading-container){background-color:var(--ic-step-indicator-background)}:host(.ic-step-compact) .heading-area{display:flex;flex-direction:column;width:14.25rem}:host(.ic-step-compact) .heading{color:var(--ic-stepper-compact-step-title)}:host(.ic-step-compact) .disabled .heading{color:var(--ic-stepper-compact-step-title-disabled)}.info-line{display:flex;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs)}.step-status{display:flex;color:var(--ic-stepper-compact-step-requirement-text);-moz-column-gap:var(--ic-space-xxxs);column-gap:var(--ic-space-xxxs)}.compact-step-completed .step-status{color:var(--ic-stepper-compact-step-completed-text)}.compact-step-disabled :is(.heading,.step-status){color:var(--ic-stepper-compact-step-requirement-text-disabled)}.step-num{color:var(--ic-stepper-compact-step-stage-text);white-space:nowrap}:host(.ic-step-compact) .step-icon{margin:var(--ic-space-xxxs)}:host(.ic-step-compact) .step-icon svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-step-default) .step{flex-direction:column}:host(.ic-step-default.last-step){flex-grow:initial}.step-top{display:flex;width:100%;align-items:center;align-self:flex-start;height:2.5rem}:host(.ic-step-default) .step-icon{border-radius:50%}:host(.ic-step-default) .step-icon{background-color:var(--ic-step-number-inactive)}.step-icon-inner{width:var(--ic-space-xl);height:var(--ic-space-xl);display:flex;justify-content:center;align-items:center;border-radius:50%;color:var(--ic-step-number-text-inactive)}:host(.ic-step-default) .current{color:var(--ic-status-info-default)}:host(.ic-step-default.ic-step-light) .current,:host(.ic-step-default.ic-step-light) .current .heading-area{color:var(--ic-status-info-contrast)}:host(.ic-step-default) .heading-area{margin:var(--ic-space-xs) 0;padding-right:var(--ic-space-xs);width:100%}:host(.ic-step-light) .heading-area{color:var(--ic-architectural-200)}:host(.ic-step-compact.ic-step-light) .heading-area{color:var(--ic-architectural-white)}:host(.ic-step-default) .heading,.subheading{width:-moz-fit-content;width:fit-content}.heading{color:var(--ic-step-title)}.current .heading{color:var(--ic-step-title-current)}.completed .heading{color:var(--ic-step-title-success)}.disabled .heading{color:var(--ic-step-title-disabled)}.subheading{color:var(--ic-step-title-status-text-inactive)}.current .subheading{color:var(--ic-step-title-status-text-current)}.disabled .subheading{color:var(--ic-step-title-status-text-disabled)}:host(.ic-step-default) .completed{color:var(--ic-status-success-default)}:host(.ic-step-default.ic-step-light) .completed,:host(.ic-step-default.ic-step-light) .completed .heading-area{color:var(--ic-status-success-contrast)}.active .step-icon-inner{box-shadow:inset var(--ic-step-number-inactive-outline) 0 0 0 0.125rem}:host(.ic-step-light) .active .step-icon-inner{color:var(--ic-architectural-white)}.current .step-icon-inner{background-color:var(--ic-step-number-background-active);color:var(--ic-step-number-text-current)}.disabled{color:var(--ic-architectural-200)}:host(.ic-step-default.ic-step-light) .disabled,:host(.ic-step-default.ic-step-light) .disabled .heading-area{color:var(--ic-architectural-400)}.disabled .step-icon-inner{border:var(--ic-border-width) dashed var(--ic-step-number-disabled);width:calc(var(--ic-space-xl) - var(--ic-space-xxxs));height:calc(var(--ic-space-xl) - var(--ic-space-xxxs));color:var(--ic-step-number-text-disabled)}.disabled .step-icon{background-color:transparent !important}.completed .step-icon-inner{background:var(--ic-step-number-background-success);box-shadow:inset var(--ic-step-number-background-success) 0 0 0\n var(--ic-space-xxxs);border-radius:100%}:host(.ic-step-default) .current .step-icon{border:var(--ic-space-xxxs) solid var(--ic-step-number-current-outline);padding:var(--ic-space-xxxs);margin:0 calc(-1 * var(--ic-space-xxxs));background-color:var(--ic-step-number-current-outer-fill);}.step-connect{height:var(--ic-space-xxxs);background-color:var(--ic-stepper-connector-remaining-status);margin:0 var(--ic-space-xs);border-radius:var(--ic-space-xxs);width:100%}.aligned-full-width.step-connect{min-width:6.25rem;width:100%}.disabled .step-connect{height:0;background-color:rgb(0 0 0 / 0%);border-top:0.125rem dashed var(--ic-stepper-connector-disabled);border-radius:0}.completed .step-connect{background-color:var(--ic-stepper-connector-success)}.step-connect-inner{width:70%;display:flex;flex:auto;height:var(--ic-space-xxxs);border-radius:var(--ic-space-xxs);background-color:var(--ic-stepper-connector-current-status)}.step-icon-inner .check-icon{padding-top:var(--ic-space-xxs)}.step-icon-inner .check-icon svg{width:var(--ic-space-md);height:auto}.step-icon-inner .check-icon>svg>path{fill:var(--ic-step-number-icon-success)}@media (forced-colors: active){.compact-step-disabled :is(.heading,.step-status){color:GrayText}.step-connect:not(.disabled .step-connect){border:var(--ic-border-hc)}.active .step-icon-inner,.completed .step-icon-inner,.current .step-icon-inner{forced-color-adjust:none;box-shadow:inset canvastext 0 0 0 0.125rem;background-color:transparent;color:canvastext}:host(.ic-step-default) .current .step-icon{padding:0;border:none}.disabled,.disabled .heading-area,.disabled .step-icon-inner,.disabled .heading{color:GrayText}.step-connect-inner,.completed .step-connect{background-color:canvastext}.step-icon-inner .check-icon>svg>path{fill:canvastext}}";
|
20207
20346
|
var IcStepStyle0 = icStepCss;
|
20208
20347
|
|
20209
20348
|
class Step {
|
@@ -20269,21 +20408,22 @@ class Step {
|
|
20269
20408
|
statusIcon = (hAsync("span", { key: '37abea1127139c235751e0e5fa159c0123e26045', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
20270
20409
|
}
|
20271
20410
|
// COMPACT STEP COMPONENT
|
20272
|
-
const compactStep = (hAsync("div", { key: '
|
20411
|
+
const compactStep = (hAsync("div", { key: 'b085f35dc01eaca3182762eaa6b985fcdbcc36f6', class: {
|
20273
20412
|
["step"]: true,
|
20274
20413
|
["current"]: !!this.current,
|
20275
20414
|
[`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
|
20276
|
-
|
20415
|
+
["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
|
20416
|
+
} }, hAsync("ic-loading-indicator", { key: '76d67bd6140d55727e79410263986a6a8b7e8f39', class: {
|
20277
20417
|
"compact-step-progress-indicator": true,
|
20278
20418
|
"not-required": this.type === "disabled" ||
|
20279
20419
|
this.compactStepStyling === "disabled",
|
20280
|
-
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: '
|
20420
|
+
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: 'e1a0ab7ef462c6f9db62d1d5cc21518230c31531', class: "heading-area" }, hAsync("ic-typography", { key: 'cebf670137674ac37747fea2e320d36a465cac42', variant: "h4", class: "heading" }, this.heading), hAsync("div", { key: 'c9a9a5ae0bef717bbdb1cd690596dac06b6a73e2', class: "info-line" }, hAsync("ic-typography", { key: '311760b3af071f4d9864954fb727a9c9b1c7c00d', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, hAsync("span", { key: '87135f130983c602f8909da57c12c2ae02d3655d', class: "visually-hidden" }, " steps")), (this.subheading ||
|
20281
20421
|
this.type === "completed" ||
|
20282
20422
|
this.type === "disabled" ||
|
20283
20423
|
(this.variant === "compact" &&
|
20284
20424
|
!!this.compactStepStyling &&
|
20285
20425
|
this.compactStepStyling !== "active") ||
|
20286
|
-
!!this.status) && (hAsync("div", { key: '
|
20426
|
+
!!this.status) && (hAsync("div", { key: '0a5a230fd701a8a589dc774d7d5a11ab4a8f22ec', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (hAsync("ic-typography", { key: '60f32a581e356b2b86616c0a4d6895e2a765e661', variant: "caption" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20287
20427
|
? this.subheading
|
20288
20428
|
: this.type === "disabled" ||
|
20289
20429
|
(this.variant === "compact" &&
|
@@ -20296,26 +20436,26 @@ class Step {
|
|
20296
20436
|
// ICON FOR DEFAULT STEP
|
20297
20437
|
let icon;
|
20298
20438
|
if (this.type !== "completed") {
|
20299
|
-
icon = (hAsync("ic-typography", { key: '
|
20439
|
+
icon = (hAsync("ic-typography", { key: '316ca02b237660b9ce7dfc2cfa7ee7a9a405850f', variant: "subtitle-small" }, hAsync("span", { key: '28c285e0de19f766bde7540a84a7b6f92f2722f6', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
20300
20440
|
}
|
20301
20441
|
else {
|
20302
|
-
icon = (hAsync("div", { key: '
|
20442
|
+
icon = (hAsync("div", { key: '8a57441521368e3e48abda6607fa7ed834b76539', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '244a4c8979621768867cb1b876ad41c96368f048', class: "check-icon", innerHTML: checkIcon })));
|
20303
20443
|
}
|
20304
20444
|
// STEP CONNECT FOR DEFAULT STEP
|
20305
|
-
const partialBar = this.type === "current" && (hAsync("div", { key: '
|
20306
|
-
const finalStep = !this.lastStep && (hAsync("div", { key: '
|
20445
|
+
const partialBar = this.type === "current" && (hAsync("div", { key: 'e0e0134d5e347c12d2db12c7a7c1fd2f796e680a', class: "step-connect-inner" }));
|
20446
|
+
const finalStep = !this.lastStep && (hAsync("div", { key: '87b3f5541a9fa51784d054ab418ffd270aa5d131', class: {
|
20307
20447
|
["step-connect"]: true,
|
20308
20448
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
20309
20449
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20310
20450
|
} }, partialBar));
|
20311
20451
|
// DEFAULT STEP COMPONENT
|
20312
|
-
const defaultStep = (hAsync("div", { key: '
|
20452
|
+
const defaultStep = (hAsync("div", { key: '942e50008de22ed3bf9cfc6f5878fe20780224d4', class: {
|
20313
20453
|
["step"]: true,
|
20314
20454
|
[`${this.type}`]: true,
|
20315
|
-
} }, hAsync("div", { key: '
|
20455
|
+
} }, hAsync("div", { key: 'ea7466090610c4ca42426a95c5b5eea07c0a3e20', class: "step-top" }, hAsync("div", { key: '8e7a36165cdb25aa4939e7dad24211b6f42deb9b', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (hAsync("div", { key: 'd6e7a5a41587217e8e29390f7fdccc06c2c772d8', class: "heading-area" }, this.heading && (hAsync("ic-typography", { key: '235524fbe7fc0dd3991dfef222bdf29dfe80bedc', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (hAsync("ic-typography", { key: '2d29260629ca84280981ceedc7196fd0be347c3b', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20316
20456
|
? this.subheading
|
20317
20457
|
: stepStatus))))));
|
20318
|
-
return (hAsync(Host, { key: '
|
20458
|
+
return (hAsync(Host, { key: 'c8b18833e54cb4cf0eac30b3f3b487a53ef9392f', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
|
20319
20459
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
20320
20460
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20321
20461
|
[`ic-step-${this.variant}`]: true,
|
@@ -21954,13 +22094,13 @@ class Toast {
|
|
21954
22094
|
}
|
21955
22095
|
render() {
|
21956
22096
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
21957
|
-
return (hAsync(Host, { key: '
|
22097
|
+
return (hAsync(Host, { key: 'fa6a7d6728859eb5b7269aa107c1245f95e8c070', class: { ["ic-toast-hidden"]: !visible }, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: 'bd9d63cf3aa162336af8c98c7b5ef0eef9727a05', class: "container" }, variant && visible && (hAsync("div", { key: 'ab69806c35fc984bf2bccdb45f2568dd7e43b45c', class: "toast-icon-container" }, hAsync("div", { key: 'f69c093a9d15bcf6592c39736657ea7d921b436b', class: {
|
21958
22098
|
["divider"]: true,
|
21959
22099
|
[`divider-${variant}`]: true,
|
21960
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
22100
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '58c6b130bf233edf14a9306eded733671a9bcc7a', class: {
|
21961
22101
|
["toast-content"]: true,
|
21962
22102
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
21963
|
-
} }, hAsync("div", { key: '
|
22103
|
+
} }, hAsync("div", { key: 'a99ef4a5497b62d3724f1c3001b592bee3b7c76f', class: "toast-text" }, hAsync("ic-typography", { key: '08ff7bf5c471121d854cdc34d78ff42194c6a50d', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '905b01333ed90c57a3e538b1fb9f10df970f1331', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: 'a54c00d59185300ec781bbc4d2cf8f19aaa695a9' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '56a80eeb87e7c886cb4dd31ec059020ff1ba820b', class: "toast-action-container" }, hAsync("slot", { key: '4e09a9eaf12503e0bd377e112617e8390b1eac5e', name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", theme: "dark", monochrome: true, size: "icon", progress: this.timerProgress, description: "Dismiss timer" })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", "aria-label": dismissButtonAriaLabel })))));
|
21964
22104
|
}
|
21965
22105
|
get el() { return getElement(this); }
|
21966
22106
|
static get watchers() { return {
|
@@ -22786,7 +22926,7 @@ class TopNavigation {
|
|
22786
22926
|
this.hasSearchSlotContent = false;
|
22787
22927
|
this.resizeObserver = null;
|
22788
22928
|
this.searchBar = null;
|
22789
|
-
this.deviceSize = DEVICE_SIZES.XL;
|
22929
|
+
this.deviceSize = DEVICE_SIZES$1.XL;
|
22790
22930
|
this.foregroundColor = getBrandForegroundAppearance();
|
22791
22931
|
this.hasFullWidthSearchBar = false;
|
22792
22932
|
this.mobileSearchBarVisible = false;
|
@@ -22802,7 +22942,7 @@ class TopNavigation {
|
|
22802
22942
|
* Can set a custom breakpoint for the top navigation to switch to mobile mode.
|
22803
22943
|
* Must be one of our specified breakpoints in px: `0`, `576`, `768`, `992`, `1200`.
|
22804
22944
|
*/
|
22805
|
-
this.customMobileBreakpoint = DEVICE_SIZES.L;
|
22945
|
+
this.customMobileBreakpoint = DEVICE_SIZES$1.L;
|
22806
22946
|
/**
|
22807
22947
|
* The URL to navigate to when the app title is clicked.
|
22808
22948
|
*/
|
@@ -22882,7 +23022,7 @@ class TopNavigation {
|
|
22882
23022
|
};
|
22883
23023
|
this.runResizeObserver = () => {
|
22884
23024
|
this.resizeObserver = new ResizeObserver(() => {
|
22885
|
-
this.resizeObserverCallback(getCurrentDeviceSize());
|
23025
|
+
this.resizeObserverCallback(getCurrentDeviceSize$1());
|
22886
23026
|
});
|
22887
23027
|
this.resizeObserver.observe(this.el);
|
22888
23028
|
};
|
@@ -22898,7 +23038,7 @@ class TopNavigation {
|
|
22898
23038
|
}
|
22899
23039
|
componentWillLoad() {
|
22900
23040
|
this.checkSlots();
|
22901
|
-
this.deviceSize = getCurrentDeviceSize();
|
23041
|
+
this.deviceSize = getCurrentDeviceSize$1();
|
22902
23042
|
this.initialiseSearchBar();
|
22903
23043
|
}
|
22904
23044
|
componentDidLoad() {
|
@@ -22955,16 +23095,16 @@ class TopNavigation {
|
|
22955
23095
|
const hasStatus = status !== "";
|
22956
23096
|
const hasVersion = version !== "";
|
22957
23097
|
const hasMenuContent = hasNavigation || hasIconButtons || hasStatus || hasVersion;
|
22958
|
-
const searchButtonSize = deviceSize <= DEVICE_SIZES.S ? "medium" : "large";
|
23098
|
+
const searchButtonSize = deviceSize <= DEVICE_SIZES$1.S ? "medium" : "large";
|
22959
23099
|
const hasTitle = appTitle !== "" && isPropDefined$1(appTitle);
|
22960
23100
|
const overMobileBreakpoint = deviceSize <= customMobileBreakpoint;
|
22961
23101
|
const appTitleVariant = overMobileBreakpoint
|
22962
|
-
? deviceSize <= DEVICE_SIZES.S
|
23102
|
+
? deviceSize <= DEVICE_SIZES$1.S
|
22963
23103
|
? "subtitle-small"
|
22964
23104
|
: "h4"
|
22965
23105
|
: "h3";
|
22966
23106
|
const mobileSearchButtonTitle = `${mobileSearchBarVisible ? "Hide" : "Show"} search`;
|
22967
|
-
const menuSize = deviceSize <= DEVICE_SIZES.S ? "small" : "medium";
|
23107
|
+
const menuSize = deviceSize <= DEVICE_SIZES$1.S ? "small" : "medium";
|
22968
23108
|
const shortAppTitleSlot = isSlotUsed$1(el, "short-app-title");
|
22969
23109
|
const hasAppTitleSlot = isSlotUsed$1(el, "app-title");
|
22970
23110
|
const Component = hasAppTitleSlot ? "div" : "a";
|
@@ -22976,7 +23116,7 @@ class TopNavigation {
|
|
22976
23116
|
"mobile-mode": overMobileBreakpoint,
|
22977
23117
|
[IcBrandForegroundEnum$1.Dark]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
22978
23118
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22979
|
-
} }, hAsync("div", { key: '3447c99cc05b7203ea80d0651f1ac066122697e1', class: "top-navigation" }, hAsync("ic-section-container", { key: '563a2b3fc3c7d456fee7261c2d5645948301e953', aligned: contentAligned, "full-height": true }, hAsync("header", { key: '61d58c8a68ff59cfa1b5cf75daef6c62b2b4692a', role: "banner" }, hAsync("div", { key: '17108bd26152301bf07afe95a061debb23184e8b', class: "top-panel-container" }, hAsync("div", { key: '86fe01bd6227bc0a1e1633cab7d6cff654e2a808', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: 'c6f2a1ed6ce7b7813f12352401c89852d6646327', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: 'c5a2e2961b16b5f5dc6e918ba6f758e7bce09cd7', class: "app-icon-container" }, hAsync("slot", { key: '9b6d5636aa1f474bac2add8948bcd598f3d5c231', name: "app-icon" }))), deviceSize <= DEVICE_SIZES.S &&
|
23119
|
+
} }, hAsync("div", { key: '3447c99cc05b7203ea80d0651f1ac066122697e1', class: "top-navigation" }, hAsync("ic-section-container", { key: '563a2b3fc3c7d456fee7261c2d5645948301e953', aligned: contentAligned, "full-height": true }, hAsync("header", { key: '61d58c8a68ff59cfa1b5cf75daef6c62b2b4692a', role: "banner" }, hAsync("div", { key: '17108bd26152301bf07afe95a061debb23184e8b', class: "top-panel-container" }, hAsync("div", { key: '86fe01bd6227bc0a1e1633cab7d6cff654e2a808', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: 'c6f2a1ed6ce7b7813f12352401c89852d6646327', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: 'c5a2e2961b16b5f5dc6e918ba6f758e7bce09cd7', class: "app-icon-container" }, hAsync("slot", { key: '9b6d5636aa1f474bac2add8948bcd598f3d5c231', name: "app-icon" }))), deviceSize <= DEVICE_SIZES$1.S &&
|
22980
23120
|
(!isEmptyString$1(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
22981
23121
|
`${appTitle} (${shortAppTitle})` }, hAsync("h1", null, shortAppTitleSlot ? (hAsync("slot", { name: "short-app-title" })) : (shortAppTitle)))) : (hAsync("ic-typography", { variant: appTitleVariant }, hAsync("h1", { class: "title-wrap" }, hasAppTitleSlot ? (hAsync("slot", { name: "app-title" })) : (appTitle)))))), hasStatus && (hAsync("div", { key: 'f4365e21d3de5cc7c0f7c6f62a64c3fa0a7415bb', class: "app-status" }, hAsync("ic-typography", { key: '9d03f72e0533c1d721142cba78ba216c9abf61c5', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: '318b6cf7cd4359429a6d698d40e3b99f46ac67e0', class: "app-version" }, hAsync("ic-typography", { key: '67cc4163765fb967729ba4fa03e857c1b0cc96e3', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: '0f8ce1b2c3a0cf3f3bbbe2d0285324935e5b1676', class: "search-menu-container" }, hAsync("div", { key: 'a4033e992457aa434c705d0e35d24c9efb291195', class: "search-actions-container" }, !overMobileBreakpoint && hAsync("slot", { key: 'd9347964c2972b338c4e09833ab94f820d8b49c8', name: "search" }), hasSearchSlotContent && overMobileBreakpoint && (hAsync("ic-button", { key: '2a3abd194a9b28efc44cf5a41151693eb718010e', id: "search-toggle-button", ref: (el) => (this.mobileSearchButtonEl = el), onMouseDown: searchButtonMouseDownHandler, variant: "icon-tertiary", monochrome: true, size: searchButtonSize, "aria-label": mobileSearchButtonTitle, theme: foregroundColor == IcBrandForegroundEnum$1.Light
|
22982
23122
|
? IcBrandForegroundEnum$1.Dark
|
@@ -23041,6 +23181,7 @@ class TreeItem {
|
|
23041
23181
|
this.hostMutationObserver = null;
|
23042
23182
|
this.TOOLTIP = "ic-tooltip";
|
23043
23183
|
this.TREE_ITEM_LABEL_CLASS_SELECTOR = ".tree-item-label";
|
23184
|
+
this.TREE_ITEM_CONTENT_CLASS_SELECTOR = ".tree-item-content";
|
23044
23185
|
/**
|
23045
23186
|
* If `true`, the tree item appears in the disabled state.
|
23046
23187
|
*/
|
@@ -23093,7 +23234,10 @@ class TreeItem {
|
|
23093
23234
|
this.setTreeItemPadding = () => {
|
23094
23235
|
let level = 1;
|
23095
23236
|
let parentElement = this.el.parentElement;
|
23096
|
-
const treeItemContent = this.el.shadowRoot.querySelector(
|
23237
|
+
const treeItemContent = this.el.shadowRoot.querySelector(this.TREE_ITEM_CONTENT_CLASS_SELECTOR);
|
23238
|
+
if (!parentElement) {
|
23239
|
+
return;
|
23240
|
+
}
|
23097
23241
|
const isSiblingOfParent = Array.from(parentElement.children)
|
23098
23242
|
.map((sibling) => {
|
23099
23243
|
if (sibling !== this.el &&
|
@@ -23148,7 +23292,7 @@ class TreeItem {
|
|
23148
23292
|
contentHeight = typographyEl.scrollHeight;
|
23149
23293
|
}
|
23150
23294
|
const tooltipAlreadyExists = !!(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP));
|
23151
|
-
const treeContent = treeItem.shadowRoot.querySelector(
|
23295
|
+
const treeContent = treeItem.shadowRoot.querySelector(this.TREE_ITEM_CONTENT_CLASS_SELECTOR) || slottedContent;
|
23152
23296
|
if (contentHeight > (treeContent === null || treeContent === void 0 ? void 0 : treeContent.clientHeight) && !tooltipAlreadyExists) {
|
23153
23297
|
const tooltipEl = document.createElement("ic-tooltip");
|
23154
23298
|
tooltipEl.setAttribute("target", this.el.id);
|
@@ -23168,6 +23312,17 @@ class TreeItem {
|
|
23168
23312
|
tooltipEl.appendChild(typographyEl);
|
23169
23313
|
}
|
23170
23314
|
};
|
23315
|
+
this.removeTreeItemTruncation = (treeItem) => {
|
23316
|
+
const slottedContent = treeItem.querySelector("[slot='router-item']");
|
23317
|
+
const typographyEl = treeItem.shadowRoot.querySelector(this.TREE_ITEM_LABEL_CLASS_SELECTOR) ||
|
23318
|
+
slottedContent.querySelector(this.TREE_ITEM_LABEL_CLASS_SELECTOR);
|
23319
|
+
const tooltipEl = typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP);
|
23320
|
+
const treeContent = treeItem.shadowRoot.querySelector(this.TREE_ITEM_CONTENT_CLASS_SELECTOR) || slottedContent;
|
23321
|
+
if (tooltipEl) {
|
23322
|
+
typographyEl.classList.remove("ic-text-overflow");
|
23323
|
+
treeContent.replaceChild(treeContent === slottedContent ? typographyEl.firstChild : typographyEl, tooltipEl);
|
23324
|
+
}
|
23325
|
+
};
|
23171
23326
|
this.handleDisplayTooltip = (display) => {
|
23172
23327
|
const typographyEl = this.el.shadowRoot.querySelector(this.TREE_ITEM_LABEL_CLASS_SELECTOR) ||
|
23173
23328
|
this.el.querySelector(this.TREE_ITEM_LABEL_CLASS_SELECTOR);
|
@@ -23206,17 +23361,23 @@ class TreeItem {
|
|
23206
23361
|
});
|
23207
23362
|
}
|
23208
23363
|
componentDidRender() {
|
23209
|
-
this.truncateTreeItem
|
23364
|
+
this.truncateTreeItem
|
23365
|
+
? this.truncateTreeItemLabel(this.el)
|
23366
|
+
: this.removeTreeItemTruncation(this.el);
|
23210
23367
|
if (this.expanded) {
|
23211
23368
|
this.childTreeItems.forEach((child) => {
|
23212
|
-
child.truncateTreeItem
|
23369
|
+
child.truncateTreeItem
|
23370
|
+
? this.truncateTreeItemLabel(child)
|
23371
|
+
: this.removeTreeItemTruncation(child);
|
23213
23372
|
});
|
23214
23373
|
}
|
23215
23374
|
}
|
23216
23375
|
componentDidUpdate() {
|
23217
23376
|
if (this.hasParentExpanded) {
|
23218
23377
|
this.childTreeItems.forEach((child) => {
|
23219
|
-
child.truncateTreeItem
|
23378
|
+
child.truncateTreeItem
|
23379
|
+
? this.truncateTreeItemLabel(child)
|
23380
|
+
: this.removeTreeItemTruncation(child);
|
23220
23381
|
});
|
23221
23382
|
this.hasParentExpanded = false;
|
23222
23383
|
}
|
@@ -23289,7 +23450,7 @@ class TreeItem {
|
|
23289
23450
|
rel: this.rel,
|
23290
23451
|
target: this.target,
|
23291
23452
|
};
|
23292
|
-
return (hAsync(Host, { key: '
|
23453
|
+
return (hAsync(Host, { key: 'f2aeb4f24ff2fce08bfd3b33343e89ae84b97168', class: {
|
23293
23454
|
"ic-tree-item-disabled": disabled,
|
23294
23455
|
"ic-tree-item-selected": !disabled && selected,
|
23295
23456
|
[`ic-tree-item-${size}`]: size !== "medium",
|
@@ -23301,7 +23462,7 @@ class TreeItem {
|
|
23301
23462
|
}, tabIndex: disabled ? -1 : 0, onClick: this.handleTreeItemClicked, ref: (el) => (this.treeItemElement = el), "aria-disabled": disabled ? "true" : "false", "aria-live": "polite" }, attrs, { onFocus: () => this.handleDisplayTooltip(true), onBlur: () => this.handleDisplayTooltip(false) }), this.isParent && (hAsync("span", { class: {
|
23302
23463
|
["arrow-dropdown"]: true,
|
23303
23464
|
["tree-item-expanded"]: expanded,
|
23304
|
-
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: '
|
23465
|
+
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: '35b46ae7d8d4f541219bf6a73e49158d14cb8763', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: '9af9035ab4014f2e9bd509eab38f08b0a55a475f' })))));
|
23305
23466
|
}
|
23306
23467
|
get el() { return getElement(this); }
|
23307
23468
|
static get watchers() { return {
|
@@ -23321,6 +23482,7 @@ class TreeItem {
|
|
23321
23482
|
"hreflang": [1],
|
23322
23483
|
"isParent": [1028, "is-parent"],
|
23323
23484
|
"label": [1],
|
23485
|
+
"previousTruncateTreeItem": [4, "previous-truncate-tree-item"],
|
23324
23486
|
"referrerpolicy": [1],
|
23325
23487
|
"rel": [1],
|
23326
23488
|
"selected": [1028],
|
@@ -23341,6 +23503,18 @@ class TreeItem {
|
|
23341
23503
|
const icTreeViewCss = ":host{display:block;width:var(--tree-view-width, 100%);background-color:var(--ic-tree-view-background)}:host .heading-area-container{border-bottom:var(--ic-space-1px) solid var(--ic-tree-view-divider);display:flex;align-items:center;min-height:calc(\n var(--ic-space-xl) + var(--ic-space-xs) - var(--ic-space-1px)\n );padding:0 var(--ic-space-xs);--ic-typography-color:var(--ic-tree-view-text)}:host(.ic-tree-view-small) .heading-area-container{min-height:calc(var(--ic-space-xl) - var(--ic-space-1px))}:host(.ic-tree-view-large) .heading-area-container{min-height:calc(var(--ic-space-xxl) - var(--ic-space-1px))}:host(.ic-tree-view-truncate) .heading-area-container{height:calc(var(--ic-space-xl) + var(--ic-space-xs) - var(--ic-space-1px))}:host(.ic-tree-view-truncate.ic-tree-view-small) .heading-area-container{height:calc(var(--ic-space-xl) - var(--ic-space-1px))}:host(.ic-tree-view-truncate.ic-tree-view-large) .heading-area-container{height:calc(var(--ic-space-xxl) - var(--ic-space-1px))}.icon-container{width:var(--ic-space-lg);min-width:var(--ic-space-lg);height:var(--ic-space-lg);margin:0 var(--ic-space-xs) 0 0}:host(.ic-tree-view-small) .icon-container{margin:0 var(--ic-space-xxs) 0 0}.ic-text-overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ic-tooltip-overflow{overflow:hidden}.tree-view-header.with-padding{padding-right:var(--ic-space-xs)}.tree-items-container-hidden{visibility:hidden}::slotted([slot=\"icon\"]){fill:var(--ic-tree-view-icon)}@media (forced-colors: active){::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
23342
23504
|
var IcTreeViewStyle0 = icTreeViewCss;
|
23343
23505
|
|
23506
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
23507
|
+
var t = {};
|
23508
|
+
for (var p in s)
|
23509
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
23510
|
+
t[p] = s[p];
|
23511
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
23512
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
23513
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
23514
|
+
t[p[i]] = s[p[i]];
|
23515
|
+
}
|
23516
|
+
return t;
|
23517
|
+
};
|
23344
23518
|
let treeViewIds = 0;
|
23345
23519
|
/**
|
23346
23520
|
* @slot heading - Content is set as the tree view heading.
|
@@ -23353,6 +23527,9 @@ class TreeView {
|
|
23353
23527
|
this.treeItemTag = "IC-TREE-ITEM";
|
23354
23528
|
this.hostMutationObserver = null;
|
23355
23529
|
this.isLoaded = false;
|
23530
|
+
this.resizeObserver = null;
|
23531
|
+
this.TOOLTIP = "ic-tooltip";
|
23532
|
+
this.smallDevice = false;
|
23356
23533
|
/**
|
23357
23534
|
* If `true`, tree items will have inset focus.
|
23358
23535
|
*/
|
@@ -23369,14 +23546,32 @@ class TreeView {
|
|
23369
23546
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
23370
23547
|
*/
|
23371
23548
|
this.theme = "inherit";
|
23549
|
+
/**
|
23550
|
+
* The content within the tree view tree items. This will take precedence over slotted content.
|
23551
|
+
* */
|
23552
|
+
this.treeItemData = [];
|
23372
23553
|
/**
|
23373
23554
|
* If `true`, the tree view heading will be truncated instead of text wrapping.
|
23555
|
+
* When used on small devices, this prop will be overridden and headings will be set to text-wrap.
|
23374
23556
|
*/
|
23375
23557
|
this.truncateHeading = false;
|
23376
23558
|
/**
|
23377
23559
|
* If `true`, tree items will be truncated, unless they are individually overridden.
|
23560
|
+
* When used on small devices, this prop will be overridden and tree-items will be set to text-wrap.
|
23378
23561
|
*/
|
23379
23562
|
this.truncateTreeItems = false;
|
23563
|
+
this.runResizeObserver = () => {
|
23564
|
+
this.resizeObserver = new ResizeObserver(() => {
|
23565
|
+
const isSmallDevice = getCurrentDeviceSize() <= DEVICE_SIZES.S;
|
23566
|
+
if (this.smallDevice !== isSmallDevice)
|
23567
|
+
this.smallDevice = isSmallDevice;
|
23568
|
+
});
|
23569
|
+
this.resizeObserver.observe(document.body);
|
23570
|
+
};
|
23571
|
+
this.removeTruncation = () => {
|
23572
|
+
this.truncateHeading = undefined;
|
23573
|
+
this.truncateTreeItems = undefined;
|
23574
|
+
};
|
23380
23575
|
this.handleKeyDown = (event) => {
|
23381
23576
|
var _a;
|
23382
23577
|
const focussedChild = this.treeItems.indexOf(this.treeItems.filter((el) => el === document.activeElement)[0]);
|
@@ -23465,7 +23660,7 @@ class TreeView {
|
|
23465
23660
|
};
|
23466
23661
|
this.truncateTreeViewHeading = () => {
|
23467
23662
|
const typographyEl = this.el.shadowRoot.querySelector(".tree-view-header");
|
23468
|
-
const tooltip = typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(
|
23663
|
+
const tooltip = typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP);
|
23469
23664
|
const headingContainer = this.el.shadowRoot.querySelector(".heading-area-container");
|
23470
23665
|
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (headingContainer === null || headingContainer === void 0 ? void 0 : headingContainer.clientHeight)) {
|
23471
23666
|
typographyEl.classList.add("ic-text-overflow");
|
@@ -23480,6 +23675,16 @@ class TreeView {
|
|
23480
23675
|
}
|
23481
23676
|
}
|
23482
23677
|
};
|
23678
|
+
this.removeHeadingTruncation = () => {
|
23679
|
+
const typographyEl = this.el.shadowRoot.querySelector(".tree-view-header");
|
23680
|
+
const tooltipEl = typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP);
|
23681
|
+
if (tooltipEl) {
|
23682
|
+
typographyEl.classList.remove("ic-text-overflow");
|
23683
|
+
this.el.shadowRoot
|
23684
|
+
.querySelector(".heading-area-container")
|
23685
|
+
.replaceChild(typographyEl, tooltipEl);
|
23686
|
+
}
|
23687
|
+
};
|
23483
23688
|
this.isHeadingDefined = () => isPropDefined(this.heading) && this.heading !== null;
|
23484
23689
|
this.hasHeadingAreaContent = () => {
|
23485
23690
|
return (isSlotUsed(this.el, "heading") ||
|
@@ -23487,6 +23692,17 @@ class TreeView {
|
|
23487
23692
|
isSlotUsed(this.el, "icon"));
|
23488
23693
|
};
|
23489
23694
|
}
|
23695
|
+
watchSmallDeviceHandler() {
|
23696
|
+
if (this.smallDevice) {
|
23697
|
+
this.previousTruncateHeading = this.truncateHeading;
|
23698
|
+
this.previousTruncateTreeItems = this.truncateTreeItems;
|
23699
|
+
this.removeTruncation();
|
23700
|
+
}
|
23701
|
+
else {
|
23702
|
+
this.truncateHeading = this.previousTruncateHeading;
|
23703
|
+
this.truncateTreeItems = this.previousTruncateTreeItems;
|
23704
|
+
}
|
23705
|
+
}
|
23490
23706
|
watchFocusInsetHandler() {
|
23491
23707
|
this.treeItems.forEach((treeItem) => {
|
23492
23708
|
treeItem.focusInset = this.focusInset;
|
@@ -23502,27 +23718,44 @@ class TreeView {
|
|
23502
23718
|
treeItem.theme = this.theme;
|
23503
23719
|
});
|
23504
23720
|
}
|
23721
|
+
watchTreeItemOptionsHandler() {
|
23722
|
+
this.setTreeItems();
|
23723
|
+
}
|
23505
23724
|
watchTruncateTreeItemsHandler() {
|
23506
23725
|
this.treeItems.forEach((treeItem) => {
|
23507
|
-
if (
|
23726
|
+
if (this.smallDevice) {
|
23727
|
+
treeItem.previousTruncateTreeItem = treeItem.truncateTreeItem;
|
23508
23728
|
treeItem.truncateTreeItem = this.truncateTreeItems;
|
23509
23729
|
}
|
23730
|
+
else {
|
23731
|
+
treeItem.truncateTreeItem = treeItem.previousTruncateTreeItem;
|
23732
|
+
}
|
23510
23733
|
});
|
23511
23734
|
}
|
23512
23735
|
disconnectedCallback() {
|
23513
|
-
var _a, _b;
|
23736
|
+
var _a, _b, _c;
|
23514
23737
|
(_a = this.el) === null || _a === void 0 ? void 0 : _a.removeEventListener("slotchange", this.setTreeItems);
|
23515
23738
|
(_b = this.hostMutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
23739
|
+
(_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
23516
23740
|
}
|
23517
23741
|
componentWillLoad() {
|
23518
23742
|
this.setTreeItems();
|
23743
|
+
this.previousTruncateHeading = this.truncateHeading;
|
23744
|
+
this.previousTruncateTreeItems = this.truncateTreeItems;
|
23745
|
+
checkResizeObserver(this.runResizeObserver);
|
23519
23746
|
this.watchSizeHandler();
|
23520
23747
|
this.watchFocusInsetHandler();
|
23521
23748
|
this.watchThemeHandler();
|
23522
|
-
this.
|
23749
|
+
this.treeItems.forEach((treeItem) => {
|
23750
|
+
if (treeItem.truncateTreeItem === undefined) {
|
23751
|
+
treeItem.truncateTreeItem = this.truncateTreeItems;
|
23752
|
+
}
|
23753
|
+
});
|
23523
23754
|
}
|
23524
23755
|
componentDidRender() {
|
23525
|
-
this.truncateHeading
|
23756
|
+
this.truncateHeading
|
23757
|
+
? this.truncateTreeViewHeading()
|
23758
|
+
: this.removeHeadingTruncation();
|
23526
23759
|
}
|
23527
23760
|
componentDidLoad() {
|
23528
23761
|
this.addSlotChangeListener();
|
@@ -23541,33 +23774,63 @@ class TreeView {
|
|
23541
23774
|
}
|
23542
23775
|
getAllTreeItems(element) {
|
23543
23776
|
const treeItems = [];
|
23544
|
-
const
|
23777
|
+
const collectTreeItemsFromSlottedContent = (el) => {
|
23545
23778
|
Array.from(el.children).forEach((child) => {
|
23546
23779
|
if (child.tagName === this.treeItemTag) {
|
23547
23780
|
treeItems.push(child);
|
23548
23781
|
}
|
23549
|
-
|
23782
|
+
collectTreeItemsFromSlottedContent(child);
|
23783
|
+
});
|
23784
|
+
};
|
23785
|
+
const collectTreeItemsFromData = (items, parentElement) => {
|
23786
|
+
Array.from(parentElement.children).forEach((child) => {
|
23787
|
+
if (child.tagName === this.treeItemTag) {
|
23788
|
+
parentElement.removeChild(child);
|
23789
|
+
}
|
23790
|
+
});
|
23791
|
+
items.forEach((item) => {
|
23792
|
+
const treeItem = document.createElement(this.treeItemTag);
|
23793
|
+
const { children, icon } = item, props = __rest(item, ["children", "icon"]);
|
23794
|
+
Object.assign(treeItem, props);
|
23795
|
+
if (icon) {
|
23796
|
+
const iconSlot = document.createElement("div");
|
23797
|
+
iconSlot.setAttribute("slot", "icon");
|
23798
|
+
iconSlot.innerHTML = icon;
|
23799
|
+
treeItem.appendChild(iconSlot);
|
23800
|
+
}
|
23801
|
+
parentElement.appendChild(treeItem);
|
23802
|
+
treeItems.push(treeItem);
|
23803
|
+
if (children && children.length > 0) {
|
23804
|
+
collectTreeItemsFromData(children, treeItem);
|
23805
|
+
}
|
23550
23806
|
});
|
23551
23807
|
};
|
23552
|
-
|
23808
|
+
if (this.treeItemData.length > 0) {
|
23809
|
+
collectTreeItemsFromData(this.treeItemData, element);
|
23810
|
+
}
|
23811
|
+
else {
|
23812
|
+
collectTreeItemsFromSlottedContent(element);
|
23813
|
+
}
|
23553
23814
|
return treeItems;
|
23554
23815
|
}
|
23555
23816
|
render() {
|
23556
23817
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
23557
|
-
return (hAsync(Host, { key: '
|
23818
|
+
return (hAsync(Host, { key: '43c3dd9cb9f888c4033088087fdce4829559f03f', "context-id": this.treeViewId, class: {
|
23558
23819
|
[`ic-tree-view-${size}`]: size !== "medium",
|
23559
23820
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23560
23821
|
"ic-tree-view-truncate": truncateHeading,
|
23561
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
23822
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '759c1432800d9dd26b1d9ce720c9626e41408f2f', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '3c239ffde40795dcf3f47b12c5649906a6198970', class: "icon-container" }, hAsync("slot", { key: 'e86df51c31b2b0deea7c484bceacec0f593db42c', name: "icon" }))), hAsync("ic-typography", { key: 'a54ae6d1eb99029f5dda14f0118519aed971b6d1', variant: "subtitle-large", class: {
|
23562
23823
|
"tree-view-header": true,
|
23563
23824
|
"with-padding": this.truncateHeading && !isLoaded,
|
23564
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
23825
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '154c96cfb4a0c93da02b53308fe6b8871ec4144b' })));
|
23565
23826
|
}
|
23566
23827
|
get el() { return getElement(this); }
|
23567
23828
|
static get watchers() { return {
|
23829
|
+
"smallDevice": ["watchSmallDeviceHandler"],
|
23568
23830
|
"focusInset": ["watchFocusInsetHandler"],
|
23569
23831
|
"size": ["watchSizeHandler"],
|
23570
23832
|
"theme": ["watchThemeHandler"],
|
23833
|
+
"treeItemData": ["watchTreeItemOptionsHandler"],
|
23571
23834
|
"truncateTreeItems": ["watchTruncateTreeItemsHandler"]
|
23572
23835
|
}; }
|
23573
23836
|
static get style() { return IcTreeViewStyle0; }
|
@@ -23579,8 +23842,10 @@ class TreeView {
|
|
23579
23842
|
"heading": [1],
|
23580
23843
|
"size": [1],
|
23581
23844
|
"theme": [1],
|
23582
|
-
"
|
23583
|
-
"
|
23845
|
+
"treeItemData": [16],
|
23846
|
+
"truncateHeading": [1028, "truncate-heading"],
|
23847
|
+
"truncateTreeItems": [1028, "truncate-tree-items"],
|
23848
|
+
"smallDevice": [32],
|
23584
23849
|
"treeItems": [32]
|
23585
23850
|
},
|
23586
23851
|
"$listeners$": [[0, "icTreeItemSelected", "handleTreeItemSelected"]],
|