@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
|
@@ -9,10 +9,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
9
9
|
*
|
|
10
10
|
* The section that says what a page is for: it names the main goal of what
|
|
11
11
|
* you can find there, draws the eye and is the visual welcome. It has a media
|
|
12
|
-
* area and a text panel (the main) that can stand in eight positions.
|
|
13
|
-
*
|
|
14
|
-
* they are, such as a home or a topic
|
|
15
|
-
* that, a section with a title is enough.
|
|
12
|
+
* area and a text panel (the main) that can stand in eight positions. The
|
|
13
|
+
* areas are rectangular; `corner` rounds one corner of each. Use it on pages
|
|
14
|
+
* where a visitor first has to know where they are, such as a home or a topic
|
|
15
|
+
* page; where the title already does that, a section with a title is enough.
|
|
16
16
|
*
|
|
17
17
|
* The image in a hero sets the mood and is never the main content, so the
|
|
18
18
|
* panel always stands on it. Over an image the panel keeps a section gap from
|
|
@@ -51,6 +51,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
51
51
|
* @attr {string} width - Body max-width; 'full' removes the bound (section API)
|
|
52
52
|
* @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.
|
|
53
53
|
* @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
|
|
54
|
+
* @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"`
|
|
54
55
|
* @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
|
|
55
56
|
* @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
|
|
56
57
|
* or a category color — 'accent' (default) or a Rijkshuisstijl color such as
|
|
@@ -79,6 +80,8 @@ import { PageSectionMixin } from '../../../../utilities/page-section-mixin.js';
|
|
|
79
80
|
import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
|
|
80
81
|
import { heroStyles } from './hero.styles.js';
|
|
81
82
|
import { heroTemplate } from './hero.template.js';
|
|
83
|
+
import { heroCornerStyles } from './hero-corner.styles.js';
|
|
84
|
+
import { applyCorner } from './hero-corner.js';
|
|
82
85
|
const CSS_WIDE_KEYWORDS = new Set(['inherit', 'initial', 'unset', 'revert', 'revert-layer']);
|
|
83
86
|
/**
|
|
84
87
|
* Whether `property` takes `value` as a value of its own. CSS.supports alone
|
|
@@ -94,6 +97,9 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
|
|
|
94
97
|
super(...arguments);
|
|
95
98
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
96
99
|
this.width = '';
|
|
100
|
+
/** Rounds one corner of the media area and one of the panel. An empty
|
|
101
|
+
* value lets the hero choose the media corner from `main-position`. */
|
|
102
|
+
this.corner = null;
|
|
97
103
|
this.layout = 'overlap';
|
|
98
104
|
this.mainBackground = 'accent';
|
|
99
105
|
this.mainWidth = 'auto';
|
|
@@ -123,8 +129,8 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
|
|
|
123
129
|
}
|
|
124
130
|
willUpdate(changed) {
|
|
125
131
|
super.willUpdate(changed);
|
|
126
|
-
// The stylesheet only keys off whether media is present.
|
|
127
132
|
this.toggleAttribute('data-has-media', this._hasMedia);
|
|
133
|
+
applyCorner(this);
|
|
128
134
|
}
|
|
129
135
|
connectedCallback() {
|
|
130
136
|
super.connectedCallback();
|
|
@@ -250,10 +256,13 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
|
|
|
250
256
|
return heroTemplate(this);
|
|
251
257
|
}
|
|
252
258
|
};
|
|
253
|
-
NLDDHero.styles = heroStyles;
|
|
259
|
+
NLDDHero.styles = [heroStyles, heroCornerStyles];
|
|
254
260
|
__decorate([
|
|
255
261
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
256
262
|
], NLDDHero.prototype, "width", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
property({ type: String, reflect: true })
|
|
265
|
+
], NLDDHero.prototype, "corner", void 0);
|
|
257
266
|
__decorate([
|
|
258
267
|
property({ reflect: true, converter: reflectNonDefault('overlap') })
|
|
259
268
|
], NLDDHero.prototype, "layout", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;AAE7F;;;;;GAKG;AACH,SAAS,UAAU,CAAC,QAAgB,EAAE,KAAa;IAClD,OAAO,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,GAAG,CAAC,QAAQ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AC,EAAE,CAAC;6CAChF;AAMjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;0CACrC;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;6CACrC;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;4CACrC;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;0CACrC;AAGd;IADC,KAAK,EAAE;+CACc;AAnDV,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CA4LpB"}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @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.
|
|
26
26
|
* @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.
|
|
27
27
|
* @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
|
|
28
|
-
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
28
|
+
* @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.
|
|
29
29
|
* @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.
|
|
30
30
|
*
|
|
31
31
|
* @slot - Complete window content (e.g. nldd-page)
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @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.
|
|
26
26
|
* @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.
|
|
27
27
|
* @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
|
|
28
|
-
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
28
|
+
* @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.
|
|
29
29
|
* @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.
|
|
30
30
|
*
|
|
31
31
|
* @slot - Complete window content (e.g. nldd-page)
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
*
|
|
42
42
|
* @slot header - One `<nldd-table-row slot="header">` carrying the column headers
|
|
43
43
|
* @slot - The body rows (`<nldd-table-row>`)
|
|
44
|
-
* @slot empty - Shown when
|
|
44
|
+
* @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.
|
|
45
|
+
* @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.
|
|
45
46
|
*
|
|
46
47
|
* @element nldd-table-row
|
|
47
48
|
*
|
|
@@ -81,10 +82,12 @@ export declare class NLDDTable extends LitElement {
|
|
|
81
82
|
connectedCallback(): void;
|
|
82
83
|
disconnectedCallback(): void;
|
|
83
84
|
firstUpdated(): void;
|
|
84
|
-
/** Show the empty-state
|
|
85
|
-
* excluded)
|
|
86
|
-
*
|
|
87
|
-
*
|
|
85
|
+
/** Show the empty-state row when there are no visible body rows (header
|
|
86
|
+
* excluded), with the no-results slot when there are rows that are all
|
|
87
|
+
* hidden and the empty slot otherwise. Toggled imperatively (like the
|
|
88
|
+
* tabindex affordance) so it doesn't schedule a reactive re-render out of
|
|
89
|
+
* firstUpdated. The `is-empty` host class drives hiding the header (CSS)
|
|
90
|
+
* so only the message shows. */
|
|
88
91
|
private _updateEmpty;
|
|
89
92
|
/**
|
|
90
93
|
* A table with no rows and nothing to say about that.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,OAAO,0DAA0D,CAAC;AAGlE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,CAAC;AAUhD,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,UAAU,EAAE,eAAe,CAAU;IAErC,+DAA+D;IAE/D,OAAO,SAAM;IAEb,8EAA8E;IAE9E,SAAS,SAAM;IAEf,kFAAkF;IAElF,SAAS,SAAM;IAEf,+EAA+E;IAE/E,SAAS,SAAM;IAGf,eAAe,SAAM;IAGrB,YAAY,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAM;IAElD;;;mFAG+E;IAE/E,UAAU,UAAS;IAEnB,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,eAAe,CAAC,CAAiB;IACzC,OAAO,CAAC,aAAa,CAAC,CAAmB;IACzC,yEAAyE;IACzE,OAAO,CAAC,MAAM,CAAK;IAEZ,EAAE,CAAC,GAAG,EAAE,MAAM,qBAAqB,GAAG,MAAM;IAI1C,iBAAiB,IAAI,IAAI;IAsBzB,oBAAoB,IAAI,IAAI;IAQ5B,YAAY,IAAI,IAAI;IAwB7B;;;;;qCAKiC;IACjC,OAAO,CAAC,YAAY;IAmBpB;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,kBAAkB,CAAS;IAEnC;wCACoC;IACpC,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,aAAa;IASrB;;;;;6EAKyE;IACzE,OAAO,CAAC,aAAa;IAiBrB,uEAAuE;IACvE,OAAO,CAAC,UAAU;IAIT,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAgC5C,MAAM;CAGf;AAKD,qBACa,YAAa,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAkB;IAExC;;;0BAGsB;IAEtB,QAAQ,UAAS;IAER,iBAAiB,IAAI,IAAI;IAOzB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMrD,uDAAuD;IACvD,OAAO,KAAK,SAAS,GAEpB;IAED;;;kFAG8E;IAC9E,iBAAiB,IAAI,IAAI;IAUzB,OAAO,CAAC,aAAa;IAsBZ,MAAM;IAIf,OAAO,CAAC,kBAAkB,CAAiC;CAC3D;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;QACxB,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -47,7 +47,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
47
47
|
*
|
|
48
48
|
* @slot header - One `<nldd-table-row slot="header">` carrying the column headers
|
|
49
49
|
* @slot - The body rows (`<nldd-table-row>`)
|
|
50
|
-
* @slot empty - Shown when
|
|
50
|
+
* @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.
|
|
51
|
+
* @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.
|
|
51
52
|
*
|
|
52
53
|
* @element nldd-table-row
|
|
53
54
|
*
|
|
@@ -150,10 +151,12 @@ let NLDDTable = class NLDDTable extends LitElement {
|
|
|
150
151
|
});
|
|
151
152
|
this._updateEmpty();
|
|
152
153
|
}
|
|
153
|
-
/** Show the empty-state
|
|
154
|
-
* excluded)
|
|
155
|
-
*
|
|
156
|
-
*
|
|
154
|
+
/** Show the empty-state row when there are no visible body rows (header
|
|
155
|
+
* excluded), with the no-results slot when there are rows that are all
|
|
156
|
+
* hidden and the empty slot otherwise. Toggled imperatively (like the
|
|
157
|
+
* tabindex affordance) so it doesn't schedule a reactive re-render out of
|
|
158
|
+
* firstUpdated. The `is-empty` host class drives hiding the header (CSS)
|
|
159
|
+
* so only the message shows. */
|
|
157
160
|
_updateEmpty() {
|
|
158
161
|
const empty = this.shadowRoot?.querySelector('.table__empty');
|
|
159
162
|
if (!empty)
|
|
@@ -161,11 +164,15 @@ let NLDDTable = class NLDDTable extends LitElement {
|
|
|
161
164
|
const slot = this.shadowRoot?.querySelector('slot:not([name])');
|
|
162
165
|
const rows = (slot?.assignedElements() ?? []).filter((el) => el.localName === 'nldd-table-row');
|
|
163
166
|
const isEmpty = rows.length === 0 || rows.every((row) => row.hasAttribute('hidden'));
|
|
167
|
+
const hasEmpty = !!this.querySelector(':scope > [slot="empty"]');
|
|
168
|
+
const noResults = isEmpty && rows.length > 0 && !!this.querySelector(':scope > [slot="no-results"]');
|
|
164
169
|
empty.toggleAttribute('hidden', !isEmpty);
|
|
170
|
+
this.shadowRoot?.querySelector('slot[name="empty"]')?.toggleAttribute('hidden', noResults);
|
|
171
|
+
this.shadowRoot?.querySelector('slot[name="no-results"]')?.toggleAttribute('hidden', !noResults);
|
|
165
172
|
this.classList.toggle('is-empty', isEmpty);
|
|
166
173
|
// See nldd-list: no rows and nothing slotted is not a thing on the page.
|
|
167
|
-
this.classList.toggle('is-blank', isEmpty && !
|
|
168
|
-
this._warnSilentEmpty(isEmpty);
|
|
174
|
+
this.classList.toggle('is-blank', isEmpty && !noResults && !hasEmpty);
|
|
175
|
+
this._warnSilentEmpty(isEmpty, hasEmpty, rows.length > 0);
|
|
169
176
|
}
|
|
170
177
|
/**
|
|
171
178
|
* A table with no rows and nothing to say about that.
|
|
@@ -176,12 +183,14 @@ let NLDDTable = class NLDDTable extends LitElement {
|
|
|
176
183
|
* tree either, so the table asks the person building it rather than
|
|
177
184
|
* answering for them.
|
|
178
185
|
*/
|
|
179
|
-
_warnSilentEmpty(isEmpty) {
|
|
186
|
+
_warnSilentEmpty(isEmpty, hasEmpty, hasRows) {
|
|
180
187
|
if (!import.meta.env?.DEV)
|
|
181
188
|
return;
|
|
182
|
-
if (!isEmpty || this._warnedSilentEmpty)
|
|
189
|
+
if (!isEmpty || this._warnedSilentEmpty || hasEmpty)
|
|
183
190
|
return;
|
|
184
|
-
|
|
191
|
+
// Rows that are all hidden are the no-results state, and a slot that covers
|
|
192
|
+
// it answers the question.
|
|
193
|
+
if (hasRows && this.querySelector(':scope > [slot="no-results"]'))
|
|
185
194
|
return;
|
|
186
195
|
this._warnedSilentEmpty = true;
|
|
187
196
|
console.warn('nldd-table: no rows and nothing in [slot="empty"], so the table renders a blank area. '
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAyB,CAAC;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YAC1B,+DAA+D;YAC/D,mBAAmB;YACnB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpC,mEAAmE;YACnE,kEAAkE;YAClE,iEAAiE;YACjE,iEAAiE;YACjE,gDAAgD;YAChD,IAAI,IAAI,CAAC,SAAS,KAAK,WAAW,EAAE,CAAC;gBACpC,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;gBACrC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,aAAa,EAAE,CAAC;oBACnD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBACpC,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAEQ,MAAM;QACd,OAAO,gBAAgB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAClD,CAAC;;AAjEe,mBAAM,GAAG,cAAc,AAAjB,CAAkB;AAOxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AARL,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAqExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBA4FvB,CAAC;AAEF,eAAO,MAAM,cAAc,yBAmD1B,CAAC"}
|
|
@@ -73,6 +73,10 @@ export const tableStyles = css `
|
|
|
73
73
|
padding: var(--primitives-space-16);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
.table__empty-cell slot[hidden] {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
76
80
|
/* Empty state: collapse the column tracks to a single box-wide column so the
|
|
77
81
|
message spans the surface instead of the (wider) data columns — otherwise
|
|
78
82
|
the empty box scrolls horizontally. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;IAc1B,kBAAkB
|
|
1
|
+
{"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;IAc1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ErB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;IAW7B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.template.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"table.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.template.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,yCA+B5B;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,wCAIhE"}
|
|
@@ -9,7 +9,8 @@ export function tableTemplate() {
|
|
|
9
9
|
// role="cell" so the host stays a valid role="table" (an inline-dialog as a
|
|
10
10
|
// direct table child would be invalid ARIA); it's removed from the a11y tree
|
|
11
11
|
// while [hidden]. What an empty table should say is the app's to write, so
|
|
12
|
-
// the slot is empty until a consumer fills it.
|
|
12
|
+
// the slot is empty until a consumer fills it. Rows that are all hidden
|
|
13
|
+
// show the no-results slot instead, when one is given.
|
|
13
14
|
// Starts hidden — the table toggles `hidden` imperatively from _updateEmpty
|
|
14
15
|
// (avoids a reactive re-render scheduled out of firstUpdated).
|
|
15
16
|
return html `
|
|
@@ -23,6 +24,9 @@ export function tableTemplate() {
|
|
|
23
24
|
role="cell"
|
|
24
25
|
>
|
|
25
26
|
<slot name="empty"></slot>
|
|
27
|
+
<slot name="no-results"
|
|
28
|
+
hidden
|
|
29
|
+
></slot>
|
|
26
30
|
</div>
|
|
27
31
|
</div>
|
|
28
32
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,MAAM,UAAU,aAAa;IAC5B,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,6DAA6D;IAC7D,EAAE;IACF,0EAA0E;IAC1E,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E
|
|
1
|
+
{"version":3,"file":"table.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,MAAM,UAAU,aAAa;IAC5B,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,6DAA6D;IAC7D,EAAE;IACF,0EAA0E;IAC1E,4EAA4E;IAC5E,6EAA6E;IAC7E,2EAA2E;IAC3E,wEAAwE;IACxE,uDAAuD;IACvD,4EAA4E;IAC5E,+DAA+D;IAC/D,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;EAgBV,CAAC;AACH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,YAAgC;IAChE,2EAA2E;IAC3E,qEAAqE;IACrE,OAAO,IAAI,CAAA,qBAAqB,YAAY,UAAU,CAAC;AACxD,CAAC"}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @attr {string} start-icon - Icon before the text
|
|
26
26
|
* @attr {string} end-icon - Icon after the text
|
|
27
27
|
* @attr {string} accessible-label - Accessible label for screen readers
|
|
28
|
-
* @attr {boolean} disabled - Disabled state
|
|
28
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
29
29
|
* @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.
|
|
30
30
|
* @attr {object} translations - Override translation keys (e.g. the "Opent in nieuw tabblad" announcement); unset keys fall back to Dutch.
|
|
31
31
|
*
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @attr {string} start-icon - Icon before the text
|
|
26
26
|
* @attr {string} end-icon - Icon after the text
|
|
27
27
|
* @attr {string} accessible-label - Accessible label for screen readers
|
|
28
|
-
* @attr {boolean} disabled - Disabled state
|
|
28
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
29
29
|
* @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.
|
|
30
30
|
* @attr {object} translations - Override translation keys (e.g. the "Opent in nieuw tabblad" announcement); unset keys fall back to Dutch.
|
|
31
31
|
*
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* @attr {boolean} icon-only - Hide the text visually (always). The text then shows as a tooltip on hover and focus.
|
|
17
17
|
* @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.
|
|
18
18
|
* @attr {boolean} compact - Activates content-priority behavior (set by the parent nldd-menu-bar)
|
|
19
|
-
* @attr {boolean} disabled - Turn interaction off
|
|
19
|
+
* @attr {boolean} disabled - Turn interaction off. Avoid it where you can; the design guidelines say why.
|
|
20
20
|
* @attr {string} accessible-label - Override aria-label
|
|
21
21
|
* @attr {string} haspopup - aria-haspopup value (e.g. "menu", "dialog")
|
|
22
22
|
* @attr {boolean} open - Whether the linked popover or menu is open
|
|
@@ -85,6 +85,9 @@ export declare class NLDDMenuBarItem extends LitElement {
|
|
|
85
85
|
private _unwireMenu;
|
|
86
86
|
private _handlePointerdown;
|
|
87
87
|
private _handleClick;
|
|
88
|
+
/** How far the indicator stops short of the item's top and bottom, so the
|
|
89
|
+
* menu can open against the indicator instead of against the item. */
|
|
90
|
+
private _indicatorInset;
|
|
88
91
|
private _toggleMenu;
|
|
89
92
|
render(): import("lit-html").TemplateResult<1>;
|
|
90
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,UAAU,E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,QAAO,IAAI,CAGtB;IAEO,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAO5C,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,kBAAkB,CAIxB;IAEF,OAAO,CAAC,YAAY,CAqBlB;IAIF;2EACuE;IACvE,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,WAAW;IAiBV,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,eAAe,CAAC;KACtC;CACD"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* @attr {boolean} icon-only - Hide the text visually (always). The text then shows as a tooltip on hover and focus.
|
|
17
17
|
* @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.
|
|
18
18
|
* @attr {boolean} compact - Activates content-priority behavior (set by the parent nldd-menu-bar)
|
|
19
|
-
* @attr {boolean} disabled - Turn interaction off
|
|
19
|
+
* @attr {boolean} disabled - Turn interaction off. Avoid it where you can; the design guidelines say why.
|
|
20
20
|
* @attr {string} accessible-label - Override aria-label
|
|
21
21
|
* @attr {string} haspopup - aria-haspopup value (e.g. "menu", "dialog")
|
|
22
22
|
* @attr {boolean} open - Whether the linked popover or menu is open
|
|
@@ -183,6 +183,15 @@ let NLDDMenuBarItem = class NLDDMenuBarItem extends LitElement {
|
|
|
183
183
|
this._menuOpen = false;
|
|
184
184
|
}
|
|
185
185
|
// ## Menu popover
|
|
186
|
+
/** How far the indicator stops short of the item's top and bottom, so the
|
|
187
|
+
* menu can open against the indicator instead of against the item. */
|
|
188
|
+
_indicatorInset() {
|
|
189
|
+
const item = this.shadowRoot?.querySelector('.menu-bar-item');
|
|
190
|
+
if (!item)
|
|
191
|
+
return 0;
|
|
192
|
+
const inset = parseFloat(getComputedStyle(item, '::before').top);
|
|
193
|
+
return Number.isNaN(inset) ? 0 : inset;
|
|
194
|
+
}
|
|
186
195
|
_toggleMenu() {
|
|
187
196
|
if (this._pointerdownWhileMenuOpen) {
|
|
188
197
|
this._pointerdownWhileMenuOpen = false;
|
|
@@ -193,6 +202,7 @@ let NLDDMenuBarItem = class NLDDMenuBarItem extends LitElement {
|
|
|
193
202
|
if (!this._menu)
|
|
194
203
|
return;
|
|
195
204
|
this._menu.anchorElement = this;
|
|
205
|
+
this._menu.anchorOffset = -this._indicatorInset();
|
|
196
206
|
if (this._menuOpen) {
|
|
197
207
|
this._menu.hidePopover();
|
|
198
208
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-bar-item.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAA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EAAE,CAAC;iDAClD;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;wDAChF;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC3B;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;wDACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACb;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAUjB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;6DACa;AAU5C;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;4DAC4B;AA0C3D;IADC,KAAK,EAAE;wDACgB;AAtGZ,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAyN3B"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @element nldd-pagination
|
|
7
7
|
* @attr {number} current - Currently active page (1-based)
|
|
8
8
|
* @attr {number} total - Total number of pages (recommended max: 200 for compact select performance)
|
|
9
|
-
* @attr {boolean} disabled - Disabled state
|
|
9
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
10
10
|
* @attr {boolean} centered - Centers the pagination in the container (host fills row, items grouped in the middle)
|
|
11
11
|
* @attr {string} href-pattern - URL pattern with a {page} placeholder, renders links instead of buttons
|
|
12
12
|
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @element nldd-pagination
|
|
7
7
|
* @attr {number} current - Currently active page (1-based)
|
|
8
8
|
* @attr {number} total - Total number of pages (recommended max: 200 for compact select performance)
|
|
9
|
-
* @attr {boolean} disabled - Disabled state
|
|
9
|
+
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
10
10
|
* @attr {boolean} centered - Centers the pagination in the container (host fills row, items grouped in the middle)
|
|
11
11
|
* @attr {string} href-pattern - URL pattern with a {page} placeholder, renders links instead of buttons
|
|
12
12
|
* @attr {object} translations - Translations; unspecified keys fall back to Dutch
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @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.
|
|
22
22
|
* @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).
|
|
23
23
|
* @attr {boolean} navigation - Renders a nav landmark instead of tablist; use for href-based items that navigate between routes
|
|
24
|
-
* @attr {boolean} disabled - Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order
|
|
24
|
+
* @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.
|
|
25
25
|
* @attr {boolean} centered - Centers the tabs in the container (host fills the row, tabs group in the middle)
|
|
26
26
|
* @attr {string} accessible-label - Accessible name for the navigation region; defaults to 'Tabs'
|
|
27
27
|
* @attr {object} translations - Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch.
|
|
@@ -27,7 +27,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
27
27
|
* @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.
|
|
28
28
|
* @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).
|
|
29
29
|
* @attr {boolean} navigation - Renders a nav landmark instead of tablist; use for href-based items that navigate between routes
|
|
30
|
-
* @attr {boolean} disabled - Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order
|
|
30
|
+
* @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.
|
|
31
31
|
* @attr {boolean} centered - Centers the tabs in the container (host fills the row, tabs group in the middle)
|
|
32
32
|
* @attr {string} accessible-label - Accessible name for the navigation region; defaults to 'Tabs'
|
|
33
33
|
* @attr {object} translations - Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-navigation-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"top-navigation-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sBAAsB,yBAidlC,CAAC"}
|
|
@@ -19,6 +19,9 @@ export const topNavigationBarStyles = css `
|
|
|
19
19
|
--_top-navigation-bar-logo-background-color: var(--semantics-brand-ribbon-color);
|
|
20
20
|
--_top-navigation-bar-wordmark-content-color: light-dark(var(--primitives-color-reference-lintblauw), var(--primitives-color-neutral-1000));
|
|
21
21
|
--_top-navigation-bar-wordmark-max-width: 280px;
|
|
22
|
+
--_top-navigation-bar-wordmark-title-font: var(--primitives-font-body-sm-semi-bold-flat);
|
|
23
|
+
--_top-navigation-bar-wordmark-subtitle-font: var(--primitives-font-body-xs-regular-flat);
|
|
24
|
+
--_top-navigation-bar-wordmark-supporting-text-font: var(--primitives-font-body-xxs-regular-flat);
|
|
22
25
|
--_top-navigation-bar-max-width: var(--semantics-page-sections-body-max-width);
|
|
23
26
|
--_top-navigation-bar-title-sm-font: var(--primitives-font-display-6-sm);
|
|
24
27
|
--_top-navigation-bar-title-md-font: var(--primitives-font-display-5-sm);
|
|
@@ -276,19 +279,19 @@ export const topNavigationBarStyles = css `
|
|
|
276
279
|
|
|
277
280
|
.top-navigation-bar__wordmark-title {
|
|
278
281
|
margin: 0;
|
|
279
|
-
font: var(--
|
|
282
|
+
font: var(--_top-navigation-bar-wordmark-title-font);
|
|
280
283
|
text-wrap: balance;
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
.top-navigation-bar__wordmark-subtitle {
|
|
284
287
|
margin: 0;
|
|
285
|
-
font: var(--
|
|
288
|
+
font: var(--_top-navigation-bar-wordmark-subtitle-font);
|
|
286
289
|
text-wrap: balance;
|
|
287
290
|
}
|
|
288
291
|
|
|
289
292
|
.top-navigation-bar__wordmark-supporting-text {
|
|
290
293
|
margin: 0;
|
|
291
|
-
font: var(--
|
|
294
|
+
font: var(--_top-navigation-bar-wordmark-supporting-text-font);
|
|
292
295
|
text-wrap: balance;
|
|
293
296
|
}
|
|
294
297
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-navigation-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"top-navigation-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;IAsBrC,kBAAkB;;;;;;;;;;;;;;;;;;;2BAmBK,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;2BAaL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiKL,KAAK;;;;;;;;;;;;2BAYL,KAAK;;;;;;;;;;;;;;;;;;;;;;2BAsBL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;;;2BAM/B,KAAK;;;;;;;;;;;;;2BAaL,KAAK;;;;2BAIL,KAAK;;;;;;;;;;;2BAWL,KAAK;;;;;;;;;;;;;;;;;2BAiBL,KAAK;;;;2BAIL,KAAK;;;;2BAIL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoCL,KAAK;;;;;2BAKL,KAAK;;;;;;;;;;;;;2BAaL,KAAK;;;;;2BAKL,KAAK;;;;;;;;;;;;;2BAaL,KAAK;;;;;;;;;;;;2BAYL,KAAK;;;;;;;;;;;;;;;;;;;;CAoB/B,CAAC"}
|
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
* A modal window with overlay backdrop, based on the native <dialog> element.
|
|
5
5
|
* Internally renders an <nldd-inline-dialog> for the visual structure.
|
|
6
6
|
*
|
|
7
|
+
* Use it only when there is no way back, and give it a real choice: a dialog
|
|
8
|
+
* with one button offers nothing to decide, so tell the user with an
|
|
9
|
+
* nldd-notification or an inline message instead. In a destructive dialog the
|
|
10
|
+
* safe way out comes first, as the primary button. Work that needs the page
|
|
11
|
+
* as context, such as editing, belongs in an nldd-sheet. The design guidelines
|
|
12
|
+
* say why. A dialog that opens with one action says so in development.
|
|
13
|
+
*
|
|
7
14
|
* Open and close it with `open`, bound to your state together with the close
|
|
8
15
|
* event: the dialog clears `open` itself when the user closes it. show() and
|
|
9
16
|
* hide() do the same for code without a binding. Keep the dialog in the DOM
|
|
@@ -24,7 +31,7 @@
|
|
|
24
31
|
* @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.
|
|
25
32
|
*
|
|
26
33
|
* @fires open - When the dialog is opened
|
|
27
|
-
* @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.
|
|
34
|
+
* @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.
|
|
28
35
|
*
|
|
29
36
|
* @method show() - Opens the modal dialog
|
|
30
37
|
* @method hide() - Closes the modal dialog with a closing animation
|
|
@@ -48,6 +55,9 @@ export declare class NLDDModalDialog extends LitElement {
|
|
|
48
55
|
/** Cancels a `show()` that is waiting for the first render; null when none is. */
|
|
49
56
|
private _cancelPendingOpen;
|
|
50
57
|
show(): void;
|
|
58
|
+
private _warnedSingleAction;
|
|
59
|
+
/** DEV-only: warns once when the dialog opens with a single action. */
|
|
60
|
+
private _checkActions;
|
|
51
61
|
private _manageFocus;
|
|
52
62
|
hide(): void;
|
|
53
63
|
/** Timer id for the close fallback above. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/modal-dialog/modal-dialog.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"modal-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/modal-dialog/modal-dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAajC,OAAO,KAAK,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAC9G,OAAO,mCAAmC,CAAC;AAE3C,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,OAAO,EAAE,mBAAmB,GAAG,EAAE,CAAM;IAGvC,mBAAmB,EAAE,+BAA+B,GAAG,EAAE,CAAM;IAG/D,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,IAAI,SAAM;IAEV,oFAAoF;IAEpF,eAAe,SAAM;IAGrB,IAAI,UAAS;IAEJ,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAQrD,OAAO,CAAC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