dso-toolkit 32.2.0 → 33.0.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 (148) hide show
  1. package/assets/dummy/images/{Medewerker.png → medewerker.png} +0 -0
  2. package/components/Componenten/form-elements/group-input-number.config.yml +2 -0
  3. package/components/Componenten/form-elements/group-input-number.njk +8 -3
  4. package/components/Componenten/input-number/input-number.config.yml +3 -3
  5. package/components/Componenten/input-number/input-number.njk +9 -8
  6. package/components/Componenten/list-button/list-button.njk +2 -2
  7. package/dist/library/@dso-toolkit/core/cjs/dso-dropdown-menu.cjs.entry.js +4 -1
  8. package/dist/library/@dso-toolkit/core/cjs/dso-toggletip.cjs.entry.js +2 -1
  9. package/dist/library/@dso-toolkit/core/cjs/dso-tree-view.cjs.entry.js +5 -4
  10. package/dist/library/@dso-toolkit/core/collection/components/dropdown-menu/dropdown-menu.css +4 -0
  11. package/dist/library/@dso-toolkit/core/collection/components/dropdown-menu/dropdown-menu.js +3 -0
  12. package/dist/library/@dso-toolkit/core/collection/components/toggletip/toggletip.css +4 -0
  13. package/dist/library/@dso-toolkit/core/collection/components/toggletip/toggletip.js +1 -0
  14. package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-item.js +3 -2
  15. package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-view.css +33 -5
  16. package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-view.js +11 -11
  17. package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-view.stories.js +23 -3
  18. package/dist/library/@dso-toolkit/core/custom-elements/index.js +11 -6
  19. package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
  20. package/dist/library/@dso-toolkit/core/dso-toolkit/p-741e96de.entry.js +5 -0
  21. package/dist/{toolkit/core/p-e2dc97c4.entry.js → library/@dso-toolkit/core/dso-toolkit/p-984551a8.entry.js} +1 -1
  22. package/dist/library/@dso-toolkit/core/dso-toolkit/p-e814d644.entry.js +1 -0
  23. package/dist/library/@dso-toolkit/core/esm/dso-dropdown-menu.entry.js +4 -1
  24. package/dist/library/@dso-toolkit/core/esm/dso-toggletip.entry.js +2 -1
  25. package/dist/library/@dso-toolkit/core/esm/dso-tree-view.entry.js +5 -4
  26. package/dist/library/@dso-toolkit/core/types/components/dropdown-menu/dropdown-menu.d.ts +1 -0
  27. package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-item.d.ts +4 -4
  28. package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-view.d.ts +12 -9
  29. package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-view.interfaces.d.ts +14 -4
  30. package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-view.template.d.ts +1 -1
  31. package/dist/library/@dso-toolkit/core/types/components.d.ts +7 -7
  32. package/dist/library/components/detail/activiteiten.html +2 -1
  33. package/dist/library/components/detail/form--autocomplete.html +1 -1
  34. package/dist/library/components/detail/form--form-horizontal.html +4 -1
  35. package/dist/library/components/detail/form--form-vertical.html +4 -1
  36. package/dist/library/components/detail/form--multi-page.html +1 -1
  37. package/dist/library/components/detail/form--sections.html +1 -1
  38. package/dist/library/components/detail/form--simple-form.html +1 -1
  39. package/dist/library/components/detail/form--single-page.html +1 -1
  40. package/dist/library/components/detail/form.html +7 -1
  41. package/dist/library/components/detail/group-input-number--default.html +11 -3
  42. package/dist/library/components/detail/group-input-number--input-number-inactive.html +11 -3
  43. package/dist/library/components/detail/group-input-number--input-number-maximum-limit.html +13 -4
  44. package/dist/library/components/detail/group-input-number--input-number-minimum-limit.html +13 -4
  45. package/dist/library/components/detail/group-input-number--no-label.html +10 -6
  46. package/dist/library/components/detail/group-input-number.html +26 -8
  47. package/dist/library/components/detail/input-number--default.html +8 -7
  48. package/dist/library/components/detail/input-number--input-number-inactive.html +8 -7
  49. package/dist/library/components/detail/input-number--input-number-maximum-limit.html +9 -8
  50. package/dist/library/components/detail/input-number--input-number-minimum-limit.html +9 -8
  51. package/dist/library/components/detail/input-number--no-label.html +10 -9
  52. package/dist/library/components/detail/input-number.html +12 -11
  53. package/dist/library/components/detail/list-button--button-disabled.html +2 -2
  54. package/dist/library/components/detail/list-button--button-met-extra-label-disabled.html +2 -2
  55. package/dist/library/components/detail/list-button--button-met-extra-label-en-input-number.html +4 -3
  56. package/dist/library/components/detail/list-button--button-met-extra-label-selected.html +2 -2
  57. package/dist/library/components/detail/list-button--button-met-extra-label.html +2 -2
  58. package/dist/library/components/detail/list-button--button-met-input-number-selected.html +4 -3
  59. package/dist/library/components/detail/list-button--button-met-input-number.html +4 -3
  60. package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst-en-extra-label.html +2 -2
  61. package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +4 -3
  62. package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst-en-input-number.html +4 -3
  63. package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst.html +2 -2
  64. package/dist/library/components/detail/list-button--button-met-optionele-tekst-disabled.html +2 -2
  65. package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-extra-label-disabled.html +2 -2
  66. package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-extra-label-selected.html +2 -2
  67. package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-extra-label.html +2 -2
  68. package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +4 -3
  69. package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-input-number.html +4 -3
  70. package/dist/library/components/detail/list-button--button-met-optionele-tekst-selected.html +2 -2
  71. package/dist/library/components/detail/list-button--button-met-optionele-tekst.html +2 -2
  72. package/dist/library/components/detail/list-button--button-selected.html +2 -2
  73. package/dist/library/components/detail/list-button--default.html +2 -2
  74. package/dist/library/components/detail/list-button.html +16 -9
  75. package/dist/library/components/preview/activiteiten.html +2 -0
  76. package/dist/library/components/preview/group-input-number--default.html +14 -10
  77. package/dist/library/components/preview/group-input-number--input-number-inactive.html +14 -10
  78. package/dist/library/components/preview/group-input-number--input-number-maximum-limit.html +14 -10
  79. package/dist/library/components/preview/group-input-number--input-number-minimum-limit.html +14 -10
  80. package/dist/library/components/preview/group-input-number--no-label.html +10 -10
  81. package/dist/library/components/preview/group-input-number.html +66 -50
  82. package/dist/library/components/preview/input-number--default.html +9 -7
  83. package/dist/library/components/preview/input-number--input-number-inactive.html +9 -7
  84. package/dist/library/components/preview/input-number--input-number-maximum-limit.html +9 -7
  85. package/dist/library/components/preview/input-number--input-number-minimum-limit.html +9 -7
  86. package/dist/library/components/preview/input-number--no-label.html +9 -7
  87. package/dist/library/components/preview/input-number.html +40 -35
  88. package/dist/library/components/preview/list-button--button-met-extra-label-en-input-number.html +10 -8
  89. package/dist/library/components/preview/list-button--button-met-input-number-selected.html +10 -8
  90. package/dist/library/components/preview/list-button--button-met-input-number.html +10 -8
  91. package/dist/library/components/preview/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +10 -8
  92. package/dist/library/components/preview/list-button--button-met-lange-optionele-tekst-en-input-number.html +10 -8
  93. package/dist/library/components/preview/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +10 -8
  94. package/dist/library/components/preview/list-button--button-met-optionele-tekst-en-input-number.html +10 -8
  95. package/dist/library/components/preview/list-button.html +63 -49
  96. package/dist/library/components/render/activiteiten.html +10 -8
  97. package/dist/library/components/render/form--form-horizontal.html +14 -10
  98. package/dist/library/components/render/form--form-vertical.html +14 -10
  99. package/dist/library/components/render/form.html +28 -20
  100. package/dist/library/components/render/group-input-number--default.html +14 -10
  101. package/dist/library/components/render/group-input-number--input-number-inactive.html +14 -10
  102. package/dist/library/components/render/group-input-number--input-number-maximum-limit.html +14 -10
  103. package/dist/library/components/render/group-input-number--input-number-minimum-limit.html +14 -10
  104. package/dist/library/components/render/group-input-number--no-label.html +10 -10
  105. package/dist/library/components/render/group-input-number.html +66 -50
  106. package/dist/library/components/render/input-number--default.html +9 -7
  107. package/dist/library/components/render/input-number--input-number-inactive.html +9 -7
  108. package/dist/library/components/render/input-number--input-number-maximum-limit.html +9 -7
  109. package/dist/library/components/render/input-number--input-number-minimum-limit.html +9 -7
  110. package/dist/library/components/render/input-number--no-label.html +9 -7
  111. package/dist/library/components/render/input-number.html +40 -35
  112. package/dist/library/components/render/list-button--button-met-extra-label-en-input-number.html +10 -8
  113. package/dist/library/components/render/list-button--button-met-input-number-selected.html +10 -8
  114. package/dist/library/components/render/list-button--button-met-input-number.html +10 -8
  115. package/dist/library/components/render/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +10 -8
  116. package/dist/library/components/render/list-button--button-met-lange-optionele-tekst-en-input-number.html +10 -8
  117. package/dist/library/components/render/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +10 -8
  118. package/dist/library/components/render/list-button--button-met-optionele-tekst-en-input-number.html +10 -8
  119. package/dist/library/components/render/list-button.html +63 -49
  120. package/dist/library/dummy/images/{Medewerker.png → medewerker.png} +0 -0
  121. package/dist/toolkit/core/dso-toolkit.esm.js +1 -1
  122. package/dist/toolkit/core/p-741e96de.entry.js +5 -0
  123. package/dist/{library/@dso-toolkit/core/dso-toolkit/p-e2dc97c4.entry.js → toolkit/core/p-984551a8.entry.js} +1 -1
  124. package/dist/toolkit/core/p-e814d644.entry.js +1 -0
  125. package/dist/toolkit/dummy/images/{Medewerker.png → medewerker.png} +0 -0
  126. package/hydrate/index.js +11 -6
  127. package/libs/@dso-toolkit/sources/src/components/input-number/input-number.stories.ts +1 -1
  128. package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.content.ts +40 -39
  129. package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.demo.ts +92 -9
  130. package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.models.ts +20 -9
  131. package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.stories.ts +16 -5
  132. package/package.json +2 -2
  133. package/reference/render/activiteiten.html +1 -1
  134. package/reference/render/group-input-number--input-number-maximum-limit.html +1 -1
  135. package/reference/render/group-input-number--input-number-minimum-limit.html +1 -1
  136. package/reference/render/group-input-number--no-label.html +1 -3
  137. package/reference/render/input-number--no-label.html +1 -1
  138. package/reference/render/list-button--button-met-extra-label-en-input-number.html +1 -1
  139. package/reference/render/list-button--button-met-input-number-selected.html +1 -1
  140. package/reference/render/list-button--button-met-input-number.html +1 -1
  141. package/reference/render/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +1 -1
  142. package/reference/render/list-button--button-met-lange-optionele-tekst-en-input-number.html +1 -1
  143. package/reference/render/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +1 -1
  144. package/reference/render/list-button--button-met-optionele-tekst-en-input-number.html +1 -1
  145. package/dist/library/@dso-toolkit/core/dso-toolkit/p-12f7e7d7.entry.js +0 -5
  146. package/dist/library/@dso-toolkit/core/dso-toolkit/p-ad8f467f.entry.js +0 -1
  147. package/dist/toolkit/core/p-12f7e7d7.entry.js +0 -5
  148. package/dist/toolkit/core/p-ad8f467f.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, F as Fragment, g as getElement } from './index-61410be2.js';
2
2
 
3
- const toggletipCss = "*,*::after,*::before{box-sizing:border-box}";
3
+ const toggletipCss = "*,*::after,*::before{box-sizing:border-box}:host(:focus){outline:none}";
4
4
 
5
5
  let Toggletip = class {
6
6
  constructor(hostRef) {
@@ -47,6 +47,7 @@ let Toggletip = class {
47
47
  throw Error("button not found");
48
48
  }
49
49
  this.button = button;
50
+ this.host.setAttribute("tabindex", "-1");
50
51
  }
51
52
  render() {
52
53
  return (h(Fragment, null, h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary }), h("dso-tooltip", { stateless: true, for: "toggle", active: this.active, position: this.position, small: this.small }, h("slot", null))));
@@ -3,13 +3,14 @@ import { c as clsx } from './clsx.m-071989db.js';
3
3
 
4
4
  const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
5
5
  var _a, _b, _c;
6
- return (h("li", { key: item.reference, class: clsx('tree-item', { 'has-child': item.hasItems }), role: 'none' },
6
+ return (h("li", { key: item.id, class: clsx('tree-item', { 'has-child': item.hasItems }), role: 'none' },
7
7
  h("div", { class: "tree-branch-control" }, item.hasItems
8
8
  ?
9
9
  h("div", { onClick: (e) => owner.itemClick(e, ancestors, item) },
10
10
  h("dso-icon", { icon: item.open ? 'chevron-down' : 'chevron-right' }))
11
11
  : h("dso-icon", null)),
12
- h("p", { class: "tree-content", tabindex: level === 1 && index === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((_a = item.items) === null || _a === void 0 ? void 0 : _a.length)) : undefined, "aria-level": level, "aria-setsize": setSize, "aria-posinset": index + 1, "aria-busy": item.loading ? 'true' : undefined, onClick: (e) => owner.itemClick(e, ancestors, item) },
12
+ h("p", { class: clsx('tree-content', { 'active': item.active }, { 'selected': item.selected }), tabindex: level === 1 && index === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((_a = item.items) === null || _a === void 0 ? void 0 : _a.length)) : undefined, "aria-current": item.active ? 'true' : undefined, "aria-level": level, "aria-setsize": setSize, "aria-posinset": index + 1, "aria-busy": item.loading ? 'true' : undefined, onClick: (e) => owner.itemClick(e, ancestors, item) },
13
+ item.selected && h("span", { class: "sr-only" }, "Resultaat: "),
13
14
  item.href
14
15
  ? h("a", { href: item.href, tabindex: "-1" }, item.label)
15
16
  : h("span", null, item.label), (_b = item.icons) === null || _b === void 0 ? void 0 :
@@ -20,7 +21,7 @@ const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
20
21
  : h("ul", { role: "group" }, (_c = item.items) === null || _c === void 0 ? void 0 : _c.map((childItem, index, org) => h(DsoTreeItem, { owner: owner, ancestors: [...ancestors, item], item: childItem, index: index, level: level + 1, setSize: org.length }))))));
21
22
  };
22
23
 
23
- const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content a,:host .tree-content a:visited{color:#39870c;text-decoration:none}:host .tree-content a:hover,:host .tree-content a:focus{color:#676cb0;text-decoration:underline}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{vertical-align:text-bottom;font-size:0.75em;margin-left:0.5em}*,*::after,*::before{box-sizing:border-box}";
24
+ const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content.active{font-weight:700}:host .tree-content.active:hover{text-decoration:underline}:host .tree-content.active a{text-decoration:none}:host .tree-content.selected{color:#191919;font-weight:700;text-decoration:underline}:host .tree-content.selected:hover,:host .tree-content.selected:focus{text-decoration:none}:host .tree-content a,:host .tree-content a:visited{color:#191919;text-decoration:underline}:host .tree-content a:hover,:host .tree-content a:focus{color:#191919;text-decoration:none}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{font-size:0.75em;margin-left:0.5em;vertical-align:text-bottom}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
24
25
 
25
26
  let TreeView = class {
26
27
  constructor(hostRef) {
@@ -81,7 +82,7 @@ let TreeView = class {
81
82
  return;
82
83
  }
83
84
  TreeView.setFocus(tree, contentElement);
84
- this.clickItem.emit([...ancestors, item]);
85
+ this.clickItem.emit({ path: [...ancestors, item], originalEvent: event });
85
86
  return;
86
87
  }
87
88
  if (item.open) {
@@ -18,6 +18,7 @@ export declare class DropdownMenu {
18
18
  get tabbables(): FocusableElement[];
19
19
  openWatch(open: boolean): void;
20
20
  connectedCallback(): void;
21
+ componentDidRender(): void;
21
22
  componentWillRender(): void;
22
23
  openPopup(): void;
23
24
  closePopup(): void;
@@ -1,13 +1,13 @@
1
1
  import { FunctionalComponent } from '../../stencil-public-runtime';
2
2
  import { TreeViewItem } from '@dso-toolkit/sources';
3
3
  import { TreeView } from './tree-view';
4
- interface TreeViewItemProps<T> {
4
+ interface TreeViewItemProps {
5
5
  owner: TreeView;
6
- ancestors: TreeViewItem<T>[];
7
- item: TreeViewItem<T>;
6
+ ancestors: TreeViewItem[];
7
+ item: TreeViewItem;
8
8
  index: number;
9
9
  level: number;
10
10
  setSize: number;
11
11
  }
12
- export declare const DsoTreeItem: FunctionalComponent<TreeViewItemProps<string>>;
12
+ export declare const DsoTreeItem: FunctionalComponent<TreeViewItemProps>;
13
13
  export {};
@@ -1,32 +1,35 @@
1
- import { ComponentInterface, Event, EventEmitter } from '../../stencil-public-runtime';
2
- import { TreeViewItem } from './tree-view.interfaces';
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ import { TreeViewPointerEvent, TreeViewItem } from './tree-view.interfaces';
3
3
  export declare class TreeView implements ComponentInterface {
4
4
  /**
5
5
  * The collection of TreeViewItems
6
6
  */
7
- collection: TreeViewItem<string>[];
7
+ collection: TreeViewItem[];
8
8
  /**
9
9
  * Emitted when a tree view item is opened.
10
10
  * The `detail` property of the `CustomEvent` will contain the complete path of TreeViewItems from the
11
11
  * root to the item that is emitting the open event. The consumer of the event is responsible for updating
12
12
  * the TreeView's collection (usually set the open state on the last TreeViewItem in path).
13
13
  */
14
- openItem: EventEmitter<TreeViewItem<string>[]>;
14
+ openItem: EventEmitter<TreeViewItem[]>;
15
15
  /**
16
16
  * Emitted when a tree view item is closed.
17
17
  * The `detail` property of the `CustomEvent` will contain the complete path of TreeViewItems from the
18
18
  * root to the item that is emitting the close event. The consumer of the event is responsible for updating
19
19
  * the TreeView's collection (usually set the closed state on the last TreeViewItem in path).
20
20
  */
21
- closeItem: EventEmitter<TreeViewItem<string>[]>;
21
+ closeItem: EventEmitter<TreeViewItem[]>;
22
22
  /**
23
23
  * Emitted when a tree view item is clicked.
24
- * The `detail` property of the `CustomEvent` will contain the complete path of TreeViewItems from the
25
- * root to the item that is emitting the clicked event.
24
+ * The `detail` property of the `CustomEvent` will contain an object with:
25
+ * `path` = the complete path of TreeViewItems from the root to the item that is emitting the clicked event.
26
+ * `originalEvent` = the original click event.
27
+ * The consumer of the event is responsible for updating the TreeView's collection (usually set the active
28
+ * state on the last TreeViewItem in path and clear all other active item states).
26
29
  */
27
- clickItem: EventEmitter<TreeViewItem<string>[]>;
30
+ clickItem: EventEmitter<TreeViewPointerEvent>;
28
31
  keyDownListener: (event: KeyboardEvent) => void;
29
- itemClick: (event: Event, ancestors: TreeViewItem<string>[], item: TreeViewItem<string>) => void;
32
+ itemClick: (event: MouseEvent, ancestors: TreeViewItem[], item: TreeViewItem) => void;
30
33
  private static setFocus;
31
34
  private static moveFocus;
32
35
  private static expandItemOrFocusChild;
@@ -1,6 +1,6 @@
1
- export interface TreeViewItem<T> {
2
- /** The reference of type T */
3
- reference: T;
1
+ export interface TreeViewItem {
2
+ /** The id of the item */
3
+ id: string;
4
4
  /** The label of the item */
5
5
  label: string;
6
6
  /** The optional href of the item (creates a link) */
@@ -8,11 +8,15 @@ export interface TreeViewItem<T> {
8
8
  /** Indicates whether the item has children */
9
9
  hasItems: boolean;
10
10
  /** The array of child items */
11
- items?: TreeViewItem<T>[];
11
+ items?: TreeViewItem[];
12
12
  /** Indicates whether the node is open and child items are shown */
13
13
  open?: boolean;
14
14
  /** Indicates the node is loading child items */
15
15
  loading?: boolean;
16
+ /** Indicates the node is active, only one item should be active */
17
+ active?: boolean;
18
+ /** Indicates the node is selected, multiple items can be selected */
19
+ selected?: boolean;
16
20
  /** An optional array of icons */
17
21
  icons?: TreeViewItemIcon[];
18
22
  }
@@ -22,3 +26,9 @@ export interface TreeViewItemIcon {
22
26
  /** The label for the icon */
23
27
  label: string;
24
28
  }
29
+ export interface TreeViewPointerEvent {
30
+ /** The path to the clicked item */
31
+ path: TreeViewItem[];
32
+ /** The original pointer event */
33
+ originalEvent: MouseEvent;
34
+ }
@@ -1,2 +1,2 @@
1
1
  import { TreeView } from '@dso-toolkit/sources';
2
- export declare function treeViewTemplate({ collection, onOpenItem, onCloseItem, onClickItem }: TreeView<string>): import("lit-html").TemplateResult<1>;
2
+ export declare function treeViewTemplate({ collection, onOpenItem, onCloseItem, onClickItem }: TreeView): import("lit-html").TemplateResult<1>;
@@ -12,7 +12,7 @@ import { BaseLayer } from "./components/map-base-layers/map-base-layers.interfac
12
12
  import { Overlay } from "./components/map-overlays/map-overlays.interfaces";
13
13
  import { ContentAnchor } from "./components/ozon-content/ozon-content.interfaces";
14
14
  import { SelectableChangeEvent } from "./components/selectable/selectable";
15
- import { TreeViewItem } from "./components/tree-view/tree-view.interfaces";
15
+ import { TreeViewItem, TreeViewPointerEvent } from "./components/tree-view/tree-view.interfaces";
16
16
  export namespace Components {
17
17
  interface DsoAlert {
18
18
  /**
@@ -221,7 +221,7 @@ export namespace Components {
221
221
  /**
222
222
  * The collection of TreeViewItems
223
223
  */
224
- "collection": TreeViewItem<string>[];
224
+ "collection": TreeViewItem[];
225
225
  }
226
226
  }
227
227
  declare global {
@@ -614,19 +614,19 @@ declare namespace LocalJSX {
614
614
  /**
615
615
  * The collection of TreeViewItems
616
616
  */
617
- "collection": TreeViewItem<string>[];
617
+ "collection": TreeViewItem[];
618
618
  /**
619
- * Emitted when a tree view item is clicked. The `detail` property of the `CustomEvent` will contain the complete path of TreeViewItems from the root to the item that is emitting the clicked event.
619
+ * Emitted when a tree view item is clicked. The `detail` property of the `CustomEvent` will contain an object with: `path` = the complete path of TreeViewItems from the root to the item that is emitting the clicked event. `originalEvent` = the original click event. The consumer of the event is responsible for updating the TreeView's collection (usually set the active state on the last TreeViewItem in path and clear all other active item states).
620
620
  */
621
- "onClickItem"?: (event: CustomEvent<TreeViewItem<string>[]>) => void;
621
+ "onClickItem"?: (event: CustomEvent<TreeViewPointerEvent>) => void;
622
622
  /**
623
623
  * Emitted when a tree view item is closed. The `detail` property of the `CustomEvent` will contain the complete path of TreeViewItems from the root to the item that is emitting the close event. The consumer of the event is responsible for updating the TreeView's collection (usually set the closed state on the last TreeViewItem in path).
624
624
  */
625
- "onCloseItem"?: (event: CustomEvent<TreeViewItem<string>[]>) => void;
625
+ "onCloseItem"?: (event: CustomEvent<TreeViewItem[]>) => void;
626
626
  /**
627
627
  * Emitted when a tree view item is opened. The `detail` property of the `CustomEvent` will contain the complete path of TreeViewItems from the root to the item that is emitting the open event. The consumer of the event is responsible for updating the TreeView's collection (usually set the open state on the last TreeViewItem in path).
628
628
  */
629
- "onOpenItem"?: (event: CustomEvent<TreeViewItem<string>[]>) => void;
629
+ "onOpenItem"?: (event: CustomEvent<TreeViewItem[]>) => void;
630
630
  }
631
631
  interface IntrinsicElements {
632
632
  "dso-alert": DsoAlert;
@@ -1645,12 +1645,13 @@
1645
1645
  <span class="hljs-tag">&lt;<span class="hljs-name">dso-icon</span> <span class="hljs-attr">icon</span>=<span class="hljs-string">&quot;minus-square&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">dso-icon</span>&gt;</span>
1646
1646
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1647
1647
 
1648
- <span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;number&quot;</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;in-stand-houden-van-bouwwerken&quot;</span> <span class="hljs-attr">readonly</span> <span class="hljs-attr">tabindex</span>=<span class="hljs-string">&quot;-1&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-step-counter&quot;</span> <span class="hljs-attr">value</span>=<span class="hljs-string">&quot;0&quot;</span>&gt;</span>
1648
+ <span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;number&quot;</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;in-stand-houden-van-bouwwerken&quot;</span> <span class="hljs-attr">readonly</span> <span class="hljs-attr">tabindex</span>=<span class="hljs-string">&quot;-1&quot;</span> <span class="hljs-attr">aria-label</span>=<span class="hljs-string">&quot;Aantal&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-step-counter&quot;</span> <span class="hljs-attr">value</span>=<span class="hljs-string">&quot;0&quot;</span>&gt;</span>
1649
1649
  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-tertiary&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;sr-only&quot;</span>&gt;</span>Aantal verhogen<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
1650
1650
  <span class="hljs-tag">&lt;<span class="hljs-name">dso-icon</span> <span class="hljs-attr">icon</span>=<span class="hljs-string">&quot;plus-square&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">dso-icon</span>&gt;</span>
1651
1651
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1652
1652
 
1653
1653
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1654
+
1654
1655
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1655
1656
 
1656
1657
  <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;btn dso-list-button&quot;</span>&gt;</span>
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#x61;&#x61;&#x6d;&#64;&#x64;&#x6f;&#109;&#101;&#105;&#x6e;&#x2e;&#110;&#x6c;">&#x6e;&#x61;&#x61;&#x6d;&#64;&#x64;&#x6f;&#109;&#101;&#105;&#x6e;&#x2e;&#110;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#97;&#x61;&#x6d;&#x40;&#100;&#x6f;&#x6d;&#101;&#x69;&#x6e;&#x2e;&#110;&#x6c;">&#110;&#97;&#x61;&#x6d;&#x40;&#100;&#x6f;&#x6d;&#101;&#x69;&#x6e;&#x2e;&#110;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#97;&#x61;&#109;&#64;&#100;&#111;&#109;&#x65;&#105;&#110;&#46;&#110;&#108;">&#x6e;&#97;&#x61;&#109;&#64;&#100;&#111;&#109;&#x65;&#105;&#110;&#46;&#110;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#97;&#x61;&#109;&#x40;&#x64;&#x6f;&#109;&#101;&#x69;&#110;&#46;&#x6e;&#x6c;">&#x6e;&#97;&#x61;&#109;&#x40;&#x64;&#x6f;&#109;&#101;&#x69;&#110;&#46;&#x6e;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1787,9 +1787,11 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
1787
1787
 
1788
1788
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1789
1789
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1790
+
1790
1791
  <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;form-horizontal-input-number-voorbeeld&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1791
1792
  Aantal
1792
1793
  <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1794
+
1793
1795
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1794
1796
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1795
1797
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-number&quot;</span>&gt;</span>
@@ -1804,6 +1806,7 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
1804
1806
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1805
1807
 
1806
1808
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1809
+
1807
1810
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1808
1811
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1809
1812
 
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#x61;&#x61;&#109;&#x40;&#100;&#x6f;&#109;&#101;&#105;&#110;&#46;&#110;&#108;">&#x6e;&#x61;&#x61;&#109;&#x40;&#100;&#x6f;&#109;&#101;&#105;&#110;&#46;&#110;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#x61;&#97;&#x6d;&#x40;&#100;&#x6f;&#x6d;&#101;&#105;&#x6e;&#46;&#110;&#108;">&#x6e;&#x61;&#97;&#x6d;&#x40;&#100;&#x6f;&#x6d;&#101;&#105;&#x6e;&#46;&#110;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1787,9 +1787,11 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
1787
1787
 
1788
1788
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1789
1789
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1790
+
1790
1791
  <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;form-vertical-input-number-voorbeeld&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1791
1792
  Aantal
1792
1793
  <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1794
+
1793
1795
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1794
1796
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1795
1797
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-number&quot;</span>&gt;</span>
@@ -1804,6 +1806,7 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
1804
1806
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1805
1807
 
1806
1808
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1809
+
1807
1810
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1808
1811
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1809
1812
 
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#x61;&#97;&#109;&#64;&#100;&#111;&#x6d;&#101;&#x69;&#110;&#46;&#110;&#x6c;">&#x6e;&#x61;&#97;&#109;&#64;&#100;&#111;&#x6d;&#101;&#x69;&#110;&#46;&#110;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#x61;&#97;&#109;&#x40;&#100;&#111;&#x6d;&#x65;&#105;&#110;&#x2e;&#x6e;&#108;">&#x6e;&#x61;&#97;&#109;&#x40;&#100;&#111;&#x6d;&#x65;&#105;&#110;&#x2e;&#x6e;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#97;&#x61;&#109;&#x40;&#x64;&#x6f;&#x6d;&#x65;&#x69;&#110;&#46;&#110;&#108;">&#110;&#97;&#x61;&#109;&#x40;&#x64;&#x6f;&#x6d;&#x65;&#x69;&#110;&#46;&#110;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#x61;&#97;&#109;&#64;&#x64;&#x6f;&#109;&#x65;&#x69;&#110;&#x2e;&#x6e;&#x6c;">&#110;&#x61;&#97;&#109;&#64;&#x64;&#x6f;&#109;&#x65;&#x69;&#110;&#x2e;&#x6e;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#x6e;&#x61;&#x61;&#109;&#64;&#100;&#111;&#109;&#x65;&#105;&#x6e;&#x2e;&#x6e;&#x6c;">&#x6e;&#x61;&#x61;&#109;&#64;&#100;&#111;&#109;&#x65;&#105;&#x6e;&#x2e;&#x6e;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#97;&#x61;&#109;&#64;&#x64;&#111;&#109;&#x65;&#105;&#110;&#x2e;&#110;&#x6c;">&#110;&#97;&#x61;&#109;&#64;&#x64;&#111;&#109;&#x65;&#105;&#110;&#x2e;&#110;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#x61;&#97;&#109;&#x40;&#100;&#111;&#109;&#x65;&#105;&#110;&#46;&#x6e;&#108;">&#110;&#x61;&#97;&#109;&#x40;&#100;&#111;&#109;&#x65;&#105;&#110;&#46;&#x6e;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#x61;&#x61;&#x6d;&#x40;&#x64;&#x6f;&#109;&#101;&#105;&#110;&#x2e;&#x6e;&#x6c;">&#110;&#x61;&#x61;&#x6d;&#x40;&#x64;&#x6f;&#109;&#101;&#105;&#110;&#x2e;&#x6e;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1332,7 +1332,7 @@ Op het moment dat de gebruiker focus verplaatst uit het verplichte invoerveld of
1332
1332
  </ul>
1333
1333
  <p><img src="../../docs/images/form-verplicht.jpg" alt="Formulier met verplichte invoervelden"></p>
1334
1334
  <p><strong>Verplicht invoerformaat</strong>
1335
- Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#97;&#97;&#x6d;&#x40;&#100;&#111;&#109;&#101;&#105;&#110;&#x2e;&#110;&#108;">&#110;&#97;&#97;&#x6d;&#x40;&#100;&#111;&#109;&#101;&#105;&#110;&#x2e;&#110;&#108;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1335
+ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvoorbeeld een e-mailadres wat de vorm <a href="mailto:&#110;&#97;&#97;&#x6d;&#x40;&#x64;&#111;&#109;&#101;&#105;&#110;&#46;&#x6e;&#x6c;">&#110;&#97;&#97;&#x6d;&#x40;&#x64;&#111;&#109;&#101;&#105;&#110;&#46;&#x6e;&#x6c;</a> moet hebben. Het is belangrijk om vóór het invoerveld duidelijk te maken wat de eisen zijn aan de invoer, óf automatisch de invoer te corrigeren. Bijvoorbeeld: Postcode (1234 AB). Het beste is om de instructie binnen het labelelement te plaatsen zodat de instructie wordt voorgelezen als de bezoeker op het invoerveld staat.</p>
1336
1336
  <p><img src="../../docs/images/form-verplicht-formaat.jpg" alt="Formulier met verplicht invoerformaat"></p>
1337
1337
  <h3 id="toegankelijkheid-meldingen">Toegankelijkheid meldingen</h3>
1338
1338
  <p>De formulierwerkvormen kunnen voorzien worden van een:</p>
@@ -1790,9 +1790,11 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
1790
1790
 
1791
1791
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1792
1792
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1793
+
1793
1794
  <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;form-vertical-input-number-voorbeeld&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1794
1795
  Aantal
1795
1796
  <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1797
+
1796
1798
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1797
1799
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1798
1800
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-number&quot;</span>&gt;</span>
@@ -1807,6 +1809,7 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
1807
1809
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1808
1810
 
1809
1811
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1812
+
1810
1813
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1811
1814
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1812
1815
 
@@ -2335,9 +2338,11 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
2335
2338
 
2336
2339
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
2337
2340
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
2341
+
2338
2342
  <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;form-horizontal-input-number-voorbeeld&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
2339
2343
  Aantal
2340
2344
  <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
2345
+
2341
2346
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
2342
2347
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
2343
2348
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-number&quot;</span>&gt;</span>
@@ -2352,6 +2357,7 @@ Net als de verplichte velden kunnen er ook verplichte invoerformaten zijn. Bijvo
2352
2357
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
2353
2358
 
2354
2359
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
2360
+
2355
2361
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
2356
2362
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
2357
2363
 
@@ -1332,9 +1332,11 @@
1332
1332
 
1333
1333
  <pre><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1334
1334
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1335
+
1335
1336
  <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;default&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1336
1337
  Default
1337
1338
  <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1339
+
1338
1340
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1339
1341
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1340
1342
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-number&quot;</span>&gt;</span>
@@ -1349,6 +1351,7 @@
1349
1351
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1350
1352
 
1351
1353
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1354
+
1352
1355
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1353
1356
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre>
1354
1357
 
@@ -1361,14 +1364,19 @@
1361
1364
 
1362
1365
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1363
1366
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1364
- <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;</span></span></span><span class="hljs-template-variable">{{ localId }}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1365
- </span><span class="hljs-template-variable">{{ label }}</span><span class="xml">
1366
- <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1367
+ </span><span class="hljs-template-tag">{% <span class="hljs-name"><span class="hljs-name">if</span></span> label %}</span><span class="xml">
1368
+ <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;</span></span></span><span class="hljs-template-variable">{{ localId }}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1369
+ </span><span class="hljs-template-variable">{{ label }}</span><span class="xml">
1370
+ <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1371
+ </span><span class="hljs-template-tag">{% <span class="hljs-name"><span class="hljs-name">endif</span></span> %}</span><span class="xml">
1367
1372
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1368
1373
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1369
1374
  </span><span class="hljs-template-tag">{% <span class="hljs-name">render</span> &#x27;<a href="./input-number.html">@input-number</a>&#x27;, {
1370
1375
  id: localId,
1371
1376
  count: count,
1377
+ min: min,
1378
+ max: max,
1379
+ label: null if label else &#x27;&#x27;,
1372
1380
  minusButtonLabel: minusButtonLabel,
1373
1381
  minusButtonInactive: minusButtonInactive,
1374
1382
  plusButtonLabel: plusButtonLabel,
@@ -1332,9 +1332,11 @@
1332
1332
 
1333
1333
  <pre><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1334
1334
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1335
+
1335
1336
  <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;inactive&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1336
1337
  Inactive input number
1337
1338
  <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1339
+
1338
1340
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1339
1341
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1340
1342
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-input-number&quot;</span>&gt;</span>
@@ -1349,6 +1351,7 @@
1349
1351
  <span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
1350
1352
 
1351
1353
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1354
+
1352
1355
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1353
1356
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre>
1354
1357
 
@@ -1361,14 +1364,19 @@
1361
1364
 
1362
1365
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group dso-input-number&quot;</span>&gt;</span>
1363
1366
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-label-container&quot;</span>&gt;</span>
1364
- <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;</span></span></span><span class="hljs-template-variable">{{ localId }}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1365
- </span><span class="hljs-template-variable">{{ label }}</span><span class="xml">
1366
- <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1367
+ </span><span class="hljs-template-tag">{% <span class="hljs-name"><span class="hljs-name">if</span></span> label %}</span><span class="xml">
1368
+ <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;</span></span></span><span class="hljs-template-variable">{{ localId }}</span><span class="xml"><span class="hljs-tag"><span class="hljs-string">&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;control-label&quot;</span>&gt;</span>
1369
+ </span><span class="hljs-template-variable">{{ label }}</span><span class="xml">
1370
+ <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
1371
+ </span><span class="hljs-template-tag">{% <span class="hljs-name"><span class="hljs-name">endif</span></span> %}</span><span class="xml">
1367
1372
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
1368
1373
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dso-field-container&quot;</span>&gt;</span>
1369
1374
  </span><span class="hljs-template-tag">{% <span class="hljs-name">render</span> &#x27;<a href="./input-number.html">@input-number</a>&#x27;, {
1370
1375
  id: localId,
1371
1376
  count: count,
1377
+ min: min,
1378
+ max: max,
1379
+ label: null if label else &#x27;&#x27;,
1372
1380
  minusButtonLabel: minusButtonLabel,
1373
1381
  minusButtonInactive: minusButtonInactive,
1374
1382
  plusButtonLabel: plusButtonLabel,