@nldd/design-system 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1201 -172
- package/dist/components/actions/button/button.d.ts +2 -17
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +10 -35
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +2 -1
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +8 -2
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +9 -1
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +11 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +63 -34
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.i18n.d.ts +1 -1
- package/dist/components/actions/split-button/split-button.i18n.js +1 -1
- package/dist/components/actions/split-button/split-button.i18n.js.map +1 -1
- package/dist/components/actions/split-button/split-button.js +116 -76
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +4 -0
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.d.ts +2 -1
- package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +25 -20
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.story-sync.d.ts +13 -0
- package/dist/components/actions/toolbar/toolbar.story-sync.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.story-sync.js +89 -0
- package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -0
- package/dist/components/components.js +1214 -276
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +5 -2
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +2 -0
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +13 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +49 -5
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +9 -0
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/{decorate-CzRe1eif.js → decorate-pEFCObfp.js} +1 -1
- package/dist/components/{defer-focus-DIPAUUJa.js → defer-focus-CkNrCf_g.js} +2 -2
- package/dist/components/{dev-checks-tdnaA2UV.js → dev-checks--aiYe9Pe.js} +85 -4
- package/dist/components/{icon-BPNDyhu9.js → icon-BQjRjtKH.js} +2 -1
- package/dist/components/{icon-button-Dbo_SGor.js → icon-button-CDYZPHYe.js} +93 -12
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +0 -5
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +0 -5
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +9 -9
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +6 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +17 -17
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +3 -2
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +5 -12
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.i18n.d.ts +8 -0
- package/dist/components/inputs/password-field/password-field.i18n.d.ts.map +1 -0
- package/dist/components/inputs/password-field/password-field.i18n.js +7 -0
- package/dist/components/inputs/password-field/password-field.i18n.js.map +1 -0
- package/dist/components/inputs/password-field/password-field.js +10 -23
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.js +2 -2
- package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +0 -5
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +0 -5
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +9 -9
- package/dist/components/inputs/slider/slider.d.ts +19 -4
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +87 -19
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +21 -6
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.template.js +1 -1
- package/dist/components/inputs/slider/slider.template.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +185 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.i18n.d.ts +22 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.i18n.d.ts.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.i18n.js +21 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.i18n.js.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.js +491 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts +3 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +180 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.template.d.ts +6 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.template.d.ts.map +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.template.js +44 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.template.js.map +1 -0
- package/dist/components/inputs/switch/switch.d.ts +0 -5
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +0 -5
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +2 -2
- package/dist/components/{just-in-time-education.i18n-BgCd3s-c.js → just-in-time-education.i18n-S05IOgqk.js} +30 -2
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +11 -3
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +5 -3
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +5 -3
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/task-board/task-board.d.ts +8 -0
- package/dist/components/layout/task-board/task-board.d.ts.map +1 -1
- package/dist/components/layout/task-board/task-board.js +59 -0
- package/dist/components/layout/task-board/task-board.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +0 -6
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +5 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/navigation/link-group/link-group.d.ts +47 -0
- package/dist/components/navigation/link-group/link-group.d.ts.map +1 -0
- package/dist/components/navigation/link-group/link-group.js +81 -0
- package/dist/components/navigation/link-group/link-group.js.map +1 -0
- package/dist/components/navigation/link-group/link-group.styles.d.ts +2 -0
- package/dist/components/navigation/link-group/link-group.styles.d.ts.map +1 -0
- package/dist/components/navigation/link-group/link-group.styles.js +60 -0
- package/dist/components/navigation/link-group/link-group.styles.js.map +1 -0
- package/dist/components/navigation/link-group/link-group.template.d.ts +3 -0
- package/dist/components/navigation/link-group/link-group.template.d.ts.map +1 -0
- package/dist/components/navigation/link-group/link-group.template.js +15 -0
- package/dist/components/navigation/link-group/link-group.template.js.map +1 -0
- 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 +7 -6
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/{nl.generated-D-8UF1iR.js → nl.generated-CUo20aPV.js} +3 -1
- package/dist/components/{visibility-mixin-CNCT26tu.js → visibility-mixin-Ce0goNS6.js} +1 -1
- package/dist/css/variables.css +3 -1
- package/dist/nldd.min.js +1087 -771
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +23 -1
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts +3 -3
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +38 -1
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +23 -1
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +4 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts +3 -3
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +38 -1
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts +3 -3
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +38 -1
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +111 -33
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +90 -3
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/owner-form.d.ts +21 -0
- package/dist/utilities/owner-form.d.ts.map +1 -0
- package/dist/utilities/owner-form.js +39 -0
- package/dist/utilities/owner-form.js.map +1 -0
- package/dist/utilities/popover-target.d.ts +11 -0
- package/dist/utilities/popover-target.d.ts.map +1 -1
- package/dist/utilities/popover-target.js +27 -0
- package/dist/utilities/popover-target.js.map +1 -1
- package/dist/utilities/popup-anchor-controller.d.ts.map +1 -1
- package/dist/utilities/popup-anchor-controller.js +5 -1
- package/dist/utilities/popup-anchor-controller.js.map +1 -1
- package/lint/cli.js +4 -4
- package/lint/data.generated.json +1 -1
- package/package.json +18 -5
package/custom-elements.json
CHANGED
|
@@ -743,7 +743,7 @@
|
|
|
743
743
|
},
|
|
744
744
|
"default": "undefined",
|
|
745
745
|
"fieldName": "popovertarget",
|
|
746
|
-
"description": "ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree."
|
|
746
|
+
"description": "ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`."
|
|
747
747
|
},
|
|
748
748
|
{
|
|
749
749
|
"name": "loading",
|
|
@@ -1461,7 +1461,7 @@
|
|
|
1461
1461
|
},
|
|
1462
1462
|
"default": "undefined",
|
|
1463
1463
|
"fieldName": "popovertarget",
|
|
1464
|
-
"description": "ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element."
|
|
1464
|
+
"description": "ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`."
|
|
1465
1465
|
},
|
|
1466
1466
|
{
|
|
1467
1467
|
"name": "text",
|
|
@@ -3068,7 +3068,7 @@
|
|
|
3068
3068
|
"type": {
|
|
3069
3069
|
"text": "string"
|
|
3070
3070
|
},
|
|
3071
|
-
"description": "ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a
|
|
3071
|
+
"description": "ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead — same positioning, no toggle.",
|
|
3072
3072
|
"name": "anchor",
|
|
3073
3073
|
"default": "''",
|
|
3074
3074
|
"fieldName": "anchor"
|
|
@@ -3183,9 +3183,19 @@
|
|
|
3183
3183
|
"declarations": [
|
|
3184
3184
|
{
|
|
3185
3185
|
"kind": "class",
|
|
3186
|
-
"description": "A split button combines a primary action
|
|
3186
|
+
"description": "A split button combines a primary action with a chevron that opens its alternatives. The main button performs the default action; the chevron opens a menu or popover of variants of that same action. The overlay is required. Put an `nldd-menu` or `nldd-popover` in the `popup` slot, as on nldd-button and nldd-icon-button: ```html <nldd-split-button text=\"Bewaar\"> <nldd-menu slot=\"popup\"> <nldd-menu-item text=\"Opslaan als…\"></nldd-menu-item> </nldd-menu> </nldd-split-button> ``` The split button has no other slots, so an overlay without `slot=\"popup\"` works too. When both hold one, the one in `popup` wins. For an overlay that lives elsewhere, point `popovertarget` at it instead. The chevron is the overlay's invoker: it anchors it, opens and closes it, and takes `aria-expanded` and `aria-haspopup` from it, exactly as an nldd-icon-button with a slotted overlay does. Its accessible name says which action it belongs to (\"Meer opties voor Bewaar\"). The API is narrower than nldd-button on purpose: a split button is an action with variants, so it has no supporting text, no end icon and no link target. Its label always stays on one line, without an ellipsis: keep it short.",
|
|
3187
3187
|
"name": "NLDDSplitButton",
|
|
3188
3188
|
"members": [
|
|
3189
|
+
{
|
|
3190
|
+
"kind": "field",
|
|
3191
|
+
"name": "formAssociated",
|
|
3192
|
+
"type": {
|
|
3193
|
+
"text": "boolean"
|
|
3194
|
+
},
|
|
3195
|
+
"static": true,
|
|
3196
|
+
"default": "true",
|
|
3197
|
+
"description": "Form-associated, so a submit split button finds the form it sits in:\nits action button is in this shadow root and has no form owner."
|
|
3198
|
+
},
|
|
3189
3199
|
{
|
|
3190
3200
|
"kind": "field",
|
|
3191
3201
|
"name": "size",
|
|
@@ -3200,7 +3210,7 @@
|
|
|
3200
3210
|
"kind": "field",
|
|
3201
3211
|
"name": "appearance",
|
|
3202
3212
|
"type": {
|
|
3203
|
-
"text": "
|
|
3213
|
+
"text": "SplitButtonAppearance"
|
|
3204
3214
|
},
|
|
3205
3215
|
"default": "'neutral-tinted'",
|
|
3206
3216
|
"attribute": "appearance",
|
|
@@ -3216,6 +3226,27 @@
|
|
|
3216
3226
|
"attribute": "disabled",
|
|
3217
3227
|
"reflects": true
|
|
3218
3228
|
},
|
|
3229
|
+
{
|
|
3230
|
+
"kind": "field",
|
|
3231
|
+
"name": "loading",
|
|
3232
|
+
"type": {
|
|
3233
|
+
"text": "boolean"
|
|
3234
|
+
},
|
|
3235
|
+
"default": "false",
|
|
3236
|
+
"description": "Loading state of the main action. The chevron stays available.",
|
|
3237
|
+
"attribute": "loading",
|
|
3238
|
+
"reflects": true
|
|
3239
|
+
},
|
|
3240
|
+
{
|
|
3241
|
+
"kind": "field",
|
|
3242
|
+
"name": "loadingText",
|
|
3243
|
+
"type": {
|
|
3244
|
+
"text": "string"
|
|
3245
|
+
},
|
|
3246
|
+
"default": "''",
|
|
3247
|
+
"description": "What the screen reader announces while `loading` is on.",
|
|
3248
|
+
"attribute": "loading-text"
|
|
3249
|
+
},
|
|
3219
3250
|
{
|
|
3220
3251
|
"kind": "field",
|
|
3221
3252
|
"name": "width",
|
|
@@ -3238,6 +3269,63 @@
|
|
|
3238
3269
|
"attribute": "text",
|
|
3239
3270
|
"reflects": true
|
|
3240
3271
|
},
|
|
3272
|
+
{
|
|
3273
|
+
"kind": "field",
|
|
3274
|
+
"name": "icon",
|
|
3275
|
+
"type": {
|
|
3276
|
+
"text": "string"
|
|
3277
|
+
},
|
|
3278
|
+
"default": "''",
|
|
3279
|
+
"description": "Icon name shown before the text on the primary action button.",
|
|
3280
|
+
"attribute": "icon"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
"kind": "field",
|
|
3284
|
+
"name": "type",
|
|
3285
|
+
"type": {
|
|
3286
|
+
"text": "'button' | 'submit' | 'reset'"
|
|
3287
|
+
},
|
|
3288
|
+
"default": "'button'",
|
|
3289
|
+
"description": "What the main action does in a form. Ignored when `href` is set.",
|
|
3290
|
+
"attribute": "type",
|
|
3291
|
+
"reflects": true
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"kind": "field",
|
|
3295
|
+
"name": "href",
|
|
3296
|
+
"type": {
|
|
3297
|
+
"text": "string | undefined"
|
|
3298
|
+
},
|
|
3299
|
+
"description": "Turns the main action into a link.",
|
|
3300
|
+
"attribute": "href"
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"kind": "field",
|
|
3304
|
+
"name": "download",
|
|
3305
|
+
"type": {
|
|
3306
|
+
"text": "string | undefined"
|
|
3307
|
+
},
|
|
3308
|
+
"description": "Saves the file `href` points at instead of opening it.",
|
|
3309
|
+
"attribute": "download"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"kind": "field",
|
|
3313
|
+
"name": "popovertarget",
|
|
3314
|
+
"type": {
|
|
3315
|
+
"text": "string | undefined"
|
|
3316
|
+
},
|
|
3317
|
+
"description": "ID of an overlay elsewhere in this tree that the chevron opens.",
|
|
3318
|
+
"attribute": "popovertarget"
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"kind": "field",
|
|
3322
|
+
"name": "popoverTargetElement",
|
|
3323
|
+
"type": {
|
|
3324
|
+
"text": "Element | null"
|
|
3325
|
+
},
|
|
3326
|
+
"default": "null",
|
|
3327
|
+
"description": "Direct reference to that overlay, for one in another tree."
|
|
3328
|
+
},
|
|
3241
3329
|
{
|
|
3242
3330
|
"kind": "field",
|
|
3243
3331
|
"name": "shortcut",
|
|
@@ -3278,16 +3366,6 @@
|
|
|
3278
3366
|
"attribute": "shortcut-linux",
|
|
3279
3367
|
"reflects": true
|
|
3280
3368
|
},
|
|
3281
|
-
{
|
|
3282
|
-
"kind": "field",
|
|
3283
|
-
"name": "icon",
|
|
3284
|
-
"type": {
|
|
3285
|
-
"text": "string"
|
|
3286
|
-
},
|
|
3287
|
-
"default": "''",
|
|
3288
|
-
"description": "Icon name shown before the text on the primary action button.",
|
|
3289
|
-
"attribute": "icon"
|
|
3290
|
-
},
|
|
3291
3369
|
{
|
|
3292
3370
|
"kind": "field",
|
|
3293
3371
|
"name": "translations",
|
|
@@ -3302,10 +3380,6 @@
|
|
|
3302
3380
|
{
|
|
3303
3381
|
"name": "action-click",
|
|
3304
3382
|
"description": "Fired when the main button is clicked"
|
|
3305
|
-
},
|
|
3306
|
-
{
|
|
3307
|
-
"name": "menu-click",
|
|
3308
|
-
"description": "Fired when the dropdown trigger is clicked and no overlay is slotted"
|
|
3309
3383
|
}
|
|
3310
3384
|
],
|
|
3311
3385
|
"attributes": [
|
|
@@ -3324,11 +3398,14 @@
|
|
|
3324
3398
|
{
|
|
3325
3399
|
"name": "appearance",
|
|
3326
3400
|
"type": {
|
|
3327
|
-
"text": "
|
|
3401
|
+
"text": "SplitButtonAppearance"
|
|
3328
3402
|
},
|
|
3329
3403
|
"default": "'neutral-tinted'",
|
|
3330
3404
|
"fieldName": "appearance",
|
|
3331
|
-
"
|
|
3405
|
+
"expandedType": {
|
|
3406
|
+
"text": "'accent-filled' | 'inherit-filled' | 'inherit-tinted' | 'neutral-base' | 'neutral-tinted' | 'primary' | 'secondary'"
|
|
3407
|
+
},
|
|
3408
|
+
"description": "Visual style: 'neutral-tinted' (default) | 'neutral-base' | 'accent-filled' | 'primary' | 'secondary' | 'inherit-tinted' | 'inherit-filled'. 'primary' is 'accent-filled' and 'secondary' is 'neutral-tinted'. The inherit appearances are for a colored surface. There are no transparent appearances: the split button needs a surface of its own to show it is one control."
|
|
3332
3409
|
},
|
|
3333
3410
|
{
|
|
3334
3411
|
"name": "disabled",
|
|
@@ -3339,6 +3416,24 @@
|
|
|
3339
3416
|
"fieldName": "disabled",
|
|
3340
3417
|
"description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
|
|
3341
3418
|
},
|
|
3419
|
+
{
|
|
3420
|
+
"name": "loading",
|
|
3421
|
+
"type": {
|
|
3422
|
+
"text": "boolean"
|
|
3423
|
+
},
|
|
3424
|
+
"default": "false",
|
|
3425
|
+
"description": "Loading state of the main action, as on nldd-button. The chevron stays available.",
|
|
3426
|
+
"fieldName": "loading"
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
"name": "loading-text",
|
|
3430
|
+
"type": {
|
|
3431
|
+
"text": "string"
|
|
3432
|
+
},
|
|
3433
|
+
"default": "''",
|
|
3434
|
+
"description": "What the screen reader announces while `loading` is on, as on nldd-button.",
|
|
3435
|
+
"fieldName": "loadingText"
|
|
3436
|
+
},
|
|
3342
3437
|
{
|
|
3343
3438
|
"name": "width",
|
|
3344
3439
|
"type": {
|
|
@@ -3357,6 +3452,51 @@
|
|
|
3357
3452
|
"description": "Button text for the primary action",
|
|
3358
3453
|
"fieldName": "text"
|
|
3359
3454
|
},
|
|
3455
|
+
{
|
|
3456
|
+
"name": "icon",
|
|
3457
|
+
"type": {
|
|
3458
|
+
"text": "string"
|
|
3459
|
+
},
|
|
3460
|
+
"default": "''",
|
|
3461
|
+
"description": "Icon name shown before the text on the primary action button",
|
|
3462
|
+
"fieldName": "icon"
|
|
3463
|
+
},
|
|
3464
|
+
{
|
|
3465
|
+
"name": "type",
|
|
3466
|
+
"type": {
|
|
3467
|
+
"text": "'button' | 'submit' | 'reset'"
|
|
3468
|
+
},
|
|
3469
|
+
"default": "'button'",
|
|
3470
|
+
"description": "What the main action does in a form: 'button' (default) | 'submit' | 'reset'. Ignored when `href` is set.",
|
|
3471
|
+
"fieldName": "type",
|
|
3472
|
+
"expandedType": {
|
|
3473
|
+
"text": "'button' | 'reset' | 'submit'"
|
|
3474
|
+
}
|
|
3475
|
+
},
|
|
3476
|
+
{
|
|
3477
|
+
"name": "href",
|
|
3478
|
+
"type": {
|
|
3479
|
+
"text": "string | undefined"
|
|
3480
|
+
},
|
|
3481
|
+
"description": "Turns the main action into a link, as on nldd-button.",
|
|
3482
|
+
"fieldName": "href"
|
|
3483
|
+
},
|
|
3484
|
+
{
|
|
3485
|
+
"name": "download",
|
|
3486
|
+
"type": {
|
|
3487
|
+
"text": "string | undefined"
|
|
3488
|
+
},
|
|
3489
|
+
"description": "Saves the file `href` points at instead of opening it, as on nldd-button. Only used with `href`.",
|
|
3490
|
+
"fieldName": "download"
|
|
3491
|
+
},
|
|
3492
|
+
{
|
|
3493
|
+
"name": "popovertarget",
|
|
3494
|
+
"type": {
|
|
3495
|
+
"text": "string | undefined"
|
|
3496
|
+
},
|
|
3497
|
+
"description": "ID of an `nldd-menu` or `nldd-popover` elsewhere in this tree that the chevron opens, for an overlay that cannot be a child. A slotted overlay wins.",
|
|
3498
|
+
"fieldName": "popovertarget"
|
|
3499
|
+
},
|
|
3360
3500
|
{
|
|
3361
3501
|
"name": "shortcut",
|
|
3362
3502
|
"type": {
|
|
@@ -3393,15 +3533,6 @@
|
|
|
3393
3533
|
"fieldName": "shortcutLinux",
|
|
3394
3534
|
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
3395
3535
|
},
|
|
3396
|
-
{
|
|
3397
|
-
"name": "icon",
|
|
3398
|
-
"type": {
|
|
3399
|
-
"text": "string"
|
|
3400
|
-
},
|
|
3401
|
-
"default": "''",
|
|
3402
|
-
"description": "Icon name shown before the text on the primary action button",
|
|
3403
|
-
"fieldName": "icon"
|
|
3404
|
-
},
|
|
3405
3536
|
{
|
|
3406
3537
|
"name": "translations",
|
|
3407
3538
|
"type": {
|
|
@@ -3410,6 +3541,13 @@
|
|
|
3410
3541
|
"default": "{}",
|
|
3411
3542
|
"fieldName": "translations",
|
|
3412
3543
|
"description": "Translations; unset keys fall back to Dutch"
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
"name": "form",
|
|
3547
|
+
"description": "Id of the form the main action submits or resets, for a split button outside it. Takes an `nldd-form` as well as a plain `<form>`, as on nldd-button.",
|
|
3548
|
+
"type": {
|
|
3549
|
+
"text": "string"
|
|
3550
|
+
}
|
|
3413
3551
|
}
|
|
3414
3552
|
],
|
|
3415
3553
|
"superclass": {
|
|
@@ -3419,9 +3557,13 @@
|
|
|
3419
3557
|
"tagName": "nldd-split-button",
|
|
3420
3558
|
"customElement": true,
|
|
3421
3559
|
"slots": [
|
|
3560
|
+
{
|
|
3561
|
+
"name": "popup",
|
|
3562
|
+
"description": "The `nldd-menu` or `nldd-popover` the chevron opens."
|
|
3563
|
+
},
|
|
3422
3564
|
{
|
|
3423
3565
|
"name": "",
|
|
3424
|
-
"description": "
|
|
3566
|
+
"description": "Fallback for the overlay when it has no `slot=\"popup\"`. Anything that is not an `nldd-menu` or `nldd-popover` does nothing here."
|
|
3425
3567
|
}
|
|
3426
3568
|
]
|
|
3427
3569
|
}
|
|
@@ -4234,6 +4376,31 @@
|
|
|
4234
4376
|
}
|
|
4235
4377
|
]
|
|
4236
4378
|
},
|
|
4379
|
+
{
|
|
4380
|
+
"kind": "javascript-module",
|
|
4381
|
+
"path": "src/components/actions/toolbar/toolbar.story-sync.ts",
|
|
4382
|
+
"declarations": [
|
|
4383
|
+
{
|
|
4384
|
+
"kind": "function",
|
|
4385
|
+
"name": "syncToolbarOverflow",
|
|
4386
|
+
"return": {
|
|
4387
|
+
"type": {
|
|
4388
|
+
"text": "void"
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
],
|
|
4393
|
+
"exports": [
|
|
4394
|
+
{
|
|
4395
|
+
"kind": "js",
|
|
4396
|
+
"name": "syncToolbarOverflow",
|
|
4397
|
+
"declaration": {
|
|
4398
|
+
"name": "syncToolbarOverflow",
|
|
4399
|
+
"module": "src/components/actions/toolbar/toolbar.story-sync.ts"
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
]
|
|
4403
|
+
},
|
|
4237
4404
|
{
|
|
4238
4405
|
"kind": "javascript-module",
|
|
4239
4406
|
"path": "src/components/actions/toolbar/toolbar.ts",
|
|
@@ -7490,7 +7657,7 @@
|
|
|
7490
7657
|
"expandedType": {
|
|
7491
7658
|
"text": "'delay' | 'instant' | 'never'"
|
|
7492
7659
|
},
|
|
7493
|
-
"description": "When the tooltip appears on hover: 'instant' — right away, without a show delay. 'delay' (the default) — after the standard show delay (700ms). 'never' — the tooltip is never shown; hover and focus events are ignored, aria-describedby is suppressed, and a tooltip that is already visible disappears. The hide delay and the touch suppression stay in force under every value. A focus trigger is always instant."
|
|
7660
|
+
"description": "When the tooltip appears on hover: 'instant' — right away, without a show delay or a fade, also on the way out. 'delay' (the default) — after the standard show delay (700ms). 'never' — the tooltip is never shown; hover and focus events are ignored, aria-describedby is suppressed, and a tooltip that is already visible disappears. The hide delay and the touch suppression stay in force under every value. A focus trigger is always instant."
|
|
7494
7661
|
}
|
|
7495
7662
|
],
|
|
7496
7663
|
"superclass": {
|
|
@@ -8683,6 +8850,22 @@
|
|
|
8683
8850
|
"module": "./inputs/segmented-control/segmented-control.js"
|
|
8684
8851
|
}
|
|
8685
8852
|
},
|
|
8853
|
+
{
|
|
8854
|
+
"kind": "js",
|
|
8855
|
+
"name": "NLDDSwatchPicker",
|
|
8856
|
+
"declaration": {
|
|
8857
|
+
"name": "NLDDSwatchPicker",
|
|
8858
|
+
"module": "./inputs/swatch-picker/swatch-picker.js"
|
|
8859
|
+
}
|
|
8860
|
+
},
|
|
8861
|
+
{
|
|
8862
|
+
"kind": "js",
|
|
8863
|
+
"name": "NLDDSwatchPickerItem",
|
|
8864
|
+
"declaration": {
|
|
8865
|
+
"name": "NLDDSwatchPickerItem",
|
|
8866
|
+
"module": "./inputs/swatch-picker/swatch-picker.js"
|
|
8867
|
+
}
|
|
8868
|
+
},
|
|
8686
8869
|
{
|
|
8687
8870
|
"kind": "js",
|
|
8688
8871
|
"name": "NLDDStepper",
|
|
@@ -9147,6 +9330,14 @@
|
|
|
9147
9330
|
"module": "./navigation/link/link.js"
|
|
9148
9331
|
}
|
|
9149
9332
|
},
|
|
9333
|
+
{
|
|
9334
|
+
"kind": "js",
|
|
9335
|
+
"name": "NLDDLinkGroup",
|
|
9336
|
+
"declaration": {
|
|
9337
|
+
"name": "NLDDLinkGroup",
|
|
9338
|
+
"module": "./navigation/link-group/link-group.js"
|
|
9339
|
+
}
|
|
9340
|
+
},
|
|
9150
9341
|
{
|
|
9151
9342
|
"kind": "js",
|
|
9152
9343
|
"name": "NLDDSkipLink",
|
|
@@ -9798,7 +9989,7 @@
|
|
|
9798
9989
|
"declarations": [
|
|
9799
9990
|
{
|
|
9800
9991
|
"kind": "class",
|
|
9801
|
-
"description": "
|
|
9992
|
+
"description": "",
|
|
9802
9993
|
"name": "NLDDCheckbox",
|
|
9803
9994
|
"members": [
|
|
9804
9995
|
{
|
|
@@ -15570,43 +15761,13 @@
|
|
|
15570
15761
|
},
|
|
15571
15762
|
{
|
|
15572
15763
|
"kind": "field",
|
|
15573
|
-
"name": "
|
|
15574
|
-
"type": {
|
|
15575
|
-
"text": "string"
|
|
15576
|
-
},
|
|
15577
|
-
"default": "'Toon'",
|
|
15578
|
-
"description": "Visible button label when the field is masked. Override for localisation.",
|
|
15579
|
-
"attribute": "show-button-text"
|
|
15580
|
-
},
|
|
15581
|
-
{
|
|
15582
|
-
"kind": "field",
|
|
15583
|
-
"name": "hideButtonText",
|
|
15584
|
-
"type": {
|
|
15585
|
-
"text": "string"
|
|
15586
|
-
},
|
|
15587
|
-
"default": "'Verberg'",
|
|
15588
|
-
"description": "Visible button label when the field is unmasked. Override for localisation.",
|
|
15589
|
-
"attribute": "hide-button-text"
|
|
15590
|
-
},
|
|
15591
|
-
{
|
|
15592
|
-
"kind": "field",
|
|
15593
|
-
"name": "showButtonAccessibleLabel",
|
|
15594
|
-
"type": {
|
|
15595
|
-
"text": "string"
|
|
15596
|
-
},
|
|
15597
|
-
"default": "'Toon wachtwoord'",
|
|
15598
|
-
"description": "Accessible aria-label for the toggle button when the field is masked. Override for localisation.",
|
|
15599
|
-
"attribute": "show-button-accessible-label"
|
|
15600
|
-
},
|
|
15601
|
-
{
|
|
15602
|
-
"kind": "field",
|
|
15603
|
-
"name": "hideButtonAccessibleLabel",
|
|
15764
|
+
"name": "translations",
|
|
15604
15765
|
"type": {
|
|
15605
|
-
"text": "
|
|
15766
|
+
"text": "Partial<NLDDPasswordFieldTranslations>"
|
|
15606
15767
|
},
|
|
15607
|
-
"default": "
|
|
15608
|
-
"description": "
|
|
15609
|
-
"attribute": "
|
|
15768
|
+
"default": "{}",
|
|
15769
|
+
"description": "Override one or more translation keys. Unset keys fall back to Dutch.",
|
|
15770
|
+
"attribute": "translations"
|
|
15610
15771
|
},
|
|
15611
15772
|
{
|
|
15612
15773
|
"kind": "field",
|
|
@@ -16023,40 +16184,13 @@
|
|
|
16023
16184
|
"description": "Whether the password is masked (default: true)"
|
|
16024
16185
|
},
|
|
16025
16186
|
{
|
|
16026
|
-
"name": "
|
|
16027
|
-
"type": {
|
|
16028
|
-
"text": "string"
|
|
16029
|
-
},
|
|
16030
|
-
"default": "'Toon'",
|
|
16031
|
-
"description": "Visible toggle button text when masked (default: 'Toon')",
|
|
16032
|
-
"fieldName": "showButtonText"
|
|
16033
|
-
},
|
|
16034
|
-
{
|
|
16035
|
-
"name": "hide-button-text",
|
|
16036
|
-
"type": {
|
|
16037
|
-
"text": "string"
|
|
16038
|
-
},
|
|
16039
|
-
"default": "'Verberg'",
|
|
16040
|
-
"description": "Visible toggle button text when unmasked (default: 'Verberg')",
|
|
16041
|
-
"fieldName": "hideButtonText"
|
|
16042
|
-
},
|
|
16043
|
-
{
|
|
16044
|
-
"name": "show-button-accessible-label",
|
|
16045
|
-
"type": {
|
|
16046
|
-
"text": "string"
|
|
16047
|
-
},
|
|
16048
|
-
"default": "'Toon wachtwoord'",
|
|
16049
|
-
"description": "aria-label for toggle when masked (default: 'Toon wachtwoord')",
|
|
16050
|
-
"fieldName": "showButtonAccessibleLabel"
|
|
16051
|
-
},
|
|
16052
|
-
{
|
|
16053
|
-
"name": "hide-button-accessible-label",
|
|
16187
|
+
"name": "translations",
|
|
16054
16188
|
"type": {
|
|
16055
|
-
"text": "
|
|
16189
|
+
"text": "Partial<NLDDPasswordFieldTranslations>"
|
|
16056
16190
|
},
|
|
16057
|
-
"default": "
|
|
16058
|
-
"description": "
|
|
16059
|
-
"fieldName": "
|
|
16191
|
+
"default": "{}",
|
|
16192
|
+
"description": "Override translation keys; unset keys fall back to Dutch",
|
|
16193
|
+
"fieldName": "translations"
|
|
16060
16194
|
},
|
|
16061
16195
|
{
|
|
16062
16196
|
"name": "readonly",
|
|
@@ -16822,7 +16956,7 @@
|
|
|
16822
16956
|
"declarations": [
|
|
16823
16957
|
{
|
|
16824
16958
|
"kind": "class",
|
|
16825
|
-
"description": "WAI-ARIA: put the buttons of one group in a container with role=\"radiogroup\" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role=\"radiogroup\" aria-labelledby=\"options-label\"> <legend id=\"options-label\">Kies een optie</legend> <nldd-radio-button name=\"options\" value=\"1\" accessible-label=\"Optie 1\"></nldd-radio-button> <nldd-radio-button name=\"options\" value=\"2\" accessible-label=\"Optie 2\"></nldd-radio-button> </fieldset>
|
|
16959
|
+
"description": "WAI-ARIA: put the buttons of one group in a container with role=\"radiogroup\" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role=\"radiogroup\" aria-labelledby=\"options-label\"> <legend id=\"options-label\">Kies een optie</legend> <nldd-radio-button name=\"options\" value=\"1\" accessible-label=\"Optie 1\"></nldd-radio-button> <nldd-radio-button name=\"options\" value=\"2\" accessible-label=\"Optie 2\"></nldd-radio-button> </fieldset>",
|
|
16826
16960
|
"name": "NLDDRadioButton",
|
|
16827
16961
|
"members": [
|
|
16828
16962
|
{
|
|
@@ -18901,7 +19035,7 @@
|
|
|
18901
19035
|
"declarations": [
|
|
18902
19036
|
{
|
|
18903
19037
|
"kind": "class",
|
|
18904
|
-
"description": "A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter (\"a price between …\"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader (\"Prijs, minimum\"), and a press on the track moves the nearer thumb there.
|
|
19038
|
+
"description": "A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter (\"a price between …\"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader (\"Prijs, minimum\"), and a press on the track moves the nearer thumb there. A thumb dragged or moved with an arrow key (also with Shift) past the other one becomes that end of the range, and focus goes with it, so its name still says which end it is. Home, End, Page Up and Page Down stop at the other thumb, so they never turn the range around. Where the thumbs lie on one value, the first move picks one, to the left the start one. The value shows in a tooltip above the thumb while the pointer is over the slider or its icons, while a thumb has keyboard focus and while it or an icon is pressed; with `tooltip-timing=\"never\"` it does not, for a slider whose value already shows elsewhere. Where the two tooltips of a range would overlap, they show as one (\"200 – 1.200\"). `formatValue` turns a number into the text of the tooltip and of what a screen reader hears, such as `(value) => \\`€ ${value}\\``; without it the number is written in the language of the page (`lang`), and in Dutch where none is set. `histogram` draws counts as bars above the track, such as how many results there are at each price, so the range can be chosen with the spread in view. Give one count per bucket: n counts split min to max into n equal buckets of (max - min) / n, the first count for the first bucket. Only the proportions matter (the highest count is the full height), a 0 is an empty bucket, and 20 to 40 buckets read best, whatever the `step`. A bar whose middle lies within the chosen value or range is colored. The bars are decoration for a screen reader: say what they show in the text around it. A larger step than the arrow keys take is a tenth of the range, and at least one `step`: what Page Up and Page Down do, what Shift with an arrow key does (a Mac keyboard has no Page Up), and what a click on `start-icon` or `end-icon` does. The icons stay out of the tab order and out of the accessibility tree, because the keyboard already has those keys. In a range they only explain the ends, since a click could not say which thumb to move. In a form a slider submits its value under `name`; a range submits both ends under it, the start first.",
|
|
18905
19039
|
"name": "NLDDSlider",
|
|
18906
19040
|
"members": [
|
|
18907
19041
|
{
|
|
@@ -19875,66 +20009,745 @@
|
|
|
19875
20009
|
}
|
|
19876
20010
|
}
|
|
19877
20011
|
],
|
|
19878
|
-
"events": [
|
|
19879
|
-
{
|
|
19880
|
-
"name": "change",
|
|
19881
|
-
"description": "When the value changes; detail: { value: number }"
|
|
19882
|
-
}
|
|
19883
|
-
],
|
|
20012
|
+
"events": [
|
|
20013
|
+
{
|
|
20014
|
+
"name": "change",
|
|
20015
|
+
"description": "When the value changes; detail: { value: number }"
|
|
20016
|
+
}
|
|
20017
|
+
],
|
|
20018
|
+
"attributes": [
|
|
20019
|
+
{
|
|
20020
|
+
"name": "value",
|
|
20021
|
+
"type": {
|
|
20022
|
+
"text": "number"
|
|
20023
|
+
},
|
|
20024
|
+
"default": "0",
|
|
20025
|
+
"fieldName": "value",
|
|
20026
|
+
"description": "Current value"
|
|
20027
|
+
},
|
|
20028
|
+
{
|
|
20029
|
+
"name": "min",
|
|
20030
|
+
"type": {
|
|
20031
|
+
"text": "number"
|
|
20032
|
+
},
|
|
20033
|
+
"default": "0",
|
|
20034
|
+
"fieldName": "min",
|
|
20035
|
+
"description": "Minimum value (default: 0)"
|
|
20036
|
+
},
|
|
20037
|
+
{
|
|
20038
|
+
"name": "max",
|
|
20039
|
+
"default": "Infinity",
|
|
20040
|
+
"fieldName": "max",
|
|
20041
|
+
"description": "Maximum value (default: Infinity)"
|
|
20042
|
+
},
|
|
20043
|
+
{
|
|
20044
|
+
"name": "step",
|
|
20045
|
+
"type": {
|
|
20046
|
+
"text": "number"
|
|
20047
|
+
},
|
|
20048
|
+
"default": "1",
|
|
20049
|
+
"fieldName": "step",
|
|
20050
|
+
"description": "Step size (default: 1)"
|
|
20051
|
+
},
|
|
20052
|
+
{
|
|
20053
|
+
"name": "disabled",
|
|
20054
|
+
"type": {
|
|
20055
|
+
"text": "boolean"
|
|
20056
|
+
},
|
|
20057
|
+
"default": "false",
|
|
20058
|
+
"fieldName": "disabled",
|
|
20059
|
+
"description": "Disabled state"
|
|
20060
|
+
},
|
|
20061
|
+
{
|
|
20062
|
+
"name": "size",
|
|
20063
|
+
"type": {
|
|
20064
|
+
"text": "StepperSize"
|
|
20065
|
+
},
|
|
20066
|
+
"default": "'md'",
|
|
20067
|
+
"fieldName": "size",
|
|
20068
|
+
"expandedType": {
|
|
20069
|
+
"text": "'md' | 'sm' | 'xs'"
|
|
20070
|
+
},
|
|
20071
|
+
"description": "Size: 'xs' | 'sm' | 'md' (default: 'md')"
|
|
20072
|
+
},
|
|
20073
|
+
{
|
|
20074
|
+
"name": "name",
|
|
20075
|
+
"type": {
|
|
20076
|
+
"text": "string"
|
|
20077
|
+
},
|
|
20078
|
+
"default": "''",
|
|
20079
|
+
"fieldName": "name",
|
|
20080
|
+
"description": "Name for form submission; the value is submitted under this name"
|
|
20081
|
+
},
|
|
20082
|
+
{
|
|
20083
|
+
"name": "accessible-label",
|
|
20084
|
+
"type": {
|
|
20085
|
+
"text": "string"
|
|
20086
|
+
},
|
|
20087
|
+
"default": "''",
|
|
20088
|
+
"description": "Accessible name for the spinbutton; falls back to a generic label",
|
|
20089
|
+
"fieldName": "accessibleLabel"
|
|
20090
|
+
},
|
|
20091
|
+
{
|
|
20092
|
+
"name": "translations",
|
|
20093
|
+
"type": {
|
|
20094
|
+
"text": "Partial<NLDDStepperTranslations>"
|
|
20095
|
+
},
|
|
20096
|
+
"default": "{}",
|
|
20097
|
+
"description": "Translations; unspecified keys fall back to Dutch",
|
|
20098
|
+
"fieldName": "translations"
|
|
20099
|
+
},
|
|
20100
|
+
{
|
|
20101
|
+
"name": "invalid",
|
|
20102
|
+
"type": {
|
|
20103
|
+
"text": "boolean"
|
|
20104
|
+
},
|
|
20105
|
+
"default": "false",
|
|
20106
|
+
"description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
|
|
20107
|
+
"fieldName": "invalid"
|
|
20108
|
+
}
|
|
20109
|
+
],
|
|
20110
|
+
"mixins": [
|
|
20111
|
+
{
|
|
20112
|
+
"name": "DescribedBy",
|
|
20113
|
+
"module": "/src/utilities/described-by-mixin.js"
|
|
20114
|
+
},
|
|
20115
|
+
{
|
|
20116
|
+
"name": "FormAssociated",
|
|
20117
|
+
"module": "/src/utilities/form-associated-mixin.js"
|
|
20118
|
+
}
|
|
20119
|
+
],
|
|
20120
|
+
"superclass": {
|
|
20121
|
+
"name": "LitElement",
|
|
20122
|
+
"package": "lit"
|
|
20123
|
+
},
|
|
20124
|
+
"tagName": "nldd-stepper",
|
|
20125
|
+
"customElement": true
|
|
20126
|
+
}
|
|
20127
|
+
],
|
|
20128
|
+
"exports": [
|
|
20129
|
+
{
|
|
20130
|
+
"kind": "js",
|
|
20131
|
+
"name": "NLDDStepper",
|
|
20132
|
+
"declaration": {
|
|
20133
|
+
"name": "NLDDStepper",
|
|
20134
|
+
"module": "src/components/inputs/stepper/stepper.ts"
|
|
20135
|
+
}
|
|
20136
|
+
},
|
|
20137
|
+
{
|
|
20138
|
+
"kind": "custom-element-definition",
|
|
20139
|
+
"name": "nldd-stepper",
|
|
20140
|
+
"declaration": {
|
|
20141
|
+
"name": "NLDDStepper",
|
|
20142
|
+
"module": "src/components/inputs/stepper/stepper.ts"
|
|
20143
|
+
}
|
|
20144
|
+
}
|
|
20145
|
+
]
|
|
20146
|
+
},
|
|
20147
|
+
{
|
|
20148
|
+
"kind": "javascript-module",
|
|
20149
|
+
"path": "src/components/inputs/swatch-picker/swatch-picker.ts",
|
|
20150
|
+
"declarations": [
|
|
20151
|
+
{
|
|
20152
|
+
"kind": "class",
|
|
20153
|
+
"description": "",
|
|
20154
|
+
"name": "NLDDSwatchPickerItem",
|
|
20155
|
+
"members": [
|
|
20156
|
+
{
|
|
20157
|
+
"kind": "field",
|
|
20158
|
+
"name": "color",
|
|
20159
|
+
"type": {
|
|
20160
|
+
"text": "SwatchColor | ''"
|
|
20161
|
+
},
|
|
20162
|
+
"default": "''",
|
|
20163
|
+
"attribute": "color",
|
|
20164
|
+
"reflects": true
|
|
20165
|
+
},
|
|
20166
|
+
{
|
|
20167
|
+
"kind": "field",
|
|
20168
|
+
"name": "customColor",
|
|
20169
|
+
"type": {
|
|
20170
|
+
"text": "string"
|
|
20171
|
+
},
|
|
20172
|
+
"default": "''",
|
|
20173
|
+
"attribute": "custom-color",
|
|
20174
|
+
"reflects": true
|
|
20175
|
+
},
|
|
20176
|
+
{
|
|
20177
|
+
"kind": "field",
|
|
20178
|
+
"name": "image",
|
|
20179
|
+
"type": {
|
|
20180
|
+
"text": "string"
|
|
20181
|
+
},
|
|
20182
|
+
"default": "''",
|
|
20183
|
+
"attribute": "image"
|
|
20184
|
+
},
|
|
20185
|
+
{
|
|
20186
|
+
"kind": "field",
|
|
20187
|
+
"name": "imageSrcset",
|
|
20188
|
+
"type": {
|
|
20189
|
+
"text": "string"
|
|
20190
|
+
},
|
|
20191
|
+
"default": "''",
|
|
20192
|
+
"attribute": "image-srcset"
|
|
20193
|
+
},
|
|
20194
|
+
{
|
|
20195
|
+
"kind": "field",
|
|
20196
|
+
"name": "text",
|
|
20197
|
+
"type": {
|
|
20198
|
+
"text": "string"
|
|
20199
|
+
},
|
|
20200
|
+
"default": "''",
|
|
20201
|
+
"attribute": "text",
|
|
20202
|
+
"reflects": true
|
|
20203
|
+
},
|
|
20204
|
+
{
|
|
20205
|
+
"kind": "field",
|
|
20206
|
+
"name": "selected",
|
|
20207
|
+
"type": {
|
|
20208
|
+
"text": "boolean"
|
|
20209
|
+
},
|
|
20210
|
+
"default": "false",
|
|
20211
|
+
"attribute": "selected",
|
|
20212
|
+
"reflects": true
|
|
20213
|
+
},
|
|
20214
|
+
{
|
|
20215
|
+
"kind": "field",
|
|
20216
|
+
"name": "disabled",
|
|
20217
|
+
"type": {
|
|
20218
|
+
"text": "boolean"
|
|
20219
|
+
},
|
|
20220
|
+
"default": "false",
|
|
20221
|
+
"attribute": "disabled",
|
|
20222
|
+
"reflects": true
|
|
20223
|
+
},
|
|
20224
|
+
{
|
|
20225
|
+
"kind": "field",
|
|
20226
|
+
"name": "value",
|
|
20227
|
+
"type": {
|
|
20228
|
+
"text": "string"
|
|
20229
|
+
},
|
|
20230
|
+
"default": "''",
|
|
20231
|
+
"attribute": "value"
|
|
20232
|
+
},
|
|
20233
|
+
{
|
|
20234
|
+
"kind": "field",
|
|
20235
|
+
"name": "size",
|
|
20236
|
+
"type": {
|
|
20237
|
+
"text": "SwatchPickerSize"
|
|
20238
|
+
},
|
|
20239
|
+
"default": "'md'",
|
|
20240
|
+
"description": "Set by nldd-swatch-picker. Not part of the public API.",
|
|
20241
|
+
"attribute": "size",
|
|
20242
|
+
"reflects": true
|
|
20243
|
+
},
|
|
20244
|
+
{
|
|
20245
|
+
"kind": "method",
|
|
20246
|
+
"name": "focus",
|
|
20247
|
+
"return": {
|
|
20248
|
+
"type": {
|
|
20249
|
+
"text": "void"
|
|
20250
|
+
}
|
|
20251
|
+
},
|
|
20252
|
+
"parameters": [
|
|
20253
|
+
{
|
|
20254
|
+
"name": "options",
|
|
20255
|
+
"optional": true,
|
|
20256
|
+
"type": {
|
|
20257
|
+
"text": "FocusOptions"
|
|
20258
|
+
}
|
|
20259
|
+
}
|
|
20260
|
+
]
|
|
20261
|
+
},
|
|
20262
|
+
{
|
|
20263
|
+
"kind": "field",
|
|
20264
|
+
"name": "translations",
|
|
20265
|
+
"type": {
|
|
20266
|
+
"text": "Partial<T>"
|
|
20267
|
+
},
|
|
20268
|
+
"default": "{}",
|
|
20269
|
+
"attribute": "translations",
|
|
20270
|
+
"inheritedFrom": {
|
|
20271
|
+
"name": "withTranslations",
|
|
20272
|
+
"module": "src/utilities/with-translations.ts"
|
|
20273
|
+
}
|
|
20274
|
+
}
|
|
20275
|
+
],
|
|
20276
|
+
"events": [
|
|
20277
|
+
{
|
|
20278
|
+
"name": "item-change",
|
|
20279
|
+
"type": {
|
|
20280
|
+
"text": "CustomEvent"
|
|
20281
|
+
}
|
|
20282
|
+
}
|
|
20283
|
+
],
|
|
20284
|
+
"attributes": [
|
|
20285
|
+
{
|
|
20286
|
+
"name": "color",
|
|
20287
|
+
"type": {
|
|
20288
|
+
"text": "SwatchColor | ''"
|
|
20289
|
+
},
|
|
20290
|
+
"default": "''",
|
|
20291
|
+
"fieldName": "color",
|
|
20292
|
+
"expandedType": {
|
|
20293
|
+
"text": "'' | 'bruin' | 'donkerblauw' | 'donkerbruin' | 'donkergeel' | 'donkergroen' | 'geel' | 'groen' | 'hemelblauw' | 'lichtblauw' | 'lintblauw' | 'mintgroen' | 'mosgroen' | 'oranje' | 'paars' | 'robijnrood' | 'rood' | 'roze' | 'violet'"
|
|
20294
|
+
},
|
|
20295
|
+
"description": "Category color: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. Brings its name along, so `text` is optional."
|
|
20296
|
+
},
|
|
20297
|
+
{
|
|
20298
|
+
"name": "custom-color",
|
|
20299
|
+
"type": {
|
|
20300
|
+
"text": "string"
|
|
20301
|
+
},
|
|
20302
|
+
"default": "''",
|
|
20303
|
+
"fieldName": "customColor",
|
|
20304
|
+
"description": "Any CSS color of your own (e.g. '#7a1f3d' or 'var(--brand-color)'), for a color outside the categories. Needs `text`."
|
|
20305
|
+
},
|
|
20306
|
+
{
|
|
20307
|
+
"name": "image",
|
|
20308
|
+
"type": {
|
|
20309
|
+
"text": "string"
|
|
20310
|
+
},
|
|
20311
|
+
"default": "''",
|
|
20312
|
+
"fieldName": "image",
|
|
20313
|
+
"description": "URL of an image that fills the swatch, for a pattern or a material. Needs `text`."
|
|
20314
|
+
},
|
|
20315
|
+
{
|
|
20316
|
+
"name": "image-srcset",
|
|
20317
|
+
"type": {
|
|
20318
|
+
"text": "string"
|
|
20319
|
+
},
|
|
20320
|
+
"default": "''",
|
|
20321
|
+
"fieldName": "imageSrcset",
|
|
20322
|
+
"description": "Sources of the image at other pixel densities, with x descriptors (e.g. '/oak.jpg 1x, /oak@2x.jpg 2x'). The swatch has a fixed size, so there are no widths to choose from."
|
|
20323
|
+
},
|
|
20324
|
+
{
|
|
20325
|
+
"name": "text",
|
|
20326
|
+
"type": {
|
|
20327
|
+
"text": "string"
|
|
20328
|
+
},
|
|
20329
|
+
"default": "''",
|
|
20330
|
+
"fieldName": "text",
|
|
20331
|
+
"description": "Name of the swatch, for screen readers and the tooltip. Overrides the name of a category `color`."
|
|
20332
|
+
},
|
|
20333
|
+
{
|
|
20334
|
+
"name": "selected",
|
|
20335
|
+
"type": {
|
|
20336
|
+
"text": "boolean"
|
|
20337
|
+
},
|
|
20338
|
+
"default": "false",
|
|
20339
|
+
"fieldName": "selected",
|
|
20340
|
+
"description": "Whether this swatch is chosen (set by the picker)"
|
|
20341
|
+
},
|
|
20342
|
+
{
|
|
20343
|
+
"name": "disabled",
|
|
20344
|
+
"type": {
|
|
20345
|
+
"text": "boolean"
|
|
20346
|
+
},
|
|
20347
|
+
"default": "false",
|
|
20348
|
+
"fieldName": "disabled",
|
|
20349
|
+
"description": "Disabled state"
|
|
20350
|
+
},
|
|
20351
|
+
{
|
|
20352
|
+
"name": "value",
|
|
20353
|
+
"type": {
|
|
20354
|
+
"text": "string"
|
|
20355
|
+
},
|
|
20356
|
+
"default": "''",
|
|
20357
|
+
"fieldName": "value",
|
|
20358
|
+
"description": "Value for this swatch"
|
|
20359
|
+
},
|
|
20360
|
+
{
|
|
20361
|
+
"name": "size",
|
|
20362
|
+
"type": {
|
|
20363
|
+
"text": "SwatchPickerSize"
|
|
20364
|
+
},
|
|
20365
|
+
"default": "'md'",
|
|
20366
|
+
"description": "Swatch size: 'xs' | 'sm' | 'md' (set by the picker, default: 'md')",
|
|
20367
|
+
"fieldName": "size",
|
|
20368
|
+
"expandedType": {
|
|
20369
|
+
"text": "'md' | 'sm' | 'xs'"
|
|
20370
|
+
}
|
|
20371
|
+
},
|
|
20372
|
+
{
|
|
20373
|
+
"name": "translations",
|
|
20374
|
+
"type": {
|
|
20375
|
+
"text": "Partial<T>"
|
|
20376
|
+
},
|
|
20377
|
+
"default": "{}",
|
|
20378
|
+
"fieldName": "translations",
|
|
20379
|
+
"inheritedFrom": {
|
|
20380
|
+
"name": "withTranslations",
|
|
20381
|
+
"module": "src/utilities/with-translations.ts"
|
|
20382
|
+
},
|
|
20383
|
+
"description": "Override translation keys (the names of the category colors); unset keys fall back to Dutch."
|
|
20384
|
+
}
|
|
20385
|
+
],
|
|
20386
|
+
"mixins": [
|
|
20387
|
+
{
|
|
20388
|
+
"name": "withTranslations",
|
|
20389
|
+
"module": "/src/utilities/with-translations.js"
|
|
20390
|
+
}
|
|
20391
|
+
],
|
|
20392
|
+
"superclass": {
|
|
20393
|
+
"name": "LitElement",
|
|
20394
|
+
"package": "lit"
|
|
20395
|
+
},
|
|
20396
|
+
"tagName": "nldd-swatch-picker-item",
|
|
20397
|
+
"customElement": true
|
|
20398
|
+
},
|
|
20399
|
+
{
|
|
20400
|
+
"kind": "class",
|
|
20401
|
+
"description": "A row of swatches to choose one from: a color, or an image of a pattern or a material. The row wraps onto the next line when the swatches do not fit. It is a radio group: Tab enters and leaves it in one stop, the arrow keys choose, and the value goes with a form under `name`. The chosen swatch shows a check mark. Put it in an `nldd-form-field`, which names the group. Every swatch needs a name, since a color or an image says nothing to a screen reader. A swatch with a category `color` takes the name of that color from the translations (\"Rood\"); one with a `custom-color` or an `image` has to say it in `text`. The name shows as a tooltip. Exports both NLDDSwatchPicker and NLDDSwatchPickerItem.",
|
|
20402
|
+
"name": "NLDDSwatchPicker",
|
|
20403
|
+
"members": [
|
|
20404
|
+
{
|
|
20405
|
+
"kind": "field",
|
|
20406
|
+
"name": "isFormInput",
|
|
20407
|
+
"type": {
|
|
20408
|
+
"text": "boolean"
|
|
20409
|
+
},
|
|
20410
|
+
"static": true,
|
|
20411
|
+
"default": "true",
|
|
20412
|
+
"description": "Says this is the control an nldd-form-field is about, so the field can\nfind it, name it and move focus into it. See nldd-form-field."
|
|
20413
|
+
},
|
|
20414
|
+
{
|
|
20415
|
+
"kind": "field",
|
|
20416
|
+
"name": "size",
|
|
20417
|
+
"type": {
|
|
20418
|
+
"text": "SwatchPickerSize"
|
|
20419
|
+
},
|
|
20420
|
+
"default": "'md'",
|
|
20421
|
+
"attribute": "size",
|
|
20422
|
+
"reflects": true
|
|
20423
|
+
},
|
|
20424
|
+
{
|
|
20425
|
+
"kind": "field",
|
|
20426
|
+
"name": "accessibleLabel",
|
|
20427
|
+
"type": {
|
|
20428
|
+
"text": "string"
|
|
20429
|
+
},
|
|
20430
|
+
"default": "''",
|
|
20431
|
+
"attribute": "accessible-label"
|
|
20432
|
+
},
|
|
20433
|
+
{
|
|
20434
|
+
"kind": "field",
|
|
20435
|
+
"name": "accessibleLabeledBy",
|
|
20436
|
+
"type": {
|
|
20437
|
+
"text": "string"
|
|
20438
|
+
},
|
|
20439
|
+
"default": "''",
|
|
20440
|
+
"attribute": "accessible-labeled-by"
|
|
20441
|
+
},
|
|
20442
|
+
{
|
|
20443
|
+
"kind": "field",
|
|
20444
|
+
"name": "invalid",
|
|
20445
|
+
"type": {
|
|
20446
|
+
"text": "boolean"
|
|
20447
|
+
},
|
|
20448
|
+
"default": "false",
|
|
20449
|
+
"description": "Marks the group as invalid. Announced and not drawn, and on the group: a\nred ring around one swatch would say that swatch is wrong, while it is the\nquestion that is unanswered.",
|
|
20450
|
+
"attribute": "invalid",
|
|
20451
|
+
"reflects": true
|
|
20452
|
+
},
|
|
20453
|
+
{
|
|
20454
|
+
"kind": "field",
|
|
20455
|
+
"name": "disabled",
|
|
20456
|
+
"type": {
|
|
20457
|
+
"text": "boolean"
|
|
20458
|
+
},
|
|
20459
|
+
"default": "false",
|
|
20460
|
+
"attribute": "disabled",
|
|
20461
|
+
"reflects": true
|
|
20462
|
+
},
|
|
20463
|
+
{
|
|
20464
|
+
"kind": "field",
|
|
20465
|
+
"name": "name",
|
|
20466
|
+
"type": {
|
|
20467
|
+
"text": "string"
|
|
20468
|
+
},
|
|
20469
|
+
"default": "''",
|
|
20470
|
+
"attribute": "name",
|
|
20471
|
+
"reflects": true
|
|
20472
|
+
},
|
|
20473
|
+
{
|
|
20474
|
+
"kind": "field",
|
|
20475
|
+
"name": "value",
|
|
20476
|
+
"type": {
|
|
20477
|
+
"text": "string"
|
|
20478
|
+
},
|
|
20479
|
+
"default": "''",
|
|
20480
|
+
"attribute": "value",
|
|
20481
|
+
"reflects": true
|
|
20482
|
+
},
|
|
20483
|
+
{
|
|
20484
|
+
"kind": "field",
|
|
20485
|
+
"name": "required",
|
|
20486
|
+
"type": {
|
|
20487
|
+
"text": "boolean"
|
|
20488
|
+
},
|
|
20489
|
+
"default": "false",
|
|
20490
|
+
"description": "Something has to be chosen. Carried by a hidden radio of the group's own,\nchecked as soon as anything is chosen, so the browser writes the message.",
|
|
20491
|
+
"attribute": "required",
|
|
20492
|
+
"reflects": true
|
|
20493
|
+
},
|
|
20494
|
+
{
|
|
20495
|
+
"kind": "method",
|
|
20496
|
+
"name": "formValue",
|
|
20497
|
+
"return": {
|
|
20498
|
+
"type": {
|
|
20499
|
+
"text": "FormValue"
|
|
20500
|
+
}
|
|
20501
|
+
},
|
|
20502
|
+
"description": "The value submitted under `name`; `null` submits nothing. Override.",
|
|
20503
|
+
"inheritedFrom": {
|
|
20504
|
+
"name": "FormAssociated",
|
|
20505
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20506
|
+
}
|
|
20507
|
+
},
|
|
20508
|
+
{
|
|
20509
|
+
"kind": "method",
|
|
20510
|
+
"name": "formResetCallback",
|
|
20511
|
+
"return": {
|
|
20512
|
+
"type": {
|
|
20513
|
+
"text": "void"
|
|
20514
|
+
}
|
|
20515
|
+
}
|
|
20516
|
+
},
|
|
20517
|
+
{
|
|
20518
|
+
"kind": "method",
|
|
20519
|
+
"name": "formStateRestoreCallback",
|
|
20520
|
+
"return": {
|
|
20521
|
+
"type": {
|
|
20522
|
+
"text": "void"
|
|
20523
|
+
}
|
|
20524
|
+
},
|
|
20525
|
+
"parameters": [
|
|
20526
|
+
{
|
|
20527
|
+
"name": "state",
|
|
20528
|
+
"type": {
|
|
20529
|
+
"text": "FormData | string | null"
|
|
20530
|
+
}
|
|
20531
|
+
}
|
|
20532
|
+
]
|
|
20533
|
+
},
|
|
20534
|
+
{
|
|
20535
|
+
"kind": "method",
|
|
20536
|
+
"name": "validationAnchor",
|
|
20537
|
+
"return": {
|
|
20538
|
+
"type": {
|
|
20539
|
+
"text": "HTMLElement | undefined"
|
|
20540
|
+
}
|
|
20541
|
+
},
|
|
20542
|
+
"description": "The group has no focus of its own, so an invalid submit lands where Tab\nwould: on the chosen swatch, or the first one that is enabled.",
|
|
20543
|
+
"inheritedFrom": {
|
|
20544
|
+
"name": "FormAssociated",
|
|
20545
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20546
|
+
}
|
|
20547
|
+
},
|
|
20548
|
+
{
|
|
20549
|
+
"kind": "method",
|
|
20550
|
+
"name": "focus",
|
|
20551
|
+
"return": {
|
|
20552
|
+
"type": {
|
|
20553
|
+
"text": "void"
|
|
20554
|
+
}
|
|
20555
|
+
},
|
|
20556
|
+
"parameters": [
|
|
20557
|
+
{
|
|
20558
|
+
"name": "options",
|
|
20559
|
+
"optional": true,
|
|
20560
|
+
"type": {
|
|
20561
|
+
"text": "FocusOptions"
|
|
20562
|
+
}
|
|
20563
|
+
}
|
|
20564
|
+
],
|
|
20565
|
+
"description": "Focus goes to the chosen swatch, or the first enabled one: where Tab lands."
|
|
20566
|
+
},
|
|
20567
|
+
{
|
|
20568
|
+
"kind": "field",
|
|
20569
|
+
"name": "formAssociated",
|
|
20570
|
+
"type": {
|
|
20571
|
+
"text": "boolean"
|
|
20572
|
+
},
|
|
20573
|
+
"static": true,
|
|
20574
|
+
"default": "true",
|
|
20575
|
+
"inheritedFrom": {
|
|
20576
|
+
"name": "FormAssociated",
|
|
20577
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20578
|
+
}
|
|
20579
|
+
},
|
|
20580
|
+
{
|
|
20581
|
+
"kind": "field",
|
|
20582
|
+
"name": "internals",
|
|
20583
|
+
"readonly": true,
|
|
20584
|
+
"inheritedFrom": {
|
|
20585
|
+
"name": "FormAssociated",
|
|
20586
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20587
|
+
}
|
|
20588
|
+
},
|
|
20589
|
+
{
|
|
20590
|
+
"kind": "method",
|
|
20591
|
+
"name": "formState",
|
|
20592
|
+
"return": {
|
|
20593
|
+
"type": {
|
|
20594
|
+
"text": "FormValue | undefined"
|
|
20595
|
+
}
|
|
20596
|
+
},
|
|
20597
|
+
"description": "Extra state kept for bfcache and state restore, when the submitted\nvalue alone cannot rebuild the control (a combo box submits a code but\nshows a label). Override alongside `formValue()`.",
|
|
20598
|
+
"inheritedFrom": {
|
|
20599
|
+
"name": "FormAssociated",
|
|
20600
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20601
|
+
}
|
|
20602
|
+
},
|
|
20603
|
+
{
|
|
20604
|
+
"kind": "method",
|
|
20605
|
+
"name": "commitFormValue",
|
|
20606
|
+
"return": {
|
|
20607
|
+
"type": {
|
|
20608
|
+
"text": "void"
|
|
20609
|
+
}
|
|
20610
|
+
},
|
|
20611
|
+
"description": "Commit the value now, from the handler that changed it.",
|
|
20612
|
+
"inheritedFrom": {
|
|
20613
|
+
"name": "FormAssociated",
|
|
20614
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20615
|
+
}
|
|
20616
|
+
},
|
|
20617
|
+
{
|
|
20618
|
+
"kind": "method",
|
|
20619
|
+
"name": "validationTarget",
|
|
20620
|
+
"return": {
|
|
20621
|
+
"type": {
|
|
20622
|
+
"text": "HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null"
|
|
20623
|
+
}
|
|
20624
|
+
},
|
|
20625
|
+
"description": "The native control this host speaks for.\n\nThe constraint attributes are handed to a control inside the shadow\nroot, and that control is not a member of the form around the host: the\nform sees the host, the host sees the control, and without something\njoining them a `required` field submits empty. Override when the control\nis not the first one in the shadow root, or return null for a component\nthat has no native control to speak for.",
|
|
20626
|
+
"inheritedFrom": {
|
|
20627
|
+
"name": "FormAssociated",
|
|
20628
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20629
|
+
}
|
|
20630
|
+
},
|
|
20631
|
+
{
|
|
20632
|
+
"kind": "method",
|
|
20633
|
+
"name": "ownValidity",
|
|
20634
|
+
"return": {
|
|
20635
|
+
"type": {
|
|
20636
|
+
"text": "OwnValidity | null"
|
|
20637
|
+
}
|
|
20638
|
+
},
|
|
20639
|
+
"description": "What the component knows is wrong and its native control does not, such\nas typed text that is no date in a text input. Override; null is valid.",
|
|
20640
|
+
"inheritedFrom": {
|
|
20641
|
+
"name": "FormAssociated",
|
|
20642
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20643
|
+
}
|
|
20644
|
+
},
|
|
20645
|
+
{
|
|
20646
|
+
"kind": "method",
|
|
20647
|
+
"name": "setCustomValidity",
|
|
20648
|
+
"return": {
|
|
20649
|
+
"type": {
|
|
20650
|
+
"text": "void"
|
|
20651
|
+
}
|
|
20652
|
+
},
|
|
20653
|
+
"parameters": [
|
|
20654
|
+
{
|
|
20655
|
+
"name": "message",
|
|
20656
|
+
"type": {
|
|
20657
|
+
"text": "string"
|
|
20658
|
+
}
|
|
20659
|
+
}
|
|
20660
|
+
],
|
|
20661
|
+
"description": "A reason the host is invalid that no attribute can express: a server that\nrefused the value, or an nldd-validation-list whose rule it fails. Kept\nbeside the native flags rather than replacing them, because\n`setValidity` writes the whole set at once and the two arrive from\ndifferent places at different times.",
|
|
20662
|
+
"inheritedFrom": {
|
|
20663
|
+
"name": "FormAssociated",
|
|
20664
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20665
|
+
}
|
|
20666
|
+
},
|
|
20667
|
+
{
|
|
20668
|
+
"kind": "method",
|
|
20669
|
+
"name": "commitValidity",
|
|
20670
|
+
"return": {
|
|
20671
|
+
"type": {
|
|
20672
|
+
"text": "void"
|
|
20673
|
+
}
|
|
20674
|
+
},
|
|
20675
|
+
"description": "Hands the control's verdict to the form, as the host's own.\n\nCalled on every render and from `commitFormValue`, so it follows the\nvalue for the same reason and with the same timing.",
|
|
20676
|
+
"inheritedFrom": {
|
|
20677
|
+
"name": "FormAssociated",
|
|
20678
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20679
|
+
}
|
|
20680
|
+
},
|
|
20681
|
+
{
|
|
20682
|
+
"kind": "method",
|
|
20683
|
+
"name": "formDisabledCallback",
|
|
20684
|
+
"return": {
|
|
20685
|
+
"type": {
|
|
20686
|
+
"text": "void"
|
|
20687
|
+
}
|
|
20688
|
+
},
|
|
20689
|
+
"parameters": [
|
|
20690
|
+
{
|
|
20691
|
+
"name": "disabled",
|
|
20692
|
+
"type": {
|
|
20693
|
+
"text": "boolean"
|
|
20694
|
+
}
|
|
20695
|
+
}
|
|
20696
|
+
],
|
|
20697
|
+
"inheritedFrom": {
|
|
20698
|
+
"name": "FormAssociated",
|
|
20699
|
+
"module": "src/utilities/form-associated-mixin.ts"
|
|
20700
|
+
}
|
|
20701
|
+
}
|
|
20702
|
+
],
|
|
19884
20703
|
"attributes": [
|
|
19885
20704
|
{
|
|
19886
|
-
"name": "
|
|
20705
|
+
"name": "size",
|
|
19887
20706
|
"type": {
|
|
19888
|
-
"text": "
|
|
20707
|
+
"text": "SwatchPickerSize"
|
|
19889
20708
|
},
|
|
19890
|
-
"default": "
|
|
19891
|
-
"fieldName": "
|
|
19892
|
-
"
|
|
20709
|
+
"default": "'md'",
|
|
20710
|
+
"fieldName": "size",
|
|
20711
|
+
"expandedType": {
|
|
20712
|
+
"text": "'md' | 'sm' | 'xs'"
|
|
20713
|
+
},
|
|
20714
|
+
"description": "Swatch size, on the control scale: 'xs' (24px) | 'sm' (32px) | 'md' (44px) (default: 'md')"
|
|
19893
20715
|
},
|
|
19894
20716
|
{
|
|
19895
|
-
"name": "
|
|
20717
|
+
"name": "accessible-label",
|
|
19896
20718
|
"type": {
|
|
19897
|
-
"text": "
|
|
20719
|
+
"text": "string"
|
|
19898
20720
|
},
|
|
19899
|
-
"default": "
|
|
19900
|
-
"fieldName": "
|
|
19901
|
-
"description": "
|
|
19902
|
-
},
|
|
19903
|
-
{
|
|
19904
|
-
"name": "max",
|
|
19905
|
-
"default": "Infinity",
|
|
19906
|
-
"fieldName": "max",
|
|
19907
|
-
"description": "Maximum value (default: Infinity)"
|
|
20721
|
+
"default": "''",
|
|
20722
|
+
"fieldName": "accessibleLabel",
|
|
20723
|
+
"description": "Accessible name for the group, set as aria-label. In an nldd-form-field the field names it."
|
|
19908
20724
|
},
|
|
19909
20725
|
{
|
|
19910
|
-
"name": "
|
|
20726
|
+
"name": "accessible-labeled-by",
|
|
19911
20727
|
"type": {
|
|
19912
|
-
"text": "
|
|
20728
|
+
"text": "string"
|
|
19913
20729
|
},
|
|
19914
|
-
"default": "
|
|
19915
|
-
"fieldName": "
|
|
19916
|
-
"description": "
|
|
20730
|
+
"default": "''",
|
|
20731
|
+
"fieldName": "accessibleLabeledBy",
|
|
20732
|
+
"description": "Id of an external label element, set as aria-labelledby on the group"
|
|
19917
20733
|
},
|
|
19918
20734
|
{
|
|
19919
|
-
"name": "
|
|
20735
|
+
"name": "invalid",
|
|
19920
20736
|
"type": {
|
|
19921
20737
|
"text": "boolean"
|
|
19922
20738
|
},
|
|
19923
20739
|
"default": "false",
|
|
19924
|
-
"
|
|
19925
|
-
"
|
|
20740
|
+
"description": "Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it.",
|
|
20741
|
+
"fieldName": "invalid"
|
|
19926
20742
|
},
|
|
19927
20743
|
{
|
|
19928
|
-
"name": "
|
|
20744
|
+
"name": "disabled",
|
|
19929
20745
|
"type": {
|
|
19930
|
-
"text": "
|
|
19931
|
-
},
|
|
19932
|
-
"default": "'md'",
|
|
19933
|
-
"fieldName": "size",
|
|
19934
|
-
"expandedType": {
|
|
19935
|
-
"text": "'md' | 'sm' | 'xs'"
|
|
20746
|
+
"text": "boolean"
|
|
19936
20747
|
},
|
|
19937
|
-
"
|
|
20748
|
+
"default": "false",
|
|
20749
|
+
"fieldName": "disabled",
|
|
20750
|
+
"description": "Disabled state for all swatches"
|
|
19938
20751
|
},
|
|
19939
20752
|
{
|
|
19940
20753
|
"name": "name",
|
|
@@ -19943,41 +20756,28 @@
|
|
|
19943
20756
|
},
|
|
19944
20757
|
"default": "''",
|
|
19945
20758
|
"fieldName": "name",
|
|
19946
|
-
"description": "Name for form submission
|
|
20759
|
+
"description": "Name for form submission"
|
|
19947
20760
|
},
|
|
19948
20761
|
{
|
|
19949
|
-
"name": "
|
|
20762
|
+
"name": "value",
|
|
19950
20763
|
"type": {
|
|
19951
20764
|
"text": "string"
|
|
19952
20765
|
},
|
|
19953
20766
|
"default": "''",
|
|
19954
|
-
"
|
|
19955
|
-
"
|
|
19956
|
-
},
|
|
19957
|
-
{
|
|
19958
|
-
"name": "translations",
|
|
19959
|
-
"type": {
|
|
19960
|
-
"text": "Partial<NLDDStepperTranslations>"
|
|
19961
|
-
},
|
|
19962
|
-
"default": "{}",
|
|
19963
|
-
"description": "Translations; unspecified keys fall back to Dutch",
|
|
19964
|
-
"fieldName": "translations"
|
|
20767
|
+
"fieldName": "value",
|
|
20768
|
+
"description": "Value of the chosen swatch"
|
|
19965
20769
|
},
|
|
19966
20770
|
{
|
|
19967
|
-
"name": "
|
|
20771
|
+
"name": "required",
|
|
19968
20772
|
"type": {
|
|
19969
20773
|
"text": "boolean"
|
|
19970
20774
|
},
|
|
19971
20775
|
"default": "false",
|
|
19972
|
-
"description": "
|
|
19973
|
-
"fieldName": "
|
|
20776
|
+
"description": "Something has to be chosen",
|
|
20777
|
+
"fieldName": "required"
|
|
19974
20778
|
}
|
|
19975
20779
|
],
|
|
19976
20780
|
"mixins": [
|
|
19977
|
-
{
|
|
19978
|
-
"name": "DescribedBy",
|
|
19979
|
-
"module": "/src/utilities/described-by-mixin.js"
|
|
19980
|
-
},
|
|
19981
20781
|
{
|
|
19982
20782
|
"name": "FormAssociated",
|
|
19983
20783
|
"module": "/src/utilities/form-associated-mixin.js"
|
|
@@ -19987,25 +20787,53 @@
|
|
|
19987
20787
|
"name": "LitElement",
|
|
19988
20788
|
"package": "lit"
|
|
19989
20789
|
},
|
|
19990
|
-
"tagName": "nldd-
|
|
19991
|
-
"customElement": true
|
|
20790
|
+
"tagName": "nldd-swatch-picker",
|
|
20791
|
+
"customElement": true,
|
|
20792
|
+
"events": [
|
|
20793
|
+
{
|
|
20794
|
+
"name": "change",
|
|
20795
|
+
"description": "When the choice changes; detail: { value: string }"
|
|
20796
|
+
}
|
|
20797
|
+
],
|
|
20798
|
+
"slots": [
|
|
20799
|
+
{
|
|
20800
|
+
"name": "",
|
|
20801
|
+
"description": "nldd-swatch-picker-item elements"
|
|
20802
|
+
}
|
|
20803
|
+
]
|
|
19992
20804
|
}
|
|
19993
20805
|
],
|
|
19994
20806
|
"exports": [
|
|
19995
20807
|
{
|
|
19996
20808
|
"kind": "js",
|
|
19997
|
-
"name": "
|
|
20809
|
+
"name": "NLDDSwatchPickerItem",
|
|
19998
20810
|
"declaration": {
|
|
19999
|
-
"name": "
|
|
20000
|
-
"module": "src/components/inputs/
|
|
20811
|
+
"name": "NLDDSwatchPickerItem",
|
|
20812
|
+
"module": "src/components/inputs/swatch-picker/swatch-picker.ts"
|
|
20001
20813
|
}
|
|
20002
20814
|
},
|
|
20003
20815
|
{
|
|
20004
20816
|
"kind": "custom-element-definition",
|
|
20005
|
-
"name": "nldd-
|
|
20817
|
+
"name": "nldd-swatch-picker-item",
|
|
20006
20818
|
"declaration": {
|
|
20007
|
-
"name": "
|
|
20008
|
-
"module": "src/components/inputs/
|
|
20819
|
+
"name": "NLDDSwatchPickerItem",
|
|
20820
|
+
"module": "src/components/inputs/swatch-picker/swatch-picker.ts"
|
|
20821
|
+
}
|
|
20822
|
+
},
|
|
20823
|
+
{
|
|
20824
|
+
"kind": "js",
|
|
20825
|
+
"name": "NLDDSwatchPicker",
|
|
20826
|
+
"declaration": {
|
|
20827
|
+
"name": "NLDDSwatchPicker",
|
|
20828
|
+
"module": "src/components/inputs/swatch-picker/swatch-picker.ts"
|
|
20829
|
+
}
|
|
20830
|
+
},
|
|
20831
|
+
{
|
|
20832
|
+
"kind": "custom-element-definition",
|
|
20833
|
+
"name": "nldd-swatch-picker",
|
|
20834
|
+
"declaration": {
|
|
20835
|
+
"name": "NLDDSwatchPicker",
|
|
20836
|
+
"module": "src/components/inputs/swatch-picker/swatch-picker.ts"
|
|
20009
20837
|
}
|
|
20010
20838
|
}
|
|
20011
20839
|
]
|
|
@@ -20277,7 +21105,7 @@
|
|
|
20277
21105
|
"declarations": [
|
|
20278
21106
|
{
|
|
20279
21107
|
"kind": "class",
|
|
20280
|
-
"description": "A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility.
|
|
21108
|
+
"description": "A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility.",
|
|
20281
21109
|
"name": "NLDDSwitch",
|
|
20282
21110
|
"members": [
|
|
20283
21111
|
{
|
|
@@ -34312,7 +35140,7 @@
|
|
|
34312
35140
|
"declarations": [
|
|
34313
35141
|
{
|
|
34314
35142
|
"kind": "class",
|
|
34315
|
-
"description": "A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover=\"auto\") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle
|
|
35143
|
+
"description": "A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover=\"auto\") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment also positions the popover against itself, so the popover needs no `anchor`: <nldd-button popovertarget=\"info-popover\">Info</nldd-button> <nldd-popover id=\"info-popover\" accessible-label=\"Info\"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On md and up the popover closes with Escape or a click outside it, and that click goes on to what it lands on, as with any native popover: the page has no backdrop and stays in use, so a click on another control does what it says in one go. It needs no close button of its own. Content that does, because a stray click must not close it (a form, a few steps, work you would lose), is more than a popover holds: use an nldd-sheet. nldd-just-in-time-education is the exception, a manual popover that stays until it is dismissed. On sm the popover is a bottom sheet with a dimmed backdrop, which closes with Escape or a tap outside it. That tap stops at the backdrop, as on every native sheet: the dimming says the page is out of play. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself.",
|
|
34316
35144
|
"name": "NLDDPopover",
|
|
34317
35145
|
"members": [
|
|
34318
35146
|
{
|
|
@@ -38712,7 +39540,7 @@
|
|
|
38712
39540
|
"type": {
|
|
38713
39541
|
"text": "string | undefined"
|
|
38714
39542
|
},
|
|
38715
|
-
"description": "ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button.",
|
|
39543
|
+
"description": "ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`.",
|
|
38716
39544
|
"name": "popovertarget",
|
|
38717
39545
|
"fieldName": "popovertarget"
|
|
38718
39546
|
},
|
|
@@ -39147,7 +39975,7 @@
|
|
|
39147
39975
|
"type": {
|
|
39148
39976
|
"text": "boolean"
|
|
39149
39977
|
},
|
|
39150
|
-
"description": "Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it.
|
|
39978
|
+
"description": "Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`.",
|
|
39151
39979
|
"name": "selected",
|
|
39152
39980
|
"default": "false",
|
|
39153
39981
|
"fieldName": "selected"
|
|
@@ -40241,6 +41069,135 @@
|
|
|
40241
41069
|
}
|
|
40242
41070
|
]
|
|
40243
41071
|
},
|
|
41072
|
+
{
|
|
41073
|
+
"kind": "javascript-module",
|
|
41074
|
+
"path": "src/components/navigation/link-group/link-group.ts",
|
|
41075
|
+
"declarations": [
|
|
41076
|
+
{
|
|
41077
|
+
"kind": "class",
|
|
41078
|
+
"description": "A set of related `nldd-link` elements, such as the links under the name of a service in a footer or the links to the other parts of a site. The links sit in a row that wraps onto the next line when they do not fit, or stacked with `orientation=\"vertical\"`. With `horizontal-alignment=\"center\"` the whole set is centered, line by line, so a short list reads as one cloud in the middle. The group is a `nav` landmark with the links as a list, so a screen reader says how many there are. Give it an `accessible-label` as soon as a page has more than one `nav`, so each landmark can be told apart. The group sets its `size` on every link in it: links in one group are the same size.",
|
|
41079
|
+
"name": "NLDDLinkGroup",
|
|
41080
|
+
"members": [
|
|
41081
|
+
{
|
|
41082
|
+
"kind": "field",
|
|
41083
|
+
"name": "size",
|
|
41084
|
+
"type": {
|
|
41085
|
+
"text": "Size"
|
|
41086
|
+
},
|
|
41087
|
+
"default": "'md'",
|
|
41088
|
+
"attribute": "size",
|
|
41089
|
+
"reflects": true
|
|
41090
|
+
},
|
|
41091
|
+
{
|
|
41092
|
+
"kind": "field",
|
|
41093
|
+
"name": "orientation",
|
|
41094
|
+
"type": {
|
|
41095
|
+
"text": "Orientation"
|
|
41096
|
+
},
|
|
41097
|
+
"default": "'horizontal'",
|
|
41098
|
+
"attribute": "orientation",
|
|
41099
|
+
"reflects": true
|
|
41100
|
+
},
|
|
41101
|
+
{
|
|
41102
|
+
"kind": "field",
|
|
41103
|
+
"name": "horizontalAlignment",
|
|
41104
|
+
"type": {
|
|
41105
|
+
"text": "HorizontalAlignment"
|
|
41106
|
+
},
|
|
41107
|
+
"default": "'left'",
|
|
41108
|
+
"attribute": "horizontal-alignment",
|
|
41109
|
+
"reflects": true
|
|
41110
|
+
},
|
|
41111
|
+
{
|
|
41112
|
+
"kind": "field",
|
|
41113
|
+
"name": "accessibleLabel",
|
|
41114
|
+
"type": {
|
|
41115
|
+
"text": "string"
|
|
41116
|
+
},
|
|
41117
|
+
"default": "''",
|
|
41118
|
+
"attribute": "accessible-label"
|
|
41119
|
+
}
|
|
41120
|
+
],
|
|
41121
|
+
"attributes": [
|
|
41122
|
+
{
|
|
41123
|
+
"name": "size",
|
|
41124
|
+
"type": {
|
|
41125
|
+
"text": "Size"
|
|
41126
|
+
},
|
|
41127
|
+
"default": "'md'",
|
|
41128
|
+
"fieldName": "size",
|
|
41129
|
+
"expandedType": {
|
|
41130
|
+
"text": "'lg' | 'md' | 'sm' | 'xs'"
|
|
41131
|
+
},
|
|
41132
|
+
"description": "Text size, set on every link in it: 'xs' | 'sm' | 'md' | 'lg' (default: 'md')"
|
|
41133
|
+
},
|
|
41134
|
+
{
|
|
41135
|
+
"name": "orientation",
|
|
41136
|
+
"type": {
|
|
41137
|
+
"text": "Orientation"
|
|
41138
|
+
},
|
|
41139
|
+
"default": "'horizontal'",
|
|
41140
|
+
"fieldName": "orientation",
|
|
41141
|
+
"expandedType": {
|
|
41142
|
+
"text": "'horizontal' | 'vertical'"
|
|
41143
|
+
},
|
|
41144
|
+
"description": "Layout direction: 'horizontal' (a row that wraps) | 'vertical' (default: 'horizontal')"
|
|
41145
|
+
},
|
|
41146
|
+
{
|
|
41147
|
+
"name": "horizontal-alignment",
|
|
41148
|
+
"type": {
|
|
41149
|
+
"text": "HorizontalAlignment"
|
|
41150
|
+
},
|
|
41151
|
+
"default": "'left'",
|
|
41152
|
+
"fieldName": "horizontalAlignment",
|
|
41153
|
+
"expandedType": {
|
|
41154
|
+
"text": "'center' | 'left'"
|
|
41155
|
+
},
|
|
41156
|
+
"description": "Alignment of the links: 'left' | 'center' (default: 'left')"
|
|
41157
|
+
},
|
|
41158
|
+
{
|
|
41159
|
+
"name": "accessible-label",
|
|
41160
|
+
"type": {
|
|
41161
|
+
"text": "string"
|
|
41162
|
+
},
|
|
41163
|
+
"default": "''",
|
|
41164
|
+
"fieldName": "accessibleLabel",
|
|
41165
|
+
"description": "Accessible name of the nav landmark"
|
|
41166
|
+
}
|
|
41167
|
+
],
|
|
41168
|
+
"superclass": {
|
|
41169
|
+
"name": "LitElement",
|
|
41170
|
+
"package": "lit"
|
|
41171
|
+
},
|
|
41172
|
+
"tagName": "nldd-link-group",
|
|
41173
|
+
"customElement": true,
|
|
41174
|
+
"slots": [
|
|
41175
|
+
{
|
|
41176
|
+
"name": "",
|
|
41177
|
+
"description": "nldd-link elements"
|
|
41178
|
+
}
|
|
41179
|
+
]
|
|
41180
|
+
}
|
|
41181
|
+
],
|
|
41182
|
+
"exports": [
|
|
41183
|
+
{
|
|
41184
|
+
"kind": "js",
|
|
41185
|
+
"name": "NLDDLinkGroup",
|
|
41186
|
+
"declaration": {
|
|
41187
|
+
"name": "NLDDLinkGroup",
|
|
41188
|
+
"module": "src/components/navigation/link-group/link-group.ts"
|
|
41189
|
+
}
|
|
41190
|
+
},
|
|
41191
|
+
{
|
|
41192
|
+
"kind": "custom-element-definition",
|
|
41193
|
+
"name": "nldd-link-group",
|
|
41194
|
+
"declaration": {
|
|
41195
|
+
"name": "NLDDLinkGroup",
|
|
41196
|
+
"module": "src/components/navigation/link-group/link-group.ts"
|
|
41197
|
+
}
|
|
41198
|
+
}
|
|
41199
|
+
]
|
|
41200
|
+
},
|
|
40244
41201
|
{
|
|
40245
41202
|
"kind": "javascript-module",
|
|
40246
41203
|
"path": "src/components/navigation/link/link.ts",
|
|
@@ -47161,6 +48118,46 @@
|
|
|
47161
48118
|
}
|
|
47162
48119
|
]
|
|
47163
48120
|
},
|
|
48121
|
+
{
|
|
48122
|
+
"kind": "javascript-module",
|
|
48123
|
+
"path": "src/utilities/owner-form.ts",
|
|
48124
|
+
"declarations": [
|
|
48125
|
+
{
|
|
48126
|
+
"kind": "function",
|
|
48127
|
+
"name": "ownerForm",
|
|
48128
|
+
"return": {
|
|
48129
|
+
"type": {
|
|
48130
|
+
"text": "HTMLFormElement | null"
|
|
48131
|
+
}
|
|
48132
|
+
},
|
|
48133
|
+
"parameters": [
|
|
48134
|
+
{
|
|
48135
|
+
"name": "host",
|
|
48136
|
+
"type": {
|
|
48137
|
+
"text": "HTMLElement"
|
|
48138
|
+
}
|
|
48139
|
+
},
|
|
48140
|
+
{
|
|
48141
|
+
"name": "internals",
|
|
48142
|
+
"type": {
|
|
48143
|
+
"text": "ElementInternals"
|
|
48144
|
+
}
|
|
48145
|
+
}
|
|
48146
|
+
],
|
|
48147
|
+
"description": "The form a form-associated button acts on: the one it sits in, or the one\nits `form` attribute names.\n\nThe platform resolves that attribute itself, but only to a real `<form>`.\nAn `nldd-form` renders its form in the light DOM without handing it the id\nthe consumer wrote, so an id pointing at the component finds an element\nthat is not a form, and the button ends up with no form owner at all. That\nis the whole reason a save button in a page footer, outside the form it\nbelongs to, used to do nothing.\n\nThe id is looked up in the host's own root, the same scope the platform\nsearches: a button inside a shadow tree reaches the forms in that tree, not\none in the document around it. Put the two in the same tree, or hand the\nbutton its form another way.\n\nShared by nldd-button and nldd-split-button, whose action button sits in a\nshadow root and so has no form owner of its own."
|
|
48148
|
+
}
|
|
48149
|
+
],
|
|
48150
|
+
"exports": [
|
|
48151
|
+
{
|
|
48152
|
+
"kind": "js",
|
|
48153
|
+
"name": "ownerForm",
|
|
48154
|
+
"declaration": {
|
|
48155
|
+
"name": "ownerForm",
|
|
48156
|
+
"module": "src/utilities/owner-form.ts"
|
|
48157
|
+
}
|
|
48158
|
+
}
|
|
48159
|
+
]
|
|
48160
|
+
},
|
|
47164
48161
|
{
|
|
47165
48162
|
"kind": "javascript-module",
|
|
47166
48163
|
"path": "src/utilities/page-section-mixin.ts",
|
|
@@ -47542,6 +48539,30 @@
|
|
|
47542
48539
|
}
|
|
47543
48540
|
],
|
|
47544
48541
|
"description": "The popover a component's inner button invokes, from `popovertarget` or\n`popoverTargetElement` on the host.\n\nAn id written on the inner button is looked up in the component's own\nshadow root, where the popover never is, so the button opened nothing. The\nid is looked up here in the tree of the host instead, and the inner button\ngets the element. The element wins when both are set.\n\nLook it up again on click: a popover rendered after the button is not there\nyet on the button's first render."
|
|
48542
|
+
},
|
|
48543
|
+
{
|
|
48544
|
+
"kind": "function",
|
|
48545
|
+
"name": "anchorPopoverTarget",
|
|
48546
|
+
"return": {
|
|
48547
|
+
"type": {
|
|
48548
|
+
"text": "void"
|
|
48549
|
+
}
|
|
48550
|
+
},
|
|
48551
|
+
"parameters": [
|
|
48552
|
+
{
|
|
48553
|
+
"name": "host",
|
|
48554
|
+
"type": {
|
|
48555
|
+
"text": "Element"
|
|
48556
|
+
}
|
|
48557
|
+
},
|
|
48558
|
+
{
|
|
48559
|
+
"name": "target",
|
|
48560
|
+
"type": {
|
|
48561
|
+
"text": "Element | null"
|
|
48562
|
+
}
|
|
48563
|
+
}
|
|
48564
|
+
],
|
|
48565
|
+
"description": "Positions an `nldd-menu` or `nldd-popover` that `popovertarget` points at\nagainst the control that opens it, so the overlay needs no `anchor` of its\nown. The browser already opens and closes it; this adds where it stands and\nthe ARIA link back to the control, as a slotted overlay gets.\n\nAn overlay with an `anchor` id, or anchored to another element, is\nleft alone: someone chose where it goes. Pass `null` to let go, as on\ndisconnect or when `popovertarget` changes."
|
|
47545
48566
|
}
|
|
47546
48567
|
],
|
|
47547
48568
|
"exports": [
|
|
@@ -47552,6 +48573,14 @@
|
|
|
47552
48573
|
"name": "popoverTargetOf",
|
|
47553
48574
|
"module": "src/utilities/popover-target.ts"
|
|
47554
48575
|
}
|
|
48576
|
+
},
|
|
48577
|
+
{
|
|
48578
|
+
"kind": "js",
|
|
48579
|
+
"name": "anchorPopoverTarget",
|
|
48580
|
+
"declaration": {
|
|
48581
|
+
"name": "anchorPopoverTarget",
|
|
48582
|
+
"module": "src/utilities/popover-target.ts"
|
|
48583
|
+
}
|
|
47555
48584
|
}
|
|
47556
48585
|
]
|
|
47557
48586
|
},
|