@dso-toolkit/core 51.2.1 → 51.4.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 (211) hide show
  1. package/dist/cjs/annotation.service-e980f478.js +21 -0
  2. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  3. package/dist/cjs/dso-accordion.cjs.entry.js +2 -192
  4. package/dist/cjs/dso-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/dso-annotation-button.cjs.entry.js +25 -0
  6. package/dist/cjs/dso-annotation-output.cjs.entry.js +35 -0
  7. package/dist/cjs/dso-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-card.cjs.entry.js +5 -3
  9. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +45 -1
  10. package/dist/cjs/dso-expandable-heading.cjs.entry.js +47 -0
  11. package/dist/cjs/dso-expandable.cjs.entry.js +20 -0
  12. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  14. package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -2
  15. package/dist/cjs/dso-info_2.cjs.entry.js +4 -3
  16. package/dist/cjs/dso-label.cjs.entry.js +2 -2
  17. package/dist/cjs/dso-map-controls.cjs.entry.js +12 -4
  18. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  19. package/dist/cjs/dso-tooltip.cjs.entry.js +4 -1801
  20. package/dist/cjs/index-71b733b1.js +196 -0
  21. package/dist/cjs/index.cjs.js +7 -0
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/map-controls.interfaces-5ceec716.js +5 -0
  24. package/dist/cjs/popper-6adb1c1a.js +1803 -0
  25. package/dist/collection/collection-manifest.json +4 -0
  26. package/dist/collection/components/accordion/components/accordion-section.css +6 -11
  27. package/dist/collection/components/alert/alert.css +4 -4
  28. package/dist/collection/components/annotation-button/annotation-button.css +3 -0
  29. package/dist/collection/components/annotation-button/annotation-button.js +45 -0
  30. package/dist/collection/components/annotation-output/annotation-output.css +82 -0
  31. package/dist/collection/components/annotation-output/annotation-output.interfaces.js +1 -0
  32. package/dist/collection/components/annotation-output/annotation-output.js +126 -0
  33. package/dist/collection/components/badge/badge.css +7 -2
  34. package/dist/collection/components/badge/badge.js +2 -2
  35. package/dist/collection/components/card/card.css +0 -1
  36. package/dist/collection/components/card/card.js +22 -2
  37. package/dist/collection/components/dropdown-menu/dropdown-menu.css +0 -1
  38. package/dist/collection/components/dropdown-menu/dropdown-menu.js +64 -0
  39. package/dist/collection/components/expandable/expandable.css +24 -0
  40. package/dist/collection/components/expandable/expandable.js +42 -0
  41. package/dist/collection/components/expandable-heading/expandable-heading.css +145 -0
  42. package/dist/collection/components/expandable-heading/expandable-heading.interfaces.js +1 -0
  43. package/dist/collection/components/expandable-heading/expandable-heading.js +117 -0
  44. package/dist/collection/components/expandable-heading/heading.js +16 -0
  45. package/dist/collection/components/header/header.css +2 -2
  46. package/dist/collection/components/highlight-box/highlight-box.css +1 -0
  47. package/dist/collection/components/image-overlay/image-overlay.js +1 -3
  48. package/dist/collection/components/info/info.css +1 -0
  49. package/dist/collection/components/label/label.css +11 -10
  50. package/dist/collection/components/label/label.js +3 -3
  51. package/dist/collection/components/map-controls/map-controls.interfaces.js +1 -0
  52. package/dist/collection/components/map-controls/map-controls.js +58 -2
  53. package/dist/collection/components/selectable/selectable.css +1 -0
  54. package/dist/collection/components/selectable/selectable.js +19 -1
  55. package/dist/collection/index.js +3 -0
  56. package/dist/collection/services/annotation.service.js +16 -0
  57. package/dist/components/annotation.service.js +19 -0
  58. package/dist/components/dropdown-menu.js +47 -2
  59. package/dist/components/dso-accordion-section.js +2 -2
  60. package/dist/components/dso-accordion.js +2 -192
  61. package/dist/components/dso-alert.js +1 -1
  62. package/dist/components/dso-annotation-button.d.ts +11 -0
  63. package/dist/components/dso-annotation-button.js +45 -0
  64. package/dist/components/dso-annotation-output.d.ts +11 -0
  65. package/dist/components/dso-annotation-output.js +69 -0
  66. package/dist/components/dso-autosuggest.js +1 -1
  67. package/dist/components/dso-badge.js +1 -1
  68. package/dist/components/dso-card.js +7 -4
  69. package/dist/components/dso-expandable-heading.d.ts +11 -0
  70. package/dist/components/dso-expandable-heading.js +77 -0
  71. package/dist/components/dso-expandable.d.ts +11 -0
  72. package/dist/components/dso-expandable.js +6 -0
  73. package/dist/components/dso-header.js +2 -2
  74. package/dist/components/dso-highlight-box.js +1 -1
  75. package/dist/components/dso-image-overlay.js +2 -4
  76. package/dist/components/dso-label.js +2 -2
  77. package/dist/components/dso-map-controls.js +14 -4
  78. package/dist/components/dso-table.js +1 -1
  79. package/dist/components/expandable.js +33 -0
  80. package/dist/components/index.d.ts +4 -0
  81. package/dist/components/index.js +5 -1
  82. package/dist/components/index2.js +185 -61
  83. package/dist/components/index3.js +70 -0
  84. package/dist/components/info.js +1 -1
  85. package/dist/components/popper.js +1799 -0
  86. package/dist/components/selectable.js +4 -2
  87. package/dist/components/tooltip.js +4 -1801
  88. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  89. package/dist/dso-toolkit/index.esm.js +1 -0
  90. package/dist/dso-toolkit/p-07952ece.entry.js +1 -0
  91. package/dist/dso-toolkit/p-09424a1d.entry.js +1 -0
  92. package/dist/dso-toolkit/{p-a9baa631.entry.js → p-0af9bfb1.entry.js} +1 -1
  93. package/dist/dso-toolkit/{p-746dc38a.entry.js → p-0fce0861.entry.js} +1 -1
  94. package/dist/dso-toolkit/{p-abbcbe6a.entry.js → p-147ec7bd.entry.js} +1 -1
  95. package/dist/dso-toolkit/{p-a8cb2eae.entry.js → p-1aef13ee.entry.js} +1 -1
  96. package/dist/dso-toolkit/{p-19323600.entry.js → p-1cb94d7d.entry.js} +1 -1
  97. package/dist/dso-toolkit/p-1cea3b99.js +1 -0
  98. package/dist/dso-toolkit/{p-c846d208.entry.js → p-22f9240a.entry.js} +1 -1
  99. package/dist/dso-toolkit/p-30df5586.entry.js +1 -0
  100. package/dist/dso-toolkit/{p-427f6d90.entry.js → p-3914ad70.entry.js} +1 -1
  101. package/dist/dso-toolkit/{p-67c4987c.entry.js → p-43f3d736.entry.js} +1 -1
  102. package/dist/dso-toolkit/p-452c7fbb.entry.js +1 -0
  103. package/dist/dso-toolkit/{p-3b8cbd05.entry.js → p-494fe8e5.entry.js} +1 -1
  104. package/dist/dso-toolkit/p-4b18389c.entry.js +1 -0
  105. package/dist/dso-toolkit/p-4b8535b7.js +1 -0
  106. package/dist/dso-toolkit/p-4c8426b7.entry.js +1 -0
  107. package/dist/dso-toolkit/{p-8aa39e7f.entry.js → p-5082d823.entry.js} +1 -1
  108. package/dist/dso-toolkit/{p-ff72ee4c.entry.js → p-588bc4d7.entry.js} +1 -1
  109. package/dist/dso-toolkit/p-67df25a7.entry.js +1 -0
  110. package/dist/dso-toolkit/p-6cdc1acd.entry.js +1 -0
  111. package/dist/dso-toolkit/{p-11176cb8.entry.js → p-82465cdc.entry.js} +1 -1
  112. package/dist/dso-toolkit/p-85b18dbd.js +1 -0
  113. package/dist/dso-toolkit/p-89b97fce.js +1 -0
  114. package/dist/dso-toolkit/{p-8e9f6355.entry.js → p-96efc763.entry.js} +1 -1
  115. package/dist/dso-toolkit/{p-8f35c8f8.js → p-98fd1658.js} +1 -1
  116. package/dist/dso-toolkit/p-9b07b034.entry.js +1 -0
  117. package/dist/dso-toolkit/p-ad0b38cf.entry.js +1 -0
  118. package/dist/dso-toolkit/{p-6080bb9e.entry.js → p-ba0da696.entry.js} +1 -1
  119. package/dist/dso-toolkit/p-c1226b66.entry.js +1 -0
  120. package/dist/dso-toolkit/{p-520a2cdd.entry.js → p-c16ce11e.entry.js} +1 -1
  121. package/dist/dso-toolkit/p-c2a4f4ea.entry.js +1 -0
  122. package/dist/dso-toolkit/{p-655eff47.entry.js → p-c54ad578.entry.js} +1 -1
  123. package/dist/dso-toolkit/{p-35687d62.entry.js → p-d4772fb0.entry.js} +1 -1
  124. package/dist/dso-toolkit/{p-2fa96ac0.entry.js → p-d6ea8670.entry.js} +1 -1
  125. package/dist/dso-toolkit/{p-ec25868b.entry.js → p-d987ef37.entry.js} +1 -1
  126. package/dist/dso-toolkit/{p-92ad1cdb.entry.js → p-e00a3019.entry.js} +1 -1
  127. package/dist/dso-toolkit/p-e3c9c7d0.entry.js +1 -0
  128. package/dist/dso-toolkit/{p-ec4501bb.entry.js → p-e4f667b3.entry.js} +1 -1
  129. package/dist/dso-toolkit/p-ee1acb32.entry.js +1 -0
  130. package/dist/dso-toolkit/{p-55142124.entry.js → p-efdf5c91.entry.js} +1 -1
  131. package/dist/dso-toolkit/p-f3f0d6c9.entry.js +1 -0
  132. package/dist/dso-toolkit/p-f53860da.entry.js +1 -0
  133. package/dist/dso-toolkit/{p-76a1428a.entry.js → p-f8a08ba1.entry.js} +1 -1
  134. package/dist/esm/annotation.service-d0add3fc.js +19 -0
  135. package/dist/esm/dso-accordion-section.entry.js +2 -2
  136. package/dist/esm/dso-accordion.entry.js +2 -192
  137. package/dist/esm/dso-alert.entry.js +2 -2
  138. package/dist/esm/dso-annotation-button.entry.js +21 -0
  139. package/dist/esm/dso-annotation-output.entry.js +31 -0
  140. package/dist/esm/dso-attachments-counter.entry.js +1 -1
  141. package/dist/esm/dso-autosuggest.entry.js +1 -1
  142. package/dist/esm/dso-badge.entry.js +2 -2
  143. package/dist/esm/dso-banner.entry.js +1 -1
  144. package/dist/esm/dso-card-container.entry.js +1 -1
  145. package/dist/esm/dso-card.entry.js +6 -4
  146. package/dist/esm/dso-date-picker.entry.js +1 -1
  147. package/dist/esm/dso-dropdown-menu.entry.js +46 -2
  148. package/dist/esm/dso-expandable-heading.entry.js +43 -0
  149. package/dist/esm/dso-expandable.entry.js +16 -0
  150. package/dist/esm/dso-header.entry.js +2 -2
  151. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  152. package/dist/esm/dso-highlight-box.entry.js +2 -2
  153. package/dist/esm/dso-icon.entry.js +1 -1
  154. package/dist/esm/dso-image-overlay.entry.js +2 -3
  155. package/dist/esm/dso-info-button.entry.js +1 -1
  156. package/dist/esm/dso-info_2.entry.js +5 -4
  157. package/dist/esm/dso-label.entry.js +3 -3
  158. package/dist/esm/dso-list-button.entry.js +1 -1
  159. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  160. package/dist/esm/dso-map-controls.entry.js +11 -3
  161. package/dist/esm/dso-map-overlays.entry.js +1 -1
  162. package/dist/esm/dso-modal.entry.js +1 -1
  163. package/dist/esm/dso-ozon-content.entry.js +1 -1
  164. package/dist/esm/dso-pagination.entry.js +1 -1
  165. package/dist/esm/dso-progress-bar.entry.js +1 -1
  166. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  167. package/dist/esm/dso-responsive-element.entry.js +1 -1
  168. package/dist/esm/dso-slide-toggle.entry.js +1 -1
  169. package/dist/esm/dso-table.entry.js +1 -1
  170. package/dist/esm/dso-toggletip.entry.js +1 -1
  171. package/dist/esm/dso-toolkit.js +2 -2
  172. package/dist/esm/dso-tooltip.entry.js +2 -1799
  173. package/dist/esm/dso-tree-view.entry.js +1 -1
  174. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  175. package/dist/esm/{index-1a4dda48.js → index-ac5a22a3.js} +1 -1
  176. package/dist/esm/index-d6ffb688.js +194 -0
  177. package/dist/esm/index.js +1 -1
  178. package/dist/esm/loader.js +2 -2
  179. package/dist/esm/map-controls.interfaces-2323e8ac.js +3 -0
  180. package/dist/esm/popper-467f7841.js +1799 -0
  181. package/dist/types/components/annotation-button/annotation-button.d.ts +7 -0
  182. package/dist/types/components/annotation-output/annotation-output.d.ts +12 -0
  183. package/dist/types/components/annotation-output/annotation-output.interfaces.d.ts +4 -0
  184. package/dist/types/components/badge/badge.d.ts +1 -1
  185. package/dist/types/components/card/card.d.ts +1 -0
  186. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +5 -0
  187. package/dist/types/components/expandable/expandable.d.ts +4 -0
  188. package/dist/types/components/expandable-heading/expandable-heading.d.ts +11 -0
  189. package/dist/types/components/expandable-heading/expandable-heading.interfaces.d.ts +5 -0
  190. package/dist/types/components/expandable-heading/heading.d.ts +9 -0
  191. package/dist/types/components/image-overlay/image-overlay.d.ts +0 -1
  192. package/dist/types/components/label/label.d.ts +1 -1
  193. package/dist/types/components/map-controls/map-controls.d.ts +9 -0
  194. package/dist/types/components/map-controls/map-controls.interfaces.d.ts +5 -0
  195. package/dist/types/components/selectable/selectable.d.ts +1 -0
  196. package/dist/types/components.d.ts +113 -4
  197. package/dist/types/index.d.ts +3 -0
  198. package/dist/types/services/annotation.service.d.ts +10 -0
  199. package/package.json +2 -2
  200. package/dist/dso-toolkit/p-04ffcc93.entry.js +0 -1
  201. package/dist/dso-toolkit/p-06b4f78d.entry.js +0 -1
  202. package/dist/dso-toolkit/p-0e5315a3.entry.js +0 -1
  203. package/dist/dso-toolkit/p-36cd87c4.entry.js +0 -1
  204. package/dist/dso-toolkit/p-46acc09f.entry.js +0 -1
  205. package/dist/dso-toolkit/p-6bd8515a.entry.js +0 -1
  206. package/dist/dso-toolkit/p-78ee23c5.entry.js +0 -1
  207. package/dist/dso-toolkit/p-9287b2f2.entry.js +0 -1
  208. package/dist/dso-toolkit/p-c2157b55.entry.js +0 -1
  209. package/dist/dso-toolkit/p-c7ec6e6e.entry.js +0 -1
  210. package/dist/dso-toolkit/p-ce475f06.entry.js +0 -1
  211. package/dist/dso-toolkit/p-d7b2adc3.entry.js +0 -1
@@ -0,0 +1,145 @@
1
+ h1,
2
+ .h1,
3
+ h2,
4
+ .h2,
5
+ h3,
6
+ .h3 {
7
+ margin-bottom: 16px;
8
+ margin-top: 24px;
9
+ }
10
+
11
+ h1,
12
+ .h1 {
13
+ line-height: 1.25;
14
+ }
15
+
16
+ h1 {
17
+ color: #275937;
18
+ font-size: 2rem;
19
+ font-weight: 700;
20
+ }
21
+
22
+ h2,
23
+ .h2 {
24
+ line-height: 1.33;
25
+ }
26
+
27
+ h2 {
28
+ color: #275937;
29
+ font-size: 1.5rem;
30
+ font-weight: 700;
31
+ }
32
+
33
+ h3,
34
+ .h3 {
35
+ line-height: 1.2;
36
+ }
37
+
38
+ h3 {
39
+ color: #275937;
40
+ font-size: 1.25rem;
41
+ font-weight: 600;
42
+ }
43
+
44
+ h4,
45
+ .h4,
46
+ h5,
47
+ .h5,
48
+ h6,
49
+ .h6 {
50
+ margin-bottom: 16px;
51
+ margin-top: 12px;
52
+ }
53
+
54
+ h4,
55
+ .h4 {
56
+ line-height: 1.5;
57
+ }
58
+
59
+ h4 {
60
+ color: #275937;
61
+ font-size: 1rem;
62
+ font-weight: 600;
63
+ }
64
+
65
+ h5,
66
+ .h5 {
67
+ line-height: 1.5;
68
+ }
69
+
70
+ h5 {
71
+ color: #191919;
72
+ font-size: 1rem;
73
+ font-weight: 600;
74
+ }
75
+
76
+ h6,
77
+ .h6 {
78
+ line-height: 1.5;
79
+ }
80
+
81
+ :host {
82
+ display: block;
83
+ }
84
+
85
+ *,
86
+ *::after,
87
+ *::before {
88
+ box-sizing: border-box;
89
+ }
90
+
91
+ .sr-only {
92
+ position: absolute;
93
+ width: 1px;
94
+ height: 1px;
95
+ padding: 0;
96
+ margin: -1px;
97
+ overflow: hidden;
98
+ clip: rect(0, 0, 0, 0);
99
+ border: 0;
100
+ }
101
+
102
+ .expandable-heading {
103
+ align-items: center;
104
+ display: flex;
105
+ margin-bottom: 8px;
106
+ margin-top: 8px;
107
+ }
108
+ .expandable-heading h2,
109
+ .expandable-heading h3,
110
+ .expandable-heading h4,
111
+ .expandable-heading h5,
112
+ .expandable-heading h6 {
113
+ font-size: 1rem;
114
+ margin-bottom: 0;
115
+ margin-right: 8px;
116
+ margin-top: 0;
117
+ }
118
+ .expandable-heading button {
119
+ align-items: flex-start;
120
+ cursor: pointer;
121
+ background-color: transparent;
122
+ border: 0;
123
+ color: inherit;
124
+ display: flex;
125
+ line-height: 24px;
126
+ font-size: inherit;
127
+ font-weight: inherit;
128
+ padding: 0;
129
+ text-align: left;
130
+ }
131
+ .expandable-heading button > dso-icon {
132
+ flex-shrink: 0;
133
+ }
134
+ .expandable-heading.dso-expandable-heading-black button {
135
+ color: #000;
136
+ }
137
+
138
+ dso-expandable {
139
+ padding-left: 24px;
140
+ }
141
+
142
+ .addons-end {
143
+ display: inline-block;
144
+ margin-left: auto;
145
+ }
@@ -0,0 +1,117 @@
1
+ import { Fragment, h } from "@stencil/core";
2
+ import clsx from "clsx";
3
+ import { v4 as uuidv4 } from "uuid";
4
+ import { Heading } from "./heading";
5
+ export class ExpandableHeading {
6
+ constructor() {
7
+ this.identifier = uuidv4();
8
+ this.open = undefined;
9
+ this.heading = "h2";
10
+ this.color = "default";
11
+ }
12
+ toggle(e) {
13
+ this.open = !this.open;
14
+ this.dsoToggle.emit({ originalEvent: e, open: this.open });
15
+ }
16
+ render() {
17
+ const expandableProperties = this.open ? { open: true } : {};
18
+ 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))));
19
+ }
20
+ static get is() { return "dso-expandable-heading"; }
21
+ static get encapsulation() { return "shadow"; }
22
+ static get originalStyleUrls() {
23
+ return {
24
+ "$": ["expandable-heading.scss"]
25
+ };
26
+ }
27
+ static get styleUrls() {
28
+ return {
29
+ "$": ["expandable-heading.css"]
30
+ };
31
+ }
32
+ static get properties() {
33
+ return {
34
+ "open": {
35
+ "type": "boolean",
36
+ "mutable": false,
37
+ "complexType": {
38
+ "original": "boolean",
39
+ "resolved": "boolean | undefined",
40
+ "references": {}
41
+ },
42
+ "required": false,
43
+ "optional": true,
44
+ "docs": {
45
+ "tags": [],
46
+ "text": ""
47
+ },
48
+ "attribute": "open",
49
+ "reflect": false
50
+ },
51
+ "heading": {
52
+ "type": "string",
53
+ "mutable": false,
54
+ "complexType": {
55
+ "original": "HeadingTags",
56
+ "resolved": "\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
57
+ "references": {
58
+ "HeadingTags": {
59
+ "location": "import",
60
+ "path": "./expandable-heading.interfaces"
61
+ }
62
+ }
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": ""
69
+ },
70
+ "attribute": "heading",
71
+ "reflect": false,
72
+ "defaultValue": "\"h2\""
73
+ },
74
+ "color": {
75
+ "type": "string",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "\"default\" | \"black\"",
79
+ "resolved": "\"black\" | \"default\"",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": ""
87
+ },
88
+ "attribute": "color",
89
+ "reflect": false,
90
+ "defaultValue": "\"default\""
91
+ }
92
+ };
93
+ }
94
+ static get events() {
95
+ return [{
96
+ "method": "dsoToggle",
97
+ "name": "dsoToggle",
98
+ "bubbles": true,
99
+ "cancelable": true,
100
+ "composed": true,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": ""
104
+ },
105
+ "complexType": {
106
+ "original": "ExpandableHeadingToggleEvent",
107
+ "resolved": "ExpandableHeadingToggleEvent",
108
+ "references": {
109
+ "ExpandableHeadingToggleEvent": {
110
+ "location": "import",
111
+ "path": "./expandable-heading.interfaces"
112
+ }
113
+ }
114
+ }
115
+ }];
116
+ }
117
+ }
@@ -0,0 +1,16 @@
1
+ import { h } from "@stencil/core";
2
+ export const Heading = ({ heading, ref, className }, children) => {
3
+ switch (heading) {
4
+ default:
5
+ case "h2":
6
+ return (h("h2", { ref: ref, class: className }, children));
7
+ case "h3":
8
+ return (h("h3", { ref: ref, class: className }, children));
9
+ case "h4":
10
+ return (h("h4", { ref: ref, class: className }, children));
11
+ case "h5":
12
+ return (h("h5", { ref: ref, class: className }, children));
13
+ case "h6":
14
+ return (h("h6", { ref: ref, class: className }, children));
15
+ }
16
+ };
@@ -195,8 +195,8 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
195
195
  text-decoration: underline;
196
196
  }
197
197
  .dso-nav.dso-nav-main dso-dropdown-menu .dso-dropdown-options {
198
- left: -1rem;
199
- top: calc(100% + 3px);
198
+ left: -1rem !important;
199
+ top: 3px !important;
200
200
  }
201
201
  .dso-nav.dso-nav-main dso-dropdown-menu button {
202
202
  font-size: 1.25em;
@@ -24,6 +24,7 @@
24
24
 
25
25
  .dso-highlight-box {
26
26
  background-color: #f2f2f2;
27
+ color: #000;
27
28
  margin-top: 16px;
28
29
  padding: 16px;
29
30
  margin-bottom: 24px;
@@ -6,7 +6,6 @@ export class ImageOverlay {
6
6
  this.titelSlot = null;
7
7
  this.bijschriftSlot = null;
8
8
  this.active = false;
9
- this.focused = false;
10
9
  this.zoomable = false;
11
10
  }
12
11
  loadListener(event) {
@@ -67,7 +66,7 @@ export class ImageOverlay {
67
66
  render() {
68
67
  var _a;
69
68
  const { src, alt } = (_a = this.host.querySelector("img")) !== null && _a !== void 0 ? _a : {};
70
- 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")))));
69
+ 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")))));
71
70
  }
72
71
  componentDidRender() {
73
72
  var _a, _b;
@@ -105,7 +104,6 @@ export class ImageOverlay {
105
104
  static get states() {
106
105
  return {
107
106
  "active": {},
108
- "focused": {},
109
107
  "zoomable": {}
110
108
  };
111
109
  }
@@ -1,6 +1,7 @@
1
1
  :host {
2
2
  display: block;
3
3
  background-color: #f2f2f2;
4
+ color: #000;
4
5
  padding: 16px 32px 16px 16px;
5
6
  position: relative;
6
7
  }
@@ -27,8 +27,6 @@
27
27
  display: inline-block;
28
28
  line-height: 1.5;
29
29
  max-width: 100%;
30
- }
31
- .dso-label:not(.dso-label-bright) {
32
30
  padding: 4px 8px;
33
31
  }
34
32
  .dso-label:focus-within, .dso-label.dso-hover {
@@ -54,13 +52,9 @@
54
52
  .dso-label button > svg.di {
55
53
  display: block;
56
54
  }
57
- .dso-label.dso-compact {
58
- border: 0;
59
- padding: 0 8px;
60
- }
61
55
  .dso-label.dso-label-info {
62
56
  background-color: #6ca4d9;
63
- color: #191919;
57
+ color: #000;
64
58
  }
65
59
  .dso-label.dso-label-primary {
66
60
  background-color: #275937;
@@ -72,7 +66,7 @@
72
66
  }
73
67
  .dso-label.dso-label-warning {
74
68
  background-color: #dcd400;
75
- color: #191919;
69
+ color: #000;
76
70
  }
77
71
  .dso-label.dso-label-danger {
78
72
  background-color: #ce3f51;
@@ -85,8 +79,15 @@
85
79
  .dso-label.dso-label-bright {
86
80
  background-color: #fff;
87
81
  color: #191919;
88
- border: 1px solid #ccc;
89
- padding: 3px 7px;
82
+ outline: 1px solid #ccc;
83
+ outline-offset: -1px;
84
+ }
85
+ .dso-label.dso-label-attention {
86
+ background-color: #8b4a6a;
87
+ color: #fff;
88
+ }
89
+ .dso-label.dso-compact {
90
+ padding: 0 8px;
90
91
  }
91
92
  .dso-label.dso-hover .dso-label-content {
92
93
  text-decoration: line-through;
@@ -90,7 +90,7 @@ export class Label {
90
90
  "dso-hover": this.removeHover || this.removeFocus,
91
91
  }) }, h("slot", { name: "symbol" }), status && h("span", { class: "sr-only" }, status, ": "), h("span", { class: clsx("dso-label-content", {
92
92
  "dso-truncate": !!this.truncate,
93
- }), 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)));
93
+ }), 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)));
94
94
  }
95
95
  static get is() { return "dso-label"; }
96
96
  static get encapsulation() { return "shadow"; }
@@ -144,8 +144,8 @@ export class Label {
144
144
  "type": "string",
145
145
  "mutable": false,
146
146
  "complexType": {
147
- "original": "\"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"error\" | \"bright\"",
148
- "resolved": "\"bright\" | \"danger\" | \"error\" | \"info\" | \"primary\" | \"success\" | \"warning\" | undefined",
147
+ "original": "\"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"error\" | \"bright\" | \"attention\"",
148
+ "resolved": "\"attention\" | \"bright\" | \"danger\" | \"error\" | \"info\" | \"primary\" | \"success\" | \"warning\" | undefined",
149
149
  "references": {}
150
150
  },
151
151
  "required": false,
@@ -0,0 +1 @@
1
+ export const transitionDuration = 300; // Sync with $transition-duration in ./map-controls.scss
@@ -16,7 +16,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
16
16
  };
17
17
  var _MapControls_closeButtonElement, _MapControls_toggleButtonElement;
18
18
  import { h, Host } from "@stencil/core";
19
- const transitionDuration = 300; // Sync with $transition-duration in ./map-controls.scss
19
+ import { transitionDuration } from "./map-controls.interfaces";
20
20
  export class MapControls {
21
21
  constructor() {
22
22
  this.panelTitle = "Kaartlagen";
@@ -39,8 +39,15 @@ export class MapControls {
39
39
  }, transitionDuration);
40
40
  }
41
41
  }
42
+ async toggleVisibility(e) {
43
+ this.open = !this.open;
44
+ this.dsoToggle.emit({
45
+ originalEvent: e,
46
+ open: this.open,
47
+ });
48
+ }
42
49
  render() {
43
- return (h(Host, null, h("button", { type: "button", id: "toggle-visibility-button", class: "toggle-visibility-button", onClick: () => (this.open = !this.open), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { icon: "layers" }), h("span", null, "Kaartlagen")), h("div", { class: "zoom-buttons" }, h("button", { type: "button", onClick: (e) => this.dsoZoomIn.emit(e), disabled: this.disableZoom === "in" || this.disableZoom === "both" }, h("span", null, "Zoom in"), h("dso-icon", { icon: "plus" })), h("button", { type: "button", onClick: (e) => this.dsoZoomOut.emit(e), disabled: this.disableZoom === "out" || this.disableZoom === "both" }, h("span", null, "Zoom uit"), h("dso-icon", { icon: "minus" }))), h("section", { hidden: this.hideContent }, h("header", null, h("h2", null, this.panelTitle), h("button", { type: "button", class: "close-button", onClick: () => (this.open = false), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeButtonElement, element, "f")) }, h("span", null, "Verberg paneel ", this.panelTitle), h("dso-icon", { icon: "times" }))), h("div", { class: "content" }, h("slot", null)))));
50
+ return (h(Host, null, h("button", { type: "button", id: "toggle-visibility-button", class: "toggle-visibility-button", onClick: (e) => this.toggleVisibility(e), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { icon: "layers" }), h("span", null, "Kaartlagen")), h("div", { class: "zoom-buttons" }, h("button", { type: "button", onClick: (e) => this.dsoZoomIn.emit(e), disabled: this.disableZoom === "in" || this.disableZoom === "both" }, h("span", null, "Zoom in"), h("dso-icon", { icon: "plus" })), h("button", { type: "button", onClick: (e) => this.dsoZoomOut.emit(e), disabled: this.disableZoom === "out" || this.disableZoom === "both" }, h("span", null, "Zoom uit"), h("dso-icon", { icon: "minus" }))), h("section", { hidden: this.hideContent }, h("header", null, h("h2", null, this.panelTitle), h("button", { type: "button", class: "close-button", onClick: (e) => this.toggleVisibility(e), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeButtonElement, element, "f")) }, h("span", null, "Verberg paneel ", this.panelTitle), h("dso-icon", { icon: "times" }))), h("div", { class: "content" }, h("slot", null)))));
44
51
  }
45
52
  static get is() { return "dso-map-controls"; }
46
53
  static get encapsulation() { return "shadow"; }
@@ -137,8 +144,57 @@ export class MapControls {
137
144
  }
138
145
  }
139
146
  }
147
+ }, {
148
+ "method": "dsoToggle",
149
+ "name": "dsoToggle",
150
+ "bubbles": true,
151
+ "cancelable": true,
152
+ "composed": true,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": "emits when the panel opens or closes.\r\n\r\n- `event.detail.originalEvent` contains the original `MouseEvent / KeyboardEvent` when the panel is toggled by clicking the visibility button or the close button.\r\n- `event.detail.open` is true when the panel opens and false when the panel closes."
156
+ },
157
+ "complexType": {
158
+ "original": "MapControlsToggleEvent",
159
+ "resolved": "MapControlsToggleEvent",
160
+ "references": {
161
+ "MapControlsToggleEvent": {
162
+ "location": "import",
163
+ "path": "./map-controls.interfaces"
164
+ }
165
+ }
166
+ }
140
167
  }];
141
168
  }
169
+ static get methods() {
170
+ return {
171
+ "toggleVisibility": {
172
+ "complexType": {
173
+ "signature": "(e: MouseEvent | KeyboardEvent) => Promise<void>",
174
+ "parameters": [{
175
+ "tags": [],
176
+ "text": ""
177
+ }],
178
+ "references": {
179
+ "Promise": {
180
+ "location": "global"
181
+ },
182
+ "MouseEvent": {
183
+ "location": "global"
184
+ },
185
+ "KeyboardEvent": {
186
+ "location": "global"
187
+ }
188
+ },
189
+ "return": "Promise<void>"
190
+ },
191
+ "docs": {
192
+ "text": "",
193
+ "tags": []
194
+ }
195
+ }
196
+ };
197
+ }
142
198
  static get watchers() {
143
199
  return [{
144
200
  "propName": "open",
@@ -150,6 +150,7 @@
150
150
 
151
151
  .dso-selectable-input-wrapper {
152
152
  display: inline-block;
153
+ min-height: 24px;
153
154
  padding-left: 32px;
154
155
  }
155
156
  .dso-selectable-input-wrapper:focus-within {
@@ -9,6 +9,7 @@ export class Selectable {
9
9
  this.value = undefined;
10
10
  this.invalid = undefined;
11
11
  this.describedById = undefined;
12
+ this.labelledById = undefined;
12
13
  this.disabled = undefined;
13
14
  this.required = undefined;
14
15
  this.checked = undefined;
@@ -41,7 +42,7 @@ export class Selectable {
41
42
  render() {
42
43
  var _a;
43
44
  const hasInfo = !!this.host.querySelector('[slot="info"]');
44
- return (h(Fragment, null, h("div", { class: "dso-selectable-input-wrapper" }, h("input", { 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, disabled: this.disabled, required: this.required, checked: this.checked, onChange: (e) => this.dsoChange.emit(e), ref: (el) => (this.input = el) }), h("label", { htmlFor: this.getIdentifier() }, h("slot", null))), hasInfo && (h(Fragment, null, !this.infoFixed && (h("dso-info-button", { active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) })), h("dso-info", { id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", null, h("slot", { name: "info" })))))));
45
+ return (h(Fragment, null, h("div", { class: "dso-selectable-input-wrapper" }, h("input", { 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: (e) => this.dsoChange.emit(e), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null))), hasInfo && (h(Fragment, null, !this.infoFixed && (h("dso-info-button", { active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) })), h("dso-info", { id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", null, h("slot", { name: "info" })))))));
45
46
  }
46
47
  getIdentifier() {
47
48
  var _a;
@@ -163,6 +164,23 @@ export class Selectable {
163
164
  "attribute": "described-by-id",
164
165
  "reflect": false
165
166
  },
167
+ "labelledById": {
168
+ "type": "string",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "string",
172
+ "resolved": "string | undefined",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "attribute": "labelled-by-id",
182
+ "reflect": false
183
+ },
166
184
  "disabled": {
167
185
  "type": "boolean",
168
186
  "mutable": false,
@@ -1,11 +1,14 @@
1
1
  export * from "./components/accordion/accordion.interfaces";
2
+ export * from "./components/annotation-output/annotation-output.interfaces";
2
3
  export * from "./components/autosuggest/autosuggest.interfaces";
3
4
  export * from "./components/card/card.interfaces";
4
5
  export * from "./components/date-picker/date-picker.interfaces";
6
+ export * from "./components/expandable-heading/expandable-heading.interfaces";
5
7
  export * from "./components/header/header.interfaces";
6
8
  export * from "./components/info-button/info-button.interfaces";
7
9
  export * from "./components/list-button/list-button.interfaces";
8
10
  export * from "./components/map-base-layers/map-base-layers.interfaces";
11
+ export * from "./components/map-controls/map-controls.interfaces";
9
12
  export * from "./components/map-overlays/map-overlays.interfaces";
10
13
  export * from "./components/modal/modal.interfaces";
11
14
  export * from "./components/ozon-content/ozon-content.interfaces";
@@ -0,0 +1,16 @@
1
+ import { createStore } from "@stencil/store";
2
+ export class AnnotationService {
3
+ static get state() {
4
+ if (!this._state) {
5
+ AnnotationService.initializeStore();
6
+ }
7
+ return this._state;
8
+ }
9
+ static toggle(id) {
10
+ this._state[id] = !this._state[id];
11
+ }
12
+ static initializeStore() {
13
+ const { state } = createStore({});
14
+ AnnotationService._state = state;
15
+ }
16
+ }
@@ -0,0 +1,19 @@
1
+ import { c as createStore } from './index2.js';
2
+
3
+ class AnnotationService {
4
+ static get state() {
5
+ if (!this._state) {
6
+ AnnotationService.initializeStore();
7
+ }
8
+ return this._state;
9
+ }
10
+ static toggle(id) {
11
+ this._state[id] = !this._state[id];
12
+ }
13
+ static initializeStore() {
14
+ const { state } = createStore({});
15
+ AnnotationService._state = state;
16
+ }
17
+ }
18
+
19
+ export { AnnotationService as A };