@dso-toolkit/core 51.2.0 → 51.3.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 (165) hide show
  1. package/dist/cjs/annotation.service-e980f478.js +21 -0
  2. package/dist/cjs/dso-accordion.cjs.entry.js +2 -192
  3. package/dist/cjs/dso-annotation-button.cjs.entry.js +25 -0
  4. package/dist/cjs/dso-annotation-output.cjs.entry.js +35 -0
  5. package/dist/cjs/dso-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-card.cjs.entry.js +5 -3
  7. package/dist/cjs/dso-expandable-heading.cjs.entry.js +47 -0
  8. package/dist/cjs/dso-expandable.cjs.entry.js +20 -0
  9. package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -2
  10. package/dist/cjs/dso-label.cjs.entry.js +2 -2
  11. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  12. package/dist/cjs/index-71b733b1.js +196 -0
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +4 -0
  15. package/dist/collection/components/annotation-button/annotation-button.css +3 -0
  16. package/dist/collection/components/annotation-button/annotation-button.js +45 -0
  17. package/dist/collection/components/annotation-output/annotation-output.css +82 -0
  18. package/dist/collection/components/annotation-output/annotation-output.interfaces.js +1 -0
  19. package/dist/collection/components/annotation-output/annotation-output.js +126 -0
  20. package/dist/collection/components/badge/badge.css +5 -0
  21. package/dist/collection/components/badge/badge.js +2 -2
  22. package/dist/collection/components/card/card.css +0 -1
  23. package/dist/collection/components/card/card.js +22 -2
  24. package/dist/collection/components/expandable/expandable.css +24 -0
  25. package/dist/collection/components/expandable/expandable.js +42 -0
  26. package/dist/collection/components/expandable-heading/expandable-heading.css +145 -0
  27. package/dist/collection/components/expandable-heading/expandable-heading.interfaces.js +1 -0
  28. package/dist/collection/components/expandable-heading/expandable-heading.js +117 -0
  29. package/dist/collection/components/expandable-heading/heading.js +16 -0
  30. package/dist/collection/components/image-overlay/image-overlay.js +1 -3
  31. package/dist/collection/components/label/label.css +9 -8
  32. package/dist/collection/components/label/label.js +3 -3
  33. package/dist/collection/index.js +2 -0
  34. package/dist/collection/services/annotation.service.js +16 -0
  35. package/dist/components/annotation.service.js +19 -0
  36. package/dist/components/dso-accordion-section.js +1 -1
  37. package/dist/components/dso-accordion.js +2 -192
  38. package/dist/components/dso-annotation-button.d.ts +11 -0
  39. package/dist/components/dso-annotation-button.js +45 -0
  40. package/dist/components/dso-annotation-output.d.ts +11 -0
  41. package/dist/components/dso-annotation-output.js +69 -0
  42. package/dist/components/dso-autosuggest.js +1 -1
  43. package/dist/components/dso-badge.js +1 -1
  44. package/dist/components/dso-card.js +7 -4
  45. package/dist/components/dso-expandable-heading.d.ts +11 -0
  46. package/dist/components/dso-expandable-heading.js +77 -0
  47. package/dist/components/dso-expandable.d.ts +11 -0
  48. package/dist/components/dso-expandable.js +6 -0
  49. package/dist/components/dso-header.js +1 -1
  50. package/dist/components/dso-image-overlay.js +2 -4
  51. package/dist/components/dso-label.js +2 -2
  52. package/dist/components/dso-table.js +1 -1
  53. package/dist/components/expandable.js +33 -0
  54. package/dist/components/index.d.ts +4 -0
  55. package/dist/components/index.js +4 -0
  56. package/dist/components/index2.js +185 -61
  57. package/dist/components/index3.js +70 -0
  58. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  59. package/dist/dso-toolkit/p-09424a1d.entry.js +1 -0
  60. package/dist/dso-toolkit/{p-a9baa631.entry.js → p-0af9bfb1.entry.js} +1 -1
  61. package/dist/dso-toolkit/{p-0e5315a3.entry.js → p-0bc8885e.entry.js} +1 -1
  62. package/dist/dso-toolkit/{p-ce475f06.entry.js → p-0ca60778.entry.js} +1 -1
  63. package/dist/dso-toolkit/{p-746dc38a.entry.js → p-0fce0861.entry.js} +1 -1
  64. package/dist/dso-toolkit/{p-04ffcc93.entry.js → p-1854d6ed.entry.js} +1 -1
  65. package/dist/dso-toolkit/{p-a8cb2eae.entry.js → p-1aef13ee.entry.js} +1 -1
  66. package/dist/dso-toolkit/{p-19323600.entry.js → p-1cb94d7d.entry.js} +1 -1
  67. package/dist/dso-toolkit/{p-abbcbe6a.entry.js → p-1f0672f2.entry.js} +1 -1
  68. package/dist/dso-toolkit/{p-c846d208.entry.js → p-22f9240a.entry.js} +1 -1
  69. package/dist/dso-toolkit/p-2af58b20.entry.js +1 -0
  70. package/dist/dso-toolkit/{p-427f6d90.entry.js → p-3914ad70.entry.js} +1 -1
  71. package/dist/dso-toolkit/{p-67c4987c.entry.js → p-43f3d736.entry.js} +1 -1
  72. package/dist/dso-toolkit/p-452c7fbb.entry.js +1 -0
  73. package/dist/dso-toolkit/{p-3b8cbd05.entry.js → p-494fe8e5.entry.js} +1 -1
  74. package/dist/dso-toolkit/p-4b8535b7.js +1 -0
  75. package/dist/dso-toolkit/{p-ff72ee4c.entry.js → p-588bc4d7.entry.js} +1 -1
  76. package/dist/dso-toolkit/{p-c7ec6e6e.entry.js → p-5b7c0fa5.entry.js} +1 -1
  77. package/dist/dso-toolkit/p-67df25a7.entry.js +1 -0
  78. package/dist/dso-toolkit/p-6cdc1acd.entry.js +1 -0
  79. package/dist/dso-toolkit/{p-11176cb8.entry.js → p-82465cdc.entry.js} +1 -1
  80. package/dist/dso-toolkit/p-89b97fce.js +1 -0
  81. package/dist/dso-toolkit/{p-8aa39e7f.entry.js → p-8de85ae7.entry.js} +1 -1
  82. package/dist/dso-toolkit/{p-8e9f6355.entry.js → p-96efc763.entry.js} +1 -1
  83. package/dist/dso-toolkit/{p-8f35c8f8.js → p-98fd1658.js} +1 -1
  84. package/dist/dso-toolkit/p-9b07b034.entry.js +1 -0
  85. package/dist/dso-toolkit/p-ad0b38cf.entry.js +1 -0
  86. package/dist/dso-toolkit/{p-06b4f78d.entry.js → p-b337f001.entry.js} +1 -1
  87. package/dist/dso-toolkit/{p-6080bb9e.entry.js → p-ba0da696.entry.js} +1 -1
  88. package/dist/dso-toolkit/{p-520a2cdd.entry.js → p-c16ce11e.entry.js} +1 -1
  89. package/dist/dso-toolkit/p-c4c309b5.entry.js +1 -0
  90. package/dist/dso-toolkit/{p-655eff47.entry.js → p-c54ad578.entry.js} +1 -1
  91. package/dist/dso-toolkit/{p-35687d62.entry.js → p-d4772fb0.entry.js} +1 -1
  92. package/dist/dso-toolkit/{p-2fa96ac0.entry.js → p-d6ea8670.entry.js} +1 -1
  93. package/dist/dso-toolkit/{p-ec25868b.entry.js → p-d987ef37.entry.js} +1 -1
  94. package/dist/dso-toolkit/{p-92ad1cdb.entry.js → p-e00a3019.entry.js} +1 -1
  95. package/dist/dso-toolkit/{p-ec4501bb.entry.js → p-e4f667b3.entry.js} +1 -1
  96. package/dist/dso-toolkit/p-ee1acb32.entry.js +1 -0
  97. package/dist/dso-toolkit/{p-55142124.entry.js → p-efdf5c91.entry.js} +1 -1
  98. package/dist/dso-toolkit/p-f3f0d6c9.entry.js +1 -0
  99. package/dist/dso-toolkit/{p-76a1428a.entry.js → p-f8a08ba1.entry.js} +1 -1
  100. package/dist/dso-toolkit/{p-c2157b55.entry.js → p-fbb20550.entry.js} +1 -1
  101. package/dist/esm/annotation.service-d0add3fc.js +19 -0
  102. package/dist/esm/dso-accordion-section.entry.js +1 -1
  103. package/dist/esm/dso-accordion.entry.js +2 -192
  104. package/dist/esm/dso-alert.entry.js +1 -1
  105. package/dist/esm/dso-annotation-button.entry.js +21 -0
  106. package/dist/esm/dso-annotation-output.entry.js +31 -0
  107. package/dist/esm/dso-attachments-counter.entry.js +1 -1
  108. package/dist/esm/dso-autosuggest.entry.js +1 -1
  109. package/dist/esm/dso-badge.entry.js +2 -2
  110. package/dist/esm/dso-banner.entry.js +1 -1
  111. package/dist/esm/dso-card-container.entry.js +1 -1
  112. package/dist/esm/dso-card.entry.js +6 -4
  113. package/dist/esm/dso-date-picker.entry.js +1 -1
  114. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  115. package/dist/esm/dso-expandable-heading.entry.js +43 -0
  116. package/dist/esm/dso-expandable.entry.js +16 -0
  117. package/dist/esm/dso-header.entry.js +1 -1
  118. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  119. package/dist/esm/dso-highlight-box.entry.js +1 -1
  120. package/dist/esm/dso-icon.entry.js +1 -1
  121. package/dist/esm/dso-image-overlay.entry.js +2 -3
  122. package/dist/esm/dso-info-button.entry.js +1 -1
  123. package/dist/esm/dso-info_2.entry.js +1 -1
  124. package/dist/esm/dso-label.entry.js +3 -3
  125. package/dist/esm/dso-list-button.entry.js +1 -1
  126. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  127. package/dist/esm/dso-map-controls.entry.js +1 -1
  128. package/dist/esm/dso-map-overlays.entry.js +1 -1
  129. package/dist/esm/dso-modal.entry.js +1 -1
  130. package/dist/esm/dso-ozon-content.entry.js +1 -1
  131. package/dist/esm/dso-pagination.entry.js +1 -1
  132. package/dist/esm/dso-progress-bar.entry.js +1 -1
  133. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  134. package/dist/esm/dso-responsive-element.entry.js +1 -1
  135. package/dist/esm/dso-slide-toggle.entry.js +1 -1
  136. package/dist/esm/dso-table.entry.js +1 -1
  137. package/dist/esm/dso-toggletip.entry.js +1 -1
  138. package/dist/esm/dso-toolkit.js +2 -2
  139. package/dist/esm/dso-tooltip.entry.js +1 -1
  140. package/dist/esm/dso-tree-view.entry.js +1 -1
  141. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  142. package/dist/esm/{index-1a4dda48.js → index-ac5a22a3.js} +1 -1
  143. package/dist/esm/index-d6ffb688.js +194 -0
  144. package/dist/esm/loader.js +2 -2
  145. package/dist/types/components/annotation-button/annotation-button.d.ts +7 -0
  146. package/dist/types/components/annotation-output/annotation-output.d.ts +12 -0
  147. package/dist/types/components/annotation-output/annotation-output.interfaces.d.ts +4 -0
  148. package/dist/types/components/badge/badge.d.ts +1 -1
  149. package/dist/types/components/card/card.d.ts +1 -0
  150. package/dist/types/components/expandable/expandable.d.ts +4 -0
  151. package/dist/types/components/expandable-heading/expandable-heading.d.ts +11 -0
  152. package/dist/types/components/expandable-heading/expandable-heading.interfaces.d.ts +5 -0
  153. package/dist/types/components/expandable-heading/heading.d.ts +9 -0
  154. package/dist/types/components/image-overlay/image-overlay.d.ts +0 -1
  155. package/dist/types/components/label/label.d.ts +1 -1
  156. package/dist/types/components.d.ts +97 -4
  157. package/dist/types/index.d.ts +2 -0
  158. package/dist/types/services/annotation.service.d.ts +10 -0
  159. package/package.json +2 -2
  160. package/dist/dso-toolkit/p-36cd87c4.entry.js +0 -1
  161. package/dist/dso-toolkit/p-46acc09f.entry.js +0 -1
  162. package/dist/dso-toolkit/p-6bd8515a.entry.js +0 -1
  163. package/dist/dso-toolkit/p-78ee23c5.entry.js +0 -1
  164. package/dist/dso-toolkit/p-9287b2f2.entry.js +0 -1
  165. package/dist/dso-toolkit/p-d7b2adc3.entry.js +0 -1
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DsoAnnotationOutput extends Components.DsoAnnotationOutput, HTMLElement {}
4
+ export const DsoAnnotationOutput: {
5
+ prototype: DsoAnnotationOutput;
6
+ new (): DsoAnnotationOutput;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,69 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { A as AnnotationService } from './annotation.service.js';
3
+ import { d as defineCustomElement$4 } from './expandable.js';
4
+ import { d as defineCustomElement$3 } from './icon.js';
5
+ import { d as defineCustomElement$2 } from './responsive-element.js';
6
+
7
+ const annotationOutputCss = "*,*::after,*::before{box-sizing:border-box}dso-annotation-output{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-annotation-header{align-items:center;background-color:#f2f2f2;clear:both;display:flex;margin-bottom:2px;margin-top:8px;padding-left:16px;padding-right:8px;padding-top:8px;padding-bottom:8px}.dso-annotation-header>*[slot=title]{color:#000;font-size:1.25rem;margin-bottom:0;margin-top:0}.dso-annotation-header>*:nth-child(2){margin-left:auto}dso-responsive-element[small] .dso-annotation-header,dso-responsive-element[medium] .dso-annotation-header{display:grid;row-gap:8px}dso-responsive-element[small] .dso-annotation-header *[slot=title],dso-responsive-element[medium] .dso-annotation-header *[slot=title]{grid-row:1;grid-column:1}dso-responsive-element[small] .dso-annotation-header *[slot=addons],dso-responsive-element[medium] .dso-annotation-header *[slot=addons]{grid-row:2;grid-column:1;margin-left:initial}dso-responsive-element[small] .dso-annotation-header .dso-annotation-close-button,dso-responsive-element[medium] .dso-annotation-header .dso-annotation-close-button{grid-row:1;grid-column:2;margin-left:8px;text-align:end}.dso-annotation-content{background-color:#f2f2f2;padding-left:16px;padding-right:8px;padding-top:8px;padding-bottom:8px}.dso-annotation-close-button{margin-left:32px}.dso-annotation-prefix{font-style:italic}";
8
+
9
+ const AnnotationOutput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.dsoToggle = createEvent(this, "dsoToggle", 7);
14
+ this.identifier = undefined;
15
+ this.annotationPrefix = undefined;
16
+ }
17
+ async toggleAnnotation(e, identifier) {
18
+ AnnotationService.toggle(identifier);
19
+ this.dsoToggle.emit({
20
+ originalEvent: e,
21
+ open: AnnotationService.state[this.identifier],
22
+ });
23
+ }
24
+ toggleHandler(e) {
25
+ this.toggleAnnotation(e, this.identifier);
26
+ }
27
+ render() {
28
+ const expandableProperties = AnnotationService.state[this.identifier] ? { open: true } : {};
29
+ return (h("dso-responsive-element", null, h("dso-expandable", Object.assign({ id: this.identifier }, expandableProperties), this.annotationPrefix && h("span", { class: "dso-annotation-prefix" }, this.annotationPrefix), h("div", { class: "dso-annotation-header" }, h("slot", { name: "title" }), h("slot", { name: "addons" }), h("button", { type: "button", class: "dso-tertiary dso-annotation-close-button", onClick: (e) => this.toggleHandler(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Toelichting sluiten"))), h("div", { class: "dso-annotation-content" }, h("slot", null)))));
30
+ }
31
+ static get style() { return annotationOutputCss; }
32
+ }, [4, "dso-annotation-output", {
33
+ "identifier": [1],
34
+ "annotationPrefix": [1, "annotation-prefix"],
35
+ "toggleAnnotation": [64]
36
+ }]);
37
+ function defineCustomElement$1() {
38
+ if (typeof customElements === "undefined") {
39
+ return;
40
+ }
41
+ const components = ["dso-annotation-output", "dso-expandable", "dso-icon", "dso-responsive-element"];
42
+ components.forEach(tagName => { switch (tagName) {
43
+ case "dso-annotation-output":
44
+ if (!customElements.get(tagName)) {
45
+ customElements.define(tagName, AnnotationOutput);
46
+ }
47
+ break;
48
+ case "dso-expandable":
49
+ if (!customElements.get(tagName)) {
50
+ defineCustomElement$4();
51
+ }
52
+ break;
53
+ case "dso-icon":
54
+ if (!customElements.get(tagName)) {
55
+ defineCustomElement$3();
56
+ }
57
+ break;
58
+ case "dso-responsive-element":
59
+ if (!customElements.get(tagName)) {
60
+ defineCustomElement$2();
61
+ }
62
+ break;
63
+ } });
64
+ }
65
+
66
+ const DsoAnnotationOutput = AnnotationOutput;
67
+ const defineCustomElement = defineCustomElement$1;
68
+
69
+ export { DsoAnnotationOutput, defineCustomElement };
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
- import { d as debounce_1 } from './index2.js';
2
+ import { d as debounce_1 } from './index3.js';
3
3
  import { d as defineCustomElement$2 } from './progress-indicator.js';
4
4
  import { v as v4 } from './v4.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { c as clsx } from './clsx.m.js';
3
3
 
4
- const badgeCss = ":host{display:inline-block}*,*::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}.dso-badge{background-color:#666;border:1px solid #666;border-radius:1em;color:#fff;display:inline-block;font-size:0.875em;line-height:1;min-width:1.5rem;padding:4px 8px;text-align:center}.dso-badge.badge-info{background-color:#6ca4d9;border-color:#6ca4d9;color:#191919}.dso-badge.badge-primary{background-color:#275937;border-color:#275937;color:#fff}.dso-badge.badge-success{background-color:#39870c;border-color:#39870c;color:#fff}.dso-badge.badge-warning{background-color:#dcd400;border-color:#dcd400;color:#191919}.dso-badge.badge-danger{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-error{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-outline{background-color:#fff;border-color:#191919;color:#191919}";
4
+ const badgeCss = ":host{display:inline-block}*,*::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}.dso-badge{background-color:#666;border:1px solid #666;border-radius:1em;color:#fff;display:inline-block;font-size:0.875em;line-height:1;min-width:1.5rem;padding:4px 8px;text-align:center}.dso-badge.badge-info{background-color:#6ca4d9;border-color:#6ca4d9;color:#191919}.dso-badge.badge-primary{background-color:#275937;border-color:#275937;color:#fff}.dso-badge.badge-success{background-color:#39870c;border-color:#39870c;color:#fff}.dso-badge.badge-warning{background-color:#dcd400;border-color:#dcd400;color:#191919}.dso-badge.badge-danger{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-error{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-outline{background-color:#fff;border-color:#191919;color:#191919}.dso-badge.badge-attention{background-color:#8b4a6a;border-color:#8b4a6a;color:#fff}";
5
5
 
6
6
  const Badge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
7
  constructor() {
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { c as clsx } from './clsx.m.js';
2
3
  import { i as isModifiedEvent } from './is-modified-event.js';
3
4
 
4
5
  const isInteractiveElement = (element) => {
@@ -8,7 +9,7 @@ const isInteractiveElement = (element) => {
8
9
  element.tagName.startsWith("DSO-TOGGLETIP"));
9
10
  };
10
11
 
11
- const cardCss = ":host .dso-card-selectable,:host .dso-card-image{grid-row:span 2}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host .dso-card-heading{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}@media screen and (max-width: 480px){:host .dso-card-heading{flex-wrap:wrap}}:host .dso-card-image{margin-right:8px}";
12
+ const cardCss = ":host .dso-card-selectable,:host .dso-card-image{grid-row:span 2}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host .dso-card-heading{align-items:center;display:flex;margin-bottom:8px}@media screen and (max-width: 480px){:host .dso-card-heading{flex-wrap:wrap}}:host .dso-card-image{margin-right:8px}";
12
13
 
13
14
  const Card = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
14
15
  constructor() {
@@ -18,9 +19,10 @@ const Card = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
18
19
  this.dsoCardClicked = createEvent(this, "dsoCardClicked", 7);
19
20
  this.isSelectable = false;
20
21
  this.hasImage = false;
22
+ this.clickable = true;
21
23
  }
22
24
  clickEventHandler(e) {
23
- if (!(e.target instanceof HTMLElement)) {
25
+ if (!(e.target instanceof HTMLElement) || !this.clickable) {
24
26
  return;
25
27
  }
26
28
  let element = e.target;
@@ -42,13 +44,14 @@ const Card = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
42
44
  this.hasImage = this.host.querySelector("*[slot = 'image']") !== null;
43
45
  }
44
46
  render() {
45
- return (h(Host, { onClick: (e) => this.clickEventHandler(e) }, h("div", { class: "dso-card-selectable", hidden: !this.isSelectable }, h("slot", { name: "selectable" })), h("div", { class: "dso-card-image", hidden: !this.hasImage }, h("slot", { name: "image" })), h("div", { class: "dso-card-heading" }, h("slot", { name: "heading" }), h("slot", { name: "interactions" })), h("div", { class: "dso-card-content" }, h("slot", { name: "content" }))));
47
+ return (h(Host, { class: clsx({ "dso-not-clickable": !this.clickable }), onClick: (e) => this.clickEventHandler(e) }, h("div", { class: "dso-card-selectable", hidden: !this.isSelectable }, h("slot", { name: "selectable" })), h("div", { class: "dso-card-image", hidden: !this.hasImage }, h("slot", { name: "image" })), h("div", { class: "dso-card-heading" }, h("slot", { name: "heading" }), h("slot", { name: "interactions" })), h("div", { class: "dso-card-content" }, h("slot", { name: "content" }))));
46
48
  }
47
49
  get host() { return this; }
48
50
  static get style() { return cardCss; }
49
51
  }, [1, "dso-card", {
50
52
  "isSelectable": [516, "is-selectable"],
51
- "hasImage": [516, "has-image"]
53
+ "hasImage": [516, "has-image"],
54
+ "clickable": [4]
52
55
  }]);
53
56
  function defineCustomElement$1() {
54
57
  if (typeof customElements === "undefined") {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DsoExpandableHeading extends Components.DsoExpandableHeading, HTMLElement {}
4
+ export const DsoExpandableHeading: {
5
+ prototype: DsoExpandableHeading;
6
+ new (): DsoExpandableHeading;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,77 @@
1
+ import { h, proxyCustomElement, HTMLElement, createEvent, Fragment } from '@stencil/core/internal/client';
2
+ import { c as clsx } from './clsx.m.js';
3
+ import { d as defineCustomElement$3 } from './expandable.js';
4
+ import { d as defineCustomElement$2 } from './icon.js';
5
+ import { v as v4 } from './v4.js';
6
+
7
+ const Heading = ({ heading, ref, className }, children) => {
8
+ switch (heading) {
9
+ default:
10
+ case "h2":
11
+ return (h("h2", { ref: ref, class: className }, children));
12
+ case "h3":
13
+ return (h("h3", { ref: ref, class: className }, children));
14
+ case "h4":
15
+ return (h("h4", { ref: ref, class: className }, children));
16
+ case "h5":
17
+ return (h("h5", { ref: ref, class: className }, children));
18
+ case "h6":
19
+ return (h("h6", { ref: ref, class: className }, children));
20
+ }
21
+ };
22
+
23
+ const expandableHeadingCss = "h1,.h1,h2,.h2,h3,.h3{margin-bottom:16px;margin-top:24px}h1,.h1{line-height:1.25}h1{color:#275937;font-size:2rem;font-weight:700}h2,.h2{line-height:1.33}h2{color:#275937;font-size:1.5rem;font-weight:700}h3,.h3{line-height:1.2}h3{color:#275937;font-size:1.25rem;font-weight:600}h4,.h4,h5,.h5,h6,.h6{margin-bottom:16px;margin-top:12px}h4,.h4{line-height:1.5}h4{color:#275937;font-size:1rem;font-weight:600}h5,.h5{line-height:1.5}h5{color:#191919;font-size:1rem;font-weight:600}h6,.h6{line-height:1.5}:host{display:block}*,*::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}.expandable-heading{align-items:center;display:flex;margin-bottom:8px;margin-top:8px}.expandable-heading h2,.expandable-heading h3,.expandable-heading h4,.expandable-heading h5,.expandable-heading h6{font-size:1rem;margin-bottom:0;margin-right:8px;margin-top:0}.expandable-heading button{align-items:flex-start;cursor:pointer;background-color:transparent;border:0;color:inherit;display:flex;line-height:24px;font-size:inherit;font-weight:inherit;padding:0;text-align:left}.expandable-heading button>dso-icon{flex-shrink:0}.expandable-heading.dso-expandable-heading-black button{color:#000}dso-expandable{padding-left:24px}.addons-end{display:inline-block;margin-left:auto}";
24
+
25
+ const ExpandableHeading = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
26
+ constructor() {
27
+ super();
28
+ this.__registerHost();
29
+ this.__attachShadow();
30
+ this.dsoToggle = createEvent(this, "dsoToggle", 7);
31
+ this.identifier = v4();
32
+ this.open = undefined;
33
+ this.heading = "h2";
34
+ this.color = "default";
35
+ }
36
+ toggle(e) {
37
+ this.open = !this.open;
38
+ this.dsoToggle.emit({ originalEvent: e, open: this.open });
39
+ }
40
+ render() {
41
+ const expandableProperties = this.open ? { open: true } : {};
42
+ return (h(Fragment, null, h("div", { class: clsx("expandable-heading", this.color === "black" ? "dso-expandable-heading-black" : "") }, h(Heading, { heading: this.heading }, h("button", { type: "button", "aria-expanded": this.open ? "true" : "false", "aria-controls": this.identifier, onClick: (e) => this.toggle(e) }, h("dso-icon", { icon: this.open ? "chevron-down" : "chevron-right" }), h("slot", { name: "title" }))), h("slot", { name: "addons-start" }), h("div", { class: "addons-end" }, h("slot", { name: "addons-end" }))), h("dso-expandable", Object.assign({ id: this.identifier }, expandableProperties), h("slot", null))));
43
+ }
44
+ static get style() { return expandableHeadingCss; }
45
+ }, [1, "dso-expandable-heading", {
46
+ "open": [4],
47
+ "heading": [1],
48
+ "color": [1]
49
+ }]);
50
+ function defineCustomElement$1() {
51
+ if (typeof customElements === "undefined") {
52
+ return;
53
+ }
54
+ const components = ["dso-expandable-heading", "dso-expandable", "dso-icon"];
55
+ components.forEach(tagName => { switch (tagName) {
56
+ case "dso-expandable-heading":
57
+ if (!customElements.get(tagName)) {
58
+ customElements.define(tagName, ExpandableHeading);
59
+ }
60
+ break;
61
+ case "dso-expandable":
62
+ if (!customElements.get(tagName)) {
63
+ defineCustomElement$3();
64
+ }
65
+ break;
66
+ case "dso-icon":
67
+ if (!customElements.get(tagName)) {
68
+ defineCustomElement$2();
69
+ }
70
+ break;
71
+ } });
72
+ }
73
+
74
+ const DsoExpandableHeading = ExpandableHeading;
75
+ const defineCustomElement = defineCustomElement$1;
76
+
77
+ export { DsoExpandableHeading, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DsoExpandable extends Components.DsoExpandable, HTMLElement {}
4
+ export const DsoExpandable: {
5
+ prototype: DsoExpandable;
6
+ new (): DsoExpandable;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { E as Expandable, d as defineCustomElement$1 } from './expandable.js';
2
+
3
+ const DsoExpandable = Expandable;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { DsoExpandable, defineCustomElement };
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
2
2
  import { c as clsx } from './clsx.m.js';
3
- import { d as debounce_1 } from './index2.js';
3
+ import { d as debounce_1 } from './index3.js';
4
4
  import { i as isModifiedEvent } from './is-modified-event.js';
5
5
  import { d as defineCustomElement$3 } from './dropdown-menu.js';
6
6
  import { d as defineCustomElement$2 } from './icon.js';
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
- import { d as debounce_1 } from './index2.js';
2
+ import { d as debounce_1 } from './index3.js';
3
3
  import { c as createFocusTrap } from './focus-trap.esm.js';
4
4
  import { d as defineCustomElement$2 } from './icon.js';
5
5
 
@@ -13,7 +13,6 @@ const ImageOverlay = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
13
13
  this.titelSlot = null;
14
14
  this.bijschriftSlot = null;
15
15
  this.active = false;
16
- this.focused = false;
17
16
  this.zoomable = false;
18
17
  }
19
18
  loadListener(event) {
@@ -74,7 +73,7 @@ const ImageOverlay = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
74
73
  render() {
75
74
  var _a;
76
75
  const { src, alt } = (_a = this.host.querySelector("img")) !== null && _a !== void 0 ? _a : {};
77
- return (h(Host, { tabindex: this.focused || !this.zoomable ? -1 : 0, onFocus: () => { var _a; return (_a = this.buttonElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, this.active && src && alt && (h("div", { class: "dimmer" }, h("div", { class: "wrapper", ref: (element) => (this.wrapperElement = element) }, h("div", { class: "titel", hidden: !this.titelSlot }, h("slot", { name: "titel" })), h("img", { src: src, alt: alt }), h("button", { type: "button", class: "close", onClick: () => (this.active = false) }, h("dso-icon", { icon: "times" }), h("span", null, "Sluiten")), h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" }))))), h("slot", null), this.zoomable && (h("button", { type: "button", class: "open", ref: (element) => (this.buttonElement = element), onClick: () => (this.active = true), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) }, h("dso-icon", { icon: "external-link" }), h("span", null, "Afbeelding vergroot weergeven")))));
76
+ return (h(Host, { onClick: () => { var _a; return (_a = this.buttonElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, this.active && src && alt && (h("div", { class: "dimmer" }, h("div", { class: "wrapper", ref: (element) => (this.wrapperElement = element) }, h("div", { class: "titel", hidden: !this.titelSlot }, h("slot", { name: "titel" })), h("img", { src: src, alt: alt }), h("button", { type: "button", class: "close", onClick: () => (this.active = false) }, h("dso-icon", { icon: "times" }), h("span", null, "Sluiten")), h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" }))))), h("slot", null), this.zoomable && (h("button", { type: "button", class: "open", ref: (element) => (this.buttonElement = element), onClick: () => (this.active = true) }, h("dso-icon", { icon: "external-link" }), h("span", null, "Afbeelding vergroot weergeven")))));
78
77
  }
79
78
  componentDidRender() {
80
79
  var _a, _b;
@@ -101,7 +100,6 @@ const ImageOverlay = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
101
100
  static get style() { return imageOverlayCss; }
102
101
  }, [1, "dso-image-overlay", {
103
102
  "active": [32],
104
- "focused": [32],
105
103
  "zoomable": [32]
106
104
  }, [[2, "load", "loadListener"]]]);
107
105
  function defineCustomElement$1() {
@@ -3,7 +3,7 @@ import { c as clsx } from './clsx.m.js';
3
3
  import { d as defineCustomElement$3 } from './icon.js';
4
4
  import { d as defineCustomElement$2 } from './tooltip.js';
5
5
 
6
- const labelCss = ":host{display:inline-block;max-width:100%}*,*::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}.dso-label{background-color:#f2f2f2;border-radius:4px;color:#191919;display:inline-block;line-height:1.5;max-width:100%}.dso-label:not(.dso-label-bright){padding:4px 8px}.dso-label:focus-within,.dso-label.dso-hover{text-decoration:line-through}.dso-label button{background:none;border:0;border-radius:0 4px 4px 0;color:inherit;float:right;font-size:1rem;margin-bottom:-4px;margin-left:8px;margin-right:-4px;margin-top:0;padding:0}.dso-label button:hover{cursor:pointer}.dso-label button>dso-icon,.dso-label button>svg.di{display:block}.dso-label.dso-compact{border:0;padding:0 8px}.dso-label.dso-label-info{background-color:#6ca4d9;color:#191919}.dso-label.dso-label-primary{background-color:#275937;color:#fff}.dso-label.dso-label-success{background-color:#39870c;color:#fff}.dso-label.dso-label-warning{background-color:#dcd400;color:#191919}.dso-label.dso-label-danger{background-color:#ce3f51;color:#fff}.dso-label.dso-label-error{background-color:#ce3f51;color:#fff}.dso-label.dso-label-bright{background-color:#fff;color:#191919;border:1px solid #ccc;padding:3px 7px}.dso-label.dso-hover .dso-label-content{text-decoration:line-through}.dso-truncate.dso-label-content{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}:host([removable]) .dso-truncate.dso-label-content{max-width:calc(100% - 28px)}";
6
+ const labelCss = ":host{display:inline-block;max-width:100%}*,*::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}.dso-label{background-color:#f2f2f2;border-radius:4px;color:#191919;display:inline-block;line-height:1.5;max-width:100%;padding:4px 8px}.dso-label:focus-within,.dso-label.dso-hover{text-decoration:line-through}.dso-label button{background:none;border:0;border-radius:0 4px 4px 0;color:inherit;float:right;font-size:1rem;margin-bottom:-4px;margin-left:8px;margin-right:-4px;margin-top:0;padding:0}.dso-label button:hover{cursor:pointer}.dso-label button>dso-icon,.dso-label button>svg.di{display:block}.dso-label.dso-label-info{background-color:#6ca4d9;color:#191919}.dso-label.dso-label-primary{background-color:#275937;color:#fff}.dso-label.dso-label-success{background-color:#39870c;color:#fff}.dso-label.dso-label-warning{background-color:#dcd400;color:#191919}.dso-label.dso-label-danger{background-color:#ce3f51;color:#fff}.dso-label.dso-label-error{background-color:#ce3f51;color:#fff}.dso-label.dso-label-bright{background-color:#fff;color:#191919;outline:1px solid #ccc;outline-offset:-1px}.dso-label.dso-label-attention{background-color:#8b4a6a;color:#fff}.dso-label.dso-compact{padding:0 8px}.dso-label.dso-hover .dso-label-content{text-decoration:line-through}.dso-truncate.dso-label-content{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}:host([removable]) .dso-truncate.dso-label-content{max-width:calc(100% - 28px)}";
7
7
 
8
8
  function hasEllipses(el) {
9
9
  return el.scrollWidth > el.clientWidth;
@@ -99,7 +99,7 @@ const Label = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
99
99
  "dso-hover": this.removeHover || this.removeFocus,
100
100
  }) }, h("slot", { name: "symbol" }), status && h("span", { class: "sr-only" }, status, ": "), h("span", { class: clsx("dso-label-content", {
101
101
  "dso-truncate": !!this.truncate,
102
- }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.truncatedContent ? 0 : -1, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", null)), this.removable && (h("button", { type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { icon: "times" })))), h("dso-tooltip", { stateless: true, id: "toggle-anchor", active: !!this.truncatedContent && (this.textHover || this.textFocus), position: "top", strategy: "absolute" }, this.truncatedContent)));
102
+ }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.truncatedContent ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", null)), this.removable && (h("button", { type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { icon: "times" })))), h("dso-tooltip", { stateless: true, id: "toggle-anchor", active: !!this.truncatedContent && (this.textHover || this.textFocus), position: "top", strategy: "absolute" }, this.truncatedContent)));
103
103
  }
104
104
  get host() { return this; }
105
105
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { d as debounce_1 } from './index2.js';
2
+ import { d as debounce_1 } from './index3.js';
3
3
  import { c as createFocusTrap } from './focus-trap.esm.js';
4
4
  import { d as defineCustomElement$2 } from './icon.js';
5
5
  import { v as v4 } from './v4.js';
@@ -0,0 +1,33 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const expandableCss = ":host{display:none}:host([open]){display:block}*,*::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}";
4
+
5
+ const Expandable = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.open = undefined;
11
+ }
12
+ render() {
13
+ return (h(Host, { "aria-hidden": this.open ? "false" : "true" }, h("slot", null)));
14
+ }
15
+ static get style() { return expandableCss; }
16
+ }, [1, "dso-expandable", {
17
+ "open": [516]
18
+ }]);
19
+ function defineCustomElement() {
20
+ if (typeof customElements === "undefined") {
21
+ return;
22
+ }
23
+ const components = ["dso-expandable"];
24
+ components.forEach(tagName => { switch (tagName) {
25
+ case "dso-expandable":
26
+ if (!customElements.get(tagName)) {
27
+ customElements.define(tagName, Expandable);
28
+ }
29
+ break;
30
+ } });
31
+ }
32
+
33
+ export { Expandable as E, defineCustomElement as d };
@@ -2,6 +2,8 @@
2
2
  export { Accordion as DsoAccordion } from '../types/components/accordion/accordion';
3
3
  export { AccordionSection as DsoAccordionSection } from '../types/components/accordion/components/accordion-section';
4
4
  export { Alert as DsoAlert } from '../types/components/alert/alert';
5
+ export { AnnotationButton as DsoAnnotationButton } from '../types/components/annotation-button/annotation-button';
6
+ export { AnnotationOutput as DsoAnnotationOutput } from '../types/components/annotation-output/annotation-output';
5
7
  export { AttachmentsCounter as DsoAttachmentsCounter } from '../types/components/attachments-counter/attachments-counter';
6
8
  export { Autosuggest as DsoAutosuggest } from '../types/components/autosuggest/autosuggest';
7
9
  export { Badge as DsoBadge } from '../types/components/badge/badge';
@@ -10,6 +12,8 @@ export { Card as DsoCard } from '../types/components/card/card';
10
12
  export { CardContainer as DsoCardContainer } from '../types/components/card-container/card-container';
11
13
  export { DsoDatePicker as DsoDatePicker } from '../types/components/date-picker/date-picker';
12
14
  export { DropdownMenu as DsoDropdownMenu } from '../types/components/dropdown-menu/dropdown-menu';
15
+ export { Expandable as DsoExpandable } from '../types/components/expandable/expandable';
16
+ export { ExpandableHeading as DsoExpandableHeading } from '../types/components/expandable-heading/expandable-heading';
13
17
  export { Header as DsoHeader } from '../types/components/header/header';
14
18
  export { HelpcenterPanel as DsoHelpcenterPanel } from '../types/components/helpcenter-panel/helpcenter-panel';
15
19
  export { HighlightBox as DsoHighlightBox } from '../types/components/highlight-box/highlight-box';
@@ -2,6 +2,8 @@ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client'
2
2
  export { DsoAccordion, defineCustomElement as defineCustomElementDsoAccordion } from './dso-accordion.js';
3
3
  export { DsoAccordionSection, defineCustomElement as defineCustomElementDsoAccordionSection } from './dso-accordion-section.js';
4
4
  export { DsoAlert, defineCustomElement as defineCustomElementDsoAlert } from './dso-alert.js';
5
+ export { DsoAnnotationButton, defineCustomElement as defineCustomElementDsoAnnotationButton } from './dso-annotation-button.js';
6
+ export { DsoAnnotationOutput, defineCustomElement as defineCustomElementDsoAnnotationOutput } from './dso-annotation-output.js';
5
7
  export { DsoAttachmentsCounter, defineCustomElement as defineCustomElementDsoAttachmentsCounter } from './dso-attachments-counter.js';
6
8
  export { DsoAutosuggest, defineCustomElement as defineCustomElementDsoAutosuggest } from './dso-autosuggest.js';
7
9
  export { DsoBadge, defineCustomElement as defineCustomElementDsoBadge } from './dso-badge.js';
@@ -10,6 +12,8 @@ export { DsoCard, defineCustomElement as defineCustomElementDsoCard } from './ds
10
12
  export { DsoCardContainer, defineCustomElement as defineCustomElementDsoCardContainer } from './dso-card-container.js';
11
13
  export { DsoDatePicker, defineCustomElement as defineCustomElementDsoDatePicker } from './dso-date-picker.js';
12
14
  export { DsoDropdownMenu, defineCustomElement as defineCustomElementDsoDropdownMenu } from './dso-dropdown-menu.js';
15
+ export { DsoExpandable, defineCustomElement as defineCustomElementDsoExpandable } from './dso-expandable.js';
16
+ export { DsoExpandableHeading, defineCustomElement as defineCustomElementDsoExpandableHeading } from './dso-expandable-heading.js';
13
17
  export { DsoHeader, defineCustomElement as defineCustomElementDsoHeader } from './dso-header.js';
14
18
  export { DsoHelpcenterPanel, defineCustomElement as defineCustomElementDsoHelpcenterPanel } from './dso-helpcenter-panel.js';
15
19
  export { DsoHighlightBox, defineCustomElement as defineCustomElementDsoHighlightBox } from './dso-highlight-box.js';