@govtechsg/sgds-web-component 3.2.0-rc.0 → 3.2.0-rc.1
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-element.d.ts +14 -0
- package/base/card-element.js +53 -2
- package/base/card-element.js.map +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/Breadcrumb/index.umd.js +2 -2
- package/components/Breadcrumb/index.umd.js.map +1 -1
- package/components/Breadcrumb/sgds-breadcrumb.d.ts +1 -1
- package/components/Breadcrumb/sgds-breadcrumb.js +1 -1
- package/components/Breadcrumb/sgds-breadcrumb.js.map +1 -1
- package/components/Button/index.umd.js +1 -1
- package/components/Card/card.js +1 -1
- package/components/Card/index.umd.js +121 -69
- package/components/Card/index.umd.js.map +1 -1
- package/components/Card/sgds-card.d.ts +4 -15
- package/components/Card/sgds-card.js +16 -54
- package/components/Card/sgds-card.js.map +1 -1
- package/components/Card/types.d.ts +3 -0
- package/components/ComboBox/combo-box-item2.js +1 -1
- package/components/ComboBox/index.umd.js +30 -10
- 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 +30 -13
- package/components/Datepicker/index.umd.js.map +1 -1
- package/components/Datepicker/sgds-datepicker.d.ts +13 -3
- package/components/Datepicker/sgds-datepicker.js +29 -11
- package/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/components/Drawer/index.umd.js +2 -2
- package/components/Drawer/index.umd.js.map +1 -1
- package/components/Dropdown/dropdown-item.js +1 -1
- package/components/Dropdown/dropdown.js +1 -1
- package/components/Dropdown/index.umd.js +2 -2
- package/components/FileUpload/index.umd.js +1 -1
- package/components/IconButton/index.umd.js +1 -1
- package/components/IconCard/icon-card.js +6 -0
- package/components/IconCard/icon-card.js.map +1 -0
- package/components/IconCard/index.d.ts +6 -0
- package/components/IconCard/index.js +4 -0
- package/components/IconCard/index.js.map +1 -0
- package/components/IconCard/index.umd.js +4760 -0
- package/components/IconCard/index.umd.js.map +1 -0
- package/components/IconCard/sgds-icon-card.d.ts +24 -0
- package/components/IconCard/sgds-icon-card.js +83 -0
- package/components/IconCard/sgds-icon-card.js.map +1 -0
- package/components/IconList/icon-list.js +1 -1
- package/components/IconList/index.umd.js +1 -1
- package/components/ImageCard/image-card.js +6 -0
- package/components/ImageCard/image-card.js.map +1 -0
- package/components/ImageCard/index.d.ts +6 -0
- package/components/ImageCard/index.js +4 -0
- package/components/ImageCard/index.js.map +1 -0
- package/components/ImageCard/index.umd.js +4774 -0
- package/components/ImageCard/index.umd.js.map +1 -0
- package/components/ImageCard/sgds-image-card.d.ts +30 -0
- package/components/ImageCard/sgds-image-card.js +97 -0
- package/components/ImageCard/sgds-image-card.js.map +1 -0
- package/components/Input/index.umd.js +1 -1
- package/components/Input/input.js +1 -1
- package/components/Mainnav/index.umd.js +5 -5
- 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/OverflowMenu/index.js +5 -0
- package/components/OverflowMenu/index.js.map +1 -0
- package/components/OverflowMenu/index.umd.js +11129 -0
- package/components/OverflowMenu/index.umd.js.map +1 -0
- package/{internals → components}/OverflowMenu/sgds-overflow-menu.d.ts +3 -3
- package/{internals → components}/OverflowMenu/sgds-overflow-menu.js +3 -3
- package/components/OverflowMenu/sgds-overflow-menu.js.map +1 -0
- package/components/Pagination/index.umd.js +1 -1
- package/components/QuantityToggle/index.umd.js +2 -2
- package/components/Select/index.umd.js +1 -1
- package/components/Select/select-item2.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/ThumbnailCard/index.d.ts +6 -0
- package/components/ThumbnailCard/index.js +4 -0
- package/components/ThumbnailCard/index.js.map +1 -0
- package/components/ThumbnailCard/index.umd.js +4764 -0
- package/components/ThumbnailCard/index.umd.js.map +1 -0
- package/components/ThumbnailCard/sgds-thumbnail-card.d.ts +24 -0
- package/components/ThumbnailCard/sgds-thumbnail-card.js +87 -0
- package/components/ThumbnailCard/sgds-thumbnail-card.js.map +1 -0
- package/components/ThumbnailCard/thumbnail-card.js +6 -0
- package/components/ThumbnailCard/thumbnail-card.js.map +1 -0
- package/components/Toast/index.umd.js +1 -1
- package/components/Toast/toast.js +1 -1
- package/components/index.d.ts +4 -0
- package/components/index.js +4 -0
- package/components/index.js.map +1 -1
- package/components/index.umd.js +615 -322
- package/components/index.umd.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.umd.js +703 -331
- 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-element.cjs.js +52 -1
- package/react/base/card-element.cjs.js.map +1 -1
- package/react/base/card-element.js +53 -2
- package/react/base/card-element.js.map +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/Breadcrumb/sgds-breadcrumb.cjs.js +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.cjs.js.map +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.js +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.js.map +1 -1
- package/react/components/Card/card.cjs.js +1 -1
- package/react/components/Card/card.js +1 -1
- package/react/components/Card/sgds-card.cjs.js +15 -53
- package/react/components/Card/sgds-card.cjs.js.map +1 -1
- package/react/components/Card/sgds-card.js +16 -54
- package/react/components/Card/sgds-card.js.map +1 -1
- package/react/components/ComboBox/combo-box-item.cjs2.js +1 -1
- package/react/components/ComboBox/combo-box-item2.js +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/Datepicker/sgds-datepicker.cjs.js +29 -11
- package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.js +29 -11
- package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
- package/react/components/Dropdown/dropdown-item.js +1 -1
- package/react/components/Dropdown/dropdown.cjs.js +1 -1
- package/react/components/Dropdown/dropdown.js +1 -1
- package/react/components/IconCard/icon-card.cjs.js +11 -0
- package/react/components/IconCard/icon-card.cjs.js.map +1 -0
- package/react/components/IconCard/icon-card.js +7 -0
- package/react/components/IconCard/icon-card.js.map +1 -0
- package/react/components/IconCard/sgds-icon-card.cjs.js +89 -0
- package/react/components/IconCard/sgds-icon-card.cjs.js.map +1 -0
- package/react/components/IconCard/sgds-icon-card.js +84 -0
- package/react/components/IconCard/sgds-icon-card.js.map +1 -0
- package/react/components/IconList/icon-list.cjs.js +1 -1
- package/react/components/IconList/icon-list.js +1 -1
- package/react/components/ImageCard/image-card.cjs.js +11 -0
- package/react/components/ImageCard/image-card.cjs.js.map +1 -0
- package/react/components/ImageCard/image-card.js +7 -0
- package/react/components/ImageCard/image-card.js.map +1 -0
- package/react/components/ImageCard/sgds-image-card.cjs.js +103 -0
- package/react/components/ImageCard/sgds-image-card.cjs.js.map +1 -0
- package/react/components/ImageCard/sgds-image-card.js +98 -0
- package/react/components/ImageCard/sgds-image-card.js.map +1 -0
- package/react/components/Input/input.cjs.js +1 -1
- package/react/components/Input/input.js +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/{internals → components}/OverflowMenu/sgds-overflow-menu.cjs.js +3 -3
- package/react/components/OverflowMenu/sgds-overflow-menu.cjs.js.map +1 -0
- package/react/{internals → components}/OverflowMenu/sgds-overflow-menu.js +3 -3
- package/react/components/OverflowMenu/sgds-overflow-menu.js.map +1 -0
- package/react/components/Select/select-item.cjs2.js +1 -1
- package/react/components/Select/select-item2.js +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/ThumbnailCard/sgds-thumbnail-card.cjs.js +93 -0
- package/react/components/ThumbnailCard/sgds-thumbnail-card.cjs.js.map +1 -0
- package/react/components/ThumbnailCard/sgds-thumbnail-card.js +88 -0
- package/react/components/ThumbnailCard/sgds-thumbnail-card.js.map +1 -0
- package/react/components/ThumbnailCard/thumbnail-card.cjs.js +11 -0
- package/react/components/ThumbnailCard/thumbnail-card.cjs.js.map +1 -0
- package/react/components/ThumbnailCard/thumbnail-card.js +7 -0
- package/react/components/ThumbnailCard/thumbnail-card.js.map +1 -0
- package/react/components/Toast/toast.cjs.js +1 -1
- package/react/components/Toast/toast.js +1 -1
- package/react/icon-card/index.cjs.js +40 -0
- package/react/icon-card/index.cjs.js.map +1 -0
- package/react/icon-card/index.d.ts +2 -0
- package/react/icon-card/index.js +16 -0
- package/react/icon-card/index.js.map +1 -0
- package/react/image-card/index.cjs.js +40 -0
- package/react/image-card/index.cjs.js.map +1 -0
- package/react/image-card/index.d.ts +2 -0
- package/react/image-card/index.js +16 -0
- package/react/image-card/index.js.map +1 -0
- package/react/index.cjs.js +78 -64
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +7 -0
- package/react/index.js +7 -0
- package/react/index.js.map +1 -1
- package/react/overflow-menu/index.cjs.js +40 -0
- package/react/overflow-menu/index.cjs.js.map +1 -0
- package/react/overflow-menu/index.d.ts +2 -0
- package/react/overflow-menu/index.js +16 -0
- package/react/overflow-menu/index.js.map +1 -0
- 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/thumbnail-card/index.cjs.js +40 -0
- package/react/thumbnail-card/index.cjs.js.map +1 -0
- package/react/thumbnail-card/index.d.ts +2 -0
- package/react/thumbnail-card/index.js +16 -0
- package/react/thumbnail-card/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/day.css +1 -0
- package/themes/night.css +1 -0
- 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/internals/OverflowMenu/sgds-overflow-menu.js.map +0 -1
- package/react/internals/OverflowMenu/sgds-overflow-menu.cjs.js.map +0 -1
- package/react/internals/OverflowMenu/sgds-overflow-menu.js.map +0 -1
- /package/{internals → components}/OverflowMenu/index.d.ts +0 -0
- /package/{internals → components}/OverflowMenu/overflow-menu.js +0 -0
- /package/{internals → components}/OverflowMenu/overflow-menu.js.map +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.cjs.js +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.cjs.js.map +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.js +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.js.map +0 -0
package/index.umd.js
CHANGED
|
@@ -4382,7 +4382,7 @@
|
|
|
4382
4382
|
});
|
|
4383
4383
|
}
|
|
4384
4384
|
|
|
4385
|
-
var css_248z$
|
|
4385
|
+
var css_248z$1k = 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$1k];
|
|
4443
4443
|
/** @internal */
|
|
4444
4444
|
SgdsElement.dependencies = {};
|
|
4445
4445
|
|
|
4446
|
-
var css_248z$
|
|
4446
|
+
var css_248z$1j = 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$1j];
|
|
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$1i = 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$1i];
|
|
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$1h = 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$1h];
|
|
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$1g = 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$1g];
|
|
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$1f = 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$1f];
|
|
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$1e = 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$1d = 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$1d, css_248z$1e];
|
|
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$1c = 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$1c];
|
|
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$1b = 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$1a = 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$19 = css`.dropdown{display:flex;height:inherit;position:relative}`;
|
|
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$19, css_248z$1a];
|
|
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$18 = 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}.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$19, css_248z$18];
|
|
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$1b];
|
|
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$17 = 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$17];
|
|
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$16 = 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$16];
|
|
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$15 = 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$15];
|
|
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$14 = 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$14];
|
|
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$13 = 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$1d, css_248z$13];
|
|
12408
12427
|
__decorate([
|
|
12409
12428
|
state()
|
|
12410
12429
|
], SgdsButton.prototype, "_hasLeftIcon", void 0);
|
|
@@ -12435,55 +12454,102 @@
|
|
|
12435
12454
|
|
|
12436
12455
|
register("sgds-button", SgdsButton);
|
|
12437
12456
|
|
|
12438
|
-
var css_248z$
|
|
12457
|
+
var css_248z$12 = css`:host([orientation=horizontal]) .card{flex-direction:row}:host(:not([hideBorder])) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([orientation=horizontal]) .card-body{flex:1}:host([orientation=horizontal]) .card-media{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-xl)}: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=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}:host([orientation=vertical][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-sm) var(--sgds-margin-sm) var(--sgds-padding-none)}:host([orientation=vertical][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-none) var(--sgds-margin-sm) var(--sgds-margin-sm)}:host([orientation=horizontal][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-sm) var(--sgds-margin-none) var(--sgds-margin-sm) var(--sgds-margin-sm)}:host([orientation=horizontal][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-sm) var(--sgds-margin-sm) var(--sgds-margin-sm) var(--sgds-margin-none)}:host([orientation][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:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);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)}a.card:focus{outline:0}a.card:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}.card-tinted-bg{border-radius:var(--sgds-border-radius-md);bottom:0;left:0;opacity:var(--sgds-opacity-0);position:absolute;right:0;top:0}.card-image{flex:1;position:relative}.card-media{align-items:flex-start;display:flex;justify-content:space-between;line-height:0;padding:var(--sgds-padding-xl) var(--sgds-padding-xl) var(--sgds-padding-none)}.card-thumbnail{align-items:center;border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-full);display:flex;height:var(--sgds-dimension-80);justify-content:center;width:var(--sgds-dimension-80)}.card-body{color:var(--sgds-body-color-default);display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-xl);padding:var(--sgds-padding-xl);z-index:1}.card-header-container{display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}.card-header{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}.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);color:var(--sgds-body-color-default);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=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}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%}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$11 = 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$10 = 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$$ = 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$_ = 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$Z = css`p{margin-bottom:1.5rem;margin-top:0}`;
|
|
12449
12468
|
|
|
12450
12469
|
class CardElement extends SgdsElement {
|
|
12451
12470
|
constructor() {
|
|
12452
12471
|
super(...arguments);
|
|
12472
|
+
/** Extends the link passed in slot[name="link"] to the entire card */
|
|
12473
|
+
this.stretchedLink = false;
|
|
12474
|
+
/** Disables the card */
|
|
12475
|
+
this.disabled = false;
|
|
12453
12476
|
/** When true, hides the default border of the card. */
|
|
12454
12477
|
this.hideBorder = false;
|
|
12455
12478
|
/** When true, applies a tinted background color to the card. */
|
|
12456
12479
|
this.tinted = false;
|
|
12480
|
+
/** Sets the orientation of the card. Available options: `vertical`, `horizontal` */
|
|
12481
|
+
this.orientation = "vertical";
|
|
12482
|
+
}
|
|
12483
|
+
firstUpdated() {
|
|
12484
|
+
if (this.disabled && this._linkNode.length > 0) {
|
|
12485
|
+
const hyperlink = this._linkNode[0].querySelector("a");
|
|
12486
|
+
hyperlink.setAttribute("disabled", "true");
|
|
12487
|
+
hyperlink.removeAttribute("href");
|
|
12488
|
+
}
|
|
12489
|
+
}
|
|
12490
|
+
handleTitleSlotChange(e) {
|
|
12491
|
+
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12492
|
+
if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
|
|
12493
|
+
const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
|
|
12494
|
+
hyperlink.removeAttribute("href");
|
|
12495
|
+
}
|
|
12496
|
+
return;
|
|
12497
|
+
}
|
|
12498
|
+
handleLinkSlotChange(e) {
|
|
12499
|
+
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12500
|
+
if (childNodes.length > 1) {
|
|
12501
|
+
return console.error("Multiple elements passed into SgdsCard's link slot");
|
|
12502
|
+
}
|
|
12503
|
+
if (!this.stretchedLink)
|
|
12504
|
+
return;
|
|
12505
|
+
if (childNodes[0] instanceof HTMLAnchorElement || childNodes[0] instanceof SgdsLink) {
|
|
12506
|
+
const hyperlink = (childNodes[0].querySelector("a") || childNodes[0]);
|
|
12507
|
+
this.card.setAttribute("href", hyperlink.href);
|
|
12508
|
+
const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
|
|
12509
|
+
linkSlot.style.display = "none";
|
|
12510
|
+
}
|
|
12457
12511
|
}
|
|
12458
12512
|
}
|
|
12459
|
-
CardElement.styles = [...SgdsElement.styles, css_248z$
|
|
12513
|
+
CardElement.styles = [...SgdsElement.styles, css_248z$11, css_248z$10, css_248z$$, css_248z$_, css_248z$Z, css_248z$12];
|
|
12514
|
+
__decorate([
|
|
12515
|
+
query("a.card")
|
|
12516
|
+
], CardElement.prototype, "card", void 0);
|
|
12517
|
+
__decorate([
|
|
12518
|
+
queryAssignedNodes({ slot: "link", flatten: true })
|
|
12519
|
+
], CardElement.prototype, "_linkNode", void 0);
|
|
12520
|
+
__decorate([
|
|
12521
|
+
property({ type: Boolean, reflect: true })
|
|
12522
|
+
], CardElement.prototype, "stretchedLink", void 0);
|
|
12523
|
+
__decorate([
|
|
12524
|
+
property({ type: Boolean, reflect: true })
|
|
12525
|
+
], CardElement.prototype, "disabled", void 0);
|
|
12460
12526
|
__decorate([
|
|
12461
12527
|
property({ type: Boolean, reflect: true })
|
|
12462
12528
|
], CardElement.prototype, "hideBorder", void 0);
|
|
12463
12529
|
__decorate([
|
|
12464
12530
|
property({ type: Boolean, reflect: true })
|
|
12465
12531
|
], CardElement.prototype, "tinted", void 0);
|
|
12532
|
+
__decorate([
|
|
12533
|
+
property({ type: String, reflect: true })
|
|
12534
|
+
], CardElement.prototype, "orientation", void 0);
|
|
12466
12535
|
|
|
12467
|
-
var css_248z$
|
|
12536
|
+
var css_248z$Y = css`:host([tinted]) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}slot[name=menu]::slotted(*){position:absolute;right:20px;top:20px;z-index:10}`;
|
|
12468
12537
|
|
|
12469
12538
|
/**
|
|
12470
12539
|
* @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
12540
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
12541
|
+
* @slot menu - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.
|
|
12471
12542
|
* @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
|
|
12472
12543
|
* @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.
|
|
12473
12544
|
* @slot subtitle - The subtitle of the card
|
|
12474
12545
|
* @slot title - The title of the card
|
|
12475
12546
|
* @slot description - The paragrapher text of the card
|
|
12547
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
12476
12548
|
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
12477
12549
|
*/
|
|
12478
12550
|
class SgdsCard extends CardElement {
|
|
12479
12551
|
constructor() {
|
|
12480
12552
|
super(...arguments);
|
|
12481
|
-
/** Extends the link passed in slot[name="link"] to the entire card */
|
|
12482
|
-
this.stretchedLink = false;
|
|
12483
|
-
/** Disables the card */
|
|
12484
|
-
this.disabled = false;
|
|
12485
|
-
/** Sets the orientation of the card. Available options: `vertical`, `horizontal` */
|
|
12486
|
-
this.orientation = "vertical";
|
|
12487
12553
|
/** Sets the image position of the card. Available options: `before`, `after` */
|
|
12488
12554
|
this.imagePosition = "before";
|
|
12489
12555
|
/** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */
|
|
@@ -12495,36 +12561,10 @@
|
|
|
12495
12561
|
icon.style.display = "none";
|
|
12496
12562
|
}
|
|
12497
12563
|
if (this._iconNode.length === 0) {
|
|
12498
|
-
const
|
|
12499
|
-
|
|
12500
|
-
}
|
|
12501
|
-
if (this.disabled && this._linkNode.length > 0) {
|
|
12502
|
-
const hyperlink = this._linkNode[0].querySelector("a");
|
|
12503
|
-
hyperlink.setAttribute("disabled", "true");
|
|
12504
|
-
hyperlink.removeAttribute("href");
|
|
12564
|
+
const media = this.shadowRoot.querySelector(".card-media");
|
|
12565
|
+
media.style.display = "none";
|
|
12505
12566
|
}
|
|
12506
12567
|
}
|
|
12507
|
-
handleTitleSlotChange(e) {
|
|
12508
|
-
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12509
|
-
if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
|
|
12510
|
-
const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
|
|
12511
|
-
hyperlink.removeAttribute("href");
|
|
12512
|
-
}
|
|
12513
|
-
return;
|
|
12514
|
-
}
|
|
12515
|
-
handleLinkSlotChange(e) {
|
|
12516
|
-
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12517
|
-
if (childNodes.length > 1) {
|
|
12518
|
-
return console.error("Multiple elements passed into SgdsCard's link slot");
|
|
12519
|
-
}
|
|
12520
|
-
if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
|
|
12521
|
-
const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
|
|
12522
|
-
this.card.setAttribute("href", hyperlink.href);
|
|
12523
|
-
const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
|
|
12524
|
-
linkSlot.style.display = "none";
|
|
12525
|
-
}
|
|
12526
|
-
return;
|
|
12527
|
-
}
|
|
12528
12568
|
handleImgSlotChange(e) {
|
|
12529
12569
|
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12530
12570
|
if (childNodes.length > 1) {
|
|
@@ -12541,48 +12581,39 @@
|
|
|
12541
12581
|
})}"
|
|
12542
12582
|
tabindex=${cardTabIndex}
|
|
12543
12583
|
>
|
|
12584
|
+
<div class="card-tinted-bg"></div>
|
|
12585
|
+
<slot name="menu"></slot>
|
|
12544
12586
|
<div class="card-image">
|
|
12545
12587
|
<slot name="image" @slotchange=${this.handleImgSlotChange}></slot>
|
|
12546
12588
|
</div>
|
|
12547
|
-
<div class="card-
|
|
12589
|
+
<div class="card-media">
|
|
12548
12590
|
<slot name="icon"></slot>
|
|
12549
12591
|
</div>
|
|
12550
12592
|
<div class="card-body">
|
|
12551
|
-
<div class="card-header">
|
|
12552
|
-
<
|
|
12553
|
-
|
|
12593
|
+
<div class="card-header-container">
|
|
12594
|
+
<div class="card-header">
|
|
12595
|
+
<slot name="subtitle"></slot>
|
|
12596
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
12597
|
+
</div>
|
|
12598
|
+
<slot></slot>
|
|
12554
12599
|
</div>
|
|
12555
12600
|
<p class="card-text">
|
|
12556
12601
|
<slot name="description"></slot>
|
|
12557
12602
|
</p>
|
|
12603
|
+
<slot name="lower"></slot>
|
|
12558
12604
|
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
12559
12605
|
</div>
|
|
12560
12606
|
</${tag}>
|
|
12561
12607
|
`;
|
|
12562
12608
|
}
|
|
12563
12609
|
}
|
|
12564
|
-
SgdsCard.styles = [...CardElement.styles, css_248z$
|
|
12565
|
-
__decorate([
|
|
12566
|
-
query("a.card")
|
|
12567
|
-
], SgdsCard.prototype, "card", void 0);
|
|
12610
|
+
SgdsCard.styles = [...CardElement.styles, css_248z$Y];
|
|
12568
12611
|
__decorate([
|
|
12569
12612
|
queryAssignedNodes({ slot: "image", flatten: true })
|
|
12570
12613
|
], SgdsCard.prototype, "_imageNode", void 0);
|
|
12571
12614
|
__decorate([
|
|
12572
12615
|
queryAssignedNodes({ slot: "icon", flatten: true })
|
|
12573
12616
|
], SgdsCard.prototype, "_iconNode", void 0);
|
|
12574
|
-
__decorate([
|
|
12575
|
-
queryAssignedNodes({ slot: "link", flatten: true })
|
|
12576
|
-
], SgdsCard.prototype, "_linkNode", void 0);
|
|
12577
|
-
__decorate([
|
|
12578
|
-
property({ type: Boolean, reflect: true })
|
|
12579
|
-
], SgdsCard.prototype, "stretchedLink", void 0);
|
|
12580
|
-
__decorate([
|
|
12581
|
-
property({ type: Boolean, reflect: true })
|
|
12582
|
-
], SgdsCard.prototype, "disabled", void 0);
|
|
12583
|
-
__decorate([
|
|
12584
|
-
property({ type: String, reflect: true })
|
|
12585
|
-
], SgdsCard.prototype, "orientation", void 0);
|
|
12586
12617
|
__decorate([
|
|
12587
12618
|
property({ type: String, reflect: true })
|
|
12588
12619
|
], SgdsCard.prototype, "imagePosition", void 0);
|
|
@@ -12666,9 +12697,9 @@
|
|
|
12666
12697
|
*/
|
|
12667
12698
|
const live = directive(LiveDirective);
|
|
12668
12699
|
|
|
12669
|
-
var css_248z$
|
|
12700
|
+
var css_248z$X = 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
12701
|
|
|
12671
|
-
var css_248z$
|
|
12702
|
+
var css_248z$W = 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
12703
|
|
|
12673
12704
|
// @defaultValue decorator
|
|
12674
12705
|
const defaultValue = (propertyName = "value") => (proto, key) => {
|
|
@@ -13053,7 +13084,7 @@
|
|
|
13053
13084
|
}
|
|
13054
13085
|
}
|
|
13055
13086
|
}
|
|
13056
|
-
SelectElement.styles = [...DropdownListElement.styles, css_248z$
|
|
13087
|
+
SelectElement.styles = [...DropdownListElement.styles, css_248z$1a, css_248z$W, css_248z$X];
|
|
13057
13088
|
__decorate([
|
|
13058
13089
|
property({ reflect: true })
|
|
13059
13090
|
], SelectElement.prototype, "label", void 0);
|
|
@@ -13109,9 +13140,9 @@
|
|
|
13109
13140
|
queryAsync("input.form-control")
|
|
13110
13141
|
], SelectElement.prototype, "_input", void 0);
|
|
13111
13142
|
|
|
13112
|
-
var css_248z$
|
|
13143
|
+
var css_248z$V = 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
13144
|
|
|
13114
|
-
var css_248z$
|
|
13145
|
+
var css_248z$U = 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
13146
|
|
|
13116
13147
|
class FormControlElement extends SgdsElement {
|
|
13117
13148
|
constructor() {
|
|
@@ -13138,7 +13169,7 @@
|
|
|
13138
13169
|
}
|
|
13139
13170
|
}
|
|
13140
13171
|
}
|
|
13141
|
-
FormControlElement.styles = [...SgdsElement.styles, css_248z$
|
|
13172
|
+
FormControlElement.styles = [...SgdsElement.styles, css_248z$X, css_248z$W, css_248z$V, css_248z$U];
|
|
13142
13173
|
__decorate([
|
|
13143
13174
|
property({ reflect: true })
|
|
13144
13175
|
], FormControlElement.prototype, "label", void 0);
|
|
@@ -13155,7 +13186,7 @@
|
|
|
13155
13186
|
property({ type: Boolean, reflect: true })
|
|
13156
13187
|
], FormControlElement.prototype, "invalid", void 0);
|
|
13157
13188
|
|
|
13158
|
-
var css_248z$
|
|
13189
|
+
var css_248z$T = 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
13190
|
|
|
13160
13191
|
/**
|
|
13161
13192
|
* @summary Checkbox component is used when you require users to select multiple items from a list.
|
|
@@ -13319,7 +13350,7 @@
|
|
|
13319
13350
|
`;
|
|
13320
13351
|
}
|
|
13321
13352
|
}
|
|
13322
|
-
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$
|
|
13353
|
+
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$T];
|
|
13323
13354
|
__decorate([
|
|
13324
13355
|
property({ type: String, reflect: true })
|
|
13325
13356
|
], SgdsCheckbox.prototype, "value", void 0);
|
|
@@ -13351,7 +13382,7 @@
|
|
|
13351
13382
|
watch("_isTouched", { waitUntilFirstUpdate: true })
|
|
13352
13383
|
], SgdsCheckbox.prototype, "_handleIsTouched", null);
|
|
13353
13384
|
|
|
13354
|
-
var css_248z$
|
|
13385
|
+
var css_248z$S = 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}.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
13386
|
|
|
13356
13387
|
class ComboBoxItem extends SgdsElement {
|
|
13357
13388
|
constructor() {
|
|
@@ -13419,7 +13450,7 @@
|
|
|
13419
13450
|
"sgds-icon": SgdsIcon,
|
|
13420
13451
|
"sgds-checkbox": SgdsCheckbox
|
|
13421
13452
|
};
|
|
13422
|
-
ComboBoxItem.styles = [css_248z$
|
|
13453
|
+
ComboBoxItem.styles = [css_248z$S];
|
|
13423
13454
|
__decorate([
|
|
13424
13455
|
property({ type: Boolean, reflect: true })
|
|
13425
13456
|
], ComboBoxItem.prototype, "active", void 0);
|
|
@@ -13430,7 +13461,7 @@
|
|
|
13430
13461
|
property({ type: Boolean, reflect: true })
|
|
13431
13462
|
], ComboBoxItem.prototype, "checkbox", void 0);
|
|
13432
13463
|
|
|
13433
|
-
var css_248z$
|
|
13464
|
+
var css_248z$R = 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
13465
|
|
|
13435
13466
|
/**
|
|
13436
13467
|
* @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 +13585,8 @@
|
|
|
13554
13585
|
this.selectedItems = this.selectedItems.filter(i => i.value !== foundItem.value);
|
|
13555
13586
|
this.value = this.selectedItems.map(i => i.value).join(";");
|
|
13556
13587
|
}
|
|
13557
|
-
async _handleBadgeDismissed(item) {
|
|
13588
|
+
async _handleBadgeDismissed(e, item) {
|
|
13589
|
+
e.preventDefault();
|
|
13558
13590
|
this.selectedItems = this.selectedItems.filter(i => i.value !== item.value);
|
|
13559
13591
|
this.value = this.selectedItems.map(i => i.value).join(";");
|
|
13560
13592
|
}
|
|
@@ -13653,7 +13685,7 @@
|
|
|
13653
13685
|
variant="neutral"
|
|
13654
13686
|
show
|
|
13655
13687
|
dismissible
|
|
13656
|
-
@sgds-hide=${
|
|
13688
|
+
@sgds-hide=${e => this._handleBadgeDismissed(e, item)}
|
|
13657
13689
|
>${item.label}</sgds-badge
|
|
13658
13690
|
>`)}
|
|
13659
13691
|
`
|
|
@@ -13704,7 +13736,7 @@
|
|
|
13704
13736
|
`;
|
|
13705
13737
|
}
|
|
13706
13738
|
}
|
|
13707
|
-
SgdsComboBox.styles = [...SelectElement.styles, css_248z$
|
|
13739
|
+
SgdsComboBox.styles = [...SelectElement.styles, css_248z$R];
|
|
13708
13740
|
/** @internal */
|
|
13709
13741
|
SgdsComboBox.dependencies = {
|
|
13710
13742
|
"sgds-combo-box-item": ComboBoxItem,
|
|
@@ -13729,7 +13761,7 @@
|
|
|
13729
13761
|
|
|
13730
13762
|
register("sgds-combo-box", SgdsComboBox);
|
|
13731
13763
|
|
|
13732
|
-
var css_248z$
|
|
13764
|
+
var css_248z$Q = 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
13765
|
|
|
13734
13766
|
/**
|
|
13735
13767
|
* @summary CheckboxGroup is a form component for multiselection of checkboxes.
|
|
@@ -13927,7 +13959,7 @@
|
|
|
13927
13959
|
`;
|
|
13928
13960
|
}
|
|
13929
13961
|
}
|
|
13930
|
-
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$
|
|
13962
|
+
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$Q];
|
|
13931
13963
|
__decorate([
|
|
13932
13964
|
property({ reflect: true })
|
|
13933
13965
|
], SgdsCheckboxGroup.prototype, "label", void 0);
|
|
@@ -19665,7 +19697,7 @@
|
|
|
19665
19697
|
return newDate;
|
|
19666
19698
|
};
|
|
19667
19699
|
|
|
19668
|
-
var css_248z$
|
|
19700
|
+
var css_248z$P = 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
19701
|
|
|
19670
19702
|
const TODAY_DATE = new Date();
|
|
19671
19703
|
const keyPressAction = {
|
|
@@ -20061,7 +20093,7 @@
|
|
|
20061
20093
|
return html$1 ` <div class="datepicker-body">${viewContent}</div> `;
|
|
20062
20094
|
}
|
|
20063
20095
|
}
|
|
20064
|
-
DatepickerCalendar.styles = [css_248z$
|
|
20096
|
+
DatepickerCalendar.styles = [css_248z$P];
|
|
20065
20097
|
/** @internal */
|
|
20066
20098
|
DatepickerCalendar.DAY_LABELS = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
20067
20099
|
/** @internal */
|
|
@@ -20109,7 +20141,7 @@
|
|
|
20109
20141
|
watch("displayDate")
|
|
20110
20142
|
], DatepickerCalendar.prototype, "_updateFocusedDate", null);
|
|
20111
20143
|
|
|
20112
|
-
var css_248z$
|
|
20144
|
+
var css_248z$O = 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
20145
|
|
|
20114
20146
|
/**
|
|
20115
20147
|
* @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 +20188,7 @@
|
|
|
20156
20188
|
`;
|
|
20157
20189
|
}
|
|
20158
20190
|
}
|
|
20159
|
-
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$
|
|
20191
|
+
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$O];
|
|
20160
20192
|
/** @internal */
|
|
20161
20193
|
SgdsIconButton.dependencies = {
|
|
20162
20194
|
"sgds-icon": SgdsIcon
|
|
@@ -20165,7 +20197,7 @@
|
|
|
20165
20197
|
property({ type: String, reflect: true })
|
|
20166
20198
|
], SgdsIconButton.prototype, "name", void 0);
|
|
20167
20199
|
|
|
20168
|
-
var css_248z$
|
|
20200
|
+
var css_248z$N = css`.datepicker-header{display:flex;gap:var(--sgds-form-gap-md)}sgds-button{--btn-font-weight:var(--sgds-font-weight-semibold)}`;
|
|
20169
20201
|
|
|
20170
20202
|
class DatepickerHeader extends SgdsElement {
|
|
20171
20203
|
constructor() {
|
|
@@ -20341,7 +20373,7 @@
|
|
|
20341
20373
|
`;
|
|
20342
20374
|
}
|
|
20343
20375
|
}
|
|
20344
|
-
DatepickerHeader.styles = [css_248z$
|
|
20376
|
+
DatepickerHeader.styles = [css_248z$N];
|
|
20345
20377
|
/** @internal */
|
|
20346
20378
|
DatepickerHeader.dependencies = {
|
|
20347
20379
|
"sgds-icon": SgdsIcon,
|
|
@@ -23982,7 +24014,7 @@
|
|
|
23982
24014
|
globalThis.IMask = IMask;
|
|
23983
24015
|
} catch {}
|
|
23984
24016
|
|
|
23985
|
-
var css_248z$
|
|
24017
|
+
var css_248z$M = 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
24018
|
|
|
23987
24019
|
/*! 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
24020
|
|
|
@@ -24014,7 +24046,7 @@
|
|
|
24014
24046
|
`;
|
|
24015
24047
|
}
|
|
24016
24048
|
}
|
|
24017
|
-
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$
|
|
24049
|
+
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$11, css_248z$M];
|
|
24018
24050
|
__decorate([
|
|
24019
24051
|
property({ type: String, reflect: true })
|
|
24020
24052
|
], SgdsSpinner.prototype, "variant", void 0);
|
|
@@ -24025,7 +24057,7 @@
|
|
|
24025
24057
|
property({ reflect: true, type: String })
|
|
24026
24058
|
], SgdsSpinner.prototype, "label", void 0);
|
|
24027
24059
|
|
|
24028
|
-
var css_248z$
|
|
24060
|
+
var css_248z$L = 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{background-color:var(--sgds-form-surface-raised)}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):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
24061
|
|
|
24030
24062
|
/**
|
|
24031
24063
|
* @summary Text inputs allow your users to enter letters, numbers and symbols on a single line.
|
|
@@ -24226,7 +24258,7 @@
|
|
|
24226
24258
|
`;
|
|
24227
24259
|
}
|
|
24228
24260
|
}
|
|
24229
|
-
SgdsInput.styles = [...FormControlElement.styles, css_248z$
|
|
24261
|
+
SgdsInput.styles = [...FormControlElement.styles, css_248z$U, css_248z$L];
|
|
24230
24262
|
/** @internal */
|
|
24231
24263
|
SgdsInput.dependencies = {
|
|
24232
24264
|
"sgds-spinner": SgdsSpinner,
|
|
@@ -24299,7 +24331,7 @@
|
|
|
24299
24331
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
24300
24332
|
], SgdsInput.prototype, "_handleDisabledChange", null);
|
|
24301
24333
|
|
|
24302
|
-
var css_248z$
|
|
24334
|
+
var css_248z$K = 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
24335
|
|
|
24304
24336
|
class DatepickerInput extends SgdsInput {
|
|
24305
24337
|
constructor() {
|
|
@@ -24426,7 +24458,7 @@
|
|
|
24426
24458
|
`;
|
|
24427
24459
|
}
|
|
24428
24460
|
}
|
|
24429
|
-
DatepickerInput.styles = [...SgdsInput.styles, css_248z$
|
|
24461
|
+
DatepickerInput.styles = [...SgdsInput.styles, css_248z$K];
|
|
24430
24462
|
__decorate([
|
|
24431
24463
|
property({ type: String })
|
|
24432
24464
|
], DatepickerInput.prototype, "minDate", void 0);
|
|
@@ -24440,7 +24472,7 @@
|
|
|
24440
24472
|
queryAsync("input")
|
|
24441
24473
|
], DatepickerInput.prototype, "shadowInput", void 0);
|
|
24442
24474
|
|
|
24443
|
-
var css_248z$
|
|
24475
|
+
var css_248z$J = 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
24476
|
|
|
24445
24477
|
/**
|
|
24446
24478
|
* @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
|
|
@@ -24458,7 +24490,17 @@
|
|
|
24458
24490
|
this.required = false;
|
|
24459
24491
|
/** When true, adds disabled attribute to input and button element */
|
|
24460
24492
|
this.disabled = false;
|
|
24461
|
-
/**
|
|
24493
|
+
/** Sets the initial value of the datepicker. Replaces deprecated `initialValue`.
|
|
24494
|
+
* Pass in dates in this format `dd/mm/yyyy` for single mode and `dd/mm/yyyy - dd/mm/yyyy` for range mode
|
|
24495
|
+
* For example, `value="22/12/2023"` for single mode or `value="22/12/2023 - 25/12/2023"` for range mode
|
|
24496
|
+
*/
|
|
24497
|
+
this.value = "";
|
|
24498
|
+
/**
|
|
24499
|
+
* @deprecated since v3.1.1 in favour of `value`.
|
|
24500
|
+
* The initial value of DatePicker on first load for single &
|
|
24501
|
+
* range mode as array of string. eg.'["22/12/2023"]' for single &
|
|
24502
|
+
* '["22/12/2023","25/12/2023"]' for range respectively
|
|
24503
|
+
* */
|
|
24462
24504
|
this.initialValue = [];
|
|
24463
24505
|
this.dateFormat = "DD/MM/YYYY";
|
|
24464
24506
|
/** ISO date string to set the lowest allowable date value. e.g. "2016-05-19T12:00:00.000Z" */
|
|
@@ -24477,8 +24519,8 @@
|
|
|
24477
24519
|
this.noFlip = false;
|
|
24478
24520
|
/** The drop position of menu relative to the toggle button */
|
|
24479
24521
|
this.drop = "down";
|
|
24480
|
-
|
|
24481
|
-
this.
|
|
24522
|
+
/**Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
|
|
24523
|
+
this.defaultValue = "";
|
|
24482
24524
|
/**@internal */
|
|
24483
24525
|
this.invalid = false;
|
|
24484
24526
|
this.view = "days";
|
|
@@ -24564,6 +24606,7 @@
|
|
|
24564
24606
|
this.addEventListener("sgds-hide", this._handleCloseMenu);
|
|
24565
24607
|
this.addEventListener("sgds-show", this._handleOpenMenu);
|
|
24566
24608
|
this.addEventListener("blur", this._mixinCheckValidity);
|
|
24609
|
+
this.initialValue = this.value ? this.value.split(" - ").map(v => v.trim()) : this.initialValue;
|
|
24567
24610
|
this.initialDisplayDate = this.displayDate || new Date();
|
|
24568
24611
|
if (this.initialValue && this.initialValue.length > 0) {
|
|
24569
24612
|
// Validate initialValue against the dateFormat regex
|
|
@@ -24690,19 +24733,22 @@
|
|
|
24690
24733
|
this._manageInternalsBadInput();
|
|
24691
24734
|
}
|
|
24692
24735
|
async _handleEmptyInput() {
|
|
24693
|
-
this.
|
|
24736
|
+
if (this.required) {
|
|
24737
|
+
this._manageEmptyInput();
|
|
24738
|
+
}
|
|
24739
|
+
return;
|
|
24694
24740
|
}
|
|
24695
|
-
async _resetDatepicker() {
|
|
24741
|
+
async _resetDatepicker(resetValue = "") {
|
|
24696
24742
|
this.displayDate = this.initialDisplayDate;
|
|
24697
24743
|
this.selectedDateRange = [];
|
|
24698
|
-
this.value =
|
|
24744
|
+
this.value = resetValue;
|
|
24699
24745
|
this.view = "days";
|
|
24700
24746
|
const input = await this.datepickerInputAsync;
|
|
24701
24747
|
input.setInvalid(false);
|
|
24702
24748
|
input.destroyInputMask();
|
|
24703
24749
|
await input.applyInputMask();
|
|
24704
24750
|
this._mixinResetValidity(input);
|
|
24705
|
-
if (this.isValueEmpty()
|
|
24751
|
+
if (this.isValueEmpty()) {
|
|
24706
24752
|
this._handleEmptyInput();
|
|
24707
24753
|
}
|
|
24708
24754
|
}
|
|
@@ -24736,7 +24782,7 @@
|
|
|
24736
24782
|
* Handles the form "reset" event
|
|
24737
24783
|
*/
|
|
24738
24784
|
async _mixinResetFormControl() {
|
|
24739
|
-
this._resetDatepicker();
|
|
24785
|
+
this._resetDatepicker(this.defaultValue);
|
|
24740
24786
|
}
|
|
24741
24787
|
async _handleInputMaskChange(e) {
|
|
24742
24788
|
this.value = e.detail;
|
|
@@ -24812,7 +24858,7 @@
|
|
|
24812
24858
|
`;
|
|
24813
24859
|
}
|
|
24814
24860
|
}
|
|
24815
|
-
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$
|
|
24861
|
+
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$1a, css_248z$J];
|
|
24816
24862
|
/**@internal */
|
|
24817
24863
|
SgdsDatepicker.dependencies = {
|
|
24818
24864
|
"sgds-datepicker-input": DatepickerInput,
|
|
@@ -24830,6 +24876,9 @@
|
|
|
24830
24876
|
__decorate([
|
|
24831
24877
|
property({ type: Boolean, reflect: true })
|
|
24832
24878
|
], SgdsDatepicker.prototype, "disabled", void 0);
|
|
24879
|
+
__decorate([
|
|
24880
|
+
property({ type: String, reflect: true })
|
|
24881
|
+
], SgdsDatepicker.prototype, "value", void 0);
|
|
24833
24882
|
__decorate([
|
|
24834
24883
|
property({ type: Array, reflect: true })
|
|
24835
24884
|
], SgdsDatepicker.prototype, "initialValue", void 0);
|
|
@@ -24864,8 +24913,8 @@
|
|
|
24864
24913
|
property({ attribute: false })
|
|
24865
24914
|
], SgdsDatepicker.prototype, "displayDate", void 0);
|
|
24866
24915
|
__decorate([
|
|
24867
|
-
|
|
24868
|
-
], SgdsDatepicker.prototype, "
|
|
24916
|
+
defaultValue()
|
|
24917
|
+
], SgdsDatepicker.prototype, "defaultValue", void 0);
|
|
24869
24918
|
__decorate([
|
|
24870
24919
|
state()
|
|
24871
24920
|
], SgdsDatepicker.prototype, "invalid", void 0);
|
|
@@ -24891,12 +24940,12 @@
|
|
|
24891
24940
|
query("sgds-datepicker-input")
|
|
24892
24941
|
], SgdsDatepicker.prototype, "datepickerInput", void 0);
|
|
24893
24942
|
__decorate([
|
|
24894
|
-
watch("value")
|
|
24943
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
24895
24944
|
], SgdsDatepicker.prototype, "_handleValueChange", null);
|
|
24896
24945
|
|
|
24897
24946
|
register("sgds-datepicker", SgdsDatepicker);
|
|
24898
24947
|
|
|
24899
|
-
var css_248z$
|
|
24948
|
+
var css_248z$I = 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
24949
|
|
|
24901
24950
|
class HasSlotController {
|
|
24902
24951
|
constructor(host, ...slotNames) {
|
|
@@ -25032,7 +25081,7 @@
|
|
|
25032
25081
|
`;
|
|
25033
25082
|
}
|
|
25034
25083
|
}
|
|
25035
|
-
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$
|
|
25084
|
+
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$I];
|
|
25036
25085
|
__decorate([
|
|
25037
25086
|
property({ type: Boolean, reflect: true })
|
|
25038
25087
|
], SgdsDescriptionListGroup.prototype, "bordered", void 0);
|
|
@@ -25043,7 +25092,7 @@
|
|
|
25043
25092
|
queryAssignedElements({ flatten: true })
|
|
25044
25093
|
], SgdsDescriptionListGroup.prototype, "_descriptionLists", void 0);
|
|
25045
25094
|
|
|
25046
|
-
var css_248z$
|
|
25095
|
+
var css_248z$H = 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
25096
|
|
|
25048
25097
|
let id$2 = 0;
|
|
25049
25098
|
/**
|
|
@@ -25086,7 +25135,7 @@
|
|
|
25086
25135
|
`;
|
|
25087
25136
|
}
|
|
25088
25137
|
}
|
|
25089
|
-
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$
|
|
25138
|
+
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$H];
|
|
25090
25139
|
__decorate([
|
|
25091
25140
|
property({ type: Boolean, reflect: true })
|
|
25092
25141
|
], SgdsDescriptionList.prototype, "stacked", void 0);
|
|
@@ -25097,7 +25146,7 @@
|
|
|
25097
25146
|
register("sgds-description-list", SgdsDescriptionList);
|
|
25098
25147
|
register("sgds-description-list-group", SgdsDescriptionListGroup);
|
|
25099
25148
|
|
|
25100
|
-
var css_248z$
|
|
25149
|
+
var css_248z$G = 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
25150
|
|
|
25102
25151
|
/**
|
|
25103
25152
|
* @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 +25165,7 @@
|
|
|
25116
25165
|
this.setAttribute("aria-orientation", this.orientation);
|
|
25117
25166
|
}
|
|
25118
25167
|
}
|
|
25119
|
-
SgdsDivider.styles = [css_248z$
|
|
25168
|
+
SgdsDivider.styles = [css_248z$G];
|
|
25120
25169
|
__decorate([
|
|
25121
25170
|
property({ type: String, reflect: true })
|
|
25122
25171
|
], SgdsDivider.prototype, "orientation", void 0);
|
|
@@ -25133,7 +25182,7 @@
|
|
|
25133
25182
|
*/
|
|
25134
25183
|
function lockBodyScrolling(lockingEl) {
|
|
25135
25184
|
locks.add(lockingEl);
|
|
25136
|
-
document.body.
|
|
25185
|
+
document.body.style.overflow = "hidden";
|
|
25137
25186
|
}
|
|
25138
25187
|
/**
|
|
25139
25188
|
* Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.
|
|
@@ -25141,11 +25190,11 @@
|
|
|
25141
25190
|
function unlockBodyScrolling(lockingEl) {
|
|
25142
25191
|
locks.delete(lockingEl);
|
|
25143
25192
|
if (locks.size === 0) {
|
|
25144
|
-
document.body.
|
|
25193
|
+
document.body.style.overflow = "";
|
|
25145
25194
|
}
|
|
25146
25195
|
}
|
|
25147
25196
|
|
|
25148
|
-
var css_248z$
|
|
25197
|
+
var css_248z$F = 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
25198
|
|
|
25150
25199
|
/**
|
|
25151
25200
|
* @summary Drawers slide in from a container to expose additional options and information.
|
|
@@ -25364,7 +25413,7 @@
|
|
|
25364
25413
|
`;
|
|
25365
25414
|
}
|
|
25366
25415
|
}
|
|
25367
|
-
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$
|
|
25416
|
+
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$F];
|
|
25368
25417
|
/**@internal */
|
|
25369
25418
|
SgdsDrawer.dependencies = {
|
|
25370
25419
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -25489,7 +25538,7 @@
|
|
|
25489
25538
|
register("sgds-dropdown", SgdsDropdown);
|
|
25490
25539
|
register("sgds-dropdown-item", SgdsDropdownItem);
|
|
25491
25540
|
|
|
25492
|
-
var css_248z$
|
|
25541
|
+
var css_248z$E = 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
25542
|
|
|
25494
25543
|
/**
|
|
25495
25544
|
* @summary Allows users to upload files of various sizes and formats
|
|
@@ -25662,7 +25711,7 @@
|
|
|
25662
25711
|
`;
|
|
25663
25712
|
}
|
|
25664
25713
|
}
|
|
25665
|
-
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$
|
|
25714
|
+
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$E];
|
|
25666
25715
|
/**@internal */
|
|
25667
25716
|
SgdsFileUpload.dependencies = {
|
|
25668
25717
|
"sgds-button": SgdsButton,
|
|
@@ -25693,7 +25742,7 @@
|
|
|
25693
25742
|
|
|
25694
25743
|
register("sgds-file-upload", SgdsFileUpload);
|
|
25695
25744
|
|
|
25696
|
-
var css_248z$
|
|
25745
|
+
var css_248z$D = 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
25746
|
|
|
25698
25747
|
/**
|
|
25699
25748
|
* @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 +25845,7 @@
|
|
|
25796
25845
|
`;
|
|
25797
25846
|
}
|
|
25798
25847
|
}
|
|
25799
|
-
SgdsFooter.styles = [...SgdsElement.styles, css_248z$
|
|
25848
|
+
SgdsFooter.styles = [...SgdsElement.styles, css_248z$D];
|
|
25800
25849
|
__decorate([
|
|
25801
25850
|
property({ type: String })
|
|
25802
25851
|
], SgdsFooter.prototype, "copyrightLiner", void 0);
|
|
@@ -25816,7 +25865,7 @@
|
|
|
25816
25865
|
property({ type: String })
|
|
25817
25866
|
], SgdsFooter.prototype, "termsOfUseHref", void 0);
|
|
25818
25867
|
|
|
25819
|
-
var css_248z$
|
|
25868
|
+
var css_248z$C = 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
25869
|
|
|
25821
25870
|
/**
|
|
25822
25871
|
* @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 +25886,7 @@
|
|
|
25837
25886
|
`;
|
|
25838
25887
|
}
|
|
25839
25888
|
}
|
|
25840
|
-
SgdsFooterItem.styles = [...SgdsElement.styles, css_248z$
|
|
25889
|
+
SgdsFooterItem.styles = [...SgdsElement.styles, css_248z$C];
|
|
25841
25890
|
|
|
25842
25891
|
register("sgds-footer", SgdsFooter);
|
|
25843
25892
|
register("sgds-footer-item", SgdsFooterItem);
|
|
@@ -25846,7 +25895,7 @@
|
|
|
25846
25895
|
|
|
25847
25896
|
register("sgds-icon-button", SgdsIconButton);
|
|
25848
25897
|
|
|
25849
|
-
var css_248z$
|
|
25898
|
+
var css_248z$B = css`slot{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot::slotted(*){align-items:flex-start;display:flex;gap:var(--sgds-gap-xs)}.sm{font-size:var(--sgds-font-size-1)}.lg{font-size:var(--sgds-font-size-3)}`;
|
|
25850
25899
|
|
|
25851
25900
|
/**
|
|
25852
25901
|
* @summary A IconList can be used to display content related to the same topic. Each list item begins an icon.
|
|
@@ -25869,7 +25918,7 @@
|
|
|
25869
25918
|
`;
|
|
25870
25919
|
}
|
|
25871
25920
|
}
|
|
25872
|
-
SgdsIconList.styles = [...SgdsElement.styles, css_248z$
|
|
25921
|
+
SgdsIconList.styles = [...SgdsElement.styles, css_248z$B];
|
|
25873
25922
|
__decorate([
|
|
25874
25923
|
property({ type: String, reflect: true })
|
|
25875
25924
|
], SgdsIconList.prototype, "role", void 0);
|
|
@@ -26374,7 +26423,7 @@
|
|
|
26374
26423
|
|
|
26375
26424
|
const MainnavContext = createContext("mainnav-context");
|
|
26376
26425
|
|
|
26377
|
-
var css_248z$
|
|
26426
|
+
var css_248z$A = 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
26427
|
|
|
26379
26428
|
const SIZES = {
|
|
26380
26429
|
sm: SM_BREAKPOINT,
|
|
@@ -26596,7 +26645,7 @@
|
|
|
26596
26645
|
}
|
|
26597
26646
|
}
|
|
26598
26647
|
}
|
|
26599
|
-
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$
|
|
26648
|
+
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$A];
|
|
26600
26649
|
/** @internal */
|
|
26601
26650
|
SgdsMainnav.dependencies = {
|
|
26602
26651
|
"sgds-icon-button": SgdsIconButton
|
|
@@ -26659,7 +26708,7 @@
|
|
|
26659
26708
|
options: { duration: 200, easing: "ease-in-out" }
|
|
26660
26709
|
});
|
|
26661
26710
|
|
|
26662
|
-
var css_248z$
|
|
26711
|
+
var css_248z$z = 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
26712
|
|
|
26664
26713
|
const TAB = "Tab";
|
|
26665
26714
|
const ENTER = "Enter";
|
|
@@ -26703,7 +26752,7 @@
|
|
|
26703
26752
|
return;
|
|
26704
26753
|
}
|
|
26705
26754
|
if (this._breakpointReached) {
|
|
26706
|
-
this.shadowRoot.adoptedStyleSheets = [css_248z$
|
|
26755
|
+
this.shadowRoot.adoptedStyleSheets = [css_248z$1a.styleSheet, css_248z$z.styleSheet];
|
|
26707
26756
|
}
|
|
26708
26757
|
}
|
|
26709
26758
|
updated() {
|
|
@@ -26893,7 +26942,7 @@
|
|
|
26893
26942
|
return this._breakpointReached ? mobileView : desktopView;
|
|
26894
26943
|
}
|
|
26895
26944
|
}
|
|
26896
|
-
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$
|
|
26945
|
+
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$19, css_248z$1a, css_248z$z];
|
|
26897
26946
|
/** @internal */
|
|
26898
26947
|
SgdsMainnavDropdown.dependencies = {
|
|
26899
26948
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -26929,7 +26978,7 @@
|
|
|
26929
26978
|
queryAssignedElements()
|
|
26930
26979
|
], SgdsMainnavDropdown.prototype, "defaultNodes", void 0);
|
|
26931
26980
|
|
|
26932
|
-
var css_248z$
|
|
26981
|
+
var css_248z$y = 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
26982
|
|
|
26934
26983
|
/**
|
|
26935
26984
|
* @slot default - slot for SgdsMainnavItem element.
|
|
@@ -26938,7 +26987,7 @@
|
|
|
26938
26987
|
class SgdsMainnavItem extends SgdsElement {
|
|
26939
26988
|
constructor() {
|
|
26940
26989
|
super(...arguments);
|
|
26941
|
-
/** when true, sets the active stylings of
|
|
26990
|
+
/** when true, sets the active stylings of the navigation item */
|
|
26942
26991
|
this.active = false;
|
|
26943
26992
|
/** Disables the SgdsMainnavItem */
|
|
26944
26993
|
this.disabled = false;
|
|
@@ -26979,9 +27028,9 @@
|
|
|
26979
27028
|
return html$1 `<slot @slotchange=${this._handleSlotChange}></slot>`;
|
|
26980
27029
|
}
|
|
26981
27030
|
}
|
|
26982
|
-
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$
|
|
27031
|
+
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$y];
|
|
26983
27032
|
__decorate([
|
|
26984
|
-
property({ type: Boolean })
|
|
27033
|
+
property({ type: Boolean, reflect: true })
|
|
26985
27034
|
], SgdsMainnavItem.prototype, "active", void 0);
|
|
26986
27035
|
__decorate([
|
|
26987
27036
|
property({ type: Boolean, reflect: true })
|
|
@@ -26994,9 +27043,9 @@
|
|
|
26994
27043
|
register("sgds-mainnav-dropdown", SgdsMainnavDropdown);
|
|
26995
27044
|
register("sgds-mainnav-item", SgdsMainnavItem);
|
|
26996
27045
|
|
|
26997
|
-
var css_248z$
|
|
27046
|
+
var css_248z$x = 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
27047
|
|
|
26999
|
-
var css_248z$
|
|
27048
|
+
var css_248z$w = css`svg{vertical-align:middle}`;
|
|
27000
27049
|
|
|
27001
27050
|
/**
|
|
27002
27051
|
* @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 +27223,7 @@
|
|
|
27174
27223
|
`;
|
|
27175
27224
|
}
|
|
27176
27225
|
}
|
|
27177
|
-
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$
|
|
27226
|
+
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$w, css_248z$1d, css_248z$x];
|
|
27178
27227
|
__decorate([
|
|
27179
27228
|
state()
|
|
27180
27229
|
], SgdsMasthead.prototype, "toggleVisibility", void 0);
|
|
@@ -27298,7 +27347,7 @@
|
|
|
27298
27347
|
}
|
|
27299
27348
|
}
|
|
27300
27349
|
|
|
27301
|
-
var css_248z$
|
|
27350
|
+
var css_248z$v = 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
27351
|
|
|
27303
27352
|
/**
|
|
27304
27353
|
* @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 +27412,7 @@
|
|
|
27363
27412
|
return;
|
|
27364
27413
|
if (buttonElements.length <= 1)
|
|
27365
27414
|
return;
|
|
27366
|
-
if (panelWidth
|
|
27415
|
+
if (panelWidth < SM_BREAKPOINT || (this.size === "fullscreen" && panelWidth < MD_BREAKPOINT)) {
|
|
27367
27416
|
buttonElements.forEach(buttonElement => {
|
|
27368
27417
|
const button = buttonElement;
|
|
27369
27418
|
button.fullWidth = true;
|
|
@@ -27507,20 +27556,22 @@
|
|
|
27507
27556
|
aria-labelledby="title"
|
|
27508
27557
|
tabindex="-1"
|
|
27509
27558
|
>
|
|
27510
|
-
<div class="modal-
|
|
27511
|
-
<div class="modal-
|
|
27512
|
-
<
|
|
27513
|
-
|
|
27559
|
+
<div class="modal-content">
|
|
27560
|
+
<div class="modal-header">
|
|
27561
|
+
<div class="modal-header__title-description">
|
|
27562
|
+
<slot class="modal-title" id="title" name="title"></slot>
|
|
27563
|
+
<slot name="description"></slot>
|
|
27564
|
+
</div>
|
|
27565
|
+
<sgds-close-button
|
|
27566
|
+
class="modal-header__close"
|
|
27567
|
+
@click="${() => this.requestClose("close-button")}"
|
|
27568
|
+
ariaLabel="close modal"
|
|
27569
|
+
></sgds-close-button>
|
|
27514
27570
|
</div>
|
|
27515
|
-
<
|
|
27516
|
-
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
></sgds-close-button>
|
|
27520
|
-
</div>
|
|
27521
|
-
<div class="modal-body">
|
|
27522
|
-
<slot></slot>
|
|
27523
|
-
</div>
|
|
27571
|
+
<div class="modal-body">
|
|
27572
|
+
<slot></slot>
|
|
27573
|
+
</div>
|
|
27574
|
+
</div class="modal-content">
|
|
27524
27575
|
<div class="modal-footer">
|
|
27525
27576
|
<slot name="footer"></slot>
|
|
27526
27577
|
</div>
|
|
@@ -27529,7 +27580,7 @@
|
|
|
27529
27580
|
`;
|
|
27530
27581
|
}
|
|
27531
27582
|
}
|
|
27532
|
-
SgdsModal.styles = [...SgdsElement.styles, css_248z$
|
|
27583
|
+
SgdsModal.styles = [...SgdsElement.styles, css_248z$_, css_248z$w, css_248z$v];
|
|
27533
27584
|
/**@internal */
|
|
27534
27585
|
SgdsModal.dependencies = {
|
|
27535
27586
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -27587,7 +27638,9 @@
|
|
|
27587
27638
|
|
|
27588
27639
|
register("sgds-modal", SgdsModal);
|
|
27589
27640
|
|
|
27590
|
-
|
|
27641
|
+
register("sgds-overflow-menu", SgdsOverflowMenu);
|
|
27642
|
+
|
|
27643
|
+
var css_248z$u = 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
27644
|
|
|
27592
27645
|
/**
|
|
27593
27646
|
* @summary The Pagination component enables the user to select a specific page from a range of pages
|
|
@@ -27871,7 +27924,7 @@
|
|
|
27871
27924
|
`;
|
|
27872
27925
|
}
|
|
27873
27926
|
}
|
|
27874
|
-
SgdsPagination.styles = [...SgdsElement.styles, css_248z$
|
|
27927
|
+
SgdsPagination.styles = [...SgdsElement.styles, css_248z$u];
|
|
27875
27928
|
/**@internal */
|
|
27876
27929
|
SgdsPagination.dependencies = {
|
|
27877
27930
|
"sgds-icon-button": SgdsIconButton,
|
|
@@ -28008,7 +28061,7 @@
|
|
|
28008
28061
|
*/
|
|
28009
28062
|
const styleMap = directive(StyleMapDirective);
|
|
28010
28063
|
|
|
28011
|
-
var css_248z$
|
|
28064
|
+
var css_248z$t = 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
28065
|
|
|
28013
28066
|
/**
|
|
28014
28067
|
* @summary Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.
|
|
@@ -28044,7 +28097,7 @@
|
|
|
28044
28097
|
`;
|
|
28045
28098
|
}
|
|
28046
28099
|
}
|
|
28047
|
-
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$
|
|
28100
|
+
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$t];
|
|
28048
28101
|
__decorate([
|
|
28049
28102
|
property({ type: String, reflect: true })
|
|
28050
28103
|
], SgdsProgressBar.prototype, "variant", void 0);
|
|
@@ -28066,7 +28119,7 @@
|
|
|
28066
28119
|
|
|
28067
28120
|
register("sgds-progress-bar", SgdsProgressBar);
|
|
28068
28121
|
|
|
28069
|
-
var css_248z$
|
|
28122
|
+
var css_248z$s = 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
28123
|
|
|
28071
28124
|
/**
|
|
28072
28125
|
* @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 +28336,7 @@
|
|
|
28283
28336
|
`;
|
|
28284
28337
|
}
|
|
28285
28338
|
}
|
|
28286
|
-
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$
|
|
28339
|
+
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$U, css_248z$w, css_248z$s];
|
|
28287
28340
|
/** @internal */
|
|
28288
28341
|
SgdsQuantityToggle.dependencies = {
|
|
28289
28342
|
"sgds-input": SgdsInput,
|
|
@@ -28322,7 +28375,7 @@
|
|
|
28322
28375
|
|
|
28323
28376
|
register("sgds-quantity-toggle", SgdsQuantityToggle);
|
|
28324
28377
|
|
|
28325
|
-
var css_248z$
|
|
28378
|
+
var css_248z$r = 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
28379
|
|
|
28327
28380
|
/**
|
|
28328
28381
|
* @summary Radio allows the user to select one option from a set while seeing all available options.
|
|
@@ -28408,7 +28461,7 @@
|
|
|
28408
28461
|
`;
|
|
28409
28462
|
}
|
|
28410
28463
|
}
|
|
28411
|
-
SgdsRadio.styles = [...SgdsElement.styles, css_248z$
|
|
28464
|
+
SgdsRadio.styles = [...SgdsElement.styles, css_248z$V, css_248z$r];
|
|
28412
28465
|
__decorate([
|
|
28413
28466
|
property({ type: Boolean, reflect: true })
|
|
28414
28467
|
], SgdsRadio.prototype, "checked", void 0);
|
|
@@ -28431,7 +28484,7 @@
|
|
|
28431
28484
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
28432
28485
|
], SgdsRadio.prototype, "handleDisabledChange", null);
|
|
28433
28486
|
|
|
28434
|
-
var css_248z$
|
|
28487
|
+
var css_248z$q = 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
28488
|
|
|
28436
28489
|
/**
|
|
28437
28490
|
* @summary RadioGroup group multiple radios so they function as a single form control.
|
|
@@ -28662,7 +28715,7 @@
|
|
|
28662
28715
|
`;
|
|
28663
28716
|
}
|
|
28664
28717
|
}
|
|
28665
|
-
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$
|
|
28718
|
+
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$q];
|
|
28666
28719
|
__decorate([
|
|
28667
28720
|
query("slot:not([name])")
|
|
28668
28721
|
], SgdsRadioGroup.prototype, "defaultSlot", void 0);
|
|
@@ -28703,7 +28756,7 @@
|
|
|
28703
28756
|
register("sgds-radio", SgdsRadio);
|
|
28704
28757
|
register("sgds-radio-group", SgdsRadioGroup);
|
|
28705
28758
|
|
|
28706
|
-
var css_248z$
|
|
28759
|
+
var css_248z$p = 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
28760
|
|
|
28708
28761
|
/**
|
|
28709
28762
|
* @summary The side navigation is used to display a list of links to move between pages within a related category.
|
|
@@ -28748,7 +28801,7 @@
|
|
|
28748
28801
|
`;
|
|
28749
28802
|
}
|
|
28750
28803
|
}
|
|
28751
|
-
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$
|
|
28804
|
+
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$p];
|
|
28752
28805
|
__decorate([
|
|
28753
28806
|
property({ type: Boolean, attribute: true })
|
|
28754
28807
|
], SgdsSidenav.prototype, "sticky", void 0);
|
|
@@ -28756,7 +28809,7 @@
|
|
|
28756
28809
|
queryAssignedElements()
|
|
28757
28810
|
], SgdsSidenav.prototype, "defaultNodes", void 0);
|
|
28758
28811
|
|
|
28759
|
-
var css_248z$
|
|
28812
|
+
var css_248z$o = 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
28813
|
|
|
28761
28814
|
/**
|
|
28762
28815
|
* @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 +29019,7 @@
|
|
|
28966
29019
|
`;
|
|
28967
29020
|
}
|
|
28968
29021
|
}
|
|
28969
|
-
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$
|
|
29022
|
+
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$o];
|
|
28970
29023
|
/** @internal */
|
|
28971
29024
|
SgdsSidenavItem.dependencies = {
|
|
28972
29025
|
"sgds-icon": SgdsIcon
|
|
@@ -29007,7 +29060,7 @@
|
|
|
29007
29060
|
options: { duration: 200, easing: "ease-in-out" }
|
|
29008
29061
|
});
|
|
29009
29062
|
|
|
29010
|
-
var css_248z$
|
|
29063
|
+
var css_248z$n = 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
29064
|
|
|
29012
29065
|
/**
|
|
29013
29066
|
* @slot default - slot for label of anchor tag.
|
|
@@ -29044,7 +29097,7 @@
|
|
|
29044
29097
|
return html$1 ` <slot @slotchange=${this._handleSlotChange}></slot> `;
|
|
29045
29098
|
}
|
|
29046
29099
|
}
|
|
29047
|
-
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$
|
|
29100
|
+
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$n];
|
|
29048
29101
|
__decorate([
|
|
29049
29102
|
property({ type: Boolean, reflect: true })
|
|
29050
29103
|
], SgdsSidenavLink.prototype, "active", void 0);
|
|
@@ -29062,7 +29115,7 @@
|
|
|
29062
29115
|
register("sgds-sidenav-item", SgdsSidenavItem);
|
|
29063
29116
|
register("sgds-sidenav-link", SgdsSidenavLink);
|
|
29064
29117
|
|
|
29065
|
-
var css_248z$
|
|
29118
|
+
var css_248z$m = 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
29119
|
|
|
29067
29120
|
/**
|
|
29068
29121
|
* @summary A skeleton is a low-fidelity visual placeholder that represents the loading of interface elements
|
|
@@ -29110,7 +29163,7 @@
|
|
|
29110
29163
|
`;
|
|
29111
29164
|
}
|
|
29112
29165
|
}
|
|
29113
|
-
SgdsSkeleton.styles = [css_248z$
|
|
29166
|
+
SgdsSkeleton.styles = [css_248z$m];
|
|
29114
29167
|
__decorate([
|
|
29115
29168
|
query(".skeleton")
|
|
29116
29169
|
], SgdsSkeleton.prototype, "skeleton", void 0);
|
|
@@ -29137,7 +29190,7 @@
|
|
|
29137
29190
|
|
|
29138
29191
|
register("sgds-spinner", SgdsSpinner);
|
|
29139
29192
|
|
|
29140
|
-
var css_248z$
|
|
29193
|
+
var css_248z$l = 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
29194
|
|
|
29142
29195
|
/**
|
|
29143
29196
|
* @summary Switch component is used to toggle on and off or yes or no action.
|
|
@@ -29235,7 +29288,7 @@
|
|
|
29235
29288
|
`;
|
|
29236
29289
|
}
|
|
29237
29290
|
}
|
|
29238
|
-
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$
|
|
29291
|
+
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$V, css_248z$l];
|
|
29239
29292
|
__decorate([
|
|
29240
29293
|
property({ reflect: true, type: String })
|
|
29241
29294
|
], SgdsSwitch.prototype, "size", void 0);
|
|
@@ -29260,7 +29313,7 @@
|
|
|
29260
29313
|
|
|
29261
29314
|
register("sgds-switch", SgdsSwitch);
|
|
29262
29315
|
|
|
29263
|
-
var css_248z$
|
|
29316
|
+
var css_248z$k = 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
29317
|
|
|
29265
29318
|
/**
|
|
29266
29319
|
* @summary Steppers are used to inform users which step they are at in a form or a process
|
|
@@ -29378,7 +29431,7 @@
|
|
|
29378
29431
|
`;
|
|
29379
29432
|
}
|
|
29380
29433
|
}
|
|
29381
|
-
SgdsStepper.styles = [...SgdsElement.styles, css_248z$
|
|
29434
|
+
SgdsStepper.styles = [...SgdsElement.styles, css_248z$k];
|
|
29382
29435
|
/** @internal */
|
|
29383
29436
|
SgdsStepper.dependencies = { "sgds-icon": SgdsIcon };
|
|
29384
29437
|
__decorate([
|
|
@@ -29402,7 +29455,7 @@
|
|
|
29402
29455
|
|
|
29403
29456
|
register("sgds-stepper", SgdsStepper);
|
|
29404
29457
|
|
|
29405
|
-
var css_248z$
|
|
29458
|
+
var css_248z$j = 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
29459
|
|
|
29407
29460
|
let id$1 = 0;
|
|
29408
29461
|
/**
|
|
@@ -29458,7 +29511,7 @@
|
|
|
29458
29511
|
`;
|
|
29459
29512
|
}
|
|
29460
29513
|
}
|
|
29461
|
-
SgdsTab.styles = [css_248z$
|
|
29514
|
+
SgdsTab.styles = [css_248z$j];
|
|
29462
29515
|
__decorate([
|
|
29463
29516
|
query(".tab")
|
|
29464
29517
|
], SgdsTab.prototype, "tab", void 0);
|
|
@@ -29478,7 +29531,7 @@
|
|
|
29478
29531
|
watch("disabled")
|
|
29479
29532
|
], SgdsTab.prototype, "handleDisabledChange", null);
|
|
29480
29533
|
|
|
29481
|
-
var css_248z$
|
|
29534
|
+
var css_248z$i = 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
29535
|
|
|
29483
29536
|
/**
|
|
29484
29537
|
* @summary Tab Group organizes content into a container with the syncing of tab and their corresponding panels.
|
|
@@ -29695,7 +29748,7 @@
|
|
|
29695
29748
|
`;
|
|
29696
29749
|
}
|
|
29697
29750
|
}
|
|
29698
|
-
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$
|
|
29751
|
+
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$i];
|
|
29699
29752
|
__decorate([
|
|
29700
29753
|
query(".tab-group")
|
|
29701
29754
|
], SgdsTabGroup.prototype, "_tabGroup", void 0);
|
|
@@ -29718,7 +29771,7 @@
|
|
|
29718
29771
|
queryAssignedElements({ slot: "nav", flatten: true })
|
|
29719
29772
|
], SgdsTabGroup.prototype, "_navSlot", void 0);
|
|
29720
29773
|
|
|
29721
|
-
var css_248z$
|
|
29774
|
+
var css_248z$h = css`.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;
|
|
29722
29775
|
|
|
29723
29776
|
let id = 0;
|
|
29724
29777
|
/**
|
|
@@ -29755,7 +29808,7 @@
|
|
|
29755
29808
|
`;
|
|
29756
29809
|
}
|
|
29757
29810
|
}
|
|
29758
|
-
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$
|
|
29811
|
+
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$h];
|
|
29759
29812
|
__decorate([
|
|
29760
29813
|
property({ reflect: true })
|
|
29761
29814
|
], SgdsTabPanel.prototype, "name", void 0);
|
|
@@ -29770,10 +29823,13 @@
|
|
|
29770
29823
|
register("sgds-tab-group", SgdsTabGroup);
|
|
29771
29824
|
register("sgds-tab-panel", SgdsTabPanel);
|
|
29772
29825
|
|
|
29773
|
-
var css_248z$
|
|
29826
|
+
var css_248z$g = 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
29827
|
|
|
29775
29828
|
/**
|
|
29776
|
-
* @summary
|
|
29829
|
+
* @summary Table is used for displaying collections of data in organized rows and columns.
|
|
29830
|
+
* 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.
|
|
29831
|
+
*
|
|
29832
|
+
* @slot - Insert custom table elements (such as rows, headers, or cells) to define the table structure manually.
|
|
29777
29833
|
*/
|
|
29778
29834
|
class SgdsTable extends SgdsElement {
|
|
29779
29835
|
constructor() {
|
|
@@ -29795,18 +29851,17 @@
|
|
|
29795
29851
|
*/
|
|
29796
29852
|
this.headerPosition = "horizontal";
|
|
29797
29853
|
/** @internal */
|
|
29798
|
-
this.
|
|
29854
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
29799
29855
|
}
|
|
29800
29856
|
connectedCallback() {
|
|
29801
29857
|
super.connectedCallback();
|
|
29802
|
-
this.originalTableData = [...this.tableData];
|
|
29803
29858
|
}
|
|
29804
29859
|
_renderTable() {
|
|
29805
29860
|
if (this.headerPosition === "horizontal") {
|
|
29806
29861
|
return html$1 `
|
|
29807
29862
|
<thead>
|
|
29808
29863
|
<tr>
|
|
29809
|
-
${this.rowHeader.map((header
|
|
29864
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
29810
29865
|
</tr>
|
|
29811
29866
|
</thead>
|
|
29812
29867
|
<tbody>
|
|
@@ -29823,7 +29878,7 @@
|
|
|
29823
29878
|
<thead>
|
|
29824
29879
|
<tr>
|
|
29825
29880
|
<th></th>
|
|
29826
|
-
${this.rowHeader.map((header
|
|
29881
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
29827
29882
|
</tr>
|
|
29828
29883
|
</thead>
|
|
29829
29884
|
<tbody>
|
|
@@ -29849,6 +29904,7 @@
|
|
|
29849
29904
|
}
|
|
29850
29905
|
}
|
|
29851
29906
|
render() {
|
|
29907
|
+
const hasDefaultSlot = this.hasSlotController.test("[default]");
|
|
29852
29908
|
return html$1 `
|
|
29853
29909
|
<div
|
|
29854
29910
|
class=${classMap({
|
|
@@ -29860,14 +29916,18 @@
|
|
|
29860
29916
|
})}
|
|
29861
29917
|
tabindex="0"
|
|
29862
29918
|
>
|
|
29863
|
-
<table class="table">
|
|
29864
|
-
|
|
29865
|
-
|
|
29919
|
+
<slot id="table-slot" class="table"></slot>
|
|
29920
|
+
|
|
29921
|
+
${!hasDefaultSlot
|
|
29922
|
+
? html$1 `<table class="table">
|
|
29923
|
+
${this._renderTable()}
|
|
29924
|
+
</table>`
|
|
29925
|
+
: ""}
|
|
29866
29926
|
</div>
|
|
29867
29927
|
`;
|
|
29868
29928
|
}
|
|
29869
29929
|
}
|
|
29870
|
-
SgdsTable.styles = [...SgdsElement.styles, css_248z$
|
|
29930
|
+
SgdsTable.styles = [...SgdsElement.styles, css_248z$g];
|
|
29871
29931
|
__decorate([
|
|
29872
29932
|
property({ type: String, reflect: true })
|
|
29873
29933
|
], SgdsTable.prototype, "responsive", void 0);
|
|
@@ -29881,15 +29941,87 @@
|
|
|
29881
29941
|
property({ type: Array })
|
|
29882
29942
|
], SgdsTable.prototype, "tableData", void 0);
|
|
29883
29943
|
__decorate([
|
|
29884
|
-
property({ type: String
|
|
29944
|
+
property({ type: String })
|
|
29885
29945
|
], SgdsTable.prototype, "headerPosition", void 0);
|
|
29946
|
+
|
|
29947
|
+
var css_248z$f = 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)}`;
|
|
29948
|
+
|
|
29949
|
+
/**
|
|
29950
|
+
* @summary Table head represents a table header cell that identifies a group of information within the table.
|
|
29951
|
+
*
|
|
29952
|
+
* @slot - Place any elements inside to display as the header content.
|
|
29953
|
+
*/
|
|
29954
|
+
class SgdsTableHead extends SgdsElement {
|
|
29955
|
+
constructor() {
|
|
29956
|
+
super(...arguments);
|
|
29957
|
+
/**
|
|
29958
|
+
* To indicate if the header will have a darker bottom border style
|
|
29959
|
+
*/
|
|
29960
|
+
this.border = false;
|
|
29961
|
+
}
|
|
29962
|
+
_handleBorderChange() {
|
|
29963
|
+
var _a, _b;
|
|
29964
|
+
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";
|
|
29965
|
+
this.border ? this.setAttribute("border", "true") : this.removeAttribute("border");
|
|
29966
|
+
}
|
|
29967
|
+
connectedCallback() {
|
|
29968
|
+
super.connectedCallback();
|
|
29969
|
+
this.setAttribute("role", "columnheader");
|
|
29970
|
+
}
|
|
29971
|
+
render() {
|
|
29972
|
+
return html$1 `<slot></slot>`;
|
|
29973
|
+
}
|
|
29974
|
+
}
|
|
29975
|
+
SgdsTableHead.styles = [...SgdsElement.styles, css_248z$f];
|
|
29886
29976
|
__decorate([
|
|
29887
29977
|
state()
|
|
29888
|
-
],
|
|
29978
|
+
], SgdsTableHead.prototype, "border", void 0);
|
|
29979
|
+
__decorate([
|
|
29980
|
+
watch("border")
|
|
29981
|
+
], SgdsTableHead.prototype, "_handleBorderChange", null);
|
|
29982
|
+
|
|
29983
|
+
var css_248z$e = css`:host{display:table-row;width:100%}`;
|
|
29984
|
+
|
|
29985
|
+
/**
|
|
29986
|
+
* @summary Table row organizes and groups table cells or header cells into a single horizontal line within the table.
|
|
29987
|
+
*
|
|
29988
|
+
* @slot - Insert any table cell or header elements to be displayed as part of this row.
|
|
29989
|
+
*/
|
|
29990
|
+
class SgdsTableRow extends SgdsElement {
|
|
29991
|
+
connectedCallback() {
|
|
29992
|
+
super.connectedCallback();
|
|
29993
|
+
this.setAttribute("role", "row");
|
|
29994
|
+
}
|
|
29995
|
+
render() {
|
|
29996
|
+
return html$1 `<slot class="table-row"></slot>`;
|
|
29997
|
+
}
|
|
29998
|
+
}
|
|
29999
|
+
SgdsTableRow.styles = [...SgdsElement.styles, css_248z$e];
|
|
30000
|
+
|
|
30001
|
+
var css_248z$d = css`:host{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:table-cell;padding:var(--sgds-padding-lg)}`;
|
|
30002
|
+
|
|
30003
|
+
/**
|
|
30004
|
+
* @summary Table cell is used for presenting individual data values, interactive elements, or custom content within a table row.
|
|
30005
|
+
*
|
|
30006
|
+
* @slot - Insert any elements to be rendered as the cell’s content.
|
|
30007
|
+
*/
|
|
30008
|
+
class SgdsTableCell extends SgdsElement {
|
|
30009
|
+
connectedCallback() {
|
|
30010
|
+
super.connectedCallback();
|
|
30011
|
+
this.setAttribute("role", "cell");
|
|
30012
|
+
}
|
|
30013
|
+
render() {
|
|
30014
|
+
return html$1 ` <slot class="table-cell"></slot> `;
|
|
30015
|
+
}
|
|
30016
|
+
}
|
|
30017
|
+
SgdsTableCell.styles = [...SgdsElement.styles, css_248z$d];
|
|
29889
30018
|
|
|
29890
30019
|
register("sgds-table", SgdsTable);
|
|
30020
|
+
register("sgds-table-head", SgdsTableHead);
|
|
30021
|
+
register("sgds-table-row", SgdsTableRow);
|
|
30022
|
+
register("sgds-table-cell", SgdsTableCell);
|
|
29891
30023
|
|
|
29892
|
-
var css_248z$
|
|
30024
|
+
var css_248z$c = 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
30025
|
|
|
29894
30026
|
/**
|
|
29895
30027
|
* @summary Text areas allow for the collection of input longer than a single line.
|
|
@@ -30085,7 +30217,7 @@
|
|
|
30085
30217
|
`;
|
|
30086
30218
|
}
|
|
30087
30219
|
}
|
|
30088
|
-
SgdsTextarea.styles = [...FormControlElement.styles, css_248z$
|
|
30220
|
+
SgdsTextarea.styles = [...FormControlElement.styles, css_248z$c];
|
|
30089
30221
|
__decorate([
|
|
30090
30222
|
query("textarea.form-control")
|
|
30091
30223
|
], SgdsTextarea.prototype, "textarea", void 0);
|
|
@@ -30158,7 +30290,7 @@
|
|
|
30158
30290
|
|
|
30159
30291
|
register("sgds-textarea", SgdsTextarea);
|
|
30160
30292
|
|
|
30161
|
-
var css_248z$
|
|
30293
|
+
var css_248z$b = 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
30294
|
|
|
30163
30295
|
/**
|
|
30164
30296
|
* @summary Toast allows you to convey quick messaging notifications to the user.
|
|
@@ -30275,7 +30407,7 @@
|
|
|
30275
30407
|
`;
|
|
30276
30408
|
}
|
|
30277
30409
|
}
|
|
30278
|
-
SgdsToast.styles = [...SgdsElement.styles, css_248z$
|
|
30410
|
+
SgdsToast.styles = [...SgdsElement.styles, css_248z$b];
|
|
30279
30411
|
/**@internal */
|
|
30280
30412
|
SgdsToast.dependencies = {
|
|
30281
30413
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -30319,7 +30451,7 @@
|
|
|
30319
30451
|
options: { duration: 400, easing: "ease" }
|
|
30320
30452
|
});
|
|
30321
30453
|
|
|
30322
|
-
var css_248z$
|
|
30454
|
+
var css_248z$a = css`.toast-container{max-width:100%;pointer-events:none;position:fixed;width:max-content;z-index:1090}.top-start{left:0;top:0}.top-center{left:50%;top:0;transform:translateX(-50%)}.top-end{right:0;top:0}.middle-start{left:0;top:50%;transform:translateY(-50%)}.middle-center{left:50%;top:50%;transform:translate(-50%,-50%)}.middle-end{right:0;top:50%;transform:translateY(-50%)}.bottom-start{bottom:0;left:0}.bottom-center{bottom:0;left:50%;transform:translateX(-50%)}.bottom-end{bottom:0;right:0}slot{display:flex;flex-direction:column;gap:.5rem}`;
|
|
30323
30455
|
|
|
30324
30456
|
/**
|
|
30325
30457
|
* @summary ToastContainer is the container component to position `sgds-toast` in screen. When there is multiple toasts in the container, the toast components are stacked vertically.
|
|
@@ -30341,7 +30473,7 @@
|
|
|
30341
30473
|
`;
|
|
30342
30474
|
}
|
|
30343
30475
|
}
|
|
30344
|
-
SgdsToastContainer.styles = [css_248z$
|
|
30476
|
+
SgdsToastContainer.styles = [css_248z$a];
|
|
30345
30477
|
__decorate([
|
|
30346
30478
|
property({ type: String, reflect: true })
|
|
30347
30479
|
], SgdsToastContainer.prototype, "position", void 0);
|
|
@@ -31243,7 +31375,7 @@
|
|
|
31243
31375
|
|
|
31244
31376
|
defineJQueryPlugin(Tooltip);
|
|
31245
31377
|
|
|
31246
|
-
var css_248z$
|
|
31378
|
+
var css_248z$9 = css`:host{display:contents}.tooltip-placeholder{display:inline-block}.tooltip{word-wrap:break-word;display:block;line-break:auto;opacity:0;text-align:left;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;z-index:1080}.tooltip.show{opacity:1}.tooltip-inner{background-color:var(--sgds-surface-fixed-dark);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);color:var(--sgds-color-fixed-light);font-size:var(--sgds-font-size-1);max-width:var(--sgds-dimension-320);padding:var(--sgds-padding-xs) var(--sgds-padding-sm)}div{max-width:fit-content}`;
|
|
31247
31379
|
|
|
31248
31380
|
/**
|
|
31249
31381
|
* @summary Tooltips display more information when users hover over, focus on, or interact with an element.
|
|
@@ -31336,7 +31468,7 @@
|
|
|
31336
31468
|
`;
|
|
31337
31469
|
}
|
|
31338
31470
|
}
|
|
31339
|
-
SgdsTooltip.styles = [...SgdsElement.styles, css_248z$
|
|
31471
|
+
SgdsTooltip.styles = [...SgdsElement.styles, css_248z$9];
|
|
31340
31472
|
__decorate([
|
|
31341
31473
|
property({ type: String })
|
|
31342
31474
|
], SgdsTooltip.prototype, "content", void 0);
|
|
@@ -31355,7 +31487,7 @@
|
|
|
31355
31487
|
|
|
31356
31488
|
register("sgds-tooltip", SgdsTooltip);
|
|
31357
31489
|
|
|
31358
|
-
var css_248z$
|
|
31490
|
+
var css_248z$8 = css`.container{display:flex;flex-direction:column;gap:var(--sgds-gap-xl)}slot:not([name])::slotted(*){--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-bold,var(--sgds-font-weight-semibold));margin-bottom:var(--sgds-margin-2-xs,var(--sgds-margin-none))}.contents{display:flex;flex-direction:column;gap:var(--sgds-gap-md);list-style:none;margin:var(--sgds-margin-none);padding:var(--sgds-padding-none)}slot[name=contents]::slotted(li){--sgds-margin-3-xs:var(--sgds-margin-none);margin-top:var(--sgds-margin-3-xs,var(--sgds-margin-none))}`;
|
|
31359
31491
|
|
|
31360
31492
|
/**
|
|
31361
31493
|
*
|
|
@@ -31374,14 +31506,15 @@
|
|
|
31374
31506
|
</div> `;
|
|
31375
31507
|
}
|
|
31376
31508
|
}
|
|
31377
|
-
SgdsTableOfContents.styles = [...SgdsElement.styles, css_248z$
|
|
31509
|
+
SgdsTableOfContents.styles = [...SgdsElement.styles, css_248z$8];
|
|
31378
31510
|
|
|
31379
31511
|
customElements.define("sgds-table-of-contents", SgdsTableOfContents);
|
|
31380
31512
|
|
|
31381
|
-
var css_248z$
|
|
31513
|
+
var css_248z$7 = css`:host{display:block;position:sticky;top:0;z-index:1000}nav{background-color:var(--sgds-surface-raised);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-raised);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
31514
|
|
|
31383
|
-
var css_248z$
|
|
31515
|
+
var css_248z$6 = 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
31516
|
|
|
31517
|
+
const VALID_KEYS = ["Enter", " "];
|
|
31385
31518
|
/**
|
|
31386
31519
|
* @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
31520
|
*
|
|
@@ -31400,21 +31533,33 @@
|
|
|
31400
31533
|
super(...arguments);
|
|
31401
31534
|
this.isCollapsed = false;
|
|
31402
31535
|
this.isMenuOpen = false;
|
|
31403
|
-
this._handleResize = () => {
|
|
31536
|
+
this._handleResize = async () => {
|
|
31404
31537
|
this.isCollapsed = window.innerWidth < LG_BREAKPOINT;
|
|
31538
|
+
await this.updateComplete;
|
|
31405
31539
|
if (!this.isCollapsed) {
|
|
31406
31540
|
this.isMenuOpen = false;
|
|
31407
31541
|
}
|
|
31408
|
-
this.
|
|
31542
|
+
this._updateMobileLayout();
|
|
31409
31543
|
};
|
|
31410
|
-
this.
|
|
31411
|
-
if (!this.nav || !this.
|
|
31544
|
+
this._updateMobileLayout = () => {
|
|
31545
|
+
if (!this.nav || !this.headerContainer || !this.mobileActions || !this.mobileNav)
|
|
31412
31546
|
return;
|
|
31413
|
-
|
|
31414
|
-
|
|
31415
|
-
|
|
31416
|
-
|
|
31417
|
-
|
|
31547
|
+
if (this.isCollapsed) {
|
|
31548
|
+
const { top: subnavTop } = this.nav.getBoundingClientRect();
|
|
31549
|
+
const headerHeight = this.headerContainer.clientHeight;
|
|
31550
|
+
const actionsButtonHeight = this.mobileActions.clientHeight;
|
|
31551
|
+
const offset = window.innerWidth >= MD_BREAKPOINT && window.innerWidth < LG_BREAKPOINT
|
|
31552
|
+
? subnavTop + headerHeight
|
|
31553
|
+
: subnavTop + headerHeight + actionsButtonHeight;
|
|
31554
|
+
this.mobileNav.style.maxHeight = `calc(100dvh - ${offset}px)`;
|
|
31555
|
+
this.style.minHeight = `${this.nav.clientHeight}px`;
|
|
31556
|
+
this.nav.style.position = "absolute";
|
|
31557
|
+
}
|
|
31558
|
+
else {
|
|
31559
|
+
this.mobileNav.style.maxHeight = "none";
|
|
31560
|
+
this.style.minHeight = "auto";
|
|
31561
|
+
this.nav.style.position = "relative";
|
|
31562
|
+
}
|
|
31418
31563
|
};
|
|
31419
31564
|
this._toggleMenu = () => {
|
|
31420
31565
|
var _a;
|
|
@@ -31430,36 +31575,29 @@
|
|
|
31430
31575
|
}
|
|
31431
31576
|
connectedCallback() {
|
|
31432
31577
|
super.connectedCallback();
|
|
31433
|
-
this._handleResize();
|
|
31578
|
+
// this._handleResize();
|
|
31434
31579
|
window.addEventListener("resize", this._handleResize);
|
|
31435
|
-
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
31580
|
+
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
31436
31581
|
}
|
|
31437
31582
|
disconnectedCallback() {
|
|
31438
31583
|
super.disconnectedCallback();
|
|
31439
31584
|
window.removeEventListener("resize", this._handleResize);
|
|
31440
|
-
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
31585
|
+
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
31441
31586
|
}
|
|
31442
31587
|
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
|
-
}
|
|
31588
|
+
this._handleResize();
|
|
31457
31589
|
}
|
|
31458
31590
|
_handleClickOutOfElement(e, self) {
|
|
31459
31591
|
if (!e.composedPath().includes(self) && !e.composedPath().includes(this.toggler)) {
|
|
31460
31592
|
this.hide();
|
|
31461
31593
|
}
|
|
31462
31594
|
}
|
|
31595
|
+
async _onKeyboardToggle(event) {
|
|
31596
|
+
if (!VALID_KEYS.includes(event.key))
|
|
31597
|
+
return;
|
|
31598
|
+
event.preventDefault();
|
|
31599
|
+
this._toggleMenu();
|
|
31600
|
+
}
|
|
31463
31601
|
/** Shows the menu. For when subnav is in the collapsed form */
|
|
31464
31602
|
async show() {
|
|
31465
31603
|
if (this.isMenuOpen) {
|
|
@@ -31484,10 +31622,11 @@
|
|
|
31484
31622
|
return;
|
|
31485
31623
|
}
|
|
31486
31624
|
await stopAnimations(this.mobileNav);
|
|
31487
|
-
this.
|
|
31625
|
+
if (this.isCollapsed) {
|
|
31626
|
+
this.mobileNav.style.display = "flex";
|
|
31627
|
+
}
|
|
31488
31628
|
const { keyframes, options } = getAnimation(this, "subnav.show");
|
|
31489
31629
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
31490
|
-
// this.mobileNav.style.height = "auto";
|
|
31491
31630
|
this.emit("sgds-after-show");
|
|
31492
31631
|
}
|
|
31493
31632
|
async _animateToHide() {
|
|
@@ -31499,8 +31638,9 @@
|
|
|
31499
31638
|
await stopAnimations(this.mobileNav);
|
|
31500
31639
|
const { keyframes, options } = getAnimation(this, "subnav.hide");
|
|
31501
31640
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
31502
|
-
this.
|
|
31503
|
-
|
|
31641
|
+
if (this.isCollapsed) {
|
|
31642
|
+
this.mobileNav.style.display = "none";
|
|
31643
|
+
}
|
|
31504
31644
|
this.emit("sgds-after-hide");
|
|
31505
31645
|
}
|
|
31506
31646
|
async handleOpenChange() {
|
|
@@ -31513,66 +31653,46 @@
|
|
|
31513
31653
|
this._animateToHide();
|
|
31514
31654
|
}
|
|
31515
31655
|
}
|
|
31656
|
+
async handleCollapsedChange() {
|
|
31657
|
+
await this.updateComplete;
|
|
31658
|
+
this.mobileNav.style.display = this.isCollapsed ? "none" : "flex";
|
|
31659
|
+
}
|
|
31516
31660
|
render() {
|
|
31517
|
-
const isHydrated = this.hasUpdated;
|
|
31518
31661
|
return html$1 `
|
|
31519
|
-
<nav
|
|
31520
|
-
class=${classMap({
|
|
31521
|
-
mobile: this.isCollapsed
|
|
31522
|
-
})}
|
|
31523
|
-
aria-label="Sub navigation"
|
|
31524
|
-
>
|
|
31662
|
+
<nav aria-label="Sub navigation">
|
|
31525
31663
|
<div
|
|
31526
31664
|
class=${classMap({
|
|
31527
|
-
"sgds-container":
|
|
31665
|
+
"sgds-container": true,
|
|
31528
31666
|
subnav: true,
|
|
31529
|
-
mobile: this.isCollapsed,
|
|
31530
31667
|
collapsed: !this.isMenuOpen
|
|
31531
31668
|
})}
|
|
31532
31669
|
>
|
|
31533
|
-
<
|
|
31534
|
-
|
|
31535
|
-
|
|
31536
|
-
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
|
|
31540
|
-
|
|
31541
|
-
|
|
31542
|
-
|
|
31543
|
-
|
|
31544
|
-
|
|
31545
|
-
|
|
31546
|
-
|
|
31547
|
-
|
|
31548
|
-
|
|
31549
|
-
|
|
31550
|
-
|
|
31551
|
-
|
|
31552
|
-
|
|
31670
|
+
<div class="header-container">
|
|
31671
|
+
<slot name="header"></slot>
|
|
31672
|
+
<sgds-icon
|
|
31673
|
+
class="subnav-toggler"
|
|
31674
|
+
name="chevron-down"
|
|
31675
|
+
tabindex="0"
|
|
31676
|
+
@click=${this._toggleMenu}
|
|
31677
|
+
@keydown=${this._onKeyboardToggle}
|
|
31678
|
+
aria-label="Toggle sub navigation"
|
|
31679
|
+
aria-expanded=${this.isMenuOpen}
|
|
31680
|
+
></sgds-icon>
|
|
31681
|
+
</div>
|
|
31682
|
+
<div class="subnav-nav-group">
|
|
31683
|
+
<div class="subnav-nav">
|
|
31684
|
+
<slot></slot>
|
|
31685
|
+
</div>
|
|
31686
|
+
<div class="subnav-actions">
|
|
31687
|
+
<slot name="actions"></slot>
|
|
31688
|
+
</div>
|
|
31689
|
+
</div>
|
|
31553
31690
|
</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
31691
|
</nav>
|
|
31572
31692
|
`;
|
|
31573
31693
|
}
|
|
31574
31694
|
}
|
|
31575
|
-
SgdsSubnav.styles = [...SgdsElement.styles, css_248z$
|
|
31695
|
+
SgdsSubnav.styles = [...SgdsElement.styles, css_248z$7, css_248z$6];
|
|
31576
31696
|
/** @internal */
|
|
31577
31697
|
SgdsSubnav.dependencies = {
|
|
31578
31698
|
"sgds-icon": SgdsIcon
|
|
@@ -31581,19 +31701,19 @@
|
|
|
31581
31701
|
query("nav")
|
|
31582
31702
|
], SgdsSubnav.prototype, "nav", void 0);
|
|
31583
31703
|
__decorate([
|
|
31584
|
-
query(".subnav")
|
|
31585
|
-
], SgdsSubnav.prototype, "subnav", void 0);
|
|
31586
|
-
__decorate([
|
|
31587
|
-
query(".subnav-nav-mobile")
|
|
31704
|
+
query(".subnav-nav")
|
|
31588
31705
|
], SgdsSubnav.prototype, "mobileNav", void 0);
|
|
31706
|
+
__decorate([
|
|
31707
|
+
query(".header-container")
|
|
31708
|
+
], SgdsSubnav.prototype, "headerContainer", void 0);
|
|
31589
31709
|
__decorate([
|
|
31590
31710
|
query(".subnav-toggler")
|
|
31591
31711
|
], SgdsSubnav.prototype, "toggler", void 0);
|
|
31592
31712
|
__decorate([
|
|
31593
|
-
query(".subnav-
|
|
31594
|
-
], SgdsSubnav.prototype, "
|
|
31713
|
+
query(".subnav-nav-group")
|
|
31714
|
+
], SgdsSubnav.prototype, "navGroup", void 0);
|
|
31595
31715
|
__decorate([
|
|
31596
|
-
query(".subnav-actions
|
|
31716
|
+
query(".subnav-actions")
|
|
31597
31717
|
], SgdsSubnav.prototype, "mobileActions", void 0);
|
|
31598
31718
|
__decorate([
|
|
31599
31719
|
state()
|
|
@@ -31604,6 +31724,9 @@
|
|
|
31604
31724
|
__decorate([
|
|
31605
31725
|
watch("isMenuOpen", { waitUntilFirstUpdate: true })
|
|
31606
31726
|
], SgdsSubnav.prototype, "handleOpenChange", null);
|
|
31727
|
+
__decorate([
|
|
31728
|
+
watch("isCollapsed", { waitUntilFirstUpdate: true })
|
|
31729
|
+
], SgdsSubnav.prototype, "handleCollapsedChange", null);
|
|
31607
31730
|
setDefaultAnimation("subnav.show", {
|
|
31608
31731
|
keyframes: [
|
|
31609
31732
|
{ height: "0", opacity: "0" },
|
|
@@ -31619,7 +31742,7 @@
|
|
|
31619
31742
|
options: { duration: 200, easing: "ease-in-out" }
|
|
31620
31743
|
});
|
|
31621
31744
|
|
|
31622
|
-
var css_248z$
|
|
31745
|
+
var css_248z$5 = 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
31746
|
|
|
31624
31747
|
/**
|
|
31625
31748
|
* @slot default - slot for SgdsSubnavItem element.
|
|
@@ -31628,7 +31751,7 @@
|
|
|
31628
31751
|
class SgdsSubnavItem extends SgdsElement {
|
|
31629
31752
|
constructor() {
|
|
31630
31753
|
super(...arguments);
|
|
31631
|
-
/** when true, sets the active stylings of
|
|
31754
|
+
/** when true, sets the active stylings of the navigation item */
|
|
31632
31755
|
this.active = false;
|
|
31633
31756
|
/** Disables the SgdsSubnavItem */
|
|
31634
31757
|
this.disabled = false;
|
|
@@ -31669,9 +31792,9 @@
|
|
|
31669
31792
|
return html$1 `<slot @slotchange=${this._handleSlotChange}></slot>`;
|
|
31670
31793
|
}
|
|
31671
31794
|
}
|
|
31672
|
-
SgdsSubnavItem.styles = [...SgdsElement.styles, css_248z$
|
|
31795
|
+
SgdsSubnavItem.styles = [...SgdsElement.styles, css_248z$5];
|
|
31673
31796
|
__decorate([
|
|
31674
|
-
property({ type: Boolean })
|
|
31797
|
+
property({ type: Boolean, reflect: true })
|
|
31675
31798
|
], SgdsSubnavItem.prototype, "active", void 0);
|
|
31676
31799
|
__decorate([
|
|
31677
31800
|
property({ type: Boolean, reflect: true })
|
|
@@ -31683,9 +31806,9 @@
|
|
|
31683
31806
|
customElements.define("sgds-subnav", SgdsSubnav);
|
|
31684
31807
|
customElements.define("sgds-subnav-item", SgdsSubnavItem);
|
|
31685
31808
|
|
|
31686
|
-
var css_248z$
|
|
31809
|
+
var css_248z$4 = css`:host{display:block;position:relative}.select{flex-direction:column;gap:var(--sgds-form-gap-md)}.select .dropdown-menu{min-width:100%}.dropdown{display:flex;height:100%}.select{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}.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;caret-color:transparent;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}.select-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)}`;
|
|
31687
31810
|
|
|
31688
|
-
var css_248z = 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
|
|
31811
|
+
var css_248z$3 = 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}.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}`;
|
|
31689
31812
|
|
|
31690
31813
|
class SelectItem extends SgdsElement {
|
|
31691
31814
|
constructor() {
|
|
@@ -31730,7 +31853,7 @@
|
|
|
31730
31853
|
SelectItem.dependencies = {
|
|
31731
31854
|
"sgds-icon": SgdsIcon
|
|
31732
31855
|
};
|
|
31733
|
-
SelectItem.styles = [css_248z];
|
|
31856
|
+
SelectItem.styles = [css_248z$3];
|
|
31734
31857
|
__decorate([
|
|
31735
31858
|
property({ type: Boolean, reflect: true })
|
|
31736
31859
|
], SelectItem.prototype, "active", void 0);
|
|
@@ -31873,7 +31996,7 @@
|
|
|
31873
31996
|
`;
|
|
31874
31997
|
}
|
|
31875
31998
|
}
|
|
31876
|
-
SgdsSelect.styles = [...SelectElement.styles, css_248z$
|
|
31999
|
+
SgdsSelect.styles = [...SelectElement.styles, css_248z$4];
|
|
31877
32000
|
/** @internal */
|
|
31878
32001
|
SgdsSelect.dependencies = {
|
|
31879
32002
|
"sgds-icon": SgdsIcon,
|
|
@@ -31885,5 +32008,254 @@
|
|
|
31885
32008
|
|
|
31886
32009
|
customElements.define("sgds-select", SgdsSelect);
|
|
31887
32010
|
|
|
32011
|
+
var css_248z$2 = css`:host([noPadding]) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host(:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=image-badge]::slotted(*){left:20px;position:absolute;top:20px}slot[name=image-action]::slotted(*){position:absolute;right:20px;top:20px}`;
|
|
32012
|
+
|
|
32013
|
+
/**
|
|
32014
|
+
* @summary Image cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
32015
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
32016
|
+
* @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
|
|
32017
|
+
* @slot image-badge - Accepts an element for a badge, positioned at the top-left corner of the image.
|
|
32018
|
+
* @slot image-action - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the image. Typically used for action menu.
|
|
32019
|
+
* @slot upper - Accepts any content to be displayed at the top of the subtitle. Commonly used for badges, status indicators, or decorative elements.
|
|
32020
|
+
* @slot subtitle - The subtitle of the card
|
|
32021
|
+
* @slot title - The title of the card
|
|
32022
|
+
* @slot description - The paragrapher text of the card
|
|
32023
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
32024
|
+
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
32025
|
+
*/
|
|
32026
|
+
class SgdsImageCard extends CardElement {
|
|
32027
|
+
constructor() {
|
|
32028
|
+
super(...arguments);
|
|
32029
|
+
/** Removes the card's internal padding when set to true. */
|
|
32030
|
+
this.noPadding = false;
|
|
32031
|
+
/** Sets the image position of the card. Available options: `before`, `after` */
|
|
32032
|
+
this.imagePosition = "before";
|
|
32033
|
+
/** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */
|
|
32034
|
+
this.imageAdjustment = "default";
|
|
32035
|
+
}
|
|
32036
|
+
firstUpdated() {
|
|
32037
|
+
if (this._imageNode.length === 0) {
|
|
32038
|
+
const image = this.shadowRoot.querySelector(".card-image");
|
|
32039
|
+
const body = this.shadowRoot.querySelector(".card-body");
|
|
32040
|
+
image.style.display = "none";
|
|
32041
|
+
if (this.noPadding)
|
|
32042
|
+
body.style.padding = "0px";
|
|
32043
|
+
}
|
|
32044
|
+
}
|
|
32045
|
+
handleImgSlotChange(e) {
|
|
32046
|
+
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
32047
|
+
if (childNodes.length > 1) {
|
|
32048
|
+
return console.error("Multiple elements passed into SgdsCard's image slot");
|
|
32049
|
+
}
|
|
32050
|
+
}
|
|
32051
|
+
render() {
|
|
32052
|
+
const tag = this.stretchedLink ? literal `a` : literal `div`;
|
|
32053
|
+
const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;
|
|
32054
|
+
return html `
|
|
32055
|
+
<${tag}
|
|
32056
|
+
class="card ${classMap({
|
|
32057
|
+
disabled: this.disabled
|
|
32058
|
+
})}"
|
|
32059
|
+
tabindex=${cardTabIndex}
|
|
32060
|
+
>
|
|
32061
|
+
${this.tinted && !this.noPadding ? html `<div class="card-tinted-bg"></div>` : nothing}
|
|
32062
|
+
<div class="card-image">
|
|
32063
|
+
<slot name="image" @slotchange=${this.handleImgSlotChange}></slot>
|
|
32064
|
+
<slot name="image-badge"></slot>
|
|
32065
|
+
<slot name="image-action"></slot>
|
|
32066
|
+
</div>
|
|
32067
|
+
<div class="card-body">
|
|
32068
|
+
<slot name="upper"></slot>
|
|
32069
|
+
<div class="card-header-container">
|
|
32070
|
+
<div class="card-header">
|
|
32071
|
+
<slot name="subtitle"></slot>
|
|
32072
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
32073
|
+
</div>
|
|
32074
|
+
<slot></slot>
|
|
32075
|
+
</div>
|
|
32076
|
+
<p class="card-text">
|
|
32077
|
+
<slot name="description"></slot>
|
|
32078
|
+
</p>
|
|
32079
|
+
<slot name="lower"></slot>
|
|
32080
|
+
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
32081
|
+
</div>
|
|
32082
|
+
</${tag}>
|
|
32083
|
+
`;
|
|
32084
|
+
}
|
|
32085
|
+
}
|
|
32086
|
+
SgdsImageCard.styles = [...CardElement.styles, css_248z$2];
|
|
32087
|
+
__decorate([
|
|
32088
|
+
queryAssignedNodes({ slot: "image", flatten: true })
|
|
32089
|
+
], SgdsImageCard.prototype, "_imageNode", void 0);
|
|
32090
|
+
__decorate([
|
|
32091
|
+
property({ type: Boolean, reflect: true })
|
|
32092
|
+
], SgdsImageCard.prototype, "noPadding", void 0);
|
|
32093
|
+
__decorate([
|
|
32094
|
+
property({ type: String, reflect: true })
|
|
32095
|
+
], SgdsImageCard.prototype, "imagePosition", void 0);
|
|
32096
|
+
__decorate([
|
|
32097
|
+
property({ type: String, reflect: true })
|
|
32098
|
+
], SgdsImageCard.prototype, "imageAdjustment", void 0);
|
|
32099
|
+
|
|
32100
|
+
customElements.define("sgds-image-card", SgdsImageCard);
|
|
32101
|
+
|
|
32102
|
+
var css_248z$1 = css`:host([noPadding]) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host(:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=thumbnail]::slotted(*){height:auto;max-width:100%}`;
|
|
32103
|
+
|
|
32104
|
+
/**
|
|
32105
|
+
* @summary Thumbnail cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
32106
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
32107
|
+
* @slot thumbnail - Accepts a small image or visual element typically displayed alongside the card's title or content to provide quick visual context.
|
|
32108
|
+
* @slot upper - Accepts any content to be displayed at the top of the subtitle. Commonly used for badges, status indicators, or decorative elements.
|
|
32109
|
+
* @slot subtitle - The subtitle of the card
|
|
32110
|
+
* @slot title - The title of the card
|
|
32111
|
+
* @slot description - The paragrapher text of the card
|
|
32112
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
32113
|
+
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
32114
|
+
*/
|
|
32115
|
+
class SgdsThumbnailCard extends CardElement {
|
|
32116
|
+
constructor() {
|
|
32117
|
+
super(...arguments);
|
|
32118
|
+
/** Removes the card's internal padding when set to true. */
|
|
32119
|
+
this.noPadding = false;
|
|
32120
|
+
}
|
|
32121
|
+
firstUpdated() {
|
|
32122
|
+
if (this._thumbnailNode.length === 0) {
|
|
32123
|
+
const thumbnail = this.shadowRoot.querySelector(".card-thumbnail");
|
|
32124
|
+
thumbnail.style.display = "none";
|
|
32125
|
+
if ((this.orientation === "vertical" && this._upperNode.length === 0) || this.orientation === "horizontal") {
|
|
32126
|
+
const media = this.shadowRoot.querySelector(".card-media");
|
|
32127
|
+
media.style.display = "none";
|
|
32128
|
+
const body = this.shadowRoot.querySelector(".card-body");
|
|
32129
|
+
if (this.noPadding)
|
|
32130
|
+
body.style.padding = "0px";
|
|
32131
|
+
}
|
|
32132
|
+
}
|
|
32133
|
+
}
|
|
32134
|
+
render() {
|
|
32135
|
+
const tag = this.stretchedLink ? literal `a` : literal `div`;
|
|
32136
|
+
const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;
|
|
32137
|
+
return html `
|
|
32138
|
+
<${tag}
|
|
32139
|
+
class="card ${classMap({
|
|
32140
|
+
disabled: this.disabled
|
|
32141
|
+
})}"
|
|
32142
|
+
tabindex=${cardTabIndex}
|
|
32143
|
+
>
|
|
32144
|
+
${this.tinted && !this.noPadding ? html `<div class="card-tinted-bg"></div>` : nothing}
|
|
32145
|
+
<div class="card-media">
|
|
32146
|
+
<div class="card-thumbnail">
|
|
32147
|
+
<slot name="thumbnail"></slot>
|
|
32148
|
+
</div>
|
|
32149
|
+
${this.orientation === "vertical" ? html `<slot name="upper"></slot>` : nothing}
|
|
32150
|
+
</div>
|
|
32151
|
+
<div class="card-body">
|
|
32152
|
+
${this.orientation === "horizontal" ? html `<slot name="upper"></slot>` : nothing}
|
|
32153
|
+
<div class="card-header-container">
|
|
32154
|
+
<div class="card-header">
|
|
32155
|
+
<slot name="subtitle"></slot>
|
|
32156
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
32157
|
+
</div>
|
|
32158
|
+
<slot></slot>
|
|
32159
|
+
</div>
|
|
32160
|
+
<p class="card-text">
|
|
32161
|
+
<slot name="description"></slot>
|
|
32162
|
+
</p>
|
|
32163
|
+
<slot name="lower"></slot>
|
|
32164
|
+
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
32165
|
+
</div>
|
|
32166
|
+
</${tag}>
|
|
32167
|
+
`;
|
|
32168
|
+
}
|
|
32169
|
+
}
|
|
32170
|
+
SgdsThumbnailCard.styles = [...CardElement.styles, css_248z$1];
|
|
32171
|
+
__decorate([
|
|
32172
|
+
queryAssignedNodes({ slot: "thumbnail", flatten: true })
|
|
32173
|
+
], SgdsThumbnailCard.prototype, "_thumbnailNode", void 0);
|
|
32174
|
+
__decorate([
|
|
32175
|
+
queryAssignedNodes({ slot: "upper", flatten: true })
|
|
32176
|
+
], SgdsThumbnailCard.prototype, "_upperNode", void 0);
|
|
32177
|
+
__decorate([
|
|
32178
|
+
property({ type: Boolean, reflect: true })
|
|
32179
|
+
], SgdsThumbnailCard.prototype, "noPadding", void 0);
|
|
32180
|
+
|
|
32181
|
+
customElements.define("sgds-thumbnail-card", SgdsThumbnailCard);
|
|
32182
|
+
|
|
32183
|
+
var css_248z = css`:host([noPadding]) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host(:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}`;
|
|
32184
|
+
|
|
32185
|
+
/**
|
|
32186
|
+
* @summary Icon cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
32187
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
32188
|
+
* @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.
|
|
32189
|
+
* @slot upper - Accepts any content to be displayed at the top of the subtitle. Commonly used for badges, status indicators, or decorative elements.
|
|
32190
|
+
* @slot subtitle - The subtitle of the card
|
|
32191
|
+
* @slot title - The title of the card
|
|
32192
|
+
* @slot description - The paragrapher text of the card
|
|
32193
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
32194
|
+
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
32195
|
+
*/
|
|
32196
|
+
class SgdsIconCard extends CardElement {
|
|
32197
|
+
constructor() {
|
|
32198
|
+
super(...arguments);
|
|
32199
|
+
/** Removes the card's internal padding when set to true. */
|
|
32200
|
+
this.noPadding = false;
|
|
32201
|
+
}
|
|
32202
|
+
firstUpdated() {
|
|
32203
|
+
if (this._iconNode.length === 0) {
|
|
32204
|
+
if ((this.orientation === "vertical" && this._upperNode.length === 0) || this.orientation === "horizontal") {
|
|
32205
|
+
const media = this.shadowRoot.querySelector(".card-media");
|
|
32206
|
+
media.style.display = "none";
|
|
32207
|
+
const body = this.shadowRoot.querySelector(".card-body");
|
|
32208
|
+
if (this.noPadding)
|
|
32209
|
+
body.style.padding = "0px";
|
|
32210
|
+
}
|
|
32211
|
+
}
|
|
32212
|
+
}
|
|
32213
|
+
render() {
|
|
32214
|
+
const tag = this.stretchedLink ? literal `a` : literal `div`;
|
|
32215
|
+
const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;
|
|
32216
|
+
return html `
|
|
32217
|
+
<${tag}
|
|
32218
|
+
class="card ${classMap({
|
|
32219
|
+
disabled: this.disabled
|
|
32220
|
+
})}"
|
|
32221
|
+
tabindex=${cardTabIndex}
|
|
32222
|
+
>
|
|
32223
|
+
${this.tinted && !this.noPadding ? html `<div class="card-tinted-bg"></div>` : nothing}
|
|
32224
|
+
<div class="card-media">
|
|
32225
|
+
<slot name="icon"></slot>
|
|
32226
|
+
${this.orientation === "vertical" ? html `<slot name="upper"></slot>` : nothing}
|
|
32227
|
+
</div>
|
|
32228
|
+
<div class="card-body">
|
|
32229
|
+
${this.orientation === "horizontal" ? html `<slot name="upper"></slot>` : nothing}
|
|
32230
|
+
<div class="card-header-container">
|
|
32231
|
+
<div class="card-header">
|
|
32232
|
+
<slot name="subtitle"></slot>
|
|
32233
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
32234
|
+
</div>
|
|
32235
|
+
<slot></slot>
|
|
32236
|
+
</div>
|
|
32237
|
+
<p class="card-text">
|
|
32238
|
+
<slot name="description"></slot>
|
|
32239
|
+
</p>
|
|
32240
|
+
<slot name="lower"></slot>
|
|
32241
|
+
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
32242
|
+
</div>
|
|
32243
|
+
</${tag}>
|
|
32244
|
+
`;
|
|
32245
|
+
}
|
|
32246
|
+
}
|
|
32247
|
+
SgdsIconCard.styles = [...CardElement.styles, css_248z];
|
|
32248
|
+
__decorate([
|
|
32249
|
+
queryAssignedNodes({ slot: "icon", flatten: true })
|
|
32250
|
+
], SgdsIconCard.prototype, "_iconNode", void 0);
|
|
32251
|
+
__decorate([
|
|
32252
|
+
queryAssignedNodes({ slot: "upper", flatten: true })
|
|
32253
|
+
], SgdsIconCard.prototype, "_upperNode", void 0);
|
|
32254
|
+
__decorate([
|
|
32255
|
+
property({ type: Boolean, reflect: true })
|
|
32256
|
+
], SgdsIconCard.prototype, "noPadding", void 0);
|
|
32257
|
+
|
|
32258
|
+
customElements.define("sgds-icon-card", SgdsIconCard);
|
|
32259
|
+
|
|
31888
32260
|
}));
|
|
31889
32261
|
//# sourceMappingURL=index.umd.js.map
|