@govtechsg/sgds-web-component 3.2.0-rc.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/button.js +1 -1
- package/base/card.js +1 -1
- package/components/Badge/index.umd.js +63 -44
- package/components/Badge/index.umd.js.map +1 -1
- package/components/Badge/sgds-badge.d.ts +3 -1
- package/components/Badge/sgds-badge.js +23 -4
- package/components/Badge/sgds-badge.js.map +1 -1
- package/components/Button/index.umd.js +1 -1
- package/components/Card/index.umd.js +53 -12
- package/components/Card/index.umd.js.map +1 -1
- package/components/Card/sgds-card.js +5 -3
- package/components/Card/sgds-card.js.map +1 -1
- package/components/ComboBox/index.umd.js +29 -9
- package/components/ComboBox/index.umd.js.map +1 -1
- package/components/ComboBox/sgds-combo-box.js +3 -2
- package/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/components/Datepicker/index.umd.js +1 -1
- package/components/Drawer/index.umd.js +2 -2
- package/components/Drawer/index.umd.js.map +1 -1
- package/components/FileUpload/index.umd.js +1 -1
- package/components/IconButton/index.umd.js +1 -1
- package/components/Mainnav/index.umd.js +3 -3
- package/components/Mainnav/index.umd.js.map +1 -1
- package/components/Mainnav/sgds-mainnav-item.d.ts +1 -1
- package/components/Mainnav/sgds-mainnav-item.js +2 -2
- package/components/Mainnav/sgds-mainnav-item.js.map +1 -1
- package/components/Modal/index.umd.js +22 -17
- package/components/Modal/index.umd.js.map +1 -1
- package/components/Modal/modal.js +1 -1
- package/components/Modal/sgds-modal.js +17 -14
- package/components/Modal/sgds-modal.js.map +1 -1
- package/components/Pagination/index.umd.js +1 -1
- package/components/QuantityToggle/index.umd.js +1 -1
- package/components/Subnav/index.umd.js +79 -87
- package/components/Subnav/index.umd.js.map +1 -1
- package/components/Subnav/sgds-subnav-item.d.ts +1 -1
- package/components/Subnav/sgds-subnav-item.js +2 -2
- package/components/Subnav/sgds-subnav-item.js.map +1 -1
- package/components/Subnav/sgds-subnav.d.ts +5 -4
- package/components/Subnav/sgds-subnav.js +76 -85
- package/components/Subnav/sgds-subnav.js.map +1 -1
- package/components/Subnav/subnav-item.js +1 -1
- package/components/Subnav/subnav.js +1 -1
- package/components/Table/index.d.ts +7 -1
- package/components/Table/index.js +6 -0
- package/components/Table/index.js.map +1 -1
- package/components/Table/index.umd.js +182 -16
- package/components/Table/index.umd.js.map +1 -1
- package/components/Table/sgds-table-cell.d.ts +13 -0
- package/components/Table/sgds-table-cell.js +22 -0
- package/components/Table/sgds-table-cell.js.map +1 -0
- package/components/Table/sgds-table-head.d.ts +18 -0
- package/components/Table/sgds-table-head.js +43 -0
- package/components/Table/sgds-table-head.js.map +1 -0
- package/components/Table/sgds-table-row.d.ts +13 -0
- package/components/Table/sgds-table-row.js +22 -0
- package/components/Table/sgds-table-row.js.map +1 -0
- package/components/Table/sgds-table.d.ts +5 -2
- package/components/Table/sgds-table.js +18 -13
- package/components/Table/sgds-table.js.map +1 -1
- package/components/Table/table-cell.js +6 -0
- package/components/Table/table-cell.js.map +1 -0
- package/components/Table/table-head.js +6 -0
- package/components/Table/table-head.js.map +1 -0
- package/components/Table/table-row.js +6 -0
- package/components/Table/table-row.js.map +1 -0
- package/components/Table/table.js +1 -1
- package/components/Toast/index.umd.js +1 -1
- package/components/Toast/toast.js +1 -1
- package/components/index.umd.js +146 -128
- package/components/index.umd.js.map +1 -1
- package/index.umd.js +347 -254
- package/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/react/badge/index.cjs.js +3 -1
- package/react/badge/index.cjs.js.map +1 -1
- package/react/badge/index.js +3 -1
- package/react/badge/index.js.map +1 -1
- package/react/base/button.cjs.js +1 -1
- package/react/base/button.js +1 -1
- package/react/base/card.cjs.js +1 -1
- package/react/base/card.js +1 -1
- package/react/components/Badge/sgds-badge.cjs.js +23 -4
- package/react/components/Badge/sgds-badge.cjs.js.map +1 -1
- package/react/components/Badge/sgds-badge.js +23 -4
- package/react/components/Badge/sgds-badge.js.map +1 -1
- package/react/components/Card/sgds-card.cjs.js +5 -3
- package/react/components/Card/sgds-card.cjs.js.map +1 -1
- package/react/components/Card/sgds-card.js +5 -3
- package/react/components/Card/sgds-card.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.cjs.js +3 -2
- package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.js +3 -2
- package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/react/components/Mainnav/sgds-mainnav-item.cjs.js +2 -2
- package/react/components/Mainnav/sgds-mainnav-item.cjs.js.map +1 -1
- package/react/components/Mainnav/sgds-mainnav-item.js +2 -2
- package/react/components/Mainnav/sgds-mainnav-item.js.map +1 -1
- package/react/components/Modal/modal.cjs.js +1 -1
- package/react/components/Modal/modal.js +1 -1
- package/react/components/Modal/sgds-modal.cjs.js +17 -14
- package/react/components/Modal/sgds-modal.cjs.js.map +1 -1
- package/react/components/Modal/sgds-modal.js +17 -14
- package/react/components/Modal/sgds-modal.js.map +1 -1
- package/react/components/Subnav/sgds-subnav-item.cjs.js +2 -2
- package/react/components/Subnav/sgds-subnav-item.cjs.js.map +1 -1
- package/react/components/Subnav/sgds-subnav-item.js +2 -2
- package/react/components/Subnav/sgds-subnav-item.js.map +1 -1
- package/react/components/Subnav/sgds-subnav.cjs.js +74 -83
- package/react/components/Subnav/sgds-subnav.cjs.js.map +1 -1
- package/react/components/Subnav/sgds-subnav.js +76 -85
- package/react/components/Subnav/sgds-subnav.js.map +1 -1
- package/react/components/Subnav/subnav-item.cjs.js +1 -1
- package/react/components/Subnav/subnav-item.js +1 -1
- package/react/components/Subnav/subnav.cjs.js +1 -1
- package/react/components/Subnav/subnav.js +1 -1
- package/react/components/Table/sgds-table-cell.cjs.js +28 -0
- package/react/components/Table/sgds-table-cell.cjs.js.map +1 -0
- package/react/components/Table/sgds-table-cell.js +23 -0
- package/react/components/Table/sgds-table-cell.js.map +1 -0
- package/react/components/Table/sgds-table-head.cjs.js +49 -0
- package/react/components/Table/sgds-table-head.cjs.js.map +1 -0
- package/react/components/Table/sgds-table-head.js +44 -0
- package/react/components/Table/sgds-table-head.js.map +1 -0
- package/react/components/Table/sgds-table-row.cjs.js +28 -0
- package/react/components/Table/sgds-table-row.cjs.js.map +1 -0
- package/react/components/Table/sgds-table-row.js +23 -0
- package/react/components/Table/sgds-table-row.js.map +1 -0
- package/react/components/Table/sgds-table.cjs.js +17 -12
- package/react/components/Table/sgds-table.cjs.js.map +1 -1
- package/react/components/Table/sgds-table.js +18 -13
- package/react/components/Table/sgds-table.js.map +1 -1
- package/react/components/Table/table-cell.cjs.js +11 -0
- package/react/components/Table/table-cell.cjs.js.map +1 -0
- package/react/components/Table/table-cell.js +7 -0
- package/react/components/Table/table-cell.js.map +1 -0
- package/react/components/Table/table-head.cjs.js +11 -0
- package/react/components/Table/table-head.cjs.js.map +1 -0
- package/react/components/Table/table-head.js +7 -0
- package/react/components/Table/table-head.js.map +1 -0
- package/react/components/Table/table-row.cjs.js +11 -0
- package/react/components/Table/table-row.cjs.js.map +1 -0
- package/react/components/Table/table-row.js +7 -0
- package/react/components/Table/table-row.js.map +1 -0
- package/react/components/Table/table.cjs.js +1 -1
- package/react/components/Table/table.js +1 -1
- package/react/components/Toast/toast.cjs.js +1 -1
- package/react/components/Toast/toast.js +1 -1
- package/react/index.cjs.js +26 -20
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +4 -1
- package/react/index.js +4 -1
- package/react/index.js.map +1 -1
- package/react/table-cell/index.cjs.js +40 -0
- package/react/table-cell/index.cjs.js.map +1 -0
- package/react/table-cell/index.d.ts +2 -0
- package/react/table-cell/index.js +16 -0
- package/react/table-cell/index.js.map +1 -0
- package/react/table-head/index.cjs.js +40 -0
- package/react/table-head/index.cjs.js.map +1 -0
- package/react/table-head/index.d.ts +2 -0
- package/react/table-head/index.js +16 -0
- package/react/table-head/index.js.map +1 -0
- package/react/table-row/index.cjs.js +40 -0
- package/react/table-row/index.cjs.js.map +1 -0
- package/react/table-row/index.d.ts +2 -0
- package/react/table-row/index.js +16 -0
- package/react/table-row/index.js.map +1 -0
- package/react/utils/breakpoints.cjs.js.map +1 -1
- package/react/utils/breakpoints.js.map +1 -1
- package/react/utils/scroll.cjs.js +2 -2
- package/react/utils/scroll.cjs.js.map +1 -1
- package/react/utils/scroll.js +2 -2
- package/react/utils/scroll.js.map +1 -1
- package/themes/root.css +6 -0
- package/utils/breakpoints.d.ts +1 -0
- package/utils/breakpoints.js.map +1 -1
- package/utils/scroll.js +2 -2
- package/utils/scroll.js.map +1 -1
package/index.umd.js
CHANGED
|
@@ -4382,7 +4382,7 @@
|
|
|
4382
4382
|
});
|
|
4383
4383
|
}
|
|
4384
4384
|
|
|
4385
|
-
var css_248z$
|
|
4385
|
+
var css_248z$1h = css`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--sgds-body-color-default);font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-body);margin:0;*,:after,:before{box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}a[target=_blank]{align-items:center;display:flex;gap:var(--sgds-gap-2-xs)}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;padding:0 .45em}::slotted(svg){vertical-align:middle}}`;
|
|
4386
4386
|
|
|
4387
4387
|
/**
|
|
4388
4388
|
* @cssprop --sgds-{stateColor} - State colors in hexadecimal value
|
|
@@ -4439,13 +4439,13 @@
|
|
|
4439
4439
|
});
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
SgdsElement.styles = [css_248z$
|
|
4442
|
+
SgdsElement.styles = [css_248z$1h];
|
|
4443
4443
|
/** @internal */
|
|
4444
4444
|
SgdsElement.dependencies = {};
|
|
4445
4445
|
|
|
4446
|
-
var css_248z$
|
|
4446
|
+
var css_248z$1g = css`:host([variant=border]) .accordion{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}`;
|
|
4447
4447
|
|
|
4448
|
-
const VALID_KEYS = ["Enter", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight"];
|
|
4448
|
+
const VALID_KEYS$1 = ["Enter", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight"];
|
|
4449
4449
|
/**
|
|
4450
4450
|
* @summary A dropdown mechanism that allow users to either show or hide related content. `SgdsAccordion` is a wrapper to manage the behaviour for multiple `SgdsAccordionItems`
|
|
4451
4451
|
* @slot default - slot for accordion-item
|
|
@@ -4503,7 +4503,7 @@
|
|
|
4503
4503
|
});
|
|
4504
4504
|
}
|
|
4505
4505
|
async _onKeyboardToggle(event) {
|
|
4506
|
-
if (!VALID_KEYS.includes(event.key))
|
|
4506
|
+
if (!VALID_KEYS$1.includes(event.key))
|
|
4507
4507
|
return;
|
|
4508
4508
|
return this._onToggle(event);
|
|
4509
4509
|
}
|
|
@@ -4515,7 +4515,7 @@
|
|
|
4515
4515
|
`;
|
|
4516
4516
|
}
|
|
4517
4517
|
}
|
|
4518
|
-
SgdsAccordion.styles = [...SgdsElement.styles, css_248z$
|
|
4518
|
+
SgdsAccordion.styles = [...SgdsElement.styles, css_248z$1g];
|
|
4519
4519
|
__decorate([
|
|
4520
4520
|
property({ type: Boolean, reflect: true })
|
|
4521
4521
|
], SgdsAccordion.prototype, "allowMultiple", void 0);
|
|
@@ -4790,7 +4790,7 @@
|
|
|
4790
4790
|
};
|
|
4791
4791
|
}
|
|
4792
4792
|
|
|
4793
|
-
var css_248z$
|
|
4793
|
+
var css_248z$1f = css`:host([variant=border][last-of-type]) .accordion-item{border-bottom:none}:host([density=compact]) .accordion-btn{font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-min);padding:var(--sgds-padding-sm) var(--sgds-padding-sm)}:host([density=compact]) .content{padding:var(--sgds-padding-xs) var(--sgds-padding-sm) var(--sgds-padding-sm)}.accordion-item{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}.accordion-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;color:var(--sgds-color-default);display:flex;font-size:var(--sgds-font-size-3);gap:var(--sgds-gap-sm);line-height:var(--sgds-line-height-heading);overflow-anchor:none;padding:var(--sgds-padding-lg) var(--sgds-padding-lg);text-align:left;width:100%}@media (prefers-reduced-motion:reduce){.accordion-btn,.accordion-btn:after{transition:none}}.accordion-btn:not(.collapsed){font-weight:var(--sgds-font-weight-semibold)}.accordion-btn:not(.disabled):hover,.accordion-btn:not(:disabled):hover{background-color:var(--sgds-bg-translucent-subtle);z-index:2}.accordion-btn:not(.disabled):focus,.accordion-btn:not(.disabled):focus-visible,.accordion-btn:not(:disabled):focus,.accordion-btn:not(:disabled):focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0;z-index:3}.accordion-btn.disabled,.accordion-btn:disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}slot[name=caret] sgds-icon,slot[name=caret]::slotted(*){color:var(--sgds-color-subtle);margin-left:auto;transition:transform .2s ease-in-out}.accordion-btn:not(.collapsed) slot[name=caret] sgds-icon,.accordion-btn:not(.collapsed) slot[name=caret]::slotted(*){transform:rotate(-180deg)}.accordion-body{overflow:hidden;padding:0}.content{display:block;padding:var(--sgds-padding-xs) var(--sgds-padding-lg) var(--sgds-padding-lg)}.hidden{display:none}`;
|
|
4794
4794
|
|
|
4795
4795
|
/**
|
|
4796
4796
|
*
|
|
@@ -4925,7 +4925,7 @@
|
|
|
4925
4925
|
`;
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
|
-
SgdsAccordionItem.styles = [...SgdsElement.styles, css_248z$
|
|
4928
|
+
SgdsAccordionItem.styles = [...SgdsElement.styles, css_248z$1f];
|
|
4929
4929
|
__decorate([
|
|
4930
4930
|
query(".accordion-item")
|
|
4931
4931
|
], SgdsAccordionItem.prototype, "accordion", void 0);
|
|
@@ -5112,7 +5112,7 @@
|
|
|
5112
5112
|
*/
|
|
5113
5113
|
const ifDefined = (value) => value ?? nothing;
|
|
5114
5114
|
|
|
5115
|
-
var css_248z$
|
|
5115
|
+
var css_248z$1e = css`:host{--sgds-close-btn-border-radius:var(--sgds-border-radius-sm);display:inline-flex}.btn-close{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-close-btn-border-radius);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.btn-close-light{color:var(--sgds-color-fixed-light)}.btn-close-dark{color:var(--sgds-color-fixed-dark)}.btn-close:hover{background-color:var(--sgds-bg-translucent)}.btn-close:focus,.btn-close:focus-visible{background-color:var(--sgds-bg-translucent);box-shadow:var(--sgds-box-shadow-focus);outline:0}.btn-close-sm{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.btn-close.btn-close-sm{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}`;
|
|
5116
5116
|
|
|
5117
5117
|
/**
|
|
5118
5118
|
* @summary Close button for closing actions. Used in Modal, Drawer, Alert and Toast.
|
|
@@ -5156,7 +5156,7 @@
|
|
|
5156
5156
|
`;
|
|
5157
5157
|
}
|
|
5158
5158
|
}
|
|
5159
|
-
SgdsCloseButton.styles = [...SgdsElement.styles, css_248z$
|
|
5159
|
+
SgdsCloseButton.styles = [...SgdsElement.styles, css_248z$1e];
|
|
5160
5160
|
__decorate([
|
|
5161
5161
|
property({ type: String })
|
|
5162
5162
|
], SgdsCloseButton.prototype, "ariaLabel", void 0);
|
|
@@ -7615,7 +7615,7 @@
|
|
|
7615
7615
|
"zoom-out": ZoomOut
|
|
7616
7616
|
};
|
|
7617
7617
|
|
|
7618
|
-
var css_248z$
|
|
7618
|
+
var css_248z$1d = css`:host{color:inherit;display:inline-flex}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;
|
|
7619
7619
|
|
|
7620
7620
|
/**
|
|
7621
7621
|
* @summary Icons offer a form of visual shorthand that we are all familiar with. They can label, inform and aid navigation quickly and effectively in minimal space. Icons must first and foremost communicate meaning. By default, the icon component renders icons from `SgdsIcon` library set
|
|
@@ -7641,7 +7641,7 @@
|
|
|
7641
7641
|
return icon ? icon : nothing;
|
|
7642
7642
|
}
|
|
7643
7643
|
}
|
|
7644
|
-
SgdsIcon.styles = [...SgdsElement.styles, css_248z$
|
|
7644
|
+
SgdsIcon.styles = [...SgdsElement.styles, css_248z$1d];
|
|
7645
7645
|
__decorate([
|
|
7646
7646
|
property({ type: String, reflect: true })
|
|
7647
7647
|
], SgdsIcon.prototype, "name", void 0);
|
|
@@ -7649,7 +7649,7 @@
|
|
|
7649
7649
|
property({ type: String, reflect: true })
|
|
7650
7650
|
], SgdsIcon.prototype, "size", void 0);
|
|
7651
7651
|
|
|
7652
|
-
var css_248z$
|
|
7652
|
+
var css_248z$1c = css`:host([variant=success]) .alert{background-color:var(--sgds-success-surface-default)}:host([variant=warning]) .alert{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-warning-surface-default)}:host([variant=danger]) .alert{background-color:var(--sgds-danger-surface-default)}:host([variant=neutral]) .alert{background-color:var(--sgds-neutral-surface-default)}:host([variant=success][outlined]) .alert{background-color:var(--sgds-success-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-success-border-color-default)}:host([variant=warning][outlined]) .alert{background-color:var(--sgds-warning-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-warning-border-color-default)}:host([variant=danger][outlined]) .alert{background-color:var(--sgds-danger-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-danger-border-color-default)}:host([variant=neutral][outlined]) .alert{background-color:var(--sgds-neutral-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-neutral-border-color-default)}.alert{--sgds-alert-color:var(--sgds-color-fixed-light);background-color:var(--sgds-primary-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);color:var(--sgds-alert-color);display:flex;flex-direction:row;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-lg)}.alert.outlined{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-primary-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-primary-border-color-default)}.alert-content{align-items:flex-start;display:flex;flex:1 0 0;flex-direction:column;gap:var(--sgds-gap-2-xs);padding-right:var(--sgds-padding-2-xl)}.alert-title{font-weight:var(--sgds-font-weight-semibold)}`;
|
|
7653
7653
|
|
|
7654
7654
|
/**
|
|
7655
7655
|
* @summary Alerts provide short, timely, and relevant information for your users. It can be a simple text message or customised HTML content with paragraphs, headings and links.
|
|
@@ -7711,7 +7711,7 @@
|
|
|
7711
7711
|
: nothing;
|
|
7712
7712
|
}
|
|
7713
7713
|
}
|
|
7714
|
-
SgdsAlert.styles = [...SgdsElement.styles, css_248z$
|
|
7714
|
+
SgdsAlert.styles = [...SgdsElement.styles, css_248z$1c];
|
|
7715
7715
|
/**@internal */
|
|
7716
7716
|
SgdsAlert.dependencies = {
|
|
7717
7717
|
"sgds-close-button": SgdsCloseButton,
|
|
@@ -7736,9 +7736,9 @@
|
|
|
7736
7736
|
watch("show")
|
|
7737
7737
|
], SgdsAlert.prototype, "_handleShowChange", null);
|
|
7738
7738
|
|
|
7739
|
-
var css_248z$
|
|
7739
|
+
var css_248z$1b = css`:host{cursor:pointer;display:inline-block}.alert-link,.alert-link:hover{color:var(--sgds-alert-color);text-decoration-line:underline}.alert-link:focus,.alert-link:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
7740
7740
|
|
|
7741
|
-
var css_248z$
|
|
7741
|
+
var css_248z$1a = css`::slotted(a[target=_blank]:after),a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;margin:0 .125rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-size:73%;-webkit-mask-size:73%;padding:0 .45em}`;
|
|
7742
7742
|
|
|
7743
7743
|
/**
|
|
7744
7744
|
* @summary Alert link are used within the alert's message that is passed into the default slot of `<sgds-alert>`
|
|
@@ -7752,7 +7752,7 @@
|
|
|
7752
7752
|
`;
|
|
7753
7753
|
}
|
|
7754
7754
|
}
|
|
7755
|
-
SgdsAlertLink.styles = [...SgdsElement.styles, css_248z$
|
|
7755
|
+
SgdsAlertLink.styles = [...SgdsElement.styles, css_248z$1a, css_248z$1b];
|
|
7756
7756
|
__decorate([
|
|
7757
7757
|
property({ type: String, reflect: true })
|
|
7758
7758
|
], SgdsAlertLink.prototype, "href", void 0);
|
|
@@ -7763,7 +7763,7 @@
|
|
|
7763
7763
|
register("sgds-alert", SgdsAlert);
|
|
7764
7764
|
register("sgds-alert-link", SgdsAlertLink);
|
|
7765
7765
|
|
|
7766
|
-
var css_248z$
|
|
7766
|
+
var css_248z$19 = css`:host{display:inline-flex}:host([variant=success]) .badge{background-color:var(--sgds-success-surface-default)}:host([variant=danger]) .badge{background-color:var(--sgds-danger-surface-default)}:host([variant=warning]) .badge{background-color:var(--sgds-warning-surface-default);color:var(--sgds-color-fixed-dark)}:host([variant=neutral]) .badge{background-color:var(--sgds-neutral-surface-default)}:host([variant=success][outlined]) .badge{background-color:var(--sgds-success-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-success-border-color-default)}:host([variant=danger][outlined]) .badge{background-color:var(--sgds-danger-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-danger-border-color-default)}:host([variant=warning][outlined]) .badge{background-color:var(--sgds-warning-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-warning-border-color-default)}:host([variant=neutral][outlined]) .badge{background-color:var(--sgds-neutral-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-neutral-border-color-default)}.badge{align-items:center;background-color:var(--sgds-primary-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-sm);color:var(--sgds-color-fixed-light);display:inline-flex;font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-24);justify-content:center;min-width:var(--sgds-dimension-24);padding:var(--sgds-padding-none) var(--sgds-padding-2-xs)}.badge.outlined{background-color:var(--sgds-primary-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-primary-border-color-default);color:var(--sgds-color-fixed-dark)}.badge-label{line-height:var(--sgds-line-height-min);padding:var(--sgds-padding-none) var(--sgds-padding-2-xs)}.badge-dismissible{padding-right:0}.badge-dimissible sgds-close-button{--sgds-close-btn-border-radius:var(--sgds-border-radius-sm)}slot::slotted(*){font-size:14px;font-weight:400}`;
|
|
7767
7767
|
|
|
7768
7768
|
/**
|
|
7769
7769
|
* @summary Badges can be used to highlight important bits of information such as labels, notifications & status.
|
|
@@ -7772,7 +7772,9 @@
|
|
|
7772
7772
|
* @slot icon - The slot for icon to the left of the badge text
|
|
7773
7773
|
*
|
|
7774
7774
|
* @event sgds-show - Emitted when the badge appears.
|
|
7775
|
-
* @event sgds-hide - Emitted
|
|
7775
|
+
* @event sgds-hide - Emitted when the badge is starting to close but has not closed.
|
|
7776
|
+
* @event sgds-after-show - Emitted after the badge has appeared
|
|
7777
|
+
* @event sgds-after-hide - Emitted after the badge has closed
|
|
7776
7778
|
*/
|
|
7777
7779
|
class SgdsBadge extends SgdsElement {
|
|
7778
7780
|
constructor() {
|
|
@@ -7792,7 +7794,24 @@
|
|
|
7792
7794
|
}
|
|
7793
7795
|
/**@internal */
|
|
7794
7796
|
_handleShowChange() {
|
|
7795
|
-
|
|
7797
|
+
if (this.show) {
|
|
7798
|
+
const sgdsShow = this.emit("sgds-show", { cancelable: true });
|
|
7799
|
+
if (sgdsShow.defaultPrevented) {
|
|
7800
|
+
this.show = false;
|
|
7801
|
+
return;
|
|
7802
|
+
}
|
|
7803
|
+
// animations if any go here
|
|
7804
|
+
this.emit("sgds-after-show");
|
|
7805
|
+
}
|
|
7806
|
+
else {
|
|
7807
|
+
const sgdsHide = this.emit("sgds-hide", { cancelable: true });
|
|
7808
|
+
if (sgdsHide.defaultPrevented) {
|
|
7809
|
+
this.show = true;
|
|
7810
|
+
return;
|
|
7811
|
+
}
|
|
7812
|
+
// animations if any go here
|
|
7813
|
+
this.emit("sgds-after-hide");
|
|
7814
|
+
}
|
|
7796
7815
|
}
|
|
7797
7816
|
render() {
|
|
7798
7817
|
return (this.dismissible && this.show) || !this.dismissible
|
|
@@ -7825,7 +7844,7 @@
|
|
|
7825
7844
|
: nothing;
|
|
7826
7845
|
}
|
|
7827
7846
|
}
|
|
7828
|
-
SgdsBadge.styles = [...SgdsElement.styles, css_248z$
|
|
7847
|
+
SgdsBadge.styles = [...SgdsElement.styles, css_248z$19];
|
|
7829
7848
|
/**@internal */
|
|
7830
7849
|
SgdsBadge.dependencies = {
|
|
7831
7850
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -7848,7 +7867,7 @@
|
|
|
7848
7867
|
|
|
7849
7868
|
register("sgds-badge", SgdsBadge);
|
|
7850
7869
|
|
|
7851
|
-
var css_248z$
|
|
7870
|
+
var css_248z$18 = css`:host([size=sm]) .overflow-btn{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.overflow-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border-radius:var(--sgds-border-radius-sm);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.overflow-btn:hover{background-color:var(--sgds-bg-translucent-subtle)}.overflow-btn:focus,.overflow-btn:focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
7852
7871
|
|
|
7853
7872
|
/**
|
|
7854
7873
|
* @license
|
|
@@ -11831,9 +11850,9 @@
|
|
|
11831
11850
|
state()
|
|
11832
11851
|
], DropdownListElement.prototype, "prevDropdownItemNo", void 0);
|
|
11833
11852
|
|
|
11834
|
-
var css_248z$
|
|
11853
|
+
var css_248z$17 = css`.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-280);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:1000}.dropdown-menu.show{display:block}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:576px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:992px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1200px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1400px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`;
|
|
11835
11854
|
|
|
11836
|
-
var css_248z$
|
|
11855
|
+
var css_248z$16 = css`:host{position:relative}.dropdown{display:flex;height:inherit}`;
|
|
11837
11856
|
|
|
11838
11857
|
/**
|
|
11839
11858
|
* @summary `SgdsDropdown` toggles contextual overlays for displaying lists of links.
|
|
@@ -11912,7 +11931,7 @@
|
|
|
11912
11931
|
`;
|
|
11913
11932
|
}
|
|
11914
11933
|
}
|
|
11915
|
-
SgdsDropdown.styles = [...DropdownListElement.styles, css_248z$
|
|
11934
|
+
SgdsDropdown.styles = [...DropdownListElement.styles, css_248z$16, css_248z$17];
|
|
11916
11935
|
__decorate([
|
|
11917
11936
|
property({ type: Boolean, reflect: true, state: false })
|
|
11918
11937
|
], SgdsDropdown.prototype, "noFlip", void 0);
|
|
@@ -11929,7 +11948,7 @@
|
|
|
11929
11948
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
11930
11949
|
], SgdsDropdown.prototype, "_handleDisabled", null);
|
|
11931
11950
|
|
|
11932
|
-
var css_248z$
|
|
11951
|
+
var css_248z$15 = css`.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit;white-space:nowrap}.dropdown-item:not(.nav-link):hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:not(.nav-link):focus,.dropdown-item:not(.nav-link):focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:inset var(--sgds-form-box-shadow-focus);outline:0}.dropdown-item:not(.nav-link).active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-50);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}.nav-link{gap:var(--sgds-gap-xs);padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}.nav-link:hover{color:var(--sgds-primary-color-default)}.nav-link:focus,.nav-link:focus-visible{outline:0}.nav-link:focus-visible{box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-primary-color-default)}.nav-link.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default)}`;
|
|
11933
11952
|
|
|
11934
11953
|
/**
|
|
11935
11954
|
* @summary `SgdsDropdownItem` are navigation links built with `HTMLAnchorElement`. It should be used in the default slot of `SgdsDropdown`
|
|
@@ -11970,7 +11989,7 @@
|
|
|
11970
11989
|
`;
|
|
11971
11990
|
}
|
|
11972
11991
|
}
|
|
11973
|
-
SgdsDropdownItem.styles = [css_248z$
|
|
11992
|
+
SgdsDropdownItem.styles = [css_248z$16, css_248z$15];
|
|
11974
11993
|
SgdsDropdownItem.dependencies = {
|
|
11975
11994
|
"sgds-icon": SgdsIcon
|
|
11976
11995
|
};
|
|
@@ -12005,7 +12024,7 @@
|
|
|
12005
12024
|
`;
|
|
12006
12025
|
}
|
|
12007
12026
|
}
|
|
12008
|
-
SgdsOverflowMenu.styles = [...SgdsElement.styles, css_248z$
|
|
12027
|
+
SgdsOverflowMenu.styles = [...SgdsElement.styles, css_248z$18];
|
|
12009
12028
|
/** @internal */
|
|
12010
12029
|
SgdsOverflowMenu.dependencies = {
|
|
12011
12030
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -12016,7 +12035,7 @@
|
|
|
12016
12035
|
property({ type: String, reflect: true })
|
|
12017
12036
|
], SgdsOverflowMenu.prototype, "size", void 0);
|
|
12018
12037
|
|
|
12019
|
-
var css_248z$
|
|
12038
|
+
var css_248z$14 = css`.breadcrumb{display:flex;gap:var(--sgds-gap-xs)}`;
|
|
12020
12039
|
|
|
12021
12040
|
/**
|
|
12022
12041
|
* @summary Breadcrumbs help users to navigate and understand where they are on the current website or service.
|
|
@@ -12087,7 +12106,7 @@
|
|
|
12087
12106
|
`;
|
|
12088
12107
|
}
|
|
12089
12108
|
}
|
|
12090
|
-
SgdsBreadcrumb.styles = [...SgdsElement.styles, css_248z$
|
|
12109
|
+
SgdsBreadcrumb.styles = [...SgdsElement.styles, css_248z$14];
|
|
12091
12110
|
SgdsBreadcrumb.dependencies = {
|
|
12092
12111
|
"sgds-overflow-menu": SgdsOverflowMenu
|
|
12093
12112
|
};
|
|
@@ -12098,7 +12117,7 @@
|
|
|
12098
12117
|
query("slot")
|
|
12099
12118
|
], SgdsBreadcrumb.prototype, "defaultSlot", void 0);
|
|
12100
12119
|
|
|
12101
|
-
var css_248z$
|
|
12120
|
+
var css_248z$13 = css`.nav-link::slotted(a){align-items:center;color:var(--sgds-link-color-default);cursor:pointer;display:inline-flex;flex-shrink:0;gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-24);justify-content:center;text-decoration:none!important}.nav-link::slotted(a:focus),.nav-link::slotted(a:focus-visible),.nav-link::slotted(a:hover),.nav-link::slotted(a[active]){color:var( --sgds-link-color-emphasis)}.nav-link::slotted(a:focus),.nav-link::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus);outline:0}.nav-link::slotted(a[disabled]){cursor:not-allowed;opacity:var(--sgds-opacity-50)}:host([variant=danger]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-danger-color-default);color:var(--sgds-link-color-default,--sgds-danger-color-default)}:host([variant=danger]) .nav-link::slotted(a:focus),:host([variant=danger]) .nav-link::slotted(a:focus-visible),:host([variant=danger]) .nav-link::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-danger-color-emphasis);color:var(--sgds-link-color-emphasis,--sgds-danger-color-emphasis)}:host([variant=light]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);color:var(--sgds-link-color-default,--sgds-color-fixed-light)}:host([variant=light]) .nav-link::slotted(a:focus),:host([variant=light]) .nav-link::slotted(a:focus-visible),:host([variant=light]) .nav-link::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);color:var(--sgds-link-color-emphasis,--sgds-color-fixed-light)}:host([variant=dark]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-dark);color:var(--sgds-link-color-default,--sgds-color-fixed-dark)}:host([variant=dark]) .nav-link::slotted(a:focus),:host([variant=dark]) .nav-link::slotted(a:focus-visible),:host([variant=dark]) .nav-link::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-dark);color:var(--sgds-link-color-emphasis,--sgds-color-fixed-dark)}:host([size=lg]) .nav-link::slotted(a){font-size:var(--sgds-font-size-3)!important;height:var(--sgds-dimension-32)}:host([size=sm]) .nav-link::slotted(a){font-size:var(--sgds-font-size-1)!important;height:var(--sgds-dimension-20)}`;
|
|
12102
12121
|
|
|
12103
12122
|
/**
|
|
12104
12123
|
* @summary Link allows users to click and navigate their way from page to page
|
|
@@ -12130,7 +12149,7 @@
|
|
|
12130
12149
|
return html$1 `<slot class="nav-link" @slotchange=${this._handleSlotChange}></slot>`;
|
|
12131
12150
|
}
|
|
12132
12151
|
}
|
|
12133
|
-
SgdsLink.styles = [...SgdsElement.styles, css_248z$
|
|
12152
|
+
SgdsLink.styles = [...SgdsElement.styles, css_248z$13];
|
|
12134
12153
|
__decorate([
|
|
12135
12154
|
property({ type: String, reflect: true })
|
|
12136
12155
|
], SgdsLink.prototype, "size", void 0);
|
|
@@ -12138,7 +12157,7 @@
|
|
|
12138
12157
|
property({ type: String, reflect: true })
|
|
12139
12158
|
], SgdsLink.prototype, "variant", void 0);
|
|
12140
12159
|
|
|
12141
|
-
var css_248z
|
|
12160
|
+
var css_248z$12 = css`:host{align-items:center;display:flex;gap:var(--sgds-gap-xs)}:host([active]) .nav-link::slotted(*){--sgds-link-color-default:var(--sgds-color-default);color:var(--sgds-link-color-default,--sgds-color-default);pointer-events:none}:host([active]) .nav-link::slotted(:focus),:host([active]) .nav-link::slotted(:focus-visible),:host([active]) .nav-link::slotted(:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,--sgds-color-default)}.separator svg{display:block}:host(:last-of-type) .separator{display:none}`;
|
|
12142
12161
|
|
|
12143
12162
|
/**
|
|
12144
12163
|
* @summary Breadcrumb Item are navigational links used in Breadcrumb component
|
|
@@ -12167,7 +12186,7 @@
|
|
|
12167
12186
|
`;
|
|
12168
12187
|
}
|
|
12169
12188
|
}
|
|
12170
|
-
SgdsBreadcrumbItem.styles = [...SgdsLink.styles, css_248z
|
|
12189
|
+
SgdsBreadcrumbItem.styles = [...SgdsLink.styles, css_248z$12];
|
|
12171
12190
|
__decorate([
|
|
12172
12191
|
property({ type: Boolean, reflect: true })
|
|
12173
12192
|
], SgdsBreadcrumbItem.prototype, "active", void 0);
|
|
@@ -12175,7 +12194,7 @@
|
|
|
12175
12194
|
register("sgds-breadcrumb", SgdsBreadcrumb);
|
|
12176
12195
|
register("sgds-breadcrumb-item", SgdsBreadcrumbItem);
|
|
12177
12196
|
|
|
12178
|
-
var css_248z$
|
|
12197
|
+
var css_248z$11 = css`:host{--btn-font-weight:var(--sgds-font-weight-regular);--btn-bg:var(--sgds-primary-surface-default);--btn-hover-bg:var(--sgds-primary-surface-emphasis);--btn-border-radius:var(--sgds-border-radius-md)}:host([variant=primary]){--btn-bg:var(--sgds-primary-surface-default);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default);--btn-border-width:var(--sgds-border-width-1);--btn-border-color:var(--sgds-primary-border-color-default)}:host([variant=ghost]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default)}:host([variant=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=ghost]) .btn,:host([variant=outline]) .btn,:host([variant=primary]) .btn{color:var(--btn-color)}:host([variant=outline]) .btn{border:var(--btn-border-width) solid var(--btn-border-color)}:host([size=lg]) .btn{font-size:var(--sgds-font-size-3);height:var(--sgds-dimension-56);min-width:var(--sgds-dimension-112);padding:0 var(--sgds-padding-xl)}:host([size=sm]) .btn{font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-40);line-height:var(--sgds-line-height-min);min-width:var(--sgds-dimension-80);padding:0 var(--sgds-padding-md)}.btn{align-items:center;background-color:var(--btn-bg);border:1px solid var(--sgds-border-color-transparent);border-radius:var(--btn-border-radius);color:var(--sgds-color-fixed-light);cursor:pointer;display:inline-flex;font-size:var(--sgds-font-size-2);font-weight:var(--btn-font-weight);gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-48);justify-content:center;line-height:var(--sgds-line-height-body);min-width:var(--sgds-dimension-96);padding:0 var(--sgds-padding-lg);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle;white-space:nowrap;width:inherit}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn.active,.btn:hover{background-color:var(--btn-hover-bg)}.btn:focus,.btn:focus-visible{background-color:var(--btn-hover-bg);border-color:transparent;box-shadow:var(--sgds-box-shadow-focus);outline:0}.btn.disabled,.btn:disabled{color:var(--btn-color);cursor:not-allowed;opacity:var(--sgds-opacity-50)}.btn slot::slotted(*){color:var(--btn-color)}`;
|
|
12179
12198
|
|
|
12180
12199
|
class ButtonElement extends SgdsElement {
|
|
12181
12200
|
constructor() {
|
|
@@ -12217,7 +12236,7 @@
|
|
|
12217
12236
|
}
|
|
12218
12237
|
}
|
|
12219
12238
|
}
|
|
12220
|
-
ButtonElement.styles = [...SgdsElement.styles, css_248z$
|
|
12239
|
+
ButtonElement.styles = [...SgdsElement.styles, css_248z$11];
|
|
12221
12240
|
__decorate([
|
|
12222
12241
|
query(".btn")
|
|
12223
12242
|
], ButtonElement.prototype, "button", void 0);
|
|
@@ -12303,7 +12322,7 @@
|
|
|
12303
12322
|
}
|
|
12304
12323
|
}
|
|
12305
12324
|
|
|
12306
|
-
var css_248z$
|
|
12325
|
+
var css_248z$10 = css`:host{display:inline-block}:host([fullWidth]),:host([fullWidth]) .btn{width:100%}:host([fullWidth]) .btn.has-left-icon{justify-content:flex-start}:host([fullWidth]) .btn.has-right-icon{justify-content:space-between}:host([fullWidth]) .btn.has-left-icon.has-right-icon{justify-content:center}.btn span{padding:0 var(--sgds-padding-2-xs)}`;
|
|
12307
12326
|
|
|
12308
12327
|
/**
|
|
12309
12328
|
* @summary Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
|
|
@@ -12404,7 +12423,7 @@
|
|
|
12404
12423
|
`;
|
|
12405
12424
|
}
|
|
12406
12425
|
}
|
|
12407
|
-
SgdsButton.styles = [...ButtonElement.styles, css_248z$
|
|
12426
|
+
SgdsButton.styles = [...ButtonElement.styles, css_248z$1a, css_248z$10];
|
|
12408
12427
|
__decorate([
|
|
12409
12428
|
state()
|
|
12410
12429
|
], SgdsButton.prototype, "_hasLeftIcon", void 0);
|
|
@@ -12435,17 +12454,17 @@
|
|
|
12435
12454
|
|
|
12436
12455
|
register("sgds-button", SgdsButton);
|
|
12437
12456
|
|
|
12438
|
-
var css_248z
|
|
12457
|
+
var css_248z$$ = css`:host([orientation=horizontal]) .card{flex-direction:row}:host([orientation=horizontal]) .card-body{flex:1}:host(:not([hideBorder])) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([tinted]) .card{background-color:var(--sgds-bg-translucent-subtle);border:none}:host([orientation=horizontal]) .card-image{width:40%}:host([imagePosition=after]) .card-image{order:1}:host([orientation=vertical][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-left-radius:var(--sgds-border-radius-none);border-top-right-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-bottom-left-radius:var(--sgds-border-radius-none);border-top-left-radius:var(--sgds-border-radius-none)}:host([orientation=vertical][imageAdjustment="padding around"]) .card-image{padding:var(--sgds-padding-xl) var(--sgds-padding-xl) 0}:host([orientation=vertical][imageAdjustment="padding around"]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1))}:host([orientation=vertical]:not([imageAdjustment="aspect ratio"])) slot[name=image]::slotted(img){height:auto}:host([orientation=vertical][imageAdjustment="aspect ratio"]) slot[name=image]::slotted(img){object-fit:cover}.card{word-wrap:break-word;background-clip:border-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:none;display:flex;flex-direction:column;height:100%;min-width:0;position:relative;transition:box-shadow .3s ease}a.card{color:initial;text-decoration:none}@media (prefers-reduced-motion:reduce){.card{transition:none}}.card.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}a.card:focus{outline:0}a.card:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}.card-image{flex:1}.card-body{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-lg);padding:var(--sgds-padding-xl)}.card-body,.card-title{color:var(--sgds-body-color-default)}.card-title{--sgds-font-size-5:var(--sgds-font-size-4);--sgds-font-size-6:var(--sgds-font-size-4);--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-font-weight-bold:var(--sgds-font-weight-semibold);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-semibold)}.card-subtitle,.card-text,.card-title{margin-bottom:var(--sgds-margin-none)}slot[name=title]::slotted(a){--sgds-font-size-2:var(--sgds-font-size-4);--sgds-font-weight-regular:var(--sgds-font-weight-semibold);color:var(--sgds-link-color-default);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-semibold);text-decoration:none!important}slot[name=description]::slotted(*){color:var(--sgds-color-subtle)}slot[name=image]::slotted(img){border-top-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));display:block;width:100%}:host([orientation=horizontal]) slot[name=image]::slotted(img){border-bottom-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:var(--sgds-border-radius-none);height:100%;object-fit:cover}slot[name=link]::slotted(*){font-weight:700;margin-top:auto;padding-top:var(--sgds-padding-sm)}slot[name=link]::slotted(a){color:var(--sgds-link-color-default);display:inline-flex;gap:var(--sgds-gap-2-xs);height:auto!important;text-decoration:none!important}slot[name=link]::slotted(a:focus),slot[name=link]::slotted(a:hover),slot[name=title]::slotted(a:focus),slot[name=title]::slotted(a:hover){color:var(--sgds-link-color-emphasis)}slot[name=link]::slotted(a:focus),slot[name=title]::slotted(a:focus){outline:0}slot[name=link]::slotted(a:focus-visible),slot[name=title]::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}`;
|
|
12439
12458
|
|
|
12440
|
-
var css_248z$
|
|
12459
|
+
var css_248z$_ = css`.text-primary{color:var(--sgds-primary-rgb)!important}.text-secondary{color:var(--sgds-secondary-rgb)!important}.text-success{color:var(--sgds-success-rgb)!important}.text-info{color:var(--sgds-info-rgb)!important}.text-warning{color:var(--sgds-warning-rgb)!important}.text-danger{color:var(--sgds-danger-rgb)!important}.text-light{color:var(--sgds-light-rgb)!important}.text-dark{color:var(--sgds-dark-rgb)!important}.text-muted{color:var(--sgds-secondary-color)!important}`;
|
|
12441
12460
|
|
|
12442
|
-
var css_248z$
|
|
12461
|
+
var css_248z$Z = css`.bg-primary{background-color:var(--sgds-primary)!important}.bg-secondary{background-color:var(--sgds-secondary)!important}.bg-success{background-color:var(--sgds-success)!important}.bg-info{background-color:var(--sgds-info)!important}.bg-warning{background-color:var(--sgds-warning)!important}.bg-danger{background-color:var(--sgds-danger)!important}.bg-light{background-color:var(--sgds-light)!important}.bg-dark{background-color:var(--sgds-dark)!important}`;
|
|
12443
12462
|
|
|
12444
|
-
var css_248z$
|
|
12463
|
+
var css_248z$Y = css`.border-primary{border-color:var(--sgds-primary)!important}.border-secondary{border-color:var(--sgds-secondary)!important}.border-success{border-color:var(--sgds-success)!important}.border-info{border-color:var(--sgds-info)!important}.border-warning{border-color:var(--sgds-warning)!important}.border-danger{border-color:var(--sgds-danger)!important}.border-light{border-color:var(--sgds-light)!important}.border-dark{border-color:var(--sgds-dark)!important}`;
|
|
12445
12464
|
|
|
12446
|
-
var css_248z$
|
|
12465
|
+
var css_248z$X = css`.h1,.h2,.h3,.h4,.h5,.h6 ::slotted(h6),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),h1,h2,h3,h4,h5,h6{color:var(--sgds-heading-color);font-weight:700;line-height:1.2;margin-bottom:.5rem;margin-top:0}.h1,::slotted(h1),h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,::slotted(h1),h1{font-size:2.5rem}}.h2,::slotted(h2),h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,::slotted(h2),h2{font-size:2rem}}.h3,::slotted(h3),h3{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h3,::slotted(h3),h3{font-size:1.5rem}}.h4,::slotted(h4),h4{font-size:1.125rem}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{font-size:1rem}.h1,::slotted(h1),h1{line-height:1.2}.h2,::slotted(h2),h2{line-height:1.25}.h3,::slotted(h3),h3{line-height:1.33}.h4,::slotted(h4),h4{line-height:1.78}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{line-height:1.2}`;
|
|
12447
12466
|
|
|
12448
|
-
var css_248z$
|
|
12467
|
+
var css_248z$W = css`p{margin-bottom:1.5rem;margin-top:0}`;
|
|
12449
12468
|
|
|
12450
12469
|
class CardElement extends SgdsElement {
|
|
12451
12470
|
constructor() {
|
|
@@ -12456,7 +12475,7 @@
|
|
|
12456
12475
|
this.tinted = false;
|
|
12457
12476
|
}
|
|
12458
12477
|
}
|
|
12459
|
-
CardElement.styles = [...SgdsElement.styles, css_248z$
|
|
12478
|
+
CardElement.styles = [...SgdsElement.styles, css_248z$_, css_248z$Z, css_248z$Y, css_248z$X, css_248z$W, css_248z$$];
|
|
12460
12479
|
__decorate([
|
|
12461
12480
|
property({ type: Boolean, reflect: true })
|
|
12462
12481
|
], CardElement.prototype, "hideBorder", void 0);
|
|
@@ -12464,7 +12483,7 @@
|
|
|
12464
12483
|
property({ type: Boolean, reflect: true })
|
|
12465
12484
|
], CardElement.prototype, "tinted", void 0);
|
|
12466
12485
|
|
|
12467
|
-
var css_248z$
|
|
12486
|
+
var css_248z$V = css`:host([orientation=horizontal]) .card-icon{padding:var(--sgds-padding-xl) 0 var(--sgds-padding-xl) var(--sgds-padding-xl)}.card-icon{line-height:0;padding:var(--sgds-padding-xl) var(--sgds-padding-xl) 0}.card-header{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot[name=subtitle]::slotted(*){--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-margin-xs:var(--sgds-margin-none);--sgds-font-size-4:var(--sgds-font-size-1);--sgds-font-size-5:var(--sgds-font-size-1);--sgds-font-size-6:var(--sgds-font-size-1);--sgds-font-weight-bold:var(--sgds-font-weight-semibold);--sgds-line-height-heading:var(--sgds-line-height-min);--sgds-letter-spacing-tight:var(--sgds-letter-spacing-wide);color:var(--sgds-color-default);font-size:var(--sgds-font-size-1);font-weight:var(--sgds-font-weight-semibold);letter-spacing:var(--sgds-letter-spacing-wide);line-height:var(--sgds-line-height-min);margin:var(--sgds-margin-none);text-transform:uppercase}`;
|
|
12468
12487
|
|
|
12469
12488
|
/**
|
|
12470
12489
|
* @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
@@ -12517,13 +12536,14 @@
|
|
|
12517
12536
|
if (childNodes.length > 1) {
|
|
12518
12537
|
return console.error("Multiple elements passed into SgdsCard's link slot");
|
|
12519
12538
|
}
|
|
12520
|
-
if (this.stretchedLink
|
|
12521
|
-
|
|
12539
|
+
if (!this.stretchedLink)
|
|
12540
|
+
return;
|
|
12541
|
+
if (childNodes[0] instanceof HTMLAnchorElement || childNodes[0] instanceof SgdsLink) {
|
|
12542
|
+
const hyperlink = (childNodes[0].querySelector("a") || childNodes[0]);
|
|
12522
12543
|
this.card.setAttribute("href", hyperlink.href);
|
|
12523
12544
|
const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
|
|
12524
12545
|
linkSlot.style.display = "none";
|
|
12525
12546
|
}
|
|
12526
|
-
return;
|
|
12527
12547
|
}
|
|
12528
12548
|
handleImgSlotChange(e) {
|
|
12529
12549
|
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
@@ -12561,7 +12581,7 @@
|
|
|
12561
12581
|
`;
|
|
12562
12582
|
}
|
|
12563
12583
|
}
|
|
12564
|
-
SgdsCard.styles = [...CardElement.styles, css_248z$
|
|
12584
|
+
SgdsCard.styles = [...CardElement.styles, css_248z$V];
|
|
12565
12585
|
__decorate([
|
|
12566
12586
|
query("a.card")
|
|
12567
12587
|
], SgdsCard.prototype, "card", void 0);
|
|
@@ -12666,9 +12686,9 @@
|
|
|
12666
12686
|
*/
|
|
12667
12687
|
const live = directive(LiveDirective);
|
|
12668
12688
|
|
|
12669
|
-
var css_248z$
|
|
12689
|
+
var css_248z$U = css`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-min)}.invalid-feedback{font-size:var(--sgds-font-size-1);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`;
|
|
12670
12690
|
|
|
12671
|
-
var css_248z$
|
|
12691
|
+
var css_248z$T = css`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-1);line-height:var(--sgds-line-height-min)}.form-text.disabled{opacity:var(--sgds-opacity-50)}`;
|
|
12672
12692
|
|
|
12673
12693
|
// @defaultValue decorator
|
|
12674
12694
|
const defaultValue = (propertyName = "value") => (proto, key) => {
|
|
@@ -13053,7 +13073,7 @@
|
|
|
13053
13073
|
}
|
|
13054
13074
|
}
|
|
13055
13075
|
}
|
|
13056
|
-
SelectElement.styles = [...DropdownListElement.styles, css_248z$
|
|
13076
|
+
SelectElement.styles = [...DropdownListElement.styles, css_248z$17, css_248z$T, css_248z$U];
|
|
13057
13077
|
__decorate([
|
|
13058
13078
|
property({ reflect: true })
|
|
13059
13079
|
], SelectElement.prototype, "label", void 0);
|
|
@@ -13109,9 +13129,9 @@
|
|
|
13109
13129
|
queryAsync("input.form-control")
|
|
13110
13130
|
], SelectElement.prototype, "_input", void 0);
|
|
13111
13131
|
|
|
13112
|
-
var css_248z$
|
|
13132
|
+
var css_248z$S = css`.form-label{color:var(--sgds-form-color-default);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-50)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`;
|
|
13113
13133
|
|
|
13114
|
-
var css_248z$
|
|
13134
|
+
var css_248z$R = css`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-body)}`;
|
|
13115
13135
|
|
|
13116
13136
|
class FormControlElement extends SgdsElement {
|
|
13117
13137
|
constructor() {
|
|
@@ -13138,7 +13158,7 @@
|
|
|
13138
13158
|
}
|
|
13139
13159
|
}
|
|
13140
13160
|
}
|
|
13141
|
-
FormControlElement.styles = [...SgdsElement.styles, css_248z$
|
|
13161
|
+
FormControlElement.styles = [...SgdsElement.styles, css_248z$U, css_248z$T, css_248z$S, css_248z$R];
|
|
13142
13162
|
__decorate([
|
|
13143
13163
|
property({ reflect: true })
|
|
13144
13164
|
], FormControlElement.prototype, "label", void 0);
|
|
@@ -13155,7 +13175,7 @@
|
|
|
13155
13175
|
property({ type: Boolean, reflect: true })
|
|
13156
13176
|
], FormControlElement.prototype, "invalid", void 0);
|
|
13157
13177
|
|
|
13158
|
-
var css_248z$
|
|
13178
|
+
var css_248z$Q = css`:host{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input,.form-check-input-container{height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md)}:host(:not([disabled]):not([invalid]):not([checked]):not([indeterminate])) .form-check-input:hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-check-input:focus,.form-check-input:focus-visible{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-check-input:checked,.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path d="M14.347 3.979a.522.522 0 0 1 0 .739L7.043 12.02a.521.521 0 0 1-.738 0L2.653 8.369a.522.522 0 1 1 .739-.738l3.282 3.283 6.934-6.935a.52.52 0 0 1 .739 0Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:checked:focus,.form-check-input:checked:hover,.form-check-input[checked]:focus-visible,.form-check-input[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}.form-check-input:indeterminate,.form-check-input[indeterminate]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:indeterminate:focus,.form-check-input:indeterminate:hover,.form-check-input[indeterminate]:focus-visible,.form-check-input[indeterminate]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-check-input.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-check-input:checked.is-invalid,.form-check-input:indeterminate.is-invalid,.form-check-input[checked].is-invalid,.form-check-input[indeterminate].is-invalid{background-color:var(--sgds-form-danger-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-label{width:100%}`;
|
|
13159
13179
|
|
|
13160
13180
|
/**
|
|
13161
13181
|
* @summary Checkbox component is used when you require users to select multiple items from a list.
|
|
@@ -13319,7 +13339,7 @@
|
|
|
13319
13339
|
`;
|
|
13320
13340
|
}
|
|
13321
13341
|
}
|
|
13322
|
-
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$
|
|
13342
|
+
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$Q];
|
|
13323
13343
|
__decorate([
|
|
13324
13344
|
property({ type: String, reflect: true })
|
|
13325
13345
|
], SgdsCheckbox.prototype, "value", void 0);
|
|
@@ -13351,7 +13371,7 @@
|
|
|
13351
13371
|
watch("_isTouched", { waitUntilFirstUpdate: true })
|
|
13352
13372
|
], SgdsCheckbox.prototype, "_handleIsTouched", null);
|
|
13353
13373
|
|
|
13354
|
-
var css_248z$
|
|
13374
|
+
var css_248z$P = css`:host([active]) .dropdown-item{background-color:var(--sgds-primary-surface-translucent)}.dropdown-item{background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;height:100%;padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit;white-space:nowrap}.dropdown-item .normal-item-content{align-items:center;display:flex;justify-content:space-between}:host([active]) .dropdown-item .normal-item-content{color:var(--sgds-primary-bg-default)}:host([active]) .dropdown-item .normal-item-content sgds-icon{fill:var(--sgds-primary-bg-default);color:var(--sgds-primary-bg-default)}.dropdown-item:hover{background:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background:var(--sgds-bg-translucent-subtle);box-shadow:inset var(--sgds-form-box-shadow-focus);outline:0}`;
|
|
13355
13375
|
|
|
13356
13376
|
class ComboBoxItem extends SgdsElement {
|
|
13357
13377
|
constructor() {
|
|
@@ -13419,7 +13439,7 @@
|
|
|
13419
13439
|
"sgds-icon": SgdsIcon,
|
|
13420
13440
|
"sgds-checkbox": SgdsCheckbox
|
|
13421
13441
|
};
|
|
13422
|
-
ComboBoxItem.styles = [css_248z$
|
|
13442
|
+
ComboBoxItem.styles = [css_248z$P];
|
|
13423
13443
|
__decorate([
|
|
13424
13444
|
property({ type: Boolean, reflect: true })
|
|
13425
13445
|
], ComboBoxItem.prototype, "active", void 0);
|
|
@@ -13430,7 +13450,7 @@
|
|
|
13430
13450
|
property({ type: Boolean, reflect: true })
|
|
13431
13451
|
], ComboBoxItem.prototype, "checkbox", void 0);
|
|
13432
13452
|
|
|
13433
|
-
var css_248z$
|
|
13453
|
+
var css_248z$O = css`:host{display:block;position:relative}.combobox{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.combobox .dropdown-menu{min-width:100%}.dropdown{display:flex;height:100%}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.combobox-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
|
|
13434
13454
|
|
|
13435
13455
|
/**
|
|
13436
13456
|
* @summary ComboBox component is used for users to make one or more selections from a list through user input, keyboard or mouse actions
|
|
@@ -13554,7 +13574,8 @@
|
|
|
13554
13574
|
this.selectedItems = this.selectedItems.filter(i => i.value !== foundItem.value);
|
|
13555
13575
|
this.value = this.selectedItems.map(i => i.value).join(";");
|
|
13556
13576
|
}
|
|
13557
|
-
async _handleBadgeDismissed(item) {
|
|
13577
|
+
async _handleBadgeDismissed(e, item) {
|
|
13578
|
+
e.preventDefault();
|
|
13558
13579
|
this.selectedItems = this.selectedItems.filter(i => i.value !== item.value);
|
|
13559
13580
|
this.value = this.selectedItems.map(i => i.value).join(";");
|
|
13560
13581
|
}
|
|
@@ -13653,7 +13674,7 @@
|
|
|
13653
13674
|
variant="neutral"
|
|
13654
13675
|
show
|
|
13655
13676
|
dismissible
|
|
13656
|
-
@sgds-hide=${
|
|
13677
|
+
@sgds-hide=${e => this._handleBadgeDismissed(e, item)}
|
|
13657
13678
|
>${item.label}</sgds-badge
|
|
13658
13679
|
>`)}
|
|
13659
13680
|
`
|
|
@@ -13704,7 +13725,7 @@
|
|
|
13704
13725
|
`;
|
|
13705
13726
|
}
|
|
13706
13727
|
}
|
|
13707
|
-
SgdsComboBox.styles = [...SelectElement.styles, css_248z$
|
|
13728
|
+
SgdsComboBox.styles = [...SelectElement.styles, css_248z$O];
|
|
13708
13729
|
/** @internal */
|
|
13709
13730
|
SgdsComboBox.dependencies = {
|
|
13710
13731
|
"sgds-combo-box-item": ComboBoxItem,
|
|
@@ -13729,7 +13750,7 @@
|
|
|
13729
13750
|
|
|
13730
13751
|
register("sgds-combo-box", SgdsComboBox);
|
|
13731
13752
|
|
|
13732
|
-
var css_248z$
|
|
13753
|
+
var css_248z$N = css`:host{--sgds-checkbox-group-gap:var(--sgds-spacer-2)}fieldset{border:0;gap:var(--sgds-form-gap-md);margin:0;min-width:0;padding:0}.label-hint-container,fieldset{display:flex;flex-direction:column}.label-hint-container{gap:var(--sgds-form-gap-sm)}.label-hint-container .form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular)}.checkbox-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.checkbox-group-validation-input{display:none}`;
|
|
13733
13754
|
|
|
13734
13755
|
/**
|
|
13735
13756
|
* @summary CheckboxGroup is a form component for multiselection of checkboxes.
|
|
@@ -13927,7 +13948,7 @@
|
|
|
13927
13948
|
`;
|
|
13928
13949
|
}
|
|
13929
13950
|
}
|
|
13930
|
-
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$
|
|
13951
|
+
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$N];
|
|
13931
13952
|
__decorate([
|
|
13932
13953
|
property({ reflect: true })
|
|
13933
13954
|
], SgdsCheckboxGroup.prototype, "label", void 0);
|
|
@@ -19665,7 +19686,7 @@
|
|
|
19665
19686
|
return newDate;
|
|
19666
19687
|
};
|
|
19667
19688
|
|
|
19668
|
-
var css_248z$
|
|
19689
|
+
var css_248z$M = css`.datepicker-body{color:var(--sgds-form-color-default);display:flex;justify-content:center}table{border-collapse:collapse;text-align:center}.monthpicker,.yearpicker{display:grid;grid-template-columns:repeat(3,6rem);grid-template-rows:repeat(4,2.5rem)}button.month,button.year{background-color:transparent;border:0;border-radius:var(--sgds-form-border-radius-sm);line-height:var(--sgds-line-height-min);padding:0;position:relative}button.month.active:not(.selected-ends),button.year.active:not(.selected-ends),td[data-day].active:not(.selected-ends){background-color:var(--sgds-primary-surface-translucent);border-radius:0;cursor:pointer}button.month:hover:not(.active),button.year:hover:not(.active),td[data-day]:hover:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle);cursor:pointer}button.month:focus:not(.active),button.year:focus:not(.active),td[data-day]:focus:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle)}button.month:focus,button.year:focus,td[data-day]:focus{outline:var(--sgds-form-border-radius-sm) solid var(--sgds-blue-400)}button.month.active:not(.selected-ends):focus,button.year.active:not(.selected-ends):focus,td[data-day].active:not(.selected-ends):focus{border-radius:var(--sgds-form-border-radius-sm)}button.year.active{background-color:var(--sgds-primary-surface-translucent);cursor:pointer}td,th{border-radius:var(--sgds-form-border-radius-sm);height:var(--sgds-form-height-lg);line-height:var(--sgds-line-height-min);padding:0;position:relative;width:var(--sgds-form-width-md)}th{font-weight:var(--sgds-font-weight-semibold)}td[data-day]{cursor:pointer}button.month.active.selected-ends,button.year.active.selected-ends,td[data-day].active.selected-ends{background-color:var(--sgds-form-primary-surface-default);color:var(--sgds-form-color-fixed-light)}button.month.active.selected-ends:focus,button.month.active.selected-ends:hover,button.year.active.selected-ends:focus,button.year.active.selected-ends:hover,td[data-day].active.selected-ends:focus,td[data-day].active.selected-ends:hover{background-color:var(--sgds-form-primary-surface-emphasis)}td[data-day].disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.today{align-items:center;display:flex;flex-direction:column;justify-content:center}.today:after{background-color:var(--sgds-form-primary-surface-default);bottom:6px;content:".";line-height:4px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;width:4px}.today.active.selected-ends:after{background-color:var(--sgds-form-color-inverse)}`;
|
|
19669
19690
|
|
|
19670
19691
|
const TODAY_DATE = new Date();
|
|
19671
19692
|
const keyPressAction = {
|
|
@@ -20061,7 +20082,7 @@
|
|
|
20061
20082
|
return html$1 ` <div class="datepicker-body">${viewContent}</div> `;
|
|
20062
20083
|
}
|
|
20063
20084
|
}
|
|
20064
|
-
DatepickerCalendar.styles = [css_248z$
|
|
20085
|
+
DatepickerCalendar.styles = [css_248z$M];
|
|
20065
20086
|
/** @internal */
|
|
20066
20087
|
DatepickerCalendar.DAY_LABELS = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
20067
20088
|
/** @internal */
|
|
@@ -20109,7 +20130,7 @@
|
|
|
20109
20130
|
watch("displayDate")
|
|
20110
20131
|
], DatepickerCalendar.prototype, "_updateFocusedDate", null);
|
|
20111
20132
|
|
|
20112
|
-
var css_248z$
|
|
20133
|
+
var css_248z$L = css`:host{display:inline-block}.btn.btn-icon{display:flex;height:var(--sgds-dimension-48,56px);min-width:unset;padding:0;width:var(--sgds-dimension-48,56px)}.btn.btn-icon.btn-lg{font-size:var(--sgds-font-size-3);height:var(--sgds-dimension-56);min-width:unset;padding:0;width:var(--sgds-dimension-56)}.btn.btn-icon.btn-sm{font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-40);min-width:unset;padding:0;width:var(--sgds-dimension-40)}`;
|
|
20113
20134
|
|
|
20114
20135
|
/**
|
|
20115
20136
|
* @summary An icon button is a user interface element that combines an icon and a button, serving as a clickable or tabbable component.
|
|
@@ -20156,7 +20177,7 @@
|
|
|
20156
20177
|
`;
|
|
20157
20178
|
}
|
|
20158
20179
|
}
|
|
20159
|
-
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$
|
|
20180
|
+
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$L];
|
|
20160
20181
|
/** @internal */
|
|
20161
20182
|
SgdsIconButton.dependencies = {
|
|
20162
20183
|
"sgds-icon": SgdsIcon
|
|
@@ -20165,7 +20186,7 @@
|
|
|
20165
20186
|
property({ type: String, reflect: true })
|
|
20166
20187
|
], SgdsIconButton.prototype, "name", void 0);
|
|
20167
20188
|
|
|
20168
|
-
var css_248z$
|
|
20189
|
+
var css_248z$K = css`.datepicker-header{display:flex;gap:var(--sgds-form-gap-md)}sgds-button{--btn-font-weight:var(--sgds-font-weight-semibold)}`;
|
|
20169
20190
|
|
|
20170
20191
|
class DatepickerHeader extends SgdsElement {
|
|
20171
20192
|
constructor() {
|
|
@@ -20341,7 +20362,7 @@
|
|
|
20341
20362
|
`;
|
|
20342
20363
|
}
|
|
20343
20364
|
}
|
|
20344
|
-
DatepickerHeader.styles = [css_248z$
|
|
20365
|
+
DatepickerHeader.styles = [css_248z$K];
|
|
20345
20366
|
/** @internal */
|
|
20346
20367
|
DatepickerHeader.dependencies = {
|
|
20347
20368
|
"sgds-icon": SgdsIcon,
|
|
@@ -23982,7 +24003,7 @@
|
|
|
23982
24003
|
globalThis.IMask = IMask;
|
|
23983
24004
|
} catch {}
|
|
23984
24005
|
|
|
23985
|
-
var css_248z$
|
|
24006
|
+
var css_248z$J = css`:host{--sgds-spinner-bg:var(--sgds-primary-surface-default);display:inline-flex}:host([variant=neutral]){--sgds-spinner-bg:var(--sgds-neutral-surface-default)}.spinner-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.spinner{animation:spinner .75s linear infinite;border-radius:50%;border-right:.25em solid var(--sgds-bg-translucent);border:.25em solid var(--sgds-bg-translucent);border-right-color:var(--sgds-spinner-bg);color:var(--sgds-spinner-color);display:inline-flex;height:var(--sgds-dimension-32);width:var(--sgds-dimension-32)}.spinner-sm{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.spinner-lg{height:var(--sgds-dimension-48);width:var(--sgds-dimension-48)}.spinner-label{color:var(--sgds-neutral-color-default);font-size:var(--sgds-font-size-1)}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:1.5s}}
|
|
23986
24007
|
|
|
23987
24008
|
/*! CSS Used keyframes */@keyframes spinner{to{transform:rotate(1turn)}}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
|
|
23988
24009
|
|
|
@@ -24014,7 +24035,7 @@
|
|
|
24014
24035
|
`;
|
|
24015
24036
|
}
|
|
24016
24037
|
}
|
|
24017
|
-
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$
|
|
24038
|
+
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$_, css_248z$J];
|
|
24018
24039
|
__decorate([
|
|
24019
24040
|
property({ type: String, reflect: true })
|
|
24020
24041
|
], SgdsSpinner.prototype, "variant", void 0);
|
|
@@ -24025,7 +24046,7 @@
|
|
|
24025
24046
|
property({ reflect: true, type: String })
|
|
24026
24047
|
], SgdsSpinner.prototype, "label", void 0);
|
|
24027
24048
|
|
|
24028
|
-
var css_248z$
|
|
24049
|
+
var css_248z$I = css`:host{--input-border-radius:var(--sgds-form-border-radius-md)}.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.form-control-container.disabled{opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius);display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;min-width:var(--sgds-dimension-256);padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.form-control-group>.form-control:focus{z-index:3}@media (prefers-reduced-motion:reduce){.form-control-group{transition:none}}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}:host(.quantity-toggle) input::-webkit-inner-spin-button{appearance:none;margin:0}:host(.quantity-toggle) input{text-align:center}.form-control-prefix,.form-control-suffix{color:var(--sgds-form-color-subtle);display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs)}.form-control-group.quantity-toggle{padding:0}`;
|
|
24029
24050
|
|
|
24030
24051
|
/**
|
|
24031
24052
|
* @summary Text inputs allow your users to enter letters, numbers and symbols on a single line.
|
|
@@ -24226,7 +24247,7 @@
|
|
|
24226
24247
|
`;
|
|
24227
24248
|
}
|
|
24228
24249
|
}
|
|
24229
|
-
SgdsInput.styles = [...FormControlElement.styles, css_248z$
|
|
24250
|
+
SgdsInput.styles = [...FormControlElement.styles, css_248z$R, css_248z$I];
|
|
24230
24251
|
/** @internal */
|
|
24231
24252
|
SgdsInput.dependencies = {
|
|
24232
24253
|
"sgds-spinner": SgdsSpinner,
|
|
@@ -24299,7 +24320,7 @@
|
|
|
24299
24320
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
24300
24321
|
], SgdsInput.prototype, "_handleDisabledChange", null);
|
|
24301
24322
|
|
|
24302
|
-
var css_248z$
|
|
24323
|
+
var css_248z$H = css`.input-container{display:flex;flex-direction:row;width:-webkit-fill-available;width:-moz-available}.form-control-group{border-right:0}.input-feedback{display:flex;flex-direction:column;width:-webkit-fill-available;width:-moz-available}.calendar-btn{all:unset}`;
|
|
24303
24324
|
|
|
24304
24325
|
class DatepickerInput extends SgdsInput {
|
|
24305
24326
|
constructor() {
|
|
@@ -24426,7 +24447,7 @@
|
|
|
24426
24447
|
`;
|
|
24427
24448
|
}
|
|
24428
24449
|
}
|
|
24429
|
-
DatepickerInput.styles = [...SgdsInput.styles, css_248z$
|
|
24450
|
+
DatepickerInput.styles = [...SgdsInput.styles, css_248z$H];
|
|
24430
24451
|
__decorate([
|
|
24431
24452
|
property({ type: String })
|
|
24432
24453
|
], DatepickerInput.prototype, "minDate", void 0);
|
|
@@ -24440,7 +24461,7 @@
|
|
|
24440
24461
|
queryAsync("input")
|
|
24441
24462
|
], DatepickerInput.prototype, "shadowInput", void 0);
|
|
24442
24463
|
|
|
24443
|
-
var css_248z$
|
|
24464
|
+
var css_248z$G = css`:host{--datepicker-theme-color:var(--sgds-primary);--datepicker-hover-bg:var(--sgds-primary-100);--datepicker-bg:#fff;--datepicker-close-btn-bg:var(--datepicker-theme-color);--datepicker-close-btn-hover-bg:var(--sgds-primary-700);--datepicker-close-btn-color:#fff;--datepicker-selected-date-bg:var(--sgds-primary);--datepicker-selected-date-color:#fff;font-size:var(--sgds-font-size-1)}.dropdown{display:flex;height:100%}.datepicker.dropdown-menu.show{background-color:var(--sgds-form-surface-default);display:flex;flex-direction:column;gap:var(--sgds-form-gap-sm);overflow:unset;padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);width:var(--sgds-dimension-320)}sgds-datepicker-input{--input-border-radius:var(--sgds-form-border-radius-md) 0 0 var(--sgds-form-border-radius-md);flex:1;margin-right:0}sgds-icon-button{--btn-border-radius:0 var(--sgds-form-border-radius-md) var(--sgds-form-border-radius-md) 0}.datepicker-container{display:flex}.calendar-btn:not(.with-hint-text){align-self:center}.calendar-btn:not(.with-hint-text).with-label{align-self:end}.calendar-btn.with-hint-text.with-label,.calendar-btn:not(.with-hint-text).with-label{margin-top:calc(var(--sgds-font-size-2)*var(--sgds-line-height-body) - var(--sgds-line-height-min))}.calendar-btn.with-hint-text.with-label{align-self:center}`;
|
|
24444
24465
|
|
|
24445
24466
|
/**
|
|
24446
24467
|
* @summary The `DatePicker` Component is built using `Dropdown`, `Input` and `Button` components. By default, the Calendar points to today's date and input has no value. Users can either pick dates from the calendar or type dates through the input
|
|
@@ -24812,7 +24833,7 @@
|
|
|
24812
24833
|
`;
|
|
24813
24834
|
}
|
|
24814
24835
|
}
|
|
24815
|
-
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$
|
|
24836
|
+
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$17, css_248z$G];
|
|
24816
24837
|
/**@internal */
|
|
24817
24838
|
SgdsDatepicker.dependencies = {
|
|
24818
24839
|
"sgds-datepicker-input": DatepickerInput,
|
|
@@ -24896,7 +24917,7 @@
|
|
|
24896
24917
|
|
|
24897
24918
|
register("sgds-datepicker", SgdsDatepicker);
|
|
24898
24919
|
|
|
24899
|
-
var css_248z$
|
|
24920
|
+
var css_248z$F = css`:host([bordered]) .container{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}.container{display:flex;flex-direction:column}.title{color:var(--sgds-header-color-default);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-semibold);letter-spacing:var(--sgds-letter-spacing-tight);line-height:var(--sgds-line-height-heading)}.description{color:var(--sgds-color-subtle);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-body)}.header{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;flex-direction:column;gap:var(--sgds-gap-xs);padding:var(--sgds-padding-lg) var(--sgds-padding-xl)}`;
|
|
24900
24921
|
|
|
24901
24922
|
class HasSlotController {
|
|
24902
24923
|
constructor(host, ...slotNames) {
|
|
@@ -25032,7 +25053,7 @@
|
|
|
25032
25053
|
`;
|
|
25033
25054
|
}
|
|
25034
25055
|
}
|
|
25035
|
-
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$
|
|
25056
|
+
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$F];
|
|
25036
25057
|
__decorate([
|
|
25037
25058
|
property({ type: Boolean, reflect: true })
|
|
25038
25059
|
], SgdsDescriptionListGroup.prototype, "bordered", void 0);
|
|
@@ -25043,7 +25064,7 @@
|
|
|
25043
25064
|
queryAssignedElements({ flatten: true })
|
|
25044
25065
|
], SgdsDescriptionListGroup.prototype, "_descriptionLists", void 0);
|
|
25045
25066
|
|
|
25046
|
-
var css_248z$
|
|
25067
|
+
var css_248z$E = css`:host([bordered][islastchild]) .container:last-child{border-bottom:none}:host([stacked]) .container{align-items:flex-start;flex-direction:column;gap:var(--sgds-gap-xs);justify-content:flex-start}.container{align-items:flex-start;border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;gap:var(--sgds-gap-xs);justify-content:space-between;padding:var(--sgds-padding-lg) var(--sgds-padding-xl)}.data-container,.label-container{flex:1}.label{color:var(--sgds-color-default);font-weight:var(--sgds-font-weight-semibold)}.data,.label{font-size:var(--sgds-font-size-2)}.data{color:var(--sgds-color-subtle);font-weight:var(--sgds-font-weight-regular);margin:0}`;
|
|
25047
25068
|
|
|
25048
25069
|
let id$2 = 0;
|
|
25049
25070
|
/**
|
|
@@ -25086,7 +25107,7 @@
|
|
|
25086
25107
|
`;
|
|
25087
25108
|
}
|
|
25088
25109
|
}
|
|
25089
|
-
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$
|
|
25110
|
+
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$E];
|
|
25090
25111
|
__decorate([
|
|
25091
25112
|
property({ type: Boolean, reflect: true })
|
|
25092
25113
|
], SgdsDescriptionList.prototype, "stacked", void 0);
|
|
@@ -25097,7 +25118,7 @@
|
|
|
25097
25118
|
register("sgds-description-list", SgdsDescriptionList);
|
|
25098
25119
|
register("sgds-description-list-group", SgdsDescriptionListGroup);
|
|
25099
25120
|
|
|
25100
|
-
var css_248z$
|
|
25121
|
+
var css_248z$D = css`:host{--container-size:8px}:host([orientation=horizontal]){border-top:var(--border-width) solid var(--sgds-border-color-muted);display:block;margin:calc((var(--container-size) - var(--border-width))/2) 0;width:100%}:host([orientation=vertical]){border-left:var(--border-width) solid var(--sgds-border-color-muted);display:inline-block;height:100%;margin:0 calc((var(--container-size) - var(--border-width))/2)}:host([thickness=thin]){--border-width:var(--sgds-border-width-1)}:host([thickness=thick]){--border-width:var(--sgds-border-width-2)}:host([thickness=thicker]){--border-width:var(--sgds-border-width-4)}`;
|
|
25101
25122
|
|
|
25102
25123
|
/**
|
|
25103
25124
|
* @summary A divider is a thin line that groups content in lists and layouts. They bring clarity to a layout by grouping and dividing content in close proximity.
|
|
@@ -25116,7 +25137,7 @@
|
|
|
25116
25137
|
this.setAttribute("aria-orientation", this.orientation);
|
|
25117
25138
|
}
|
|
25118
25139
|
}
|
|
25119
|
-
SgdsDivider.styles = [css_248z$
|
|
25140
|
+
SgdsDivider.styles = [css_248z$D];
|
|
25120
25141
|
__decorate([
|
|
25121
25142
|
property({ type: String, reflect: true })
|
|
25122
25143
|
], SgdsDivider.prototype, "orientation", void 0);
|
|
@@ -25133,7 +25154,7 @@
|
|
|
25133
25154
|
*/
|
|
25134
25155
|
function lockBodyScrolling(lockingEl) {
|
|
25135
25156
|
locks.add(lockingEl);
|
|
25136
|
-
document.body.
|
|
25157
|
+
document.body.style.overflow = "hidden";
|
|
25137
25158
|
}
|
|
25138
25159
|
/**
|
|
25139
25160
|
* Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.
|
|
@@ -25141,11 +25162,11 @@
|
|
|
25141
25162
|
function unlockBodyScrolling(lockingEl) {
|
|
25142
25163
|
locks.delete(lockingEl);
|
|
25143
25164
|
if (locks.size === 0) {
|
|
25144
|
-
document.body.
|
|
25165
|
+
document.body.style.overflow = "";
|
|
25145
25166
|
}
|
|
25146
25167
|
}
|
|
25147
25168
|
|
|
25148
|
-
var css_248z$
|
|
25169
|
+
var css_248z$C = css`:host{display:contents}.drawer{height:100%;inset-inline-start:0;overflow:hidden;pointer-events:none;top:0;width:100%}.drawer-fixed{position:fixed;z-index:1100}.drawer-panel{background-color:var(--sgds-surface-default);display:flex;flex-direction:column;gap:var(--sgds-gap-2-xl);max-height:100%;max-width:100%;overflow:auto;padding:var(--sgds-padding-4-xl) var(--sgds-padding-3-xl);pointer-events:all;position:absolute;z-index:2}.drawer-panel:focus{outline:none}.drawer-top .drawer-panel{bottom:auto;height:var(--sgds-dimension-512);inset-inline-end:auto;inset-inline-start:0;top:0;width:100%}.drawer-end .drawer-panel{bottom:auto;height:100%;inset-inline-end:0;inset-inline-start:auto;top:0;width:var(--sgds-dimension-512)}.drawer-bottom .drawer-panel{bottom:0;height:var(--sgds-dimension-512);inset-inline-end:auto;inset-inline-start:0;top:auto;width:100%}.drawer-start .drawer-panel{bottom:auto;height:100%;inset-inline-end:auto;inset-inline-start:0;top:0;width:var(--sgds-dimension-512)}.drawer-header{display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}slot[name=title]::slotted(*){--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-font-size-6:var(--sgds-font-size-4);color:var(--sgds-color-default)!important;font-size:var(--sgds-font-size-6,var(--sgds-font-size-4));margin-bottom:var(--sgds-margin-2-xs,var(--sgds-margin-none))}slot[name=description]::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none);color:var(--sgds-color-subtle);margin-bottom:var(--sgds-paragraph-spacing-xl,var(--sgds-margin-none))}sgds-close-button{position:absolute;right:32px;top:32px}.drawer-body{-webkit-overflow-scrolling:touch;display:block;flex:1 1 auto;overflow:auto}.drawer-overlay{background-color:var(--sgds-bg-overlay);bottom:0;display:block;left:0;pointer-events:all;position:fixed;right:0;top:0}.drawer-contained .drawer-overlay{display:none}@media screen and (max-width:768px){.drawer-panel{padding:var(--sgds-padding-3-xl) var(--sgds-padding-lg)}sgds-close-button{right:20px;top:20px}}`;
|
|
25149
25170
|
|
|
25150
25171
|
/**
|
|
25151
25172
|
* @summary Drawers slide in from a container to expose additional options and information.
|
|
@@ -25364,7 +25385,7 @@
|
|
|
25364
25385
|
`;
|
|
25365
25386
|
}
|
|
25366
25387
|
}
|
|
25367
|
-
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$
|
|
25388
|
+
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$C];
|
|
25368
25389
|
/**@internal */
|
|
25369
25390
|
SgdsDrawer.dependencies = {
|
|
25370
25391
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -25489,7 +25510,7 @@
|
|
|
25489
25510
|
register("sgds-dropdown", SgdsDropdown);
|
|
25490
25511
|
register("sgds-dropdown-item", SgdsDropdownItem);
|
|
25491
25512
|
|
|
25492
|
-
var css_248z$
|
|
25513
|
+
var css_248z$B = css`.file-upload{display:flex;flex-direction:column;gap:var(--sgds-form-gap-2-xl)}.file-upload-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.file-upload-list{display:flex;flex-direction:column;gap:var(--sgds-form-gap-xl);list-style-type:none}.file-upload-list-item{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-lg);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x)}.file-upload-list-item span:not(:first-of-type){cursor:pointer}ul{margin:0;padding:0}input{display:none}label,sgds-button{cursor:pointer}sgds-close-button{margin-left:auto}sgds-icon.valid{color:var(--sgds-form-success-color-default)}sgds-icon.invalid{color:var(--sgds-color-muted)}`;
|
|
25493
25514
|
|
|
25494
25515
|
/**
|
|
25495
25516
|
* @summary Allows users to upload files of various sizes and formats
|
|
@@ -25662,7 +25683,7 @@
|
|
|
25662
25683
|
`;
|
|
25663
25684
|
}
|
|
25664
25685
|
}
|
|
25665
|
-
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$
|
|
25686
|
+
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$B];
|
|
25666
25687
|
/**@internal */
|
|
25667
25688
|
SgdsFileUpload.dependencies = {
|
|
25668
25689
|
"sgds-button": SgdsButton,
|
|
@@ -25693,7 +25714,7 @@
|
|
|
25693
25714
|
|
|
25694
25715
|
register("sgds-file-upload", SgdsFileUpload);
|
|
25695
25716
|
|
|
25696
|
-
var css_248z$
|
|
25717
|
+
var css_248z$A = css`.footer{container:footer/inline-size;height:auto}.footer-top{background-color:var(--sgds-bg-fixed-dark);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-default);gap:var(--sgds-gap-md);padding:var(--sgds-padding-xl) var(--sgds-padding-2-xl)}.footer-header,.footer-top{display:flex;flex-direction:column}.footer-header{gap:var(--sgds-gap-xs);margin:var(--sgds-margin-3-xs) 0}slot[name=title]::slotted(*){--sgds-header-color-default:var(--sgds-color-fixed-light);--sgds-font-size-6:var(--sgds-font-size-5);--sgds-margin-2-xs:var(--sgds-margin-none);color:var(--sgds-header-color-default,--sgds-color-fixed-light);font-size:var(--sgds-font-size-6,--sgds-font-size-5);font-weight:var(--sgds-font-weight-bold);letter-spacing:var(--sgds-letter-spacing-tight);line-height:var(--sgds-line-height-heading);margin-bottom:var(--sgds-margin-2-xs,--sgds-margin-none);margin-top:var(--sgds-margin-none)}slot[name=description]::slotted(*){--sgds-font-size-2:var(--sgds-font-size-3);--sgds-paragraph-spacing-xl:var(--sgds-margin-none);color:var(--sgds-color-fixed-light);font-size:var(--sgds-font-size-2,--sgds-font-size-3);margin-bottom:var(--sgds-paragraph-spacing-xl,--sgds-margin-none);margin-top:var(--sgds-margin-none)}.footer-items{display:grid;gap:var(--sgds-gap-md) var(--sgds-gap-lg);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.footer ul{margin:0;padding:0}.footer ul li{list-style-type:none}.footer-mandatory-links ul li a{text-decoration:none}.footer-mandatory-links ul li a,.footer-mandatory-links ul li a:focus,.footer-mandatory-links ul li a:hover{color:var(--sgds-color-fixed-light)}.footer-mandatory-links ul li a:focus,.footer-mandatory-links ul li a:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}.footer-bottom{background-color:var(--sgds-bg-fixed-dark);display:flex;flex-direction:column;gap:var(--sgds-gap-md);padding:var(--sgds-padding-xl) var(--sgds-padding-2-xl)}.social-media{display:flex;gap:var(--sgds-gap-sm)}slot[name=social-media]::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);--sgds-body-color-default:var(--sgds-color-fixed-light);color:var(--sgds-body-color-default,--sgds-link-color-default);display:inline-flex}slot[name=social-media]::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);color:var(--sgds-link-color-emphasis)}slot[name=social-media]::slotted(a:focus),slot[name=social-media]::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);box-shadow:var(--sgds-box-shadow-focus);color:var(--sgds-link-color-emphasis);outline:0}.footer-mandatory-links{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xl) var(--sgds-gap-lg);justify-content:space-between}.footer-mandatory-links ul{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs) var(--sgds-gap-xl)}.footer-copyrights{color:var(--sgds-color-fixed-light)}@container footer (max-width: 711px){.footer-bottom,.footer-top{padding:var(--sgds-padding-lg)}.footer-top{gap:var(--sgds-gap-lg)}.footer-mandatory-links,.footer-mandatory-links ul{flex-direction:column}}`;
|
|
25697
25718
|
|
|
25698
25719
|
/**
|
|
25699
25720
|
* @summary The footer contains supporting information for your service at the bottom of your website. All .gov.sg digital services shall contain a Global Footer Bar across all pages. The Global Footer Bar should include the name of the digital service, contact information, a privacy statement and the terms of use.
|
|
@@ -25796,7 +25817,7 @@
|
|
|
25796
25817
|
`;
|
|
25797
25818
|
}
|
|
25798
25819
|
}
|
|
25799
|
-
SgdsFooter.styles = [...SgdsElement.styles, css_248z$
|
|
25820
|
+
SgdsFooter.styles = [...SgdsElement.styles, css_248z$A];
|
|
25800
25821
|
__decorate([
|
|
25801
25822
|
property({ type: String })
|
|
25802
25823
|
], SgdsFooter.prototype, "copyrightLiner", void 0);
|
|
@@ -25816,7 +25837,7 @@
|
|
|
25816
25837
|
property({ type: String })
|
|
25817
25838
|
], SgdsFooter.prototype, "termsOfUseHref", void 0);
|
|
25818
25839
|
|
|
25819
|
-
var css_248z$
|
|
25840
|
+
var css_248z$z = css`.footer-item{margin-bottom:var(--sgds-margin-3-xs)}.footer-item,.links{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot[name=title]::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none);--sgds-font-weight-regular:var(--sgds-font-weight-semibold);color:var(--sgds-color-fixed-light);font-weight:var(--sgds-font-weight-regular,--sgds-font-weight-semibold);margin:var(--sgds-paragraph-spacing-xl,--sgds-margin-none)}.links{margin:0;padding:0}.links slot::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);color:var(--sgds-link-color-default,--sgds-fixed-light);text-decoration:none!important;width:fit-content}.links slot::slotted(a[target=_blank]){align-items:center;display:flex;gap:var(--sgds-gap-2-xs);justify-content:center}.links slot::slotted(a:focus),.links slot::slotted(a:focus-visible),slot::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);color:var(--sgds-link-color-emphasis,--sgds-color-fixed-light)}.links slot::slotted(a:focus),.links slot::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
25820
25841
|
|
|
25821
25842
|
/**
|
|
25822
25843
|
* @summary The footer item component organizes links under a clear, descriptive title within the footer. It helps users easily navigate to related resources or information, ensuring clarity and accessibility.
|
|
@@ -25837,7 +25858,7 @@
|
|
|
25837
25858
|
`;
|
|
25838
25859
|
}
|
|
25839
25860
|
}
|
|
25840
|
-
SgdsFooterItem.styles = [...SgdsElement.styles, css_248z$
|
|
25861
|
+
SgdsFooterItem.styles = [...SgdsElement.styles, css_248z$z];
|
|
25841
25862
|
|
|
25842
25863
|
register("sgds-footer", SgdsFooter);
|
|
25843
25864
|
register("sgds-footer-item", SgdsFooterItem);
|
|
@@ -25846,7 +25867,7 @@
|
|
|
25846
25867
|
|
|
25847
25868
|
register("sgds-icon-button", SgdsIconButton);
|
|
25848
25869
|
|
|
25849
|
-
var css_248z$
|
|
25870
|
+
var css_248z$y = css`slot{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot::slotted(*){align-items:center;display:flex;gap:var(--sgds-gap-xs)}.sm{font-size:var(--sgds-font-size-1)}.lg{font-size:var(--sgds-font-size-3)}`;
|
|
25850
25871
|
|
|
25851
25872
|
/**
|
|
25852
25873
|
* @summary A IconList can be used to display content related to the same topic. Each list item begins an icon.
|
|
@@ -25869,7 +25890,7 @@
|
|
|
25869
25890
|
`;
|
|
25870
25891
|
}
|
|
25871
25892
|
}
|
|
25872
|
-
SgdsIconList.styles = [...SgdsElement.styles, css_248z$
|
|
25893
|
+
SgdsIconList.styles = [...SgdsElement.styles, css_248z$y];
|
|
25873
25894
|
__decorate([
|
|
25874
25895
|
property({ type: String, reflect: true })
|
|
25875
25896
|
], SgdsIconList.prototype, "role", void 0);
|
|
@@ -26374,7 +26395,7 @@
|
|
|
26374
26395
|
|
|
26375
26396
|
const MainnavContext = createContext("mainnav-context");
|
|
26376
26397
|
|
|
26377
|
-
var css_248z$
|
|
26398
|
+
var css_248z$x = css`:host{z-index:1200}nav{background-color:var(--sgds-surface-default);box-shadow:0 2px 2px 0 hsla(0,0%,5%,.08)}.navbar{align-items:stretch;display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);justify-content:space-between;margin:auto;max-width:var(--sgds-mainnav-max-width);min-height:80px;padding:0 var(--sgds-mainnav-padding-x);position:relative;width:100%}@media screen and (max-width:768px){.navbar{padding:0 var(--sgds-mainnav-mobile-padding-x)}}.navbar-brand{align-items:center;display:flex;text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}.navbar-nav{display:flex;flex-direction:column;height:100%;margin-bottom:0;margin-top:0;width:100%}nav>.navbar-body{background-color:var(--sgds-surface-default);border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-translucent);bottom:0;box-shadow:0 2px 2px 0 hsla(0,0%,5%,.08);padding:var(--sgds-padding-md) 0;position:absolute;transition:transform .2s ease-in-out;width:100%;z-index:2000}nav>.navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}@media screen and (max-width:768px){nav>.navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)){padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}}.navbar-collapse{align-items:center;flex-basis:100%;flex-grow:1}.navbar-toggler{align-self:center}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-nav-scroll{overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-xl .navbar-nav .nav-link{padding-left:var(--mainnav-nav-link-padding-x);padding-right:var(--mainnav-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}}.navbar-expand{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}slot[name=non-collapsible]{align-items:center;display:flex;gap:var(--sgds-spacer-4);margin-left:auto}.slot-end{align-items:stretch;display:flex;gap:var(--sgds-gap-xs);margin-left:auto}.slot-end::slotted(:not([name$=-mainnav-item]):not([name$=-mainnav-dropdown])){align-self:center}`;
|
|
26378
26399
|
|
|
26379
26400
|
const SIZES = {
|
|
26380
26401
|
sm: SM_BREAKPOINT,
|
|
@@ -26596,7 +26617,7 @@
|
|
|
26596
26617
|
}
|
|
26597
26618
|
}
|
|
26598
26619
|
}
|
|
26599
|
-
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$
|
|
26620
|
+
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$x];
|
|
26600
26621
|
/** @internal */
|
|
26601
26622
|
SgdsMainnav.dependencies = {
|
|
26602
26623
|
"sgds-icon-button": SgdsIconButton
|
|
@@ -26659,7 +26680,7 @@
|
|
|
26659
26680
|
options: { duration: 200, easing: "ease-in-out" }
|
|
26660
26681
|
});
|
|
26661
26682
|
|
|
26662
|
-
var css_248z$
|
|
26683
|
+
var css_248z$w = css`:host([expand=always]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media (min-width:512px){:host([expand=sm]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=sm]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:768px){:host([expand=md]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=md]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:1024px){:host(:not([expand])) .nav-link,:host([expand=lg]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=lg]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:1280px){:host([expand=xl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=xl]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:1440px){:host([expand=xxl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=xxl]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}.nav-link{align-items:center;cursor:pointer;display:flex;gap:var(--sgds-gap-xs);padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);text-decoration:none}@media screen and (max-width:767px){.nav-link{padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}}.nav-link.show,.nav-link:not(.disabled).active{border-color:var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):hover{color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):focus,.nav-link:not(.disabled):focus-visible{outline:0}.nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-primary-color-default)}.nav-link.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.dropdown-items{background-color:var(--sgds-surface-default);height:100%;left:100%;padding:var(--sgds-padding-md) 0;position:absolute;top:0;width:100%}.dropdown-items a{align-items:center;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-xs);padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);text-decoration:none}.dropdown-items a:hover{color:var(--sgds-primary-color-default)}.dropdown-items a:focus,.dropdown-items a:focus-visible{outline:0}.dropdown-items a:focus-visible{box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-primary-color-default)}slot[name=toggler]::slotted(*){flex:1}sgds-dropdown{height:100%}`;
|
|
26663
26684
|
|
|
26664
26685
|
const TAB = "Tab";
|
|
26665
26686
|
const ENTER = "Enter";
|
|
@@ -26703,7 +26724,7 @@
|
|
|
26703
26724
|
return;
|
|
26704
26725
|
}
|
|
26705
26726
|
if (this._breakpointReached) {
|
|
26706
|
-
this.shadowRoot.adoptedStyleSheets = [css_248z$
|
|
26727
|
+
this.shadowRoot.adoptedStyleSheets = [css_248z$17.styleSheet, css_248z$w.styleSheet];
|
|
26707
26728
|
}
|
|
26708
26729
|
}
|
|
26709
26730
|
updated() {
|
|
@@ -26893,7 +26914,7 @@
|
|
|
26893
26914
|
return this._breakpointReached ? mobileView : desktopView;
|
|
26894
26915
|
}
|
|
26895
26916
|
}
|
|
26896
|
-
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$
|
|
26917
|
+
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$16, css_248z$17, css_248z$w];
|
|
26897
26918
|
/** @internal */
|
|
26898
26919
|
SgdsMainnavDropdown.dependencies = {
|
|
26899
26920
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -26929,7 +26950,7 @@
|
|
|
26929
26950
|
queryAssignedElements()
|
|
26930
26951
|
], SgdsMainnavDropdown.prototype, "defaultNodes", void 0);
|
|
26931
26952
|
|
|
26932
|
-
var css_248z$
|
|
26953
|
+
var css_248z$v = css`:host([expand=always]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media screen and (min-width:512px){:host([expand=sm]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=sm]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=sm]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:768px){:host([expand=md]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=md]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=md]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:1024px){:host([expand=lg]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=lg]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=lg]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:1280px){:host([expand=xl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=xl]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:1440px){:host([expand=xxl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xxl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=xxl]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (max-width:511px){:host(:not([disabled])[active][expand=sm]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:767px){:host(:not([disabled])[active][expand=md]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1023px){:host(:not([disabled])[active][expand=lg]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1279px){:host(:not([disabled])[active][expand=xl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1439px){:host(:not([disabled])[active][expand=xxl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}::slotted(*){--sgds-link-color-default:var(--sgds-color-default);align-items:center;box-sizing:border-box;color:var(--sgds-link-color-default,var(--sgds-color-default));cursor:pointer;display:flex;height:auto!important;padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);text-decoration:none!important;text-decoration:none}@media screen and (max-width:767px){::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}}:host(:not([disabled])[active]) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-color-default))}:host(:not([disabled])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}::slotted(a:focus),::slotted(a:focus-visible){outline:0}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-50)}`;
|
|
26933
26954
|
|
|
26934
26955
|
/**
|
|
26935
26956
|
* @slot default - slot for SgdsMainnavItem element.
|
|
@@ -26938,7 +26959,7 @@
|
|
|
26938
26959
|
class SgdsMainnavItem extends SgdsElement {
|
|
26939
26960
|
constructor() {
|
|
26940
26961
|
super(...arguments);
|
|
26941
|
-
/** when true, sets the active stylings of
|
|
26962
|
+
/** when true, sets the active stylings of the navigation item */
|
|
26942
26963
|
this.active = false;
|
|
26943
26964
|
/** Disables the SgdsMainnavItem */
|
|
26944
26965
|
this.disabled = false;
|
|
@@ -26979,9 +27000,9 @@
|
|
|
26979
27000
|
return html$1 `<slot @slotchange=${this._handleSlotChange}></slot>`;
|
|
26980
27001
|
}
|
|
26981
27002
|
}
|
|
26982
|
-
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$
|
|
27003
|
+
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$v];
|
|
26983
27004
|
__decorate([
|
|
26984
|
-
property({ type: Boolean })
|
|
27005
|
+
property({ type: Boolean, reflect: true })
|
|
26985
27006
|
], SgdsMainnavItem.prototype, "active", void 0);
|
|
26986
27007
|
__decorate([
|
|
26987
27008
|
property({ type: Boolean, reflect: true })
|
|
@@ -26994,9 +27015,9 @@
|
|
|
26994
27015
|
register("sgds-mainnav-dropdown", SgdsMainnavDropdown);
|
|
26995
27016
|
register("sgds-mainnav-item", SgdsMainnavItem);
|
|
26996
27017
|
|
|
26997
|
-
var css_248z$
|
|
27018
|
+
var css_248z$u = css`b{font-weight:bolder}[role=button]{cursor:pointer}a{color:#0049dc}a:hover{color:#0022b9}.sgds-masthead{font-family:Inter,system-ui,sans-serif;font-size:.875rem;line-height:1.25rem}.banner{background-color:light-dark(#f3f3f3,#1a1a1a)}.container{margin-left:auto;margin-right:auto;max-width:var(--sgds-mainnav-max-width);padding:.25rem var(--sgds-mainnav-padding-x);width:100%}.sg-crest{flex-shrink:0;height:20px;width:20px}.sg-crest path{fill:#db0000}.masthead-layout{display:flex;gap:.25rem}.masthead-text-layout{align-items:center;display:flex;flex-wrap:wrap;gap:0 .75rem}.sgds-masthead-identify-icon{align-self:center;display:block;height:20px;transform:rotate(180deg);transition:transform .3s ease-in-out 0s;user-select:none;width:20px}.sgds-masthead-identify-icon.show{transform:rotate(0deg)}.sgds-masthead-button{align-items:center;color:light-dark(#0269d0,#60aaf4);cursor:pointer;display:flex;gap:4px}.sgds-masthead-button:hover{color:light-dark(#0151a0,#96c7f7)}.panel{background-color:light-dark(oklch(from #0e0e0e l c h/.1),oklch(from #fff l c h/.1))}.sgds-masthead .sgds-masthead-content{display:none;padding-bottom:1rem;padding-top:1rem}.sgds-masthead .sgds-masthead-content.show{display:block}.content-grid{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.icon{margin-top:-.1em}.wrapper{display:flex;gap:.5rem}.content{display:flex;flex-direction:column;gap:.25rem}.content .title{font-weight:600}.content article{color:light-dark(#525252,#a5a5a5)}.banner-icon,.banner-icon-inline{height:20px;width:20px}.banner-icon path,.banner-icon-inline path{fill:light-dark(#1a1a1a,#f3f3f3)}a.trusted-websites-link{color:light-dark(#0269d0,#60aaf4);text-decoration:underline;width:fit-content}a.trusted-websites-link:hover{color:light-dark(#0151a0,#96c7f7)}.sgds-masthead-button:focus,.sgds-masthead-button:focus-visible,a.trusted-websites-link:focus,a.trusted-websites-link:focus-visible{box-shadow:0 0 0 4px #60aaf4;outline:0}@media screen and (max-width:768px){.container{padding:.25rem var(--sgds-mainnav-mobile-padding-x)}.sgds-masthead-content .content-grid{gap:1rem;grid-template-columns:1fr}}`;
|
|
26998
27019
|
|
|
26999
|
-
var css_248z$
|
|
27020
|
+
var css_248z$t = css`svg{vertical-align:middle}`;
|
|
27000
27021
|
|
|
27001
27022
|
/**
|
|
27002
27023
|
* @summary All .gov.sg digital services shall adopt The Official Government Banner for every page in the digital service and be placed at the top of the page.
|
|
@@ -27174,7 +27195,7 @@
|
|
|
27174
27195
|
`;
|
|
27175
27196
|
}
|
|
27176
27197
|
}
|
|
27177
|
-
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$
|
|
27198
|
+
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$t, css_248z$1a, css_248z$u];
|
|
27178
27199
|
__decorate([
|
|
27179
27200
|
state()
|
|
27180
27201
|
], SgdsMasthead.prototype, "toggleVisibility", void 0);
|
|
@@ -27298,7 +27319,7 @@
|
|
|
27298
27319
|
}
|
|
27299
27320
|
}
|
|
27300
27321
|
|
|
27301
|
-
var css_248z$
|
|
27322
|
+
var css_248z$s = css`:host([size=sm]) .modal-panel{max-width:var(--sgds-dimension-480)}:host([size=md]) .modal-panel{max-width:var(--sgds-dimension-640)}:host([size=lg]) .modal-panel{max-width:var(--sgds-dimension-800)}:host([size=fullscreen]) .modal-overlay{background-color:var(--sgds-surface-default)}.modal{align-items:start;bottom:0;display:flex;font-family:var(--sgds-body-font-family);justify-content:center;left:0;position:fixed;right:0;top:0;z-index:105500}.modal-panel{border-radius:var(--sgds-border-radius-md);display:flex;flex-direction:column;gap:var(--sgds-gap-2-xl);margin:var(--sgds-margin-sm) var(--sgds-margin-xs);max-height:calc(100% - var(--sgds-margin-sm) - var(--sgds-margin-sm));position:relative;width:100%}:host(:not([size=fullscreen])) .modal-panel{background-color:var(--sgds-surface-default);max-width:var(--sgds-dimension-640);padding:var(--sgds-padding-xl)}.modal-panel:focus{outline:none}.modal-content{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-2-xl);min-height:0;position:relative}.modal-header__close{position:absolute;right:calc(var(--sgds-padding-md)*-1);top:calc(var(--sgds-padding-md)*-1)}@media screen and (min-width:512px){:host([size=fullscreen]) .modal-panel{margin:var(--sgds-margin-sm)}}@media screen and (min-width:768px){:host([size=fullscreen]) .modal-panel{margin:var(--sgds-margin-md);max-height:calc(100% - var(--sgds-margin-md) - var(--sgds-margin-md))}}@media screen and (min-width:1024px){:host([size=fullscreen]) .modal-panel{margin:var(--sgds-margin-xl) var(--sgds-margin-xs);max-height:calc(100% - var(--sgds-margin-xl) - var(--sgds-margin-xl));max-width:var(--sgds-dimension-896)}}@media screen and (min-width:1280px){:host([size=fullscreen]) .modal-panel{max-width:var(--sgds-dimension-1176)}}@media screen and (min-width:1440px){:host([size=fullscreen]) .modal-panel{max-width:var(--sgds-dimension-1320)}}.modal.show .modal-panel{opacity:1;transform:none}.modal-header{display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;max-width:var(--sgds-dimension-872)}.modal-header__title-description{display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}:host([size=fullscreen]) .modal-header__title-description{gap:var(--sgds-gap-md)}slot[name=title]::slotted(*){--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-margin-xs:var(--sgds-margin-none);--sgds-font-size-6:var(--sgds-font-size-4);align-items:center;display:flex;flex:1 1 auto;font-size:var(--sgds-font-size-6,--sgds-font-size-4);gap:1rem;line-height:var(--sgds-line-height-heading);margin:var(--sgds-margin-none,var(--sgds-margin-xs,--sgds-margin-2-xs))}slot[name=description]::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none);color:var(--sgds-color-subtle);line-height:var(--sgds-line-height-body);margin:var(--sgds-margin-none,--sgds-paragraph-spacing-xl)}.modal-body{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto}.modal-body slot::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none)}.modal-footer{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:var(--sgds-gap-md);justify-content:flex-end;padding-top:var(--sgds-padding-md)}.modal:not(.has-footer) .modal-footer{display:none}.modal-overlay{background-color:var(--sgds-bg-overlay);bottom:0;left:0;position:fixed;right:0;top:0}[hidden]{display:none}`;
|
|
27302
27323
|
|
|
27303
27324
|
/**
|
|
27304
27325
|
* @summary The modal component inform users about a specific task and may contain critical information which users then have to make a decision.
|
|
@@ -27363,7 +27384,7 @@
|
|
|
27363
27384
|
return;
|
|
27364
27385
|
if (buttonElements.length <= 1)
|
|
27365
27386
|
return;
|
|
27366
|
-
if (panelWidth
|
|
27387
|
+
if (panelWidth < SM_BREAKPOINT || (this.size === "fullscreen" && panelWidth < MD_BREAKPOINT)) {
|
|
27367
27388
|
buttonElements.forEach(buttonElement => {
|
|
27368
27389
|
const button = buttonElement;
|
|
27369
27390
|
button.fullWidth = true;
|
|
@@ -27507,20 +27528,22 @@
|
|
|
27507
27528
|
aria-labelledby="title"
|
|
27508
27529
|
tabindex="-1"
|
|
27509
27530
|
>
|
|
27510
|
-
<div class="modal-
|
|
27511
|
-
<div class="modal-
|
|
27512
|
-
<
|
|
27513
|
-
|
|
27531
|
+
<div class="modal-content">
|
|
27532
|
+
<div class="modal-header">
|
|
27533
|
+
<div class="modal-header__title-description">
|
|
27534
|
+
<slot class="modal-title" id="title" name="title"></slot>
|
|
27535
|
+
<slot name="description"></slot>
|
|
27536
|
+
</div>
|
|
27537
|
+
<sgds-close-button
|
|
27538
|
+
class="modal-header__close"
|
|
27539
|
+
@click="${() => this.requestClose("close-button")}"
|
|
27540
|
+
ariaLabel="close modal"
|
|
27541
|
+
></sgds-close-button>
|
|
27514
27542
|
</div>
|
|
27515
|
-
<
|
|
27516
|
-
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
></sgds-close-button>
|
|
27520
|
-
</div>
|
|
27521
|
-
<div class="modal-body">
|
|
27522
|
-
<slot></slot>
|
|
27523
|
-
</div>
|
|
27543
|
+
<div class="modal-body">
|
|
27544
|
+
<slot></slot>
|
|
27545
|
+
</div>
|
|
27546
|
+
</div class="modal-content">
|
|
27524
27547
|
<div class="modal-footer">
|
|
27525
27548
|
<slot name="footer"></slot>
|
|
27526
27549
|
</div>
|
|
@@ -27529,7 +27552,7 @@
|
|
|
27529
27552
|
`;
|
|
27530
27553
|
}
|
|
27531
27554
|
}
|
|
27532
|
-
SgdsModal.styles = [...SgdsElement.styles, css_248z$
|
|
27555
|
+
SgdsModal.styles = [...SgdsElement.styles, css_248z$X, css_248z$t, css_248z$s];
|
|
27533
27556
|
/**@internal */
|
|
27534
27557
|
SgdsModal.dependencies = {
|
|
27535
27558
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -27587,7 +27610,7 @@
|
|
|
27587
27610
|
|
|
27588
27611
|
register("sgds-modal", SgdsModal);
|
|
27589
27612
|
|
|
27590
|
-
var css_248z$
|
|
27613
|
+
var css_248z$r = css`ul{margin-bottom:1rem;margin-top:0;padding-left:2rem}svg{vertical-align:middle}.pagination{display:inline-flex;gap:var(--sgds-gap-2-xs);list-style:none;padding-left:0}.page-link{align-items:center;background-color:var(--sgds-bg-transparent);border:1px solid var(--sgds-border-color-default);border-radius:var(--sgds-border-radius-md);display:flex;height:var(--sgds-dimension-48);justify-content:center;width:var(--sgds-dimension-48)}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:focus,.page-link:not(.ellipsis):hover{background-color:var(--sgds-primary-bg-translucent);color:var(--sgds-primary-color-default);z-index:2}.page-link:focus{box-shadow:var(--sgds-box-shadow-focus);outline:0;z-index:3}.page-item>.page-link:not(.ellipsis){cursor:pointer}.page-item.active .page-link{background-color:var(--sgds-primary-bg-default);border-color:var(--sgds-info);color:var(--sgds-color-fixed-light);z-index:3}.ellipsis-disabled,.page-item.disabled .page-link{opacity:var(--sgds-opacity-50)}.ellipsis-disabled{cursor:not-allowed;pointer-events:none}.pagination-sm .page-link{font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-40);width:var(--sgds-dimension-40)}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pagination-description{align-items:center;display:flex}.pagination-sm .pagination-description{font-size:var(--sgds-font-size-1)}`;
|
|
27591
27614
|
|
|
27592
27615
|
/**
|
|
27593
27616
|
* @summary The Pagination component enables the user to select a specific page from a range of pages
|
|
@@ -27871,7 +27894,7 @@
|
|
|
27871
27894
|
`;
|
|
27872
27895
|
}
|
|
27873
27896
|
}
|
|
27874
|
-
SgdsPagination.styles = [...SgdsElement.styles, css_248z$
|
|
27897
|
+
SgdsPagination.styles = [...SgdsElement.styles, css_248z$r];
|
|
27875
27898
|
/**@internal */
|
|
27876
27899
|
SgdsPagination.dependencies = {
|
|
27877
27900
|
"sgds-icon-button": SgdsIconButton,
|
|
@@ -28008,7 +28031,7 @@
|
|
|
28008
28031
|
*/
|
|
28009
28032
|
const styleMap = directive(StyleMapDirective);
|
|
28010
28033
|
|
|
28011
|
-
var css_248z$
|
|
28034
|
+
var css_248z$q = css`progress{vertical-align:baseline}.progress-container{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs);overflow:hidden}.progress{background-color:var(--sgds-bg-translucent)}.progress-bar{background-color:var(--sgds-primary-surface-default);display:flex;flex-direction:column;height:var(--sgds-dimension-4);justify-content:center;overflow:hidden;transition:width .6s ease}:host([variant=neutral]) .progress-bar{background-color:var(--sgds-neutral-surface-default)}.label{color:var(--sgds-color-subtle);font-size:var(--sgds-font-size-1);white-space:nowrap}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}`;
|
|
28012
28035
|
|
|
28013
28036
|
/**
|
|
28014
28037
|
* @summary Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.
|
|
@@ -28044,7 +28067,7 @@
|
|
|
28044
28067
|
`;
|
|
28045
28068
|
}
|
|
28046
28069
|
}
|
|
28047
|
-
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$
|
|
28070
|
+
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$q];
|
|
28048
28071
|
__decorate([
|
|
28049
28072
|
property({ type: String, reflect: true })
|
|
28050
28073
|
], SgdsProgressBar.prototype, "variant", void 0);
|
|
@@ -28066,7 +28089,7 @@
|
|
|
28066
28089
|
|
|
28067
28090
|
register("sgds-progress-bar", SgdsProgressBar);
|
|
28068
28091
|
|
|
28069
|
-
var css_248z$
|
|
28092
|
+
var css_248z$p = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;gap:var(--sgds-form-gap-lg);position:relative}.input-group>sgds-input{flex:1 1 auto;min-width:0;position:relative}.input-group sgds-button:focus,.input-group>sgds-input:focus{z-index:3}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}`;
|
|
28070
28093
|
|
|
28071
28094
|
/**
|
|
28072
28095
|
* @summary The quantity toggle component is used to increase or decrease an incremental venue, best used when the user needs to enter or adjust the quantity of a selected item.
|
|
@@ -28283,7 +28306,7 @@
|
|
|
28283
28306
|
`;
|
|
28284
28307
|
}
|
|
28285
28308
|
}
|
|
28286
|
-
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$
|
|
28309
|
+
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$R, css_248z$t, css_248z$p];
|
|
28287
28310
|
/** @internal */
|
|
28288
28311
|
SgdsQuantityToggle.dependencies = {
|
|
28289
28312
|
"sgds-input": SgdsInput,
|
|
@@ -28322,7 +28345,7 @@
|
|
|
28322
28345
|
|
|
28323
28346
|
register("sgds-quantity-toggle", SgdsQuantityToggle);
|
|
28324
28347
|
|
|
28325
|
-
var css_248z$
|
|
28348
|
+
var css_248z$o = css`:host{outline:0}input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input-container{height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:50%;height:var(--sgds-form-height-sm);width:var(--sgds-form-height-sm)}.form-check-input:not([disabled]):not(.is-invalid):not([aria-checked=true]):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-check-input:focus,.form-check-input:focus-visible{border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-check-input:checked,.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg width="8" height="8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:not([disabled]):not(.is-invalid):checked:focus-visible,.form-check-input:not([disabled]):not(.is-invalid):checked:hover,.form-check-input:not([disabled]):not(.is-invalid)[checked]:focus-visible,.form-check-input:not([disabled]):not(.is-invalid)[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-check-input:not([disabled]).is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-check-input:checked.is-invalid,.form-check-input[checked].is-invalid{background-color:var(--sgds-form-danger-surface-default)}`;
|
|
28326
28349
|
|
|
28327
28350
|
/**
|
|
28328
28351
|
* @summary Radio allows the user to select one option from a set while seeing all available options.
|
|
@@ -28408,7 +28431,7 @@
|
|
|
28408
28431
|
`;
|
|
28409
28432
|
}
|
|
28410
28433
|
}
|
|
28411
|
-
SgdsRadio.styles = [...SgdsElement.styles, css_248z$
|
|
28434
|
+
SgdsRadio.styles = [...SgdsElement.styles, css_248z$S, css_248z$o];
|
|
28412
28435
|
__decorate([
|
|
28413
28436
|
property({ type: Boolean, reflect: true })
|
|
28414
28437
|
], SgdsRadio.prototype, "checked", void 0);
|
|
@@ -28431,7 +28454,7 @@
|
|
|
28431
28454
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
28432
28455
|
], SgdsRadio.prototype, "handleDisabledChange", null);
|
|
28433
28456
|
|
|
28434
|
-
var css_248z$
|
|
28457
|
+
var css_248z$n = css`fieldset{border:0;gap:var(--sgds-form-gap-md);margin:0;min-width:0;padding:0}.label-hint-container,fieldset{display:flex;flex-direction:column}.label-hint-container{gap:var(--sgds-form-gap-sm)}.radio-group-validation-input{display:none}.radio-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}`;
|
|
28435
28458
|
|
|
28436
28459
|
/**
|
|
28437
28460
|
* @summary RadioGroup group multiple radios so they function as a single form control.
|
|
@@ -28662,7 +28685,7 @@
|
|
|
28662
28685
|
`;
|
|
28663
28686
|
}
|
|
28664
28687
|
}
|
|
28665
|
-
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$
|
|
28688
|
+
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$n];
|
|
28666
28689
|
__decorate([
|
|
28667
28690
|
query("slot:not([name])")
|
|
28668
28691
|
], SgdsRadioGroup.prototype, "defaultSlot", void 0);
|
|
@@ -28703,7 +28726,7 @@
|
|
|
28703
28726
|
register("sgds-radio", SgdsRadio);
|
|
28704
28727
|
register("sgds-radio-group", SgdsRadioGroup);
|
|
28705
28728
|
|
|
28706
|
-
var css_248z$
|
|
28729
|
+
var css_248z$m = css`:host{--sidenav-sticky-top:0rem;padding:var(--sgds-padding-md)}.sticky{height:calc(100vh - var(--sidenav-sticky-top));overflow-y:visible;position:sticky;top:var(--sidenav-sticky-top)}`;
|
|
28707
28730
|
|
|
28708
28731
|
/**
|
|
28709
28732
|
* @summary The side navigation is used to display a list of links to move between pages within a related category.
|
|
@@ -28748,7 +28771,7 @@
|
|
|
28748
28771
|
`;
|
|
28749
28772
|
}
|
|
28750
28773
|
}
|
|
28751
|
-
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$
|
|
28774
|
+
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$m];
|
|
28752
28775
|
__decorate([
|
|
28753
28776
|
property({ type: Boolean, attribute: true })
|
|
28754
28777
|
], SgdsSidenav.prototype, "sticky", void 0);
|
|
@@ -28756,7 +28779,7 @@
|
|
|
28756
28779
|
queryAssignedElements()
|
|
28757
28780
|
], SgdsSidenav.prototype, "defaultNodes", void 0);
|
|
28758
28781
|
|
|
28759
|
-
var css_248z$
|
|
28782
|
+
var css_248z$l = css`:host([class^=second-level]) .sidenav-btn{font-weight:var(--sgds-font-weight-regular);padding-left:var(--sgds-padding-3-xl)}button{all:unset}.sidenav-btn{background:0;border:0;border-radius:var(--sgds-border-radius-md);display:flex;font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-body);padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) calc(var(--sgds-padding-sm) + var(--sgds-padding-2-xs));text-align:initial;width:100%;.caret-icon,slot[name=caret-icon]::slotted(*){margin-bottom:auto;margin-left:auto;transform:rotate(180deg);transition:all .3s ease-in-out}}.sidenav-btn:hover:not(.disabled){background-color:var(--sgds-bg-translucent-subtle)}.sidenav-btn.active{color:var(--sgds-color-default)}.sidenav-btn.disabled{opacity:var(--sgds-opacity-50);pointer-events:none}.sidenav-btn:not(.active){.caret-icon,slot[name=caret-icon]::slotted(*){transform:rotate(0deg)}}.sidenav-btn:focus-visible:not(.disabled),.sidenav-btn:focus:not(.disabled){background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}.no-menu-default:focus,.no-menu-default:focus-visible{background-color:var(--sgds-default-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus)}.no-menu-default::slotted(a){background:0;border:0;border-radius:var(--sgds-border-radius-md);color:inherit!important;display:flex;font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-semibold)!important;gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-body)!important;line-height:var(--sgds-line-height-body);padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) calc(var(--sgds-padding-sm) + var(--sgds-padding-2-xs));text-decoration:none!important}.no-menu-default::slotted(a:focus),.no-menu-default::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0!important}:host([class^=first-level][active]) .no-menu-default::slotted(a){background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis)!important}:host([class^=first-level][disabled]) .no-menu-default::slotted(a){opacity:var(--sgds-opacity-50);pointer-events:none}`;
|
|
28760
28783
|
|
|
28761
28784
|
/**
|
|
28762
28785
|
* @description SgdsSidenavItem can function as either a menu type or a link type. Its type is determined by the children slotted into the default slot.
|
|
@@ -28966,7 +28989,7 @@
|
|
|
28966
28989
|
`;
|
|
28967
28990
|
}
|
|
28968
28991
|
}
|
|
28969
|
-
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$
|
|
28992
|
+
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$l];
|
|
28970
28993
|
/** @internal */
|
|
28971
28994
|
SgdsSidenavItem.dependencies = {
|
|
28972
28995
|
"sgds-icon": SgdsIcon
|
|
@@ -29007,7 +29030,7 @@
|
|
|
29007
29030
|
options: { duration: 200, easing: "ease-in-out" }
|
|
29008
29031
|
});
|
|
29009
29032
|
|
|
29010
|
-
var css_248z$
|
|
29033
|
+
var css_248z$k = css`:host([class^=third-level]) ::slotted(a){padding-left:calc(var(--sgds-padding-xl) + var(--sgds-padding-3-xl))}::slotted(a){--sgds-link-color-default:var(--sgds-color-default);border-radius:var(--sgds-border-radius-md);color:var(--sgds-color-default,var(--sgds-link-color-default));display:block;padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-3-xl);text-decoration:none!important}:host([active]) ::slotted(a){--sgds-link-color-default:var(--sgds-primary-color-emphasis);background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-default))}:host(:not([disabled]):not([active])) ::slotted(a:hover){background-color:var(--sgds-bg-translucent-subtle)}::slotted(a:focus),::slotted(a:focus-visible),::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default,var(--sgds-link-color-emphasis))}:host([active]) ::slotted(a:focus),:host([active]) ::slotted(a:focus-visible),:host([active]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-emphasis);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-emphasis))}:host([disabled]) ::slotted(a){opacity:var(--sgds-opacity-50);pointer-events:none}:host([disabled]) ::slotted(a:focus),:host([disabled]) ::slotted(a:focus-visible){box-shadow:none;outline:0}::slotted(a:focus),::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}:host([active]) ::slotted(a:focus),:host([active]) ::slotted(a:focus-visible){background-color:var(--sgds-primary-bg-translucent)}`;
|
|
29011
29034
|
|
|
29012
29035
|
/**
|
|
29013
29036
|
* @slot default - slot for label of anchor tag.
|
|
@@ -29044,7 +29067,7 @@
|
|
|
29044
29067
|
return html$1 ` <slot @slotchange=${this._handleSlotChange}></slot> `;
|
|
29045
29068
|
}
|
|
29046
29069
|
}
|
|
29047
|
-
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$
|
|
29070
|
+
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$k];
|
|
29048
29071
|
__decorate([
|
|
29049
29072
|
property({ type: Boolean, reflect: true })
|
|
29050
29073
|
], SgdsSidenavLink.prototype, "active", void 0);
|
|
@@ -29062,7 +29085,7 @@
|
|
|
29062
29085
|
register("sgds-sidenav-item", SgdsSidenavItem);
|
|
29063
29086
|
register("sgds-sidenav-link", SgdsSidenavLink);
|
|
29064
29087
|
|
|
29065
|
-
var css_248z$
|
|
29088
|
+
var css_248z$j = css`.skeleton{--bg:var(--sgds-bg-translucent-subtle);background-color:var(--bg);border-radius:var(--sgds-border-radius-sm);display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}.skeleton.skeleton-paragraph{background-color:transparent}.skeleton.skeleton-paragraph.auto-size-rows>div[class*=skeleton-row]{background-color:var(--sgds-bg-translucent);border-radius:var(--sgds-border-radius-sm);height:-webkit-fill-available}.sheen{--sheen-color:var(--sgds-bg-translucent);animation:sheen 8s ease-in-out infinite;background:linear-gradient(270deg,var(--bg) 0,var(--sheen-color) 33.33%,var(--sheen-color) 66.67%,var(--bg) 100%);background-size:400% 100%}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.sheen{animation:none}}`;
|
|
29066
29089
|
|
|
29067
29090
|
/**
|
|
29068
29091
|
* @summary A skeleton is a low-fidelity visual placeholder that represents the loading of interface elements
|
|
@@ -29110,7 +29133,7 @@
|
|
|
29110
29133
|
`;
|
|
29111
29134
|
}
|
|
29112
29135
|
}
|
|
29113
|
-
SgdsSkeleton.styles = [css_248z$
|
|
29136
|
+
SgdsSkeleton.styles = [css_248z$j];
|
|
29114
29137
|
__decorate([
|
|
29115
29138
|
query(".skeleton")
|
|
29116
29139
|
], SgdsSkeleton.prototype, "skeleton", void 0);
|
|
@@ -29137,7 +29160,7 @@
|
|
|
29137
29160
|
|
|
29138
29161
|
register("sgds-spinner", SgdsSpinner);
|
|
29139
29162
|
|
|
29140
|
-
var css_248z$
|
|
29163
|
+
var css_248z$i = css`input{margin:0}.form-check{align-items:center;display:flex;gap:var(--sgds-form-gap-lg)}.form-check-input{--sgds-switch-width:var(--sgds-form-width-xl);--sgds-switch-height:var(--sgds-form-height-md);--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.5 12c0-6.627 5.373-12 12-12s12 5.373 12 12-5.373 12-12 12-12-5.373-12-12Z" fill="%23fff"/></svg>');appearance:none;background-color:var(--sgds-form-surface-subtle);background-image:var(--sgds-switch-bg-image);background-position:left var(--sgds-form-padding-inline-sm) center;background-repeat:no-repeat;background-size:var(--sgds-form-width-xs) var(--sgds-form-height-sm);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-form-border-radius-full);height:var(--sgds-switch-height);padding:0 var(--sgds-form-padding-inline-sm);transition:background-position .15s ease-in-out;width:var(--sgds-switch-width)}.form-check-input:focus,.form-check-input:focus-visible{background-color:var(--sgds-form-surface-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-check-input:not([disabled]):hover{background-color:var(--sgds-form-surface-emphasis)}.form-check-input:checked,.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);background-position:right var(--sgds-form-padding-inline-sm) center}.form-check-input:not([disabled]):checked:focus,.form-check-input:not([disabled]):checked:hover,.form-check-input:not([disabled])[checked]:focus-visible,.form-check-input:not([disabled])[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-50)}:host([size=sm]) .form-check{font-size:var(--sgds-font-size-1)}:host([size=sm]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-md);--sgds-switch-height:var(--sgds-form-height-sm);background-size:var(--sgds-form-width-2-xs) var(--sgds-form-height-2-xs)}:host([size=lg]) .form-check{font-size:var(--sgds-font-size-3)}:host([size=lg]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-3-xl);--sgds-switch-height:var(--sgds-form-height-lg);background-size:var(--sgds-form-width-sm) var(--sgds-form-height-md)}@media (prefers-reduced-motion:reduce){.form-check .form-check-input{transition:none}}:host([icon]) .form-check-input:checked,:host([icon]) .form-check-input[checked]{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16Zm8.94-21.778a.776.776 0 0 0-.424-.424.781.781 0 0 0-.854.17L13.261 20.372l-4.924-4.925a.783.783 0 1 0-1.108 1.108l5.478 5.478a.777.777 0 0 0 .692.217.787.787 0 0 0 .416-.217L24.77 11.076a.777.777 0 0 0 .17-.854Z" fill="%23fff"/></svg>')}:host([icon]) .form-check-input{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16ZM10.164 9.416a.75.75 0 0 0-.53 1.28L14.937 16l-5.303 5.303a.75.75 0 0 0 1.06 1.061l5.304-5.303 5.303 5.303a.75.75 0 1 0 1.06-1.06L17.06 16l5.303-5.303a.75.75 0 0 0-1.06-1.061l-5.304 5.304-5.303-5.304a.75.75 0 0 0-.53-.22Z" fill="%23fff"/></svg>')}.d-none{display:none}`;
|
|
29141
29164
|
|
|
29142
29165
|
/**
|
|
29143
29166
|
* @summary Switch component is used to toggle on and off or yes or no action.
|
|
@@ -29235,7 +29258,7 @@
|
|
|
29235
29258
|
`;
|
|
29236
29259
|
}
|
|
29237
29260
|
}
|
|
29238
|
-
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$
|
|
29261
|
+
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$S, css_248z$i];
|
|
29239
29262
|
__decorate([
|
|
29240
29263
|
property({ reflect: true, type: String })
|
|
29241
29264
|
], SgdsSwitch.prototype, "size", void 0);
|
|
@@ -29260,7 +29283,7 @@
|
|
|
29260
29283
|
|
|
29261
29284
|
register("sgds-switch", SgdsSwitch);
|
|
29262
29285
|
|
|
29263
|
-
var css_248z$
|
|
29286
|
+
var css_248z$h = css`.stepper{display:flex;flex-wrap:wrap}.stepper.vertical{flex-direction:column}.stepper.horizontal .stepper-item-container{align-items:center;display:flex;flex-basis:1em;flex-direction:column;flex-grow:1;flex-shrink:1;position:relative}.stepper.vertical .stepper-item-container{position:relative;width:fit-content}.stepper .stepper-item{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}.stepper.vertical .stepper-item{align-items:flex-start;flex-direction:row}.stepper.vertical .stepper-item-container:not(:last-child) .stepper-item{margin-bottom:var(--sgds-padding-xl)}.stepper .stepper-item:focus,.stepper .stepper-item:focus-visible{outline:0}.stepper .stepper-item.is-clickable:focus,.stepper .stepper-item.is-clickable:focus-visible{box-shadow:var(--sgds-box-shadow-focus)}.stepper.horizontal .stepper-item-container:not(:first-child) .stepper-item:before{background:var(--sgds-border-color-translucent);bottom:0;content:" ";height:var(--sgds-dimension-2);left:calc(-50% + 16px);position:absolute;top:15px;width:calc(100% - var(--sgds-dimension-32))}.stepper.vertical .stepper-item-container:not(:last-child) .stepper-item:after{background:var(--sgds-bg-translucent);bottom:0;content:" ";height:calc(100% - var(--sgds-dimension-32));left:15px;position:absolute;top:32px;width:var(--sgds-dimension-2)}.stepper.horizontal .stepper-item-container .stepper-item.is-active:before,.stepper.horizontal .stepper-item-container .stepper-item.is-completed:before,.stepper.vertical .stepper-item-container .stepper-item.is-completed:after{background:var(--sgds-primary-border-color-default)}.stepper .stepper-item.is-clickable{cursor:pointer}.stepper .stepper-marker{align-items:center;background:var(--sgds-bg-translucent);border:var(--sgds-border-width-2) solid var(--sgds-border-color-transparent);border-radius:50%;color:var(--sgds-color-default);display:flex;height:var(--sgds-dimension-32);justify-content:center;width:var(--sgds-dimension-32);z-index:1}.stepper:not(.vertical) .stepper-detail{max-width:var(--sgds-dimension-128);text-align:center}.stepper.vertical .stepper-detail{padding:var(--sgds-padding-2-xs) 0 0;text-align:left}.stepper .stepper-item:not(.is-active):not(.is-completed) .stepper-detail{color:var(--sgds-color-subtle)}.stepper .stepper-item.is-clickable:focus .stepper-marker,.stepper .stepper-item.is-clickable:focus-visible .stepper-marker,.stepper .stepper-item.is-clickable:hover .stepper-marker{background-color:var(--sgds-primary-surface-emphasis);border-color:var(--sgds-border-color-transparent);color:var(--sgds-color-fixed-light)}.stepper .stepper-item.is-clickable:focus .stepper-detail,.stepper .stepper-item.is-clickable:focus-visible .stepper-detail,.stepper .stepper-item.is-clickable:hover .stepper-detail{color:var(--sgds-primary-color-emphasis)}.stepper .stepper-item.is-clickable .stepper-detail,.stepper.clickable .stepper-item.is-active .stepper-detail{color:var(--sgds-primary-color-default)}.stepper .stepper-item.is-active .stepper-marker{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}.stepper .stepper-item.is-completed .stepper-marker{background-color:var(--sgds-bg-transparent);border:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}`;
|
|
29264
29287
|
|
|
29265
29288
|
/**
|
|
29266
29289
|
* @summary Steppers are used to inform users which step they are at in a form or a process
|
|
@@ -29378,7 +29401,7 @@
|
|
|
29378
29401
|
`;
|
|
29379
29402
|
}
|
|
29380
29403
|
}
|
|
29381
|
-
SgdsStepper.styles = [...SgdsElement.styles, css_248z$
|
|
29404
|
+
SgdsStepper.styles = [...SgdsElement.styles, css_248z$h];
|
|
29382
29405
|
/** @internal */
|
|
29383
29406
|
SgdsStepper.dependencies = { "sgds-icon": SgdsIcon };
|
|
29384
29407
|
__decorate([
|
|
@@ -29402,7 +29425,7 @@
|
|
|
29402
29425
|
|
|
29403
29426
|
register("sgds-stepper", SgdsStepper);
|
|
29404
29427
|
|
|
29405
|
-
var css_248z$
|
|
29428
|
+
var css_248z$g = css`:host([density=compact]) .tab{font-size:var(--sgds-font-size-1);padding:var(--sgds-spacer-3) var(--sgds-spacer-5)}:host(:not([active])) .tab{cursor:pointer}:host([variant=solid]) .tab{background-color:var(--sgds-bg-translucent-subtle);border-radius:var(--sgds-border-radius-md)}:host([variant=solid][active]) .tab{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}:host([variant=solid]:not([active]):not([disabled])) .tab:focus,:host([variant=solid]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent);box-shadow:var(--sgds-box-shadow-focus);outline:0}:host([variant=solid]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent)}:host([disabled]) .tab{cursor:not-allowed;opacity:var(--sgds-opacity-50)}:host([variant=underlined][active]) .tab{color:var(--sgds-primary-color-default)}:host([variant=underlined][orientation=vertical]) .tab{border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([variant=underlined][orientation=vertical][active]) .tab:after{background-color:var(--sgds-primary-surface-default);bottom:0;content:"";height:100%;position:absolute;right:-1px;width:var(--sgds-border-width-4)}:host([variant=underlined][orientation=horizontal]) .tab{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([variant=underlined][orientation=horizontal][active]) .tab:after{background-color:var(--sgds-primary-surface-default);bottom:-1px;content:"";height:var(--sgds-border-width-4);left:0;position:absolute;width:100%}:host([variant=underlined]:not([active]):not([disabled])) .tab:focus,:host([variant=underlined]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}:host([variant=underlined]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent-subtle)}.tab{align-items:center;color:var(--sgds-color-default);display:flex;gap:var(--sgds-spacer-3);padding:var(--sgds-spacer-4) var(--sgds-spacer-5);position:relative}.tab:focus,.tab:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
29406
29429
|
|
|
29407
29430
|
let id$1 = 0;
|
|
29408
29431
|
/**
|
|
@@ -29458,7 +29481,7 @@
|
|
|
29458
29481
|
`;
|
|
29459
29482
|
}
|
|
29460
29483
|
}
|
|
29461
|
-
SgdsTab.styles = [css_248z$
|
|
29484
|
+
SgdsTab.styles = [css_248z$g];
|
|
29462
29485
|
__decorate([
|
|
29463
29486
|
query(".tab")
|
|
29464
29487
|
], SgdsTab.prototype, "tab", void 0);
|
|
@@ -29478,7 +29501,7 @@
|
|
|
29478
29501
|
watch("disabled")
|
|
29479
29502
|
], SgdsTab.prototype, "handleDisabledChange", null);
|
|
29480
29503
|
|
|
29481
|
-
var css_248z$
|
|
29504
|
+
var css_248z$f = css`.tab-group{display:flex;flex-direction:column;gap:var(--sgds-gap-xl)}.tab-group__nav{display:flex;flex-direction:row}.tab-group__content{flex:1}:host([orientation=vertical]) .tab-group{flex-direction:row}:host([orientation=vertical]) .tab-group__nav{flex-direction:column}:host([variant=solid]) .tab-group__nav{gap:var(--sgds-gap-xs)}`;
|
|
29482
29505
|
|
|
29483
29506
|
/**
|
|
29484
29507
|
* @summary Tab Group organizes content into a container with the syncing of tab and their corresponding panels.
|
|
@@ -29695,7 +29718,7 @@
|
|
|
29695
29718
|
`;
|
|
29696
29719
|
}
|
|
29697
29720
|
}
|
|
29698
|
-
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$
|
|
29721
|
+
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$f];
|
|
29699
29722
|
__decorate([
|
|
29700
29723
|
query(".tab-group")
|
|
29701
29724
|
], SgdsTabGroup.prototype, "_tabGroup", void 0);
|
|
@@ -29718,7 +29741,7 @@
|
|
|
29718
29741
|
queryAssignedElements({ slot: "nav", flatten: true })
|
|
29719
29742
|
], SgdsTabGroup.prototype, "_navSlot", void 0);
|
|
29720
29743
|
|
|
29721
|
-
var css_248z$
|
|
29744
|
+
var css_248z$e = css`.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;
|
|
29722
29745
|
|
|
29723
29746
|
let id = 0;
|
|
29724
29747
|
/**
|
|
@@ -29755,7 +29778,7 @@
|
|
|
29755
29778
|
`;
|
|
29756
29779
|
}
|
|
29757
29780
|
}
|
|
29758
|
-
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$
|
|
29781
|
+
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$e];
|
|
29759
29782
|
__decorate([
|
|
29760
29783
|
property({ reflect: true })
|
|
29761
29784
|
], SgdsTabPanel.prototype, "name", void 0);
|
|
@@ -29770,10 +29793,13 @@
|
|
|
29770
29793
|
register("sgds-tab-group", SgdsTabGroup);
|
|
29771
29794
|
register("sgds-tab-panel", SgdsTabPanel);
|
|
29772
29795
|
|
|
29773
|
-
var css_248z$
|
|
29796
|
+
var css_248z$d = css`tbody,td,th,thead,tr{border:var(--sgds-border-width-0) solid;border-color:inherit}th{text-align:-webkit-match-parent}table{border-collapse:collapse;caption-side:bottom}.table{border-color:var(--sgds-border-color-default);display:table;vertical-align:top;width:100%}.table>:not(caption) td,.table>:not(caption) th{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);padding:var(--sgds-padding-lg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table>thead th{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-emphasis)}.table-group-divider{border-top:calc(var(--sgds-border-width)*2) solid}.table>:not(:first-child){border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-emphasis)}.table-responsive{-webkit-overflow-scrolling:touch;overflow-x:auto}@media (max-width:575.98px){.table-responsive-sm{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:767.98px){.table-responsive-md{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:991.98px){.table-responsive-lg{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:1199.98px){.table-responsive-xl{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:1399.98px){.table-responsive-xxl{-webkit-overflow-scrolling:touch;overflow-x:auto}}`;
|
|
29774
29797
|
|
|
29775
29798
|
/**
|
|
29776
|
-
* @summary
|
|
29799
|
+
* @summary Table is used for displaying collections of data in organized rows and columns.
|
|
29800
|
+
* It supports two rendering methods: supply an array of data for automatic table generation, or use the slot to insert custom table elements for full structural control.
|
|
29801
|
+
*
|
|
29802
|
+
* @slot - Insert custom table elements (such as rows, headers, or cells) to define the table structure manually.
|
|
29777
29803
|
*/
|
|
29778
29804
|
class SgdsTable extends SgdsElement {
|
|
29779
29805
|
constructor() {
|
|
@@ -29795,18 +29821,17 @@
|
|
|
29795
29821
|
*/
|
|
29796
29822
|
this.headerPosition = "horizontal";
|
|
29797
29823
|
/** @internal */
|
|
29798
|
-
this.
|
|
29824
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
29799
29825
|
}
|
|
29800
29826
|
connectedCallback() {
|
|
29801
29827
|
super.connectedCallback();
|
|
29802
|
-
this.originalTableData = [...this.tableData];
|
|
29803
29828
|
}
|
|
29804
29829
|
_renderTable() {
|
|
29805
29830
|
if (this.headerPosition === "horizontal") {
|
|
29806
29831
|
return html$1 `
|
|
29807
29832
|
<thead>
|
|
29808
29833
|
<tr>
|
|
29809
|
-
${this.rowHeader.map((header
|
|
29834
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
29810
29835
|
</tr>
|
|
29811
29836
|
</thead>
|
|
29812
29837
|
<tbody>
|
|
@@ -29823,7 +29848,7 @@
|
|
|
29823
29848
|
<thead>
|
|
29824
29849
|
<tr>
|
|
29825
29850
|
<th></th>
|
|
29826
|
-
${this.rowHeader.map((header
|
|
29851
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
29827
29852
|
</tr>
|
|
29828
29853
|
</thead>
|
|
29829
29854
|
<tbody>
|
|
@@ -29849,6 +29874,7 @@
|
|
|
29849
29874
|
}
|
|
29850
29875
|
}
|
|
29851
29876
|
render() {
|
|
29877
|
+
const hasDefaultSlot = this.hasSlotController.test("[default]");
|
|
29852
29878
|
return html$1 `
|
|
29853
29879
|
<div
|
|
29854
29880
|
class=${classMap({
|
|
@@ -29860,14 +29886,18 @@
|
|
|
29860
29886
|
})}
|
|
29861
29887
|
tabindex="0"
|
|
29862
29888
|
>
|
|
29863
|
-
<table class="table">
|
|
29864
|
-
|
|
29865
|
-
|
|
29889
|
+
<slot id="table-slot" class="table"></slot>
|
|
29890
|
+
|
|
29891
|
+
${!hasDefaultSlot
|
|
29892
|
+
? html$1 `<table class="table">
|
|
29893
|
+
${this._renderTable()}
|
|
29894
|
+
</table>`
|
|
29895
|
+
: ""}
|
|
29866
29896
|
</div>
|
|
29867
29897
|
`;
|
|
29868
29898
|
}
|
|
29869
29899
|
}
|
|
29870
|
-
SgdsTable.styles = [...SgdsElement.styles, css_248z$
|
|
29900
|
+
SgdsTable.styles = [...SgdsElement.styles, css_248z$d];
|
|
29871
29901
|
__decorate([
|
|
29872
29902
|
property({ type: String, reflect: true })
|
|
29873
29903
|
], SgdsTable.prototype, "responsive", void 0);
|
|
@@ -29881,13 +29911,85 @@
|
|
|
29881
29911
|
property({ type: Array })
|
|
29882
29912
|
], SgdsTable.prototype, "tableData", void 0);
|
|
29883
29913
|
__decorate([
|
|
29884
|
-
property({ type: String
|
|
29914
|
+
property({ type: String })
|
|
29885
29915
|
], SgdsTable.prototype, "headerPosition", void 0);
|
|
29916
|
+
|
|
29917
|
+
var css_248z$c = css`:host{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-emphasis);display:table-cell;font-weight:700;padding:var(--sgds-padding-lg)}:host(:not([border])){border-color:var(--sgds-border-color-muted)}`;
|
|
29918
|
+
|
|
29919
|
+
/**
|
|
29920
|
+
* @summary Table head represents a table header cell that identifies a group of information within the table.
|
|
29921
|
+
*
|
|
29922
|
+
* @slot - Place any elements inside to display as the header content.
|
|
29923
|
+
*/
|
|
29924
|
+
class SgdsTableHead extends SgdsElement {
|
|
29925
|
+
constructor() {
|
|
29926
|
+
super(...arguments);
|
|
29927
|
+
/**
|
|
29928
|
+
* To indicate if the header will have a darker bottom border style
|
|
29929
|
+
*/
|
|
29930
|
+
this.border = false;
|
|
29931
|
+
}
|
|
29932
|
+
_handleBorderChange() {
|
|
29933
|
+
var _a, _b;
|
|
29934
|
+
this.border = ((_b = (_a = this.nextElementSibling) === null || _a === void 0 ? void 0 : _a.tagName) === null || _b === void 0 ? void 0 : _b.toLowerCase()) !== "sgds-table-cell";
|
|
29935
|
+
this.border ? this.setAttribute("border", "true") : this.removeAttribute("border");
|
|
29936
|
+
}
|
|
29937
|
+
connectedCallback() {
|
|
29938
|
+
super.connectedCallback();
|
|
29939
|
+
this.setAttribute("role", "columnheader");
|
|
29940
|
+
}
|
|
29941
|
+
render() {
|
|
29942
|
+
return html$1 `<slot></slot>`;
|
|
29943
|
+
}
|
|
29944
|
+
}
|
|
29945
|
+
SgdsTableHead.styles = [...SgdsElement.styles, css_248z$c];
|
|
29886
29946
|
__decorate([
|
|
29887
29947
|
state()
|
|
29888
|
-
],
|
|
29948
|
+
], SgdsTableHead.prototype, "border", void 0);
|
|
29949
|
+
__decorate([
|
|
29950
|
+
watch("border")
|
|
29951
|
+
], SgdsTableHead.prototype, "_handleBorderChange", null);
|
|
29952
|
+
|
|
29953
|
+
var css_248z$b = css`:host{display:table-row;width:100%}`;
|
|
29954
|
+
|
|
29955
|
+
/**
|
|
29956
|
+
* @summary Table row organizes and groups table cells or header cells into a single horizontal line within the table.
|
|
29957
|
+
*
|
|
29958
|
+
* @slot - Insert any table cell or header elements to be displayed as part of this row.
|
|
29959
|
+
*/
|
|
29960
|
+
class SgdsTableRow extends SgdsElement {
|
|
29961
|
+
connectedCallback() {
|
|
29962
|
+
super.connectedCallback();
|
|
29963
|
+
this.setAttribute("role", "row");
|
|
29964
|
+
}
|
|
29965
|
+
render() {
|
|
29966
|
+
return html$1 `<slot class="table-row"></slot>`;
|
|
29967
|
+
}
|
|
29968
|
+
}
|
|
29969
|
+
SgdsTableRow.styles = [...SgdsElement.styles, css_248z$b];
|
|
29970
|
+
|
|
29971
|
+
var css_248z$a = css`:host{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:table-cell;padding:var(--sgds-padding-lg)}`;
|
|
29972
|
+
|
|
29973
|
+
/**
|
|
29974
|
+
* @summary Table cell is used for presenting individual data values, interactive elements, or custom content within a table row.
|
|
29975
|
+
*
|
|
29976
|
+
* @slot - Insert any elements to be rendered as the cell’s content.
|
|
29977
|
+
*/
|
|
29978
|
+
class SgdsTableCell extends SgdsElement {
|
|
29979
|
+
connectedCallback() {
|
|
29980
|
+
super.connectedCallback();
|
|
29981
|
+
this.setAttribute("role", "cell");
|
|
29982
|
+
}
|
|
29983
|
+
render() {
|
|
29984
|
+
return html$1 ` <slot class="table-cell"></slot> `;
|
|
29985
|
+
}
|
|
29986
|
+
}
|
|
29987
|
+
SgdsTableCell.styles = [...SgdsElement.styles, css_248z$a];
|
|
29889
29988
|
|
|
29890
29989
|
register("sgds-table", SgdsTable);
|
|
29990
|
+
register("sgds-table-head", SgdsTableHead);
|
|
29991
|
+
register("sgds-table-row", SgdsTableRow);
|
|
29992
|
+
register("sgds-table-cell", SgdsTableCell);
|
|
29891
29993
|
|
|
29892
29994
|
var css_248z$9 = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.form-control-container.disabled{opacity:var(--sgds-opacity-50)}textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;resize:vertical}.form-control{appearance:none;background-clip:padding-box;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);color:var(--sgds-form-color-default);min-height:var(--sgds-dimension-136);outline:0;padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}.form-control[readonly]{border-color:var(--sgds-border-color-muted)}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control:not([disabled]):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control:not([disabled]):not(.is-invalid):focus,.form-control:not([disabled]):not(.is-invalid):focus-visible{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus)}.form-control.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control:disabled{background-color:var(--sgds-form-surface-muted)}.textarea-resize-none{resize:none}.textarea-resize-vertical{resize:vertical}.textarea-resize-auto{height:auto;overflow-y:hidden;resize:none}.textarea-info-container{display:flex;justify-content:space-between}.word-count{margin-left:auto}`;
|
|
29893
29995
|
|
|
@@ -30158,7 +30260,7 @@
|
|
|
30158
30260
|
|
|
30159
30261
|
register("sgds-textarea", SgdsTextarea);
|
|
30160
30262
|
|
|
30161
|
-
var css_248z$8 = css`:host([variant=info]) slot[name=icon]::slotted(*){color:var(--sgds-primary-color-default)}:host([variant=success]) slot[name=icon]::slotted(*){color:var(--sgds-success-color-default)}:host([variant=danger]) slot[name=icon]::slotted(*){color:var(--sgds-danger-color-default)}:host([variant=warning]) slot[name=icon]::slotted(*){color:var(--sgds-warning-color-fixed-light)}.toast{align-items:flex-start;background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 2px 0 rgba(0,0,0,.12),0 8px 16px 0 rgba(0,0,0,.14);display:flex;flex-direction:row;gap:var(--sgds-gap-xs);max-width:var(--sgds-dimension-480);min-width:var(--sgds-dimension-320);padding:var(--sgds-padding-md);pointer-events:auto;width:320px}.toast-content{word-wrap:break-word;gap:var(--sgds-gap-sm)}.toast-body,.toast-content{display:flex;flex-direction:column}.toast-body strong{line-height:var(--sgds-line-height-min)}.toast-body span{color:var(--sgds-color-subtle)}.toast-action{word-wrap:break-word;color:var(--sgds-link-color-default)}.toast-header strong{margin-right:auto;word-break:break-all}.close-btn{margin-left:auto}.d-none{display:none}`;
|
|
30263
|
+
var css_248z$8 = css`:host([variant=info]) slot[name=icon]::slotted(*){color:var(--sgds-primary-color-default)}:host([variant=success]) slot[name=icon]::slotted(*){color:var(--sgds-success-color-default)}:host([variant=danger]) slot[name=icon]::slotted(*){color:var(--sgds-danger-color-default)}:host([variant=warning]) slot[name=icon]::slotted(*){color:var(--sgds-warning-color-fixed-light)}.toast{align-items:flex-start;background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 2px 0 rgba(0,0,0,.12),0 8px 16px 0 rgba(0,0,0,.14);display:flex;flex-direction:row;gap:var(--sgds-gap-xs);max-width:var(--sgds-dimension-480);min-width:var(--sgds-dimension-320);padding:var(--sgds-padding-md);pointer-events:auto;width:320px}.toast-content{word-wrap:break-word;gap:var(--sgds-gap-sm)}.toast-body,.toast-content{display:flex;flex-direction:column}.toast-body{gap:var(--sgds-gap-2-xs)}.toast-body strong{line-height:var(--sgds-line-height-min)}.toast-body span{color:var(--sgds-color-subtle)}.toast-action{word-wrap:break-word;color:var(--sgds-link-color-default)}.toast-header strong{margin-right:auto;word-break:break-all}.close-btn{margin-left:auto}.d-none{display:none}`;
|
|
30162
30264
|
|
|
30163
30265
|
/**
|
|
30164
30266
|
* @summary Toast allows you to convey quick messaging notifications to the user.
|
|
@@ -31378,10 +31480,11 @@
|
|
|
31378
31480
|
|
|
31379
31481
|
customElements.define("sgds-table-of-contents", SgdsTableOfContents);
|
|
31380
31482
|
|
|
31381
|
-
var css_248z$4 = css`:host{position:sticky;top:0;z-index:1000}nav{background-color:var(--sgds-surface-default);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}
|
|
31483
|
+
var css_248z$4 = css`:host{display:block;position:sticky;top:0;z-index:1000}nav{background-color:var(--sgds-surface-default);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);width:100%}.subnav{flex-direction:column;flex-wrap:nowrap}.header-container,.subnav{align-items:flex-start;display:flex}.header-container{gap:var(--sgds-gap-md);padding:var(--sgds-padding-md) var(--sgds-padding-lg);width:100%}slot[name=header]::slotted(*){--sgds-margin-3-xs:var(--sgds-margin-none);flex:1 1 auto;margin-bottom:var(--sgds-margin-3-xs,--sgds-margin-none);padding-top:var(--sgds-padding-none)}.subnav-toggler{cursor:pointer;transition:transform .2s ease-in-out}.subnav-toggler:focus,.subnav-toggler:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}.subnav:not(.collapsed) .subnav-toggler{transform:rotate(-180deg)}.subnav-nav-group{display:flex;flex:1 1 0}.subnav-nav,.subnav-nav-group{align-items:flex-start;flex-direction:column;width:100%}.subnav-nav{display:none;overflow-y:auto;transition:transform .2s ease-in-out}.subnav-nav ::slotted(*){width:100%}.subnav-actions{bottom:0;display:flex;flex-direction:column;gap:var(--sgds-gap-md);padding:var(--sgds-padding-md) var(--sgds-padding-lg);position:sticky;width:100%}slot[name=actions]::slotted(*){width:100%}@media screen and (max-width:1023px){.subnav.sgds-container{max-width:inherit}}@media screen and (min-width:512px){.subnav-actions{flex-direction:row}}@media screen and (min-width:768px){nav{border-bottom:var(--sgds-border-width-0)}.subnav{flex-direction:row}.subnav.collapsed{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}.header-container{padding:var(--sgds-padding-lg) var(--sgds-padding-2-xl)}.subnav-nav{background-color:var(--sgds-surface-default);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);left:0;position:absolute;top:100%}.subnav-actions{align-items:center;flex-direction:row;padding:var(--sgds-padding-sm) var(--sgds-padding-2-xl) var(--sgds-padding-sm) var(--sgds-padding-none);position:inherit}}@media screen and (min-width:1024px){nav{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);position:inherit}.subnav{flex-wrap:wrap;gap:var(--sgds-gap-xl);row-gap:var(--sgds-gap-none)}.subnav.collapsed{border-bottom:var(--sgds-border-width-0)}.header-container{flex:1;padding:var(--sgds-padding-none);width:auto}slot[name=header]::slotted(*){padding-top:var(--sgds-padding-lg);white-space:nowrap}.subnav-nav-group{align-items:center;flex:inherit;flex-direction:row;flex-wrap:wrap;gap:var(--sgds-gap-xl);justify-content:space-between;row-gap:var(--sgds-gap-none);width:auto}.subnav-nav{align-items:center;background-color:inherit;border-bottom:var(--sgds-border-width-0);display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--sgds-gap-lg);overflow-y:inherit;position:inherit;row-gap:0;transition:none;width:auto}.subnav-nav ::slotted(*){width:inherit}.subnav-toggler{display:none}.subnav-actions{padding:var(--sgds-padding-sm) var(--sgds-padding-none);width:auto}slot[name=actions]::slotted(*){width:inherit}}`;
|
|
31382
31484
|
|
|
31383
31485
|
var css_248z$3 = css`.sgds-container{margin-left:auto;margin-right:auto;max-width:calc(100% - 40px);width:100%}.sgds-grid{display:grid;gap:var(--sgds-gap-md);grid-template-columns:repeat(4,1fr)}.sgds-col-1{grid-column:span 1}.sgds-col-2{grid-column:span 2}.sgds-col-3{grid-column:span 3}.sgds-col-4{grid-column:span 4}.sgds-col-center-2{grid-column:2/span 2}.sgds-col-none{display:none}@media (min-width:512px){.sgds-grid{grid-template-columns:repeat(8,1fr)}.sgds-container{max-width:calc(100% - 48px)}.sgds-col-sm-1{grid-column:span 1}.sgds-col-sm-2{grid-column:span 2}.sgds-col-sm-3{grid-column:span 3}.sgds-col-sm-4{grid-column:span 4}.sgds-col-sm-5{grid-column:span 5}.sgds-col-sm-6{grid-column:span 6}.sgds-col-sm-7{grid-column:span 7}.sgds-col-sm-8{grid-column:span 8}.sgds-col-sm-center-2{grid-column:4/span 2}.sgds-col-sm-center-4{grid-column:3/span 4}.sgds-col-sm-center-6{grid-column:2/span 6}.sgds-col-none{display:revert}.sgds-col-sm-none{display:none}}@media (min-width:768px){.sgds-container{max-width:calc(100% - 64px)}.sgds-col-md-1{grid-column:span 1}.sgds-col-md-2{grid-column:span 2}.sgds-col-md-3{grid-column:span 3}.sgds-col-md-4{grid-column:span 4}.sgds-col-md-5{grid-column:span 5}.sgds-col-md-6{grid-column:span 6}.sgds-col-md-7{grid-column:span 7}.sgds-col-md-8{grid-column:span 8}.sgds-col-md-center-2{grid-column:4/span 2}.sgds-col-md-center-4{grid-column:3/span 4}.sgds-col-md-center-6{grid-column:2/span 6}.sgds-col-sm-none{display:revert}.sgds-col-md-none{display:none}}@media (min-width:1024px){.sgds-grid{grid-template-columns:repeat(12,1fr)}.sgds-container{max-width:896px}.sgds-col-lg-1{grid-column:span 1}.sgds-col-lg-2{grid-column:span 2}.sgds-col-lg-3{grid-column:span 3}.sgds-col-lg-4{grid-column:span 4}.sgds-col-lg-5{grid-column:span 5}.sgds-col-lg-6{grid-column:span 6}.sgds-col-lg-7{grid-column:span 7}.sgds-col-lg-8{grid-column:span 8}.sgds-col-lg-9{grid-column:span 9}.sgds-col-lg-10{grid-column:span 10}.sgds-col-lg-11{grid-column:span 11}.sgds-col-lg-12{grid-column:span 12}.sgds-col-lg-center-2{grid-column:6/span 2}.sgds-col-lg-center-4{grid-column:5/span 4}.sgds-col-lg-center-6{grid-column:4/span 6}.sgds-col-lg-center-8{grid-column:3/span 8}.sgds-col-lg-center-10{grid-column:2/span 10}.sgds-col-md-none{display:revert}.sgds-col-lg-none{display:none}}@media (min-width:1280px){.sgds-grid{gap:var(--sgds-gap-xl)}.sgds-container{max-width:1176px}.sgds-col-xl-1{grid-column:span 1}.sgds-col-xl-2{grid-column:span 2}.sgds-col-xl-3{grid-column:span 3}.sgds-col-xl-4{grid-column:span 4}.sgds-col-xl-5{grid-column:span 5}.sgds-col-xl-6{grid-column:span 6}.sgds-col-xl-7{grid-column:span 7}.sgds-col-xl-8{grid-column:span 8}.sgds-col-xl-9{grid-column:span 9}.sgds-col-xl-10{grid-column:span 10}.sgds-col-xl-11{grid-column:span 11}.sgds-col-xl-12{grid-column:span 12}.sgds-col-xl-center-2{grid-column:6/span 2}.sgds-col-xl-center-4{grid-column:5/span 4}.sgds-col-xl-center-6{grid-column:4/span 6}.sgds-col-xl-center-8{grid-column:3/span 8}.sgds-col-xl-center-10{grid-column:2/span 10}.sgds-col-lg-none{display:revert}.sgds-col-xl-none{display:none}}@media (min-width:1440px){.sgds-container{max-width:1320px}.sgds-col-2-xl-1{grid-column:span 1}.sgds-col-2-xl-2{grid-column:span 2}.sgds-col-2-xl-3{grid-column:span 3}.sgds-col-2-xl-4{grid-column:span 4}.sgds-col-2-xl-5{grid-column:span 5}.sgds-col-2-xl-6{grid-column:span 6}.sgds-col-2-xl-7{grid-column:span 7}.sgds-col-2-xl-8{grid-column:span 8}.sgds-col-2-xl-9{grid-column:span 9}.sgds-col-2-xl-10{grid-column:span 10}.sgds-col-2-xl-11{grid-column:span 11}.sgds-col-2-xl-12{grid-column:span 12}.sgds-col-2-xl-center-2{grid-column:6/span 2}.sgds-col-2-xl-center-4{grid-column:5/span 4}.sgds-col-2-xl-center-6{grid-column:4/span 6}.sgds-col-2-xl-center-8{grid-column:3/span 8}.sgds-col-2-xl-center-10{grid-column:2/span 10}.sgds-col-xl-none{display:revert}.sgds-col-2-xl-none{display:none}}`;
|
|
31384
31486
|
|
|
31487
|
+
const VALID_KEYS = ["Enter", " "];
|
|
31385
31488
|
/**
|
|
31386
31489
|
* @summary This component provides secondary navigation within a specific section or page. It typically appears below the main navigation and offers context-specific links or actions to help users explore related content.
|
|
31387
31490
|
*
|
|
@@ -31400,21 +31503,33 @@
|
|
|
31400
31503
|
super(...arguments);
|
|
31401
31504
|
this.isCollapsed = false;
|
|
31402
31505
|
this.isMenuOpen = false;
|
|
31403
|
-
this._handleResize = () => {
|
|
31506
|
+
this._handleResize = async () => {
|
|
31404
31507
|
this.isCollapsed = window.innerWidth < LG_BREAKPOINT;
|
|
31508
|
+
await this.updateComplete;
|
|
31405
31509
|
if (!this.isCollapsed) {
|
|
31406
31510
|
this.isMenuOpen = false;
|
|
31407
31511
|
}
|
|
31408
|
-
this.
|
|
31512
|
+
this._updateMobileLayout();
|
|
31409
31513
|
};
|
|
31410
|
-
this.
|
|
31411
|
-
if (!this.nav || !this.
|
|
31514
|
+
this._updateMobileLayout = () => {
|
|
31515
|
+
if (!this.nav || !this.headerContainer || !this.mobileActions || !this.mobileNav)
|
|
31412
31516
|
return;
|
|
31413
|
-
|
|
31414
|
-
|
|
31415
|
-
|
|
31416
|
-
|
|
31417
|
-
|
|
31517
|
+
if (this.isCollapsed) {
|
|
31518
|
+
const { top: subnavTop } = this.nav.getBoundingClientRect();
|
|
31519
|
+
const headerHeight = this.headerContainer.clientHeight;
|
|
31520
|
+
const actionsButtonHeight = this.mobileActions.clientHeight;
|
|
31521
|
+
const offset = window.innerWidth >= MD_BREAKPOINT && window.innerWidth < LG_BREAKPOINT
|
|
31522
|
+
? subnavTop + headerHeight
|
|
31523
|
+
: subnavTop + headerHeight + actionsButtonHeight;
|
|
31524
|
+
this.mobileNav.style.maxHeight = `calc(100dvh - ${offset}px)`;
|
|
31525
|
+
this.style.minHeight = `${this.nav.clientHeight}px`;
|
|
31526
|
+
this.nav.style.position = "absolute";
|
|
31527
|
+
}
|
|
31528
|
+
else {
|
|
31529
|
+
this.mobileNav.style.maxHeight = "none";
|
|
31530
|
+
this.style.minHeight = "auto";
|
|
31531
|
+
this.nav.style.position = "relative";
|
|
31532
|
+
}
|
|
31418
31533
|
};
|
|
31419
31534
|
this._toggleMenu = () => {
|
|
31420
31535
|
var _a;
|
|
@@ -31430,36 +31545,29 @@
|
|
|
31430
31545
|
}
|
|
31431
31546
|
connectedCallback() {
|
|
31432
31547
|
super.connectedCallback();
|
|
31433
|
-
this._handleResize();
|
|
31548
|
+
// this._handleResize();
|
|
31434
31549
|
window.addEventListener("resize", this._handleResize);
|
|
31435
|
-
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
31550
|
+
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
31436
31551
|
}
|
|
31437
31552
|
disconnectedCallback() {
|
|
31438
31553
|
super.disconnectedCallback();
|
|
31439
31554
|
window.removeEventListener("resize", this._handleResize);
|
|
31440
|
-
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
31555
|
+
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
31441
31556
|
}
|
|
31442
31557
|
firstUpdated() {
|
|
31443
|
-
this.
|
|
31444
|
-
}
|
|
31445
|
-
_handleSlotChange(e) {
|
|
31446
|
-
const childElements = e.target.assignedElements({ flatten: true });
|
|
31447
|
-
if (this.isCollapsed) {
|
|
31448
|
-
childElements.forEach(element => {
|
|
31449
|
-
element.setAttribute("isCollapsed", `${this.isCollapsed}`);
|
|
31450
|
-
});
|
|
31451
|
-
}
|
|
31452
|
-
else {
|
|
31453
|
-
childElements.forEach(element => {
|
|
31454
|
-
element.removeAttribute("isCollapsed");
|
|
31455
|
-
});
|
|
31456
|
-
}
|
|
31558
|
+
this._handleResize();
|
|
31457
31559
|
}
|
|
31458
31560
|
_handleClickOutOfElement(e, self) {
|
|
31459
31561
|
if (!e.composedPath().includes(self) && !e.composedPath().includes(this.toggler)) {
|
|
31460
31562
|
this.hide();
|
|
31461
31563
|
}
|
|
31462
31564
|
}
|
|
31565
|
+
async _onKeyboardToggle(event) {
|
|
31566
|
+
if (!VALID_KEYS.includes(event.key))
|
|
31567
|
+
return;
|
|
31568
|
+
event.preventDefault();
|
|
31569
|
+
this._toggleMenu();
|
|
31570
|
+
}
|
|
31463
31571
|
/** Shows the menu. For when subnav is in the collapsed form */
|
|
31464
31572
|
async show() {
|
|
31465
31573
|
if (this.isMenuOpen) {
|
|
@@ -31484,10 +31592,11 @@
|
|
|
31484
31592
|
return;
|
|
31485
31593
|
}
|
|
31486
31594
|
await stopAnimations(this.mobileNav);
|
|
31487
|
-
this.
|
|
31595
|
+
if (this.isCollapsed) {
|
|
31596
|
+
this.mobileNav.style.display = "flex";
|
|
31597
|
+
}
|
|
31488
31598
|
const { keyframes, options } = getAnimation(this, "subnav.show");
|
|
31489
31599
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
31490
|
-
// this.mobileNav.style.height = "auto";
|
|
31491
31600
|
this.emit("sgds-after-show");
|
|
31492
31601
|
}
|
|
31493
31602
|
async _animateToHide() {
|
|
@@ -31499,8 +31608,9 @@
|
|
|
31499
31608
|
await stopAnimations(this.mobileNav);
|
|
31500
31609
|
const { keyframes, options } = getAnimation(this, "subnav.hide");
|
|
31501
31610
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
31502
|
-
this.
|
|
31503
|
-
|
|
31611
|
+
if (this.isCollapsed) {
|
|
31612
|
+
this.mobileNav.style.display = "none";
|
|
31613
|
+
}
|
|
31504
31614
|
this.emit("sgds-after-hide");
|
|
31505
31615
|
}
|
|
31506
31616
|
async handleOpenChange() {
|
|
@@ -31513,61 +31623,41 @@
|
|
|
31513
31623
|
this._animateToHide();
|
|
31514
31624
|
}
|
|
31515
31625
|
}
|
|
31626
|
+
async handleCollapsedChange() {
|
|
31627
|
+
await this.updateComplete;
|
|
31628
|
+
this.mobileNav.style.display = this.isCollapsed ? "none" : "flex";
|
|
31629
|
+
}
|
|
31516
31630
|
render() {
|
|
31517
|
-
const isHydrated = this.hasUpdated;
|
|
31518
31631
|
return html$1 `
|
|
31519
|
-
<nav
|
|
31520
|
-
class=${classMap({
|
|
31521
|
-
mobile: this.isCollapsed
|
|
31522
|
-
})}
|
|
31523
|
-
aria-label="Sub navigation"
|
|
31524
|
-
>
|
|
31632
|
+
<nav aria-label="Sub navigation">
|
|
31525
31633
|
<div
|
|
31526
31634
|
class=${classMap({
|
|
31527
|
-
"sgds-container":
|
|
31635
|
+
"sgds-container": true,
|
|
31528
31636
|
subnav: true,
|
|
31529
|
-
mobile: this.isCollapsed,
|
|
31530
31637
|
collapsed: !this.isMenuOpen
|
|
31531
31638
|
})}
|
|
31532
31639
|
>
|
|
31533
|
-
<
|
|
31534
|
-
|
|
31535
|
-
|
|
31536
|
-
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
|
|
31540
|
-
|
|
31541
|
-
|
|
31542
|
-
|
|
31543
|
-
|
|
31544
|
-
|
|
31545
|
-
|
|
31546
|
-
|
|
31547
|
-
|
|
31548
|
-
|
|
31549
|
-
|
|
31550
|
-
|
|
31551
|
-
|
|
31552
|
-
|
|
31640
|
+
<div class="header-container">
|
|
31641
|
+
<slot name="header"></slot>
|
|
31642
|
+
<sgds-icon
|
|
31643
|
+
class="subnav-toggler"
|
|
31644
|
+
name="chevron-down"
|
|
31645
|
+
tabindex="0"
|
|
31646
|
+
@click=${this._toggleMenu}
|
|
31647
|
+
@keydown=${this._onKeyboardToggle}
|
|
31648
|
+
aria-label="Toggle sub navigation"
|
|
31649
|
+
aria-expanded=${this.isMenuOpen}
|
|
31650
|
+
></sgds-icon>
|
|
31651
|
+
</div>
|
|
31652
|
+
<div class="subnav-nav-group">
|
|
31653
|
+
<div class="subnav-nav">
|
|
31654
|
+
<slot></slot>
|
|
31655
|
+
</div>
|
|
31656
|
+
<div class="subnav-actions">
|
|
31657
|
+
<slot name="actions"></slot>
|
|
31658
|
+
</div>
|
|
31659
|
+
</div>
|
|
31553
31660
|
</div>
|
|
31554
|
-
${this.isCollapsed
|
|
31555
|
-
? html$1 `
|
|
31556
|
-
<div class="subnav-dropdown">
|
|
31557
|
-
<div
|
|
31558
|
-
class=${classMap({
|
|
31559
|
-
"subnav-nav-mobile": true,
|
|
31560
|
-
hidden: !this.isMenuOpen && !isHydrated
|
|
31561
|
-
})}
|
|
31562
|
-
>
|
|
31563
|
-
<slot @slotchange="${this._handleSlotChange}"></slot>
|
|
31564
|
-
</div>
|
|
31565
|
-
<div class="subnav-actions-mobile">
|
|
31566
|
-
<slot name="actions"></slot>
|
|
31567
|
-
</div>
|
|
31568
|
-
</div>
|
|
31569
|
-
`
|
|
31570
|
-
: nothing}
|
|
31571
31661
|
</nav>
|
|
31572
31662
|
`;
|
|
31573
31663
|
}
|
|
@@ -31581,19 +31671,19 @@
|
|
|
31581
31671
|
query("nav")
|
|
31582
31672
|
], SgdsSubnav.prototype, "nav", void 0);
|
|
31583
31673
|
__decorate([
|
|
31584
|
-
query(".subnav")
|
|
31585
|
-
], SgdsSubnav.prototype, "subnav", void 0);
|
|
31586
|
-
__decorate([
|
|
31587
|
-
query(".subnav-nav-mobile")
|
|
31674
|
+
query(".subnav-nav")
|
|
31588
31675
|
], SgdsSubnav.prototype, "mobileNav", void 0);
|
|
31676
|
+
__decorate([
|
|
31677
|
+
query(".header-container")
|
|
31678
|
+
], SgdsSubnav.prototype, "headerContainer", void 0);
|
|
31589
31679
|
__decorate([
|
|
31590
31680
|
query(".subnav-toggler")
|
|
31591
31681
|
], SgdsSubnav.prototype, "toggler", void 0);
|
|
31592
31682
|
__decorate([
|
|
31593
|
-
query(".subnav-
|
|
31594
|
-
], SgdsSubnav.prototype, "
|
|
31683
|
+
query(".subnav-nav-group")
|
|
31684
|
+
], SgdsSubnav.prototype, "navGroup", void 0);
|
|
31595
31685
|
__decorate([
|
|
31596
|
-
query(".subnav-actions
|
|
31686
|
+
query(".subnav-actions")
|
|
31597
31687
|
], SgdsSubnav.prototype, "mobileActions", void 0);
|
|
31598
31688
|
__decorate([
|
|
31599
31689
|
state()
|
|
@@ -31604,6 +31694,9 @@
|
|
|
31604
31694
|
__decorate([
|
|
31605
31695
|
watch("isMenuOpen", { waitUntilFirstUpdate: true })
|
|
31606
31696
|
], SgdsSubnav.prototype, "handleOpenChange", null);
|
|
31697
|
+
__decorate([
|
|
31698
|
+
watch("isCollapsed", { waitUntilFirstUpdate: true })
|
|
31699
|
+
], SgdsSubnav.prototype, "handleCollapsedChange", null);
|
|
31607
31700
|
setDefaultAnimation("subnav.show", {
|
|
31608
31701
|
keyframes: [
|
|
31609
31702
|
{ height: "0", opacity: "0" },
|
|
@@ -31619,7 +31712,7 @@
|
|
|
31619
31712
|
options: { duration: 200, easing: "ease-in-out" }
|
|
31620
31713
|
});
|
|
31621
31714
|
|
|
31622
|
-
var css_248z$2 = css`:host(:not([disabled])[active]
|
|
31715
|
+
var css_248z$2 = css`:host(:not([disabled])[active]:not([active=false])) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle);border-bottom:none}::slotted(*){--sgds-font-size-2:var(--sgds-font-size-1);--sgds-link-color-default:var(--sgds-color-default);box-sizing:border-box;color:var(--sgds-link-color-default,var(--sgds-color-default));cursor:pointer;display:flex;font-size:var(--sgds-font-size-2,var(--sgds-font-size-1));gap:var(--sgds-gap-2-xs);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-decoration:none!important;white-space:nowrap}:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-color-default))}:host(:not([disabled])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}::slotted(a:focus),::slotted(a:focus-visible){outline:0}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-50)}@media screen and (min-width:1024px){:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);background-color:inherit;border-bottom:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}::slotted(*){padding:var(--sgds-padding-lg) var(--sgds-padding-none)}}`;
|
|
31623
31716
|
|
|
31624
31717
|
/**
|
|
31625
31718
|
* @slot default - slot for SgdsSubnavItem element.
|
|
@@ -31628,7 +31721,7 @@
|
|
|
31628
31721
|
class SgdsSubnavItem extends SgdsElement {
|
|
31629
31722
|
constructor() {
|
|
31630
31723
|
super(...arguments);
|
|
31631
|
-
/** when true, sets the active stylings of
|
|
31724
|
+
/** when true, sets the active stylings of the navigation item */
|
|
31632
31725
|
this.active = false;
|
|
31633
31726
|
/** Disables the SgdsSubnavItem */
|
|
31634
31727
|
this.disabled = false;
|
|
@@ -31671,7 +31764,7 @@
|
|
|
31671
31764
|
}
|
|
31672
31765
|
SgdsSubnavItem.styles = [...SgdsElement.styles, css_248z$2];
|
|
31673
31766
|
__decorate([
|
|
31674
|
-
property({ type: Boolean })
|
|
31767
|
+
property({ type: Boolean, reflect: true })
|
|
31675
31768
|
], SgdsSubnavItem.prototype, "active", void 0);
|
|
31676
31769
|
__decorate([
|
|
31677
31770
|
property({ type: Boolean, reflect: true })
|