@nldd/design-system 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/custom-elements.json +1201 -172
  2. package/dist/components/actions/button/button.d.ts +2 -17
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.js +10 -35
  5. package/dist/components/actions/button/button.js.map +1 -1
  6. package/dist/components/actions/icon-button/icon-button.d.ts +2 -1
  7. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  8. package/dist/components/actions/icon-button/icon-button.js +8 -2
  9. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  10. package/dist/components/actions/menu/menu.d.ts +9 -1
  11. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  12. package/dist/components/actions/menu/menu.js +11 -1
  13. package/dist/components/actions/menu/menu.js.map +1 -1
  14. package/dist/components/actions/split-button/split-button.d.ts +63 -34
  15. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  16. package/dist/components/actions/split-button/split-button.i18n.d.ts +1 -1
  17. package/dist/components/actions/split-button/split-button.i18n.js +1 -1
  18. package/dist/components/actions/split-button/split-button.i18n.js.map +1 -1
  19. package/dist/components/actions/split-button/split-button.js +116 -76
  20. package/dist/components/actions/split-button/split-button.js.map +1 -1
  21. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  22. package/dist/components/actions/split-button/split-button.styles.js +4 -0
  23. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  24. package/dist/components/actions/split-button/split-button.template.d.ts +2 -1
  25. package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
  26. package/dist/components/actions/split-button/split-button.template.js +25 -20
  27. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  28. package/dist/components/actions/toolbar/toolbar.story-sync.d.ts +13 -0
  29. package/dist/components/actions/toolbar/toolbar.story-sync.d.ts.map +1 -0
  30. package/dist/components/actions/toolbar/toolbar.story-sync.js +89 -0
  31. package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -0
  32. package/dist/components/components.js +1202 -273
  33. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  34. package/dist/components/content/icon/icon-aliases.js +2 -0
  35. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  36. package/dist/components/content/tooltip/tooltip.d.ts +8 -1
  37. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  38. package/dist/components/content/tooltip/tooltip.js +44 -5
  39. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  40. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  41. package/dist/components/content/tooltip/tooltip.styles.js +5 -0
  42. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  43. package/dist/components/{decorate-CzRe1eif.js → decorate-pEFCObfp.js} +1 -1
  44. package/dist/components/{defer-focus-DIPAUUJa.js → defer-focus-CkNrCf_g.js} +2 -2
  45. package/dist/components/{dev-checks-tdnaA2UV.js → dev-checks--aiYe9Pe.js} +85 -4
  46. package/dist/components/{icon-BPNDyhu9.js → icon-BQjRjtKH.js} +2 -1
  47. package/dist/components/{icon-button-Dbo_SGor.js → icon-button-BivCiIpt.js} +84 -12
  48. package/dist/components/index.d.ts +2 -0
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/components/index.js +2 -0
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/components/inputs/checkbox/checkbox.d.ts +0 -5
  53. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  54. package/dist/components/inputs/checkbox/checkbox.js +0 -5
  55. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  56. package/dist/components/inputs/checkbox/checkbox.styles.js +9 -9
  57. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  58. package/dist/components/inputs/code-editor/code-editor.styles.js +6 -0
  59. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  60. package/dist/components/inputs/file-field/file-field.styles.js +17 -17
  61. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  62. package/dist/components/inputs/file-field/file-field.template.js +3 -2
  63. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  64. package/dist/components/inputs/password-field/password-field.d.ts +5 -12
  65. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  66. package/dist/components/inputs/password-field/password-field.i18n.d.ts +8 -0
  67. package/dist/components/inputs/password-field/password-field.i18n.d.ts.map +1 -0
  68. package/dist/components/inputs/password-field/password-field.i18n.js +7 -0
  69. package/dist/components/inputs/password-field/password-field.i18n.js.map +1 -0
  70. package/dist/components/inputs/password-field/password-field.js +10 -23
  71. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  72. package/dist/components/inputs/password-field/password-field.template.js +2 -2
  73. package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
  74. package/dist/components/inputs/radio-button/radio-button.d.ts +0 -5
  75. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  76. package/dist/components/inputs/radio-button/radio-button.js +0 -5
  77. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  78. package/dist/components/inputs/radio-button/radio-button.styles.js +9 -9
  79. package/dist/components/inputs/slider/slider.d.ts +19 -4
  80. package/dist/components/inputs/slider/slider.d.ts.map +1 -1
  81. package/dist/components/inputs/slider/slider.js +87 -19
  82. package/dist/components/inputs/slider/slider.js.map +1 -1
  83. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  84. package/dist/components/inputs/slider/slider.styles.js +21 -6
  85. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  86. package/dist/components/inputs/slider/slider.template.js +1 -1
  87. package/dist/components/inputs/slider/slider.template.js.map +1 -1
  88. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +185 -0
  89. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -0
  90. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.d.ts +22 -0
  91. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.d.ts.map +1 -0
  92. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.js +21 -0
  93. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.js.map +1 -0
  94. package/dist/components/inputs/swatch-picker/swatch-picker.js +485 -0
  95. package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -0
  96. package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts +3 -0
  97. package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -0
  98. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +177 -0
  99. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -0
  100. package/dist/components/inputs/swatch-picker/swatch-picker.template.d.ts +6 -0
  101. package/dist/components/inputs/swatch-picker/swatch-picker.template.d.ts.map +1 -0
  102. package/dist/components/inputs/swatch-picker/swatch-picker.template.js +44 -0
  103. package/dist/components/inputs/swatch-picker/swatch-picker.template.js.map +1 -0
  104. package/dist/components/inputs/switch/switch.d.ts +0 -5
  105. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  106. package/dist/components/inputs/switch/switch.js +0 -5
  107. package/dist/components/inputs/switch/switch.js.map +1 -1
  108. package/dist/components/inputs/switch/switch.styles.js +2 -2
  109. package/dist/components/{just-in-time-education.i18n-BgCd3s-c.js → just-in-time-education.i18n-S05IOgqk.js} +30 -2
  110. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  111. package/dist/components/layout/page-footer/page-footer.styles.js +11 -3
  112. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  113. package/dist/components/layout/page-sections/hero/hero.styles.js +1 -1
  114. package/dist/components/layout/popover/popover.d.ts +5 -3
  115. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  116. package/dist/components/layout/popover/popover.js +5 -3
  117. package/dist/components/layout/popover/popover.js.map +1 -1
  118. package/dist/components/layout/task-board/task-board.d.ts +8 -0
  119. package/dist/components/layout/task-board/task-board.d.ts.map +1 -1
  120. package/dist/components/layout/task-board/task-board.js +59 -0
  121. package/dist/components/layout/task-board/task-board.js.map +1 -1
  122. package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
  123. package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
  124. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  125. package/dist/components/lists-and-tables/list-item/list-item.styles.js +0 -6
  126. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  127. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +1 -1
  128. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  129. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +5 -2
  130. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  131. package/dist/components/navigation/link-group/link-group.d.ts +47 -0
  132. package/dist/components/navigation/link-group/link-group.d.ts.map +1 -0
  133. package/dist/components/navigation/link-group/link-group.js +81 -0
  134. package/dist/components/navigation/link-group/link-group.js.map +1 -0
  135. package/dist/components/navigation/link-group/link-group.styles.d.ts +2 -0
  136. package/dist/components/navigation/link-group/link-group.styles.d.ts.map +1 -0
  137. package/dist/components/navigation/link-group/link-group.styles.js +60 -0
  138. package/dist/components/navigation/link-group/link-group.styles.js.map +1 -0
  139. package/dist/components/navigation/link-group/link-group.template.d.ts +3 -0
  140. package/dist/components/navigation/link-group/link-group.template.d.ts.map +1 -0
  141. package/dist/components/navigation/link-group/link-group.template.js +15 -0
  142. package/dist/components/navigation/link-group/link-group.template.js.map +1 -0
  143. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  144. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +7 -6
  145. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  146. package/dist/components/{nl.generated-D-8UF1iR.js → nl.generated-CUo20aPV.js} +3 -1
  147. package/dist/components/{visibility-mixin-CNCT26tu.js → visibility-mixin-Ce0goNS6.js} +1 -1
  148. package/dist/css/variables.css +3 -1
  149. package/dist/nldd.min.js +1074 -768
  150. package/dist/translations/en-US.d.ts.map +1 -1
  151. package/dist/translations/en-US.js +23 -1
  152. package/dist/translations/en-US.js.map +1 -1
  153. package/dist/translations/fy.d.ts +3 -3
  154. package/dist/translations/fy.d.ts.map +1 -1
  155. package/dist/translations/fy.js +38 -1
  156. package/dist/translations/fy.js.map +1 -1
  157. package/dist/translations/nl.generated.d.ts +23 -1
  158. package/dist/translations/nl.generated.d.ts.map +1 -1
  159. package/dist/translations/nl.generated.js +4 -0
  160. package/dist/translations/nl.generated.js.map +1 -1
  161. package/dist/translations/pap-AW.d.ts +3 -3
  162. package/dist/translations/pap-AW.d.ts.map +1 -1
  163. package/dist/translations/pap-AW.js +38 -1
  164. package/dist/translations/pap-AW.js.map +1 -1
  165. package/dist/translations/pap-CW.d.ts +3 -3
  166. package/dist/translations/pap-CW.d.ts.map +1 -1
  167. package/dist/translations/pap-CW.js +38 -1
  168. package/dist/translations/pap-CW.js.map +1 -1
  169. package/dist/types/vue.d.ts +111 -33
  170. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  171. package/dist/utilities/dev-rules.generated.js +90 -3
  172. package/dist/utilities/dev-rules.generated.js.map +1 -1
  173. package/dist/utilities/owner-form.d.ts +21 -0
  174. package/dist/utilities/owner-form.d.ts.map +1 -0
  175. package/dist/utilities/owner-form.js +39 -0
  176. package/dist/utilities/owner-form.js.map +1 -0
  177. package/dist/utilities/popover-target.d.ts +11 -0
  178. package/dist/utilities/popover-target.d.ts.map +1 -1
  179. package/dist/utilities/popover-target.js +27 -0
  180. package/dist/utilities/popover-target.js.map +1 -1
  181. package/dist/utilities/popup-anchor-controller.d.ts.map +1 -1
  182. package/dist/utilities/popup-anchor-controller.js +5 -1
  183. package/dist/utilities/popup-anchor-controller.js.map +1 -1
  184. package/lint/cli.js +4 -4
  185. package/lint/data.generated.json +1 -1
  186. package/package.json +13 -5
@@ -13,10 +13,7 @@
13
13
  * @attr {boolean} invalid - Marks the field as invalid
14
14
  * @attr {boolean} disabled - Disabled state
15
15
  * @attr {boolean} masked - Whether the password is masked (default: true)
16
- * @attr {string} show-button-text - Visible toggle button text when masked (default: 'Toon')
17
- * @attr {string} hide-button-text - Visible toggle button text when unmasked (default: 'Verberg')
18
- * @attr {string} show-button-accessible-label - aria-label for toggle when masked (default: 'Toon wachtwoord')
19
- * @attr {string} hide-button-accessible-label - aria-label for toggle when unmasked (default: 'Verberg wachtwoord')
16
+ * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
20
17
  * @attr {boolean} readonly - Readonly state
21
18
  * @attr {boolean} required - Required state
22
19
  * @attr {string} name - Input name for form submission
@@ -32,6 +29,7 @@
32
29
  */
33
30
  import { LitElement, type PropertyValues } from 'lit';
34
31
  import { type FormValue } from '../../../utilities/form-associated-mixin.js';
32
+ import type { NLDDPasswordFieldTranslations } from './password-field.i18n.js';
35
33
  declare const NLDDPasswordField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
36
34
  export declare class NLDDPasswordField extends NLDDPasswordField_base {
37
35
  static shadowRootOptions: {
@@ -58,14 +56,8 @@ export declare class NLDDPasswordField extends NLDDPasswordField_base {
58
56
  invalid: boolean;
59
57
  disabled: boolean;
60
58
  masked: boolean;
61
- /** Visible button label when the field is masked. Override for localisation. */
62
- showButtonText: string;
63
- /** Visible button label when the field is unmasked. Override for localisation. */
64
- hideButtonText: string;
65
- /** Accessible aria-label for the toggle button when the field is masked. Override for localisation. */
66
- showButtonAccessibleLabel: string;
67
- /** Accessible aria-label for the toggle button when the field is unmasked. Override for localisation. */
68
- hideButtonAccessibleLabel: string;
59
+ /** Override one or more translation keys. Unset keys fall back to Dutch. */
60
+ translations: Partial<NLDDPasswordFieldTranslations>;
69
61
  readonly: boolean;
70
62
  required: boolean;
71
63
  name: string;
@@ -86,6 +78,7 @@ export declare class NLDDPasswordField extends NLDDPasswordField_base {
86
78
  formValue(): FormValue;
87
79
  formResetCallback(): void;
88
80
  formStateRestoreCallback(state: File | string | FormData | null): void;
81
+ _t(key: keyof NLDDPasswordFieldTranslations): string;
89
82
  /** Enter submits the form this field belongs to, the way the browser would
90
83
  * if the input were not in a shadow root. */
91
84
  _handleKeydown(e: KeyboardEvent): void;
@@ -1 +1 @@
1
- {"version":3,"file":"password-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAO7F,qBACa,iBAAkB,SAAQ,sBAAuC;IAE7E,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAAuB;IAE7C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B;uEACmE;IACnE,MAAM,CAAC,wBAAwB,UAAQ;IAGvC,OAAO,CAAC,aAAa,CAAM;IAG3B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAGzB,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,WAAW,SAAM;IAGjB,KAAK,UAAS;IAGd,OAAO,UAAS;IAGhB,QAAQ,UAAS;IAGjB,MAAM,UAAQ;IAEd,gFAAgF;IAEhF,cAAc,SAAU;IAExB,kFAAkF;IAElF,cAAc,SAAa;IAE3B,uGAAuG;IAEvG,yBAAyB,SAAqB;IAE9C,yGAAyG;IAEzG,yBAAyB,SAAwB;IAGjD,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,YAAY,SAAM;IAElB,6FAA6F;IAE7F,eAAe,SAAM;IAGrB,oGAAoG;IAEpG,KAAK,SAAM;IAGX,OAAO,CAAC,MAAM,CAAoB;IAGlC,0EAA0E;IAE1E,OAAO,SAAM;IAEb,uEAAuE;IAEvE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,qEAAqE;IAErE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEV,YAAY,IAAI,IAAI;IAIpB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAWtC,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAItE;kDAC8C;IACvC,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAItC,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAY5B,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAY7B,aAAa,IAAI,IAAI;IAIrB,KAAK,IAAI,IAAI;IAIb,IAAI,IAAI,IAAI;IAIV,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,qBAAqB,EAAE,iBAAiB,CAAC;KACzC;CACD"}
1
+ {"version":3,"file":"password-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAQ7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;;AAE9E,qBACa,iBAAkB,SAAQ,sBAAuC;IAE7E,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAAuB;IAE7C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B;uEACmE;IACnE,MAAM,CAAC,wBA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-0,0 +1,8 @@
1
+ export declare const nlddPasswordFieldTranslations: {
2
+ 'components.password-field.show-action': string;
3
+ 'components.password-field.hide-action': string;
4
+ 'components.password-field.show-accessible-label': string;
5
+ 'components.password-field.hide-accessible-label': string;
6
+ };
7
+ export type NLDDPasswordFieldTranslations = typeof nlddPasswordFieldTranslations;
8
+ //# sourceMappingURL=password-field.i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B;;;;;CAKzC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const nlddPasswordFieldTranslations = {
2
+ 'components.password-field.show-action': 'Toon',
3
+ 'components.password-field.hide-action': 'Verberg',
4
+ 'components.password-field.show-accessible-label': 'Toon wachtwoord',
5
+ 'components.password-field.hide-accessible-label': 'Verberg wachtwoord',
6
+ };
7
+ //# sourceMappingURL=password-field.i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,uCAAuC,EAAE,MAAM;IAC/C,uCAAuC,EAAE,SAAS;IAClD,iDAAiD,EAAE,iBAAiB;IACpE,iDAAiD,EAAE,oBAAoB;CACvE,CAAC"}
@@ -19,10 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  * @attr {boolean} invalid - Marks the field as invalid
20
20
  * @attr {boolean} disabled - Disabled state
21
21
  * @attr {boolean} masked - Whether the password is masked (default: true)
22
- * @attr {string} show-button-text - Visible toggle button text when masked (default: 'Toon')
23
- * @attr {string} hide-button-text - Visible toggle button text when unmasked (default: 'Verberg')
24
- * @attr {string} show-button-accessible-label - aria-label for toggle when masked (default: 'Toon wachtwoord')
25
- * @attr {string} hide-button-accessible-label - aria-label for toggle when unmasked (default: 'Verberg wachtwoord')
22
+ * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
26
23
  * @attr {boolean} readonly - Readonly state
27
24
  * @attr {boolean} required - Required state
28
25
  * @attr {string} name - Input name for form submission
@@ -45,6 +42,8 @@ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
45
42
  import { passwordFieldStyles } from './password-field.styles.js';
46
43
  import { passwordFieldTemplate } from './password-field.template.js';
47
44
  import { DescribedBy } from '../../../utilities/described-by-mixin.js';
45
+ import { translate } from '../../../utilities/translations.js';
46
+ import { nlddPasswordFieldTranslations } from './password-field.i18n.js';
48
47
  let NLDDPasswordField = class NLDDPasswordField extends DescribedBy(FormAssociated(LitElement)) {
49
48
  constructor() {
50
49
  super(...arguments);
@@ -57,14 +56,8 @@ let NLDDPasswordField = class NLDDPasswordField extends DescribedBy(FormAssociat
57
56
  this.invalid = false;
58
57
  this.disabled = false;
59
58
  this.masked = true;
60
- /** Visible button label when the field is masked. Override for localisation. */
61
- this.showButtonText = 'Toon';
62
- /** Visible button label when the field is unmasked. Override for localisation. */
63
- this.hideButtonText = 'Verberg';
64
- /** Accessible aria-label for the toggle button when the field is masked. Override for localisation. */
65
- this.showButtonAccessibleLabel = 'Toon wachtwoord';
66
- /** Accessible aria-label for the toggle button when the field is unmasked. Override for localisation. */
67
- this.hideButtonAccessibleLabel = 'Verberg wachtwoord';
59
+ /** Override one or more translation keys. Unset keys fall back to Dutch. */
60
+ this.translations = {};
68
61
  this.readonly = false;
69
62
  this.required = false;
70
63
  this.name = '';
@@ -100,6 +93,9 @@ let NLDDPasswordField = class NLDDPasswordField extends DescribedBy(FormAssociat
100
93
  if (typeof state === 'string')
101
94
  this.value = state;
102
95
  }
96
+ _t(key) {
97
+ return translate(this.translations, nlddPasswordFieldTranslations, key);
98
+ }
103
99
  /** Enter submits the form this field belongs to, the way the browser would
104
100
  * if the input were not in a shadow root. */
105
101
  _handleKeydown(e) {
@@ -176,17 +172,8 @@ __decorate([
176
172
  property({ type: Boolean, reflect: true })
177
173
  ], NLDDPasswordField.prototype, "masked", void 0);
178
174
  __decorate([
179
- property({ type: String, attribute: 'show-button-text' })
180
- ], NLDDPasswordField.prototype, "showButtonText", void 0);
181
- __decorate([
182
- property({ type: String, attribute: 'hide-button-text' })
183
- ], NLDDPasswordField.prototype, "hideButtonText", void 0);
184
- __decorate([
185
- property({ type: String, attribute: 'show-button-accessible-label' })
186
- ], NLDDPasswordField.prototype, "showButtonAccessibleLabel", void 0);
187
- __decorate([
188
- property({ type: String, attribute: 'hide-button-accessible-label' })
189
- ], NLDDPasswordField.prototype, "hideButtonAccessibleLabel", void 0);
175
+ property({ type: Object })
176
+ ], NLDDPasswordField.prototype, "translations", void 0);
190
177
  __decorate([
191
178
  property({ type: Boolean, reflect: true })
192
179
  ], NLDDPasswordField.prototype, "readonly", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"password-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGhE,IAAM,iB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,EAAE,CAAC,EAAE,CAAC;kDACjD;AAIb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDACvB;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDACvB;AA/FP,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA0K7B"}
1
+ {"version":3,"file":"password-field.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAIlE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAAvE;;QAkBE,kBAAa,GAAG,EAAE,CAAC;QAG3B,SAAI,GAAgB,IAAI,CAAC;QAGzB,UAAK,GAAG,EAAE,CAAC;QAGX,YAAO,GAAG,EAAE,CAAC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,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;+CACpD;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDACT;AAIlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;0DACrC;AAKrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;gDACnD;AAGH;IADP,KAAK,CAAC,wBAAwB,CAAC;iDACE;AAKlC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;kDACjD;AAIb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDACvB;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDACvB;AAnFP,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAkK7B"}
@@ -26,8 +26,8 @@ function renderValidationIcon(component) {
26
26
  }
27
27
  function renderVisibilityToggle(component) {
28
28
  const buttonSize = component.size === 'sm' ? 'xs' : 'sm';
29
- const label = component.masked ? component.showButtonText : component.hideButtonText;
30
- const accessibleLabel = component.masked ? component.showButtonAccessibleLabel : component.hideButtonAccessibleLabel;
29
+ const label = component._t(component.masked ? 'components.password-field.show-action' : 'components.password-field.hide-action');
30
+ const accessibleLabel = component._t(component.masked ? 'components.password-field.show-accessible-label' : 'components.password-field.hide-accessible-label');
31
31
  return html `
32
32
  <div class="password-field__visibility-toggle-button">
33
33
  <nldd-button
@@ -1 +1 @@
1
- {"version":3,"file":"password-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,kCAAkC,CAAC;AAE1C,SAAS,oBAAoB,CAAC,SAA4B;IACzD,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,SAAS,sBAAsB,CAAC,SAA4B;IAC3D,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC;IACrF,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC;IAErH,OAAO,IAAI,CAAA;;;WAGD,UAAU;;WAEV,KAAK;uBACO,eAAe;gBACtB,SAAS,CAAC,QAAQ;aACrB,SAAS,CAAC,aAAa;mBACjB,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;;;EAGjD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,SAA4B;IACjE,OAAO,IAAI,CAAA;;yCAE6B,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;cAC9D,SAAS,CAAC,OAAO,IAAI,OAAO;gBAC1B,SAAS,CAAC,SAAS,IAAI,OAAO;gBAC9B,SAAS,CAAC,SAAS,IAAI,OAAO;SACrC,SAAS,CAAC,OAAO,IAAI,OAAO;WAC1B,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM;aACpC,SAAS,CAAC,KAAK;kBACV,SAAS,CAAC,WAAW,IAAI,OAAO;gBAClC,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;gBAClB,SAAS,CAAC,QAAQ;WACvB,SAAS,CAAC,IAAI,IAAI,OAAO;mBACjB,SAAS,CAAC,YAAY,IAAI,OAAO;;iBAEnC,SAAS,CAAC,eAAe,IAAI,OAAO;mBAClC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;eACxC,SAAS,CAAC,cAAc;aAC1B,SAAS,CAAC,YAAY;cACrB,SAAS,CAAC,aAAa;;;KAGhC,oBAAoB,CAAC,SAAS,CAAC;KAC/B,sBAAsB,CAAC,SAAS,CAAC;;EAEpC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"password-field.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/password-field/password-field.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,8BAA8B,CAAC;AACtC,OAAO,kCAAkC,CAAC;AAE1C,SAAS,oBAAoB,CAAC,SAA4B;IACzD,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,CAAA;;;;;;;GAOV,CAAC;IACH,CAAC;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,CAAA;;;;;;;GAOV,CA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;;iBAEnC,SAAS,CAAC,eAAe,IAAI,OAAO;mBAClC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;eACxC,SAAS,CAAC,cAAc;aAC1B,SAAS,CAAC,YAAY;cACrB,SAAS,CAAC,aAAa;;;KAGhC,oBAAoB,CAAC,SAAS,CAAC;KAC/B,sBAAsB,CAAC,SAAS,CAAC;;EAEpC,CAAC;AACH,CAAC"}
@@ -22,11 +22,6 @@
22
22
  * <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button>
23
23
  * </fieldset>
24
24
  *
25
- * On a selected row of nldd-list-item a checked control takes the colors of the
26
- * row: the row sets `--context-selected-indicator-color` and
27
- * `--context-selected-contrast-color`, because the accent can fall below 3:1 on
28
- * the gray of a selected row.
29
- *
30
25
  * @element nldd-radio-button
31
26
  * @attr {boolean} checked - Checked state
32
27
  * @attr {boolean} disabled - Disabled state
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/radio-button/radio-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;;AAS7F,qBACa,eAAgB,SAAQ,oBAAuC;IAE3E,OAAgB,MAAM,0BAAqB;IAE3C;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,OAAO,CAAC,eAAe,CAAS;IAGhC,OAAO,UAAS;IAGhB,UAAU,UAAS;IAGnB,QAAQ,UAAS;IACjB;;;4BAGwB;IAExB,KAAK,UAAS;IAId,QAAQ,UAAS;IAEjB;iFAC6E;IAE7E,SAAS,UAAS;IAGlB,IAAI,SAAM;IAGV,KAAK,SAAM;IAEX,iEAAiE;IAEjE,K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AAe,CAAC;KACrC;CACD"}
@@ -28,11 +28,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
28
28
  * <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button>
29
29
  * </fieldset>
30
30
  *
31
- * On a selected row of nldd-list-item a checked control takes the colors of the
32
- * row: the row sets `--context-selected-indicator-color` and
33
- * `--context-selected-contrast-color`, because the accent can fall below 3:1 on
34
- * the gray of a selected row.
35
- *
36
31
  * @element nldd-radio-button
37
32
  * @attr {boolean} checked - Checked state
38
33
  * @attr {boolean} disabled - Disabled state
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.js","sourceRoot":"","sources":["../../../../src/components/inputs/radio-button/radio-button.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAGnE,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,WAAW,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAArE;;QASE,oBAAe,GAAG,KAAK,CAAC;QA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;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAChB;AAIX;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;8CACnC;AAG3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;wDACrC;AAarB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC3B;AA3DJ,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAsM3B"}
@@ -12,17 +12,17 @@ export const radioButtonStyles = css `
12
12
  --_radio-button-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
13
13
  --_radio-button-background-color: var(--semantics-surfaces-base-background-color);
14
14
  --_radio-button-is-selected-inner-shape-border-width: var(--primitives-border-width-regular);
15
- --_radio-button-is-selected-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
16
- --_radio-button-is-selected-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
17
- --_radio-button-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
15
+ --_radio-button-is-selected-inner-shape-border-color: var(--semantics-controls-is-selected-mark-color);
16
+ --_radio-button-is-selected-border-color: var(--semantics-controls-is-selected-indicator-color);
17
+ --_radio-button-is-selected-background-color: var(--semantics-controls-is-selected-indicator-color);
18
18
  --_radio-button-is-hovered-border-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-700));
19
- --_radio-button-is-selected-is-hovered-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
20
- --_radio-button-is-selected-is-hovered-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
21
- --_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
19
+ --_radio-button-is-selected-is-hovered-border-color: var(--semantics-controls-is-selected-is-hovered-indicator-color);
20
+ --_radio-button-is-selected-is-hovered-background-color: var(--semantics-controls-is-selected-is-hovered-indicator-color);
21
+ --_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--semantics-controls-is-selected-mark-color);
22
22
  --_radio-button-is-active-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
23
- --_radio-button-is-selected-is-active-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
24
- --_radio-button-is-selected-is-active-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
25
- --_radio-button-is-selected-is-active-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
23
+ --_radio-button-is-selected-is-active-border-color: var(--semantics-controls-is-selected-is-active-indicator-color);
24
+ --_radio-button-is-selected-is-active-background-color: var(--semantics-controls-is-selected-is-active-indicator-color);
25
+ --_radio-button-is-selected-is-active-inner-shape-border-color: var(--semantics-controls-is-selected-mark-color);
26
26
 
27
27
  display: inline-flex;
28
28
  position: relative;
@@ -15,8 +15,11 @@
15
15
  * Page Down, Home and End), touch, the form and a screen reader work as they do
16
16
  * for any slider. A range is two of them over each other, each with its own
17
17
  * name for a screen reader ("Prijs, minimum"), and a press on the track moves
18
- * the nearer thumb there. The thumbs do not pass each other; where they lie
19
- * on one value, the first move picks one, to the left the start one.
18
+ * the nearer thumb there. A thumb dragged or moved with an arrow key (also
19
+ * with Shift) past the other one becomes that end of the range, and focus goes with it, so its name
20
+ * still says which end it is. Home, End, Page Up and Page Down stop at the
21
+ * other thumb, so they never turn the range around. Where the thumbs lie on
22
+ * one value, the first move picks one, to the left the start one.
20
23
  *
21
24
  * The value shows in a tooltip above the thumb while the pointer is over the
22
25
  * slider or its icons, while a thumb has keyboard focus and while it or an icon
@@ -101,6 +104,8 @@ export declare class NLDDSlider extends NLDDSlider_base {
101
104
  formatValue: ((value: number) => string) | null;
102
105
  /** @internal While a thumb is pressed or dragged, so its tooltip shows. */
103
106
  _active: boolean;
107
+ /** @internal The thumb a pointer holds, for its pressed look. */
108
+ _held: Thumb | null;
104
109
  private _inputs;
105
110
  private _initial;
106
111
  /** Lays the tooltips out again when the slider or the window changes size. */
@@ -109,6 +114,13 @@ export declare class NLDDSlider extends NLDDSlider_base {
109
114
  private _trackThumb;
110
115
  /** Where a press on two stacked thumbs began, until a move picks one. */
111
116
  private _stackedPress;
117
+ /** The input a pointer drags natively, and the end of the range it moves:
118
+ * past the other thumb that is the other end, while the drag goes on. */
119
+ private _dragInput;
120
+ private _dragThumb;
121
+ /** Whether the key that moves a thumb is a plain arrow, which may take it
122
+ * past the other one. */
123
+ private _arrowKey;
112
124
  /** @internal */
113
125
  _t(key: keyof NLDDSliderTranslations): string;
114
126
  /** @internal The value of a single slider, settled within min and max. */
@@ -155,6 +167,7 @@ export declare class NLDDSlider extends NLDDSlider_base {
155
167
  private _handleTrackMove;
156
168
  /** Makes a thumb the one a press drags, and gives it focus. */
157
169
  private _grab;
170
+ private _focusThumb;
158
171
  private _handlePointerUp;
159
172
  /** Ends a press: its listeners on the window, and the thumb it drags. */
160
173
  private _stopPress;
@@ -165,8 +178,10 @@ export declare class NLDDSlider extends NLDDSlider_base {
165
178
  private _valueAt;
166
179
  /** Whether a point lies on the pressable area of the stacked thumbs. */
167
180
  private _onThumb;
168
- /** Sets a thumb, keeps the thumbs of a range from passing each other, and
169
- * puts the native input back where the value landed. */
181
+ /** Sets a thumb and puts the native inputs back where the values landed.
182
+ * With `pass`, a thumb moved past the other one becomes the other end of
183
+ * the range, and the other thumb takes its place; without, it stops at the
184
+ * other thumb. Returns the end the value landed on. */
170
185
  private _set;
171
186
  private _emit;
172
187
  /** Joins the two tooltips of a range where they would overlap, and keeps a
@@ -1 +1 @@
1
- {"version":3,"file":"slider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zE,OAAO,CAAC,UAAU;IAWlB;+EAC2E;IAC3E,OAAO,CAAC,UAAU;IASlB,gFAAgF;IAChF,OAAO,CAAC,QAAQ;IAMhB,wEAAwE;IACxE,OAAO,CAAC,QAAQ;IAMhB;;;4DAGwD;IACxD,OAAO,CAAC,IAAI;IA2BZ,OAAO,CAAC,KAAK;IAOb;8DAC0D;IAC1D,OAAO,CAAC,eAAe,CAuBrB;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
@@ -21,8 +21,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
21
21
  * Page Down, Home and End), touch, the form and a screen reader work as they do
22
22
  * for any slider. A range is two of them over each other, each with its own
23
23
  * name for a screen reader ("Prijs, minimum"), and a press on the track moves
24
- * the nearer thumb there. The thumbs do not pass each other; where they lie
25
- * on one value, the first move picks one, to the left the start one.
24
+ * the nearer thumb there. A thumb dragged or moved with an arrow key (also
25
+ * with Shift) past the other one becomes that end of the range, and focus goes with it, so its name
26
+ * still says which end it is. Home, End, Page Up and Page Down stop at the
27
+ * other thumb, so they never turn the range around. Where the thumbs lie on
28
+ * one value, the first move picks one, to the left the start one.
26
29
  *
27
30
  * The value shows in a tooltip above the thumb while the pointer is over the
28
31
  * slider or its icons, while a thumb has keyboard focus and while it or an icon
@@ -133,6 +136,8 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
133
136
  this.formatValue = null;
134
137
  /** @internal While a thumb is pressed or dragged, so its tooltip shows. */
135
138
  this._active = false;
139
+ /** @internal The thumb a pointer holds, for its pressed look. */
140
+ this._held = null;
136
141
  this._initial = {};
137
142
  /** Lays the tooltips out again when the slider or the window changes size. */
138
143
  this._resizeObserver = null;
@@ -140,6 +145,13 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
140
145
  this._trackThumb = null;
141
146
  /** Where a press on two stacked thumbs began, until a move picks one. */
142
147
  this._stackedPress = null;
148
+ /** The input a pointer drags natively, and the end of the range it moves:
149
+ * past the other thumb that is the other end, while the drag goes on. */
150
+ this._dragInput = null;
151
+ this._dragThumb = null;
152
+ /** Whether the key that moves a thumb is a plain arrow, which may take it
153
+ * past the other one. */
154
+ this._arrowKey = false;
143
155
  /** @internal */
144
156
  this._handlePointerDown = (event) => {
145
157
  if (this.disabled || event.button !== 0)
@@ -152,6 +164,14 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
152
164
  // the track moves the nearer thumb there, and drags it from there. Two
153
165
  // stacked thumbs take no press either: the first move picks one.
154
166
  const target = event.target;
167
+ this._arrowKey = false;
168
+ if (target.matches('.slider__input')) {
169
+ this._held = target.matches('.slider__input--start') ? 'start' : target.matches('.slider__input--end') ? 'end' : 'value';
170
+ }
171
+ if (this.range && target.matches('.slider__input')) {
172
+ this._dragInput = target;
173
+ this._dragThumb = this._held;
174
+ }
155
175
  if (!this.range || !target.closest('.slider__control') || target.matches('.slider__input'))
156
176
  return;
157
177
  window.addEventListener('pointermove', this._handleTrackMove);
@@ -181,7 +201,9 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
181
201
  }
182
202
  if (!this._trackThumb)
183
203
  return;
184
- this._set(this._trackThumb, this._valueAt(event.clientX));
204
+ const landed = this._set(this._trackThumb, this._valueAt(event.clientX), undefined, true);
205
+ if (landed !== this._trackThumb && landed !== 'value')
206
+ this._grab(landed);
185
207
  this._emit('input');
186
208
  };
187
209
  this._handlePointerUp = () => {
@@ -335,7 +357,17 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
335
357
  _handleInput(event, thumb) {
336
358
  // The native input event crosses the shadow root; the host fires its own.
337
359
  event.stopPropagation();
338
- this._set(thumb, parseFloat(event.target.value), event.target);
360
+ const input = event.target;
361
+ const dragged = input === this._dragInput && this._dragThumb;
362
+ const moved = dragged || thumb;
363
+ const landed = this._set(moved, parseFloat(input.value), input, !!dragged || this._arrowKey);
364
+ if (landed !== moved && landed !== 'value') {
365
+ if (dragged) {
366
+ this._dragThumb = landed;
367
+ this._held = landed;
368
+ }
369
+ this._focusThumb(landed);
370
+ }
339
371
  this._emit('input');
340
372
  }
341
373
  /** @internal */
@@ -354,6 +386,8 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
354
386
  * takes one step for it.
355
387
  * @internal */
356
388
  _handleKeyDown(event, thumb) {
389
+ const arrow = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(event.key);
390
+ this._arrowKey = arrow && !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey;
357
391
  if (!event.shiftKey || event.altKey || event.ctrlKey || event.metaKey)
358
392
  return;
359
393
  const rtl = getComputedStyle(this).direction === 'rtl';
@@ -367,16 +401,19 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
367
401
  if (!direction)
368
402
  return;
369
403
  event.preventDefault();
370
- this._page(thumb, direction);
404
+ this._page(thumb, direction, true);
371
405
  }
372
406
  /** Moves a thumb a tenth of the range, at least one step, the jump the
373
407
  * native input takes on Page Up and Page Down. */
374
- _page(thumb, direction) {
408
+ _page(thumb, direction, pass = false) {
375
409
  const page = Math.max(this.step > 0 ? this.step : 1, (this.max - this.min) / 10);
376
- const current = () => (thumb === 'value' ? this._value : thumb === 'start' ? this._start : this._end);
410
+ const current = () => (thumb === 'value' ? this._value : [this._start, this._end].join());
377
411
  const before = current();
378
412
  const input = this.shadowRoot?.querySelector(`.slider__input--${thumb}`) ?? undefined;
379
- this._set(thumb, before + direction * page, input);
413
+ const from = thumb === 'value' ? this._value : thumb === 'start' ? this._start : this._end;
414
+ const landed = this._set(thumb, from + direction * page, input, pass);
415
+ if (landed !== thumb && landed !== 'value')
416
+ this._focusThumb(landed);
380
417
  if (current() === before)
381
418
  return;
382
419
  this._emit('input');
@@ -385,6 +422,10 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
385
422
  /** Makes a thumb the one a press drags, and gives it focus. */
386
423
  _grab(thumb) {
387
424
  this._trackThumb = thumb;
425
+ this._held = thumb;
426
+ this._focusThumb(thumb);
427
+ }
428
+ _focusThumb(thumb) {
388
429
  this.shadowRoot?.querySelector(`.slider__input--${thumb}`)?.focus();
389
430
  }
390
431
  /** Ends a press: its listeners on the window, and the thumb it drags. */
@@ -394,6 +435,9 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
394
435
  window.removeEventListener('pointercancel', this._handlePointerUp);
395
436
  this._trackThumb = null;
396
437
  this._stackedPress = null;
438
+ this._dragInput = null;
439
+ this._dragThumb = null;
440
+ this._held = null;
397
441
  }
398
442
  /** Where the middle of the native thumb runs: from `start` over `length`
399
443
  * pixels, in the direction of the text, and how wide it takes a press. */
@@ -417,20 +461,41 @@ let NLDDSlider = class NLDDSlider extends DescribedBy(FormAssociated(LitElement)
417
461
  const fraction = this._fraction(this._start);
418
462
  return Math.abs(x - (start + length * (rtl ? 1 - fraction : fraction))) <= hit / 2;
419
463
  }
420
- /** Sets a thumb, keeps the thumbs of a range from passing each other, and
421
- * puts the native input back where the value landed. */
422
- _set(thumb, raw, input) {
464
+ /** Sets a thumb and puts the native inputs back where the values landed.
465
+ * With `pass`, a thumb moved past the other one becomes the other end of
466
+ * the range, and the other thumb takes its place; without, it stops at the
467
+ * other thumb. Returns the end the value landed on. */
468
+ _set(thumb, raw, input, pass = false) {
423
469
  const value = this._snap(raw);
424
- if (thumb === 'value')
470
+ let landed = thumb;
471
+ if (thumb === 'value') {
425
472
  this.value = value;
426
- if (thumb === 'start')
427
- this.startValue = Math.min(value, this._end);
428
- if (thumb === 'end')
429
- this.endValue = Math.max(value, this._start);
430
- const settled = thumb === 'value' ? this.value : thumb === 'start' ? this.startValue : this.endValue;
431
- if (input && parseFloat(input.value) !== settled)
432
- input.value = String(settled);
473
+ if (input && parseFloat(input.value) !== value)
474
+ input.value = String(value);
475
+ }
476
+ else {
477
+ const start = this._start;
478
+ const end = this._end;
479
+ if (thumb === 'start' && value > end && pass) {
480
+ [this.startValue, this.endValue, landed] = [end, value, 'end'];
481
+ }
482
+ else if (thumb === 'end' && value < start && pass) {
483
+ [this.startValue, this.endValue, landed] = [value, start, 'start'];
484
+ }
485
+ else if (thumb === 'start') {
486
+ this.startValue = Math.min(value, end);
487
+ }
488
+ else {
489
+ this.endValue = Math.max(value, start);
490
+ }
491
+ for (const el of this._inputs ?? []) {
492
+ const settled = el.classList.contains('slider__input--start') ? this._start : this._end;
493
+ if (parseFloat(el.value) !== settled)
494
+ el.value = String(settled);
495
+ }
496
+ }
433
497
  this.commitFormValue();
498
+ return landed;
434
499
  }
435
500
  _emit(type) {
436
501
  const detail = this.range ? { startValue: this._start, endValue: this._end } : { value: this._value };
@@ -506,6 +571,9 @@ __decorate([
506
571
  __decorate([
507
572
  state()
508
573
  ], NLDDSlider.prototype, "_active", void 0);
574
+ __decorate([
575
+ state()
576
+ ], NLDDSlider.prototype, "_held", void 0);
509
577
  __decorate([
510
578
  queryAll('.slider__input')
511
579
  ], NLDDSlider.prototype, "_inputs", void 0);