@dso-toolkit/core 28.0.2 → 29.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/cjs/dso-alert.cjs.entry.js +2 -2
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +2 -2
- package/dist/cjs/dso-autosuggest.cjs.entry.js +3 -3
- package/dist/cjs/dso-badge.cjs.entry.js +2 -2
- package/dist/cjs/dso-banner.cjs.entry.js +2 -2
- package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +47 -7
- package/dist/cjs/dso-highlight-box.cjs.entry.js +2 -2
- package/dist/cjs/dso-icon.cjs.entry.js +9 -3
- package/dist/cjs/dso-info_3.cjs.entry.js +4 -4
- package/dist/cjs/dso-label.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
- package/dist/cjs/dso-ozon-content.cjs.entry.js +325 -4
- package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +2 -2
- package/dist/cjs/dso-toolkit.cjs.js +2 -2
- package/dist/cjs/dso-tooltip.cjs.entry.js +55 -23
- package/dist/cjs/{index-be0edad4.js → index-fcdfdd38.js} +94 -34
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{v4-14140ff3.js → v4-8e8d6fbc.js} +0 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/icon/icon.css +1 -0
- package/dist/collection/components/icon/icon.js +2 -0
- package/dist/collection/components/ozon-content/ozon-content.transformer.js +11 -2
- package/dist/collection/icon/dso-icon-sass-function.js +2 -2
- package/dist/custom-elements/index.js +447 -48
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-08427682.entry.js +1 -0
- package/dist/dso-toolkit/p-0a7cb861.entry.js +1 -0
- package/dist/dso-toolkit/p-12f7e7d7.entry.js +5 -0
- package/dist/dso-toolkit/{p-ad90fe4d.js → p-19b890a3.js} +0 -0
- package/dist/dso-toolkit/p-262858dd.entry.js +1 -0
- package/dist/dso-toolkit/p-2c6e9460.entry.js +1 -0
- package/dist/dso-toolkit/p-2e7d535c.entry.js +1 -0
- package/dist/dso-toolkit/p-94500196.entry.js +1 -0
- package/dist/dso-toolkit/p-968d9e1d.entry.js +1 -0
- package/dist/dso-toolkit/p-a2357726.entry.js +1 -0
- package/dist/dso-toolkit/p-a40eeb32.js +1 -0
- package/dist/dso-toolkit/p-ae6209c6.entry.js +1 -0
- package/dist/dso-toolkit/p-b5b946de.entry.js +1 -0
- package/dist/dso-toolkit/p-c5acf7e2.entry.js +1 -0
- package/dist/dso-toolkit/p-c9c1bc8f.entry.js +1 -0
- package/dist/dso-toolkit/p-d748df48.entry.js +1 -0
- package/dist/dso-toolkit/p-dff52fb0.entry.js +1 -0
- package/dist/dso-toolkit/p-e4269e02.entry.js +1 -0
- package/dist/dso-toolkit/p-e7700d9e.entry.js +1 -0
- package/dist/dso-toolkit/p-eadba8c3.entry.js +1 -0
- package/dist/esm/dso-alert.entry.js +2 -2
- package/dist/esm/dso-attachments-counter.entry.js +2 -2
- package/dist/esm/dso-autosuggest.entry.js +3 -3
- package/dist/esm/dso-badge.entry.js +2 -2
- package/dist/esm/dso-banner.entry.js +2 -2
- package/dist/esm/dso-date-picker.entry.js +2 -2
- package/dist/esm/dso-dropdown-menu.entry.js +47 -7
- package/dist/esm/dso-highlight-box.entry.js +2 -2
- package/dist/esm/dso-icon.entry.js +9 -3
- package/dist/esm/dso-info_3.entry.js +4 -4
- package/dist/esm/dso-label.entry.js +2 -2
- package/dist/esm/dso-map-base-layers.entry.js +2 -2
- package/dist/esm/dso-map-controls.entry.js +2 -2
- package/dist/esm/dso-map-overlays.entry.js +2 -2
- package/dist/esm/dso-ozon-content.entry.js +325 -4
- package/dist/esm/dso-progress-bar.entry.js +2 -2
- package/dist/esm/dso-progress-indicator.entry.js +2 -2
- package/dist/esm/dso-toolkit.js +2 -2
- package/dist/esm/dso-tooltip.entry.js +55 -23
- package/dist/esm/{index-dd97a66d.js → index-61410be2.js} +94 -34
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{v4-929670b7.js → v4-fa4bb814.js} +0 -0
- package/dist/types/components/alert/alert.template.d.ts +2 -2
- package/dist/types/components/attachments-counter/attachments-counter.template.d.ts +1 -1
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/types/components/badge/badge.template.d.ts +1 -1
- package/dist/types/components/banner/banner.template.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.template.d.ts +3 -3
- package/dist/types/components/dropdown-menu/dropdown-menu.template.d.ts +1 -1
- package/dist/types/components/highlight-box/highlight-box.template.d.ts +1 -1
- package/dist/types/components/icon/icon.template.d.ts +1 -1
- package/dist/types/components/info/info.template.d.ts +1 -1
- package/dist/types/components/info-button/info-button.template.d.ts +1 -1
- package/dist/types/components/label/label.template.d.ts +1 -1
- package/dist/types/components/map-controls/map-controls.template.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content.transformer.d.ts +1 -0
- package/dist/types/components/progress-bar/progress-bar.template.d.ts +1 -1
- package/dist/types/components/progress-indicator/progress-indicator.template.d.ts +1 -1
- package/dist/types/components/selectable/selectable.template.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.template.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +190 -182
- package/loader/index.d.ts +0 -1
- package/package.json +34 -32
- package/dist/dso-toolkit/p-060ce2e1.entry.js +0 -1
- package/dist/dso-toolkit/p-15d08205.entry.js +0 -1
- package/dist/dso-toolkit/p-20493f89.entry.js +0 -1
- package/dist/dso-toolkit/p-215b881c.entry.js +0 -1
- package/dist/dso-toolkit/p-4403a2b4.entry.js +0 -1
- package/dist/dso-toolkit/p-5a0a919b.entry.js +0 -1
- package/dist/dso-toolkit/p-636dd53f.entry.js +0 -1
- package/dist/dso-toolkit/p-6499f8f7.entry.js +0 -1
- package/dist/dso-toolkit/p-8f381afb.entry.js +0 -1
- package/dist/dso-toolkit/p-939f358e.entry.js +0 -1
- package/dist/dso-toolkit/p-9721d73f.entry.js +0 -1
- package/dist/dso-toolkit/p-97fb0d06.entry.js +0 -1
- package/dist/dso-toolkit/p-a17d1e9c.entry.js +0 -1
- package/dist/dso-toolkit/p-a7ca7cc4.entry.js +0 -1
- package/dist/dso-toolkit/p-aae83ed4.entry.js +0 -1
- package/dist/dso-toolkit/p-acf8e697.js +0 -1
- package/dist/dso-toolkit/p-f0aba566.entry.js +0 -1
- package/dist/dso-toolkit/p-f451295c.entry.js +0 -5
- package/dist/dso-toolkit/p-f7d6fd8a.entry.js +0 -1
|
@@ -44,7 +44,7 @@ function clsx () {
|
|
|
44
44
|
|
|
45
45
|
const alertCss = "@media screen and (min-width: 481px){.alert{padding:19px 16px 19px 63px}}@media screen and (max-width: 480px){.alert{padding:63px 16px 16px}}:host{display:block;--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' style='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' style='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' style='fill: white'/%3e %3c/svg%3e\");--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' style='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' style='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' style='fill: white'/%3e %3c/svg%3e\");--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' style='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' style='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\");--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' style='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' style='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' style='fill: white'/%3e %3c/svg%3e\")}:host(:not(:first-child)){margin-top:24px}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.alert{border:1px solid transparent;line-height:24px;margin-bottom:24px;min-height:64px;position:relative}.alert:not(:first-child){margin-top:24px}.alert::before{content:\"\";left:15px;position:absolute;top:15px}.alert.alert-success{color:#191919;background-color:#e4f1d4;border-color:#e4f1d4}.alert.alert-success::before{background:var(--dso-icon, var(--di-status-success)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}.alert.alert-danger{color:#191919;background-color:#f5d8dc;border-color:#f5d8dc}.alert.alert-danger::before{background:var(--dso-icon, var(--di-status-danger)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}.alert.alert-warning{color:#191919;background-color:#f8f6cc;border-color:#f8f6cc}.alert.alert-warning::before{background:var(--dso-icon, var(--di-status-warning)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}.alert.alert-info{color:#191919;background-color:#e1ecf7;border-color:#e1ecf7}.alert.alert-info::before{background:var(--dso-icon, var(--di-status-info)) no-repeat;background-position:center;background-size:cover;height:32px;vertical-align:top;width:32px}";
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
let Alert = class extends HTMLElement {
|
|
48
48
|
constructor() {
|
|
49
49
|
super();
|
|
50
50
|
this.__registerHost();
|
|
@@ -68,7 +68,7 @@ Alert.statusMap = new Map([
|
|
|
68
68
|
|
|
69
69
|
const attachmentsCounterCss = ":host{display:inline-block;--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\");--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\")}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-attachments{color:var(--dso-attachments-counter-color, #666);display:inline-block;font-weight:400;text-decoration:none;white-space:nowrap;}.dso-attachments::after{background:var(--dso-icon, var(--di-paperclip-grijs)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}";
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
let AttachmentsCounter = class extends HTMLElement {
|
|
72
72
|
constructor() {
|
|
73
73
|
super();
|
|
74
74
|
this.__registerHost();
|
|
@@ -225,7 +225,7 @@ function v4(options, buf, offset) {
|
|
|
225
225
|
|
|
226
226
|
const autosuggestCss = "ul.sc-dso-autosuggest{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.15);border-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);list-style-type:none;margin-top:2px;padding:4px 0}ul.sc-dso-autosuggest li.sc-dso-autosuggest{display:flex;justify-content:space-between;padding:4px 18px}li[aria-selected=true].sc-dso-autosuggest{cursor:pointer;background-color:#39870c}li[aria-selected=true].sc-dso-autosuggest,li[aria-selected=true].sc-dso-autosuggest .type.sc-dso-autosuggest{color:#fff}mark.sc-dso-autosuggest{font-weight:700;background-color:inherit;color:inherit;padding:0}.type.sc-dso-autosuggest{color:#666}";
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
let Autosuggest = class extends HTMLElement {
|
|
229
229
|
constructor() {
|
|
230
230
|
super();
|
|
231
231
|
this.__registerHost();
|
|
@@ -427,7 +427,7 @@ const Autosuggest = class extends HTMLElement {
|
|
|
427
427
|
|
|
428
428
|
const badgeCss = ":host{display:inline-block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-badge{background-color:#666;border-radius:1em;color:#fff;display:inline-block;font-size:0.875em;line-height:1em;padding:4px 8px}.dso-badge.badge-info{background-color:#6ca4d9;color:#191919}.dso-badge.badge-primary{background-color:#275937;color:#fff}.dso-badge.badge-success{background-color:#39870c;color:#fff}.dso-badge.badge-warning{background-color:#dcd400;color:#191919}.dso-badge.badge-danger{background-color:#ce3f51;color:#fff}";
|
|
429
429
|
|
|
430
|
-
|
|
430
|
+
let Badge = class extends HTMLElement {
|
|
431
431
|
constructor() {
|
|
432
432
|
super();
|
|
433
433
|
this.__registerHost();
|
|
@@ -447,7 +447,7 @@ Badge.statusMap = new Map([
|
|
|
447
447
|
|
|
448
448
|
const bannerCss = ":host{display:block;--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' style='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' style='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' style='fill: white'/%3e %3c/svg%3e\");--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' style='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' style='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\")}*,*::after,*::before{box-sizing:border-box}.dso-banner{padding:16px 0;position:relative}";
|
|
449
449
|
|
|
450
|
-
|
|
450
|
+
let Banner = class extends HTMLElement {
|
|
451
451
|
constructor() {
|
|
452
452
|
super();
|
|
453
453
|
this.__registerHost();
|
|
@@ -738,7 +738,7 @@ const keyCode = {
|
|
|
738
738
|
};
|
|
739
739
|
const DISALLOWED_CHARACTERS = /[^0-9\.\/\-]+/g;
|
|
740
740
|
const TRANSITION_MS = 300;
|
|
741
|
-
|
|
741
|
+
let DsoDatePicker$1 = class extends HTMLElement {
|
|
742
742
|
constructor() {
|
|
743
743
|
super();
|
|
744
744
|
this.__registerHost();
|
|
@@ -1068,7 +1068,7 @@ const DsoDatePicker$1 = class extends HTMLElement {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
|
|
1070
1070
|
/*!
|
|
1071
|
-
* tabbable 5.2.
|
|
1071
|
+
* tabbable 5.2.1
|
|
1072
1072
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1073
1073
|
*/
|
|
1074
1074
|
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
@@ -1207,13 +1207,53 @@ var isHidden = function isHidden(node, displayCheck) {
|
|
|
1207
1207
|
return width === 0 && height === 0;
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
|
+
return false;
|
|
1211
|
+
}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
1212
|
+
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
1213
|
+
// fieldset
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
1217
|
+
if (isInput(node) || node.tagName === 'SELECT' || node.tagName === 'TEXTAREA' || node.tagName === 'BUTTON') {
|
|
1218
|
+
var parentNode = node.parentElement;
|
|
1219
|
+
|
|
1220
|
+
while (parentNode) {
|
|
1221
|
+
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
1222
|
+
// look for the first <legend> as an immediate child of the disabled
|
|
1223
|
+
// <fieldset>: if the node is in that legend, it'll be enabled even
|
|
1224
|
+
// though the fieldset is disabled; otherwise, the node is in a
|
|
1225
|
+
// secondary/subsequent legend, or somewhere else within the fieldset
|
|
1226
|
+
// (however deep nested) and it'll be disabled
|
|
1227
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
1228
|
+
var child = parentNode.children.item(i);
|
|
1229
|
+
|
|
1230
|
+
if (child.tagName === 'LEGEND') {
|
|
1231
|
+
if (child.contains(node)) {
|
|
1232
|
+
return false;
|
|
1233
|
+
} // the node isn't in the first legend (in doc order), so no matter
|
|
1234
|
+
// where it is now, it'll be disabled
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
return true;
|
|
1238
|
+
}
|
|
1239
|
+
} // the node isn't in a legend, so no matter where it is now, it'll be disabled
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
return true;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
parentNode = parentNode.parentElement;
|
|
1246
|
+
}
|
|
1247
|
+
} // else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
1248
|
+
// enabled/disabled state
|
|
1249
|
+
|
|
1250
|
+
|
|
1210
1251
|
return false;
|
|
1211
1252
|
};
|
|
1212
1253
|
|
|
1213
1254
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
1214
|
-
if (node.disabled || isHiddenInput(node) || isHidden(node, options.displayCheck) ||
|
|
1215
|
-
|
|
1216
|
-
isDetailsWithSummary(node)) {
|
|
1255
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options.displayCheck) || // For a details element with a summary, the summary element gets the focus
|
|
1256
|
+
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
1217
1257
|
return false;
|
|
1218
1258
|
}
|
|
1219
1259
|
|
|
@@ -1254,7 +1294,7 @@ var tabbable = function tabbable(el, options) {
|
|
|
1254
1294
|
|
|
1255
1295
|
const dropdownMenuCss = ":host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' 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'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
1256
1296
|
|
|
1257
|
-
|
|
1297
|
+
let DropdownMenu = class extends HTMLElement {
|
|
1258
1298
|
constructor() {
|
|
1259
1299
|
super();
|
|
1260
1300
|
this.__registerHost();
|
|
@@ -1398,7 +1438,7 @@ const DropdownMenu = class extends HTMLElement {
|
|
|
1398
1438
|
|
|
1399
1439
|
const highlightBoxCss = ":host{--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\");--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\");display:block}:host-context(.row.dso-equal-heights){height:100%;min-height:auto}:host-context(.row.dso-equal-heights)>.dso-highlight-box{min-height:auto}:host-context(.row.dso-equal-heights)>.dso-highlight-box.dso-has-counter{height:calc(100% - 48px)}:host-context(.row.dso-equal-heights)>.dso-highlight-box:not(.dso-has-counter){height:calc(100% - 16px)}*,*::after,*::before{box-sizing:border-box}.dso-highlight-box{background-color:#e5e5e5;margin-top:16px;padding:16px;margin-bottom:16px}.dso-highlight-box.dso-white{background-color:#fff}.dso-highlight-box.dso-yellow{background-color:#f8f6cc}.dso-highlight-box.dso-drop-shadow{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2)}.dso-highlight-box.dso-border{background-color:#fff;border:1px solid #ccc;padding:15px}.dso-highlight-box.dso-has-counter{margin-top:48px}.dso-highlight-box.dso-has-counter{padding-top:40px;position:relative}.dso-highlight-box .dso-step-counter{background-color:#39870c;border:8px solid #79b929;border-radius:50%;box-sizing:content-box;color:#fff;font-size:1.25em;font-weight:500;height:32px;left:16px;line-height:32px;position:absolute;text-align:center;top:-24px;width:32px}";
|
|
1400
1440
|
|
|
1401
|
-
|
|
1441
|
+
let HighlightBox = class extends HTMLElement {
|
|
1402
1442
|
constructor() {
|
|
1403
1443
|
super();
|
|
1404
1444
|
this.__registerHost();
|
|
@@ -1644,6 +1684,11 @@ const locationOutline = `<svg id="location-outline" xmlns="http://www.w3.org/200
|
|
|
1644
1684
|
</svg>
|
|
1645
1685
|
`;
|
|
1646
1686
|
|
|
1687
|
+
const locationSearch = `<svg id="location-search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1688
|
+
<path fill="currentColor" d="M16,12a4,4,0,1,1-4-4A4,4,0,0,1,16,12Zm8,0a1,1,0,0,1-1,1H19.92A8,8,0,0,1,13,19.92V23a1,1,0,0,1-2,0V19.93a8,8,0,0,1-7-6.93H1a1,1,0,0,1,0-2H4.06a8,8,0,0,1,7-6.94V1a1,1,0,0,1,2,0V4.07A8,8,0,0,1,19.92,11H23A1,1,0,0,1,24,12Zm-6,0A6,6,0,0,0,12,6H12a6,6,0,0,0-6,6V12a6,6,0,0,0,12,0Z"/>
|
|
1689
|
+
</svg>
|
|
1690
|
+
`;
|
|
1691
|
+
|
|
1647
1692
|
const lock = `<svg id="lock" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1648
1693
|
<path fill="currentColor" d="M18.14,9H17V7A5,5,0,0,0,7,7V9H5.86A1.87,1.87,0,0,0,4,10.86v8.28A1.87,1.87,0,0,0,5.86,21H18.14A1.87,1.87,0,0,0,20,19.14V10.86A1.87,1.87,0,0,0,18.14,9ZM9,7a3,3,0,0,1,6,0V9H9Zm4.74,9.66a1.52,1.52,0,0,1,.26.84,1.5,1.5,0,1,1-2.75-.84,2.49,2.49,0,0,1-1.25-2,2.5,2.5,0,1,1,3.74,2Z"/>
|
|
1649
1694
|
</svg>
|
|
@@ -1665,7 +1710,7 @@ const marker = `<svg id="marker" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
|
1665
1710
|
`;
|
|
1666
1711
|
|
|
1667
1712
|
const measurement = `<svg id="measurement" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1668
|
-
<path fill="currentColor" d="
|
|
1713
|
+
<path fill="currentColor" d="M1,24a1,1,0,0,1-1-1V1A1,1,0,0,1,2,1V23A1,1,0,0,1,1,24Zm23-1V1a1,1,0,0,0-2,0V23a1,1,0,0,0,2,0Zm-4-5-2-2v1H6V16L4,18l2,2V19H18v1Zm-8-3a1,1,0,1,0-1-1A1,1,0,0,0,12,15ZM12,3A4,4,0,0,0,8,7v.09a1,1,0,0,0,2,0V7a2,2,0,0,1,4,0c0,1.64-3,1.63-3,4v.09a1,1,0,0,0,2,0V11c0-1.36,3-1.21,3-4A4,4,0,0,0,12,3Z"/>
|
|
1669
1714
|
</svg>
|
|
1670
1715
|
`;
|
|
1671
1716
|
|
|
@@ -1923,6 +1968,7 @@ const icons = [
|
|
|
1923
1968
|
{ alias: 'layers', svg: layers },
|
|
1924
1969
|
{ alias: 'location', svg: location },
|
|
1925
1970
|
{ alias: 'location-outline', svg: locationOutline },
|
|
1971
|
+
{ alias: 'location-search', svg: locationSearch },
|
|
1926
1972
|
{ alias: 'lock', svg: lock },
|
|
1927
1973
|
{ alias: 'magnet', svg: magnet },
|
|
1928
1974
|
{ alias: 'map-location', svg: mapLocation },
|
|
@@ -1967,7 +2013,7 @@ const icons = [
|
|
|
1967
2013
|
{ alias: 'water', svg: water },
|
|
1968
2014
|
{ alias: 'wip-wip', svg: wipWip }
|
|
1969
2015
|
];
|
|
1970
|
-
|
|
2016
|
+
let Icon = class extends HTMLElement {
|
|
1971
2017
|
constructor() {
|
|
1972
2018
|
super();
|
|
1973
2019
|
this.__registerHost();
|
|
@@ -1985,7 +2031,7 @@ const Icon = class extends HTMLElement {
|
|
|
1985
2031
|
|
|
1986
2032
|
const infoCss = ":host{--di-times-bosgroen:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\");display:block;background-color:#e5e5e5;padding:16px 32px 16px 16px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;right:0;top:0}:host>button::before{background:var(--dso-icon, var(--di-times-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}:host(:not([active]):not([fixed])){display:none}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
1987
2033
|
|
|
1988
|
-
|
|
2034
|
+
let Info = class extends HTMLElement {
|
|
1989
2035
|
constructor() {
|
|
1990
2036
|
super();
|
|
1991
2037
|
this.__registerHost();
|
|
@@ -2000,7 +2046,7 @@ const Info = class extends HTMLElement {
|
|
|
2000
2046
|
|
|
2001
2047
|
const infoButtonCss = ":host{display:inline-block;--di-info:url(\"data:image/svg+xml,%3csvg id='info' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c3a9%2c9%2c0%2c1%2c1-9%2c9%2c9%2c9%2c0%2c0%2c1%2c9-9m0-2A11%2c11%2c0%2c1%2c0%2c23%2c12%2c11%2c11%2c0%2c0%2c0%2c12%2c1Zm0%2c8a1%2c1%2c0%2c1%2c0-1-1A1%2c1%2c0%2c0%2c0%2c12%2c9Zm1%2c7.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'/%3e %3c/svg%3e\");--di-info-active:url(\"data:image/svg+xml,%3csvg id='info-active' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M23%2c12A11%2c11%2c0%2c1%2c1%2c12%2c1%2c11%2c11%2c0%2c0%2c1%2c23%2c12ZM12%2c9a1%2c1%2c0%2c1%2c0-1-1A1%2c1%2c0%2c0%2c0%2c12%2c9Zm1%2c7.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'/%3e %3c/svg%3e\")}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}button{background:var(--dso-icon, var(--di-info)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;border:1px solid transparent;margin-left:8px;min-width:16px;padding:0}button.dso-open,button:hover,button:active{--dso-icon:var(--di-info-active)}";
|
|
2002
2048
|
|
|
2003
|
-
|
|
2049
|
+
let InfoButton = class extends HTMLElement {
|
|
2004
2050
|
constructor() {
|
|
2005
2051
|
super();
|
|
2006
2052
|
this.__registerHost();
|
|
@@ -2020,7 +2066,7 @@ const InfoButton = class extends HTMLElement {
|
|
|
2020
2066
|
|
|
2021
2067
|
const labelCss = ":host{display:inline-block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-label{background-color:#f2f2f2;border-radius:4px;color:#191919;display:inline-block;line-height:1.5}.dso-label:not(.dso-label-bright){padding:4px 8px}.dso-label:focus-within,.dso-label.dso-hover{text-decoration:line-through}.dso-label button{background:none;border:0;border-radius:0 4px 4px 0;color:inherit;float:right;font-size:16px;margin-bottom:-4px;margin-left:8px;margin-right:-4px;margin-top:0;padding:0}.dso-label button:hover{cursor:pointer}.dso-label button>dso-icon,.dso-label button>svg.di{display:block}.dso-label.dso-compact{border:0;padding:0 8px}.dso-label.dso-label-info{background-color:#6ca4d9;color:#191919}.dso-label.dso-label-primary{background-color:#275937;color:#fff}.dso-label.dso-label-success{background-color:#39870c;color:#fff}.dso-label.dso-label-warning{background-color:#dcd400;color:#191919}.dso-label.dso-label-danger{background-color:#ce3f51;color:#fff}.dso-label.dso-label-bright{background-color:#fff;color:#191919;border:1px solid #ccc;padding:3px 7px}";
|
|
2022
2068
|
|
|
2023
|
-
|
|
2069
|
+
let Label = class extends HTMLElement {
|
|
2024
2070
|
constructor() {
|
|
2025
2071
|
super();
|
|
2026
2072
|
this.__registerHost();
|
|
@@ -2042,7 +2088,7 @@ Label.statusMap = new Map([
|
|
|
2042
2088
|
|
|
2043
2089
|
const mapBaseLayersCss = ":host{display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}fieldset{border:0;margin:0;min-width:0;padding:0}fieldset .control-label{display:inline-block;font-weight:bold;margin-bottom:8px;max-width:100%;text-align:left}";
|
|
2044
2090
|
|
|
2045
|
-
|
|
2091
|
+
let MapBaseLayers = class extends HTMLElement {
|
|
2046
2092
|
constructor() {
|
|
2047
2093
|
super();
|
|
2048
2094
|
this.__registerHost();
|
|
@@ -2076,7 +2122,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
2076
2122
|
};
|
|
2077
2123
|
var _closeButtonElement, _toggleButtonElement;
|
|
2078
2124
|
const transitionDuration$1 = 300; // Sync with $transition-duration in ./map-controls.scss
|
|
2079
|
-
|
|
2125
|
+
let MapControls = class extends HTMLElement {
|
|
2080
2126
|
constructor() {
|
|
2081
2127
|
super();
|
|
2082
2128
|
this.__registerHost();
|
|
@@ -2112,7 +2158,7 @@ _closeButtonElement = new WeakMap(), _toggleButtonElement = new WeakMap();
|
|
|
2112
2158
|
|
|
2113
2159
|
const mapOverlaysCss = ":host{display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}fieldset{border:0;margin:0;min-width:0;padding:0}fieldset .control-label{display:inline-block;font-weight:bold;margin-bottom:8px;max-width:100%;text-align:left}";
|
|
2114
2160
|
|
|
2115
|
-
|
|
2161
|
+
let MapOverlays = class extends HTMLElement {
|
|
2116
2162
|
constructor() {
|
|
2117
2163
|
super();
|
|
2118
2164
|
this.__registerHost();
|
|
@@ -2132,6 +2178,319 @@ const MapOverlays = class extends HTMLElement {
|
|
|
2132
2178
|
static get style() { return mapOverlaysCss; }
|
|
2133
2179
|
};
|
|
2134
2180
|
|
|
2181
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2182
|
+
|
|
2183
|
+
function assertString(input) {
|
|
2184
|
+
var isString = typeof input === 'string' || input instanceof String;
|
|
2185
|
+
|
|
2186
|
+
if (!isString) {
|
|
2187
|
+
var invalidType = _typeof(input);
|
|
2188
|
+
|
|
2189
|
+
if (input === null) invalidType = 'null';else if (invalidType === 'object') invalidType = input.constructor.name;
|
|
2190
|
+
throw new TypeError("Expected a string but received a ".concat(invalidType));
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
function merge() {
|
|
2195
|
+
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2196
|
+
var defaults = arguments.length > 1 ? arguments[1] : undefined;
|
|
2197
|
+
|
|
2198
|
+
for (var key in defaults) {
|
|
2199
|
+
if (typeof obj[key] === 'undefined') {
|
|
2200
|
+
obj[key] = defaults[key];
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
return obj;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
var default_fqdn_options = {
|
|
2208
|
+
require_tld: true,
|
|
2209
|
+
allow_underscores: false,
|
|
2210
|
+
allow_trailing_dot: false,
|
|
2211
|
+
allow_numeric_tld: false
|
|
2212
|
+
};
|
|
2213
|
+
function isFQDN(str, options) {
|
|
2214
|
+
assertString(str);
|
|
2215
|
+
options = merge(options, default_fqdn_options);
|
|
2216
|
+
/* Remove the optional trailing dot before checking validity */
|
|
2217
|
+
|
|
2218
|
+
if (options.allow_trailing_dot && str[str.length - 1] === '.') {
|
|
2219
|
+
str = str.substring(0, str.length - 1);
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
var parts = str.split('.');
|
|
2223
|
+
var tld = parts[parts.length - 1];
|
|
2224
|
+
|
|
2225
|
+
if (options.require_tld) {
|
|
2226
|
+
// disallow fqdns without tld
|
|
2227
|
+
if (parts.length < 2) {
|
|
2228
|
+
return false;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
if (!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
|
|
2232
|
+
return false;
|
|
2233
|
+
} // disallow spaces && special characers
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20\u00A9\uFFFD]/.test(tld)) {
|
|
2237
|
+
return false;
|
|
2238
|
+
}
|
|
2239
|
+
} // reject numeric TLDs
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
|
|
2243
|
+
return false;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
return parts.every(function (part) {
|
|
2247
|
+
if (part.length > 63) {
|
|
2248
|
+
return false;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
|
|
2252
|
+
return false;
|
|
2253
|
+
} // disallow full-width chars
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
if (/[\uff01-\uff5e]/.test(part)) {
|
|
2257
|
+
return false;
|
|
2258
|
+
} // disallow parts starting or ending with hyphen
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
if (/^-|-$/.test(part)) {
|
|
2262
|
+
return false;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
if (!options.allow_underscores && /_/.test(part)) {
|
|
2266
|
+
return false;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
return true;
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
11.3. Examples
|
|
2275
|
+
|
|
2276
|
+
The following addresses
|
|
2277
|
+
|
|
2278
|
+
fe80::1234 (on the 1st link of the node)
|
|
2279
|
+
ff02::5678 (on the 5th link of the node)
|
|
2280
|
+
ff08::9abc (on the 10th organization of the node)
|
|
2281
|
+
|
|
2282
|
+
would be represented as follows:
|
|
2283
|
+
|
|
2284
|
+
fe80::1234%1
|
|
2285
|
+
ff02::5678%5
|
|
2286
|
+
ff08::9abc%10
|
|
2287
|
+
|
|
2288
|
+
(Here we assume a natural translation from a zone index to the
|
|
2289
|
+
<zone_id> part, where the Nth zone of any scope is translated into
|
|
2290
|
+
"N".)
|
|
2291
|
+
|
|
2292
|
+
If we use interface names as <zone_id>, those addresses could also be
|
|
2293
|
+
represented as follows:
|
|
2294
|
+
|
|
2295
|
+
fe80::1234%ne0
|
|
2296
|
+
ff02::5678%pvc1.3
|
|
2297
|
+
ff08::9abc%interface10
|
|
2298
|
+
|
|
2299
|
+
where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs
|
|
2300
|
+
to the 5th link, and "interface10" belongs to the 10th organization.
|
|
2301
|
+
* * */
|
|
2302
|
+
|
|
2303
|
+
var IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
|
|
2304
|
+
var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
|
|
2305
|
+
var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
|
|
2306
|
+
var IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';
|
|
2307
|
+
var IPv6AddressRegExp = new RegExp('^(' + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ')(%[0-9a-zA-Z-.:]{1,})?$');
|
|
2308
|
+
function isIP(str) {
|
|
2309
|
+
var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
2310
|
+
assertString(str);
|
|
2311
|
+
version = String(version);
|
|
2312
|
+
|
|
2313
|
+
if (!version) {
|
|
2314
|
+
return isIP(str, 4) || isIP(str, 6);
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
if (version === '4') {
|
|
2318
|
+
if (!IPv4AddressRegExp.test(str)) {
|
|
2319
|
+
return false;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
var parts = str.split('.').sort(function (a, b) {
|
|
2323
|
+
return a - b;
|
|
2324
|
+
});
|
|
2325
|
+
return parts[3] <= 255;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
if (version === '6') {
|
|
2329
|
+
return !!IPv6AddressRegExp.test(str);
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
return false;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/*
|
|
2336
|
+
options for isURL method
|
|
2337
|
+
|
|
2338
|
+
require_protocol - if set as true isURL will return false if protocol is not present in the URL
|
|
2339
|
+
require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option
|
|
2340
|
+
protocols - valid protocols can be modified with this option
|
|
2341
|
+
require_host - if set as false isURL will not check if host is present in the URL
|
|
2342
|
+
require_port - if set as true isURL will check if port is present in the URL
|
|
2343
|
+
allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed
|
|
2344
|
+
validate_length - if set as false isURL will skip string length validation (IE maximum is 2083)
|
|
2345
|
+
|
|
2346
|
+
*/
|
|
2347
|
+
|
|
2348
|
+
var default_url_options = {
|
|
2349
|
+
protocols: ['http', 'https', 'ftp'],
|
|
2350
|
+
require_tld: true,
|
|
2351
|
+
require_protocol: false,
|
|
2352
|
+
require_host: true,
|
|
2353
|
+
require_port: false,
|
|
2354
|
+
require_valid_protocol: true,
|
|
2355
|
+
allow_underscores: false,
|
|
2356
|
+
allow_trailing_dot: false,
|
|
2357
|
+
allow_protocol_relative_urls: false,
|
|
2358
|
+
validate_length: true
|
|
2359
|
+
};
|
|
2360
|
+
var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/;
|
|
2361
|
+
|
|
2362
|
+
function isRegExp(obj) {
|
|
2363
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
function checkHost(host, matches) {
|
|
2367
|
+
for (var i = 0; i < matches.length; i++) {
|
|
2368
|
+
var match = matches[i];
|
|
2369
|
+
|
|
2370
|
+
if (host === match || isRegExp(match) && match.test(host)) {
|
|
2371
|
+
return true;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
return false;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
function isURL(url, options) {
|
|
2379
|
+
assertString(url);
|
|
2380
|
+
|
|
2381
|
+
if (!url || /[\s<>]/.test(url)) {
|
|
2382
|
+
return false;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
if (url.indexOf('mailto:') === 0) {
|
|
2386
|
+
return false;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
options = merge(options, default_url_options);
|
|
2390
|
+
|
|
2391
|
+
if (options.validate_length && url.length >= 2083) {
|
|
2392
|
+
return false;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
var protocol, auth, host, hostname, port, port_str, split, ipv6;
|
|
2396
|
+
split = url.split('#');
|
|
2397
|
+
url = split.shift();
|
|
2398
|
+
split = url.split('?');
|
|
2399
|
+
url = split.shift();
|
|
2400
|
+
split = url.split('://');
|
|
2401
|
+
|
|
2402
|
+
if (split.length > 1) {
|
|
2403
|
+
protocol = split.shift().toLowerCase();
|
|
2404
|
+
|
|
2405
|
+
if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
|
|
2406
|
+
return false;
|
|
2407
|
+
}
|
|
2408
|
+
} else if (options.require_protocol) {
|
|
2409
|
+
return false;
|
|
2410
|
+
} else if (url.substr(0, 2) === '//') {
|
|
2411
|
+
if (!options.allow_protocol_relative_urls) {
|
|
2412
|
+
return false;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
split[0] = url.substr(2);
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
url = split.join('://');
|
|
2419
|
+
|
|
2420
|
+
if (url === '') {
|
|
2421
|
+
return false;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
split = url.split('/');
|
|
2425
|
+
url = split.shift();
|
|
2426
|
+
|
|
2427
|
+
if (url === '' && !options.require_host) {
|
|
2428
|
+
return true;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
split = url.split('@');
|
|
2432
|
+
|
|
2433
|
+
if (split.length > 1) {
|
|
2434
|
+
if (options.disallow_auth) {
|
|
2435
|
+
return false;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
if (split[0] === '' || split[0].substr(0, 1) === ':') {
|
|
2439
|
+
return false;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
auth = split.shift();
|
|
2443
|
+
|
|
2444
|
+
if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {
|
|
2445
|
+
return false;
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
hostname = split.join('@');
|
|
2450
|
+
port_str = null;
|
|
2451
|
+
ipv6 = null;
|
|
2452
|
+
var ipv6_match = hostname.match(wrapped_ipv6);
|
|
2453
|
+
|
|
2454
|
+
if (ipv6_match) {
|
|
2455
|
+
host = '';
|
|
2456
|
+
ipv6 = ipv6_match[1];
|
|
2457
|
+
port_str = ipv6_match[2] || null;
|
|
2458
|
+
} else {
|
|
2459
|
+
split = hostname.split(':');
|
|
2460
|
+
host = split.shift();
|
|
2461
|
+
|
|
2462
|
+
if (split.length) {
|
|
2463
|
+
port_str = split.join(':');
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
if (port_str !== null) {
|
|
2468
|
+
port = parseInt(port_str, 10);
|
|
2469
|
+
|
|
2470
|
+
if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {
|
|
2471
|
+
return false;
|
|
2472
|
+
}
|
|
2473
|
+
} else if (options.require_port) {
|
|
2474
|
+
return false;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
if (!isIP(host) && !isFQDN(host, options) && (!ipv6 || !isIP(ipv6, 6))) {
|
|
2478
|
+
return false;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
host = host || ipv6;
|
|
2482
|
+
|
|
2483
|
+
if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {
|
|
2484
|
+
return false;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
if (options.host_blacklist && checkHost(host, options.host_blacklist)) {
|
|
2488
|
+
return false;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
return true;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2135
2494
|
function transformDescriptionNote(body) {
|
|
2136
2495
|
body.querySelectorAll('a.noot > div.noot_popup').forEach((e, index) => {
|
|
2137
2496
|
const contentElement = e.querySelector('.od-Al');
|
|
@@ -2146,7 +2505,7 @@ function transformDescriptionNote(body) {
|
|
|
2146
2505
|
const [termId, contentId] = [`dso-ozon-term-${id}`, `dso-ozon-content-${id}`];
|
|
2147
2506
|
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.setAttribute('id', termId);
|
|
2148
2507
|
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.setAttribute('aria-controls', contentId);
|
|
2149
|
-
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.setAttribute('aria-
|
|
2508
|
+
anchorElement === null || anchorElement === void 0 ? void 0 : anchorElement.setAttribute('aria-expanded', 'false');
|
|
2150
2509
|
contentElement === null || contentElement === void 0 ? void 0 : contentElement.setAttribute('id', contentId);
|
|
2151
2510
|
});
|
|
2152
2511
|
return body;
|
|
@@ -2165,7 +2524,7 @@ class OzonContentTransformer {
|
|
|
2165
2524
|
constructor(anchorClick) {
|
|
2166
2525
|
this.anchorClick = anchorClick;
|
|
2167
2526
|
this.domParser = new DOMParser();
|
|
2168
|
-
this.eventHandlers = [this.handleDescriptionNoteClick, this.handleContentAnchor];
|
|
2527
|
+
this.eventHandlers = [this.handleValidUrls, this.handleDescriptionNoteClick, this.handleContentAnchor];
|
|
2169
2528
|
}
|
|
2170
2529
|
setContent(content) {
|
|
2171
2530
|
this.content = transformers.reduce((c, t) => t(c), this.domParser.parseFromString(content, 'text/html').body).children;
|
|
@@ -2210,6 +2569,14 @@ class OzonContentTransformer {
|
|
|
2210
2569
|
}
|
|
2211
2570
|
return false;
|
|
2212
2571
|
}
|
|
2572
|
+
handleValidUrls(composedPath) {
|
|
2573
|
+
var _a;
|
|
2574
|
+
const containerIndex = composedPath.findIndex(this.isHostElement);
|
|
2575
|
+
if (containerIndex === -1) {
|
|
2576
|
+
return false;
|
|
2577
|
+
}
|
|
2578
|
+
return (_a = composedPath.slice(0, containerIndex)) === null || _a === void 0 ? void 0 : _a.some(e => e instanceof HTMLAnchorElement && isURL(e.href));
|
|
2579
|
+
}
|
|
2213
2580
|
isHostElement(value) {
|
|
2214
2581
|
return value instanceof HTMLElement && value.tagName === 'DSO-OZON-CONTENT';
|
|
2215
2582
|
}
|
|
@@ -2217,7 +2584,7 @@ class OzonContentTransformer {
|
|
|
2217
2584
|
|
|
2218
2585
|
const ozonContentCss = "dso-ozon-content{display:block}.noot{text-decoration:none}.noot:not(.dso-open)+.od-Al{display:none}.noot.dso-open+.od-Al{display:block}.noot+.od-Al{margin:4px 0;padding:8px 32px 8px 8px;position:relative}.noot+.od-Al>a{display:block;height:24px;position:absolute;right:0;text-align:center;top:0;width:24px}.noot+.od-Al>a::before{background:var(--dso-icon, var(--di-times-zwart)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:block}.noot+.od-Al{background-color:#ebf3e6}.od-Term{font-weight:700}.od-Definitie,.od-Tussenkop{font-style:italic}.od-Inhoud,.od-Inhoud>.od-Lijst,.od-IntIoRef,.od-Lidnr,.od-LiNr,.od-Opschrift,.od-Tussenkop{display:inline}.od-Al,.od-Lijstaanhef{margin-bottom:0.75em}.od-IntIoRef{border-bottom:1px dotted}.od-LiNummer{float:left;min-width:0.7em;padding-right:0.3em;text-align:right}.od-Figuur img{margin-left:25px;max-width:100%;height:auto}.od-Figuur .od-Bijschrift{font-size:0.75rem;margin-left:25px;padding-bottom:2.5rem}.od-Tabel thead{font-weight:600}.od-Kadertekst{border:1px solid #e5e5e5;margin-bottom:1rem;padding:1rem}";
|
|
2219
2586
|
|
|
2220
|
-
|
|
2587
|
+
let OzonContent = class extends HTMLElement {
|
|
2221
2588
|
constructor() {
|
|
2222
2589
|
super();
|
|
2223
2590
|
this.__registerHost();
|
|
@@ -2250,7 +2617,7 @@ const OzonContent = class extends HTMLElement {
|
|
|
2250
2617
|
|
|
2251
2618
|
const progressBarCss = ":host{display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.progress{background-color:#fff;border:1px solid #39870c;height:16px;margin-bottom:calc(16px + 1em);position:relative}.progress .progress-bar{background-color:#39870c;color:#fff;float:left;font-size:14px;height:100%;line-height:16px;text-align:center;width:0%}.progress .progress-bar>span:not(.sr-only){color:#191919;left:0;position:absolute;top:calc(100% + 8px)}";
|
|
2252
2619
|
|
|
2253
|
-
|
|
2620
|
+
let ProgressBar = class extends HTMLElement {
|
|
2254
2621
|
constructor() {
|
|
2255
2622
|
super();
|
|
2256
2623
|
this.__registerHost();
|
|
@@ -2268,7 +2635,7 @@ const ProgressBar = class extends HTMLElement {
|
|
|
2268
2635
|
|
|
2269
2636
|
const progressIndicatorCss = "*,*::after,*::before{box-sizing:border-box}.dso-progress-indicator-spinner{display:inline-block;margin:0;position:relative;vertical-align:middle}span.dso-progress-indicator-label{margin-left:16px;vertical-align:middle}:host{display:block}:host([block]){align-items:center;display:flex;justify-content:center}:host([size=small]) .dso-progress-indicator-spinner,:host(:not([size=medium]):not([size=large])) .dso-progress-indicator-spinner{height:24px;width:24px}:host([size=small]):host([block]),:host(:not([size=medium]):not([size=large])):host([block]){padding:12px 16px}:host([size=medium]) .dso-progress-indicator-spinner{height:32px;width:32px}:host([size=medium]):host([block]){padding:16px}:host([size=large]) .dso-progress-indicator-spinner{height:48px;width:48px}:host([size=large]):host([block]){padding:24px 16px}";
|
|
2270
2637
|
|
|
2271
|
-
|
|
2638
|
+
let Progressindicator = class extends HTMLElement {
|
|
2272
2639
|
constructor() {
|
|
2273
2640
|
super();
|
|
2274
2641
|
this.__registerHost();
|
|
@@ -2289,7 +2656,7 @@ const Progressindicator = class extends HTMLElement {
|
|
|
2289
2656
|
|
|
2290
2657
|
const selectableCss = ":host{display:block;padding:0 0 0 32px;position:relative}:host .dso-selectable-options{list-style:none;margin-top:8px;padding-left:0}:host .dso-selectable-options li+li{margin-top:8px}:host label{font-weight:400;line-height:24px;margin:0}:host input[type=checkbox][disabled]+label::before,:host input[type=checkbox][disabled]:active+label::before,:host input[type=checkbox][disabled]:focus+label::before,:host input[type=radio][disabled]+label::before,:host input[type=radio][disabled]:active+label::before,:host input[type=radio][disabled]:focus+label::before{background-color:#fff;box-shadow:0 0 0 2px #e5e5e5}:host input[type=checkbox],:host input[type=radio]{height:24px;left:0;margin:0;opacity:0;position:absolute;top:0;width:24px;z-index:1;zoom:1}:host input[type=checkbox]:not([disabled]),:host input[type=radio]:not([disabled]){cursor:pointer}:host input[type=checkbox]+label,:host input[type=radio]+label{display:inline;font-style:normal;padding-left:0}:host input[type=checkbox]+label::before,:host input[type=radio]+label::before{background:#fff;border:0;box-shadow:0 0 0 2px var(--dso-selectable-color, #275937);content:\"\";height:20px;left:2px;position:absolute;top:2px;width:20px}:host input[type=checkbox]:focus,:host input[type=radio]:focus{outline:0}:host input[type=checkbox]:focus+label::before,:host input[type=radio]:focus+label::before{box-shadow:0 0 0 3px var(--dso-selectable-color, #275937);height:18px;left:3px;top:3px;width:18px}:host input[type=checkbox]:active+label::before,:host input[type=checkbox].active+label::before,:host input[type=radio]:active+label::before,:host input[type=radio].active+label::before{background-color:#ebf3e6;box-shadow:0 0 0 1px #275937;height:22px;left:1px;top:1px;width:22px}:host input[type=checkbox]+label::before{border-radius:4px}:host input[type=checkbox]+label::after{background:transparent;content:\"\";left:6px;opacity:0;position:absolute;top:6px;zoom:1}:host input[type=checkbox]:checked+label::after,:host input[type=checkbox]:indeterminate+label::after{opacity:1}:host input[type=checkbox]:checked+label::after{border:solid;border-color:var(--dso-selectable-color, #39870c);border-top-color:transparent;border-width:0 0 3px 3px;height:8px;transform:rotate(-45deg);width:13px}:host input[type=checkbox]:indeterminate+label::after{background-color:var(--dso-selectable-color, #39870c);height:12px;width:12px}:host input[type=radio]+label::before{border-radius:50%}:host input[type=radio]+label::after{background-color:transparent;border-radius:50%;content:\"\";height:12px;left:6px;opacity:0;position:absolute;top:6px;width:12px;zoom:1}:host input[type=radio]:checked+label::after{background-color:var(--dso-selectable-color, #39870c);opacity:1}:host>dso-info{float:none;margin:8px 16px 0 -32px;width:calc(100% + 32px)}:host(:not(:last-child)){margin-bottom:8px}*,*::after,*::before{box-sizing:border-box}";
|
|
2291
2658
|
|
|
2292
|
-
|
|
2659
|
+
let Selectable = class extends HTMLElement {
|
|
2293
2660
|
constructor() {
|
|
2294
2661
|
super();
|
|
2295
2662
|
this.__registerHost();
|
|
@@ -2489,17 +2856,39 @@ function getBasePlacement(placement) {
|
|
|
2489
2856
|
return placement.split('-')[0];
|
|
2490
2857
|
}
|
|
2491
2858
|
|
|
2492
|
-
|
|
2859
|
+
// import { isHTMLElement } from './instanceOf';
|
|
2860
|
+
function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
|
|
2861
|
+
includeScale) {
|
|
2862
|
+
|
|
2493
2863
|
var rect = element.getBoundingClientRect();
|
|
2864
|
+
var scaleX = 1;
|
|
2865
|
+
var scaleY = 1; // FIXME:
|
|
2866
|
+
// `offsetWidth` returns an integer while `getBoundingClientRect`
|
|
2867
|
+
// returns a float. This results in `scaleX` or `scaleY` being
|
|
2868
|
+
// non-1 when it should be for elements that aren't a full pixel in
|
|
2869
|
+
// width or height.
|
|
2870
|
+
// if (isHTMLElement(element) && includeScale) {
|
|
2871
|
+
// const offsetHeight = element.offsetHeight;
|
|
2872
|
+
// const offsetWidth = element.offsetWidth;
|
|
2873
|
+
// // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
2874
|
+
// // Fallback to 1 in case both values are `0`
|
|
2875
|
+
// if (offsetWidth > 0) {
|
|
2876
|
+
// scaleX = rect.width / offsetWidth || 1;
|
|
2877
|
+
// }
|
|
2878
|
+
// if (offsetHeight > 0) {
|
|
2879
|
+
// scaleY = rect.height / offsetHeight || 1;
|
|
2880
|
+
// }
|
|
2881
|
+
// }
|
|
2882
|
+
|
|
2494
2883
|
return {
|
|
2495
|
-
width: rect.width,
|
|
2496
|
-
height: rect.height,
|
|
2497
|
-
top: rect.top,
|
|
2498
|
-
right: rect.right,
|
|
2499
|
-
bottom: rect.bottom,
|
|
2500
|
-
left: rect.left,
|
|
2501
|
-
x: rect.left,
|
|
2502
|
-
y: rect.top
|
|
2884
|
+
width: rect.width / scaleX,
|
|
2885
|
+
height: rect.height / scaleY,
|
|
2886
|
+
top: rect.top / scaleY,
|
|
2887
|
+
right: rect.right / scaleX,
|
|
2888
|
+
bottom: rect.bottom / scaleY,
|
|
2889
|
+
left: rect.left / scaleX,
|
|
2890
|
+
x: rect.left / scaleX,
|
|
2891
|
+
y: rect.top / scaleY
|
|
2503
2892
|
};
|
|
2504
2893
|
}
|
|
2505
2894
|
|
|
@@ -2754,6 +3143,10 @@ const arrow$1 = {
|
|
|
2754
3143
|
requiresIfExists: ['preventOverflow']
|
|
2755
3144
|
};
|
|
2756
3145
|
|
|
3146
|
+
function getVariation(placement) {
|
|
3147
|
+
return placement.split('-')[1];
|
|
3148
|
+
}
|
|
3149
|
+
|
|
2757
3150
|
var unsetSides = {
|
|
2758
3151
|
top: 'auto',
|
|
2759
3152
|
right: 'auto',
|
|
@@ -2780,6 +3173,7 @@ function mapToStyles(_ref2) {
|
|
|
2780
3173
|
var popper = _ref2.popper,
|
|
2781
3174
|
popperRect = _ref2.popperRect,
|
|
2782
3175
|
placement = _ref2.placement,
|
|
3176
|
+
variation = _ref2.variation,
|
|
2783
3177
|
offsets = _ref2.offsets,
|
|
2784
3178
|
position = _ref2.position,
|
|
2785
3179
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
@@ -2806,7 +3200,7 @@ function mapToStyles(_ref2) {
|
|
|
2806
3200
|
if (offsetParent === getWindow(popper)) {
|
|
2807
3201
|
offsetParent = getDocumentElement(popper);
|
|
2808
3202
|
|
|
2809
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3203
|
+
if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
|
|
2810
3204
|
heightProp = 'scrollHeight';
|
|
2811
3205
|
widthProp = 'scrollWidth';
|
|
2812
3206
|
}
|
|
@@ -2815,14 +3209,14 @@ function mapToStyles(_ref2) {
|
|
|
2815
3209
|
|
|
2816
3210
|
offsetParent = offsetParent;
|
|
2817
3211
|
|
|
2818
|
-
if (placement === top) {
|
|
3212
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
2819
3213
|
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
2820
3214
|
|
|
2821
3215
|
y -= offsetParent[heightProp] - popperRect.height;
|
|
2822
3216
|
y *= gpuAcceleration ? 1 : -1;
|
|
2823
3217
|
}
|
|
2824
3218
|
|
|
2825
|
-
if (placement === left) {
|
|
3219
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
2826
3220
|
sideX = right; // $FlowFixMe[prop-missing]
|
|
2827
3221
|
|
|
2828
3222
|
x -= offsetParent[widthProp] - popperRect.width;
|
|
@@ -2837,7 +3231,7 @@ function mapToStyles(_ref2) {
|
|
|
2837
3231
|
if (gpuAcceleration) {
|
|
2838
3232
|
var _Object$assign;
|
|
2839
3233
|
|
|
2840
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1)
|
|
3234
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2841
3235
|
}
|
|
2842
3236
|
|
|
2843
3237
|
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
@@ -2855,6 +3249,7 @@ function computeStyles(_ref4) {
|
|
|
2855
3249
|
|
|
2856
3250
|
var commonStyles = {
|
|
2857
3251
|
placement: getBasePlacement(state.placement),
|
|
3252
|
+
variation: getVariation(state.placement),
|
|
2858
3253
|
popper: state.elements.popper,
|
|
2859
3254
|
popperRect: state.rects.popper,
|
|
2860
3255
|
gpuAcceleration: gpuAcceleration
|
|
@@ -3157,10 +3552,6 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3157
3552
|
return clippingRect;
|
|
3158
3553
|
}
|
|
3159
3554
|
|
|
3160
|
-
function getVariation(placement) {
|
|
3161
|
-
return placement.split('-')[1];
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
3555
|
function computeOffsets(_ref) {
|
|
3165
3556
|
var reference = _ref.reference,
|
|
3166
3557
|
element = _ref.element,
|
|
@@ -3246,11 +3637,10 @@ function detectOverflow(state, options) {
|
|
|
3246
3637
|
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
3247
3638
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
3248
3639
|
var altContext = elementContext === popper ? reference : popper;
|
|
3249
|
-
var referenceElement = state.elements.reference;
|
|
3250
3640
|
var popperRect = state.rects.popper;
|
|
3251
3641
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
3252
3642
|
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
3253
|
-
var referenceClientRect = getBoundingClientRect(
|
|
3643
|
+
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
3254
3644
|
var popperOffsets = computeOffsets({
|
|
3255
3645
|
reference: referenceClientRect,
|
|
3256
3646
|
element: popperRect,
|
|
@@ -3727,16 +4117,24 @@ function getNodeScroll(node) {
|
|
|
3727
4117
|
}
|
|
3728
4118
|
}
|
|
3729
4119
|
|
|
4120
|
+
function isElementScaled(element) {
|
|
4121
|
+
var rect = element.getBoundingClientRect();
|
|
4122
|
+
var scaleX = rect.width / element.offsetWidth || 1;
|
|
4123
|
+
var scaleY = rect.height / element.offsetHeight || 1;
|
|
4124
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
4125
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
3730
4126
|
// Composite means it takes into account transforms as well as layout.
|
|
3731
4127
|
|
|
4128
|
+
|
|
3732
4129
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
3733
4130
|
if (isFixed === void 0) {
|
|
3734
4131
|
isFixed = false;
|
|
3735
4132
|
}
|
|
3736
4133
|
|
|
4134
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
4135
|
+
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3737
4136
|
var documentElement = getDocumentElement(offsetParent);
|
|
3738
4137
|
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
3739
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3740
4138
|
var scroll = {
|
|
3741
4139
|
scrollLeft: 0,
|
|
3742
4140
|
scrollTop: 0
|
|
@@ -3890,7 +4288,8 @@ function popperGenerator(generatorOptions) {
|
|
|
3890
4288
|
var isDestroyed = false;
|
|
3891
4289
|
var instance = {
|
|
3892
4290
|
state: state,
|
|
3893
|
-
setOptions: function setOptions(
|
|
4291
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
4292
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
3894
4293
|
cleanupModifierEffects();
|
|
3895
4294
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
3896
4295
|
state.scrollParents = {
|
|
@@ -4043,7 +4442,7 @@ const tooltipCss = ":host(:not([hidden])){display:block}*,*::after,*::before{box
|
|
|
4043
4442
|
|
|
4044
4443
|
// Keep const in sync with $tooltip-transition-duration in @dso-toolkit/sources/tooltip.scss tooltip_root() mixin
|
|
4045
4444
|
const transitionDuration = 150;
|
|
4046
|
-
|
|
4445
|
+
let Tooltip = class extends HTMLElement {
|
|
4047
4446
|
constructor() {
|
|
4048
4447
|
super();
|
|
4049
4448
|
this.__registerHost();
|