@nldd/design-system 0.8.99 → 0.8.100
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/custom-elements.json +161 -26
- package/dist/components/actions/button/button.d.ts +2 -2
- package/dist/components/actions/button/button.js +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
- package/dist/components/actions/icon-button/icon-button.js +2 -2
- package/dist/components/actions/menu/menu.d.ts +9 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +18 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/components.js +673 -190
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +55 -0
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +16 -1
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +109 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +39 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts +1 -1
- package/dist/components/content/token/token.js +1 -1
- package/dist/components/{icon-button-CJIikwyu.js → icon-button-BtU8DX64.js} +2 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +6 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +16 -5
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +44 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +7 -6
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +1 -1
- package/dist/components/layout/container/container.js +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +4 -0
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +20 -0
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js +103 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +132 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts +9 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +15 -6
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -1
- package/dist/components/layout/window/window.js +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +8 -5
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +19 -10
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +4 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +5 -1
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +1 -1
- package/dist/components/navigation/link/link.js +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +4 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +11 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.js +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +6 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
- package/dist/css/rich-text.css +1 -1
- package/dist/css/variables.css +1 -0
- package/dist/nldd.min.js +783 -550
- package/dist/types/vue.d.ts +43 -23
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-CPa5
|
|
|
3
3
|
import { i as linkRel, n as setTranslations, r as translate, t as withTranslations } from "./with-translations-C8_0-9y8.js";
|
|
4
4
|
import { t as __decorate } from "./decorate-CO88j7Lc.js";
|
|
5
5
|
import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
|
|
6
|
-
import { i as PopupAnchorController, n as NLDDTooltip, r as NLDDActivityIndicator, t as NLDDIconButton } from "./icon-button-
|
|
6
|
+
import { i as PopupAnchorController, n as NLDDTooltip, r as NLDDActivityIndicator, t as NLDDIconButton } from "./icon-button-BtU8DX64.js";
|
|
7
7
|
import { t as NLDDIcon } from "./icon-D_ZGezHx.js";
|
|
8
8
|
import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-DhTeUxKi.js";
|
|
9
9
|
import { t as breakpoints } from "./breakpoints-CkxsiRgH.js";
|
|
@@ -805,9 +805,9 @@ function DescribedBy(Base) {
|
|
|
805
805
|
* @attr {string} appearance - Visual style, color included: 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'inherit-filled' | 'inherit-tinted'. The inherit appearances derive their colors from currentColor, for buttons on colored surfaces; inherit-filled uses the surface color (--context-parent-background-color) as the label color, with a white/black contrast flip as a fallback.
|
|
806
806
|
* @attr {string} size - Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md'). 'lg' uses larger text and 24px start/end icons.
|
|
807
807
|
* @attr {string} horizontal-alignment - Horizontal alignment of the button content: 'left' | 'center' | 'right' (default: unset, centered). Most visible with width="full" or a fixed width.
|
|
808
|
-
* @attr {boolean} loading - Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width.
|
|
808
|
+
* @attr {boolean} loading - Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe.
|
|
809
809
|
* @attr {string} loading-text - What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden".
|
|
810
|
-
* @attr {boolean} disabled - Disabled state
|
|
810
|
+
* @attr {boolean} disabled - Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why.
|
|
811
811
|
* @attr {string} type - Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set)
|
|
812
812
|
* @attr {string} popovertarget - ID of a popover element this button invokes; forwarded to the inner button. Use the popoverTargetElement property instead when the popover lives in another tree.
|
|
813
813
|
* @attr {boolean} expandable - Whether the button has a icon to indicate it opens a menu or popover
|
|
@@ -3078,7 +3078,7 @@ function inlineDialogTemplate(component) {
|
|
|
3078
3078
|
}
|
|
3079
3079
|
//#endregion
|
|
3080
3080
|
//#region src/components/actions/button-group/button-group.styles.ts
|
|
3081
|
-
var smMax$
|
|
3081
|
+
var smMax$21 = unsafeCSS(breakpoints.smMax);
|
|
3082
3082
|
var buttonGroupStyles = css`
|
|
3083
3083
|
:host {
|
|
3084
3084
|
box-sizing: border-box;
|
|
@@ -3130,7 +3130,7 @@ var buttonGroupStyles = css`
|
|
|
3130
3130
|
OR absent, and a rule that named it would have needed a second selector
|
|
3131
3131
|
beside it everywhere. */
|
|
3132
3132
|
|
|
3133
|
-
@container (max-width: ${smMax$
|
|
3133
|
+
@container (max-width: ${smMax$21}) {
|
|
3134
3134
|
:host(:not([orientation="horizontal"], [orientation="vertical"])) .button-group {
|
|
3135
3135
|
flex-direction: column;
|
|
3136
3136
|
--context-button-width: 100%;
|
|
@@ -3727,6 +3727,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
|
|
|
3727
3727
|
this.anchor = "";
|
|
3728
3728
|
this.anchorElement = null;
|
|
3729
3729
|
this.placement = "bottom-start";
|
|
3730
|
+
this.anchorOffset = 0;
|
|
3730
3731
|
this.maxItems = 0;
|
|
3731
3732
|
this.emptyText = "";
|
|
3732
3733
|
this.emptySupportingText = "";
|
|
@@ -4094,6 +4095,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
|
|
|
4094
4095
|
this._isOpen = toggleEvent.newState === "open";
|
|
4095
4096
|
this._syncAnchorPopupState(this._isOpen);
|
|
4096
4097
|
if (toggleEvent.newState !== "open") {
|
|
4098
|
+
this.anchorOffset = 0;
|
|
4097
4099
|
this._cleanupAutoUpdate?.();
|
|
4098
4100
|
this._cleanupAutoUpdate = null;
|
|
4099
4101
|
window.removeEventListener("resize", this._handleWindowResize);
|
|
@@ -4172,6 +4174,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
|
|
|
4172
4174
|
});
|
|
4173
4175
|
}
|
|
4174
4176
|
updated(changedProperties) {
|
|
4177
|
+
if (changedProperties.has("anchorOffset") && this._isOpen) this.reposition();
|
|
4175
4178
|
if (changedProperties.has("width")) {
|
|
4176
4179
|
if (this.width) {
|
|
4177
4180
|
this.style.setProperty("--_menu-width", this.width);
|
|
@@ -4747,7 +4750,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
|
|
|
4747
4750
|
placement: effectivePlacement,
|
|
4748
4751
|
middleware: [
|
|
4749
4752
|
offset({
|
|
4750
|
-
mainAxis:
|
|
4753
|
+
mainAxis: this.anchorOffset,
|
|
4751
4754
|
alignmentAxis: -submenuPadding
|
|
4752
4755
|
}),
|
|
4753
4756
|
...drillIn ? [] : [flip({ padding: viewportMargin })],
|
|
@@ -4836,6 +4839,7 @@ __decorate([property({
|
|
|
4836
4839
|
reflect: true,
|
|
4837
4840
|
converter: reflectNonDefault("bottom-start")
|
|
4838
4841
|
})], NLDDMenu.prototype, "placement", void 0);
|
|
4842
|
+
__decorate([property({ attribute: false })], NLDDMenu.prototype, "anchorOffset", void 0);
|
|
4839
4843
|
__decorate([property({
|
|
4840
4844
|
type: Number,
|
|
4841
4845
|
attribute: "max-items"
|
|
@@ -4890,7 +4894,7 @@ if (!customElements.get("nldd-menu")) customElements.define("nldd-menu", NLDDMen
|
|
|
4890
4894
|
* @element nldd-split-button
|
|
4891
4895
|
* @attr {string} size - Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md')
|
|
4892
4896
|
* @attr {string} appearance - Visual style (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface)
|
|
4893
|
-
* @attr {boolean} disabled - Disabled state
|
|
4897
|
+
* @attr {boolean} disabled - Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why.
|
|
4894
4898
|
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space
|
|
4895
4899
|
* @attr {string} text - Button text for the primary action
|
|
4896
4900
|
* @attr {string} icon - Icon name shown before the text on the primary action button
|
|
@@ -6989,7 +6993,7 @@ __decorate([state()], NLDDAvatar.prototype, "_imageFailed", void 0);
|
|
|
6989
6993
|
NLDDAvatar = __decorate([customElement("nldd-avatar")], NLDDAvatar);
|
|
6990
6994
|
//#endregion
|
|
6991
6995
|
//#region src/components/content/blockquote/blockquote.styles.ts
|
|
6992
|
-
var smMax$
|
|
6996
|
+
var smMax$20 = unsafeCSS(breakpoints.smMax);
|
|
6993
6997
|
var blockquoteStyles = css`
|
|
6994
6998
|
:host {
|
|
6995
6999
|
box-sizing: border-box;
|
|
@@ -7003,13 +7007,13 @@ var blockquoteStyles = css`
|
|
|
7003
7007
|
--_blockquote-quote-font: var(--semantics-blockquotes-md-quote-font);
|
|
7004
7008
|
--_blockquote-attribution-font: var(--semantics-blockquotes-md-attribution-font);
|
|
7005
7009
|
|
|
7006
|
-
@media (max-width: ${smMax$
|
|
7010
|
+
@media (max-width: ${smMax$20}) {
|
|
7007
7011
|
--_blockquote-spacing: var(--semantics-blockquotes-sm-spacing);
|
|
7008
7012
|
--_blockquote-quote-font: var(--semantics-blockquotes-sm-quote-font);
|
|
7009
7013
|
--_blockquote-attribution-font: var(--semantics-blockquotes-sm-attribution-font);
|
|
7010
7014
|
}
|
|
7011
7015
|
|
|
7012
|
-
@container layout-container (max-width: ${smMax$
|
|
7016
|
+
@container layout-container (max-width: ${smMax$20}) {
|
|
7013
7017
|
--_blockquote-spacing: var(--semantics-blockquotes-sm-spacing);
|
|
7014
7018
|
--_blockquote-quote-font: var(--semantics-blockquotes-sm-quote-font);
|
|
7015
7019
|
--_blockquote-attribution-font: var(--semantics-blockquotes-sm-attribution-font);
|
|
@@ -7308,8 +7312,8 @@ function avatarGroupTemplate(component) {
|
|
|
7308
7312
|
}
|
|
7309
7313
|
//#endregion
|
|
7310
7314
|
//#region src/components/layout/popover/popover.styles.ts
|
|
7311
|
-
var smMax$
|
|
7312
|
-
var mdMin$
|
|
7315
|
+
var smMax$19 = unsafeCSS(breakpoints.smMax);
|
|
7316
|
+
var mdMin$22 = unsafeCSS(breakpoints.mdMin);
|
|
7313
7317
|
var popoverStyles = css`
|
|
7314
7318
|
:host {
|
|
7315
7319
|
box-sizing: border-box;
|
|
@@ -7335,7 +7339,7 @@ var popoverStyles = css`
|
|
|
7335
7339
|
-webkit-user-select: text;
|
|
7336
7340
|
user-select: text;
|
|
7337
7341
|
|
|
7338
|
-
@media (max-width: ${smMax$
|
|
7342
|
+
@media (max-width: ${smMax$19}) {
|
|
7339
7343
|
position: fixed;
|
|
7340
7344
|
inset: auto 0 0 0;
|
|
7341
7345
|
border-radius: var(--semantics-overlays-corner-radius) var(--semantics-overlays-corner-radius) 0 0;
|
|
@@ -7349,7 +7353,7 @@ var popoverStyles = css`
|
|
|
7349
7353
|
overlay var(--semantics-sheets-bottom-animation-duration) allow-discrete;
|
|
7350
7354
|
}
|
|
7351
7355
|
|
|
7352
|
-
@media (min-width: ${mdMin$
|
|
7356
|
+
@media (min-width: ${mdMin$22}) {
|
|
7353
7357
|
position: absolute;
|
|
7354
7358
|
inset: unset;
|
|
7355
7359
|
border-radius: var(--semantics-overlays-corner-radius);
|
|
@@ -7372,7 +7376,7 @@ var popoverStyles = css`
|
|
|
7372
7376
|
keeps it laid out so its size can be measured. The sm bottom-sheet is CSS-animated
|
|
7373
7377
|
and positioned, so it is excluded. The positioned attribute is set once
|
|
7374
7378
|
reposition() finishes and cleared on every re-open. */
|
|
7375
|
-
@media (min-width: ${mdMin$
|
|
7379
|
+
@media (min-width: ${mdMin$22}) {
|
|
7376
7380
|
:host(:popover-open:not([positioned])) {
|
|
7377
7381
|
visibility: hidden;
|
|
7378
7382
|
}
|
|
@@ -7385,7 +7389,7 @@ var popoverStyles = css`
|
|
|
7385
7389
|
}
|
|
7386
7390
|
|
|
7387
7391
|
:host(:popover-open) {
|
|
7388
|
-
@media (max-width: ${smMax$
|
|
7392
|
+
@media (max-width: ${smMax$19}) {
|
|
7389
7393
|
transform: translateY(0);
|
|
7390
7394
|
|
|
7391
7395
|
@starting-style {
|
|
@@ -7395,13 +7399,13 @@ var popoverStyles = css`
|
|
|
7395
7399
|
}
|
|
7396
7400
|
|
|
7397
7401
|
:host::backdrop {
|
|
7398
|
-
@media (max-width: ${smMax$
|
|
7402
|
+
@media (max-width: ${smMax$19}) {
|
|
7399
7403
|
background-color: var(--semantics-overlays-backdrop-color);
|
|
7400
7404
|
}
|
|
7401
7405
|
}
|
|
7402
7406
|
|
|
7403
7407
|
:host([sm-full-height]) {
|
|
7404
|
-
@media (max-width: ${smMax$
|
|
7408
|
+
@media (max-width: ${smMax$19}) {
|
|
7405
7409
|
height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
7406
7410
|
}
|
|
7407
7411
|
}
|
|
@@ -7885,10 +7889,10 @@ __decorate([property({
|
|
|
7885
7889
|
NLDDPopover = _NLDDPopover = __decorate([customElement("nldd-popover")], NLDDPopover);
|
|
7886
7890
|
//#endregion
|
|
7887
7891
|
//#region src/components/layout/container/container.styles.ts
|
|
7888
|
-
var smMax$
|
|
7889
|
-
var mdMin$
|
|
7890
|
-
var mdMax$
|
|
7891
|
-
var lgMin$
|
|
7892
|
+
var smMax$18 = unsafeCSS(breakpoints.smMax);
|
|
7893
|
+
var mdMin$21 = unsafeCSS(breakpoints.mdMin);
|
|
7894
|
+
var mdMax$14 = unsafeCSS(breakpoints.mdMax);
|
|
7895
|
+
var lgMin$15 = unsafeCSS(breakpoints.lgMin);
|
|
7892
7896
|
var containerStyles = css`
|
|
7893
7897
|
:host {
|
|
7894
7898
|
box-sizing: border-box;
|
|
@@ -7934,13 +7938,13 @@ var containerStyles = css`
|
|
|
7934
7938
|
container and anywhere else the viewport. Multicol reads the gap in three
|
|
7935
7939
|
rules, so the value is swapped here rather than declared in each. The
|
|
7936
7940
|
bare --_container-gap is what stands when neither set matches. */
|
|
7937
|
-
@media (max-width: ${smMax$
|
|
7938
|
-
@media (min-width: ${mdMin$
|
|
7939
|
-
@media (min-width: ${lgMin$
|
|
7941
|
+
@media (max-width: ${smMax$18}) { --_container-gap: var(--_container-sm-gap); }
|
|
7942
|
+
@media (min-width: ${mdMin$21}) and (max-width: ${mdMax$14}) { --_container-gap: var(--_container-md-gap); }
|
|
7943
|
+
@media (min-width: ${lgMin$15}) { --_container-gap: var(--_container-lg-gap); }
|
|
7940
7944
|
|
|
7941
|
-
@container layout-container (max-width: ${smMax$
|
|
7942
|
-
@container layout-container (min-width: ${mdMin$
|
|
7943
|
-
@container layout-container (min-width: ${lgMin$
|
|
7945
|
+
@container layout-container (max-width: ${smMax$18}) { --_container-gap: var(--_container-sm-gap); }
|
|
7946
|
+
@container layout-container (min-width: ${mdMin$21}) and (max-width: ${mdMax$14}) { --_container-gap: var(--_container-md-gap); }
|
|
7947
|
+
@container layout-container (min-width: ${lgMin$15}) { --_container-gap: var(--_container-lg-gap); }
|
|
7944
7948
|
|
|
7945
7949
|
display: block;
|
|
7946
7950
|
width: var(--_container-width);
|
|
@@ -7970,42 +7974,42 @@ var containerStyles = css`
|
|
|
7970
7974
|
padding-bottom: var(--_container-padding-bottom);
|
|
7971
7975
|
padding-left: var(--_container-padding-left);
|
|
7972
7976
|
|
|
7973
|
-
@media (max-width: ${smMax$
|
|
7977
|
+
@media (max-width: ${smMax$18}) {
|
|
7974
7978
|
padding-top: var(--_container-sm-padding-top);
|
|
7975
7979
|
padding-right: var(--_container-sm-padding-right);
|
|
7976
7980
|
padding-bottom: var(--_container-sm-padding-bottom);
|
|
7977
7981
|
padding-left: var(--_container-sm-padding-left);
|
|
7978
7982
|
}
|
|
7979
7983
|
|
|
7980
|
-
@media (min-width: ${mdMin$
|
|
7984
|
+
@media (min-width: ${mdMin$21}) and (max-width: ${mdMax$14}) {
|
|
7981
7985
|
padding-top: var(--_container-md-padding-top);
|
|
7982
7986
|
padding-right: var(--_container-md-padding-right);
|
|
7983
7987
|
padding-bottom: var(--_container-md-padding-bottom);
|
|
7984
7988
|
padding-left: var(--_container-md-padding-left);
|
|
7985
7989
|
}
|
|
7986
7990
|
|
|
7987
|
-
@media (min-width: ${lgMin$
|
|
7991
|
+
@media (min-width: ${lgMin$15}) {
|
|
7988
7992
|
padding-top: var(--_container-lg-padding-top);
|
|
7989
7993
|
padding-right: var(--_container-lg-padding-right);
|
|
7990
7994
|
padding-bottom: var(--_container-lg-padding-bottom);
|
|
7991
7995
|
padding-left: var(--_container-lg-padding-left);
|
|
7992
7996
|
}
|
|
7993
7997
|
|
|
7994
|
-
@container layout-container (max-width: ${smMax$
|
|
7998
|
+
@container layout-container (max-width: ${smMax$18}) {
|
|
7995
7999
|
padding-top: var(--_container-sm-padding-top);
|
|
7996
8000
|
padding-right: var(--_container-sm-padding-right);
|
|
7997
8001
|
padding-bottom: var(--_container-sm-padding-bottom);
|
|
7998
8002
|
padding-left: var(--_container-sm-padding-left);
|
|
7999
8003
|
}
|
|
8000
8004
|
|
|
8001
|
-
@container layout-container (min-width: ${mdMin$
|
|
8005
|
+
@container layout-container (min-width: ${mdMin$21}) and (max-width: ${mdMax$14}) {
|
|
8002
8006
|
padding-top: var(--_container-md-padding-top);
|
|
8003
8007
|
padding-right: var(--_container-md-padding-right);
|
|
8004
8008
|
padding-bottom: var(--_container-md-padding-bottom);
|
|
8005
8009
|
padding-left: var(--_container-md-padding-left);
|
|
8006
8010
|
}
|
|
8007
8011
|
|
|
8008
|
-
@container layout-container (min-width: ${lgMin$
|
|
8012
|
+
@container layout-container (min-width: ${lgMin$15}) {
|
|
8009
8013
|
padding-top: var(--_container-lg-padding-top);
|
|
8010
8014
|
padding-right: var(--_container-lg-padding-right);
|
|
8011
8015
|
padding-bottom: var(--_container-lg-padding-bottom);
|
|
@@ -8013,6 +8017,10 @@ var containerStyles = css`
|
|
|
8013
8017
|
}
|
|
8014
8018
|
}
|
|
8015
8019
|
|
|
8020
|
+
:host([width="fit-content"]) .container {
|
|
8021
|
+
container-type: normal;
|
|
8022
|
+
}
|
|
8023
|
+
|
|
8016
8024
|
|
|
8017
8025
|
/* # Inner — actual layout */
|
|
8018
8026
|
|
|
@@ -8111,7 +8119,7 @@ var containerStyles = css`
|
|
|
8111
8119
|
|
|
8112
8120
|
/* # Column count — sm scope (queries :host own width) */
|
|
8113
8121
|
|
|
8114
|
-
@container (max-width: ${smMax$
|
|
8122
|
+
@container (max-width: ${smMax$18}) {
|
|
8115
8123
|
:host([sm-column-count="1"]) .container__inner { --_container-column-count: 1; }
|
|
8116
8124
|
:host([sm-column-count="2"]) .container__inner { --_container-column-count: 2; }
|
|
8117
8125
|
:host([sm-column-count="3"]) .container__inner { --_container-column-count: 3; }
|
|
@@ -8126,7 +8134,7 @@ var containerStyles = css`
|
|
|
8126
8134
|
|
|
8127
8135
|
/* # Column count — md scope */
|
|
8128
8136
|
|
|
8129
|
-
@container (min-width: ${mdMin$
|
|
8137
|
+
@container (min-width: ${mdMin$21}) and (max-width: ${mdMax$14}) {
|
|
8130
8138
|
:host([md-column-count="1"]) .container__inner { --_container-column-count: 1; }
|
|
8131
8139
|
:host([md-column-count="2"]) .container__inner { --_container-column-count: 2; }
|
|
8132
8140
|
:host([md-column-count="3"]) .container__inner { --_container-column-count: 3; }
|
|
@@ -8141,7 +8149,7 @@ var containerStyles = css`
|
|
|
8141
8149
|
|
|
8142
8150
|
/* # Column count — lg scope */
|
|
8143
8151
|
|
|
8144
|
-
@container (min-width: ${lgMin$
|
|
8152
|
+
@container (min-width: ${lgMin$15}) {
|
|
8145
8153
|
:host([lg-column-count="1"]) .container__inner { --_container-column-count: 1; }
|
|
8146
8154
|
:host([lg-column-count="2"]) .container__inner { --_container-column-count: 2; }
|
|
8147
8155
|
:host([lg-column-count="3"]) .container__inner { --_container-column-count: 3; }
|
|
@@ -8166,15 +8174,15 @@ var containerStyles = css`
|
|
|
8166
8174
|
order: var(--_container-slot-order, 0);
|
|
8167
8175
|
}
|
|
8168
8176
|
|
|
8169
|
-
@container (max-width: ${smMax$
|
|
8177
|
+
@container (max-width: ${smMax$18}) {
|
|
8170
8178
|
::slotted(*) { order: var(--_container-slot-sm-order, var(--_container-slot-order, 0)); }
|
|
8171
8179
|
}
|
|
8172
8180
|
|
|
8173
|
-
@container (min-width: ${mdMin$
|
|
8181
|
+
@container (min-width: ${mdMin$21}) and (max-width: ${mdMax$14}) {
|
|
8174
8182
|
::slotted(*) { order: var(--_container-slot-md-order, var(--_container-slot-order, 0)); }
|
|
8175
8183
|
}
|
|
8176
8184
|
|
|
8177
|
-
@container (min-width: ${lgMin$
|
|
8185
|
+
@container (min-width: ${lgMin$15}) {
|
|
8178
8186
|
::slotted(*) { order: var(--_container-slot-lg-order, var(--_container-slot-order, 0)); }
|
|
8179
8187
|
}
|
|
8180
8188
|
`;
|
|
@@ -8309,7 +8317,7 @@ function spacingToValue(value, element, attribute) {
|
|
|
8309
8317
|
* @attr {number} sm-column-count - Column count when this container is sm-wide
|
|
8310
8318
|
* @attr {number} md-column-count - Column count when this container is md-wide
|
|
8311
8319
|
* @attr {number} lg-column-count - Column count when this container is lg-wide
|
|
8312
|
-
* @attr {string} width - 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it.
|
|
8320
|
+
* @attr {string} width - 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it.
|
|
8313
8321
|
* @attr {string} min-width - Minimum width as a CSS length (e.g. '280px')
|
|
8314
8322
|
* @attr {string} max-width - Maximum width as a CSS length (e.g. '480px')
|
|
8315
8323
|
* @attr {string} gap - Gap between children. One distance for all of them, so it fits children of one kind; for a stack of different kinds, space each seam with nldd-spacer instead.
|
|
@@ -11560,7 +11568,7 @@ __decorate([state()], NLDDAvatarGroup.prototype, "_total", void 0);
|
|
|
11560
11568
|
NLDDAvatarGroup = __decorate([customElement("nldd-avatar-group")], NLDDAvatarGroup);
|
|
11561
11569
|
//#endregion
|
|
11562
11570
|
//#region src/components/content/identity/identity.styles.ts
|
|
11563
|
-
var smMax$
|
|
11571
|
+
var smMax$17 = unsafeCSS(breakpoints.smMax);
|
|
11564
11572
|
var identityStyles = css`
|
|
11565
11573
|
:host {
|
|
11566
11574
|
box-sizing: border-box;
|
|
@@ -11598,7 +11606,7 @@ var identityStyles = css`
|
|
|
11598
11606
|
}
|
|
11599
11607
|
|
|
11600
11608
|
.identity[data-multiple-avatars] {
|
|
11601
|
-
@container (max-width: ${smMax$
|
|
11609
|
+
@container (max-width: ${smMax$17}) {
|
|
11602
11610
|
flex-direction: column;
|
|
11603
11611
|
align-items: flex-start;
|
|
11604
11612
|
}
|
|
@@ -13958,6 +13966,19 @@ var textStyles = css`
|
|
|
13958
13966
|
--_text-max-width: var(--semantics-text-max-width);
|
|
13959
13967
|
--_text-color: var(--context-content-color, var(--semantics-content-color));
|
|
13960
13968
|
--_text-align: left;
|
|
13969
|
+
--_text-link-color: var(--semantics-links-color);
|
|
13970
|
+
--_text-link-is-hovered-color: var(--semantics-links-is-hovered-color);
|
|
13971
|
+
--_text-link-is-active-color: var(--semantics-links-is-active-color);
|
|
13972
|
+
--_text-link-underline-offset: var(--primitives-space-2);
|
|
13973
|
+
--_text-code-padding: var(--primitives-space-4);
|
|
13974
|
+
--_text-code-corner-radius: var(--semantics-controls-xs-corner-radius);
|
|
13975
|
+
--_text-code-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
13976
|
+
--_text-code-font-family: var(--primitives-font-family-monospace);
|
|
13977
|
+
--_text-code-font-size: var(--semantics-code-inline-font-size);
|
|
13978
|
+
--_text-mark-padding: var(--primitives-space-1) var(--primitives-space-2);
|
|
13979
|
+
--_text-mark-corner-radius: var(--semantics-controls-xs-corner-radius);
|
|
13980
|
+
--_text-mark-background-color: var(--semantics-content-mark-background-color);
|
|
13981
|
+
--_text-mark-color: var(--semantics-content-mark-color);
|
|
13961
13982
|
|
|
13962
13983
|
display: block;
|
|
13963
13984
|
max-width: var(--_text-max-width);
|
|
@@ -14011,6 +14032,48 @@ var textStyles = css`
|
|
|
14011
14032
|
}
|
|
14012
14033
|
|
|
14013
14034
|
|
|
14035
|
+
/* # Inline elements */
|
|
14036
|
+
|
|
14037
|
+
::slotted(em),
|
|
14038
|
+
::slotted(i) {
|
|
14039
|
+
color: inherit;
|
|
14040
|
+
font-style: italic;
|
|
14041
|
+
}
|
|
14042
|
+
|
|
14043
|
+
::slotted(a) {
|
|
14044
|
+
color: var(--_text-link-color);
|
|
14045
|
+
text-decoration: underline;
|
|
14046
|
+
text-underline-offset: var(--_text-link-underline-offset);
|
|
14047
|
+
}
|
|
14048
|
+
|
|
14049
|
+
::slotted(a:hover) {
|
|
14050
|
+
color: var(--_text-link-is-hovered-color);
|
|
14051
|
+
}
|
|
14052
|
+
|
|
14053
|
+
::slotted(a:active) {
|
|
14054
|
+
color: var(--_text-link-is-active-color);
|
|
14055
|
+
}
|
|
14056
|
+
|
|
14057
|
+
:host([color="inherit"]) ::slotted(a) {
|
|
14058
|
+
color: currentColor;
|
|
14059
|
+
}
|
|
14060
|
+
|
|
14061
|
+
::slotted(code) {
|
|
14062
|
+
border-radius: var(--_text-code-corner-radius);
|
|
14063
|
+
background-color: var(--_text-code-background-color);
|
|
14064
|
+
padding: var(--_text-code-padding);
|
|
14065
|
+
font-family: var(--_text-code-font-family);
|
|
14066
|
+
font-size: var(--_text-code-font-size);
|
|
14067
|
+
}
|
|
14068
|
+
|
|
14069
|
+
::slotted(mark) {
|
|
14070
|
+
border-radius: var(--_text-mark-corner-radius);
|
|
14071
|
+
background-color: var(--_text-mark-background-color);
|
|
14072
|
+
padding: var(--_text-mark-padding);
|
|
14073
|
+
color: var(--_text-mark-color);
|
|
14074
|
+
}
|
|
14075
|
+
|
|
14076
|
+
|
|
14014
14077
|
/* # Line height */
|
|
14015
14078
|
|
|
14016
14079
|
:host([line-height="flat"]) {
|
|
@@ -14104,7 +14167,7 @@ function template$11() {
|
|
|
14104
14167
|
* @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit'. 'content' and 'secondary' follow the surrounding content channel; 'inherit' takes the color it inherits, for text on a painted surface.
|
|
14105
14168
|
* @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
|
|
14106
14169
|
*
|
|
14107
|
-
* @slot - The text. Inline elements
|
|
14170
|
+
* @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, and `<mark>` is highlighted. This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
|
|
14108
14171
|
*/
|
|
14109
14172
|
var _NLDDText = class NLDDText extends LitElement {
|
|
14110
14173
|
constructor(..._args) {
|
|
@@ -14145,10 +14208,10 @@ __decorate([property({
|
|
|
14145
14208
|
NLDDText = __decorate([customElement("nldd-text")], NLDDText);
|
|
14146
14209
|
//#endregion
|
|
14147
14210
|
//#region src/components/content/title/title.styles.ts
|
|
14148
|
-
var smMax$
|
|
14149
|
-
var mdMin$
|
|
14150
|
-
var mdMax$
|
|
14151
|
-
var lgMin$
|
|
14211
|
+
var smMax$16 = unsafeCSS(breakpoints.smMax);
|
|
14212
|
+
var mdMin$20 = unsafeCSS(breakpoints.mdMin);
|
|
14213
|
+
var mdMax$13 = unsafeCSS(breakpoints.mdMax);
|
|
14214
|
+
var lgMin$14 = unsafeCSS(breakpoints.lgMin);
|
|
14152
14215
|
var titleStyles = css`
|
|
14153
14216
|
:host {
|
|
14154
14217
|
box-sizing: border-box;
|
|
@@ -14158,27 +14221,34 @@ var titleStyles = css`
|
|
|
14158
14221
|
/* # Host */
|
|
14159
14222
|
|
|
14160
14223
|
:host {
|
|
14161
|
-
|
|
14224
|
+
--_title-sm-custom-size: initial;
|
|
14225
|
+
--_title-md-custom-size: initial;
|
|
14226
|
+
--_title-lg-custom-size: initial;
|
|
14227
|
+
--_title-sm-custom-font: var(--primitives-font-weight-display-bold) max(var(--_title-sm-custom-size), var(--primitives-font-size-700)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
|
|
14228
|
+
--_title-md-custom-font: var(--primitives-font-weight-display-bold) max(var(--_title-md-custom-size), var(--primitives-font-size-800)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
|
|
14229
|
+
--_title-lg-custom-font: var(--primitives-font-weight-display-bold) max(var(--_title-lg-custom-size), var(--primitives-font-size-1000)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
|
|
14230
|
+
|
|
14231
|
+
@media (max-width: ${smMax$16}) {
|
|
14162
14232
|
--_title-font: var(--primitives-font-display-3-sm);
|
|
14163
14233
|
}
|
|
14164
14234
|
|
|
14165
|
-
@media (min-width: ${mdMin$
|
|
14235
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14166
14236
|
--_title-font: var(--primitives-font-display-3-md);
|
|
14167
14237
|
}
|
|
14168
14238
|
|
|
14169
|
-
@media (min-width: ${lgMin$
|
|
14239
|
+
@media (min-width: ${lgMin$14}) {
|
|
14170
14240
|
--_title-font: var(--primitives-font-display-3-lg);
|
|
14171
14241
|
}
|
|
14172
14242
|
|
|
14173
|
-
@container layout-container (max-width: ${smMax$
|
|
14243
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14174
14244
|
--_title-font: var(--primitives-font-display-3-sm);
|
|
14175
14245
|
}
|
|
14176
14246
|
|
|
14177
|
-
@container layout-container (min-width: ${mdMin$
|
|
14247
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14178
14248
|
--_title-font: var(--primitives-font-display-3-md);
|
|
14179
14249
|
}
|
|
14180
14250
|
|
|
14181
|
-
@container layout-container (min-width: ${lgMin$
|
|
14251
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14182
14252
|
--_title-font: var(--primitives-font-display-3-lg);
|
|
14183
14253
|
}
|
|
14184
14254
|
|
|
@@ -14187,135 +14257,167 @@ var titleStyles = css`
|
|
|
14187
14257
|
}
|
|
14188
14258
|
|
|
14189
14259
|
:host([size="1"]) {
|
|
14190
|
-
@media (max-width: ${smMax$
|
|
14260
|
+
@media (max-width: ${smMax$16}) {
|
|
14191
14261
|
--_title-font: var(--primitives-font-display-1-sm);
|
|
14192
14262
|
}
|
|
14193
14263
|
|
|
14194
|
-
@media (min-width: ${mdMin$
|
|
14264
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14195
14265
|
--_title-font: var(--primitives-font-display-1-md);
|
|
14196
14266
|
}
|
|
14197
14267
|
|
|
14198
|
-
@media (min-width: ${lgMin$
|
|
14268
|
+
@media (min-width: ${lgMin$14}) {
|
|
14199
14269
|
--_title-font: var(--primitives-font-display-1-lg);
|
|
14200
14270
|
}
|
|
14201
14271
|
|
|
14202
|
-
@container layout-container (max-width: ${smMax$
|
|
14272
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14203
14273
|
--_title-font: var(--primitives-font-display-1-sm);
|
|
14204
14274
|
}
|
|
14205
14275
|
|
|
14206
|
-
@container layout-container (min-width: ${mdMin$
|
|
14276
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14207
14277
|
--_title-font: var(--primitives-font-display-1-md);
|
|
14208
14278
|
}
|
|
14209
14279
|
|
|
14210
|
-
@container layout-container (min-width: ${lgMin$
|
|
14280
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14211
14281
|
--_title-font: var(--primitives-font-display-1-lg);
|
|
14212
14282
|
}
|
|
14213
14283
|
}
|
|
14214
14284
|
|
|
14215
14285
|
:host([size="2"]) {
|
|
14216
|
-
@media (max-width: ${smMax$
|
|
14286
|
+
@media (max-width: ${smMax$16}) {
|
|
14217
14287
|
--_title-font: var(--primitives-font-display-2-sm);
|
|
14218
14288
|
}
|
|
14219
14289
|
|
|
14220
|
-
@media (min-width: ${mdMin$
|
|
14290
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14221
14291
|
--_title-font: var(--primitives-font-display-2-md);
|
|
14222
14292
|
}
|
|
14223
14293
|
|
|
14224
|
-
@media (min-width: ${lgMin$
|
|
14294
|
+
@media (min-width: ${lgMin$14}) {
|
|
14225
14295
|
--_title-font: var(--primitives-font-display-2-lg);
|
|
14226
14296
|
}
|
|
14227
14297
|
|
|
14228
|
-
@container layout-container (max-width: ${smMax$
|
|
14298
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14229
14299
|
--_title-font: var(--primitives-font-display-2-sm);
|
|
14230
14300
|
}
|
|
14231
14301
|
|
|
14232
|
-
@container layout-container (min-width: ${mdMin$
|
|
14302
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14233
14303
|
--_title-font: var(--primitives-font-display-2-md);
|
|
14234
14304
|
}
|
|
14235
14305
|
|
|
14236
|
-
@container layout-container (min-width: ${lgMin$
|
|
14306
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14237
14307
|
--_title-font: var(--primitives-font-display-2-lg);
|
|
14238
14308
|
}
|
|
14239
14309
|
}
|
|
14240
14310
|
|
|
14241
14311
|
:host([size="4"]) {
|
|
14242
|
-
@media (max-width: ${smMax$
|
|
14312
|
+
@media (max-width: ${smMax$16}) {
|
|
14243
14313
|
--_title-font: var(--primitives-font-display-4-sm);
|
|
14244
14314
|
}
|
|
14245
14315
|
|
|
14246
|
-
@media (min-width: ${mdMin$
|
|
14316
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14247
14317
|
--_title-font: var(--primitives-font-display-4-md);
|
|
14248
14318
|
}
|
|
14249
14319
|
|
|
14250
|
-
@media (min-width: ${lgMin$
|
|
14320
|
+
@media (min-width: ${lgMin$14}) {
|
|
14251
14321
|
--_title-font: var(--primitives-font-display-4-lg);
|
|
14252
14322
|
}
|
|
14253
14323
|
|
|
14254
|
-
@container layout-container (max-width: ${smMax$
|
|
14324
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14255
14325
|
--_title-font: var(--primitives-font-display-4-sm);
|
|
14256
14326
|
}
|
|
14257
14327
|
|
|
14258
|
-
@container layout-container (min-width: ${mdMin$
|
|
14328
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14259
14329
|
--_title-font: var(--primitives-font-display-4-md);
|
|
14260
14330
|
}
|
|
14261
14331
|
|
|
14262
|
-
@container layout-container (min-width: ${lgMin$
|
|
14332
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14263
14333
|
--_title-font: var(--primitives-font-display-4-lg);
|
|
14264
14334
|
}
|
|
14265
14335
|
}
|
|
14266
14336
|
|
|
14267
14337
|
:host([size="5"]) {
|
|
14268
|
-
@media (max-width: ${smMax$
|
|
14338
|
+
@media (max-width: ${smMax$16}) {
|
|
14269
14339
|
--_title-font: var(--primitives-font-display-5-sm);
|
|
14270
14340
|
}
|
|
14271
14341
|
|
|
14272
|
-
@media (min-width: ${mdMin$
|
|
14342
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14273
14343
|
--_title-font: var(--primitives-font-display-5-md);
|
|
14274
14344
|
}
|
|
14275
14345
|
|
|
14276
|
-
@media (min-width: ${lgMin$
|
|
14346
|
+
@media (min-width: ${lgMin$14}) {
|
|
14277
14347
|
--_title-font: var(--primitives-font-display-5-lg);
|
|
14278
14348
|
}
|
|
14279
14349
|
|
|
14280
|
-
@container layout-container (max-width: ${smMax$
|
|
14350
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14281
14351
|
--_title-font: var(--primitives-font-display-5-sm);
|
|
14282
14352
|
}
|
|
14283
14353
|
|
|
14284
|
-
@container layout-container (min-width: ${mdMin$
|
|
14354
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14285
14355
|
--_title-font: var(--primitives-font-display-5-md);
|
|
14286
14356
|
}
|
|
14287
14357
|
|
|
14288
|
-
@container layout-container (min-width: ${lgMin$
|
|
14358
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14289
14359
|
--_title-font: var(--primitives-font-display-5-lg);
|
|
14290
14360
|
}
|
|
14291
14361
|
}
|
|
14292
14362
|
|
|
14293
14363
|
:host([size="6"]) {
|
|
14294
|
-
@media (max-width: ${smMax$
|
|
14364
|
+
@media (max-width: ${smMax$16}) {
|
|
14295
14365
|
--_title-font: var(--primitives-font-display-6-sm);
|
|
14296
14366
|
}
|
|
14297
14367
|
|
|
14298
|
-
@media (min-width: ${mdMin$
|
|
14368
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14299
14369
|
--_title-font: var(--primitives-font-display-6-md);
|
|
14300
14370
|
}
|
|
14301
14371
|
|
|
14302
|
-
@media (min-width: ${lgMin$
|
|
14372
|
+
@media (min-width: ${lgMin$14}) {
|
|
14303
14373
|
--_title-font: var(--primitives-font-display-6-lg);
|
|
14304
14374
|
}
|
|
14305
14375
|
|
|
14306
|
-
@container layout-container (max-width: ${smMax$
|
|
14376
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14307
14377
|
--_title-font: var(--primitives-font-display-6-sm);
|
|
14308
14378
|
}
|
|
14309
14379
|
|
|
14310
|
-
@container layout-container (min-width: ${mdMin$
|
|
14380
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14311
14381
|
--_title-font: var(--primitives-font-display-6-md);
|
|
14312
14382
|
}
|
|
14313
14383
|
|
|
14314
|
-
@container layout-container (min-width: ${lgMin$
|
|
14384
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14315
14385
|
--_title-font: var(--primitives-font-display-6-lg);
|
|
14316
14386
|
}
|
|
14317
14387
|
}
|
|
14318
14388
|
|
|
14389
|
+
/* ## Custom size */
|
|
14390
|
+
|
|
14391
|
+
:host([data-sm-custom-size]) {
|
|
14392
|
+
@media (max-width: ${smMax$16}) {
|
|
14393
|
+
--_title-font: var(--_title-sm-custom-font);
|
|
14394
|
+
}
|
|
14395
|
+
|
|
14396
|
+
@container layout-container (max-width: ${smMax$16}) {
|
|
14397
|
+
--_title-font: var(--_title-sm-custom-font);
|
|
14398
|
+
}
|
|
14399
|
+
}
|
|
14400
|
+
|
|
14401
|
+
:host([data-md-custom-size]) {
|
|
14402
|
+
@media (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14403
|
+
--_title-font: var(--_title-md-custom-font);
|
|
14404
|
+
}
|
|
14405
|
+
|
|
14406
|
+
@container layout-container (min-width: ${mdMin$20}) and (max-width: ${mdMax$13}) {
|
|
14407
|
+
--_title-font: var(--_title-md-custom-font);
|
|
14408
|
+
}
|
|
14409
|
+
}
|
|
14410
|
+
|
|
14411
|
+
:host([data-lg-custom-size]) {
|
|
14412
|
+
@media (min-width: ${lgMin$14}) {
|
|
14413
|
+
--_title-font: var(--_title-lg-custom-font);
|
|
14414
|
+
}
|
|
14415
|
+
|
|
14416
|
+
@container layout-container (min-width: ${lgMin$14}) {
|
|
14417
|
+
--_title-font: var(--_title-lg-custom-font);
|
|
14418
|
+
}
|
|
14419
|
+
}
|
|
14420
|
+
|
|
14319
14421
|
:host([hidden]) {
|
|
14320
14422
|
display: none;
|
|
14321
14423
|
}
|
|
@@ -14489,6 +14591,9 @@ function titleTemplate(component) {
|
|
|
14489
14591
|
* @element nldd-title
|
|
14490
14592
|
*
|
|
14491
14593
|
* @attr {number} size - Visual size of the title: 1–6 (default: 3)
|
|
14594
|
+
* @attr {string} sm-custom-size - A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 1, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of size 1. An invalid value falls back to `size`
|
|
14595
|
+
* @attr {string} md-custom-size - The same, at md
|
|
14596
|
+
* @attr {string} lg-custom-size - The same, at lg
|
|
14492
14597
|
* @attr {string} color - 'content' (the default) takes the system's own content
|
|
14493
14598
|
* colors. 'inherit' lets the title follow the text color of the surface
|
|
14494
14599
|
* instead (for colored areas such as the filled categories); overline and
|
|
@@ -14503,10 +14608,49 @@ function titleTemplate(component) {
|
|
|
14503
14608
|
* @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
|
|
14504
14609
|
* @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
|
|
14505
14610
|
*/
|
|
14506
|
-
var _NLDDTitle
|
|
14611
|
+
var _NLDDTitle;
|
|
14612
|
+
var BREAKPOINTS = [
|
|
14613
|
+
"sm",
|
|
14614
|
+
"md",
|
|
14615
|
+
"lg"
|
|
14616
|
+
];
|
|
14617
|
+
/** The font size of size 1 per breakpoint: the floor of a custom size. */
|
|
14618
|
+
var SIZE_1_FONT_SIZE = {
|
|
14619
|
+
sm: "var(--primitives-font-size-700)",
|
|
14620
|
+
md: "var(--primitives-font-size-800)",
|
|
14621
|
+
lg: "var(--primitives-font-size-1000)"
|
|
14622
|
+
};
|
|
14623
|
+
/** Font-size values that are not a length: the CSS-wide keywords and the
|
|
14624
|
+
* absolute and relative size keywords. */
|
|
14625
|
+
var NOT_A_LENGTH = /* @__PURE__ */ new Set([
|
|
14626
|
+
"inherit",
|
|
14627
|
+
"initial",
|
|
14628
|
+
"unset",
|
|
14629
|
+
"revert",
|
|
14630
|
+
"revert-layer",
|
|
14631
|
+
"xx-small",
|
|
14632
|
+
"x-small",
|
|
14633
|
+
"small",
|
|
14634
|
+
"medium",
|
|
14635
|
+
"large",
|
|
14636
|
+
"x-large",
|
|
14637
|
+
"xx-large",
|
|
14638
|
+
"xxx-large",
|
|
14639
|
+
"larger",
|
|
14640
|
+
"smaller",
|
|
14641
|
+
"math"
|
|
14642
|
+
]);
|
|
14643
|
+
/** A length font-size takes. A keyword cannot go inside the max() that keeps the floor, so it would void the whole font. */
|
|
14644
|
+
function isFontSize(value) {
|
|
14645
|
+
return !NOT_A_LENGTH.has(value.toLowerCase()) && CSS.supports("font-size", value);
|
|
14646
|
+
}
|
|
14647
|
+
var NLDDTitle = (_NLDDTitle = class NLDDTitle extends LitElement {
|
|
14507
14648
|
constructor(..._args) {
|
|
14508
14649
|
super(..._args);
|
|
14509
14650
|
this.size = 3;
|
|
14651
|
+
this.smCustomSize = "";
|
|
14652
|
+
this.mdCustomSize = "";
|
|
14653
|
+
this.lgCustomSize = "";
|
|
14510
14654
|
this.color = "content";
|
|
14511
14655
|
this.text = "";
|
|
14512
14656
|
this.supportingText = "";
|
|
@@ -14522,17 +14666,81 @@ var _NLDDTitle = class NLDDTitle extends LitElement {
|
|
|
14522
14666
|
else if (slot.name === "supporting-text") this._hasSupportingTextSlotted = hasContent;
|
|
14523
14667
|
else this._hasDefaultSlotted = hasContent;
|
|
14524
14668
|
};
|
|
14669
|
+
this._customSizes = {};
|
|
14670
|
+
this._warned = /* @__PURE__ */ new Set();
|
|
14525
14671
|
}
|
|
14526
14672
|
firstUpdated() {}
|
|
14673
|
+
willUpdate(changed) {
|
|
14674
|
+
super.willUpdate(changed);
|
|
14675
|
+
if (!changed.has("smCustomSize") && !changed.has("mdCustomSize") && !changed.has("lgCustomSize")) return;
|
|
14676
|
+
if (typeof CSS === "undefined") return;
|
|
14677
|
+
const own = {
|
|
14678
|
+
sm: this.smCustomSize,
|
|
14679
|
+
md: this.mdCustomSize,
|
|
14680
|
+
lg: this.lgCustomSize
|
|
14681
|
+
};
|
|
14682
|
+
this._customSizes = {};
|
|
14683
|
+
for (const breakpoint of BREAKPOINTS) {
|
|
14684
|
+
const value = (own[breakpoint] || "").trim();
|
|
14685
|
+
const valid = value !== "" && isFontSize(value);
|
|
14686
|
+
if (valid) {
|
|
14687
|
+
this._customSizes[breakpoint] = value;
|
|
14688
|
+
this.style.setProperty(`--_title-${breakpoint}-custom-size`, value);
|
|
14689
|
+
} else this.style.removeProperty(`--_title-${breakpoint}-custom-size`);
|
|
14690
|
+
this.toggleAttribute(`data-${breakpoint}-custom-size`, valid);
|
|
14691
|
+
}
|
|
14692
|
+
}
|
|
14693
|
+
updated(changed) {
|
|
14694
|
+
super.updated(changed);
|
|
14695
|
+
}
|
|
14696
|
+
_warnOnce(key, message) {
|
|
14697
|
+
if (this._warned.has(key)) return;
|
|
14698
|
+
this._warned.add(key);
|
|
14699
|
+
console.warn(message, this);
|
|
14700
|
+
}
|
|
14701
|
+
/** DEV-only: says so when a custom size is smaller than size 1, which then shows instead. */
|
|
14702
|
+
_checkFloor(sizes) {
|
|
14703
|
+
if (!this.shadowRoot || Object.keys(sizes).length === 0) return;
|
|
14704
|
+
const probe = document.createElement("span");
|
|
14705
|
+
probe.style.position = "absolute";
|
|
14706
|
+
probe.style.visibility = "hidden";
|
|
14707
|
+
this.shadowRoot.append(probe);
|
|
14708
|
+
const px = (value) => {
|
|
14709
|
+
probe.style.fontSize = value;
|
|
14710
|
+
return parseFloat(getComputedStyle(probe).fontSize);
|
|
14711
|
+
};
|
|
14712
|
+
try {
|
|
14713
|
+
for (const [breakpoint, value] of Object.entries(sizes)) {
|
|
14714
|
+
if (/%|\d(?:v[whib]|vmin|vmax|cq[whib]|cqmin|cqmax|em|ex|ch|cap|ic|lh)\b/.test(value)) continue;
|
|
14715
|
+
if (px(value) < px(SIZE_1_FONT_SIZE[breakpoint]) - .5) this._warnOnce(`floor-${breakpoint}-${value}`, `<nldd-title>: custom size "${value}" is smaller than size 1 at ${breakpoint} and shows as size 1. Use size for headings up to size 1.`);
|
|
14716
|
+
}
|
|
14717
|
+
} finally {
|
|
14718
|
+
probe.remove();
|
|
14719
|
+
}
|
|
14720
|
+
}
|
|
14527
14721
|
render() {
|
|
14528
14722
|
return titleTemplate(this);
|
|
14529
14723
|
}
|
|
14530
|
-
};
|
|
14531
|
-
var NLDDTitle = (_NLDDTitle.styles = titleStyles, _NLDDTitle);
|
|
14724
|
+
}, _NLDDTitle.styles = titleStyles, _NLDDTitle);
|
|
14532
14725
|
__decorate([property({
|
|
14533
14726
|
type: Number,
|
|
14534
14727
|
reflect: true
|
|
14535
14728
|
})], NLDDTitle.prototype, "size", void 0);
|
|
14729
|
+
__decorate([property({
|
|
14730
|
+
reflect: true,
|
|
14731
|
+
attribute: "sm-custom-size",
|
|
14732
|
+
converter: reflectNonDefault("")
|
|
14733
|
+
})], NLDDTitle.prototype, "smCustomSize", void 0);
|
|
14734
|
+
__decorate([property({
|
|
14735
|
+
reflect: true,
|
|
14736
|
+
attribute: "md-custom-size",
|
|
14737
|
+
converter: reflectNonDefault("")
|
|
14738
|
+
})], NLDDTitle.prototype, "mdCustomSize", void 0);
|
|
14739
|
+
__decorate([property({
|
|
14740
|
+
reflect: true,
|
|
14741
|
+
attribute: "lg-custom-size",
|
|
14742
|
+
converter: reflectNonDefault("")
|
|
14743
|
+
})], NLDDTitle.prototype, "lgCustomSize", void 0);
|
|
14536
14744
|
__decorate([property({
|
|
14537
14745
|
reflect: true,
|
|
14538
14746
|
converter: reflectNonDefault("content")
|
|
@@ -14754,7 +14962,7 @@ var nlddTokenTranslations = {
|
|
|
14754
14962
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
14755
14963
|
* @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
|
|
14756
14964
|
* @attr {boolean} expanded - Reflects whether the token's menu is open (control="menu"); managed by the token.
|
|
14757
|
-
* @attr {boolean} disabled - Disabled state
|
|
14965
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
14758
14966
|
*
|
|
14759
14967
|
* @slot - Token text
|
|
14760
14968
|
* @slot menu - An nldd-menu that the token opens from its menu button (control="menu").
|
|
@@ -15213,7 +15421,7 @@ var NLDDForm = class extends HTMLElement {
|
|
|
15213
15421
|
if (!customElements.get("nldd-form")) customElements.define("nldd-form", NLDDForm);
|
|
15214
15422
|
//#endregion
|
|
15215
15423
|
//#region src/components/forms/form-actions/form-actions.styles.ts
|
|
15216
|
-
var mdMin$
|
|
15424
|
+
var mdMin$19 = unsafeCSS(breakpoints.mdMin);
|
|
15217
15425
|
var formActionsStyles = css`
|
|
15218
15426
|
:host {
|
|
15219
15427
|
box-sizing: border-box;
|
|
@@ -15244,7 +15452,7 @@ var formActionsStyles = css`
|
|
|
15244
15452
|
:host([label-alignment="right"]) .form-actions,
|
|
15245
15453
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-actions,
|
|
15246
15454
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-actions {
|
|
15247
|
-
@container (min-width: ${mdMin$
|
|
15455
|
+
@container (min-width: ${mdMin$19}) {
|
|
15248
15456
|
flex-direction: row;
|
|
15249
15457
|
gap: var(--semantics-forms-columns-gap);
|
|
15250
15458
|
align-items: start;
|
|
@@ -15255,7 +15463,7 @@ var formActionsStyles = css`
|
|
|
15255
15463
|
:host([label-alignment="right"]) .form-actions::before,
|
|
15256
15464
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-actions::before,
|
|
15257
15465
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-actions::before {
|
|
15258
|
-
@container (min-width: ${mdMin$
|
|
15466
|
+
@container (min-width: ${mdMin$19}) {
|
|
15259
15467
|
content: '';
|
|
15260
15468
|
width: var(--semantics-forms-label-column-width);
|
|
15261
15469
|
flex-grow: 0;
|
|
@@ -15366,7 +15574,7 @@ function setOwnedAttribute(el, name, value, applied) {
|
|
|
15366
15574
|
}
|
|
15367
15575
|
//#endregion
|
|
15368
15576
|
//#region src/components/forms/form-field/form-field.styles.ts
|
|
15369
|
-
var mdMin$
|
|
15577
|
+
var mdMin$18 = unsafeCSS(breakpoints.mdMin);
|
|
15370
15578
|
var formFieldStyles = css`
|
|
15371
15579
|
:host {
|
|
15372
15580
|
box-sizing: border-box;
|
|
@@ -15403,7 +15611,7 @@ var formFieldStyles = css`
|
|
|
15403
15611
|
:host([label-alignment="right"]) .form-field,
|
|
15404
15612
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field,
|
|
15405
15613
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field {
|
|
15406
|
-
@container (min-width: ${mdMin$
|
|
15614
|
+
@container (min-width: ${mdMin$18}) {
|
|
15407
15615
|
flex-direction: row;
|
|
15408
15616
|
gap: var(--semantics-forms-columns-gap);
|
|
15409
15617
|
align-items: start;
|
|
@@ -15427,7 +15635,7 @@ var formFieldStyles = css`
|
|
|
15427
15635
|
:host([label-alignment="right"]) .form-field__header,
|
|
15428
15636
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__header,
|
|
15429
15637
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__header {
|
|
15430
|
-
@container (min-width: ${mdMin$
|
|
15638
|
+
@container (min-width: ${mdMin$18}) {
|
|
15431
15639
|
z-index: auto;
|
|
15432
15640
|
width: var(--semantics-forms-label-column-width);
|
|
15433
15641
|
min-height: var(--semantics-controls-md-min-size);
|
|
@@ -15439,7 +15647,7 @@ var formFieldStyles = css`
|
|
|
15439
15647
|
|
|
15440
15648
|
:host([label-alignment="right"]) .form-field__header,
|
|
15441
15649
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__header {
|
|
15442
|
-
@container (min-width: ${mdMin$
|
|
15650
|
+
@container (min-width: ${mdMin$18}) {
|
|
15443
15651
|
align-items: end;
|
|
15444
15652
|
text-align: right;
|
|
15445
15653
|
}
|
|
@@ -15447,7 +15655,7 @@ var formFieldStyles = css`
|
|
|
15447
15655
|
|
|
15448
15656
|
:host([label-alignment="left"]) .form-field__header,
|
|
15449
15657
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__header {
|
|
15450
|
-
@container (min-width: ${mdMin$
|
|
15658
|
+
@container (min-width: ${mdMin$18}) {
|
|
15451
15659
|
align-items: start;
|
|
15452
15660
|
text-align: left;
|
|
15453
15661
|
}
|
|
@@ -15461,7 +15669,7 @@ var formFieldStyles = css`
|
|
|
15461
15669
|
:host([label-alignment="right"]) .form-field__header.is-empty,
|
|
15462
15670
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__header.is-empty,
|
|
15463
15671
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__header.is-empty {
|
|
15464
|
-
@container (min-width: ${mdMin$
|
|
15672
|
+
@container (min-width: ${mdMin$18}) {
|
|
15465
15673
|
display: flex;
|
|
15466
15674
|
}
|
|
15467
15675
|
}
|
|
@@ -15482,7 +15690,7 @@ var formFieldStyles = css`
|
|
|
15482
15690
|
:host([label-alignment="right"]) .form-field__label,
|
|
15483
15691
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__label,
|
|
15484
15692
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__label {
|
|
15485
|
-
@container (min-width: ${mdMin$
|
|
15693
|
+
@container (min-width: ${mdMin$18}) {
|
|
15486
15694
|
display: flex;
|
|
15487
15695
|
flex-direction: column;
|
|
15488
15696
|
gap: var(--primitives-space-0);
|
|
@@ -15491,14 +15699,14 @@ var formFieldStyles = css`
|
|
|
15491
15699
|
|
|
15492
15700
|
:host([label-alignment="right"]) .form-field__label,
|
|
15493
15701
|
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__label {
|
|
15494
|
-
@container (min-width: ${mdMin$
|
|
15702
|
+
@container (min-width: ${mdMin$18}) {
|
|
15495
15703
|
align-items: end;
|
|
15496
15704
|
}
|
|
15497
15705
|
}
|
|
15498
15706
|
|
|
15499
15707
|
:host([label-alignment="left"]) .form-field__label,
|
|
15500
15708
|
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__label {
|
|
15501
|
-
@container (min-width: ${mdMin$
|
|
15709
|
+
@container (min-width: ${mdMin$18}) {
|
|
15502
15710
|
align-items: start;
|
|
15503
15711
|
}
|
|
15504
15712
|
}
|
|
@@ -20168,7 +20376,7 @@ function resolveDateBound(raw, today = /* @__PURE__ */ new Date()) {
|
|
|
20168
20376
|
}
|
|
20169
20377
|
//#endregion
|
|
20170
20378
|
//#region src/components/inputs/date-field/date-field.styles.ts
|
|
20171
|
-
var mdMin$
|
|
20379
|
+
var mdMin$17 = unsafeCSS(breakpoints.mdMin);
|
|
20172
20380
|
var dateFieldStyles = css`
|
|
20173
20381
|
:host {
|
|
20174
20382
|
box-sizing: border-box;
|
|
@@ -20416,7 +20624,7 @@ var dateFieldStyles = css`
|
|
|
20416
20624
|
|
|
20417
20625
|
/* The sheet's title bar only makes sense on a small screen, where the popover
|
|
20418
20626
|
becomes a bottom sheet. It shows by default and is hidden from md up. */
|
|
20419
|
-
@media (min-width: ${mdMin$
|
|
20627
|
+
@media (min-width: ${mdMin$17}) {
|
|
20420
20628
|
.date-field__picker-button nldd-top-title-bar {
|
|
20421
20629
|
display: none;
|
|
20422
20630
|
}
|
|
@@ -23029,6 +23237,12 @@ function dropdownTemplate(component) {
|
|
|
23029
23237
|
* and keyboard navigation, including `<optgroup>`, `data-*` attributes and
|
|
23030
23238
|
* dynamic changes to options.
|
|
23031
23239
|
*
|
|
23240
|
+
* A dropdown hides its options, so it is the last resort for a choice from a
|
|
23241
|
+
* fixed set. Show a handful of options with nldd-segmented-control,
|
|
23242
|
+
* nldd-toggle-button-group or nldd-radio-button-group, and let the user type
|
|
23243
|
+
* in nldd-combo-box when there are many, a list of countries included. The
|
|
23244
|
+
* design guidelines explain the order.
|
|
23245
|
+
*
|
|
23032
23246
|
* @element nldd-dropdown
|
|
23033
23247
|
* @attr {string} size - Size: 'xs' | 'sm' | 'md' (default: 'md')
|
|
23034
23248
|
* @attr {boolean} valid - Marks the field as valid
|
|
@@ -34834,7 +35048,7 @@ __decorate([property({
|
|
|
34834
35048
|
NLDDTextField = __decorate([customElement("nldd-text-field")], NLDDTextField);
|
|
34835
35049
|
//#endregion
|
|
34836
35050
|
//#region src/components/inputs/time-field/time-field.styles.ts
|
|
34837
|
-
var mdMin$
|
|
35051
|
+
var mdMin$16 = unsafeCSS(breakpoints.mdMin);
|
|
34838
35052
|
var timeFieldStyles = css`
|
|
34839
35053
|
:host {
|
|
34840
35054
|
box-sizing: border-box;
|
|
@@ -35028,7 +35242,7 @@ var timeFieldStyles = css`
|
|
|
35028
35242
|
}
|
|
35029
35243
|
|
|
35030
35244
|
|
|
35031
|
-
@media (min-width: ${mdMin$
|
|
35245
|
+
@media (min-width: ${mdMin$16}) {
|
|
35032
35246
|
.time-field__picker-button nldd-top-title-bar {
|
|
35033
35247
|
display: none;
|
|
35034
35248
|
}
|
|
@@ -35036,10 +35250,10 @@ var timeFieldStyles = css`
|
|
|
35036
35250
|
`;
|
|
35037
35251
|
//#endregion
|
|
35038
35252
|
//#region src/components/layout/spacer/spacer.styles.ts
|
|
35039
|
-
var smMax$
|
|
35040
|
-
var mdMin$
|
|
35041
|
-
var mdMax$
|
|
35042
|
-
var lgMin$
|
|
35253
|
+
var smMax$15 = unsafeCSS(breakpoints.smMax);
|
|
35254
|
+
var mdMin$15 = unsafeCSS(breakpoints.mdMin);
|
|
35255
|
+
var mdMax$12 = unsafeCSS(breakpoints.mdMax);
|
|
35256
|
+
var lgMin$13 = unsafeCSS(breakpoints.lgMin);
|
|
35043
35257
|
var spacerStyles = css`
|
|
35044
35258
|
:host {
|
|
35045
35259
|
box-sizing: border-box;
|
|
@@ -35125,7 +35339,7 @@ var spacerStyles = css`
|
|
|
35125
35339
|
|
|
35126
35340
|
/* ## sm: max-width 640px */
|
|
35127
35341
|
|
|
35128
|
-
@media (max-width: ${smMax$
|
|
35342
|
+
@media (max-width: ${smMax$15}) {
|
|
35129
35343
|
:host([sm-size="2"]) { --_spacer-size: var(--primitives-space-2); }
|
|
35130
35344
|
:host([sm-size="4"]) { --_spacer-size: var(--primitives-space-4); }
|
|
35131
35345
|
:host([sm-size="6"]) { --_spacer-size: var(--primitives-space-6); }
|
|
@@ -35166,7 +35380,7 @@ var spacerStyles = css`
|
|
|
35166
35380
|
|
|
35167
35381
|
/* ## md: 641px–1007px */
|
|
35168
35382
|
|
|
35169
|
-
@media (min-width: ${mdMin$
|
|
35383
|
+
@media (min-width: ${mdMin$15}) and (max-width: ${mdMax$12}) {
|
|
35170
35384
|
:host([md-size="2"]) { --_spacer-size: var(--primitives-space-2); }
|
|
35171
35385
|
:host([md-size="4"]) { --_spacer-size: var(--primitives-space-4); }
|
|
35172
35386
|
:host([md-size="6"]) { --_spacer-size: var(--primitives-space-6); }
|
|
@@ -35207,7 +35421,7 @@ var spacerStyles = css`
|
|
|
35207
35421
|
|
|
35208
35422
|
/* ## lg: min-width 1008px */
|
|
35209
35423
|
|
|
35210
|
-
@media (min-width: ${lgMin$
|
|
35424
|
+
@media (min-width: ${lgMin$13}) {
|
|
35211
35425
|
:host([lg-size="2"]) { --_spacer-size: var(--primitives-space-2); }
|
|
35212
35426
|
:host([lg-size="4"]) { --_spacer-size: var(--primitives-space-4); }
|
|
35213
35427
|
:host([lg-size="6"]) { --_spacer-size: var(--primitives-space-6); }
|
|
@@ -39293,10 +39507,10 @@ __decorate([state()], NLDDBarSplitView.prototype, "_currentBreakpoint", void 0);
|
|
|
39293
39507
|
NLDDBarSplitView = __decorate([customElement("nldd-bar-split-view")], NLDDBarSplitView);
|
|
39294
39508
|
//#endregion
|
|
39295
39509
|
//#region src/components/layout/split-views/navigation-split-view/navigation-split-view.styles.ts
|
|
39296
|
-
var smMax$
|
|
39297
|
-
var mdMin$
|
|
39298
|
-
var mdMax$
|
|
39299
|
-
var lgMin$
|
|
39510
|
+
var smMax$14 = unsafeCSS(breakpoints.smMax);
|
|
39511
|
+
var mdMin$14 = unsafeCSS(breakpoints.mdMin);
|
|
39512
|
+
var mdMax$11 = unsafeCSS(breakpoints.mdMax);
|
|
39513
|
+
var lgMin$12 = unsafeCSS(breakpoints.lgMin);
|
|
39300
39514
|
var navigationSplitViewStyles = css`
|
|
39301
39515
|
:host {
|
|
39302
39516
|
box-sizing: border-box;
|
|
@@ -39478,7 +39692,7 @@ var navigationSplitViewStyles = css`
|
|
|
39478
39692
|
padding: 0;
|
|
39479
39693
|
flex-direction: column;
|
|
39480
39694
|
|
|
39481
|
-
@media (max-width: ${smMax$
|
|
39695
|
+
@media (max-width: ${smMax$14}) {
|
|
39482
39696
|
inset: auto 0 0 0;
|
|
39483
39697
|
border-radius: var(--semantics-overlays-corner-radius) var(--semantics-overlays-corner-radius) 0 0;
|
|
39484
39698
|
width: 100%;
|
|
@@ -39487,14 +39701,14 @@ var navigationSplitViewStyles = css`
|
|
|
39487
39701
|
max-height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
39488
39702
|
}
|
|
39489
39703
|
|
|
39490
|
-
@media (min-width: ${mdMin$
|
|
39704
|
+
@media (min-width: ${mdMin$14}) and (max-width: ${mdMax$11}) {
|
|
39491
39705
|
inset: var(--semantics-overlays-inset) var(--semantics-overlays-inset) var(--semantics-overlays-inset) auto;
|
|
39492
39706
|
border-radius: var(--semantics-overlays-corner-radius);
|
|
39493
39707
|
width: var(--semantics-sheets-side-md-width);
|
|
39494
39708
|
height: calc(100dvh - var(--semantics-overlays-inset) * 2);
|
|
39495
39709
|
}
|
|
39496
39710
|
|
|
39497
|
-
@media (min-width: ${lgMin$
|
|
39711
|
+
@media (min-width: ${lgMin$12}) {
|
|
39498
39712
|
inset: var(--semantics-overlays-inset) var(--semantics-overlays-inset) var(--semantics-overlays-inset) auto;
|
|
39499
39713
|
border-radius: var(--semantics-overlays-corner-radius);
|
|
39500
39714
|
width: var(--semantics-sheets-side-lg-width);
|
|
@@ -39516,21 +39730,21 @@ var navigationSplitViewStyles = css`
|
|
|
39516
39730
|
}
|
|
39517
39731
|
|
|
39518
39732
|
&[open] {
|
|
39519
|
-
@media (max-width: ${smMax$
|
|
39733
|
+
@media (max-width: ${smMax$14}) {
|
|
39520
39734
|
animation: navigation-split-view-slide-in-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39521
39735
|
}
|
|
39522
39736
|
|
|
39523
|
-
@media (min-width: ${mdMin$
|
|
39737
|
+
@media (min-width: ${mdMin$14}) {
|
|
39524
39738
|
animation: navigation-split-view-inspector-slide-in var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39525
39739
|
}
|
|
39526
39740
|
}
|
|
39527
39741
|
|
|
39528
39742
|
&.is-closing {
|
|
39529
|
-
@media (max-width: ${smMax$
|
|
39743
|
+
@media (max-width: ${smMax$14}) {
|
|
39530
39744
|
animation: navigation-split-view-slide-out-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39531
39745
|
}
|
|
39532
39746
|
|
|
39533
|
-
@media (min-width: ${mdMin$
|
|
39747
|
+
@media (min-width: ${mdMin$14}) {
|
|
39534
39748
|
animation: navigation-split-view-inspector-slide-out var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39535
39749
|
}
|
|
39536
39750
|
}
|
|
@@ -39556,7 +39770,7 @@ var navigationSplitViewStyles = css`
|
|
|
39556
39770
|
padding: 0;
|
|
39557
39771
|
flex-direction: column;
|
|
39558
39772
|
|
|
39559
|
-
@media (max-width: ${smMax$
|
|
39773
|
+
@media (max-width: ${smMax$14}) {
|
|
39560
39774
|
inset: auto 0 0 0;
|
|
39561
39775
|
border-radius: var(--semantics-overlays-corner-radius) var(--semantics-overlays-corner-radius) 0 0;
|
|
39562
39776
|
width: 100%;
|
|
@@ -39565,14 +39779,14 @@ var navigationSplitViewStyles = css`
|
|
|
39565
39779
|
max-height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
39566
39780
|
}
|
|
39567
39781
|
|
|
39568
|
-
@media (min-width: ${mdMin$
|
|
39782
|
+
@media (min-width: ${mdMin$14}) and (max-width: ${mdMax$11}) {
|
|
39569
39783
|
inset: var(--semantics-overlays-inset) auto var(--semantics-overlays-inset) var(--semantics-overlays-inset);
|
|
39570
39784
|
border-radius: var(--semantics-overlays-corner-radius);
|
|
39571
39785
|
width: var(--semantics-sheets-side-md-width);
|
|
39572
39786
|
height: calc(100dvh - var(--semantics-overlays-inset) * 2);
|
|
39573
39787
|
}
|
|
39574
39788
|
|
|
39575
|
-
@media (min-width: ${lgMin$
|
|
39789
|
+
@media (min-width: ${lgMin$12}) {
|
|
39576
39790
|
inset: var(--semantics-overlays-inset) auto var(--semantics-overlays-inset) var(--semantics-overlays-inset);
|
|
39577
39791
|
border-radius: var(--semantics-overlays-corner-radius);
|
|
39578
39792
|
width: var(--semantics-sheets-side-lg-width);
|
|
@@ -39594,21 +39808,21 @@ var navigationSplitViewStyles = css`
|
|
|
39594
39808
|
}
|
|
39595
39809
|
|
|
39596
39810
|
&[open] {
|
|
39597
|
-
@media (max-width: ${smMax$
|
|
39811
|
+
@media (max-width: ${smMax$14}) {
|
|
39598
39812
|
animation: navigation-split-view-slide-in-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39599
39813
|
}
|
|
39600
39814
|
|
|
39601
|
-
@media (min-width: ${mdMin$
|
|
39815
|
+
@media (min-width: ${mdMin$14}) {
|
|
39602
39816
|
animation: navigation-split-view-primary-sidebar-slide-in var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39603
39817
|
}
|
|
39604
39818
|
}
|
|
39605
39819
|
|
|
39606
39820
|
&.is-closing {
|
|
39607
|
-
@media (max-width: ${smMax$
|
|
39821
|
+
@media (max-width: ${smMax$14}) {
|
|
39608
39822
|
animation: navigation-split-view-slide-out-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39609
39823
|
}
|
|
39610
39824
|
|
|
39611
|
-
@media (min-width: ${mdMin$
|
|
39825
|
+
@media (min-width: ${mdMin$14}) {
|
|
39612
39826
|
animation: navigation-split-view-primary-sidebar-slide-out var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) both;
|
|
39613
39827
|
}
|
|
39614
39828
|
}
|
|
@@ -39648,7 +39862,7 @@ var navigationSplitViewStyles = css`
|
|
|
39648
39862
|
definite height and the zero basis never surfaces, which is why this only
|
|
39649
39863
|
shows below 641px. The dialog's max-height still caps a long sheet;
|
|
39650
39864
|
flex-shrink then hands the overflow to the pane's own scroll container. */
|
|
39651
|
-
@media (max-width: ${smMax$
|
|
39865
|
+
@media (max-width: ${smMax$14}) {
|
|
39652
39866
|
.navigation-split-view__primary-sidebar-sheet-body slot::slotted(*),
|
|
39653
39867
|
.navigation-split-view__inspector-sheet-body slot::slotted(*) {
|
|
39654
39868
|
flex-basis: auto;
|
|
@@ -40501,7 +40715,7 @@ __decorate([state()], NLDDStackedSplitView.prototype, "_visiblePanes", void 0);
|
|
|
40501
40715
|
NLDDStackedSplitView = __decorate([customElement("nldd-stacked-split-view")], NLDDStackedSplitView);
|
|
40502
40716
|
//#endregion
|
|
40503
40717
|
//#region src/components/layout/split-views/split-view-pane/split-view-pane.styles.ts
|
|
40504
|
-
var mdMin$
|
|
40718
|
+
var mdMin$13 = unsafeCSS(breakpoints.mdMin);
|
|
40505
40719
|
var splitViewPaneStyles = css`
|
|
40506
40720
|
:host {
|
|
40507
40721
|
box-sizing: border-box;
|
|
@@ -40517,7 +40731,7 @@ var splitViewPaneStyles = css`
|
|
|
40517
40731
|
width: 100%;
|
|
40518
40732
|
height: 100%;
|
|
40519
40733
|
|
|
40520
|
-
@media (min-width: ${mdMin$
|
|
40734
|
+
@media (min-width: ${mdMin$13}) {
|
|
40521
40735
|
background-color: var(--_split-view-pane-background-color);
|
|
40522
40736
|
}
|
|
40523
40737
|
}
|
|
@@ -41476,10 +41690,10 @@ function PageSectionMixin(Base) {
|
|
|
41476
41690
|
}
|
|
41477
41691
|
//#endregion
|
|
41478
41692
|
//#region src/components/layout/page-sections/simple-section/simple-section.styles.ts
|
|
41479
|
-
var smMax$
|
|
41480
|
-
var mdMin$
|
|
41481
|
-
var mdMax$
|
|
41482
|
-
var lgMin$
|
|
41693
|
+
var smMax$13 = unsafeCSS(breakpoints.smMax);
|
|
41694
|
+
var mdMin$12 = unsafeCSS(breakpoints.mdMin);
|
|
41695
|
+
var mdMax$10 = unsafeCSS(breakpoints.mdMax);
|
|
41696
|
+
var lgMin$11 = unsafeCSS(breakpoints.lgMin);
|
|
41483
41697
|
var simpleSectionStyles = css`
|
|
41484
41698
|
:host {
|
|
41485
41699
|
box-sizing: border-box;
|
|
@@ -41553,19 +41767,19 @@ var simpleSectionStyles = css`
|
|
|
41553
41767
|
align-items: center;
|
|
41554
41768
|
|
|
41555
41769
|
|
|
41556
|
-
@container (max-width: ${smMax$
|
|
41770
|
+
@container (max-width: ${smMax$13}) {
|
|
41557
41771
|
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
41558
41772
|
padding-top: var(--_simple-section-sm-padding-top, var(--_simple-section-padding-top, var(--semantics-page-sections-sm-margin-block)));
|
|
41559
41773
|
padding-bottom: var(--_simple-section-sm-padding-bottom, var(--_simple-section-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
41560
41774
|
}
|
|
41561
41775
|
|
|
41562
|
-
@container (min-width: ${mdMin$
|
|
41776
|
+
@container (min-width: ${mdMin$12}) and (max-width: ${mdMax$10}) {
|
|
41563
41777
|
padding-inline: var(--semantics-page-sections-md-margin-inline);
|
|
41564
41778
|
padding-top: var(--_simple-section-md-padding-top, var(--_simple-section-padding-top, var(--semantics-page-sections-md-margin-block)));
|
|
41565
41779
|
padding-bottom: var(--_simple-section-md-padding-bottom, var(--_simple-section-padding-bottom, var(--semantics-page-sections-md-margin-block)));
|
|
41566
41780
|
}
|
|
41567
41781
|
|
|
41568
|
-
@container (min-width: ${lgMin$
|
|
41782
|
+
@container (min-width: ${lgMin$11}) {
|
|
41569
41783
|
padding-inline: var(--semantics-page-sections-lg-margin-inline);
|
|
41570
41784
|
padding-top: var(--_simple-section-lg-padding-top, var(--_simple-section-padding-top, var(--semantics-page-sections-lg-margin-block)));
|
|
41571
41785
|
padding-bottom: var(--_simple-section-lg-padding-bottom, var(--_simple-section-padding-bottom, var(--semantics-page-sections-lg-margin-block)));
|
|
@@ -41582,15 +41796,15 @@ var simpleSectionStyles = css`
|
|
|
41582
41796
|
flex-direction: column;
|
|
41583
41797
|
flex-grow: 1;
|
|
41584
41798
|
|
|
41585
|
-
@container (max-width: ${smMax$
|
|
41799
|
+
@container (max-width: ${smMax$13}) {
|
|
41586
41800
|
gap: var(--semantics-page-sections-sm-gap);
|
|
41587
41801
|
}
|
|
41588
41802
|
|
|
41589
|
-
@container (min-width: ${mdMin$
|
|
41803
|
+
@container (min-width: ${mdMin$12}) and (max-width: ${mdMax$10}) {
|
|
41590
41804
|
gap: var(--semantics-page-sections-md-gap);
|
|
41591
41805
|
}
|
|
41592
41806
|
|
|
41593
|
-
@container (min-width: ${lgMin$
|
|
41807
|
+
@container (min-width: ${lgMin$11}) {
|
|
41594
41808
|
gap: var(--semantics-page-sections-lg-gap);
|
|
41595
41809
|
}
|
|
41596
41810
|
}
|
|
@@ -41710,10 +41924,10 @@ __decorate([property({
|
|
|
41710
41924
|
NLDDSimpleSection = __decorate([customElement("nldd-simple-section")], NLDDSimpleSection);
|
|
41711
41925
|
//#endregion
|
|
41712
41926
|
//#region src/components/layout/page-sections/hero/hero.styles.ts
|
|
41713
|
-
var smMax$
|
|
41714
|
-
var mdMin$
|
|
41715
|
-
var mdMax$
|
|
41716
|
-
var lgMin$
|
|
41927
|
+
var smMax$12 = unsafeCSS(breakpoints.smMax);
|
|
41928
|
+
var mdMin$11 = unsafeCSS(breakpoints.mdMin);
|
|
41929
|
+
var mdMax$9 = unsafeCSS(breakpoints.mdMax);
|
|
41930
|
+
var lgMin$10 = unsafeCSS(breakpoints.lgMin);
|
|
41717
41931
|
var heroStyles = css`
|
|
41718
41932
|
:host {
|
|
41719
41933
|
box-sizing: border-box;
|
|
@@ -41881,13 +42095,13 @@ var heroStyles = css`
|
|
|
41881
42095
|
inside :host would match an ancestor container, while these must query
|
|
41882
42096
|
the host's own inline size. */
|
|
41883
42097
|
|
|
41884
|
-
@container (max-width: ${smMax$
|
|
42098
|
+
@container (max-width: ${smMax$12}) {
|
|
41885
42099
|
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
41886
42100
|
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-sm-margin-block) / 2)));
|
|
41887
42101
|
padding-bottom: var(--_hero-sm-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
41888
42102
|
}
|
|
41889
42103
|
|
|
41890
|
-
@container (min-width: ${mdMin$
|
|
42104
|
+
@container (min-width: ${mdMin$11}) and (max-width: ${mdMax$9}) {
|
|
41891
42105
|
--_hero-main-padding: var(--primitives-space-24);
|
|
41892
42106
|
--_hero-main-inset: var(--semantics-page-sections-md-gap);
|
|
41893
42107
|
--_hero-default-overlap-size: var(--primitives-area-160);
|
|
@@ -41897,7 +42111,7 @@ var heroStyles = css`
|
|
|
41897
42111
|
padding-bottom: var(--_hero-md-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-md-margin-block)));
|
|
41898
42112
|
}
|
|
41899
42113
|
|
|
41900
|
-
@container (min-width: ${lgMin$
|
|
42114
|
+
@container (min-width: ${lgMin$10}) {
|
|
41901
42115
|
--_hero-main-padding: var(--primitives-space-32);
|
|
41902
42116
|
--_hero-main-inset: var(--semantics-page-sections-lg-gap);
|
|
41903
42117
|
--_hero-default-overlap-size: var(--primitives-area-160);
|
|
@@ -41942,7 +42156,7 @@ var heroStyles = css`
|
|
|
41942
42156
|
rather than rigidly tied to the width. align-self: start stops the
|
|
41943
42157
|
stretch fit from cancelling the ratio. */
|
|
41944
42158
|
:host([data-has-media]) .hero__body::before {
|
|
41945
|
-
@container (min-width: ${mdMin$
|
|
42159
|
+
@container (min-width: ${mdMin$11}) {
|
|
41946
42160
|
content: '';
|
|
41947
42161
|
height: var(--_hero-media-height);
|
|
41948
42162
|
aspect-ratio: var(--_hero-media-aspect-ratio);
|
|
@@ -42030,7 +42244,7 @@ var heroStyles = css`
|
|
|
42030
42244
|
}
|
|
42031
42245
|
|
|
42032
42246
|
:host([data-has-media][data-main-width-length]) .hero__main {
|
|
42033
|
-
@container (min-width: ${mdMin$
|
|
42247
|
+
@container (min-width: ${mdMin$11}) {
|
|
42034
42248
|
width: var(--_hero-main-width);
|
|
42035
42249
|
min-width: 0;
|
|
42036
42250
|
max-width: calc(100% - 2 * var(--_hero-main-inset));
|
|
@@ -42084,7 +42298,7 @@ var heroStyles = css`
|
|
|
42084
42298
|
/* # Overlap (md+) — the media keeps a fixed height; the panel sits in the
|
|
42085
42299
|
row below it, pulled up over it by the overlap size. */
|
|
42086
42300
|
|
|
42087
|
-
@container (min-width: ${mdMin$
|
|
42301
|
+
@container (min-width: ${mdMin$11}) {
|
|
42088
42302
|
:host([data-has-media]:not([layout="contained"])) .hero__body::before {
|
|
42089
42303
|
content: none;
|
|
42090
42304
|
}
|
|
@@ -42114,7 +42328,7 @@ var heroStyles = css`
|
|
|
42114
42328
|
/* # Mobile — the media on top, the panel below it, indented and overlapping
|
|
42115
42329
|
it a little. */
|
|
42116
42330
|
|
|
42117
|
-
@container (max-width: ${smMax$
|
|
42331
|
+
@container (max-width: ${smMax$12}) {
|
|
42118
42332
|
.hero__body {
|
|
42119
42333
|
display: flex;
|
|
42120
42334
|
flex-direction: column;
|
|
@@ -42172,16 +42386,213 @@ function heroTemplate(component) {
|
|
|
42172
42386
|
`;
|
|
42173
42387
|
}
|
|
42174
42388
|
//#endregion
|
|
42389
|
+
//#region src/components/layout/page-sections/hero/hero-corner.styles.ts
|
|
42390
|
+
var smMax$11 = unsafeCSS(breakpoints.smMax);
|
|
42391
|
+
var mdMin$10 = unsafeCSS(breakpoints.mdMin);
|
|
42392
|
+
var mdMax$8 = unsafeCSS(breakpoints.mdMax);
|
|
42393
|
+
var lgMin$9 = unsafeCSS(breakpoints.lgMin);
|
|
42394
|
+
var heroCornerStyles = css`
|
|
42395
|
+
|
|
42396
|
+
|
|
42397
|
+
/* # Corner */
|
|
42398
|
+
|
|
42399
|
+
:host([data-media-corner]) {
|
|
42400
|
+
--_hero-corner-radius: calc(var(--semantics-brand-ribbon-sm-width) * 1.5);
|
|
42401
|
+
}
|
|
42402
|
+
|
|
42403
|
+
/* On .hero, not :host: a var() resolves where it is declared, so on :host
|
|
42404
|
+
this would halve the sm radius at every breakpoint. */
|
|
42405
|
+
:host([data-media-corner]) .hero {
|
|
42406
|
+
--_hero-main-corner-radius: calc(var(--_hero-corner-radius) / 2);
|
|
42407
|
+
|
|
42408
|
+
@container (min-width: ${mdMin$10}) and (max-width: ${mdMax$8}) {
|
|
42409
|
+
--_hero-corner-radius: calc(var(--semantics-brand-ribbon-md-width) * 2);
|
|
42410
|
+
}
|
|
42411
|
+
|
|
42412
|
+
@container (min-width: ${lgMin$9}) {
|
|
42413
|
+
--_hero-corner-radius: calc(var(--semantics-brand-ribbon-lg-width) * 2);
|
|
42414
|
+
}
|
|
42415
|
+
}
|
|
42416
|
+
|
|
42417
|
+
/* ## Contained */
|
|
42418
|
+
|
|
42419
|
+
:host([data-media-corner][data-has-media]) .hero {
|
|
42420
|
+
@container (min-width: ${mdMin$10}) {
|
|
42421
|
+
--_hero-main-inset: var(--primitives-space-0);
|
|
42422
|
+
}
|
|
42423
|
+
}
|
|
42424
|
+
|
|
42425
|
+
:host([data-has-media]:is([data-main-corner="top-left"], [data-main-corner="top-right"])) .hero__main {
|
|
42426
|
+
@container (min-width: ${mdMin$10}) {
|
|
42427
|
+
margin-top: var(--_hero-corner-radius);
|
|
42428
|
+
}
|
|
42429
|
+
}
|
|
42430
|
+
|
|
42431
|
+
:host([data-has-media]:is([data-main-corner="bottom-left"], [data-main-corner="bottom-right"])) .hero__main {
|
|
42432
|
+
@container (min-width: ${mdMin$10}) {
|
|
42433
|
+
margin-bottom: var(--_hero-corner-radius);
|
|
42434
|
+
}
|
|
42435
|
+
}
|
|
42436
|
+
|
|
42437
|
+
/* ## Media */
|
|
42438
|
+
|
|
42439
|
+
:host([data-has-media][data-media-corner="top-left"]) .hero__media {
|
|
42440
|
+
border-top-left-radius: var(--_hero-corner-radius);
|
|
42441
|
+
}
|
|
42442
|
+
|
|
42443
|
+
:host([data-has-media][data-media-corner="top-right"]) .hero__media {
|
|
42444
|
+
border-top-right-radius: var(--_hero-corner-radius);
|
|
42445
|
+
}
|
|
42446
|
+
|
|
42447
|
+
:host([data-has-media][data-media-corner="bottom-left"]) .hero__media {
|
|
42448
|
+
@container (min-width: ${mdMin$10}) {
|
|
42449
|
+
border-bottom-left-radius: var(--_hero-corner-radius);
|
|
42450
|
+
}
|
|
42451
|
+
|
|
42452
|
+
@container (max-width: ${smMax$11}) {
|
|
42453
|
+
border-top-left-radius: var(--_hero-corner-radius);
|
|
42454
|
+
}
|
|
42455
|
+
}
|
|
42456
|
+
|
|
42457
|
+
:host([data-has-media][data-media-corner="bottom-right"]) .hero__media {
|
|
42458
|
+
@container (min-width: ${mdMin$10}) {
|
|
42459
|
+
border-bottom-right-radius: var(--_hero-corner-radius);
|
|
42460
|
+
}
|
|
42461
|
+
|
|
42462
|
+
@container (max-width: ${smMax$11}) {
|
|
42463
|
+
border-top-right-radius: var(--_hero-corner-radius);
|
|
42464
|
+
}
|
|
42465
|
+
}
|
|
42466
|
+
|
|
42467
|
+
/* ## Main */
|
|
42468
|
+
|
|
42469
|
+
:host([data-main-corner="top-left"]) .hero__main {
|
|
42470
|
+
@container (min-width: ${mdMin$10}) {
|
|
42471
|
+
border-top-left-radius: var(--_hero-main-corner-radius);
|
|
42472
|
+
}
|
|
42473
|
+
}
|
|
42474
|
+
|
|
42475
|
+
:host([data-main-corner="top-right"]) .hero__main {
|
|
42476
|
+
@container (min-width: ${mdMin$10}) {
|
|
42477
|
+
border-top-right-radius: var(--_hero-main-corner-radius);
|
|
42478
|
+
}
|
|
42479
|
+
}
|
|
42480
|
+
|
|
42481
|
+
:host([data-main-corner="bottom-left"]) .hero__main {
|
|
42482
|
+
@container (min-width: ${mdMin$10}) {
|
|
42483
|
+
border-bottom-left-radius: var(--_hero-main-corner-radius);
|
|
42484
|
+
}
|
|
42485
|
+
}
|
|
42486
|
+
|
|
42487
|
+
:host([data-main-corner="bottom-right"]) .hero__main {
|
|
42488
|
+
@container (min-width: ${mdMin$10}) {
|
|
42489
|
+
border-bottom-right-radius: var(--_hero-main-corner-radius);
|
|
42490
|
+
}
|
|
42491
|
+
}
|
|
42492
|
+
|
|
42493
|
+
/* ## Without media */
|
|
42494
|
+
|
|
42495
|
+
:host(:not([data-has-media])[data-media-corner="top-left"]) :is(.hero__body, .hero__main) {
|
|
42496
|
+
border-top-left-radius: var(--_hero-corner-radius);
|
|
42497
|
+
}
|
|
42498
|
+
|
|
42499
|
+
:host(:not([data-has-media])[data-media-corner="top-right"]) :is(.hero__body, .hero__main) {
|
|
42500
|
+
border-top-right-radius: var(--_hero-corner-radius);
|
|
42501
|
+
}
|
|
42502
|
+
|
|
42503
|
+
:host(:not([data-has-media])[data-media-corner="bottom-left"]) :is(.hero__body, .hero__main) {
|
|
42504
|
+
border-bottom-left-radius: var(--_hero-corner-radius);
|
|
42505
|
+
}
|
|
42506
|
+
|
|
42507
|
+
:host(:not([data-has-media])[data-media-corner="bottom-right"]) :is(.hero__body, .hero__main) {
|
|
42508
|
+
border-bottom-right-radius: var(--_hero-corner-radius);
|
|
42509
|
+
}
|
|
42510
|
+
|
|
42511
|
+
:host(:not([data-has-media]):is([data-media-corner="top-left"], [data-media-corner="bottom-left"])) .hero__main {
|
|
42512
|
+
padding-left: calc(var(--_hero-main-padding) + var(--_hero-corner-radius) / 2);
|
|
42513
|
+
}
|
|
42514
|
+
|
|
42515
|
+
:host(:not([data-has-media]):is([data-media-corner="top-right"], [data-media-corner="bottom-right"])) .hero__main {
|
|
42516
|
+
padding-right: calc(var(--_hero-main-padding) + var(--_hero-corner-radius) / 2);
|
|
42517
|
+
}
|
|
42518
|
+
`;
|
|
42519
|
+
//#endregion
|
|
42520
|
+
//#region src/components/layout/page-sections/hero/hero-corner.ts
|
|
42521
|
+
var CORNERS = [
|
|
42522
|
+
"top-left",
|
|
42523
|
+
"top-right",
|
|
42524
|
+
"bottom-left",
|
|
42525
|
+
"bottom-right"
|
|
42526
|
+
];
|
|
42527
|
+
var AUTO_MEDIA_CORNER = {
|
|
42528
|
+
"bottom-left": "top-right",
|
|
42529
|
+
"bottom-right": "bottom-left",
|
|
42530
|
+
"top-left": "top-right",
|
|
42531
|
+
"top-right": "top-left",
|
|
42532
|
+
"left": "top-right",
|
|
42533
|
+
"right": "top-left"
|
|
42534
|
+
};
|
|
42535
|
+
var MAIN_CORNER = {
|
|
42536
|
+
"bottom-left": "top-right",
|
|
42537
|
+
"bottom-right": "top-left",
|
|
42538
|
+
"top-left": "bottom-right",
|
|
42539
|
+
"top-right": "bottom-left",
|
|
42540
|
+
"left": null,
|
|
42541
|
+
"right": null
|
|
42542
|
+
};
|
|
42543
|
+
/** The media corners the panel stands on, where a rounded corner would vanish. */
|
|
42544
|
+
function coveredCorners(host, position) {
|
|
42545
|
+
if (position === "left") return ["top-left", "bottom-left"];
|
|
42546
|
+
if (position === "right") return ["top-right", "bottom-right"];
|
|
42547
|
+
if (host.mainWidth !== "full") return [position];
|
|
42548
|
+
const vertical = position.startsWith("top") ? "top" : "bottom";
|
|
42549
|
+
return [`${vertical}-left`, `${vertical}-right`];
|
|
42550
|
+
}
|
|
42551
|
+
function clear(host) {
|
|
42552
|
+
host.removeAttribute("data-media-corner");
|
|
42553
|
+
host.removeAttribute("data-main-corner");
|
|
42554
|
+
}
|
|
42555
|
+
/**
|
|
42556
|
+
* Works out which corners are rounded and writes them onto the host as
|
|
42557
|
+
* `data-media-corner` and `data-main-corner`, which the corner stylesheet
|
|
42558
|
+
* keys off. Without `corner`, or where a corner does not fit the shape
|
|
42559
|
+
* language, both are removed and the hero is rectangular.
|
|
42560
|
+
*/
|
|
42561
|
+
function applyCorner(host) {
|
|
42562
|
+
if (host.corner === null || host.corner === void 0) {
|
|
42563
|
+
clear(host);
|
|
42564
|
+
return;
|
|
42565
|
+
}
|
|
42566
|
+
const center = host.mainPosition === "top-center" || host.mainPosition === "bottom-center";
|
|
42567
|
+
const position = Object.prototype.hasOwnProperty.call(MAIN_CORNER, host.mainPosition) ? host.mainPosition : "bottom-left";
|
|
42568
|
+
if (host._hasMedia && (host.layout !== "contained" || center)) {
|
|
42569
|
+
clear(host);
|
|
42570
|
+
return;
|
|
42571
|
+
}
|
|
42572
|
+
const value = host.corner.trim();
|
|
42573
|
+
const chosen = CORNERS.includes(value) ? value : null;
|
|
42574
|
+
const covered = host._hasMedia ? coveredCorners(host, position) : [];
|
|
42575
|
+
let mediaCorner = chosen ?? AUTO_MEDIA_CORNER[position];
|
|
42576
|
+
if (!chosen && covered.includes(mediaCorner)) {
|
|
42577
|
+
const horizontal = mediaCorner.endsWith("left") ? "left" : "right";
|
|
42578
|
+
mediaCorner = `${mediaCorner.startsWith("top") ? "bottom" : "top"}-${horizontal}`;
|
|
42579
|
+
}
|
|
42580
|
+
const mainCorner = host._hasMedia && host.mainWidth !== "full" ? MAIN_CORNER[position] : null;
|
|
42581
|
+
host.setAttribute("data-media-corner", mediaCorner);
|
|
42582
|
+
if (mainCorner) host.setAttribute("data-main-corner", mainCorner);
|
|
42583
|
+
else host.removeAttribute("data-main-corner");
|
|
42584
|
+
}
|
|
42585
|
+
//#endregion
|
|
42175
42586
|
//#region src/components/layout/page-sections/hero/hero.ts
|
|
42176
42587
|
/**
|
|
42177
42588
|
* Nederlandse Digitale Dienst Hero Component (Lit + TypeScript)
|
|
42178
42589
|
*
|
|
42179
42590
|
* The section that says what a page is for: it names the main goal of what
|
|
42180
42591
|
* you can find there, draws the eye and is the visual welcome. It has a media
|
|
42181
|
-
* area and a text panel (the main) that can stand in eight positions.
|
|
42182
|
-
*
|
|
42183
|
-
* they are, such as a home or a topic
|
|
42184
|
-
* that, a section with a title is enough.
|
|
42592
|
+
* area and a text panel (the main) that can stand in eight positions. The
|
|
42593
|
+
* areas are rectangular; `corner` rounds one corner of each. Use it on pages
|
|
42594
|
+
* where a visitor first has to know where they are, such as a home or a topic
|
|
42595
|
+
* page; where the title already does that, a section with a title is enough.
|
|
42185
42596
|
*
|
|
42186
42597
|
* The image in a hero sets the mood and is never the main content, so the
|
|
42187
42598
|
* panel always stands on it. Over an image the panel keeps a section gap from
|
|
@@ -42220,6 +42631,7 @@ function heroTemplate(component) {
|
|
|
42220
42631
|
* @attr {string} width - Body max-width; 'full' removes the bound (section API)
|
|
42221
42632
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
42222
42633
|
* @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
|
|
42634
|
+
* @attr {string} corner - Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. Applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg. Says so in development when the chosen corner sits under the panel, or with `width="full"`
|
|
42223
42635
|
* @attr {'contained'|'overlap'} layout - How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development
|
|
42224
42636
|
* @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
|
|
42225
42637
|
* or a category color — 'accent' (default) or a Rijkshuisstijl color such as
|
|
@@ -42263,6 +42675,7 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42263
42675
|
constructor(..._args) {
|
|
42264
42676
|
super(..._args);
|
|
42265
42677
|
this.width = "";
|
|
42678
|
+
this.corner = null;
|
|
42266
42679
|
this.layout = "overlap";
|
|
42267
42680
|
this.mainBackground = "accent";
|
|
42268
42681
|
this.mainWidth = "auto";
|
|
@@ -42286,6 +42699,7 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42286
42699
|
willUpdate(changed) {
|
|
42287
42700
|
super.willUpdate(changed);
|
|
42288
42701
|
this.toggleAttribute("data-has-media", this._hasMedia);
|
|
42702
|
+
applyCorner(this);
|
|
42289
42703
|
}
|
|
42290
42704
|
connectedCallback() {
|
|
42291
42705
|
super.connectedCallback();
|
|
@@ -42364,11 +42778,15 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42364
42778
|
render() {
|
|
42365
42779
|
return heroTemplate(this);
|
|
42366
42780
|
}
|
|
42367
|
-
}, _NLDDHero.styles = heroStyles, _NLDDHero);
|
|
42781
|
+
}, _NLDDHero.styles = [heroStyles, heroCornerStyles], _NLDDHero);
|
|
42368
42782
|
__decorate([property({
|
|
42369
42783
|
reflect: true,
|
|
42370
42784
|
converter: reflectNonDefault("")
|
|
42371
42785
|
})], NLDDHero.prototype, "width", void 0);
|
|
42786
|
+
__decorate([property({
|
|
42787
|
+
type: String,
|
|
42788
|
+
reflect: true
|
|
42789
|
+
})], NLDDHero.prototype, "corner", void 0);
|
|
42372
42790
|
__decorate([property({
|
|
42373
42791
|
reflect: true,
|
|
42374
42792
|
converter: reflectNonDefault("overlap")
|
|
@@ -44782,7 +45200,8 @@ var collectionStyles = css`
|
|
|
44782
45200
|
/* # Host */
|
|
44783
45201
|
|
|
44784
45202
|
:host {
|
|
44785
|
-
--_collection-item-width: var(--primitives-area-280);
|
|
45203
|
+
--_collection-item-min-width: var(--primitives-area-280);
|
|
45204
|
+
--_collection-item-max-width: var(--primitives-area-480);
|
|
44786
45205
|
--_collection-focus-ring-z-index: 1;
|
|
44787
45206
|
|
|
44788
45207
|
/* Two sets, because a collection inside a layout-container follows that
|
|
@@ -44825,10 +45244,10 @@ var collectionStyles = css`
|
|
|
44825
45244
|
|
|
44826
45245
|
:host([layout="grid"]) .collection__items,
|
|
44827
45246
|
:host(:not([layout])) .collection__items {
|
|
44828
|
-
/* min(item-width, 100%) clamps the track min to the container width so
|
|
45247
|
+
/* min(item-min-width, 100%) clamps the track min to the container width so
|
|
44829
45248
|
a single column never forces horizontal overflow on narrow screens. */
|
|
44830
45249
|
display: grid;
|
|
44831
|
-
grid-template-columns: repeat(auto-fill, minmax(min(var(--_collection-item-width), 100%), 1fr));
|
|
45250
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--_collection-item-min-width), 100%), 1fr));
|
|
44832
45251
|
}
|
|
44833
45252
|
|
|
44834
45253
|
/* A grid item's automatic minimum is min-content, so one long unbreakable
|
|
@@ -44854,7 +45273,7 @@ var collectionStyles = css`
|
|
|
44854
45273
|
load-more adds to it. */
|
|
44855
45274
|
:host([layout="lanes"]) .collection__items {
|
|
44856
45275
|
display: grid;
|
|
44857
|
-
grid-template-columns: repeat(auto-fill, minmax(min(var(--_collection-item-width), 100%), 1fr));
|
|
45276
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--_collection-item-min-width), 100%), 1fr));
|
|
44858
45277
|
}
|
|
44859
45278
|
|
|
44860
45279
|
:host([layout="lanes"]) .collection__items ::slotted(*) {
|
|
@@ -44899,10 +45318,10 @@ var collectionStyles = css`
|
|
|
44899
45318
|
}
|
|
44900
45319
|
|
|
44901
45320
|
:host([layout="horizontal-scroll"]) .collection__items ::slotted(*) {
|
|
44902
|
-
max-width: 100
|
|
45321
|
+
max-width: min(max(var(--_collection-item-min-width), var(--_collection-item-max-width)), 100%);
|
|
44903
45322
|
flex-grow: 1;
|
|
44904
45323
|
flex-shrink: 0;
|
|
44905
|
-
flex-basis: var(--_collection-item-width);
|
|
45324
|
+
flex-basis: var(--_collection-item-min-width);
|
|
44906
45325
|
scroll-snap-align: start;
|
|
44907
45326
|
}
|
|
44908
45327
|
|
|
@@ -45023,19 +45442,23 @@ var nlddCollectionTranslations = {
|
|
|
45023
45442
|
* Supports grid, stack, lanes and horizontal scroll layouts.
|
|
45024
45443
|
*
|
|
45025
45444
|
* Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS
|
|
45026
|
-
* grid of your own: the collection sets the columns from `item-width` and
|
|
45027
|
-
* available width, and the gap per breakpoint.
|
|
45445
|
+
* grid of your own: the collection sets the columns from `item-min-width` and
|
|
45446
|
+
* the available width, and the gap per breakpoint.
|
|
45028
45447
|
*
|
|
45029
45448
|
* In grid and stack modes, items are paginated via a load-more button. In
|
|
45030
45449
|
* horizontal scroll, the prev/next controls and the edge fade appear only when
|
|
45031
|
-
* the items overflow the container.
|
|
45450
|
+
* the items overflow the container. Use horizontal scroll for items that
|
|
45451
|
+
* together serve one purpose, such as the events of one agenda; it is not a
|
|
45452
|
+
* carousel for unrelated highlights, which the design guidelines advise
|
|
45453
|
+
* against.
|
|
45032
45454
|
* With `lazy-load`, the next items are automatically loaded when
|
|
45033
45455
|
* the load-more button comes into view.
|
|
45034
45456
|
*
|
|
45035
45457
|
* @element nldd-collection
|
|
45036
45458
|
*
|
|
45037
45459
|
* @attr {string} layout - Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid')
|
|
45038
|
-
* @attr {string} item-width -
|
|
45460
|
+
* @attr {string} item-min-width - Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width.
|
|
45461
|
+
* @attr {string} item-max-width - Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it.
|
|
45039
45462
|
* @attr {string} gap - Gap between items, as a step of the spacing scale ('0', '2', '4', '6', '8', '10', '12', '16', '20', '24', '28', '32', '40', '44', '48', '56', '64', '80', '96'). Overrides the responsive default at every breakpoint; unset keeps the default.
|
|
45040
45463
|
* @attr {string} sm-gap - Gap at sm, overriding `gap` there
|
|
45041
45464
|
* @attr {string} md-gap - Gap at md, overriding `gap` there
|
|
@@ -45045,6 +45468,10 @@ var nlddCollectionTranslations = {
|
|
|
45045
45468
|
* @attr {boolean} show-load-more - Show load-more button in grid/stack (default: false)
|
|
45046
45469
|
* @attr {boolean} lazy-load - Automatically load more items when the button becomes visible
|
|
45047
45470
|
*
|
|
45471
|
+
* @migration Items in horizontal scroll stop at 480px (or at `item-min-width` when that is wider) instead of filling the container.
|
|
45472
|
+
* Set `item-max-width="100%"` where one or two items should still fill the row.
|
|
45473
|
+
* @migration The `item-width` attribute has been renamed to `item-min-width`, because it was a minimum in every layout.
|
|
45474
|
+
* Replace `item-width="320px"` with `item-min-width="320px"`.
|
|
45048
45475
|
* @migration The `load-more-label` attribute has been removed.
|
|
45049
45476
|
* Use `translations` property instead: `.translations=${{ 'components.collection.load-more-action': 'Show more' }}`
|
|
45050
45477
|
*
|
|
@@ -45104,6 +45531,12 @@ var _NLDDCollection = class NLDDCollection extends LitElement {
|
|
|
45104
45531
|
super.connectedCallback();
|
|
45105
45532
|
this._visibleCount = this.maxItems;
|
|
45106
45533
|
}
|
|
45534
|
+
static get observedAttributes() {
|
|
45535
|
+
return [...super.observedAttributes, "item-width"];
|
|
45536
|
+
}
|
|
45537
|
+
attributeChangedCallback(name, old, value) {
|
|
45538
|
+
super.attributeChangedCallback(name, old, value);
|
|
45539
|
+
}
|
|
45107
45540
|
disconnectedCallback() {
|
|
45108
45541
|
super.disconnectedCallback();
|
|
45109
45542
|
this._intersectionObserver?.disconnect();
|
|
@@ -45111,9 +45544,13 @@ var _NLDDCollection = class NLDDCollection extends LitElement {
|
|
|
45111
45544
|
}
|
|
45112
45545
|
updated(changedProperties) {
|
|
45113
45546
|
if (changedProperties.has("layout")) this._setupScrollListeners();
|
|
45114
|
-
if (changedProperties.has("
|
|
45115
|
-
if (this.
|
|
45116
|
-
else this.style.removeProperty("--_collection-item-width");
|
|
45547
|
+
if (changedProperties.has("itemMinWidth")) {
|
|
45548
|
+
if (this.itemMinWidth) this.style.setProperty("--_collection-item-min-width", this.itemMinWidth);
|
|
45549
|
+
else this.style.removeProperty("--_collection-item-min-width");
|
|
45550
|
+
}
|
|
45551
|
+
if (changedProperties.has("itemMaxWidth")) {
|
|
45552
|
+
if (this.itemMaxWidth) this.style.setProperty("--_collection-item-max-width", this.itemMaxWidth);
|
|
45553
|
+
else this.style.removeProperty("--_collection-item-max-width");
|
|
45117
45554
|
}
|
|
45118
45555
|
if (changedProperties.has("gap") || changedProperties.has("smGap") || changedProperties.has("mdGap") || changedProperties.has("lgGap")) {
|
|
45119
45556
|
const plain = spacingToValue(this.gap, "nldd-collection", "gap");
|
|
@@ -45208,8 +45645,13 @@ __decorate([property({
|
|
|
45208
45645
|
__decorate([property({
|
|
45209
45646
|
type: String,
|
|
45210
45647
|
reflect: true,
|
|
45211
|
-
attribute: "item-width"
|
|
45212
|
-
})], NLDDCollection.prototype, "
|
|
45648
|
+
attribute: "item-min-width"
|
|
45649
|
+
})], NLDDCollection.prototype, "itemMinWidth", void 0);
|
|
45650
|
+
__decorate([property({
|
|
45651
|
+
type: String,
|
|
45652
|
+
reflect: true,
|
|
45653
|
+
attribute: "item-max-width"
|
|
45654
|
+
})], NLDDCollection.prototype, "itemMaxWidth", void 0);
|
|
45213
45655
|
__decorate([property({
|
|
45214
45656
|
type: String,
|
|
45215
45657
|
reflect: true
|
|
@@ -45440,7 +45882,7 @@ var nlddWindowTranslations = { "components.window.accessible-label": "Venster" }
|
|
|
45440
45882
|
* @attr {boolean} centered - Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides.
|
|
45441
45883
|
* @attr {string} accessible-label - Accessible name (aria-label). Unset, the window takes the text of the nldd-top-title-bar inside it, and without one the i18n default ('Venster'). Each window needs a unique, descriptive name, from either.
|
|
45442
45884
|
* @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
|
|
45443
|
-
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
45885
|
+
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working.
|
|
45444
45886
|
* @attr {boolean} open - Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event.
|
|
45445
45887
|
*
|
|
45446
45888
|
* @slot - Complete window content (e.g. nldd-page)
|
|
@@ -46551,6 +46993,10 @@ var tableStyles = css`
|
|
|
46551
46993
|
padding: var(--primitives-space-16);
|
|
46552
46994
|
}
|
|
46553
46995
|
|
|
46996
|
+
.table__empty-cell slot[hidden] {
|
|
46997
|
+
display: none;
|
|
46998
|
+
}
|
|
46999
|
+
|
|
46554
47000
|
/* Empty state: collapse the column tracks to a single box-wide column so the
|
|
46555
47001
|
message spans the surface instead of the (wider) data columns — otherwise
|
|
46556
47002
|
the empty box scrolls horizontally. */
|
|
@@ -46633,6 +47079,9 @@ function tableTemplate() {
|
|
|
46633
47079
|
role="cell"
|
|
46634
47080
|
>
|
|
46635
47081
|
<slot name="empty"></slot>
|
|
47082
|
+
<slot name="no-results"
|
|
47083
|
+
hidden
|
|
47084
|
+
></slot>
|
|
46636
47085
|
</div>
|
|
46637
47086
|
</div>
|
|
46638
47087
|
`;
|
|
@@ -46688,7 +47137,8 @@ var nlddTableTranslations = { "components.table.accessible-label": "Tabel" };
|
|
|
46688
47137
|
*
|
|
46689
47138
|
* @slot header - One `<nldd-table-row slot="header">` carrying the column headers
|
|
46690
47139
|
* @slot - The body rows (`<nldd-table-row>`)
|
|
46691
|
-
* @slot empty - Shown when
|
|
47140
|
+
* @slot empty - Shown when the table has no body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here.
|
|
47141
|
+
* @slot no-results - Shown when the table has body rows but every one of them is `[hidden]`, which is what consumer-driven filtering leaves behind. A different state from `empty` and a different sentence: say that nothing matches and how to get rows back. Falls back to `[slot="empty"]` when not given.
|
|
46692
47142
|
*
|
|
46693
47143
|
* @element nldd-table-row
|
|
46694
47144
|
*
|
|
@@ -46755,19 +47205,25 @@ var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
|
46755
47205
|
});
|
|
46756
47206
|
this._updateEmpty();
|
|
46757
47207
|
}
|
|
46758
|
-
/** Show the empty-state
|
|
46759
|
-
* excluded)
|
|
46760
|
-
*
|
|
46761
|
-
*
|
|
47208
|
+
/** Show the empty-state row when there are no visible body rows (header
|
|
47209
|
+
* excluded), with the no-results slot when there are rows that are all
|
|
47210
|
+
* hidden and the empty slot otherwise. Toggled imperatively (like the
|
|
47211
|
+
* tabindex affordance) so it doesn't schedule a reactive re-render out of
|
|
47212
|
+
* firstUpdated. The `is-empty` host class drives hiding the header (CSS)
|
|
47213
|
+
* so only the message shows. */
|
|
46762
47214
|
_updateEmpty() {
|
|
46763
47215
|
const empty = this.shadowRoot?.querySelector(".table__empty");
|
|
46764
47216
|
if (!empty) return;
|
|
46765
47217
|
const rows = ((this.shadowRoot?.querySelector("slot:not([name])"))?.assignedElements() ?? []).filter((el) => el.localName === "nldd-table-row");
|
|
46766
47218
|
const isEmpty = rows.length === 0 || rows.every((row) => row.hasAttribute("hidden"));
|
|
47219
|
+
const hasEmpty = !!this.querySelector(":scope > [slot=\"empty\"]");
|
|
47220
|
+
const noResults = isEmpty && rows.length > 0 && !!this.querySelector(":scope > [slot=\"no-results\"]");
|
|
46767
47221
|
empty.toggleAttribute("hidden", !isEmpty);
|
|
47222
|
+
this.shadowRoot?.querySelector("slot[name=\"empty\"]")?.toggleAttribute("hidden", noResults);
|
|
47223
|
+
this.shadowRoot?.querySelector("slot[name=\"no-results\"]")?.toggleAttribute("hidden", !noResults);
|
|
46768
47224
|
this.classList.toggle("is-empty", isEmpty);
|
|
46769
|
-
this.classList.toggle("is-blank", isEmpty && !
|
|
46770
|
-
this._warnSilentEmpty(isEmpty);
|
|
47225
|
+
this.classList.toggle("is-blank", isEmpty && !noResults && !hasEmpty);
|
|
47226
|
+
this._warnSilentEmpty(isEmpty, hasEmpty, rows.length > 0);
|
|
46771
47227
|
}
|
|
46772
47228
|
/**
|
|
46773
47229
|
* A table with no rows and nothing to say about that.
|
|
@@ -46778,7 +47234,7 @@ var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
|
46778
47234
|
* tree either, so the table asks the person building it rather than
|
|
46779
47235
|
* answering for them.
|
|
46780
47236
|
*/
|
|
46781
|
-
_warnSilentEmpty(isEmpty) {}
|
|
47237
|
+
_warnSilentEmpty(isEmpty, hasEmpty, hasRows) {}
|
|
46782
47238
|
/** The track list for the current width: a breakpoint override when set,
|
|
46783
47239
|
* otherwise the base `columns`. */
|
|
46784
47240
|
_activeColumns() {
|
|
@@ -48639,7 +49095,7 @@ function template$4(component) {
|
|
|
48639
49095
|
* @attr {boolean} icon-only - Hide the text visually (always). The text then shows as a tooltip on hover and focus.
|
|
48640
49096
|
* @attr {'icon'|'text'} content-priority - Decides what stays visible in compact mode: 'icon' hides the text, 'text' hides the icon. A bar is compact on a narrow screen and also at 200% zoom on a desktop, so with 'icon' the text is gone there too and shows as a tooltip instead.
|
|
48641
49097
|
* @attr {boolean} compact - Activates content-priority behavior (set by the parent nldd-menu-bar)
|
|
48642
|
-
* @attr {boolean} disabled - Turn interaction off
|
|
49098
|
+
* @attr {boolean} disabled - Turn interaction off. Avoid it where you can; the design guidelines say why.
|
|
48643
49099
|
* @attr {string} accessible-label - Override aria-label
|
|
48644
49100
|
* @attr {string} haspopup - aria-haspopup value (e.g. "menu", "dialog")
|
|
48645
49101
|
* @attr {boolean} open - Whether the linked popover or menu is open
|
|
@@ -48756,6 +49212,14 @@ var _NLDDMenuBarItem = class NLDDMenuBarItem extends LitElement {
|
|
|
48756
49212
|
this._menuToggleHandler = null;
|
|
48757
49213
|
this._menuOpen = false;
|
|
48758
49214
|
}
|
|
49215
|
+
/** How far the indicator stops short of the item's top and bottom, so the
|
|
49216
|
+
* menu can open against the indicator instead of against the item. */
|
|
49217
|
+
_indicatorInset() {
|
|
49218
|
+
const item = this.shadowRoot?.querySelector(".menu-bar-item");
|
|
49219
|
+
if (!item) return 0;
|
|
49220
|
+
const inset = parseFloat(getComputedStyle(item, "::before").top);
|
|
49221
|
+
return Number.isNaN(inset) ? 0 : inset;
|
|
49222
|
+
}
|
|
48759
49223
|
_toggleMenu() {
|
|
48760
49224
|
if (this._pointerdownWhileMenuOpen) {
|
|
48761
49225
|
this._pointerdownWhileMenuOpen = false;
|
|
@@ -48763,6 +49227,7 @@ var _NLDDMenuBarItem = class NLDDMenuBarItem extends LitElement {
|
|
|
48763
49227
|
}
|
|
48764
49228
|
if (!this._menu) return;
|
|
48765
49229
|
this._menu.anchorElement = this;
|
|
49230
|
+
this._menu.anchorOffset = -this._indicatorInset();
|
|
48766
49231
|
if (this._menuOpen) this._menu.hidePopover();
|
|
48767
49232
|
else this._menu.showPopover();
|
|
48768
49233
|
}
|
|
@@ -49300,7 +49765,7 @@ var nlddLinkTranslations = { "components.link.opens-in-new-tab-label": "Opent in
|
|
|
49300
49765
|
* @attr {string} start-icon - Icon before the text
|
|
49301
49766
|
* @attr {string} end-icon - Icon after the text
|
|
49302
49767
|
* @attr {string} accessible-label - Accessible label for screen readers
|
|
49303
|
-
* @attr {boolean} disabled - Disabled state
|
|
49768
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
49304
49769
|
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
|
|
49305
49770
|
* @attr {object} translations - Override translation keys (e.g. the "Opent in nieuw tabblad" announcement); unset keys fall back to Dutch.
|
|
49306
49771
|
*
|
|
@@ -49635,6 +50100,9 @@ var topNavigationBarStyles = css`
|
|
|
49635
50100
|
--_top-navigation-bar-logo-background-color: var(--semantics-brand-ribbon-color);
|
|
49636
50101
|
--_top-navigation-bar-wordmark-content-color: light-dark(var(--primitives-color-reference-lintblauw), var(--primitives-color-neutral-1000));
|
|
49637
50102
|
--_top-navigation-bar-wordmark-max-width: 280px;
|
|
50103
|
+
--_top-navigation-bar-wordmark-title-font: var(--primitives-font-body-sm-semi-bold-flat);
|
|
50104
|
+
--_top-navigation-bar-wordmark-subtitle-font: var(--primitives-font-body-xs-regular-flat);
|
|
50105
|
+
--_top-navigation-bar-wordmark-supporting-text-font: var(--primitives-font-body-xxs-regular-flat);
|
|
49638
50106
|
--_top-navigation-bar-max-width: var(--semantics-page-sections-body-max-width);
|
|
49639
50107
|
--_top-navigation-bar-title-sm-font: var(--primitives-font-display-6-sm);
|
|
49640
50108
|
--_top-navigation-bar-title-md-font: var(--primitives-font-display-5-sm);
|
|
@@ -49892,19 +50360,19 @@ var topNavigationBarStyles = css`
|
|
|
49892
50360
|
|
|
49893
50361
|
.top-navigation-bar__wordmark-title {
|
|
49894
50362
|
margin: 0;
|
|
49895
|
-
font: var(--
|
|
50363
|
+
font: var(--_top-navigation-bar-wordmark-title-font);
|
|
49896
50364
|
text-wrap: balance;
|
|
49897
50365
|
}
|
|
49898
50366
|
|
|
49899
50367
|
.top-navigation-bar__wordmark-subtitle {
|
|
49900
50368
|
margin: 0;
|
|
49901
|
-
font: var(--
|
|
50369
|
+
font: var(--_top-navigation-bar-wordmark-subtitle-font);
|
|
49902
50370
|
text-wrap: balance;
|
|
49903
50371
|
}
|
|
49904
50372
|
|
|
49905
50373
|
.top-navigation-bar__wordmark-supporting-text {
|
|
49906
50374
|
margin: 0;
|
|
49907
|
-
font: var(--
|
|
50375
|
+
font: var(--_top-navigation-bar-wordmark-supporting-text-font);
|
|
49908
50376
|
text-wrap: balance;
|
|
49909
50377
|
}
|
|
49910
50378
|
|
|
@@ -51148,7 +51616,7 @@ var nlddTabBarTranslations = { "components.tab-bar.overflow-action": "Meer tabs"
|
|
|
51148
51616
|
* @attr {string} variant - Visual mode: 'icon-and-text' | 'text' | 'icon'. When unset, the variant is inferred from each item's content. Drives the layout at every size.
|
|
51149
51617
|
* @attr {string} size - Size: 'md' | 'lg' (default: 'md'). 'lg' enlarges the touch target; the per-variant layout is preserved (icon-and-text stacks the icon over the text, text renders large text, icon renders a larger icon-only control).
|
|
51150
51618
|
* @attr {boolean} navigation - Renders a nav landmark instead of tablist; use for href-based items that navigate between routes
|
|
51151
|
-
* @attr {boolean} disabled - Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order
|
|
51619
|
+
* @attr {boolean} disabled - Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order. Avoid it where you can; the design guidelines say why.
|
|
51152
51620
|
* @attr {boolean} centered - Centers the tabs in the container (host fills the row, tabs group in the middle)
|
|
51153
51621
|
* @attr {string} accessible-label - Accessible name for the navigation region; defaults to 'Tabs'
|
|
51154
51622
|
* @attr {object} translations - Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch.
|
|
@@ -53302,7 +53770,7 @@ var nlddPaginationTranslations = {
|
|
|
53302
53770
|
* @element nldd-pagination
|
|
53303
53771
|
* @attr {number} current - Currently active page (1-based)
|
|
53304
53772
|
* @attr {number} total - Total number of pages (recommended max: 200 for compact select performance)
|
|
53305
|
-
* @attr {boolean} disabled - Disabled state
|
|
53773
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
53306
53774
|
* @attr {boolean} centered - Centers the pagination in the container (host fills row, items grouped in the middle)
|
|
53307
53775
|
* @attr {string} href-pattern - URL pattern with a {page} placeholder, renders links instead of buttons
|
|
53308
53776
|
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
@@ -53567,6 +54035,13 @@ function modalDialogTemplate(component) {
|
|
|
53567
54035
|
* A modal window with overlay backdrop, based on the native <dialog> element.
|
|
53568
54036
|
* Internally renders an <nldd-inline-dialog> for the visual structure.
|
|
53569
54037
|
*
|
|
54038
|
+
* Use it only when there is no way back, and give it a real choice: a dialog
|
|
54039
|
+
* with one button offers nothing to decide, so tell the user with an
|
|
54040
|
+
* nldd-notification or an inline message instead. In a destructive dialog the
|
|
54041
|
+
* safe way out comes first, as the primary button. Work that needs the page
|
|
54042
|
+
* as context, such as editing, belongs in an nldd-sheet. The design guidelines
|
|
54043
|
+
* say why. A dialog that opens with one action says so in development.
|
|
54044
|
+
*
|
|
53570
54045
|
* Open and close it with `open`, bound to your state together with the close
|
|
53571
54046
|
* event: the dialog clears `open` itself when the user closes it. show() and
|
|
53572
54047
|
* hide() do the same for code without a binding. Keep the dialog in the DOM
|
|
@@ -53587,7 +54062,7 @@ function modalDialogTemplate(component) {
|
|
|
53587
54062
|
* @slot notifications - Where the notifications area lands while this overlay is open, so a notification is not left inert behind it. Filled by the package; leave it alone.
|
|
53588
54063
|
*
|
|
53589
54064
|
* @fires open - When the dialog is opened
|
|
53590
|
-
* @fires close - When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened.
|
|
54065
|
+
* @fires close - When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened.
|
|
53591
54066
|
*
|
|
53592
54067
|
* @method show() - Opens the modal dialog
|
|
53593
54068
|
* @method hide() - Closes the modal dialog with a closing animation
|
|
@@ -53609,6 +54084,7 @@ var NLDDModalDialog = (_NLDDModalDialog = class NLDDModalDialog extends LitEleme
|
|
|
53609
54084
|
this.open = false;
|
|
53610
54085
|
this._closing = false;
|
|
53611
54086
|
this._cancelPendingOpen = null;
|
|
54087
|
+
this._warnedSingleAction = false;
|
|
53612
54088
|
this._closeFallback = 0;
|
|
53613
54089
|
this._pointerDownOnBackdrop = false;
|
|
53614
54090
|
this._handleDialogPointerDown = (e) => {
|
|
@@ -53652,6 +54128,13 @@ var NLDDModalDialog = (_NLDDModalDialog = class NLDDModalDialog extends LitEleme
|
|
|
53652
54128
|
composed: true
|
|
53653
54129
|
}));
|
|
53654
54130
|
}
|
|
54131
|
+
/** DEV-only: warns once when the dialog opens with a single action. */
|
|
54132
|
+
_checkActions() {
|
|
54133
|
+
if (this._warnedSingleAction) return;
|
|
54134
|
+
if ([...this.children].filter((child) => child.getAttribute("slot") === "actions").length !== 1) return;
|
|
54135
|
+
this._warnedSingleAction = true;
|
|
54136
|
+
console.warn("<nldd-modal-dialog>: The dialog has one action, so there is nothing to choose. Tell the user with an nldd-notification or an inline message instead, or give the dialog a real choice.", this);
|
|
54137
|
+
}
|
|
53655
54138
|
_manageFocus() {
|
|
53656
54139
|
if (focusAutofocusTarget(this)) return;
|
|
53657
54140
|
const dialog = this._dialog;
|