@dso-toolkit/core 100.3.0 → 100.3.1
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 +5 -5
- package/dist/bundle/dso-action-list-item.js +1 -1
- package/dist/bundle/dso-advanced-select.js +5 -5
- package/dist/bundle/dso-alert.js +1 -1
- package/dist/bundle/dso-annotation-activiteit.js +4 -4
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +4 -4
- 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 +4 -4
- package/dist/bundle/dso-attachments-counter.js +1 -1
- package/dist/bundle/dso-autosuggest.js +3 -3
- package/dist/bundle/dso-badge.js +1 -1
- package/dist/bundle/dso-banner.js +1 -1
- package/dist/bundle/dso-card.js +1 -1
- package/dist/bundle/dso-document-card.js +1 -1
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu-item.js +1 -1
- package/dist/bundle/dso-dropdown-menu.js +3 -3
- package/dist/bundle/dso-header.js +3 -3
- package/dist/bundle/dso-history-item.js +1 -1
- package/dist/bundle/dso-icon-button.js +1 -1
- package/dist/bundle/dso-icon.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-input-range.js +2 -2
- package/dist/bundle/dso-label.js +1 -1
- package/dist/bundle/dso-legend-group.js +3 -3
- package/dist/bundle/dso-legend-item.js +6 -6
- package/dist/bundle/dso-legend.js +4 -4
- package/dist/bundle/dso-list-button.js +7 -7
- package/dist/bundle/dso-logo.js +1 -1
- package/dist/bundle/dso-map-base-layers.js +7 -7
- package/dist/bundle/dso-map-controls.js +4 -4
- package/dist/bundle/dso-map-layer-object.js +2 -2
- package/dist/bundle/dso-map-layer.js +2 -2
- package/dist/bundle/dso-map-message.js +3 -3
- package/dist/bundle/dso-map-overlays.js +7 -7
- package/dist/bundle/dso-mark-bar.js +3 -3
- package/dist/bundle/dso-modal.js +1 -1
- package/dist/bundle/dso-onboarding-tip.js +3 -3
- package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
- package/dist/bundle/dso-ozon-content.js +1 -1
- package/dist/bundle/dso-pagination.js +2 -2
- package/dist/bundle/dso-panel.js +1 -1
- package/dist/bundle/dso-plekinfo-card.js +2 -2
- package/dist/bundle/dso-progress-indicator.js +1 -1
- package/dist/bundle/dso-project-item.js +4 -4
- package/dist/bundle/dso-responsive-element.js +1 -1
- package/dist/bundle/dso-scrollable.js +1 -1
- package/dist/bundle/dso-segmented-button.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 +4 -4
- package/dist/bundle/dso-skiplink.js +2 -2
- package/dist/bundle/dso-slide-toggle.js +1 -1
- package/dist/bundle/dso-survey-rating.js +5 -5
- package/dist/bundle/dso-table.js +1 -1
- package/dist/bundle/dso-tabs.js +1 -1
- package/dist/bundle/dso-tijdreis-banner.js +2 -2
- package/dist/bundle/dso-tree-view.js +3 -3
- package/dist/bundle/dso-viewer-grid.js +2 -2
- package/dist/bundle/dsot-document-component-demo.js +16 -16
- package/dist/bundle/{p-BUMxb_Ev.js → p-3mY5bRq3.js} +4 -4
- package/dist/bundle/{p-euQGyPM7.js → p-BPxWl5Jg.js} +12 -12
- package/dist/bundle/{p-BdIkNKXy.js → p-BcoGSCi2.js} +1 -1
- package/dist/bundle/{p-jgC8pS3f.js → p-BeyBvNPm.js} +3 -3
- package/dist/bundle/{p-DCB4WOS7.js → p-BhW3MSGZ.js} +4 -4
- package/dist/bundle/{p-DG8Kv-AI.js → p-Bj6TmNEh.js} +3 -2
- package/dist/bundle/{p-nIEuIxSJ.js → p-BydRjBUc.js} +4 -4
- package/dist/bundle/{p-O1XEOqgC.js → p-C78OzjGD.js} +1 -1
- package/dist/bundle/{p-CfRHoykw.js → p-CIfxp928.js} +2 -2
- package/dist/bundle/{p-CwsxKEZu.js → p-CMm0xWy5.js} +1 -1
- package/dist/bundle/{p-DPvJlcnu.js → p-COI1m0uI.js} +3 -3
- package/dist/bundle/{p-OmU7Yv3A.js → p-Ci81TOhm.js} +1 -1
- package/dist/bundle/{p-jornOoTk.js → p-Cy1s6Fqo.js} +6 -6
- package/dist/bundle/{p-CSFTUYxS.js → p-Cz4DEkYY.js} +3 -3
- package/dist/bundle/{p-Ba4T-27v.js → p-D8J4Z2LD.js} +8 -8
- package/dist/bundle/{p-i3p8engD.js → p-DSn98k7j.js} +2 -2
- package/dist/bundle/{p-CFU9xZQK.js → p-DTx5uLrL.js} +2 -2
- package/dist/bundle/{p-hkT73OMa.js → p-LAIYa8JB.js} +4 -4
- package/dist/bundle/{p-GK7sI8Gb.js → p-TaOl3xYb.js} +3 -3
- package/dist/bundle/{p-C_h0uNbd.js → p-nBjxlgfX.js} +5 -5
- package/dist/bundle/{p-ClxcNLxu.js → p-wroz5qbN.js} +7 -7
- package/dist/cjs/dso-alert_7.cjs.entry.js +8 -8
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon_2.cjs.entry.js +4 -3
- package/dist/cjs/dso-info_3.cjs.entry.js +3 -3
- package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
- package/dist/cjs/dso-label_3.cjs.entry.js +3 -3
- package/dist/cjs/dso-legend-group.cjs.entry.js +1 -1
- package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-legend.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-base-layers.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-map-message.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +1 -1
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js +1 -1
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
- package/dist/cjs/dso-scrollable.cjs.entry.js +3 -3
- package/dist/cjs/dso-segmented-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-shopping-cart.cjs.entry.js +2 -2
- package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
- package/dist/cjs/dso-survey-rating.cjs.entry.js +2 -2
- package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dso-tijdreis-banner.cjs.entry.js +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
- package/dist/collection/components/alert/alert.js +5 -5
- package/dist/collection/components/dropdown-menu/dropdown-menu.css +1 -0
- package/dist/collection/components/header/header.css +1 -0
- package/dist/collection/components/icon/icon.js +3 -2
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info/info.js +1 -1
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/input-range/input-range.js +2 -2
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/legend/legend-group/legend-group.js +1 -1
- package/dist/collection/components/legend/legend-item/legend-item.js +1 -1
- package/dist/collection/components/legend/legend.js +1 -1
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/logo/logo.js +1 -1
- package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-layer/components/map-layer-object.js +1 -1
- package/dist/collection/components/map-layer/map-layer.js +1 -1
- package/dist/collection/components/map-message/map-message.js +2 -2
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +1 -1
- package/dist/collection/components/ozon-content/ozon-content.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/project-item/project-item.js +1 -1
- package/dist/collection/components/responsive-element/responsive-element.js +1 -1
- package/dist/collection/components/scrollable/scrollable.css +1 -1
- package/dist/collection/components/scrollable/scrollable.js +2 -2
- package/dist/collection/components/segmented-button/segmented-button.js +1 -1
- package/dist/collection/components/selectable/selectable.js +1 -1
- package/dist/collection/components/shopping-cart/shopping-cart.js +2 -2
- package/dist/collection/components/skiplink/skiplink.js +1 -1
- package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
- package/dist/collection/components/survey-rating/survey-rating.js +2 -2
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
- package/dist/components/alert.js +1 -1
- package/dist/components/dso-dropdown-menu.js +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-input-range.js +1 -1
- package/dist/components/dso-legend-group.js +1 -1
- package/dist/components/dso-legend-item.js +1 -1
- package/dist/components/dso-legend.js +1 -1
- package/dist/components/dso-list-button.js +1 -1
- package/dist/components/dso-logo.js +1 -1
- package/dist/components/dso-map-base-layers.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-map-message.js +1 -1
- package/dist/components/dso-map-overlays.js +1 -1
- package/dist/components/dso-mark-bar.js +1 -1
- package/dist/components/dso-onboarding-tip.js +1 -1
- package/dist/components/dso-plekinfo-card.js +1 -1
- package/dist/components/dso-project-item.js +1 -1
- package/dist/components/dso-segmented-button.js +1 -1
- package/dist/components/dso-shopping-cart.js +1 -1
- package/dist/components/dso-skiplink.js +1 -1
- package/dist/components/dso-survey-rating.js +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tijdreis-banner.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/modal.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/progress-indicator.js +1 -1
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +1 -1
- package/dist/components/selectable.js +1 -1
- package/dist/components/slide-toggle.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-a3750b36.entry.js → p-0085311a.entry.js} +1 -1
- package/dist/dso-toolkit/{p-b4a169c3.entry.js → p-0099ff32.entry.js} +1 -1
- package/dist/dso-toolkit/{p-09531c36.entry.js → p-0117fba0.entry.js} +1 -1
- package/dist/dso-toolkit/{p-df3c0dad.entry.js → p-02f97f93.entry.js} +1 -1
- package/dist/dso-toolkit/{p-0061cf42.entry.js → p-0438b8cb.entry.js} +1 -1
- package/dist/dso-toolkit/{p-f273babf.entry.js → p-0f019b7c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2381e415.entry.js → p-16288a6a.entry.js} +1 -1
- package/dist/dso-toolkit/{p-e114e967.entry.js → p-301cb792.entry.js} +1 -1
- package/dist/dso-toolkit/p-3098df1c.entry.js +1 -0
- package/dist/dso-toolkit/{p-126561a7.entry.js → p-342636b2.entry.js} +1 -1
- package/dist/dso-toolkit/{p-96c786ed.entry.js → p-3ce055f8.entry.js} +1 -1
- package/dist/dso-toolkit/{p-1abdd4e4.entry.js → p-460e04c3.entry.js} +1 -1
- package/dist/dso-toolkit/{p-088a1cf9.entry.js → p-55a160ad.entry.js} +1 -1
- package/dist/dso-toolkit/{p-634b0a98.entry.js → p-58978006.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ac4e9345.entry.js → p-610341c7.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2d79df59.entry.js → p-6a42dae9.entry.js} +1 -1
- package/dist/dso-toolkit/{p-6ba25c12.entry.js → p-7eadab64.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3c4477df.entry.js → p-918d8967.entry.js} +1 -1
- package/dist/dso-toolkit/p-947abc8e.entry.js +1 -0
- package/dist/dso-toolkit/p-a639c227.entry.js +1 -0
- package/dist/dso-toolkit/{p-294f153d.entry.js → p-a93cfad8.entry.js} +1 -1
- package/dist/dso-toolkit/{p-85a18053.entry.js → p-ab498200.entry.js} +1 -1
- package/dist/dso-toolkit/{p-288ad631.entry.js → p-acb7b5c5.entry.js} +1 -1
- package/dist/dso-toolkit/{p-9ca7e45e.entry.js → p-b6a747b3.entry.js} +1 -1
- package/dist/dso-toolkit/{p-356ca90c.entry.js → p-b83b2fa7.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3e1e08b2.entry.js → p-c525f97c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-46d970fe.entry.js → p-d92b4f7b.entry.js} +1 -1
- package/dist/dso-toolkit/{p-8f408a07.entry.js → p-de3ece98.entry.js} +1 -1
- package/dist/dso-toolkit/{p-65c6df97.entry.js → p-e9bcbf0c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-79af2ba3.entry.js → p-ec50e32d.entry.js} +1 -1
- package/dist/dso-toolkit/{p-90a4e408.entry.js → p-ecc3eaab.entry.js} +1 -1
- package/dist/dso-toolkit/{p-4b81e58d.entry.js → p-f6e9a1b4.entry.js} +1 -1
- package/dist/dso-toolkit/{p-bd1ce8d2.entry.js → p-f9490a3f.entry.js} +1 -1
- package/dist/dso-toolkit/{p-f5fd3664.entry.js → p-fb2eb060.entry.js} +1 -1
- package/dist/esm/dso-alert_7.entry.js +9 -9
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-icon_2.entry.js +4 -3
- package/dist/esm/dso-info_3.entry.js +3 -3
- package/dist/esm/dso-input-range.entry.js +2 -2
- package/dist/esm/dso-label_3.entry.js +3 -3
- package/dist/esm/dso-legend-group.entry.js +1 -1
- package/dist/esm/dso-legend-item.entry.js +1 -1
- package/dist/esm/dso-legend.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-logo.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.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-map-message.entry.js +2 -2
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-mark-bar.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js +1 -1
- package/dist/esm/dso-onboarding-tip.entry.js +1 -1
- package/dist/esm/dso-plekinfo-card.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-project-item.entry.js +1 -1
- package/dist/esm/dso-responsive-element.entry.js +1 -1
- package/dist/esm/dso-scrollable.entry.js +3 -3
- package/dist/esm/dso-segmented-button.entry.js +1 -1
- package/dist/esm/dso-shopping-cart.entry.js +2 -2
- package/dist/esm/dso-skiplink.entry.js +1 -1
- package/dist/esm/dso-survey-rating.entry.js +2 -2
- package/dist/esm/dso-tabs.entry.js +1 -1
- package/dist/esm/dso-tijdreis-banner.entry.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +2 -2
- package/package.json +3 -3
- package/dist/dso-toolkit/p-32fba74e.entry.js +0 -1
- package/dist/dso-toolkit/p-591d65b2.entry.js +0 -1
- package/dist/dso-toolkit/p-d7defe72.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as o,r as s,d,F as i,g as l}from"./p-CieBNbUH.js";import{c as a}from"./p-ChV9xqsO.js";import{g as e}from"./p-BWkWD1Z2.js";import{i as n}from"./p-CCOI5nUo.js";import{v as t}from"./p-CK3_k8jD.js";const r=()=>o("div",{class:"dso-body",tabIndex:0},o("slot",{name:"body"})),c=()=>o("div",{class:"dso-footer"},o("slot",{name:"footer"})),m=({modalTitle:s,closable:d,ariaId:i,text:l,dsoClose:a})=>s?o("div",{class:"dso-header"},o("h2",{id:i},s),d&&o("dso-icon-button",{id:"close-modal",icon:"cross",variant:"tertiary",label:l("close"),onDsoClick:o=>a.emit({originalEvent:o})})):o("span",{class:"sr-only",id:i},l("dialog")),b={en:{"dso-modal":{close:"Close",dialog:"Dialog"}},nl:{"dso-modal":{close:"Sluiten",dialog:"Dialoog"}}},h=class{constructor(o){s(this,o),this.dsoClose=d(this,"dsoClose",7),this.startedMouseDownOutsideDialog=!1,this.endedMouseUpOutsideDialog=!1,this.narrowViewBreakpoint=768,this.mediaCondition=`(min-width: ${this.narrowViewBreakpoint}px)`,this.ariaId=t(),this.narrowView=window.innerWidth<this.narrowViewBreakpoint,this.dialogRole="dialog",this.returnFocus=void 0,this.closable=!1,this.text=n((()=>this.host),b),this.changeListener=o=>this.narrowView=!o.matches,this.blockEscapeKey=o=>{"Escape"===o.key&&(o.preventDefault(),this.closable&&this.dsoClose.emit({originalEvent:o}))}}get hasFooter(){return null!==this.host.querySelector("[slot='footer']")}componentDidLoad(){if(this.htmlDialogElement?.isConnected){const o=e();o instanceof HTMLElement&&(this.returnFocusElement=o),this.htmlDialogElement.showModal()}}connectedCallback(){window.matchMedia(this.mediaCondition).addEventListener("change",this.changeListener)}disconnectedCallback(){window.matchMedia(this.mediaCondition).removeEventListener("change",this.changeListener),this.htmlDialogElement?.close(),!1!==this.returnFocus&&(this.returnFocus??this.returnFocusElement)?.focus()}handleDialogMouseDown(o){this.startedMouseDownOutsideDialog=o.target===this.htmlDialogElement}handleDialogMouseUp(o){this.endedMouseUpOutsideDialog=o.target===this.htmlDialogElement}handleDialogClick(o){this.closable&&this.startedMouseDownOutsideDialog&&this.endedMouseUpOutsideDialog&&o.target===this.htmlDialogElement&&this.dsoClose.emit({originalEvent:o})}render(){return o("dialog",{key:"
|
|
1
|
+
import{h as o,r as s,d,F as i,g as l}from"./p-CieBNbUH.js";import{c as a}from"./p-ChV9xqsO.js";import{g as e}from"./p-BWkWD1Z2.js";import{i as n}from"./p-CCOI5nUo.js";import{v as t}from"./p-CK3_k8jD.js";const r=()=>o("div",{class:"dso-body",tabIndex:0},o("slot",{name:"body"})),c=()=>o("div",{class:"dso-footer"},o("slot",{name:"footer"})),m=({modalTitle:s,closable:d,ariaId:i,text:l,dsoClose:a})=>s?o("div",{class:"dso-header"},o("h2",{id:i},s),d&&o("dso-icon-button",{id:"close-modal",icon:"cross",variant:"tertiary",label:l("close"),onDsoClick:o=>a.emit({originalEvent:o})})):o("span",{class:"sr-only",id:i},l("dialog")),b={en:{"dso-modal":{close:"Close",dialog:"Dialog"}},nl:{"dso-modal":{close:"Sluiten",dialog:"Dialoog"}}},h=class{constructor(o){s(this,o),this.dsoClose=d(this,"dsoClose",7),this.startedMouseDownOutsideDialog=!1,this.endedMouseUpOutsideDialog=!1,this.narrowViewBreakpoint=768,this.mediaCondition=`(min-width: ${this.narrowViewBreakpoint}px)`,this.ariaId=t(),this.narrowView=window.innerWidth<this.narrowViewBreakpoint,this.dialogRole="dialog",this.returnFocus=void 0,this.closable=!1,this.text=n((()=>this.host),b),this.changeListener=o=>this.narrowView=!o.matches,this.blockEscapeKey=o=>{"Escape"===o.key&&(o.preventDefault(),this.closable&&this.dsoClose.emit({originalEvent:o}))}}get hasFooter(){return null!==this.host.querySelector("[slot='footer']")}componentDidLoad(){if(this.htmlDialogElement?.isConnected){const o=e();o instanceof HTMLElement&&(this.returnFocusElement=o),this.htmlDialogElement.showModal()}}connectedCallback(){window.matchMedia(this.mediaCondition).addEventListener("change",this.changeListener)}disconnectedCallback(){window.matchMedia(this.mediaCondition).removeEventListener("change",this.changeListener),this.htmlDialogElement?.close(),!1!==this.returnFocus&&(this.returnFocus??this.returnFocusElement)?.focus()}handleDialogMouseDown(o){this.startedMouseDownOutsideDialog=o.target===this.htmlDialogElement}handleDialogMouseUp(o){this.endedMouseUpOutsideDialog=o.target===this.htmlDialogElement}handleDialogClick(o){this.closable&&this.startedMouseDownOutsideDialog&&this.endedMouseUpOutsideDialog&&o.target===this.htmlDialogElement&&this.dsoClose.emit({originalEvent:o})}render(){return o("dialog",{key:"88fdbf3daa75f55ba65d34e9978112db6659a83c",class:a("dso-modal",{fullscreen:this.fullscreen}),role:this.dialogRole??void 0,"aria-modal":"true","aria-labelledby":this.ariaId,ref:o=>this.htmlDialogElement=o,onMouseDown:o=>this.handleDialogMouseDown(o),onMouseUp:o=>this.handleDialogMouseUp(o),onClick:o=>this.handleDialogClick(o),onKeyDown:o=>this.blockEscapeKey(o)},o("div",{key:"0628cd928e8ad3457fea7c401a9d4a9d132eae4a",class:"dso-dialog"},this.narrowView?o("dso-scrollable",{class:"narrow"},o("div",{class:"modal-scrollable"},o(m,{modalTitle:this.modalTitle,closable:this.closable,ariaId:this.ariaId,text:this.text,dsoClose:this.dsoClose}),o(r,null),this.hasFooter&&o(c,null))):o(i,null,o(m,{modalTitle:this.modalTitle,closable:this.closable,ariaId:this.ariaId,text:this.text,dsoClose:this.dsoClose}),o("dso-scrollable",null,o(r,null)),this.hasFooter&&o(c,null))))}get host(){return l(this)}};h.style="@keyframes ModalFadeIn{0%{opacity:0}100%{opacity:1}}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host dialog.fullscreen{inline-size:100dvi;max-inline-size:calc(100% - 32px);block-size:100dvb}:host dialog.fullscreen .dso-dialog{display:flex;flex-direction:column;inline-size:100%;block-size:100%}:host dialog.fullscreen .dso-footer{flex-shrink:0}:host dialog.fullscreen dso-scrollable{flex:1 1 auto;min-block-size:0}@media screen and (max-width: 480px){:host dialog{inline-size:100dvi;max-inline-size:calc(100% - 32px);block-size:100dvb}:host dialog .dso-dialog{display:flex;flex-direction:column;inline-size:100%;block-size:100%}:host dialog .dso-footer{flex-shrink:0}:host dialog dso-scrollable{flex:1 1 auto;min-block-size:0}}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip-path:rect(0 0 0 0)}button{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}button[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}.dso-modal{--_dso-button-float-tertiary:inline-start;--_dso-button-padding-block-tertiary:14px;overflow:visible;padding:0;border:0;inline-size:var(--_dso-modal-inline-size, fit-content);max-inline-size:min(100% - 32px, var(--_dso-modal-inline-size, 640px));margin:var(--_dso-modal-margin, auto)}@media screen and (max-width: 767px){.dso-modal{--_dso-button-inline-size:100%;--_dso-button-after-button-margin-inline-start:0;--_dso-button-after-button-margin-block-start:8px;--_dso-button-text-align:center}.dso-modal .dso-dialog{display:flex;flex-direction:column}.dso-modal>.dso-dialog>dso-scrollable{flex:1 1 auto}.dso-modal .modal-scrollable{display:flex;flex-direction:column;min-block-size:100%}.dso-modal .dso-header,.dso-modal .dso-footer{flex:0 0 auto}.dso-modal .dso-body{flex:1 1 auto}}.dso-modal::backdrop{background-color:rgba(255, 255, 255, 0.6)}.dso-modal .dso-dialog{display:grid;grid-template-rows:auto minmax(0, 1fr) auto;inline-size:var(--_dso-modal-dialog-inline-size, 640px);max-inline-size:100%;max-block-size:calc(100dvb - 32px);margin-block-start:var(--_dso-modal-dialog-margin-block-start, 0);margin-inline-start:var(--_dso-modal-dialog-margin-inline-start, auto);margin-inline-end:var(--_dso-modal-dialog-margin-inline-end, auto);background-color:#fff;opacity:1;box-shadow:0 8px 24px 0 rgba(25, 25, 25, 0.4);animation:200ms ease-out 0s 1 ModalFadeIn}@media screen and (max-height: 380px){.dso-modal .dso-dialog{min-block-size:220px}}.dso-modal .dso-header{position:relative;padding:16px;border-block-end:1px solid #ccc}.dso-modal .dso-header h2{max-inline-size:calc(100% - 24px);margin:0;color:#275937}.dso-modal .dso-header dso-icon-button{position:absolute;inset-block-start:22px;inset-inline-end:16px}@media screen and (max-height: 380px){.dso-modal .dso-header{padding-block:8px;padding-inline:16px}.dso-modal .dso-header dso-icon-button{inset-block-start:14px}}.dso-modal>.dso-dialog>dso-scrollable{min-block-size:6.5rem}.dso-modal>.dso-dialog>dso-scrollable.narrow{max-block-size:calc(100dvb - 32px)}.dso-modal>.dso-dialog>dso-scrollable .dso-body p{margin-block:0 var(--_dso-rich-content-margin-block, 16px);margin-inline:0}.dso-modal>.dso-dialog>dso-scrollable .dso-body ul,.dso-modal>.dso-dialog>dso-scrollable .dso-body ol{margin-block-end:16px}.dso-modal>.dso-dialog>dso-scrollable .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),.dso-modal>.dso-dialog>dso-scrollable .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list){padding-inline-start:24px}.dso-modal>.dso-dialog>dso-scrollable .dso-body ul ul,.dso-modal>.dso-dialog>dso-scrollable .dso-body ul ol,.dso-modal>.dso-dialog>dso-scrollable .dso-body ol ul,.dso-modal>.dso-dialog>dso-scrollable .dso-body ol ol{margin-block-end:0}.dso-modal>.dso-dialog>dso-scrollable .dso-body pre{margin-block:0 16px;margin-inline:0}.dso-modal>.dso-dialog>dso-scrollable .dso-body blockquote{padding-block:16px;padding-inline:1.5rem}.dso-modal>.dso-dialog>dso-scrollable .dso-body dso-highlight-box{margin-block-end:1.5rem}.dso-modal>.dso-dialog>dso-scrollable .dso-body img{block-size:auto;max-inline-size:100%}.dso-modal>.dso-dialog>dso-scrollable .dso-body{padding:32px}@media screen and (max-height: 380px){.dso-modal .dso-body{padding-block:16px;padding-inline:24px}}.dso-modal .dso-body:focus-visible{outline:none}.dso-modal .dso-footer{min-block-size:80px;padding-block:16px;padding-inline:32px;text-align:end}@media screen and (min-width: 768px){.dso-modal .dso-footer .dso-primary+.dso-secondary,.dso-modal .dso-footer .dso-secondary+.dso-secondary,.dso-modal .dso-footer .dso-tertiary+.dso-secondary{margin-inline-start:16px}.dso-modal .dso-footer .dso-primary+.dso-tertiary,.dso-modal .dso-footer .dso-secondary+.dso-tertiary,.dso-modal .dso-footer .dso-tertiary+.dso-tertiary{margin-inline-start:0}}@media screen and (max-height: 380px){.dso-modal .dso-footer{min-block-size:auto;overflow:auto;padding-block:8px;padding-inline:32px}}";export{h as dso_modal}
|