@dso-toolkit/core 72.0.0 → 72.1.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 (194) hide show
  1. package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
  2. package/dist/cjs/dso-alert_6.cjs.entry.js +5 -5
  3. package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
  4. package/dist/cjs/dso-annotation-locatie.dso-document-component.entry.cjs.js.map +1 -1
  5. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dso-icon.cjs.entry.js +8 -1
  8. package/dist/cjs/dso-icon.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dso-icon.entry.cjs.js.map +1 -1
  10. package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
  11. package/dist/cjs/dso-label_3.cjs.entry.js +1 -1
  12. package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
  14. package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
  15. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +1788 -0
  16. package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -0
  17. package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -0
  18. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
  19. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  20. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  21. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  22. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  23. package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
  24. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  25. package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
  26. package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -1
  27. package/dist/cjs/dso-survey-rating.entry.cjs.js.map +1 -1
  28. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  29. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  30. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  31. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  32. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  33. package/dist/cjs/dso-viewer-grid.cjs.entry.js +3 -3
  34. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  35. package/dist/cjs/dso-viewer-grid.entry.cjs.js.map +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/collection-manifest.json +1 -0
  38. package/dist/collection/components/document-component/document-component.css +24 -24
  39. package/dist/collection/components/icon/icon.js +3 -1
  40. package/dist/collection/components/icon/icon.js.map +1 -1
  41. package/dist/collection/components/image-overlay/image-overlay.css +24 -24
  42. package/dist/collection/components/map-controls/map-controls.css +24 -24
  43. package/dist/collection/components/onboarding-tip/onboarding-tip.css +160 -0
  44. package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js +2 -0
  45. package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js.map +1 -0
  46. package/dist/collection/components/onboarding-tip/onboarding-tip.js +196 -0
  47. package/dist/collection/components/onboarding-tip/onboarding-tip.js.map +1 -0
  48. package/dist/collection/components/ozon-content/ozon-content.css +24 -24
  49. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  50. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  51. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  52. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  53. package/dist/collection/components/project-item/project-item.js +1 -1
  54. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  55. package/dist/collection/components/scrollable/scrollable.js +2 -2
  56. package/dist/collection/components/selectable/selectable.js +1 -1
  57. package/dist/collection/components/skiplink/skiplink.js +1 -1
  58. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  59. package/dist/collection/components/survey-rating/survey-rating.css +12 -12
  60. package/dist/collection/components/survey-rating/survey-rating.js +2 -2
  61. package/dist/collection/components/table/table.css +24 -24
  62. package/dist/collection/components/table/table.js +1 -1
  63. package/dist/collection/components/tabs/tabs.js +1 -1
  64. package/dist/collection/components/toggletip/toggletip.js +1 -1
  65. package/dist/collection/components/tooltip/tooltip.js +1 -1
  66. package/dist/collection/components/tree-view/tree-view.js +1 -1
  67. package/dist/collection/components/viewer-grid/viewer-grid.css +36 -36
  68. package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
  69. package/dist/components/document-component.js +1 -1
  70. package/dist/components/document-component.js.map +1 -1
  71. package/dist/components/dso-map-controls.js +1 -1
  72. package/dist/components/dso-map-controls.js.map +1 -1
  73. package/dist/components/dso-onboarding-tip.d.ts +11 -0
  74. package/dist/components/dso-onboarding-tip.js +1812 -0
  75. package/dist/components/dso-onboarding-tip.js.map +1 -0
  76. package/dist/components/dso-plekinfo-card.js +1 -1
  77. package/dist/components/dso-progress-bar.js +1 -1
  78. package/dist/components/dso-project-item.js +1 -1
  79. package/dist/components/dso-skiplink.js +1 -1
  80. package/dist/components/dso-survey-rating.js +3 -3
  81. package/dist/components/dso-survey-rating.js.map +1 -1
  82. package/dist/components/dso-tabs.js +1 -1
  83. package/dist/components/dso-tree-view.js +1 -1
  84. package/dist/components/dso-viewer-grid.js +3 -3
  85. package/dist/components/dso-viewer-grid.js.map +1 -1
  86. package/dist/components/icon.js +8 -1
  87. package/dist/components/icon.js.map +1 -1
  88. package/dist/components/image-overlay.js +1 -1
  89. package/dist/components/image-overlay.js.map +1 -1
  90. package/dist/components/index.d.ts +2 -0
  91. package/dist/components/index.js +1 -0
  92. package/dist/components/index.js.map +1 -1
  93. package/dist/components/ozon-content.js +2 -2
  94. package/dist/components/ozon-content.js.map +1 -1
  95. package/dist/components/progress-indicator.js +1 -1
  96. package/dist/components/responsive-element.js +1 -1
  97. package/dist/components/scrollable.js +2 -2
  98. package/dist/components/selectable.js +1 -1
  99. package/dist/components/slide-toggle.js +1 -1
  100. package/dist/components/table.js +2 -2
  101. package/dist/components/table.js.map +1 -1
  102. package/dist/components/toggletip.js +1 -1
  103. package/dist/components/tooltip.js +1 -1
  104. package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
  105. package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
  106. package/dist/dso-toolkit/dso-icon.entry.esm.js.map +1 -1
  107. package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
  108. package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -0
  109. package/dist/dso-toolkit/dso-survey-rating.entry.esm.js.map +1 -1
  110. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  111. package/dist/dso-toolkit/dso-viewer-grid.entry.esm.js.map +1 -1
  112. package/dist/dso-toolkit/p-09dcedd1.entry.js +2 -0
  113. package/dist/dso-toolkit/{p-7b715bdf.entry.js.map → p-09dcedd1.entry.js.map} +1 -1
  114. package/dist/dso-toolkit/{p-c13b26ad.entry.js → p-0e6d0886.entry.js} +2 -2
  115. package/dist/dso-toolkit/{p-5f820aec.entry.js → p-13cda4e5.entry.js} +2 -2
  116. package/dist/dso-toolkit/{p-a0a78026.entry.js → p-3315d028.entry.js} +2 -2
  117. package/dist/dso-toolkit/{p-4eefa210.entry.js → p-3aac8417.entry.js} +2 -2
  118. package/dist/dso-toolkit/{p-00580562.entry.js → p-53910728.entry.js} +2 -2
  119. package/dist/dso-toolkit/p-6a620f5f.entry.js +2 -0
  120. package/dist/dso-toolkit/p-6a620f5f.entry.js.map +1 -0
  121. package/dist/dso-toolkit/{p-3f85169a.entry.js → p-6c413b75.entry.js} +2 -2
  122. package/dist/dso-toolkit/{p-6dac4086.entry.js → p-70d63a6a.entry.js} +2 -2
  123. package/dist/dso-toolkit/{p-6dac4086.entry.js.map → p-70d63a6a.entry.js.map} +1 -1
  124. package/dist/dso-toolkit/{p-ac221ee6.entry.js → p-70fc8d65.entry.js} +2 -2
  125. package/dist/dso-toolkit/p-710e1719.entry.js +2 -0
  126. package/dist/dso-toolkit/p-ada03e5c.entry.js +2 -0
  127. package/dist/dso-toolkit/p-ada03e5c.entry.js.map +1 -0
  128. package/dist/dso-toolkit/p-bb88881a.entry.js +2 -0
  129. package/dist/dso-toolkit/{p-6973b064.entry.js → p-c01b6283.entry.js} +2 -2
  130. package/dist/dso-toolkit/{p-896b4e39.entry.js → p-c059397d.entry.js} +2 -2
  131. package/dist/dso-toolkit/{p-c50310e2.entry.js → p-ca14935b.entry.js} +2 -2
  132. package/dist/dso-toolkit/p-ebc43652.entry.js +2 -0
  133. package/dist/dso-toolkit/{p-26d6681e.entry.js.map → p-ebc43652.entry.js.map} +1 -1
  134. package/dist/dso-toolkit/p-ee5df97d.entry.js +2 -0
  135. package/dist/dso-toolkit/{p-43b5e74b.entry.js.map → p-ee5df97d.entry.js.map} +1 -1
  136. package/dist/dso-toolkit/p-ee93ae83.entry.js +2 -0
  137. package/dist/dso-toolkit/{p-3cb4ac7e.entry.js.map → p-ee93ae83.entry.js.map} +1 -1
  138. package/dist/dso-toolkit/{p-7f8fc024.entry.js → p-f6a81839.entry.js} +2 -2
  139. package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
  140. package/dist/esm/dso-alert_6.entry.js +5 -5
  141. package/dist/esm/dso-alert_6.entry.js.map +1 -1
  142. package/dist/esm/dso-annotation-locatie.dso-document-component.entry.js.map +1 -1
  143. package/dist/esm/dso-annotation-locatie_2.entry.js +1 -1
  144. package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
  145. package/dist/esm/dso-icon.entry.js +8 -1
  146. package/dist/esm/dso-icon.entry.js.map +1 -1
  147. package/dist/esm/dso-info_2.entry.js +1 -1
  148. package/dist/esm/dso-label_3.entry.js +1 -1
  149. package/dist/esm/dso-map-controls.entry.js +1 -1
  150. package/dist/esm/dso-map-controls.entry.js.map +1 -1
  151. package/dist/esm/dso-onboarding-tip.entry.js +1786 -0
  152. package/dist/esm/dso-onboarding-tip.entry.js.map +1 -0
  153. package/dist/esm/dso-plekinfo-card.entry.js +1 -1
  154. package/dist/esm/dso-progress-bar.entry.js +1 -1
  155. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  156. package/dist/esm/dso-project-item.entry.js +1 -1
  157. package/dist/esm/dso-responsive-element.entry.js +1 -1
  158. package/dist/esm/dso-scrollable.entry.js +2 -2
  159. package/dist/esm/dso-skiplink.entry.js +1 -1
  160. package/dist/esm/dso-survey-rating.entry.js +3 -3
  161. package/dist/esm/dso-survey-rating.entry.js.map +1 -1
  162. package/dist/esm/dso-tabs.entry.js +1 -1
  163. package/dist/esm/dso-toggletip.entry.js +1 -1
  164. package/dist/esm/dso-toolkit.js +1 -1
  165. package/dist/esm/dso-tooltip.entry.js +1 -1
  166. package/dist/esm/dso-tree-view.entry.js +1 -1
  167. package/dist/esm/dso-viewer-grid.entry.js +3 -3
  168. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  169. package/dist/esm/loader.js +1 -1
  170. package/dist/types/components/onboarding-tip/onboarding-tip.d.ts +25 -0
  171. package/dist/types/components/onboarding-tip/onboarding-tip.interfaces.d.ts +4 -0
  172. package/dist/types/components.d.ts +42 -0
  173. package/package.json +4 -3
  174. package/dist/dso-toolkit/p-26d6681e.entry.js +0 -2
  175. package/dist/dso-toolkit/p-3cb4ac7e.entry.js +0 -2
  176. package/dist/dso-toolkit/p-43b5e74b.entry.js +0 -2
  177. package/dist/dso-toolkit/p-7853e0ff.entry.js +0 -2
  178. package/dist/dso-toolkit/p-7b715bdf.entry.js +0 -2
  179. package/dist/dso-toolkit/p-a74dabd9.entry.js +0 -2
  180. package/dist/dso-toolkit/p-a74dabd9.entry.js.map +0 -1
  181. package/dist/dso-toolkit/p-b26fded2.entry.js +0 -2
  182. /package/dist/dso-toolkit/{p-c13b26ad.entry.js.map → p-0e6d0886.entry.js.map} +0 -0
  183. /package/dist/dso-toolkit/{p-5f820aec.entry.js.map → p-13cda4e5.entry.js.map} +0 -0
  184. /package/dist/dso-toolkit/{p-a0a78026.entry.js.map → p-3315d028.entry.js.map} +0 -0
  185. /package/dist/dso-toolkit/{p-4eefa210.entry.js.map → p-3aac8417.entry.js.map} +0 -0
  186. /package/dist/dso-toolkit/{p-00580562.entry.js.map → p-53910728.entry.js.map} +0 -0
  187. /package/dist/dso-toolkit/{p-3f85169a.entry.js.map → p-6c413b75.entry.js.map} +0 -0
  188. /package/dist/dso-toolkit/{p-ac221ee6.entry.js.map → p-70fc8d65.entry.js.map} +0 -0
  189. /package/dist/dso-toolkit/{p-7853e0ff.entry.js.map → p-710e1719.entry.js.map} +0 -0
  190. /package/dist/dso-toolkit/{p-b26fded2.entry.js.map → p-bb88881a.entry.js.map} +0 -0
  191. /package/dist/dso-toolkit/{p-6973b064.entry.js.map → p-c01b6283.entry.js.map} +0 -0
  192. /package/dist/dso-toolkit/{p-896b4e39.entry.js.map → p-c059397d.entry.js.map} +0 -0
  193. /package/dist/dso-toolkit/{p-c50310e2.entry.js.map → p-ca14935b.entry.js.map} +0 -0
  194. /package/dist/dso-toolkit/{p-7f8fc024.entry.js.map → p-f6a81839.entry.js.map} +0 -0
@@ -0,0 +1,196 @@
1
+ import { arrow, autoUpdate, computePosition, hide, offset, flip, shift } from "@floating-ui/dom";
2
+ import { h, Host } from "@stencil/core";
3
+ export class OnboardingTip {
4
+ constructor() {
5
+ /**
6
+ * Where to place the Onboarding Tip relative to its reference element.
7
+ */
8
+ this.placement = "right";
9
+ }
10
+ componentDidRender() {
11
+ if (!this.host.matches(":popover-open")) {
12
+ this.host.showPopover();
13
+ }
14
+ if (!this.cleanUp && this.referenceElement && this.tipArrowRef instanceof HTMLElement) {
15
+ this.cleanUp = OnboardingTip.positionTip(this.referenceElement, this.host, this.tipArrowRef, this.placement);
16
+ }
17
+ }
18
+ disconnectedCallback() {
19
+ var _a;
20
+ if (this.host.matches(":popover-open")) {
21
+ this.host.hidePopover();
22
+ }
23
+ (_a = this.cleanUp) === null || _a === void 0 ? void 0 : _a.call(this);
24
+ this.cleanUp = undefined;
25
+ }
26
+ /**
27
+ * This function positions the Onboarding Tip relative to its reference element. It is static so the position is calculated
28
+ * only using the passed arguments.
29
+ */
30
+ static positionTip(referenceElement, tipRef, tipArrowRef, placement) {
31
+ // Get half the arrow box's hypotenuse length
32
+ const arrowLength = tipArrowRef.offsetWidth;
33
+ const floatingOffset = Math.sqrt(2 * arrowLength ** 2) / 2;
34
+ const padding = 5;
35
+ return autoUpdate(referenceElement, tipRef, () => {
36
+ computePosition(referenceElement, tipRef, {
37
+ strategy: "fixed",
38
+ middleware: [
39
+ offset(floatingOffset),
40
+ flip({
41
+ padding,
42
+ }),
43
+ shift({
44
+ padding,
45
+ }),
46
+ arrow({
47
+ padding: padding + arrowLength,
48
+ element: tipArrowRef,
49
+ }),
50
+ hide({
51
+ padding: 42,
52
+ }),
53
+ ],
54
+ placement,
55
+ }).then(({ x, y, middlewareData, placement: computedPlacement }) => {
56
+ if (middlewareData.hide) {
57
+ Object.assign(tipRef.style, {
58
+ visibility: middlewareData.hide.referenceHidden ? "hidden" : "visible",
59
+ });
60
+ }
61
+ Object.assign(tipRef.style, {
62
+ left: `${x}px`,
63
+ top: `${y}px`,
64
+ });
65
+ const side = computedPlacement.split("-")[0];
66
+ const staticSide = side
67
+ ? {
68
+ top: "bottom",
69
+ right: "left",
70
+ bottom: "top",
71
+ left: "right",
72
+ }[side]
73
+ : "top";
74
+ let angle;
75
+ switch (staticSide) {
76
+ default:
77
+ case "top":
78
+ angle = 45;
79
+ break;
80
+ case "right":
81
+ angle = 135;
82
+ break;
83
+ case "bottom":
84
+ angle = 225;
85
+ break;
86
+ case "left":
87
+ angle = 315;
88
+ break;
89
+ }
90
+ if (middlewareData.arrow && staticSide) {
91
+ const { x: arrowX, y: arrowY } = middlewareData.arrow;
92
+ Object.assign(tipArrowRef.style, {
93
+ right: "",
94
+ bottom: "",
95
+ left: arrowX ? `${arrowX}px` : "",
96
+ top: arrowY ? `${arrowY}px` : "",
97
+ [staticSide]: `${-arrowLength / 2}px`,
98
+ transform: `rotate(${angle}deg)`,
99
+ });
100
+ }
101
+ });
102
+ });
103
+ }
104
+ render() {
105
+ return (h(Host, { key: '81f55bb9189b1e006db917d0563d67701710f519', popover: "manual" }, h("div", { key: 'eed3544de4a3a2b592c4ae418a582e87b2ee0133', class: "onboarding-tip", role: "tooltip" }, h("div", { key: '5847872cf4e5b918c525d62a3d592a765a8e8154', class: "onboarding-tip-inner" }, h("div", { key: 'c35d3a3fe5e926dde418019e1b8b209e6223d504', class: "onboarding-tip-content-wrapper" }, this.headingSlottedElement !== null && (h("div", { key: '1911891c6aff456fc4e43f80b687f87d1ba1df9d', class: "onboarding-tip-content-heading" }, h("dso-icon", { key: '3050474a5736b09709e114f1397b8160cb5b9868', icon: "light-bulb" }), h("slot", { key: '86c668f6602ba615db80c4338edc1157cdaa9999', name: "heading" }))), h("button", { key: '65d9ec9d3e84a409fa18ebd4d6343377a6e25126', type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("dso-icon", { key: 'ec8eb3a63525d2736debd7986ce5546619315553', icon: "times" }), h("span", { key: '99e9048e8003e211488c7fdd2eeda4a32c740b3a', class: "sr-only" }, "Sluiten")), h("slot", { key: '886ba7c055fc303d0186dec7ca30c90d2c6c2943' }))), h("div", { key: 'e838baea223b335370a4d0f14f300fa6d48853a7', class: "onboarding-tip-arrow", ref: (ref) => (this.tipArrowRef = ref) }))));
106
+ }
107
+ get headingSlottedElement() {
108
+ return this.host.querySelector("[slot='heading']");
109
+ }
110
+ get referenceElement() {
111
+ const id = this.host.id;
112
+ if (!id) {
113
+ console.warn("Unable to find reference. Onboarding Tip has no [id] attribute.");
114
+ return;
115
+ }
116
+ const rootNode = this.host.getRootNode();
117
+ if (!(rootNode instanceof Document || rootNode instanceof ShadowRoot)) {
118
+ console.warn(`rootNode is not instance of Document or ShadowRoot`);
119
+ return;
120
+ }
121
+ const reference = rootNode.querySelector(`[aria-describedby="${id}`);
122
+ if (!reference) {
123
+ console.warn(`Unable to find reference element with aria-describedby ${id}`);
124
+ return;
125
+ }
126
+ return reference;
127
+ }
128
+ static get is() { return "dso-onboarding-tip"; }
129
+ static get encapsulation() { return "shadow"; }
130
+ static get originalStyleUrls() {
131
+ return {
132
+ "$": ["onboarding-tip.scss"]
133
+ };
134
+ }
135
+ static get styleUrls() {
136
+ return {
137
+ "$": ["onboarding-tip.css"]
138
+ };
139
+ }
140
+ static get properties() {
141
+ return {
142
+ "placement": {
143
+ "type": "string",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "OnboardingTipPlacement",
147
+ "resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
148
+ "references": {
149
+ "OnboardingTipPlacement": {
150
+ "location": "import",
151
+ "path": "./onboarding-tip.interfaces",
152
+ "id": "src/components/onboarding-tip/onboarding-tip.interfaces.ts::OnboardingTipPlacement"
153
+ }
154
+ }
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "Where to place the Onboarding Tip relative to its reference element."
161
+ },
162
+ "getter": false,
163
+ "setter": false,
164
+ "attribute": "placement",
165
+ "reflect": false,
166
+ "defaultValue": "\"right\""
167
+ }
168
+ };
169
+ }
170
+ static get events() {
171
+ return [{
172
+ "method": "dsoClose",
173
+ "name": "dsoClose",
174
+ "bubbles": true,
175
+ "cancelable": true,
176
+ "composed": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": "Emitted when the user closes the Onboarding Tip."
180
+ },
181
+ "complexType": {
182
+ "original": "OnboardingTipCloseEvent",
183
+ "resolved": "OnboardingTipCloseEvent",
184
+ "references": {
185
+ "OnboardingTipCloseEvent": {
186
+ "location": "import",
187
+ "path": "./onboarding-tip.interfaces",
188
+ "id": "src/components/onboarding-tip/onboarding-tip.interfaces.ts::OnboardingTipCloseEvent"
189
+ }
190
+ }
191
+ }
192
+ }];
193
+ }
194
+ static get elementRef() { return "host"; }
195
+ }
196
+ //# sourceMappingURL=onboarding-tip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onboarding-tip.js","sourceRoot":"","sources":["../../../../src/components/onboarding-tip/onboarding-tip.tsx"],"names":[],"mappings":"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","sourcesContent":["import { arrow, autoUpdate, computePosition, hide, offset, Placement, flip, shift } from \"@floating-ui/dom\";\r\nimport { h, Component, Element, Prop, ComponentInterface, Event, EventEmitter, Host } from \"@stencil/core\";\r\n\r\nimport { OnboardingTipCloseEvent, OnboardingTipPlacement } from \"./onboarding-tip.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-onboarding-tip\",\r\n styleUrl: \"onboarding-tip.scss\",\r\n shadow: true,\r\n})\r\nexport class OnboardingTip implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoOnboardingTipElement;\r\n\r\n /**\r\n * Where to place the Onboarding Tip relative to its reference element.\r\n */\r\n @Prop()\r\n placement: OnboardingTipPlacement = \"right\";\r\n\r\n /**\r\n * Emitted when the user closes the Onboarding Tip.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<OnboardingTipCloseEvent>;\r\n\r\n componentDidRender() {\r\n if (!this.host.matches(\":popover-open\")) {\r\n this.host.showPopover();\r\n }\r\n\r\n if (!this.cleanUp && this.referenceElement && this.tipArrowRef instanceof HTMLElement) {\r\n this.cleanUp = OnboardingTip.positionTip(this.referenceElement, this.host, this.tipArrowRef, this.placement);\r\n }\r\n }\r\n\r\n disconnectedCallback(): void {\r\n if (this.host.matches(\":popover-open\")) {\r\n this.host.hidePopover();\r\n }\r\n\r\n this.cleanUp?.();\r\n this.cleanUp = undefined;\r\n }\r\n\r\n /**\r\n * This function positions the Onboarding Tip relative to its reference element. It is static so the position is calculated\r\n * only using the passed arguments.\r\n */\r\n private static positionTip(\r\n referenceElement: HTMLElement,\r\n tipRef: HTMLDsoOnboardingTipElement,\r\n tipArrowRef: HTMLDivElement,\r\n placement: Placement,\r\n ) {\r\n // Get half the arrow box's hypotenuse length\r\n const arrowLength = tipArrowRef.offsetWidth;\r\n const floatingOffset = Math.sqrt(2 * arrowLength ** 2) / 2;\r\n const padding = 5;\r\n\r\n return autoUpdate(referenceElement, tipRef, () => {\r\n computePosition(referenceElement, tipRef, {\r\n strategy: \"fixed\",\r\n middleware: [\r\n offset(floatingOffset),\r\n flip({\r\n padding,\r\n }),\r\n shift({\r\n padding,\r\n }),\r\n arrow({\r\n padding: padding + arrowLength,\r\n element: tipArrowRef,\r\n }),\r\n hide({\r\n padding: 42,\r\n }),\r\n ],\r\n placement,\r\n }).then(({ x, y, middlewareData, placement: computedPlacement }) => {\r\n if (middlewareData.hide) {\r\n Object.assign(tipRef.style, {\r\n visibility: middlewareData.hide.referenceHidden ? \"hidden\" : \"visible\",\r\n });\r\n }\r\n\r\n Object.assign(tipRef.style, {\r\n left: `${x}px`,\r\n top: `${y}px`,\r\n });\r\n\r\n const side = computedPlacement.split(\"-\")[0];\r\n\r\n const staticSide = side\r\n ? {\r\n top: \"bottom\",\r\n right: \"left\",\r\n bottom: \"top\",\r\n left: \"right\",\r\n }[side]\r\n : \"top\";\r\n\r\n let angle;\r\n switch (staticSide) {\r\n default:\r\n case \"top\":\r\n angle = 45;\r\n break;\r\n case \"right\":\r\n angle = 135;\r\n break;\r\n case \"bottom\":\r\n angle = 225;\r\n break;\r\n case \"left\":\r\n angle = 315;\r\n break;\r\n }\r\n\r\n if (middlewareData.arrow && staticSide) {\r\n const { x: arrowX, y: arrowY } = middlewareData.arrow;\r\n\r\n Object.assign(tipArrowRef.style, {\r\n right: \"\",\r\n bottom: \"\",\r\n left: arrowX ? `${arrowX}px` : \"\",\r\n top: arrowY ? `${arrowY}px` : \"\",\r\n [staticSide]: `${-arrowLength / 2}px`,\r\n transform: `rotate(${angle}deg)`,\r\n });\r\n }\r\n });\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n <Host popover=\"manual\">\r\n <div class=\"onboarding-tip\" role=\"tooltip\">\r\n <div class=\"onboarding-tip-inner\">\r\n <div class=\"onboarding-tip-content-wrapper\">\r\n {this.headingSlottedElement !== null && (\r\n <div class=\"onboarding-tip-content-heading\">\r\n <dso-icon icon=\"light-bulb\"></dso-icon>\r\n <slot name=\"heading\" />\r\n </div>\r\n )}\r\n <button type=\"button\" class=\"dso-close\" onClick={(e) => this.dsoClose.emit({ originalEvent: e })}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">Sluiten</span>\r\n </button>\r\n <slot></slot>\r\n </div>\r\n </div>\r\n <div class=\"onboarding-tip-arrow\" ref={(ref) => (this.tipArrowRef = ref)}></div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n private tipArrowRef: HTMLDivElement | undefined;\r\n\r\n private get headingSlottedElement() {\r\n return this.host.querySelector(\"[slot='heading']\");\r\n }\r\n\r\n private cleanUp: ReturnType<typeof autoUpdate> | undefined;\r\n\r\n private get referenceElement(): HTMLElement | undefined {\r\n const id = this.host.id;\r\n\r\n if (!id) {\r\n console.warn(\"Unable to find reference. Onboarding Tip has no [id] attribute.\");\r\n\r\n return;\r\n }\r\n\r\n const rootNode = this.host.getRootNode();\r\n if (!(rootNode instanceof Document || rootNode instanceof ShadowRoot)) {\r\n console.warn(`rootNode is not instance of Document or ShadowRoot`);\r\n\r\n return;\r\n }\r\n\r\n const reference = rootNode.querySelector<HTMLElement>(`[aria-describedby=\"${id}`);\r\n if (!reference) {\r\n console.warn(`Unable to find reference element with aria-describedby ${id}`);\r\n\r\n return;\r\n }\r\n\r\n return reference;\r\n }\r\n}\r\n"]}
@@ -55,9 +55,9 @@ label.dso-primary.download::after {
55
55
  a.dso-primary,
56
56
  button.dso-primary,
57
57
  label.dso-primary {
58
- background-color: #39870c;
59
- border-color: #39870c;
60
- color: #fff;
58
+ background-color: var(--_dso-button-primary-background-color, #39870c);
59
+ border-color: var(--_dso-button-primary-border-color, #39870c);
60
+ color: var(--_dso-button-primary-color, #fff);
61
61
  }
62
62
  a.dso-primary,
63
63
  button.dso-primary,
@@ -73,25 +73,25 @@ label.dso-primary {
73
73
  a.dso-primary:hover,
74
74
  button.dso-primary:hover,
75
75
  label.dso-primary:hover {
76
- background-color: #275937;
77
- border-color: #275937;
78
- color: #fff;
76
+ background-color: var(--_dso-button-primary-hover-background-color, #275937);
77
+ border-color: var(--_dso-button-primary-hover-border-color, #275937);
78
+ color: var(--_dso-button-primary-hover-color, #fff);
79
79
  }
80
80
  a.dso-primary:active,
81
81
  button.dso-primary:active,
82
82
  label.dso-primary:active {
83
- background-color: #173521;
84
- border-color: #173521;
85
- color: #fff;
83
+ background-color: var(--_dso-button-primary-active-background-color, #173521);
84
+ border-color: var(--_dso-button-primary-active-border-color, #173521);
85
+ color: var(--_dso-button-primary-active-color, #fff);
86
86
  }
87
87
  a.dso-primary[disabled], a.dso-primary[disabled]:hover,
88
88
  button.dso-primary[disabled],
89
89
  button.dso-primary[disabled]:hover,
90
90
  label.dso-primary[disabled],
91
91
  label.dso-primary[disabled]:hover {
92
- background-color: #afcf9d;
93
- border-color: #afcf9d;
94
- color: #fff;
92
+ background-color: var(--_dso-button-primary-disabled-background-color, #afcf9d);
93
+ border-color: var(--_dso-button-primary-disabled-border-color, #afcf9d);
94
+ color: var(--_dso-button-primary-disabled-color, #fff);
95
95
  }
96
96
  a.dso-primary.dso-small,
97
97
  button.dso-primary.dso-small,
@@ -238,9 +238,9 @@ label.dso-secondary.download::after {
238
238
  a.dso-secondary,
239
239
  button.dso-secondary,
240
240
  label.dso-secondary {
241
- background-color: #fff;
242
- border-color: #39870c;
243
- color: #39870c;
241
+ background-color: var(--_dso-button-secondary-background-color, #fff);
242
+ border-color: var(--_dso-button-secondary-border-color, #39870c);
243
+ color: var(--_dso-button-secondary-color, #39870c);
244
244
  }
245
245
  a.dso-secondary,
246
246
  button.dso-secondary,
@@ -256,25 +256,25 @@ label.dso-secondary {
256
256
  a.dso-secondary:hover,
257
257
  button.dso-secondary:hover,
258
258
  label.dso-secondary:hover {
259
- background-color: #d7e7ce;
260
- border-color: #39870c;
261
- color: #39870c;
259
+ background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
260
+ border-color: var(--_dso-button-secondary-hover-border-color, #39870c);
261
+ color: var(--_dso-button-secondary-hover-color, #39870c);
262
262
  }
263
263
  a.dso-secondary:active,
264
264
  button.dso-secondary:active,
265
265
  label.dso-secondary:active {
266
- background-color: #39870c;
267
- border-color: #39870c;
268
- color: #fff;
266
+ background-color: var(--_dso-button-secondary-active-background-color, #39870c);
267
+ border-color: var(--_dso-button-secondary-active-border-color, #39870c);
268
+ color: var(--_dso-button-secondary-active-color, #fff);
269
269
  }
270
270
  a.dso-secondary[disabled], a.dso-secondary[disabled]:hover,
271
271
  button.dso-secondary[disabled],
272
272
  button.dso-secondary[disabled]:hover,
273
273
  label.dso-secondary[disabled],
274
274
  label.dso-secondary[disabled]:hover {
275
- background-color: #fff;
276
- border-color: #afcf9d;
277
- color: #afcf9d;
275
+ background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
276
+ border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
277
+ color: var(--_dso-button-secondary-disabled-color, #afcf9d);
278
278
  }
279
279
  a.dso-secondary.dso-small,
280
280
  button.dso-secondary.dso-small,
@@ -26,7 +26,7 @@ export class OzonContent {
26
26
  urlResolver: this.urlResolver,
27
27
  };
28
28
  const transformed = mapper.transform(this.content, context);
29
- return h(Fragment, { key: '1e3413dc949ad16b20ac3209da2fe7a52f6c2fea' }, transformed);
29
+ return h(Fragment, { key: '65ffbfbf7a622e4adc07cba9aaacbcdf0334927d' }, transformed);
30
30
  }
31
31
  static get is() { return "dso-ozon-content"; }
32
32
  static get encapsulation() { return "shadow"; }
@@ -50,7 +50,7 @@ export class PlekinfoCard {
50
50
  }
51
51
  render() {
52
52
  const hasSymbol = this.symbolSlottedElement !== null;
53
- return (h(Host, { key: '5cd241eabf508145625d46a6d923a9fdeeb8d191', "has-symbol": hasSymbol }, h(WrapWijzigactie, { key: 'd4f5887cfe88050246c31d84ef389a6b289ebb15', wijzigactie: this.wijzigactie }, h("div", { key: '8e160f4e8f8329c11feefa842c035500b46b3c5b', class: "dso-plekinfo-card-symbol", hidden: !hasSymbol }, h("slot", { key: '2f8110b2bda5a39bf12df96a8838dcc41b0eb014', name: "symbol" })), h("div", { key: 'dbbc8d0e7f39a5888fd18c91674888a3f56cf086', class: "dso-plekinfo-card-heading" }, this.href ? (h("a", { href: this.href, target: this.targetBlank ? "_blank" : undefined, rel: this.targetBlank ? "noopener noreferrer" : undefined, class: "heading-anchor", onClick: (e) => this.clickEventHandler(e) }, h("slot", { name: "heading" }), this.targetBlank ? (h(Fragment, null, h("dso-icon", { icon: "external-link" }), h("span", { class: "sr-only" }, "(Opent andere website in nieuw tabblad)"))) : (h("dso-icon", { icon: "chevron-right" })))) : (h("slot", { name: "heading" })), this.metaSlottedElement !== null && h("slot", { key: 'f71a03bc2ce6c168d645bfc37e21bdb7585261c1', name: "meta" }), this.interaction !== null && h("slot", { key: '5716ff3cd0f4270c9220076810e5f7e5e2f65347', name: "interaction" })), h("div", { key: 'f65b1f199ba70cea2fb254475a84547aba0d99ab', class: "dso-plekinfo-card-content" }, h("slot", { key: '678564a6fe0ab238570730eb5e78922b45df9b94', name: "content" })))));
53
+ return (h(Host, { key: 'aee71a264aa898231fbc5e708bc6b1057bfee886', "has-symbol": hasSymbol }, h(WrapWijzigactie, { key: '234a6cf3826848efd20985b118b1aceb9948df58', wijzigactie: this.wijzigactie }, h("div", { key: '606b796f15489d6096f211b68b291e4dffdd9598', class: "dso-plekinfo-card-symbol", hidden: !hasSymbol }, h("slot", { key: '876469b5dd24f9404d32bbed7ac96e666ea96792', name: "symbol" })), h("div", { key: 'feb529e9820291145fef32d99f658e5091536c71', class: "dso-plekinfo-card-heading" }, this.href ? (h("a", { href: this.href, target: this.targetBlank ? "_blank" : undefined, rel: this.targetBlank ? "noopener noreferrer" : undefined, class: "heading-anchor", onClick: (e) => this.clickEventHandler(e) }, h("slot", { name: "heading" }), this.targetBlank ? (h(Fragment, null, h("dso-icon", { icon: "external-link" }), h("span", { class: "sr-only" }, "(Opent andere website in nieuw tabblad)"))) : (h("dso-icon", { icon: "chevron-right" })))) : (h("slot", { name: "heading" })), this.metaSlottedElement !== null && h("slot", { key: 'b08865c49b90d8231606c91f3a2d3fb9373a98e1', name: "meta" }), this.interaction !== null && h("slot", { key: '3327e66eacf36753029666d7a56565d21732aec5', name: "interaction" })), h("div", { key: '6bec23e361930bbb8d66cde9350d13161747cd1d', class: "dso-plekinfo-card-content" }, h("slot", { key: '12ae5a2a1b4fca94fb8232c033767b220721f651', name: "content" })))));
54
54
  }
55
55
  static get is() { return "dso-plekinfo-card"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -13,7 +13,7 @@ export class ProgressBar {
13
13
  render() {
14
14
  const progressNumber = Math.round(this.progress);
15
15
  const progressPercentage = `${progressNumber}%`;
16
- return (h("div", { key: 'f36531b1a2a63c681dd43343a56e27ae989ce4d3', class: "progress" }, h("span", { key: '1ebf570e2636eea9ce92afa1178be72e558ea97c', class: "progress-bar", role: "progressbar", "aria-labelledby": "progress-bar-label", "aria-valuenow": progressNumber, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("span", { key: '2e3b5359953d98adeb8b602dc38f172d166cbf07', style: { width: `${progressPercentage}` } })), h("span", { key: '6cbff28be0db354b9559ae88f03cdbd24cf6349d', id: "progress-bar-label" }, h("slot", { key: 'a389ee94c6ea3f592b6884841e013a3fc8c7e058' }))));
16
+ return (h("div", { key: '890a38e19abe239b15e97ab5e863bbb88a2e4d89', class: "progress" }, h("span", { key: 'a48b38f078f5ef157d035d9148e07d30363a25e4', class: "progress-bar", role: "progressbar", "aria-labelledby": "progress-bar-label", "aria-valuenow": progressNumber, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("span", { key: 'd1fb152692ac60590536d7c5d957fc14813f33c3', style: { width: `${progressPercentage}` } })), h("span", { key: '59d3fbfd633705d73ad442602e9de1c8f12c2def', id: "progress-bar-label" }, h("slot", { key: '90c470afc6e57e744102c2fc7a9c4353a2a6d2b3' }))));
17
17
  }
18
18
  static get is() { return "dso-progress-bar"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class Progressindicator {
6
6
  this.text = i18n(() => this.host, translations);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '52411c54285ee531622097d20636d86490eb5347' }, h("span", { key: 'f041f3f2e1cbb130ac28c9f372be4c3ea55e6408', class: "dso-progress-indicator-spinner", role: "progressbar", "aria-labelledby": "progress-indicator-label" }, h("dso-icon", { key: 'f40a24bbba984fc401843e60731e6568756e3c19', icon: "spinner" })), h("span", { key: 'ec13ec473f01dcb0ad18a64f0dc56cce16b87cac', id: "progress-indicator-label", class: "dso-progress-indicator-label" }, this.label || this.text("label"))));
9
+ return (h(Host, { key: '412708c2c447dea51145c32ae824536080b47a2e' }, h("span", { key: 'd922af84f2971cb5a238da95f5f94f3674436d8e', class: "dso-progress-indicator-spinner", role: "progressbar", "aria-labelledby": "progress-indicator-label" }, h("dso-icon", { key: '8af8ba31c28fdabacf700b774db95d463111919a', icon: "spinner" })), h("span", { key: '13c5c78b7aab6696dc0896cfbf3e391a30d45762', id: "progress-indicator-label", class: "dso-progress-indicator-label" }, this.label || this.text("label"))));
10
10
  }
11
11
  static get is() { return "dso-progress-indicator"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Fragment } from "@stencil/core";
2
2
  export class ProjectItem {
3
3
  render() {
4
- return (h(Fragment, null, h("div", { key: '3d3b1bc8f12eba2607d5536f6c87be8601484671', class: "project-item-header" }, h("div", { key: '13d3358e7ec3f837658dcce47e333898ee5da527', class: "project-item-title" }, h("slot", { key: '5133a6630099106d78549101bb974659eb515e7c', name: "title" }), this.label && (h("dso-label", { key: 'a955a28692b88cecbb755a0d5e7f6c1e54a5bf2b', status: "danger", compact: true }, this.label))), h("div", { key: '847a95a32f9130bec82a55e590bde4d319eceb39', class: "project-item-actions" }, h("slot", { key: 'dfc72d7cbe7a58ec08a5c6b68b0b9388944aa1e8', name: "actions" }))), h("div", { key: '2e3a43fec7416b100680a68bbfce3e3e05b84aaa', class: "project-item-info" }, h("div", { key: 'f20a244104d7f853d6be17b1977f1a612a60fcd8', class: "project-item-progress" }, h("slot", { key: '4806c05b5837d3164d44ee4804f98e0cfba30775', name: "progress" })), h("div", { key: 'b7593174a234950a1cd52b7c3bec4fc98ce83802', class: "project-item-status" }, h("slot", { key: 'a509ac9469b91bd514940688ab01c1c50300398d', name: "status" })))));
4
+ return (h(Fragment, null, h("div", { key: 'd15ec4ffeb4103f4bb2f112408b7e499aa0d1e68', class: "project-item-header" }, h("div", { key: 'b1ac2f3768156a459f87de37491031e804ee5fba', class: "project-item-title" }, h("slot", { key: 'eac6bf4453bfb5b35297dd4472165e4148178f47', name: "title" }), this.label && (h("dso-label", { key: 'd0ee0ca487066a5818b6bbb55936a0356f8d20b3', status: "danger", compact: true }, this.label))), h("div", { key: '83a5bc2c5795542387d2e7370e963a6b955998be', class: "project-item-actions" }, h("slot", { key: 'e85d0a59d4cfbc099b8c3740aaaa6b1c7c7bf4cd', name: "actions" }))), h("div", { key: 'c494d7ee66614b801697b4b5423aded99287e10d', class: "project-item-info" }, h("div", { key: 'f1cccf71fab35f07a018ad4a8811e8e1cded2950', class: "project-item-progress" }, h("slot", { key: '68601ab911ba1af9ada2454c9bf4c8230b9d2618', name: "progress" })), h("div", { key: 'f5619aa511b2bf0f4d9a8b8e38bcd4c6d382669f', class: "project-item-status" }, h("slot", { key: '1d7d7d0a9b70a1d3623e61f22d94fa66efbe658b', name: "status" })))));
5
5
  }
6
6
  static get is() { return "dso-project-item"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class ResponsiveElement {
40
40
  this.observer.unobserve(this.host);
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: 'ca9c1b61a8604e516e05bdce5117192964831c90', small: this.sizeAlias === "small", medium: this.sizeAlias === "medium", large: this.sizeAlias === "large" }, h("slot", { key: 'd8465b9289ba9657d50c36cd0d43926e5ac47d3f' })));
43
+ return (h(Host, { key: 'e6593b115541e2a8d86f82c0ef8e19a3709f41bf', small: this.sizeAlias === "small", medium: this.sizeAlias === "medium", large: this.sizeAlias === "large" }, h("slot", { key: '5b3263ef3ec5ea3376002bc62316b7af63a5a0ae' })));
44
44
  }
45
45
  static get is() { return "dso-responsive-element"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -84,9 +84,9 @@ export class Scrollable {
84
84
  this.slottedElements.forEach((element) => resizeObserver.unobserve(element));
85
85
  }
86
86
  render() {
87
- return (h("div", { key: 'c05eb5ae95b609ffd925de71c6ef24c46dcbc766', ref: (el) => (this.shadowContainerDiv = el), class: "dso-shadow-container" }, h("div", { key: '7995d59689685e4b66b9fc93e3ca94f79971ae55', ref: (el) => (this.scrollContainerDiv = el), class: clsx("dso-scroll-container", {
87
+ return (h("div", { key: '18cfb4eb27e7dafc8b2421236dcdaa6bf22bdbe5', ref: (el) => (this.shadowContainerDiv = el), class: "dso-shadow-container" }, h("div", { key: 'a32dba02a761a573ff12e80f8f45e3e372bc773a', ref: (el) => (this.scrollContainerDiv = el), class: clsx("dso-scroll-container", {
88
88
  [`dso-scroll-${this.scrollPosition}`]: this.scrollPosition !== "noScroll",
89
- }), onScroll: () => this._setScrollState() }, h("slot", { key: '8beab734494a921c45d519828b15128b09623a38' }))));
89
+ }), onScroll: () => this._setScrollState() }, h("slot", { key: 'c6f2e56c42e21c91bb8bc63a411dd314bd2652e7' }))));
90
90
  }
91
91
  static get is() { return "dso-scrollable"; }
92
92
  static get encapsulation() { return "shadow"; }
@@ -51,7 +51,7 @@ export class Selectable {
51
51
  render() {
52
52
  var _a;
53
53
  const hasInfo = !!this.host.querySelector('[slot="info"]');
54
- return (h(Fragment, { key: '6be928de297ac8c9e25bfee2d06c39aa3325223a' }, h("div", { key: '95816f8f3bf9c78b767e722c101b3de3ebdc02c7', class: "dso-selectable-container" }, h("div", { key: 'e357c54e22edca90183d8d02c5ac18383214c1d3', class: clsx("dso-selectable-input-wrapper", { "dso-keyboard-focus": this.keyboardFocus }) }, h("input", { key: 'cf93d6a44737dc536a79c7d3234d3ac18a0fb32b', type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: this.handleOnChange, onBlur: () => (this.keyboardFocus = false), onKeyUp: () => (this.keyboardFocus = true), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null, h("slot", null)))), hasInfo && !this.infoFixed && (h("dso-info-button", { key: 'ccca28238ea3c20c8d85964034e00b08d70b18d2', active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))), hasInfo && (h("dso-info", { key: 'e6141cd94e9c499a4b18e791793e5e1a4daa439d', id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", { key: '32872781b1a8ad9d1649e88f3725e1eadc775a4b' }, h("slot", { key: '014b75f1bdf48b4f7f171bd32d6717f3a7d52a90', name: "info" })))), h("slot", { key: '9879fc525dcfcf7cac3c6cfd99c142e8fc5adb19', name: "options" })));
54
+ return (h(Fragment, { key: 'e68ce686f5d6fd57c6acb6a5fe641304d29ed06f' }, h("div", { key: 'd7b628443f8f2d05201387b7fccf0af23b2e1713', class: "dso-selectable-container" }, h("div", { key: 'a7abb03469b370fa5e1b91b5169373ec942f7720', class: clsx("dso-selectable-input-wrapper", { "dso-keyboard-focus": this.keyboardFocus }) }, h("input", { key: '34b87eb1e4c2240546d3149c5c15afcd041d7fa7', type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: this.handleOnChange, onBlur: () => (this.keyboardFocus = false), onKeyUp: () => (this.keyboardFocus = true), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null, h("slot", null)))), hasInfo && !this.infoFixed && (h("dso-info-button", { key: '361ef8a8f27e4da5907a5b47c93a8259013c3cff', active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))), hasInfo && (h("dso-info", { key: 'c8967fc6ccdc2bc254deb2e2935a09ebbd7b6bcf', id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", { key: 'f50d96b7a1022bb1eb62ab158d5e0c702297288e' }, h("slot", { key: '0ada90bcc617aa8b670d316aa796dc01e2763b95', name: "info" })))), h("slot", { key: 'e923228d15e24dd1405208ffe352edbfdd332da8', name: "options" })));
55
55
  }
56
56
  componentDidRender() {
57
57
  if (this.input && typeof this.checked === "boolean" && this.input.checked !== this.checked) {
@@ -8,7 +8,7 @@ export class Skiplink {
8
8
  return this.dsoSkiplinkClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });
9
9
  }
10
10
  render() {
11
- return (h("a", { key: 'c78ada691201b00d93801b8dc232bf9111e8dfa8', href: `#${this.to}`, onClick: (e) => this.clickEventHandler(e) }, this.label, h("dso-icon", { key: '5e069b50839ca41db1a6a098df3d7c73e1ebdd08', icon: "chevron-right" })));
11
+ return (h("a", { key: '78c9b83c84af108ad52064712dea6dfd03fcf186', href: `#${this.to}`, onClick: (e) => this.clickEventHandler(e) }, this.label, h("dso-icon", { key: 'e1ed433e9827d63a09140adbc5c25cadf9d34e6c', icon: "chevron-right" })));
12
12
  }
13
13
  static get is() { return "dso-skiplink"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -25,7 +25,7 @@ export class SlideToggle {
25
25
  this.hasVisibleLabel = this.host.querySelector("*") !== null;
26
26
  }
27
27
  render() {
28
- return (h(Fragment, null, h("button", Object.assign({ key: '7ff86866a9d77df22b05998c9ab88e9b44a3037f', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), h("svg", { key: 'fe3211c16c38e99ee8aecef786dd546e7c8a059f', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, h("g", { key: '771ac2486522b8e2bb130d7bb4e0779fe0adbe45', fill: "none", "fill-rule": "evenodd" }, h("rect", { key: '9856f027ca31cfd9732774c7440eb07ef749c4d0', width: "40", height: "20", fill: "currentColor", rx: "10" }), h("circle", { key: '65ea5eba7b1e850822b2bf57537739547bc19a52', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (h("label", { key: 'e140104191700dbdb0e8c1061f78617217e459d8', htmlFor: this.identifier }, h("slot", { key: 'a2f1b30ad79f1ab9c47b28e2e4814a5198919bde' })))));
28
+ return (h(Fragment, null, h("button", Object.assign({ key: '9998feb9ab9de5a90688ec1c4c437e099c71bce8', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), h("svg", { key: 'bc761b84d0c94aa0b3c7f14858a8809f6f565f34', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, h("g", { key: '5fb96fdd754cf0281df897ae5fa4186d7228606d', fill: "none", "fill-rule": "evenodd" }, h("rect", { key: 'a1ef646ad0c14eef2053a61dddaac5bc97fcb2c6', width: "40", height: "20", fill: "currentColor", rx: "10" }), h("circle", { key: '5b283aa09bf71007263e26dc103ad8f373de5e7c', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (h("label", { key: 'd76771061d5f36cab2b1c312f2014140746d6c6d', htmlFor: this.identifier }, h("slot", { key: '799f7bb5d225c8d6eebb80d3659e247d93ce3a7e' })))));
29
29
  }
30
30
  static get is() { return "dso-slide-toggle"; }
31
31
  static get encapsulation() { return "scoped"; }
@@ -285,9 +285,9 @@ button.dso-secondary.extern::after, button.dso-secondary.download::after {
285
285
  margin-inline-start: 8px;
286
286
  }
287
287
  button.dso-secondary {
288
- background-color: #fff;
289
- border-color: #39870c;
290
- color: #39870c;
288
+ background-color: var(--_dso-button-secondary-background-color, #fff);
289
+ border-color: var(--_dso-button-secondary-border-color, #39870c);
290
+ color: var(--_dso-button-secondary-color, #39870c);
291
291
  }
292
292
  button.dso-secondary {
293
293
  border-width: 1px;
@@ -299,19 +299,19 @@ button.dso-secondary {
299
299
  padding-inline: 15px;
300
300
  }
301
301
  button.dso-secondary:hover {
302
- background-color: #d7e7ce;
303
- border-color: #39870c;
304
- color: #39870c;
302
+ background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
303
+ border-color: var(--_dso-button-secondary-hover-border-color, #39870c);
304
+ color: var(--_dso-button-secondary-hover-color, #39870c);
305
305
  }
306
306
  button.dso-secondary:active {
307
- background-color: #39870c;
308
- border-color: #39870c;
309
- color: #fff;
307
+ background-color: var(--_dso-button-secondary-active-background-color, #39870c);
308
+ border-color: var(--_dso-button-secondary-active-border-color, #39870c);
309
+ color: var(--_dso-button-secondary-active-color, #fff);
310
310
  }
311
311
  button.dso-secondary[disabled], button.dso-secondary[disabled]:hover {
312
- background-color: #fff;
313
- border-color: #afcf9d;
314
- color: #afcf9d;
312
+ background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
313
+ border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
314
+ color: var(--_dso-button-secondary-disabled-color, #afcf9d);
315
315
  }
316
316
  button.dso-secondary.dso-small {
317
317
  line-height: 1rem;
@@ -18,10 +18,10 @@ export class SurveyRating {
18
18
  "Makkelijk",
19
19
  "Heel makkelijk",
20
20
  ];
21
- return (h("dso-panel", { key: '6fc9ee08dd30db6aa3d69d97c2ca0301925aead8', emphasized: true, onDsoCloseClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("h2", { key: 'bbb4670c28e25abbfc173460ce3f68222890fe83', slot: "heading" }, "Help ons met een onderzoek"), h("strong", { key: '06cd4142e76f971ce0295de633b4b50829ee25da' }, "Hoe moeilijk of makkelijk was deze taak om uit te voeren"), h("form", { key: '28fa667cc36b6e5195e89ca5a367db1f78c1b594', onSubmit: (e) => this.handleForm(e) }, h("div", { key: '64da63f3d3fa3c184d170294c0881b0706384c12', class: "visual-rating-labels", "aria-hidden": "true" }, h("span", { key: '43ae48b3d6cb72029401854d4e775e9039483b1c' }, "Heel moeilijk"), h("span", { key: 'f77fb4f6d9618f1f854548edf8b02b3462737805' }, "Heel makkelijk")), h("div", { key: '1558bdd1bf03f620c9e78d77c0b0a5a64c36351c', role: "radiogroup" }, ratings.map((rating, index) => {
21
+ return (h("dso-panel", { key: 'b65dd82e729bd3cb32e827874638d05d8405b1df', emphasized: true, onDsoCloseClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("h2", { key: 'df0812d996ece9fdb934b2b0896e964b94ed4619', slot: "heading" }, "Help ons met een onderzoek"), h("strong", { key: 'cd1db7a2e658b0ed1b477bde58d472bff791e6da' }, "Hoe moeilijk of makkelijk was deze taak om uit te voeren"), h("form", { key: 'fe99767e32e730616c82378c7975f45bab0fb92d', onSubmit: (e) => this.handleForm(e) }, h("div", { key: 'eaa5f15a5979b5d771a5f7d2ee3c00cce27adc5f', class: "visual-rating-labels", "aria-hidden": "true" }, h("span", { key: '6fc5a729d518578a5d353099959e7f0ebb5aca19' }, "Heel moeilijk"), h("span", { key: '9056e1191f57b16b5e6b74e7674ee19c3c3066e2' }, "Heel makkelijk")), h("div", { key: '5c2b13e7804fbbe74d0eda8a29f648d6c72175c1', role: "radiogroup" }, ratings.map((rating, index) => {
22
22
  const ratingNumber = index + 1;
23
23
  return (h(Fragment, null, h("label", { class: `survey-rating-${ratingNumber}` }, ratingNumber, h("span", { class: "sr-only" }, rating), h("input", { type: "radio", name: "rating", value: ratingNumber, checked: ratingNumber === this.rating, onChange: (e) => this.handleChange(e) }))));
24
- })), h("button", { key: 'eba1c066912dcb627aa64c65e6855b2d8193c4c5', type: "submit", class: "dso-secondary" }, h("span", { key: '8d748fc6a39c343c949808c070eb68aa4e4ba1b9' }, "Antwoord verzenden")))));
24
+ })), h("button", { key: 'fad9fd7925f0bf15b4a6bc9484b7de8e58b6721b', type: "submit", class: "dso-secondary" }, h("span", { key: '3353e9c585cc32f35e4106c595add16127b9a663' }, "Antwoord verzenden")))));
25
25
  }
26
26
  static get is() { return "dso-survey-rating"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -55,9 +55,9 @@ label.dso-primary.download::after {
55
55
  a.dso-primary,
56
56
  button.dso-primary,
57
57
  label.dso-primary {
58
- background-color: #39870c;
59
- border-color: #39870c;
60
- color: #fff;
58
+ background-color: var(--_dso-button-primary-background-color, #39870c);
59
+ border-color: var(--_dso-button-primary-border-color, #39870c);
60
+ color: var(--_dso-button-primary-color, #fff);
61
61
  }
62
62
  a.dso-primary,
63
63
  button.dso-primary,
@@ -73,25 +73,25 @@ label.dso-primary {
73
73
  a.dso-primary:hover,
74
74
  button.dso-primary:hover,
75
75
  label.dso-primary:hover {
76
- background-color: #275937;
77
- border-color: #275937;
78
- color: #fff;
76
+ background-color: var(--_dso-button-primary-hover-background-color, #275937);
77
+ border-color: var(--_dso-button-primary-hover-border-color, #275937);
78
+ color: var(--_dso-button-primary-hover-color, #fff);
79
79
  }
80
80
  a.dso-primary:active,
81
81
  button.dso-primary:active,
82
82
  label.dso-primary:active {
83
- background-color: #173521;
84
- border-color: #173521;
85
- color: #fff;
83
+ background-color: var(--_dso-button-primary-active-background-color, #173521);
84
+ border-color: var(--_dso-button-primary-active-border-color, #173521);
85
+ color: var(--_dso-button-primary-active-color, #fff);
86
86
  }
87
87
  a.dso-primary[disabled], a.dso-primary[disabled]:hover,
88
88
  button.dso-primary[disabled],
89
89
  button.dso-primary[disabled]:hover,
90
90
  label.dso-primary[disabled],
91
91
  label.dso-primary[disabled]:hover {
92
- background-color: #afcf9d;
93
- border-color: #afcf9d;
94
- color: #fff;
92
+ background-color: var(--_dso-button-primary-disabled-background-color, #afcf9d);
93
+ border-color: var(--_dso-button-primary-disabled-border-color, #afcf9d);
94
+ color: var(--_dso-button-primary-disabled-color, #fff);
95
95
  }
96
96
  a.dso-primary.dso-small,
97
97
  button.dso-primary.dso-small,
@@ -238,9 +238,9 @@ label.dso-secondary.download::after {
238
238
  a.dso-secondary,
239
239
  button.dso-secondary,
240
240
  label.dso-secondary {
241
- background-color: #fff;
242
- border-color: #39870c;
243
- color: #39870c;
241
+ background-color: var(--_dso-button-secondary-background-color, #fff);
242
+ border-color: var(--_dso-button-secondary-border-color, #39870c);
243
+ color: var(--_dso-button-secondary-color, #39870c);
244
244
  }
245
245
  a.dso-secondary,
246
246
  button.dso-secondary,
@@ -256,25 +256,25 @@ label.dso-secondary {
256
256
  a.dso-secondary:hover,
257
257
  button.dso-secondary:hover,
258
258
  label.dso-secondary:hover {
259
- background-color: #d7e7ce;
260
- border-color: #39870c;
261
- color: #39870c;
259
+ background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
260
+ border-color: var(--_dso-button-secondary-hover-border-color, #39870c);
261
+ color: var(--_dso-button-secondary-hover-color, #39870c);
262
262
  }
263
263
  a.dso-secondary:active,
264
264
  button.dso-secondary:active,
265
265
  label.dso-secondary:active {
266
- background-color: #39870c;
267
- border-color: #39870c;
268
- color: #fff;
266
+ background-color: var(--_dso-button-secondary-active-background-color, #39870c);
267
+ border-color: var(--_dso-button-secondary-active-border-color, #39870c);
268
+ color: var(--_dso-button-secondary-active-color, #fff);
269
269
  }
270
270
  a.dso-secondary[disabled], a.dso-secondary[disabled]:hover,
271
271
  button.dso-secondary[disabled],
272
272
  button.dso-secondary[disabled]:hover,
273
273
  label.dso-secondary[disabled],
274
274
  label.dso-secondary[disabled]:hover {
275
- background-color: #fff;
276
- border-color: #afcf9d;
277
- color: #afcf9d;
275
+ background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
276
+ border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
277
+ color: var(--_dso-button-secondary-disabled-color, #afcf9d);
278
278
  }
279
279
  a.dso-secondary.dso-small,
280
280
  button.dso-secondary.dso-small,
@@ -35,7 +35,7 @@ export class Table {
35
35
  render() {
36
36
  var _a, _b;
37
37
  const caption = (_b = (_a = this.host.querySelector(":scope > table > caption")) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim();
38
- return (h(Host, { key: 'c465f5014e591ec4a8fcab7eed909818f2dde6f8' }, this.modalActive && this.placeholderHeight && (h("div", { key: '94fa4854b3bd1cfed2087e416f823033bb1fc3de', class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), this.modalActive && h("div", { key: '5c9e703a74f0c8f221042b219599315e0932f864', class: "dso-modal-overlay" }), h("div", { key: 'cccfcba87f32b6fdf2ed41a030d99304d06ac218', class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ key: 'bad4aa92cb36d34395f6c68d698e20ba79aad188', class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { key: 'b9c3cec6bfb473adb41d05fdfa96fa167b3e481b', class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { key: 'ca72148aa35da17df4eaf05519e1871052becf96', class: "dso-responsive-message" }, h("span", { key: '8b94652d99b6370d8db1c46d8834d604c35806e8' }, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { key: '30c50f4f75494b32e3bf874db54dd5bd95514eb1', type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { key: 'af210675eb92a25f3304f5649de20f923c465d50', class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", { key: '49e46c6efa13a6393de4828c1d9e326dc426597d' }, "vergroten"), h("dso-icon", { key: '3d24a2606d42540e456eaa8c8b54b9da76c22026', icon: "external-link" }))))), this.modalActive && (h("div", { key: 'bb26849d9c55403cbbae07e135b8752e5ea87a60', class: "dso-header" }, h("h2", { key: 'cdefb7cf4a9057f0f0706f175e0966c827b387ff', id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { key: 'f5dea929569c09b8d39eaeddd8e5d067371f4a80', type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { key: 'a329ba6dcf831b752a532c840d41f7cc9265a156', icon: "times" }), h("span", { key: '851e7ba83fce8691b0ca60b4de4681513d978fea', class: "sr-only" }, "Sluiten")))), h("div", { key: '5bb60f54d200a0cb86209114e8e41f3e25c556b1', class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", { key: 'd84032333756cf618b7e534e0e8e4a246f5c3446' }))))));
38
+ return (h(Host, { key: '2d8279e20e37f0ed6b7b76a33860b382d6bb182d' }, this.modalActive && this.placeholderHeight && (h("div", { key: 'd19ec4b21f0c745a12aafe4049985e2863252d3c', class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), this.modalActive && h("div", { key: '3ad7b95965002b0dc007255f72b62326f46f4405', class: "dso-modal-overlay" }), h("div", { key: '80693b6b28986f0320f3cb994b8fc4e85e878153', class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ key: '9e29c09eb082f9afc6216efb210a66dc82589539', class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { key: '9cee36736c5d50fdb6a688c2b8f10e557f0b18cf', class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { key: '47f4580644f9f7c4b1d6e8944de2225de0768f4e', class: "dso-responsive-message" }, h("span", { key: '0792867bae569f0b2747e102632e086cb622f0c0' }, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { key: '771efe05ecf2850ae508a81eb0c0809dc255e51b', type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { key: '9a0cc472ee93fcabff0856458dc523ed32543d06', class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", { key: 'd61d3c2846d7d0166db3e0810c00ff420de3161b' }, "vergroten"), h("dso-icon", { key: '9a41c4e1237f717014353571ec229fad3b60aac6', icon: "external-link" }))))), this.modalActive && (h("div", { key: 'c770c1f32736501f4c3a7a171f8a9ca2075ff03f', class: "dso-header" }, h("h2", { key: 'f86a5d2641de96890c20eb7a7430c820290aa261', id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { key: '62d186fd947e4be99522ffad036ed4c39f33959d', type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { key: '3e4ee7a70851e7f4b4f77225a07d88a4d244839b', icon: "times" }), h("span", { key: 'efdf2657b62839591efee36fad9b8c157374fe15', class: "sr-only" }, "Sluiten")))), h("div", { key: '35db2e64a1e4d16e1b0d752b06546764c410dc6a', class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", { key: 'a6dd9bed411f23bc771d1470e4c9f36cea990920' }))))));
39
39
  }
40
40
  openModal() {
41
41
  this.placeholderHeight = this.host.clientHeight;