@dso-toolkit/core 103.0.0 → 104.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/dso-accordion-section.js +4 -4
- package/dist/bundle/dso-action-list.js +1 -1
- package/dist/bundle/dso-advanced-select.js +4 -4
- package/dist/bundle/dso-alert.js +1 -1
- package/dist/bundle/dso-annotation-activiteit.js +2 -2
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +2 -2
- package/dist/bundle/dso-annotation-kaart.js +2 -2
- package/dist/bundle/dso-annotation-locatie.js +1 -1
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +2 -2
- package/dist/bundle/dso-badge.js +1 -1
- package/dist/bundle/dso-banner.js +1 -1
- package/dist/bundle/dso-card-container.js +1 -1
- package/dist/bundle/dso-card.js +1 -1
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu-item.js +6 -2
- package/dist/bundle/dso-dropdown-menu.js +1 -1
- package/dist/bundle/dso-grid-column.js +1 -1
- package/dist/bundle/dso-header.js +1 -1
- package/dist/bundle/dso-highlight-box.js +1 -1
- package/dist/bundle/dso-icon-button.js +1 -1
- package/dist/bundle/dso-image-overlay.js +1 -1
- package/dist/bundle/dso-info-button.js +1 -1
- package/dist/bundle/dso-info.js +1 -1
- package/dist/bundle/dso-label.js +1 -1
- package/dist/bundle/dso-legend-group.js +1 -1
- package/dist/bundle/dso-legend-item.js +2 -2
- package/dist/bundle/dso-legend.js +1 -1
- package/dist/bundle/dso-list-button.js +5 -5
- package/dist/bundle/dso-map-base-layers.js +4 -4
- package/dist/bundle/dso-map-controls.js +2 -2
- package/dist/bundle/dso-map-layer-object.js +1 -1
- package/dist/bundle/dso-map-layer.js +1 -1
- package/dist/bundle/dso-map-overlays.js +4 -4
- package/dist/bundle/dso-mark-bar.js +1 -1
- package/dist/bundle/dso-modal.js +1 -1
- package/dist/bundle/dso-onboarding-tip.js +1 -1
- package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
- package/dist/bundle/dso-ozon-content.js +1 -1
- package/dist/bundle/dso-panel.js +1 -1
- package/dist/bundle/dso-plekinfo-card-item.js +1 -1
- package/dist/bundle/dso-plekinfo-card.js +1 -1
- package/dist/bundle/dso-project-item.js +2 -2
- package/dist/bundle/dso-renvooi.js +1 -1
- package/dist/bundle/dso-selectable.js +1 -1
- package/dist/bundle/dso-shopping-cart-item.js +2 -2
- package/dist/bundle/dso-shopping-cart.js +1 -1
- package/dist/bundle/dso-survey-rating.js +3 -3
- package/dist/bundle/dso-table.js +1 -1
- package/dist/bundle/dso-viewer-grid.js +1 -1
- package/dist/bundle/dsot-document-component-demo.js +13 -13
- package/dist/bundle/p--gUaHmK1.js +69 -0
- package/dist/bundle/{p-DHqJaOkE.js → p-B-KTvN4y.js} +1 -1
- package/dist/bundle/{p-C5ts7_Ak.js → p-BB_ih7Hk.js} +2 -2
- package/dist/bundle/{p-VEPEqk4_.js → p-BWa52F1H.js} +1 -1
- package/dist/bundle/p-Bs_nbcJ5.js +130 -0
- package/dist/bundle/{p-T4Dc3DFJ.js → p-CIVR1Iwo.js} +1 -1
- package/dist/bundle/{p-Bn0wLbPn.js → p-COWOGCTP.js} +1 -1
- package/dist/bundle/{p-D49N6P3Z.js → p-CYMksuXA.js} +2 -2
- package/dist/bundle/p-D3Akngmt.js +386 -0
- package/dist/bundle/{p-Cbzkudtw.js → p-DK7XdyJj.js} +9 -4
- package/dist/bundle/p-DwujHx9z.js +1232 -0
- package/dist/bundle/{p-Cq5S5vzL.js → p-DxSsBFIv.js} +2 -2
- package/dist/bundle/p-bSxB3IXF.js +176 -0
- package/dist/bundle/{p-DMsFeivg.js → p-lNRYydvn.js} +30 -4
- package/dist/bundle/{p-k0MQ-KkF.js → p-syG347lq.js} +1 -1
- package/dist/bundle/{p-CNb6BsD9.js → p-zu7axvCG.js} +9 -7
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
- package/dist/cjs/dso-alert_7.cjs.entry.js +14 -12
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +1 -1
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +1 -1
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js +1 -1
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +1 -1
- package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
- package/dist/cjs/dso-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-dropdown-menu-item.cjs.entry.js +6 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/dso-grid-column.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon-button.cjs.entry.js +21 -2
- package/dist/cjs/dso-info_3.cjs.entry.js +28 -3
- package/dist/cjs/dso-label_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-layer-object.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-layer.cjs.entry.js +1 -1
- package/dist/cjs/dso-plekinfo-card-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-renvooi_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-shopping-cart-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-shopping-cart.cjs.entry.js +1 -1
- package/dist/cjs/dso-survey-rating.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +1 -3
- package/dist/collection/components/action-list/action-list.css +1 -1
- package/dist/collection/components/advanced-select/advanced-select.css +2 -2
- package/dist/collection/components/alert/alert.css +4 -4
- package/dist/collection/components/annotation/annotation.css +14 -10
- package/dist/collection/components/badge/badge.css +5 -5
- package/dist/collection/components/banner/banner.css +4 -4
- package/dist/collection/components/card/card.css +12 -8
- package/dist/collection/components/card-container/card-container.css +0 -2
- package/dist/collection/components/document-component/document-component.css +166 -57
- package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +1 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.js +5 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.css +11 -11
- package/dist/collection/components/grid-column/grid-column.js +3 -1
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/highlight-box/highlight-box.css +4 -4
- package/dist/collection/components/icon-button/icon-button.css +22 -21
- package/dist/collection/components/icon-button/icon-button.js +41 -2
- package/dist/collection/components/image-overlay/image-overlay.css +4 -4
- package/dist/collection/components/image-overlay/image-overlay.js +7 -5
- package/dist/collection/components/info/info.css +1 -1
- package/dist/collection/components/info/info.interfaces.js +1 -0
- package/dist/collection/components/info/info.js +50 -7
- package/dist/collection/components/label/label.css +6 -6
- package/dist/collection/components/list-button/list-button.css +3 -3
- package/dist/collection/components/map-controls/map-controls.css +164 -55
- package/dist/collection/components/map-layer/components/map-layer-object.css +2 -2
- package/dist/collection/components/map-layer/map-layer.css +2 -2
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +3 -1
- package/dist/collection/components/ozon-content/ozon-content.css +178 -69
- package/dist/collection/components/panel/panel.css +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card-item/plekinfo-card-item.css +2 -2
- package/dist/collection/components/plekinfo-card/plekinfo-card.css +3 -2
- package/dist/collection/components/renvooi/renvooi.css +2 -2
- package/dist/collection/components/selectable/selectable.js +24 -1
- package/dist/collection/components/shopping-cart/shopping-cart-item/shopping-cart-item.css +3 -3
- package/dist/collection/components/shopping-cart/shopping-cart.css +1 -1
- package/dist/collection/components/survey-rating/survey-rating.css +9 -9
- package/dist/collection/components/table/table.css +164 -55
- package/dist/collection/components/viewer-grid/viewer-grid.css +3 -3
- package/dist/components/alert.js +1 -1
- package/dist/components/annotation-locatie.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/document-component.js +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-action-list.js +1 -1
- package/dist/components/dso-advanced-select.js +1 -1
- package/dist/components/dso-annotation-activiteit.js +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
- package/dist/components/dso-annotation-kaart.js +1 -1
- package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
- package/dist/components/dso-banner.js +1 -1
- package/dist/components/dso-card-container.js +1 -1
- package/dist/components/dso-card.js +1 -1
- package/dist/components/dso-dropdown-menu-item.js +1 -1
- package/dist/components/dso-dropdown-menu.js +1 -1
- package/dist/components/dso-grid-column.js +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-highlight-box.js +1 -1
- package/dist/components/dso-list-button.js +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-layer-object.js +1 -1
- package/dist/components/dso-map-layer.js +1 -1
- package/dist/components/dso-plekinfo-card-item.js +1 -1
- package/dist/components/dso-plekinfo-card.js +1 -1
- package/dist/components/dso-shopping-cart-item.js +1 -1
- package/dist/components/dso-shopping-cart.js +1 -1
- package/dist/components/dso-survey-rating.js +1 -1
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/image-overlay.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/ozon-content-toggletip.js +1 -1
- package/dist/components/ozon-content.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/renvooi.js +1 -1
- package/dist/components/selectable.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-0bd4359a.entry.js +1 -0
- package/dist/dso-toolkit/p-1a83428e.entry.js +1 -0
- package/dist/dso-toolkit/p-1cbeac39.entry.js +1 -0
- package/dist/dso-toolkit/p-24b06d7f.entry.js +1 -0
- package/dist/dso-toolkit/{p-0262f952.entry.js → p-3474228d.entry.js} +1 -1
- package/dist/dso-toolkit/{p-93e628a3.entry.js → p-3d996ab8.entry.js} +1 -1
- package/dist/dso-toolkit/p-3f519757.entry.js +1 -0
- package/dist/dso-toolkit/p-4fb3a234.entry.js +1 -0
- package/dist/dso-toolkit/{p-5adcc734.entry.js → p-5578a548.entry.js} +1 -1
- package/dist/dso-toolkit/p-681b9112.entry.js +1 -0
- package/dist/dso-toolkit/p-6aac2c86.entry.js +1 -0
- package/dist/dso-toolkit/{p-98a57da4.entry.js → p-6ab91ffc.entry.js} +1 -1
- package/dist/dso-toolkit/{p-53cb1473.entry.js → p-7c1c3774.entry.js} +1 -1
- package/dist/dso-toolkit/{p-842861bd.entry.js → p-7fb97253.entry.js} +1 -1
- package/dist/dso-toolkit/p-90252564.entry.js +1 -0
- package/dist/dso-toolkit/{p-04d83ab7.entry.js → p-93947f6b.entry.js} +1 -1
- package/dist/dso-toolkit/p-9802516f.entry.js +1 -0
- package/dist/dso-toolkit/{p-5646f4e6.entry.js → p-a1104ea3.entry.js} +1 -1
- package/dist/dso-toolkit/p-a5ec568e.entry.js +1 -0
- package/dist/dso-toolkit/p-a9537924.entry.js +1 -0
- package/dist/dso-toolkit/p-aae78745.entry.js +1 -0
- package/dist/dso-toolkit/p-aecf9f7b.entry.js +1 -0
- package/dist/dso-toolkit/{p-313ae4fd.entry.js → p-bd471a11.entry.js} +1 -1
- package/dist/dso-toolkit/{p-55887adb.entry.js → p-c78ebf82.entry.js} +1 -1
- package/dist/dso-toolkit/{p-81f901f1.entry.js → p-ccee0ef7.entry.js} +1 -1
- package/dist/dso-toolkit/{p-e213b2c0.entry.js → p-ce252fc6.entry.js} +1 -1
- package/dist/dso-toolkit/p-d2b3ead1.entry.js +1 -0
- package/dist/dso-toolkit/{p-01819a74.entry.js → p-dabd6116.entry.js} +1 -1
- package/dist/dso-toolkit/{p-4ca411bb.entry.js → p-ecfd8dce.entry.js} +1 -1
- package/dist/dso-toolkit/p-f80e161a.entry.js +1 -0
- package/dist/dso-toolkit/p-fb0c4194.entry.js +1 -0
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -1
- package/dist/esm/dso-advanced-select.entry.js +1 -1
- package/dist/esm/dso-alert_7.entry.js +14 -12
- package/dist/esm/dso-annotation-activiteit.entry.js +1 -1
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +1 -1
- package/dist/esm/dso-annotation-kaart.entry.js +1 -1
- package/dist/esm/dso-annotation-locatie_2.entry.js +2 -2
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +1 -1
- package/dist/esm/dso-banner.entry.js +1 -1
- package/dist/esm/dso-card-container.entry.js +1 -1
- package/dist/esm/dso-card.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu-item.entry.js +6 -2
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-grid-column.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon-button.entry.js +21 -2
- package/dist/esm/dso-info_3.entry.js +28 -3
- package/dist/esm/dso-label_2.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-map-layer-object.entry.js +1 -1
- package/dist/esm/dso-map-layer.entry.js +1 -1
- package/dist/esm/dso-plekinfo-card-item.entry.js +1 -1
- package/dist/esm/dso-plekinfo-card.entry.js +1 -1
- package/dist/esm/dso-renvooi_2.entry.js +1 -1
- package/dist/esm/dso-shopping-cart-item.entry.js +1 -1
- package/dist/esm/dso-shopping-cart.entry.js +1 -1
- package/dist/esm/dso-survey-rating.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.d.ts +1 -0
- package/dist/types/components/grid-column/grid-column.d.ts +2 -0
- package/dist/types/components/icon-button/icon-button.d.ts +8 -1
- package/dist/types/components/info/info.d.ts +13 -1
- package/dist/types/components/info/info.interfaces.d.ts +8 -0
- package/dist/types/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.d.ts +2 -0
- package/dist/types/components/selectable/selectable.d.ts +7 -0
- package/dist/types/components.d.ts +58 -5
- package/package.json +3 -3
- package/dist/bundle/p-BhoDbIAQ.js +0 -176
- package/dist/bundle/p-CNbJmSyU.js +0 -69
- package/dist/bundle/p-DDk2ov3h.js +0 -1232
- package/dist/bundle/p-DLbAdYPZ.js +0 -103
- package/dist/bundle/p-pV5ZBLPc.js +0 -386
- package/dist/dso-toolkit/p-170d6663.entry.js +0 -1
- package/dist/dso-toolkit/p-18241351.entry.js +0 -1
- package/dist/dso-toolkit/p-1c5754f0.entry.js +0 -1
- package/dist/dso-toolkit/p-3f1b48b1.entry.js +0 -1
- package/dist/dso-toolkit/p-3f525f8d.entry.js +0 -1
- package/dist/dso-toolkit/p-489094b9.entry.js +0 -1
- package/dist/dso-toolkit/p-4b1a0d10.entry.js +0 -1
- package/dist/dso-toolkit/p-4ecee93c.entry.js +0 -1
- package/dist/dso-toolkit/p-60050330.entry.js +0 -1
- package/dist/dso-toolkit/p-60e95275.entry.js +0 -1
- package/dist/dso-toolkit/p-6403d242.entry.js +0 -1
- package/dist/dso-toolkit/p-79b82b53.entry.js +0 -1
- package/dist/dso-toolkit/p-c369ad55.entry.js +0 -1
- package/dist/dso-toolkit/p-c85aee47.entry.js +0 -1
- package/dist/dso-toolkit/p-cbc3c1f5.entry.js +0 -1
- package/dist/dso-toolkit/p-df8f33a6.entry.js +0 -1
- package/dist/dso-toolkit/p-e2247a98.entry.js +0 -1
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
padding-block: 11px;
|
|
190
190
|
padding-inline: 15px;
|
|
191
191
|
}
|
|
192
|
-
.dso-secondary:hover {
|
|
192
|
+
.dso-secondary:hover, .dso-secondary:focus-visible {
|
|
193
193
|
background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
|
|
194
194
|
border-color: var(--_dso-button-secondary-hover-border-color, #275937);
|
|
195
195
|
color: var(--_dso-button-secondary-hover-color, #275937);
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
color: var(--_dso-button-secondary-active-color, #fff);
|
|
202
202
|
float: var(--_dso-button-float-secondary, none);
|
|
203
203
|
}
|
|
204
|
-
.dso-secondary[disabled], .dso-secondary[disabled]:hover {
|
|
204
|
+
.dso-secondary[disabled], .dso-secondary[disabled]:hover, .dso-secondary[disabled]:focus-visible {
|
|
205
205
|
background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
|
|
206
206
|
border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
|
|
207
207
|
color: var(--_dso-button-secondary-disabled-color, #afcf9d);
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
inline-size: 24px;
|
|
266
266
|
margin-inline-end: 8px;
|
|
267
267
|
}
|
|
268
|
-
.dso-secondary.dso-spinner-left:not([disabled]):hover::before {
|
|
268
|
+
.dso-secondary.dso-spinner-left:not([disabled]):hover::before, .dso-secondary.dso-spinner-left:not([disabled]):focus-visible::before {
|
|
269
269
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
|
|
270
270
|
background-repeat: no-repeat;
|
|
271
271
|
content: "";
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
inline-size: 24px;
|
|
276
276
|
margin-inline-end: 8px;
|
|
277
277
|
}
|
|
278
|
-
.dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
278
|
+
.dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before, .dso-secondary.dso-spinner-left:not([disabled]).dso-small:focus-visible::before {
|
|
279
279
|
block-size: 16px;
|
|
280
280
|
inline-size: 16px;
|
|
281
281
|
}
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
inline-size: 24px;
|
|
290
290
|
margin-inline-start: 8px;
|
|
291
291
|
}
|
|
292
|
-
.dso-secondary.dso-spinner-right:not([disabled]):hover::after {
|
|
292
|
+
.dso-secondary.dso-spinner-right:not([disabled]):hover::after, .dso-secondary.dso-spinner-right:not([disabled]):focus-visible::after {
|
|
293
293
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
|
|
294
294
|
background-repeat: no-repeat;
|
|
295
295
|
content: "";
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
inline-size: 24px;
|
|
300
300
|
margin-inline-start: 8px;
|
|
301
301
|
}
|
|
302
|
-
.dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
302
|
+
.dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after, .dso-secondary.dso-spinner-right:not([disabled]).dso-small:focus-visible::after {
|
|
303
303
|
block-size: 16px;
|
|
304
304
|
inline-size: 16px;
|
|
305
305
|
}
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
border-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937);
|
|
324
324
|
color: var(--_dso-icon-button-secondary-toggled-color, #fff);
|
|
325
325
|
}
|
|
326
|
-
.dso-secondary:not([disabled]).toggled:hover {
|
|
326
|
+
.dso-secondary:not([disabled]).toggled:hover, .dso-secondary:not([disabled]).toggled:focus-visible {
|
|
327
327
|
background-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
|
|
328
328
|
border-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
|
|
329
329
|
}
|
|
@@ -362,20 +362,20 @@
|
|
|
362
362
|
background-color: transparent;
|
|
363
363
|
border: 0;
|
|
364
364
|
}
|
|
365
|
-
.dso-tertiary:not([disabled]):hover {
|
|
365
|
+
.dso-tertiary:not([disabled]):hover, .dso-tertiary:not([disabled]):focus-visible {
|
|
366
366
|
color: var(--_dso-icon-button-tertiary-hover-color, var(--_dso-icon-button-tertiary-color, #275937));
|
|
367
367
|
}
|
|
368
368
|
.dso-tertiary:not([disabled]):active {
|
|
369
|
-
color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #
|
|
369
|
+
color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #173521));
|
|
370
370
|
}
|
|
371
371
|
.dso-tertiary:not([disabled]).toggled {
|
|
372
372
|
color: var(--_dso-icon-button-tertiary-toggled-color, var(--_dso-icon-button-tertiary-color, #275937));
|
|
373
373
|
}
|
|
374
|
-
.dso-tertiary:not([disabled]).toggled:hover {
|
|
374
|
+
.dso-tertiary:not([disabled]).toggled:hover, .dso-tertiary:not([disabled]).toggled:focus-visible {
|
|
375
375
|
color: var(--_dso-icon-button-tertiary-toggled-hover-color, var(--_dso-icon-button-tertiary-color, #1b3e27));
|
|
376
376
|
}
|
|
377
377
|
.dso-tertiary:not([disabled]).toggled:active {
|
|
378
|
-
color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #
|
|
378
|
+
color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #173521));
|
|
379
379
|
}
|
|
380
380
|
.dso-tertiary[disabled] {
|
|
381
381
|
color: var(--_dso-icon-button-tertiary-disabled-color, var(--_dso-icon-button-tertiary-color, #afcf9d));
|
|
@@ -399,6 +399,10 @@
|
|
|
399
399
|
.dso-map:active {
|
|
400
400
|
outline: 0;
|
|
401
401
|
}
|
|
402
|
+
.dso-map.extern::after, .dso-map.download::after {
|
|
403
|
+
content: "";
|
|
404
|
+
display: inline-block;
|
|
405
|
+
}
|
|
402
406
|
.dso-map {
|
|
403
407
|
background-color: var(--_dso-button-secondary-background-color, #fff);
|
|
404
408
|
border-color: var(--_dso-button-secondary-border-color, #39870c);
|
|
@@ -413,7 +417,7 @@
|
|
|
413
417
|
padding-block: 11px;
|
|
414
418
|
padding-inline: 15px;
|
|
415
419
|
}
|
|
416
|
-
.dso-map:hover {
|
|
420
|
+
.dso-map:hover, .dso-map:focus-visible {
|
|
417
421
|
background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce);
|
|
418
422
|
border-color: var(--_dso-button-secondary-hover-border-color, #275937);
|
|
419
423
|
color: var(--_dso-button-secondary-hover-color, #275937);
|
|
@@ -425,7 +429,7 @@
|
|
|
425
429
|
color: var(--_dso-button-secondary-active-color, #fff);
|
|
426
430
|
float: var(--_dso-button-float-secondary, none);
|
|
427
431
|
}
|
|
428
|
-
.dso-map[disabled], .dso-map[disabled]:hover {
|
|
432
|
+
.dso-map[disabled], .dso-map[disabled]:hover, .dso-map[disabled]:focus-visible {
|
|
429
433
|
background-color: var(--_dso-button-secondary-disabled-background-color, #fff);
|
|
430
434
|
border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d);
|
|
431
435
|
color: var(--_dso-button-secondary-disabled-color, #afcf9d);
|
|
@@ -489,7 +493,7 @@
|
|
|
489
493
|
inline-size: 24px;
|
|
490
494
|
margin-inline-end: 8px;
|
|
491
495
|
}
|
|
492
|
-
.dso-map.dso-spinner-left:not([disabled]):hover::before {
|
|
496
|
+
.dso-map.dso-spinner-left:not([disabled]):hover::before, .dso-map.dso-spinner-left:not([disabled]):focus-visible::before {
|
|
493
497
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
|
|
494
498
|
background-repeat: no-repeat;
|
|
495
499
|
content: "";
|
|
@@ -499,7 +503,7 @@
|
|
|
499
503
|
inline-size: 24px;
|
|
500
504
|
margin-inline-end: 8px;
|
|
501
505
|
}
|
|
502
|
-
.dso-map.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
506
|
+
.dso-map.dso-spinner-left:not([disabled]).dso-small:hover::before, .dso-map.dso-spinner-left:not([disabled]).dso-small:focus-visible::before {
|
|
503
507
|
block-size: 16px;
|
|
504
508
|
inline-size: 16px;
|
|
505
509
|
}
|
|
@@ -513,7 +517,7 @@
|
|
|
513
517
|
inline-size: 24px;
|
|
514
518
|
margin-inline-start: 8px;
|
|
515
519
|
}
|
|
516
|
-
.dso-map.dso-spinner-right:not([disabled]):hover::after {
|
|
520
|
+
.dso-map.dso-spinner-right:not([disabled]):hover::after, .dso-map.dso-spinner-right:not([disabled]):focus-visible::after {
|
|
517
521
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E");
|
|
518
522
|
background-repeat: no-repeat;
|
|
519
523
|
content: "";
|
|
@@ -523,7 +527,7 @@
|
|
|
523
527
|
inline-size: 24px;
|
|
524
528
|
margin-inline-start: 8px;
|
|
525
529
|
}
|
|
526
|
-
.dso-map.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
530
|
+
.dso-map.dso-spinner-right:not([disabled]).dso-small:hover::after, .dso-map.dso-spinner-right:not([disabled]).dso-small:focus-visible::after {
|
|
527
531
|
block-size: 16px;
|
|
528
532
|
inline-size: 16px;
|
|
529
533
|
}
|
|
@@ -536,9 +540,6 @@
|
|
|
536
540
|
padding-inline: 16px;
|
|
537
541
|
white-space: nowrap;
|
|
538
542
|
}
|
|
539
|
-
.dso-map:focus, .dso-map:focus-visible {
|
|
540
|
-
outline-offset: -1px;
|
|
541
|
-
}
|
|
542
543
|
.dso-map:has(span.sr-only):has(dso-icon) {
|
|
543
544
|
padding: 8px;
|
|
544
545
|
min-inline-size: auto;
|
|
@@ -566,7 +567,7 @@
|
|
|
566
567
|
border-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937);
|
|
567
568
|
color: var(--_dso-icon-button-secondary-toggled-color, #fff);
|
|
568
569
|
}
|
|
569
|
-
.dso-map:not([disabled]).toggled:hover {
|
|
570
|
+
.dso-map:not([disabled]).toggled:hover, .dso-map:not([disabled]).toggled:focus-visible {
|
|
570
571
|
background-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
|
|
571
572
|
border-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27);
|
|
572
573
|
}
|
|
@@ -43,6 +43,17 @@ export class IconButton {
|
|
|
43
43
|
async setFocus() {
|
|
44
44
|
this.buttonElRef?.focus();
|
|
45
45
|
}
|
|
46
|
+
tooltipWatcher() {
|
|
47
|
+
this.warnIfTooltipNotInLabel();
|
|
48
|
+
}
|
|
49
|
+
warnIfTooltipNotInLabel() {
|
|
50
|
+
if (this.tooltip && !` ${this.label ?? ""} `.includes(` ${this.tooltip} `)) {
|
|
51
|
+
console.warn(`Icon Button: tooltip "${this.tooltip}" does not appear in label "${this.label ?? ""}"`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.warnIfTooltipNotInLabel();
|
|
56
|
+
}
|
|
46
57
|
disconnectedCallback() {
|
|
47
58
|
this.tooltipController.dispose();
|
|
48
59
|
}
|
|
@@ -56,7 +67,7 @@ export class IconButton {
|
|
|
56
67
|
}
|
|
57
68
|
}
|
|
58
69
|
render() {
|
|
59
|
-
return (h("button", { key: '
|
|
70
|
+
return (h("button", { key: '51f3663454ff5552d123a55d566d618a097880d4', ref: (element) => (this.buttonElRef = element), type: "button", disabled: this.disabled, "aria-label": this.label, class: `icon-button dso-${this.variant} ${this.toggled ? "toggled" : ""}`, "aria-pressed": this.toggled?.toString(), "aria-expanded": this.expanded?.toString(), onMouseEnter: this.handleShowTooltip, onMouseLeave: this.handleHideTooltip, onFocus: this.handleShowTooltip, onBlur: this.handleHideTooltip, onClick: this.handleClick }, h("dso-icon", { key: 'b270947dd0ac8537699d4ab050fa359d62dfd9f9', icon: this.icon, "aria-hidden": "true" }), h(Tooltip, { key: '54b98cd18f0f4054426f5e1f402f750c1c45b51d', tipElementRef: (element) => (this.tooltipElRef = element), tipArrowElementRef: (element) => (this.tooltipArrowElRef = element) }, this.tooltip || this.label)));
|
|
60
71
|
}
|
|
61
72
|
static get is() { return "dso-icon-button"; }
|
|
62
73
|
static get encapsulation() { return "shadow"; }
|
|
@@ -110,13 +121,32 @@ export class IconButton {
|
|
|
110
121
|
"optional": false,
|
|
111
122
|
"docs": {
|
|
112
123
|
"tags": [],
|
|
113
|
-
"text": "The
|
|
124
|
+
"text": "The accessible name of the Icon Button. Also shown as tooltip when `tooltip` is not set."
|
|
114
125
|
},
|
|
115
126
|
"getter": false,
|
|
116
127
|
"setter": false,
|
|
117
128
|
"reflect": true,
|
|
118
129
|
"attribute": "label"
|
|
119
130
|
},
|
|
131
|
+
"tooltip": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "string",
|
|
136
|
+
"resolved": "string | undefined",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": true,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": "Optional shorter text for the tooltip. Must occur as whole words in `label`, preferably at the start."
|
|
144
|
+
},
|
|
145
|
+
"getter": false,
|
|
146
|
+
"setter": false,
|
|
147
|
+
"reflect": true,
|
|
148
|
+
"attribute": "tooltip"
|
|
149
|
+
},
|
|
120
150
|
"variant": {
|
|
121
151
|
"type": "string",
|
|
122
152
|
"mutable": false,
|
|
@@ -321,4 +351,13 @@ export class IconButton {
|
|
|
321
351
|
}
|
|
322
352
|
};
|
|
323
353
|
}
|
|
354
|
+
static get watchers() {
|
|
355
|
+
return [{
|
|
356
|
+
"propName": "label",
|
|
357
|
+
"methodName": "tooltipWatcher"
|
|
358
|
+
}, {
|
|
359
|
+
"propName": "tooltip",
|
|
360
|
+
"methodName": "tooltipWatcher"
|
|
361
|
+
}];
|
|
362
|
+
}
|
|
324
363
|
}
|
|
@@ -103,7 +103,7 @@ ins.editaction-add {
|
|
|
103
103
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
104
104
|
--_dso-icon-button-tertiary-color: #191919;
|
|
105
105
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
106
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
106
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
107
107
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
108
108
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
109
109
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -140,7 +140,7 @@ ins.editaction-add .wrapper {
|
|
|
140
140
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
141
141
|
--_dso-icon-button-tertiary-color: #191919;
|
|
142
142
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
143
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
143
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
144
144
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
145
145
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
146
146
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -185,7 +185,7 @@ del.editaction-remove {
|
|
|
185
185
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
186
186
|
--_dso-icon-button-tertiary-color: #191919;
|
|
187
187
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
188
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
188
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
189
189
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
190
190
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
191
191
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -228,7 +228,7 @@ del.editaction-remove .wrapper {
|
|
|
228
228
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
229
229
|
--_dso-icon-button-tertiary-color: #191919;
|
|
230
230
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
231
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
231
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
232
232
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
233
233
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
234
234
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -4,8 +4,8 @@ const wijzigactieLabels = {
|
|
|
4
4
|
verwijder: "Verwijderd",
|
|
5
5
|
voegtoe: "Toegevoegd",
|
|
6
6
|
};
|
|
7
|
-
const Dimmer = ({ active, src, alt, ref, close, click
|
|
8
|
-
src && (h("dialog", { class: "wrapper", ref: ref, onClose: close, onClick: close }, h("div", { onClick: close },
|
|
7
|
+
const Dimmer = ({ active, src, alt, ref, close, click, titel, bijschrift, editactionLabel }) => active &&
|
|
8
|
+
src && (h("dialog", { class: "wrapper", ref: ref, onClose: close, onClick: close }, h("div", { onClick: close }, editactionLabel, h("div", { class: "figure" }, titel, h("div", { class: "content" }, h("img", { src: src, alt: alt }), h("dso-icon-button", { icon: "cross", variant: "map", class: "close", label: "Sluiten", onDsoClick: click }), bijschrift)))));
|
|
9
9
|
/**
|
|
10
10
|
* @slot - A slot to place the target `<img>` element in to make it zoomable.
|
|
11
11
|
* @slot bijschrift - An optional slot to place a caption in, displayed inside the modal overlay.
|
|
@@ -108,14 +108,16 @@ export class ImageOverlay {
|
|
|
108
108
|
render() {
|
|
109
109
|
const { src, alt } = this.host.querySelector("img") ?? {};
|
|
110
110
|
const editActionLabel = (this.wijzigactie && this.isWijzigactie(this.wijzigactie) && wijzigactieLabels[this.wijzigactie]) || undefined;
|
|
111
|
+
const titel = this.titelSlot ? (h("div", { class: "title" }, h("slot", { name: "titel" }))) : undefined;
|
|
112
|
+
const bijschrift = (h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" })));
|
|
111
113
|
const button = this.zoomable && (h("dso-icon-button", { icon: "external-link", class: "open", variant: "map", label: "Afbeelding vergroot weergeven", ref: (element) => (this.iconButtonElement = element), onDsoClick: () => (this.active = true) }));
|
|
112
114
|
if (this.wijzigactie === "verwijder") {
|
|
113
|
-
return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("del", { class: "editaction-remove" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage()
|
|
115
|
+
return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("del", { class: "editaction-remove" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage(), titel: titel, bijschrift: bijschrift, editactionLabel: h("div", { class: "editaction-label" }, editActionLabel, ":") }), h("slot", null), button)));
|
|
114
116
|
}
|
|
115
117
|
if (this.wijzigactie === "voegtoe") {
|
|
116
|
-
return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("ins", { class: "editaction-add" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage()
|
|
118
|
+
return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h("ins", { class: "editaction-add" }, h("div", { class: "editaction-label" }, editActionLabel, ":"), h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage(), titel: titel, bijschrift: bijschrift, editactionLabel: h("div", { class: "editaction-label" }, editActionLabel, ":") }), h("slot", null), button)));
|
|
117
119
|
}
|
|
118
|
-
return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage()
|
|
120
|
+
return (h(Host, { onClick: () => this.iconButtonElement?.setFocus() }, h(Dimmer, { active: this.active, src: src, alt: alt, ref: (element) => (this.wrapperElement = element), close: this.dialogCloseEventListener, click: () => this.closeZoomedImage(), titel: titel, bijschrift: bijschrift }), h("slot", null), button));
|
|
119
121
|
}
|
|
120
122
|
static get is() { return "dso-image-overlay"; }
|
|
121
123
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
29
29
|
--_dso-icon-button-tertiary-color: #191919;
|
|
30
30
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
31
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
31
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
32
32
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
33
33
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
34
34
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,8 +3,17 @@ import { Fragment, h } from "@stencil/core";
|
|
|
3
3
|
* @slot - The content to be displayed inside the info box.
|
|
4
4
|
*/
|
|
5
5
|
export class Info {
|
|
6
|
+
activeChanged(active) {
|
|
7
|
+
this.previousActiveElement = active ? getDeepActiveElement() : undefined;
|
|
8
|
+
}
|
|
9
|
+
componentWillLoad() {
|
|
10
|
+
this.activeChanged(this.active);
|
|
11
|
+
}
|
|
6
12
|
render() {
|
|
7
|
-
return (h(Fragment, { key: '
|
|
13
|
+
return (h(Fragment, { key: '0bbfdfd01d151bc0470268f28b5d1aafc06412ae' }, h("slot", { key: '3784cc98da4db09929429405731f09cfd8448a69' }), !this.fixed && (h("dso-icon-button", { key: 'a27bb2288904385423df3b75be23c7761885fbea', label: this.closeLabel ?? "Sluiten", variant: "tertiary", icon: "cross", onDsoClick: (e) => this.dsoClose.emit({
|
|
14
|
+
originalEvent: e.detail.originalEvent,
|
|
15
|
+
previousActiveElement: this.previousActiveElement,
|
|
16
|
+
}) }))));
|
|
8
17
|
}
|
|
9
18
|
static get is() { return "dso-info"; }
|
|
10
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,6 +66,25 @@ export class Info {
|
|
|
57
66
|
"setter": false,
|
|
58
67
|
"reflect": true,
|
|
59
68
|
"attribute": "active"
|
|
69
|
+
},
|
|
70
|
+
"closeLabel": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string | undefined",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": true,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "The accessible label of the close button. Make this specific, for example `Sluit toelichting [label]`.\r\nDefaults to \"Sluiten\"."
|
|
83
|
+
},
|
|
84
|
+
"getter": false,
|
|
85
|
+
"setter": false,
|
|
86
|
+
"reflect": false,
|
|
87
|
+
"attribute": "close-label"
|
|
60
88
|
}
|
|
61
89
|
};
|
|
62
90
|
}
|
|
@@ -69,18 +97,33 @@ export class Info {
|
|
|
69
97
|
"composed": true,
|
|
70
98
|
"docs": {
|
|
71
99
|
"tags": [],
|
|
72
|
-
"text": "Emitted when the user activates the close button."
|
|
100
|
+
"text": "Emitted when the user activates the close button.\r\n\r\n`previousActiveElement` contains the element that had focus when the Info was activated. Use it to return focus\r\nafter closing the Info."
|
|
73
101
|
},
|
|
74
102
|
"complexType": {
|
|
75
|
-
"original": "
|
|
76
|
-
"resolved": "
|
|
103
|
+
"original": "InfoCloseEvent",
|
|
104
|
+
"resolved": "InfoCloseEvent",
|
|
77
105
|
"references": {
|
|
78
|
-
"
|
|
79
|
-
"location": "
|
|
80
|
-
"
|
|
106
|
+
"InfoCloseEvent": {
|
|
107
|
+
"location": "import",
|
|
108
|
+
"path": "./info.interfaces",
|
|
109
|
+
"id": "src/components/info/info.interfaces.ts::InfoCloseEvent",
|
|
110
|
+
"referenceLocation": "InfoCloseEvent"
|
|
81
111
|
}
|
|
82
112
|
}
|
|
83
113
|
}
|
|
84
114
|
}];
|
|
85
115
|
}
|
|
116
|
+
static get watchers() {
|
|
117
|
+
return [{
|
|
118
|
+
"propName": "active",
|
|
119
|
+
"methodName": "activeChanged"
|
|
120
|
+
}];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function getDeepActiveElement() {
|
|
124
|
+
let activeElement = document.activeElement;
|
|
125
|
+
while (activeElement?.shadowRoot?.activeElement) {
|
|
126
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
127
|
+
}
|
|
128
|
+
return activeElement instanceof HTMLElement && activeElement !== document.body ? activeElement : undefined;
|
|
86
129
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
47
47
|
--_dso-icon-button-tertiary-color: #191919;
|
|
48
48
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
49
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
49
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
50
50
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
51
51
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
52
52
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
92
92
|
--_dso-icon-button-tertiary-color: #191919;
|
|
93
93
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
94
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
94
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
95
95
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
96
96
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
97
97
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
239
239
|
--_dso-icon-button-tertiary-color: #191919;
|
|
240
240
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
241
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
241
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
242
242
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
243
243
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
244
244
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
396
396
|
--_dso-icon-button-tertiary-color: #191919;
|
|
397
397
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
398
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
398
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
399
399
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
400
400
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
401
401
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
430
430
|
--_dso-icon-button-tertiary-color: #191919;
|
|
431
431
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
432
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
432
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
433
433
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
434
434
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
435
435
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
--_dso-icon-button-secondary-toggled-hover-background-color: #1b3e27;
|
|
465
465
|
--_dso-icon-button-tertiary-color: #191919;
|
|
466
466
|
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
467
|
-
--_dso-icon-button-tertiary-active-color: #
|
|
467
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
468
468
|
--_dso-icon-button-tertiary-toggled-color: #275937;
|
|
469
469
|
--_dso-icon-button-tertiary-toggled-hover-color: #1b3e27;
|
|
470
470
|
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
padding-block: 11px;
|
|
70
70
|
padding-inline: 15px;
|
|
71
71
|
}
|
|
72
|
-
.dso-tertiary:hover {
|
|
72
|
+
.dso-tertiary:hover, .dso-tertiary:focus-visible {
|
|
73
73
|
background-color: var(--_dso-button-tertiary-hover-background-color, );
|
|
74
74
|
border-color: var(--_dso-button-tertiary-hover-border-color, );
|
|
75
75
|
color: var(--_dso-button-tertiary-hover-color, #275937);
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
color: var(--_dso-button-tertiary-active-color, #173521);
|
|
82
82
|
float: var(--_dso-button-float-tertiary, none);
|
|
83
83
|
}
|
|
84
|
-
.dso-tertiary[disabled], .dso-tertiary[disabled]:hover {
|
|
84
|
+
.dso-tertiary[disabled], .dso-tertiary[disabled]:hover, .dso-tertiary[disabled]:focus-visible {
|
|
85
85
|
background-color: var(--_dso-button-tertiary-disabled-background-color, );
|
|
86
86
|
border-color: var(--_dso-button-tertiary-disabled-border-color, );
|
|
87
87
|
color: var(--_dso-button-tertiary-disabled-color, #afcf9d);
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
.dso-tertiary[disabled].dso-spinner-left, .dso-tertiary[disabled].dso-spinner-right {
|
|
131
131
|
color: #39870c;
|
|
132
132
|
}
|
|
133
|
-
.dso-tertiary:not([disabled]):hover {
|
|
133
|
+
.dso-tertiary:not([disabled]):hover, .dso-tertiary:not([disabled]):active {
|
|
134
134
|
text-decoration: underline;
|
|
135
135
|
text-underline-position: under;
|
|
136
136
|
}
|