@dso-toolkit/core 45.0.0 → 45.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 (175) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +110 -0
  2. package/dist/cjs/dso-accordion.cjs.entry.js +297 -0
  3. package/dist/cjs/dso-alert.cjs.entry.js +3 -3
  4. package/dist/cjs/dso-attachments-counter.cjs.entry.js +3 -3
  5. package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/dso-banner.cjs.entry.js +2 -2
  8. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +3 -3
  10. package/dist/cjs/dso-header.cjs.entry.js +6 -6
  11. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +59 -3
  12. package/dist/cjs/dso-highlight-box.cjs.entry.js +2 -2
  13. package/dist/cjs/dso-icon.cjs.entry.js +2 -2
  14. package/dist/cjs/dso-image-overlay.cjs.entry.js +11 -5
  15. package/dist/cjs/dso-info-button.cjs.entry.js +4 -3
  16. package/dist/cjs/dso-info_2.cjs.entry.js +3 -3
  17. package/dist/cjs/dso-label.cjs.entry.js +1 -1
  18. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  19. package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
  20. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  21. package/dist/cjs/dso-ozon-content.cjs.entry.js +44 -9
  22. package/dist/cjs/dso-pagination.cjs.entry.js +98 -6
  23. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  24. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  25. package/dist/cjs/dso-responsive-element.cjs.entry.js +6 -1
  26. package/dist/cjs/dso-toggletip.cjs.entry.js +2 -2
  27. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  28. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  29. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  30. package/dist/cjs/dso-viewer-grid.cjs.entry.js +11 -5
  31. package/dist/cjs/{focus-trap.esm-a85643b0.js → focus-trap.esm-e2addb10.js} +28 -11
  32. package/dist/cjs/{index-0a7c679a.js → index-4066351a.js} +7 -0
  33. package/dist/cjs/{index.esm-3520a2a6.js → index.esm-50325ea2.js} +110 -12
  34. package/dist/cjs/loader.cjs.js +2 -2
  35. package/dist/collection/collection-manifest.json +2 -0
  36. package/dist/collection/components/accordion/accordion.css +9 -0
  37. package/dist/collection/components/accordion/accordion.interfaces.js +1 -0
  38. package/dist/collection/components/accordion/accordion.js +260 -0
  39. package/dist/collection/components/accordion/accordion.template.js +26 -0
  40. package/dist/collection/components/accordion/components/accordion-section.css +221 -0
  41. package/dist/collection/components/accordion/components/accordion-section.js +292 -0
  42. package/dist/collection/components/alert/alert.css +4 -41
  43. package/dist/collection/components/alert/alert.js +1 -0
  44. package/dist/collection/components/attachments-counter/attachments-counter.css +0 -12
  45. package/dist/collection/components/attachments-counter/attachments-counter.js +2 -1
  46. package/dist/collection/components/banner/banner.css +0 -4
  47. package/dist/collection/components/dropdown-menu/dropdown-menu.css +0 -7
  48. package/dist/collection/components/header/header.css +20 -379
  49. package/dist/collection/components/header/header.js +22 -24
  50. package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +3 -102
  51. package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +71 -5
  52. package/dist/collection/components/highlight-box/highlight-box.css +0 -2
  53. package/dist/collection/components/image-overlay/image-overlay.css +37 -1134
  54. package/dist/collection/components/image-overlay/image-overlay.js +13 -3
  55. package/dist/collection/components/image-overlay/image-overlay.template.js +9 -1
  56. package/dist/collection/components/info/info.css +19 -1070
  57. package/dist/collection/components/info/info.js +1 -0
  58. package/dist/collection/components/info-button/info-button.css +8 -17
  59. package/dist/collection/components/info-button/info-button.js +9 -3
  60. package/dist/collection/components/map-controls/map-controls.css +20 -1172
  61. package/dist/collection/components/ozon-content/nodes/figuur.node.js +41 -6
  62. package/dist/collection/components/ozon-content/ozon-content.css +22 -41
  63. package/dist/collection/components/pagination/pagination.css +1 -0
  64. package/dist/collection/components/pagination/pagination.js +121 -13
  65. package/dist/collection/components/responsive-element/responsive-element.interfaces.js +1 -0
  66. package/dist/collection/components/responsive-element/responsive-element.js +48 -1
  67. package/dist/collection/components/responsive-element/responsive-element.template.js +4 -2
  68. package/dist/collection/components/toggletip/toggletip.css +4 -0
  69. package/dist/collection/components/viewer-grid/viewer-grid.css +34 -1220
  70. package/dist/collection/components/viewer-grid/viewer-grid.js +12 -1
  71. package/dist/custom-elements/index.d.ts +12 -0
  72. package/dist/custom-elements/index.js +1933 -1219
  73. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  74. package/dist/dso-toolkit/p-02b2e01c.entry.js +1 -0
  75. package/dist/dso-toolkit/{p-d780f9ff.entry.js → p-05a9e206.entry.js} +1 -1
  76. package/dist/dso-toolkit/p-22c35db5.js +5 -0
  77. package/dist/dso-toolkit/{p-361528b4.entry.js → p-2e74485e.entry.js} +1 -1
  78. package/dist/dso-toolkit/p-2f6b1092.entry.js +1 -0
  79. package/dist/dso-toolkit/{p-bf4d6f63.entry.js → p-3381c859.entry.js} +1 -1
  80. package/dist/dso-toolkit/{p-3799366e.entry.js → p-37a34037.entry.js} +1 -1
  81. package/dist/dso-toolkit/p-42450cfe.js +1 -0
  82. package/dist/dso-toolkit/p-4c44d27c.entry.js +1 -0
  83. package/dist/dso-toolkit/{p-91b6a181.entry.js → p-4fd140e9.entry.js} +1 -1
  84. package/dist/dso-toolkit/p-53c7bf4f.entry.js +1 -0
  85. package/dist/dso-toolkit/{p-d60876c2.entry.js → p-67b11174.entry.js} +1 -1
  86. package/dist/dso-toolkit/{p-e4bcafc4.entry.js → p-6cac0292.entry.js} +1 -1
  87. package/dist/dso-toolkit/p-7213783b.entry.js +1 -0
  88. package/dist/dso-toolkit/p-73bbb9a6.entry.js +1 -0
  89. package/dist/dso-toolkit/{p-16635f4b.entry.js → p-8515d157.entry.js} +1 -1
  90. package/dist/dso-toolkit/{p-375a2523.entry.js → p-93b53eb7.entry.js} +1 -1
  91. package/dist/dso-toolkit/p-ac0c0eee.entry.js +1 -0
  92. package/dist/dso-toolkit/p-b1a75b67.entry.js +1 -0
  93. package/dist/dso-toolkit/p-b6afe104.entry.js +1 -0
  94. package/dist/dso-toolkit/{p-590cbab6.entry.js → p-b9531adb.entry.js} +1 -1
  95. package/dist/dso-toolkit/p-c339891f.entry.js +1 -0
  96. package/dist/dso-toolkit/{p-6bc71e48.entry.js → p-d2255268.entry.js} +1 -1
  97. package/dist/dso-toolkit/p-d6192ab8.entry.js +1 -0
  98. package/dist/dso-toolkit/p-de50f5f1.entry.js +1 -0
  99. package/dist/dso-toolkit/p-e16b5d71.entry.js +1 -0
  100. package/dist/dso-toolkit/p-e2e2106e.entry.js +1 -0
  101. package/dist/dso-toolkit/p-ea1d4c81.entry.js +1 -0
  102. package/dist/dso-toolkit/{p-25f8dbc6.entry.js → p-ec3b8800.entry.js} +1 -1
  103. package/dist/dso-toolkit/p-efd815dc.entry.js +1 -0
  104. package/dist/dso-toolkit/p-f42d8240.entry.js +1 -0
  105. package/dist/dso-toolkit/p-f8b023c4.js +5 -0
  106. package/dist/esm/dso-accordion-section.entry.js +106 -0
  107. package/dist/esm/dso-accordion.entry.js +293 -0
  108. package/dist/esm/dso-alert.entry.js +3 -3
  109. package/dist/esm/dso-attachments-counter.entry.js +3 -3
  110. package/dist/esm/dso-autosuggest.entry.js +1 -1
  111. package/dist/esm/dso-badge.entry.js +1 -1
  112. package/dist/esm/dso-banner.entry.js +2 -2
  113. package/dist/esm/dso-date-picker.entry.js +1 -1
  114. package/dist/esm/dso-dropdown-menu.entry.js +3 -3
  115. package/dist/esm/dso-header.entry.js +6 -6
  116. package/dist/esm/dso-helpcenter-panel.entry.js +59 -3
  117. package/dist/esm/dso-highlight-box.entry.js +2 -2
  118. package/dist/esm/dso-icon.entry.js +2 -2
  119. package/dist/esm/dso-image-overlay.entry.js +11 -5
  120. package/dist/esm/dso-info-button.entry.js +4 -3
  121. package/dist/esm/dso-info_2.entry.js +3 -3
  122. package/dist/esm/dso-label.entry.js +1 -1
  123. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  124. package/dist/esm/dso-map-controls.entry.js +2 -2
  125. package/dist/esm/dso-map-overlays.entry.js +1 -1
  126. package/dist/esm/dso-ozon-content.entry.js +44 -9
  127. package/dist/esm/dso-pagination.entry.js +98 -6
  128. package/dist/esm/dso-progress-bar.entry.js +1 -1
  129. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  130. package/dist/esm/dso-responsive-element.entry.js +6 -1
  131. package/dist/esm/dso-toggletip.entry.js +2 -2
  132. package/dist/esm/dso-toolkit.js +2 -2
  133. package/dist/esm/dso-tooltip.entry.js +1 -1
  134. package/dist/esm/dso-tree-view.entry.js +1 -1
  135. package/dist/esm/dso-viewer-grid.entry.js +11 -5
  136. package/dist/esm/{focus-trap.esm-a01ad6c9.js → focus-trap.esm-e3b5bde3.js} +28 -11
  137. package/dist/esm/{index-1602fde1.js → index-771c1291.js} +7 -1
  138. package/dist/esm/{index.esm-45465af7.js → index.esm-4510c39e.js} +110 -12
  139. package/dist/esm/loader.js +2 -2
  140. package/dist/types/components/accordion/accordion.d.ts +32 -0
  141. package/dist/types/components/accordion/accordion.interfaces.d.ts +20 -0
  142. package/dist/types/components/accordion/accordion.template.d.ts +2 -0
  143. package/dist/types/components/accordion/components/accordion-section.d.ts +25 -0
  144. package/dist/types/components/helpcenter-panel/helpcenter-panel.d.ts +11 -0
  145. package/dist/types/components/image-overlay/image-overlay.d.ts +3 -0
  146. package/dist/types/components/info-button/info-button.d.ts +1 -0
  147. package/dist/types/components/ozon-content/nodes/figuur.node.d.ts +4 -1
  148. package/dist/types/components/pagination/pagination.d.ts +15 -0
  149. package/dist/types/components/responsive-element/responsive-element.d.ts +5 -2
  150. package/dist/types/components/responsive-element/responsive-element.interfaces.d.ts +5 -0
  151. package/dist/types/components/responsive-element/responsive-element.template.d.ts +1 -1
  152. package/dist/types/components.d.ts +99 -0
  153. package/package.json +4 -3
  154. package/readme.md +0 -7
  155. package/dist/collection/icon/dso-icon-sass-function.js +0 -42
  156. package/dist/dso-toolkit/dso-toolkit.css +0 -1
  157. package/dist/dso-toolkit/p-02272301.entry.js +0 -1
  158. package/dist/dso-toolkit/p-10a6db1a.entry.js +0 -1
  159. package/dist/dso-toolkit/p-131d54e3.js +0 -5
  160. package/dist/dso-toolkit/p-1450f113.entry.js +0 -1
  161. package/dist/dso-toolkit/p-15d0f2eb.entry.js +0 -1
  162. package/dist/dso-toolkit/p-3b5f957e.entry.js +0 -1
  163. package/dist/dso-toolkit/p-49938275.entry.js +0 -1
  164. package/dist/dso-toolkit/p-5a56d726.entry.js +0 -1
  165. package/dist/dso-toolkit/p-5e5fbd41.js +0 -5
  166. package/dist/dso-toolkit/p-68d49733.entry.js +0 -1
  167. package/dist/dso-toolkit/p-7b716383.entry.js +0 -1
  168. package/dist/dso-toolkit/p-b95bc2c7.entry.js +0 -1
  169. package/dist/dso-toolkit/p-c1070a58.entry.js +0 -1
  170. package/dist/dso-toolkit/p-c62606a3.js +0 -1
  171. package/dist/dso-toolkit/p-e7888d49.entry.js +0 -1
  172. package/dist/dso-toolkit/p-eb17d45e.entry.js +0 -1
  173. package/dist/dso-toolkit/p-f726111e.entry.js +0 -1
  174. package/dist/dso-toolkit/p-fd8a8509.entry.js +0 -1
  175. package/dist/types/icon/dso-icon-sass-function.d.ts +0 -4
@@ -0,0 +1,26 @@
1
+ import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
4
+ export function accordionTemplate({ variant, reverseAlign, allowMultipleOpen, dsoToggleSection, sections }) {
5
+ return html `
6
+ <dso-accordion
7
+ variant=${ifDefined(variant)}
8
+ ?reverse-align=${reverseAlign}
9
+ ?allow-multiple-open=${allowMultipleOpen}
10
+ @dsoToggleSection=${dsoToggleSection}
11
+ >
12
+ ${sections.map(section => html `
13
+ <dso-accordion-section
14
+ ?open=${ifDefined(section.open)}
15
+ handle-title=${section.handleTitle}
16
+ handle-url=${ifDefined(section.handleUrl)}
17
+ state=${ifDefined(section.state)}
18
+ status=${ifDefined(section.status)}
19
+ icon=${ifDefined(section.icon)}
20
+ attachment-count=${ifDefined(section.attachmentCount)}
21
+ >
22
+ ${unsafeHTML(section.content)}
23
+ </dso-accordion-section>`)}
24
+ </dso-accordion>
25
+ `;
26
+ }
@@ -0,0 +1,221 @@
1
+ *,
2
+ *::after,
3
+ *::before {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ .sr-only {
8
+ position: absolute;
9
+ width: 1px;
10
+ height: 1px;
11
+ padding: 0;
12
+ margin: -1px;
13
+ overflow: hidden;
14
+ clip: rect(0, 0, 0, 0);
15
+ border: 0;
16
+ }
17
+
18
+ :host {
19
+ display: block;
20
+ }
21
+ :host .dso-section-handle {
22
+ font-size: 1em;
23
+ font-weight: 600;
24
+ line-height: 1.375em;
25
+ margin: 0;
26
+ position: relative;
27
+ }
28
+ :host .dso-section-handle > a:active {
29
+ text-decoration: none;
30
+ }
31
+ :host .dso-section-handle a {
32
+ text-decoration: none;
33
+ }
34
+ :host .dso-section-handle a:hover, :host .dso-section-handle a:focus {
35
+ text-decoration: none;
36
+ }
37
+ :host .dso-section-handle a:active {
38
+ text-decoration: underline;
39
+ }
40
+ :host .dso-section-handle .dso-status {
41
+ font-weight: 400;
42
+ text-decoration: underline;
43
+ }
44
+ :host .dso-section-handle > button,
45
+ :host .dso-section-handle > a {
46
+ align-items: center;
47
+ background-color: transparent;
48
+ border: 0;
49
+ cursor: pointer;
50
+ display: flex;
51
+ font-family: Asap, sans-serif;
52
+ font-size: 1em;
53
+ font-weight: 600;
54
+ line-height: 1.375em;
55
+ margin: 0;
56
+ padding: 12px 16px 12px;
57
+ width: 100%;
58
+ word-break: break-word;
59
+ }
60
+ :host .dso-section-handle > button dso-icon,
61
+ :host .dso-section-handle > a dso-icon {
62
+ flex-shrink: 0;
63
+ }
64
+ :host .dso-section-handle > button > .dso-section-handle-addons:first-child,
65
+ :host .dso-section-handle > button > dso-icon:first-child,
66
+ :host .dso-section-handle > a > .dso-section-handle-addons:first-child,
67
+ :host .dso-section-handle > a > dso-icon:first-child {
68
+ margin-right: 8px;
69
+ }
70
+ :host .dso-section-handle > button > dso-icon:last-child,
71
+ :host .dso-section-handle > a > dso-icon:last-child {
72
+ margin-left: auto;
73
+ }
74
+ :host .dso-section-handle > button > .dso-section-handle-addons:last-child,
75
+ :host .dso-section-handle > a > .dso-section-handle-addons:last-child {
76
+ margin-left: auto;
77
+ }
78
+ :host .dso-section-handle > button > .dso-section-handle-addons:last-child dso-icon,
79
+ :host .dso-section-handle > a > .dso-section-handle-addons:last-child dso-icon {
80
+ margin-left: 16px;
81
+ }
82
+
83
+ :host(:not([open])) .dso-section-body {
84
+ display: none;
85
+ }
86
+
87
+ .dso-section-body {
88
+ background-color: #fff;
89
+ border-top: 0;
90
+ margin-top: -4px;
91
+ padding: 20px 16px 16px;
92
+ }
93
+
94
+ :host(.dso-accordion-default) .dso-section-handle {
95
+ background-color: #fff;
96
+ border: 1px solid #8b4a6a;
97
+ border-radius: 4px;
98
+ }
99
+ :host(.dso-accordion-default) .dso-section-handle a,
100
+ :host(.dso-accordion-default) .dso-section-handle button {
101
+ color: #8b4a6a;
102
+ }
103
+ :host(.dso-accordion-default) .dso-section-handle a:hover, :host(.dso-accordion-default) .dso-section-handle a:active, :host(.dso-accordion-default) .dso-section-handle a.active,
104
+ :host(.dso-accordion-default) .dso-section-handle button:hover,
105
+ :host(.dso-accordion-default) .dso-section-handle button:active,
106
+ :host(.dso-accordion-default) .dso-section-handle button.active {
107
+ color: #8b4a6a;
108
+ }
109
+ :host(.dso-accordion-default) .dso-section-body {
110
+ border: 1px solid #8b4a6a;
111
+ border-radius: 0 0 4px 4px;
112
+ }
113
+
114
+ :host(.dso-accordion-default[open]:not(.dso-nested-accordion)) > .dso-section-handle {
115
+ background-color: #8b4a6a;
116
+ border-radius: 4px;
117
+ }
118
+ :host(.dso-accordion-default[open]:not(.dso-nested-accordion)) > .dso-section-handle a,
119
+ :host(.dso-accordion-default[open]:not(.dso-nested-accordion)) > .dso-section-handle button {
120
+ color: #fff;
121
+ }
122
+ :host(.dso-accordion-default[open]:not(.dso-nested-accordion)) > .dso-section-handle a dso-attachments-counter,
123
+ :host(.dso-accordion-default[open]:not(.dso-nested-accordion)) > .dso-section-handle button dso-attachments-counter {
124
+ --dso-attachments-counter-color: #fff;
125
+ --dso-icon: var(--di-paperclip-wit);
126
+ }
127
+
128
+ :host(.dso-accordion-default.dso-nested-accordion[open]) .dso-section-body {
129
+ background-color: #d1b7c4;
130
+ }
131
+
132
+ :host(.dso-accordion-compact) .dso-section-handle {
133
+ border: 1px solid transparent;
134
+ }
135
+ :host(.dso-accordion-compact) .dso-section-handle a,
136
+ :host(.dso-accordion-compact) .dso-section-handle button {
137
+ color: #39870c;
138
+ }
139
+ :host(.dso-accordion-compact) .dso-section-handle a:hover, :host(.dso-accordion-compact) .dso-section-handle a:active, :host(.dso-accordion-compact) .dso-section-handle a.active,
140
+ :host(.dso-accordion-compact) .dso-section-handle button:hover,
141
+ :host(.dso-accordion-compact) .dso-section-handle button:active,
142
+ :host(.dso-accordion-compact) .dso-section-handle button.active {
143
+ color: #39870c;
144
+ }
145
+ :host(.dso-accordion-compact),
146
+ :host(.dso-accordion-compact) .dso-section-body {
147
+ border: 0;
148
+ border-top: 1px solid #ccc;
149
+ }
150
+ :host(.dso-accordion-compact):last-child {
151
+ border-bottom: 1px solid #ccc;
152
+ }
153
+ :host(.dso-accordion-compact) + dso-accordion-section {
154
+ margin-top: 0;
155
+ }
156
+ :host(.dso-accordion-compact) .dso-section-body {
157
+ margin-top: 0;
158
+ }
159
+
160
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle {
161
+ background-color: transparent;
162
+ }
163
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle a,
164
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle button {
165
+ color: #39870c;
166
+ }
167
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle a:hover, :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle a:active, :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle a.active,
168
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle button:hover,
169
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle button:active,
170
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle button.active {
171
+ color: #39870c;
172
+ }
173
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle a dso-attachments-counter,
174
+ :host(.dso-accordion-compact[open]:not(.dso-nested-accordion)) > .dso-section-handle button dso-attachments-counter {
175
+ --dso-attachments-counter-color: #666;
176
+ --dso-icon: var(--di-paperclip-grijs);
177
+ }
178
+
179
+ :host(.dso-accordion-compact.dso-nested-accordion[open]) > .dso-section-body {
180
+ padding-bottom: 0;
181
+ }
182
+ :host(.dso-accordion-compact.dso-nested-accordion[open]) > .dso-section-body dso-accordion-section:last-child {
183
+ border-bottom: 0;
184
+ }
185
+
186
+ :host(.dso-accordion-conclusion) .dso-section-handle {
187
+ background-color: #f2f2f2;
188
+ border: 1px solid #f2f2f2;
189
+ }
190
+ :host(.dso-accordion-conclusion) .dso-section-handle a,
191
+ :host(.dso-accordion-conclusion) .dso-section-handle button {
192
+ color: #191919;
193
+ }
194
+ :host(.dso-accordion-conclusion) .dso-section-handle a:hover, :host(.dso-accordion-conclusion) .dso-section-handle a:active, :host(.dso-accordion-conclusion) .dso-section-handle a.active,
195
+ :host(.dso-accordion-conclusion) .dso-section-handle button:hover,
196
+ :host(.dso-accordion-conclusion) .dso-section-handle button:active,
197
+ :host(.dso-accordion-conclusion) .dso-section-handle button.active {
198
+ background-color: #e5e5e5;
199
+ color: #191919;
200
+ }
201
+ :host(.dso-accordion-conclusion) .dso-section-body {
202
+ border: 2px solid #f2f2f2;
203
+ }
204
+
205
+ :host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion)) > .dso-section-handle {
206
+ background-color: #f2f2f2;
207
+ }
208
+ :host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion)) > .dso-section-handle a,
209
+ :host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion)) > .dso-section-handle button {
210
+ color: #191919;
211
+ }
212
+ :host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion)) > .dso-section-handle a dso-attachments-counter,
213
+ :host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion)) > .dso-section-handle button dso-attachments-counter {
214
+ --dso-attachments-counter-color: #666;
215
+ --dso-icon: var(--di-paperclip-grijs);
216
+ }
217
+
218
+ :host(.dso-accordion-conclusion.dso-nested-accordion[open]) {
219
+ background-color: #fff;
220
+ border: 2px solid #f2f2f2;
221
+ }
@@ -0,0 +1,292 @@
1
+ import { h, Component, Host, Element, State, Prop, Fragment, Method, forceUpdate } from '@stencil/core';
2
+ export class AccordionSection {
3
+ constructor() {
4
+ this.heading = 'h2';
5
+ this.open = false;
6
+ this.hasNestedSection = false;
7
+ }
8
+ componentWillLoad() {
9
+ const accordion = this.host.parentElement;
10
+ if (isAccordion(accordion)) {
11
+ this.accordion = accordion;
12
+ accordion.getState().then(state => {
13
+ this.accordionState = state;
14
+ forceUpdate(this.host);
15
+ });
16
+ }
17
+ }
18
+ componentDidLoad() {
19
+ this.hasNestedSection = this.host.querySelector('dso-accordion') !== null;
20
+ }
21
+ /** Toggle this section */
22
+ async toggleSection() {
23
+ var _a;
24
+ return (_a = this.accordion) === null || _a === void 0 ? void 0 : _a.toggleSection(this.host);
25
+ }
26
+ async toggle(e) {
27
+ var _a;
28
+ e === null || e === void 0 ? void 0 : e.preventDefault();
29
+ return (_a = this.accordion) === null || _a === void 0 ? void 0 : _a.toggleSection(this.host, e);
30
+ }
31
+ render() {
32
+ if (!this.accordionState) {
33
+ return;
34
+ }
35
+ const { variant, reverseAlign } = this.accordionState;
36
+ const hasAddons = this.status || this.state || this.icon || this.attachmentCount;
37
+ return (h(Host, { class: {
38
+ 'dso-accordion-section': true,
39
+ ['dso-accordion-' + variant]: true,
40
+ 'dso-nested-accordion': this.hasNestedSection,
41
+ } },
42
+ h(Handle, { heading: this.heading },
43
+ h(HandleElement, { handleUrl: this.handleUrl, onClick: async (event) => await this.toggle(event), open: this.open }, reverseAlign
44
+ ? (h(Fragment, null,
45
+ hasAddons && (h("div", { class: "dso-section-handle-addons" },
46
+ h(HandleIcon, { icon: this.icon }))),
47
+ h("span", null, this.handleTitle),
48
+ h("dso-icon", { icon: this.open ? 'chevron-up' : 'chevron-down' })))
49
+ : (h(Fragment, null,
50
+ h("dso-icon", { icon: this.open ? 'chevron-up' : 'chevron-down' }),
51
+ this.state && h("span", { class: "sr-only" }, stateMap[this.state]),
52
+ h("span", null, this.handleTitle),
53
+ hasAddons && (h("div", { class: "dso-section-handle-addons" },
54
+ this.status && h("span", { class: "dso-status" }, this.status),
55
+ h(HandleIcon, { state: this.state, icon: this.icon, attachmentCount: this.attachmentCount }))))))),
56
+ h("div", { class: "dso-section-body", style: this.open ? {} : { display: 'none' } },
57
+ h("slot", null))));
58
+ }
59
+ static get is() { return "dso-accordion-section"; }
60
+ static get encapsulation() { return "shadow"; }
61
+ static get originalStyleUrls() { return {
62
+ "$": ["accordion-section.scss"]
63
+ }; }
64
+ static get styleUrls() { return {
65
+ "$": ["accordion-section.css"]
66
+ }; }
67
+ static get properties() { return {
68
+ "handleTitle": {
69
+ "type": "string",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "string",
73
+ "resolved": "string | undefined",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": true,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": ""
81
+ },
82
+ "attribute": "handle-title",
83
+ "reflect": false
84
+ },
85
+ "heading": {
86
+ "type": "string",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "AccordionHeading",
90
+ "resolved": "\"h2\" | \"h3\" | \"h4\" | \"h5\"",
91
+ "references": {
92
+ "AccordionHeading": {
93
+ "location": "import",
94
+ "path": "../accordion.interfaces"
95
+ }
96
+ }
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": ""
103
+ },
104
+ "attribute": "heading",
105
+ "reflect": false,
106
+ "defaultValue": "'h2'"
107
+ },
108
+ "handleUrl": {
109
+ "type": "string",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "string",
113
+ "resolved": "string | undefined",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": true,
118
+ "docs": {
119
+ "tags": [],
120
+ "text": "When set the handle will render as a `<a>`. When undefined it renders as a `<button>`"
121
+ },
122
+ "attribute": "handle-url",
123
+ "reflect": false
124
+ },
125
+ "state": {
126
+ "type": "string",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "AccordionSectionState",
130
+ "resolved": "\"danger\" | \"info\" | \"success\" | \"warning\" | undefined",
131
+ "references": {
132
+ "AccordionSectionState": {
133
+ "location": "import",
134
+ "path": "../accordion.interfaces"
135
+ }
136
+ }
137
+ },
138
+ "required": false,
139
+ "optional": true,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": "`state` takes precedence over `attachmentCount` and `icon`"
143
+ },
144
+ "attribute": "state",
145
+ "reflect": false
146
+ },
147
+ "attachmentCount": {
148
+ "type": "number",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "number",
152
+ "resolved": "number | undefined",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": true,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": "`attachmentCount` takes precedence over `icon`"
160
+ },
161
+ "attribute": "attachment-count",
162
+ "reflect": false
163
+ },
164
+ "icon": {
165
+ "type": "string",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "string",
169
+ "resolved": "string | undefined",
170
+ "references": {}
171
+ },
172
+ "required": false,
173
+ "optional": true,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": ""
177
+ },
178
+ "attribute": "icon",
179
+ "reflect": false
180
+ },
181
+ "status": {
182
+ "type": "string",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "string",
186
+ "resolved": "string | undefined",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": true,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": ""
194
+ },
195
+ "attribute": "status",
196
+ "reflect": false
197
+ },
198
+ "open": {
199
+ "type": "boolean",
200
+ "mutable": true,
201
+ "complexType": {
202
+ "original": "boolean",
203
+ "resolved": "boolean",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "open",
213
+ "reflect": true,
214
+ "defaultValue": "false"
215
+ }
216
+ }; }
217
+ static get states() { return {
218
+ "hasNestedSection": {}
219
+ }; }
220
+ static get methods() { return {
221
+ "toggleSection": {
222
+ "complexType": {
223
+ "signature": "() => Promise<void>",
224
+ "parameters": [],
225
+ "references": {
226
+ "Promise": {
227
+ "location": "global"
228
+ }
229
+ },
230
+ "return": "Promise<void>"
231
+ },
232
+ "docs": {
233
+ "text": "Toggle this section",
234
+ "tags": []
235
+ }
236
+ }
237
+ }; }
238
+ static get elementRef() { return "host"; }
239
+ }
240
+ function isAccordion(element) {
241
+ return element instanceof HTMLElement && 'getState' in element;
242
+ }
243
+ const Handle = ({ heading }, children) => {
244
+ switch (heading) {
245
+ default:
246
+ case 'h2':
247
+ return h("h2", { class: "dso-section-handle" }, children);
248
+ case 'h3':
249
+ return h("h3", { class: "dso-section-handle" }, children);
250
+ case 'h4':
251
+ return h("h4", { class: "dso-section-handle" }, children);
252
+ case 'h5':
253
+ return h("h5", { class: "dso-section-handle" }, children);
254
+ }
255
+ };
256
+ const HandleElement = ({ handleUrl, onClick, open }, children) => {
257
+ if (handleUrl) {
258
+ return (h("a", { href: handleUrl, onClick: onClick, "aria-expanded": open ? 'true' : 'false' }, children));
259
+ }
260
+ return (h("button", { type: "button", onClick: onClick, "aria-expanded": open ? 'true' : 'false' }, children));
261
+ };
262
+ const HandleIcon = ({ state, icon, attachmentCount }) => {
263
+ if (state) {
264
+ return h(HandleStateIcon, { state: state });
265
+ }
266
+ if (attachmentCount) {
267
+ return h("dso-attachments-counter", { count: attachmentCount });
268
+ }
269
+ if (icon) {
270
+ return h("dso-icon", { icon: icon });
271
+ }
272
+ };
273
+ const stateMap = {
274
+ success: 'succes:',
275
+ info: 'info:',
276
+ warning: 'waarschuwing:',
277
+ danger: 'fout:'
278
+ };
279
+ const HandleStateIcon = ({ state }) => {
280
+ if (state === 'danger') {
281
+ return (h("dso-icon", { icon: "status-danger" }));
282
+ }
283
+ if (state === 'success') {
284
+ return (h("dso-icon", { icon: "status-success" }));
285
+ }
286
+ if (state === 'info') {
287
+ return (h("dso-icon", { icon: "status-info" }));
288
+ }
289
+ if (state === 'warning') {
290
+ return (h("dso-icon", { icon: "status-warning" }));
291
+ }
292
+ };
@@ -10,12 +10,6 @@
10
10
  }
11
11
  :host {
12
12
  display: block;
13
- --di-status-success: url("data:image/svg+xml,%3csvg id='status-success' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3ccircle cx='12' cy='12' r='11' fill='%2339870c'/%3e %3cpath d='M12%2c1A11%2c11%2c0%2c1%2c1%2c1%2c12%2c11%2c11%2c0%2c0%2c1%2c12%2c1m0-1A12%2c12%2c0%2c1%2c0%2c24%2c12%2c12%2c12%2c0%2c0%2c0%2c12%2c0Z' fill='white'/%3e %3c/g%3e %3cpath d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z' fill='white'/%3e %3c/svg%3e");
14
- --di-status-danger: url("data:image/svg+xml,%3csvg id='status-danger-line' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' fill='%23ce3f51'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' fill='white'/%3e %3c/g%3e %3cpath d='M12%2c16a1%2c1%2c0%2c0%2c1-1-.91V8.91a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c12%2c16Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c12%2c17Z' fill='white'/%3e %3c/svg%3e");
15
- --di-status-warning: url("data:image/svg+xml,%3csvg id='status-warning' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' fill='%23dcd400'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' fill='white'/%3e %3c/g%3e %3cpath d='M11.73%2c15.85a1%2c1%2c0%2c0%2c1-1-.91V8.76a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c11.73%2c15.85Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c11.73%2c16.85Z'/%3e %3c/svg%3e");
16
- --di-status-info: url("data:image/svg+xml,%3csvg id='status-info' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3ccircle cx='12' cy='12' r='11' fill='%232b5780'/%3e %3cpath d='M12%2c1A11%2c11%2c0%2c1%2c1%2c1%2c12%2c11%2c11%2c0%2c0%2c1%2c12%2c1m0-1A12%2c12%2c0%2c1%2c0%2c24%2c12%2c12%2c12%2c0%2c0%2c0%2c12%2c0Z' fill='white'/%3e %3c/g%3e %3cpath d='M11%2c8a1%2c1%2c0%2c1%2c1%2c1%2c1A1%2c1%2c0%2c0%2c1%2c11%2c8Zm2%2c8.79V11.21A1.12%2c1.12%2c0%2c0%2c0%2c12%2c10a1.12%2c1.12%2c0%2c0%2c0-1%2c1.21v5.58A1.12%2c1.12%2c0%2c0%2c0%2c12%2c18%2c1.12%2c1.12%2c0%2c0%2c0%2c13%2c16.79Z' fill='white'/%3e %3c/svg%3e");
17
- --di-download-grijs90: url("data:image/svg+xml,%3csvg id='download' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M18.72%2c10.44%2c12%2c17l-6.7-6.52C4.8%2c10%2c5%2c9.63%2c5.63%2c9.63H8.5V1.82A.8.8%2c0%2c0%2c1%2c9.28%2c1h5.44a.8.8%2c0%2c0%2c1%2c.78.82V9.61h2.87C19%2c9.6%2c19.2%2c10%2c18.72%2c10.44ZM1%2c17v6H23V17Zm16%2c3a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c17%2c20Zm5%2c0a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c22%2c20Z'/%3e %3c/svg%3e");
18
- --di-external-link-grijs90: url("data:image/svg+xml,%3csvg id='external-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M19%2c6V9.69c0%2c.33-.2.41-.43.17L17.06%2c8.35l-3.35%2c3.36a1%2c1%2c0%2c0%2c1-1.42%2c0%2c1%2c1%2c0%2c0%2c1%2c0-1.42l3.36-3.35L14.14%2c5.43C13.9%2c5.19%2c14%2c5%2c14.31%2c5H19V6ZM18%2c17V13a1%2c1%2c0%2c0%2c0-2%2c0v4a1%2c1%2c0%2c0%2c1-1%2c1H7a1%2c1%2c0%2c0%2c1-1-1V9A1%2c1%2c0%2c0%2c1%2c7%2c8h4a1%2c1%2c0%2c0%2c0%2c0-2H7A3%2c3%2c0%2c0%2c0%2c4%2c9v8a3%2c3%2c0%2c0%2c0%2c3%2c3h8A3%2c3%2c0%2c0%2c0%2c18%2c17Z'/%3e %3c/svg%3e");
19
13
  }
20
14
 
21
15
  :host(:not(:first-child)) {
@@ -49,61 +43,30 @@
49
43
  .alert:not(:first-child) {
50
44
  margin-top: 24px;
51
45
  }
52
- .alert::before {
53
- content: "";
54
- left: 15px;
55
- position: absolute;
56
- top: 15px;
57
- }
58
46
  .alert.alert-success {
59
47
  color: #191919;
60
48
  background-color: #e4f1d4;
61
49
  border-color: #e4f1d4;
62
50
  }
63
- .alert.alert-success::before {
64
- background: var(--dso-icon, var(--di-status-success)) no-repeat;
65
- background-position: center;
66
- background-size: cover;
67
- height: 32px;
68
- vertical-align: top;
69
- width: 32px;
70
- }
71
51
  .alert.alert-danger {
72
52
  color: #191919;
73
53
  background-color: #f5d8dc;
74
54
  border-color: #f5d8dc;
75
55
  }
76
- .alert.alert-danger::before {
77
- background: var(--dso-icon, var(--di-status-danger)) no-repeat;
78
- background-position: center;
79
- background-size: cover;
80
- height: 32px;
81
- vertical-align: top;
82
- width: 32px;
83
- }
84
56
  .alert.alert-warning {
85
57
  color: #191919;
86
58
  background-color: #f8f6cc;
87
59
  border-color: #f8f6cc;
88
60
  }
89
- .alert.alert-warning::before {
90
- background: var(--dso-icon, var(--di-status-warning)) no-repeat;
91
- background-position: center;
92
- background-size: cover;
93
- height: 32px;
94
- vertical-align: top;
95
- width: 32px;
96
- }
97
61
  .alert.alert-info {
98
62
  color: #191919;
99
63
  background-color: #e1ecf7;
100
64
  border-color: #e1ecf7;
101
65
  }
102
- .alert.alert-info::before {
103
- background: var(--dso-icon, var(--di-status-info)) no-repeat;
104
- background-position: center;
105
- background-size: cover;
66
+ .alert dso-icon {
67
+ left: 15px;
68
+ position: absolute;
69
+ top: 15px;
106
70
  height: 32px;
107
- vertical-align: top;
108
71
  width: 32px;
109
72
  }
@@ -7,6 +7,7 @@ export class Alert {
7
7
  throw new Error(`Invalid status ${this.status}`);
8
8
  }
9
9
  return (h("div", { class: clsx('alert', `alert-${this.status}`), role: this.roleAlert ? 'alert' : undefined },
10
+ h("dso-icon", { icon: 'status-' + this.status }),
10
11
  h("span", { class: "sr-only" },
11
12
  status,
12
13
  ":"),
@@ -1,7 +1,5 @@
1
1
  :host {
2
2
  display: inline-block;
3
- --di-paperclip-grijs: url("data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23666%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e");
4
- --di-paperclip-wit: url("data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e");
5
3
  }
6
4
 
7
5
  *,
@@ -27,14 +25,4 @@
27
25
  font-weight: 400;
28
26
  text-decoration: none;
29
27
  white-space: nowrap;
30
- }
31
- .dso-attachments::after {
32
- background: var(--dso-icon, var(--di-paperclip-grijs)) no-repeat;
33
- background-position: center;
34
- background-size: cover;
35
- height: 24px;
36
- vertical-align: top;
37
- width: 24px;
38
- content: "";
39
- display: inline-block;
40
28
  }
@@ -6,7 +6,8 @@ export class AttachmentsCounter {
6
6
  " ",
7
7
  h("span", { class: "sr-only" },
8
8
  "bijlage",
9
- this.count !== 1 ? 'n' : '')));
9
+ this.count !== 1 ? 'n' : ''),
10
+ h("dso-icon", { icon: "paperclip" })));
10
11
  }
11
12
  static get is() { return "dso-attachments-counter"; }
12
13
  static get encapsulation() { return "shadow"; }
@@ -1,9 +1,5 @@
1
1
  :host {
2
2
  display: block;
3
- --di-status-danger: url("data:image/svg+xml,%3csvg id='status-danger-line' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' fill='%23ce3f51'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' fill='white'/%3e %3c/g%3e %3cpath d='M12%2c16a1%2c1%2c0%2c0%2c1-1-.91V8.91a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c12%2c16Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c12%2c17Z' fill='white'/%3e %3c/svg%3e");
4
- --di-status-warning: url("data:image/svg+xml,%3csvg id='status-warning' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e %3cg%3e %3cpath d='M22.6%2c18.51c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4a1.7%2c1.7%2c0%2c0%2c1%2c3.12%2c0Z' fill='%23dcd400'/%3e %3cpath d='M12%2c3a1.9%2c1.9%2c0%2c0%2c1%2c1.56%2c1l9%2c14.48c.86%2c1.37.29%2c2.49-1.25%2c2.49H2.65C1.11%2c21%2c.54%2c19.88%2c1.4%2c18.51L10.44%2c4A1.9%2c1.9%2c0%2c0%2c1%2c12%2c3m0-1A2.89%2c2.89%2c0%2c0%2c0%2c9.6%2c3.5L.55%2c18a2.75%2c2.75%2c0%2c0%2c0-.28%2c2.81A2.59%2c2.59%2c0%2c0%2c0%2c2.65%2c22h18.7a2.59%2c2.59%2c0%2c0%2c0%2c2.38-1.21A2.75%2c2.75%2c0%2c0%2c0%2c23.45%2c18L14.4%2c3.5A2.89%2c2.89%2c0%2c0%2c0%2c12%2c2Z' fill='white'/%3e %3c/g%3e %3cpath d='M11.73%2c15.85a1%2c1%2c0%2c0%2c1-1-.91V8.76a1%2c1%2c0%2c0%2c1%2c2%2c0v6.18A1%2c1%2c0%2c0%2c1%2c11.73%2c15.85Zm0%2c1a1%2c1%2c0%2c1%2c0%2c1%2c1A1%2c1%2c0%2c0%2c0%2c11.73%2c16.85Z'/%3e %3c/svg%3e");
5
- --di-download-grijs90: url("data:image/svg+xml,%3csvg id='download' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M18.72%2c10.44%2c12%2c17l-6.7-6.52C4.8%2c10%2c5%2c9.63%2c5.63%2c9.63H8.5V1.82A.8.8%2c0%2c0%2c1%2c9.28%2c1h5.44a.8.8%2c0%2c0%2c1%2c.78.82V9.61h2.87C19%2c9.6%2c19.2%2c10%2c18.72%2c10.44ZM1%2c17v6H23V17Zm16%2c3a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c17%2c20Zm5%2c0a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c22%2c20Z'/%3e %3c/svg%3e");
6
- --di-external-link-grijs90: url("data:image/svg+xml,%3csvg id='external-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M19%2c6V9.69c0%2c.33-.2.41-.43.17L17.06%2c8.35l-3.35%2c3.36a1%2c1%2c0%2c0%2c1-1.42%2c0%2c1%2c1%2c0%2c0%2c1%2c0-1.42l3.36-3.35L14.14%2c5.43C13.9%2c5.19%2c14%2c5%2c14.31%2c5H19V6ZM18%2c17V13a1%2c1%2c0%2c0%2c0-2%2c0v4a1%2c1%2c0%2c0%2c1-1%2c1H7a1%2c1%2c0%2c0%2c1-1-1V9A1%2c1%2c0%2c0%2c1%2c7%2c8h4a1%2c1%2c0%2c0%2c0%2c0-2H7A3%2c3%2c0%2c0%2c0%2c4%2c9v8a3%2c3%2c0%2c0%2c0%2c3%2c3h8A3%2c3%2c0%2c0%2c0%2c18%2c17Z'/%3e %3c/svg%3e");
7
3
  }
8
4
 
9
5
  *,