@dso-toolkit/core 99.4.0 → 100.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/dso-advanced-select.js +3 -3
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu.js +51 -12
- package/dist/bundle/dso-header.js +51 -12
- package/dist/bundle/dso-highlight-box.js +1 -1
- package/dist/bundle/dso-info.js +1 -1
- package/dist/bundle/dso-list-button.js +2 -2
- package/dist/bundle/dso-map-base-layers.js +2 -2
- package/dist/bundle/dso-map-overlays.js +2 -2
- package/dist/bundle/dso-ozon-content.js +1 -1
- package/dist/bundle/dso-selectable.js +1 -1
- package/dist/bundle/dso-tree-view.js +1 -1
- package/dist/bundle/dso-viewer-grid.js +3 -3
- package/dist/bundle/dsot-document-component-demo.js +4 -4
- package/dist/bundle/index.js +0 -2
- package/dist/bundle/p-0mKOaHii.js +48 -0
- package/dist/bundle/{p-BHoewcI-.js → p-BSvOi0zH.js} +4 -4
- package/dist/bundle/{p-DtOWRu1L.js → p-ClW9x8PR.js} +1 -1
- package/dist/bundle/{p-BoPUWtZk.js → p-DoZnyoat.js} +47 -28
- package/dist/cjs/dso-advanced-select.cjs.entry.js +3 -3
- package/dist/cjs/dso-alert_7.cjs.entry.js +4 -4
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +46 -27
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +51 -12
- package/dist/cjs/dso-header.cjs.entry.js +51 -12
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_3.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +3 -3
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/advanced-select/advanced-select.css +12 -11
- package/dist/collection/components/advanced-select/advanced-select.js +2 -2
- package/dist/collection/components/document-component/document-component-heading.js +35 -19
- package/dist/collection/components/document-component/document-component.css +1 -0
- package/dist/collection/components/document-component/document-component.js +16 -13
- package/dist/collection/components/document-component-demo/document-component.demo.js +2 -2
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +51 -12
- package/dist/collection/components/header/header.js +51 -12
- package/dist/collection/components/highlight-box/highlight-box.css +2 -4
- package/dist/collection/components/info/info.css +10 -17
- package/dist/collection/components/ozon-content/nodes/int-io-ref.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/int-ref.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/noot.node.js +1 -1
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.css +36 -16
- package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
- package/dist/components/document-component.js +1 -1
- package/dist/components/dso-advanced-select.js +1 -1
- package/dist/components/dso-dropdown-menu.js +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-highlight-box.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/dsot-document-component-demo.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/ozon-content.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-7a852b15.entry.js → p-4a971ee1.entry.js} +1 -1
- package/dist/dso-toolkit/{p-441b88f3.entry.js → p-4dacadca.entry.js} +1 -1
- package/dist/dso-toolkit/p-5455f456.entry.js +1 -0
- package/dist/dso-toolkit/p-56f5668a.entry.js +1 -0
- package/dist/dso-toolkit/p-72c632b1.entry.js +1 -0
- package/dist/dso-toolkit/{p-0083183c.entry.js → p-84cda47a.entry.js} +1 -1
- package/dist/dso-toolkit/p-b35b9bf4.entry.js +1 -0
- package/dist/dso-toolkit/{p-e3826220.entry.js → p-b6d829b6.entry.js} +2 -2
- package/dist/dso-toolkit/p-dce72b97.entry.js +1 -0
- package/dist/dso-toolkit/p-e0a1e35a.entry.js +1 -0
- package/dist/esm/dso-advanced-select.entry.js +3 -3
- package/dist/esm/dso-alert_7.entry.js +4 -4
- package/dist/esm/dso-annotation-locatie_2.entry.js +46 -27
- package/dist/esm/dso-dropdown-menu.entry.js +51 -12
- package/dist/esm/dso-header.entry.js +51 -12
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-info_3.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +3 -3
- package/dist/esm/dsot-document-component-demo.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/document-component/document-component-heading.d.ts +2 -2
- package/dist/types/components/document-component/document-component.d.ts +5 -2
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +2 -0
- package/dist/types/components/header/header.d.ts +2 -0
- package/dist/types/components.d.ts +7 -105
- package/package.json +3 -5
- package/dist/bundle/dso-tooltip.d.ts +0 -11
- package/dist/bundle/dso-tooltip.js +0 -2119
- package/dist/bundle/p-CAqSxnd4.js +0 -48
- package/dist/cjs/dso-tooltip.cjs.entry.js +0 -2080
- package/dist/collection/components/tooltip/tooltip.css +0 -114
- package/dist/collection/components/tooltip/tooltip.js +0 -448
- package/dist/components/dso-tooltip.d.ts +0 -11
- package/dist/components/dso-tooltip.js +0 -1
- package/dist/dso-toolkit/p-2149be85.entry.js +0 -1
- package/dist/dso-toolkit/p-2e501bb0.entry.js +0 -1
- package/dist/dso-toolkit/p-5cdda2dd.entry.js +0 -1
- package/dist/dso-toolkit/p-6e027a66.entry.js +0 -1
- package/dist/dso-toolkit/p-87a19b2e.entry.js +0 -1
- package/dist/dso-toolkit/p-8d4cce03.entry.js +0 -1
- package/dist/dso-toolkit/p-cfb08b19.entry.js +0 -1
- package/dist/esm/dso-tooltip.entry.js +0 -2078
- package/dist/types/components/tooltip/tooltip.d.ts +0 -61
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
|
6
6
|
const defineCustomElements = async (win, options) => {
|
|
7
7
|
if (typeof window === 'undefined') return undefined;
|
|
8
8
|
await appGlobals.globalScripts();
|
|
9
|
-
return index.bootstrapLazy(JSON.parse("[[\"dsot-document-component-demo.cjs\",[[2,\"dsot-document-component-demo\",{\"showCanvas\":[516,\"show-canvas\"],\"showBesluitversie\":[4,\"show-besluitversie\"],\"jsonFile\":[1,\"json-file\"],\"openDefault\":[4,\"open-default\"],\"mode\":[513],\"ozonContentUrlResolver\":[16],\"ozonContentBegripResolver\":[16],\"response\":[32],\"document\":[32],\"openOrClosed\":[32],\"openedAnnotation\":[32],\"filtered\":[32],\"notApplicable\":[32],\"activeAnnotationSelectables\":[32]},null,{\"jsonFile\":[{\"jsonFileWatcher\":0}],\"openDefault\":[{\"openDefaultWatcher\":0}]}]]],[\"dso-accordion-section.cjs\",[[257,\"dso-accordion-section\",{\"handleTitle\":[1,\"handle-title\"],\"wijzigactie\":[1],\"heading\":[1],\"handleUrl\":[1,\"handle-url\"],\"status\":[1],\"attachmentCount\":[2,\"attachment-count\"],\"icon\":[1],\"statusDescription\":[1,\"status-description\"],\"open\":[516],\"hasNestedAccordion\":[516,\"has-nested-accordion\"],\"label\":[1],\"labelStatus\":[1,\"label-status\"],\"activatable\":[516],\"active\":[516],\"hover\":[32],\"focusHandle\":[64]}]]],[\"dso-list-button.cjs\",[[257,\"dso-list-button\",{\"label\":[513],\"sublabel\":[513],\"count\":[514],\"min\":[520],\"max\":[520],\"checked\":[516],\"disabled\":[516],\"subcontentPrefix\":[513,\"subcontent-prefix\"]}]]],[\"dso-map-base-layers.cjs\",[[1,\"dso-map-base-layers\",{\"group\":[1],\"baseLayers\":[16]}]]],[\"dso-map-overlays.cjs\",[[1,\"dso-map-overlays\",{\"group\":[1],\"overlays\":[16]}]]],[\"dso-label_3.cjs\",[[1,\"dso-renvooi\",{\"value\":[1],\"mark\":[16]}],[257,\"dso-label\",{\"compact\":[516],\"removable\":[516],\"status\":[513],\"truncate\":[516],\"removeHover\":[32],\"removeFocus\":[32],\"isTruncated\":[32],\"labelText\":[32],\"_truncateLabel\":[64]},[[4,\"keydown\",\"keyDownListener\"]],{\"removable\":[{\"watchRemovable\":0}],\"truncate\":[{\"watchTruncate\":0}]}],[262,\"dso-slide-toggle\",{\"checked\":[4],\"disabled\":[4],\"accessibleLabel\":[1,\"accessible-label\"],\"labelledbyId\":[1,\"labelledby-id\"],\"identifier\":[1],\"hasVisibleLabel\":[32]}]]],[\"dso-advanced-select.cjs\",[[17,\"dso-advanced-select\",{\"options\":[16],\"active\":[16],\"activeHint\":[1,\"active-hint\"],\"open\":[32]},[[8,\"keydown\",\"keyDownListener\"]]]]],[\"dso-annotation-activiteit.cjs\",[[1,\"dso-annotation-activiteit\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"naam\":[1],\"regelKwalificatie\":[1,\"regel-kwalificatie\"],\"locatieNoemers\":[16],\"regelKwalificatieVoorzetsel\":[1,\"regel-kwalificatie-voorzetsel\"]}]]],[\"dso-annotation-gebiedsaanwijzing.cjs\",[[1,\"dso-annotation-gebiedsaanwijzing\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"naam\":[1]}]]],[\"dso-annotation-omgevingsnormwaarde.cjs\",[[1,\"dso-annotation-omgevingsnormwaarde\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"naam\":[1],\"toelichting\":[1],\"waardes\":[16],\"eenheid\":[1]}]]],[\"dso-legend-item.cjs\",[[257,\"dso-legend-item\",{\"disabled\":[516],\"disabledMessage\":[513,\"disabled-message\"],\"activatable\":[516],\"active\":[516],\"_mode\":[513],\"showOptions\":[32]}]]],[\"dso-map-controls.cjs\",[[257,\"dso-map-controls\",{\"open\":[1540],\"disableZoom\":[1,\"disable-zoom\"],\"hideContent\":[32],\"toggleVisibility\":[64]},[[0,\"transitionend\",\"handleTransitionEnd\"]],{\"open\":[{\"watchOpen\":0}]}]]],[\"dso-annotation-kaart.cjs\",[[1,\"dso-annotation-kaart\",{\"wijzigactie\":[513],\"naam\":[1],\"href\":[513]}]]],[\"dso-autosuggest.cjs\",[[262,\"dso-autosuggest\",{\"suggestions\":[16],\"loading\":[4],\"loadingLabel\":[1,\"loading-label\"],\"loadingDelayed\":[2,\"loading-delayed\"],\"notFoundLabel\":[1,\"not-found-label\"],\"mark\":[16],\"showSuggestions\":[32],\"selectedSuggestion\":[32],\"selectedSuggestionGroup\":[32],\"notFound\":[32],\"showLoading\":[32]},[[8,\"keydown\",\"handleSearchBarButtonKeydown\"],[4,\"click\",\"onDocumentClick\"]],{\"suggestions\":[{\"suggestionsWatcher\":0}]}]]],[\"dso-legend.cjs\",[[257,\"dso-legend\",{\"tabItems\":[16]}]]],[\"dso-project-item.cjs\",[[257,\"dso-project-item\",{\"label\":[1]}]]],[\"dso-survey-rating.cjs\",[[1,\"dso-survey-rating\"]]],[\"dso-dropdown-menu.cjs\",[[257,\"dso-dropdown-menu\",{\"checkable\":[6660],\"label\":[513],\"variant\":[513],\"open\":[32],\"_getState\":[64]},[[0,\"dsoClick\",\"dsoClickHandler\"]]]]],[\"dso-header.cjs\",[[257,\"dso-header\",{\"mainMenu\":[16],\"compact\":[1],\"authStatus\":[1,\"auth-status\"],\"loginUrl\":[1,\"login-url\"],\"logoutUrl\":[1,\"logout-url\"],\"showHelp\":[4,\"show-help\"],\"helpUrl\":[1,\"help-url\"],\"userProfileName\":[1,\"user-profile-name\"],\"userProfileUrl\":[1,\"user-profile-url\"],\"userHomeUrl\":[1,\"user-home-url\"],\"userHomeActive\":[4,\"user-home-active\"],\"visibleMenuItemsCount\":[32],\"dropdownOptionsOffset\":[32],\"open\":[32]},null,{\"mainMenu\":[{\"mainMenuChanged\":0}]}]]],[\"dso-legend-group.cjs\",[[257,\"dso-legend-group\",{\"mode\":[513]},null,{\"mode\":[{\"handleModeChange\":0}]}]]],[\"dso-mark-bar.cjs\",[[1,\"dso-mark-bar\",{\"value\":[1],\"label\":[1],\"current\":[2],\"totalCount\":[2,\"total-count\"],\"dsoFocus\":[64]}]]],[\"dso-onboarding-tip.cjs\",[[257,\"dso-onboarding-tip\",{\"placement\":[1],\"ready\":[32],\"popoverOpen\":[32]}]]],[\"dso-pagination.cjs\",[[1,\"dso-pagination\",{\"totalPages\":[2,\"total-pages\"],\"currentPage\":[2,\"current-page\"],\"formatHref\":[16],\"availablePositions\":[32]},[[0,\"dsoSizeChange\",\"sizeChangeHandler\"]]]]],[\"dso-tree-view.cjs\",[[1,\"dso-tree-view\",{\"collection\":[16],\"focusItem\":[64]}]]],[\"dso-action-list-item.cjs\",[[257,\"dso-action-list-item\",{\"step\":[2],\"itemTitle\":[1,\"item-title\"],\"flowLine\":[4,\"flow-line\"],\"warning\":[4],\"divider\":[4]}]]],[\"dso-banner.cjs\",[[257,\"dso-banner\",{\"status\":[513],\"compact\":[516],\"icon\":[516]}]]],[\"dso-card.cjs\",[[257,\"dso-card\",{\"href\":[513],\"mode\":[513],\"active\":[516]}]]],[\"dso-document-card.cjs\",[[257,\"dso-document-card\",{\"href\":[513],\"active\":[516]}]]],[\"dso-dropdown-menu-item.cjs\",[[257,\"dso-dropdown-menu-item\",{\"type\":[513],\"href\":[513],\"checked\":[516],\"_dsoFocus\":[64]}]]],[\"dso-history-item.cjs\",[[257,\"dso-history-item\",{\"type\":[513],\"href\":[513],\"current\":[516]}]]],[\"dso-map-layer.cjs\",[[257,\"dso-map-layer\",{\"activatable\":[516],\"active\":[516],\"wijzigactie\":[513]}]]],[\"dso-map-layer-object.cjs\",[[257,\"dso-map-layer-object\",{\"active\":[516],\"wijzigactie\":[513]}]]],[\"dso-map-message.cjs\",[[257,\"dso-map-message\",{\"variant\":[513],\"hasActions\":[32]}]]],[\"dso-plekinfo-card.cjs\",[[257,\"dso-plekinfo-card\",{\"wijzigactie\":[513],\"href\":[513],\"targetBlank\":[4,\"target-blank\"],\"active\":[516]}]]],[\"dso-skiplink.cjs\",[[1,\"dso-skiplink\",{\"to\":[513],\"label\":[513]}]]],[\"dso-tijdreis-banner.cjs\",[[257,\"dso-tijdreis-banner\"]]],[\"dso-accordion.cjs\",[[257,\"dso-accordion\",{\"variant\":[6145],\"reverseAlign\":[6148,\"reverse-align\"],\"_getState\":[64]}]]],[\"dso-action-list.cjs\",[[257,\"dso-action-list\",{\"listTitle\":[1,\"list-title\"]}]]],[\"dso-card-container.cjs\",[[257,\"dso-card-container\",{\"mode\":[513]}]]],[\"dso-contact-information.cjs\",[[257,\"dso-contact-information\"]]],[\"dso-cursor-tooltip.cjs\",[[257,\"dso-cursor-tooltip\"]]],[\"dso-date-picker.cjs\",[[2,\"dso-date-picker\",{\"name\":[1],\"identifier\":[1],\"disabled\":[516],\"required\":[516],\"invalid\":[516],\"describedBy\":[1,\"described-by\"],\"dsoAutofocus\":[4,\"dso-autofocus\"],\"value\":[513],\"min\":[1],\"max\":[1]}]]],[\"dso-dropdown-menu-group.cjs\",[[257,\"dso-dropdown-menu-group\",{\"label\":[513]}]]],[\"dso-highlight-box.cjs\",[[257,\"dso-highlight-box\",{\"yellow\":[516],\"border\":[516],\"white\":[516],\"green\":[516],\"dropShadow\":[516,\"drop-shadow\"],\"step\":[514]}]]],[\"dso-input-range.cjs\",[[1,\"dso-input-range\",{\"min\":[514],\"max\":[514],\"value\":[514],\"step\":[514],\"label\":[513],\"unit\":[513],\"description\":[513]}]]],[\"dso-logo.cjs\",[[1,\"dso-logo\",{\"name\":[513],\"logoUrl\":[513,\"logo-url\"],\"label\":[513],\"labelUrl\":[513,\"label-url\"],\"ribbon\":[513]}]]],[\"dso-segmented-button.cjs\",[[1,\"dso-segmented-button\",{\"groupName\":[513,\"group-name\"],\"options\":[16],\"label\":[513],\"required\":[516],\"activeOption\":[16]}]]],[\"dso-tab.cjs\",[[257,\"dso-tab\",{\"active\":[516],\"disabled\":[516],\"href\":[1],\"_dsoFocus\":[64]}]]],[\"dso-tabs.cjs\",[[257,\"dso-tabs\"]]],[\"dso-tooltip.cjs\",[[257,\"dso-tooltip\",{\"descriptive\":[516],\"position\":[1],\"strategy\":[1],\"noArrow\":[4,\"no-arrow\"],\"stateless\":[4],\"small\":[4],\"active\":[1540],\"hidden\":[32],\"activate\":[64],\"deactivate\":[64]},null,{\"position\":[{\"watchPosition\":0}],\"strategy\":[{\"watchStrategy\":0}],\"active\":[{\"watchActive\":0}]}]]],[\"dso-viewer-grid.cjs\",[[257,\"dso-viewer-grid\",{\"filterPanelTitle\":[513,\"filter-panel-title\"],\"filterPanelOpen\":[516,\"filter-panel-open\"],\"overlayOpen\":[516,\"overlay-open\"],\"documentPanelOpen\":[516,\"document-panel-open\"],\"print\":[516],\"mainSize\":[513,\"main-size\"],\"activeTab\":[1,\"active-tab\"],\"documentPanelSize\":[513,\"document-panel-size\"],\"mainPanelExpanded\":[4,\"main-panel-expanded\"],\"mainPanelHidden\":[4,\"main-panel-hidden\"],\"tabView\":[32],\"_checkMainPanelVisibility\":[64]},null,{\"documentPanelOpen\":[{\"documentPanelOpenWatcher\":0}],\"filterPanelOpen\":[{\"filterPanelOpenWatcher\":0}],\"overlayOpen\":[{\"overlayOpenWatcher\":0}]}]]],[\"dso-button-group.cjs\",[[257,\"dso-button-group\",{\"direction\":[513]}]]],[\"dso-icon.cjs\",[[1,\"dso-icon\",{\"icon\":[1]}]]],[\"dso-annotation-locatie_2.cjs\",[[257,\"dso-document-component\",{\"heading\":[513],\"kop\":[6145],\"inhoud\":[6145],\"open\":[516],\"filtered\":[516],\"notApplicable\":[516,\"not-applicable\"],\"badge\":[513],\"badgeStatus\":[513,\"badge-status\"],\"badgeTooltip\":[513,\"badge-tooltip\"],\"label\":[513],\"labelStatus\":[513,\"label-status\"],\"annotated\":[516],\"gereserveerd\":[6145],\"vervallen\":[6145],\"openAnnotation\":[516,\"open-annotation\"],\"alternativeTitle\":[513,\"alternative-title\"],\"type\":[513],\"wijzigactie\":[513],\"annotationsWijzigactie\":[513,\"annotations-wijzigactie\"],\"mark\":[16],\"recursiveToggle\":[8,\"recursive-toggle\"],\"ozonContentUrlResolver\":[16],\"ozonContentBegripResolver\":[16],\"mode\":[513],\"href\":[513]}],[1,\"dso-annotation-locatie\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"locatieNoemer\":[1,\"locatie-noemer\"]}]]],[\"dso-attachments-counter_2.cjs\",[[1,\"dso-attachments-counter\",{\"count\":[514]}],[257,\"dso-expandable\",{\"open\":[516],\"enableAnimation\":[516,\"enable-animation\"],\"minimumHeight\":[2,\"minimum-height\"],\"isClosed\":[32]},[[0,\"transitionstart\",\"transitionstartHandler\"],[0,\"transitionend\",\"transitionendHandler\"]],{\"open\":[{\"toggleOpen\":0}]}]]],[\"dso-progress-indicator.cjs\",[[1,\"dso-progress-indicator\",{\"label\":[1],\"size\":[513],\"block\":[516]}]]],[\"dso-responsive-element.cjs\",[[257,\"dso-responsive-element\",{\"sizeAlias\":[32],\"sizeWidth\":[32],\"getSize\":[64]}]]],[\"dso-scrollable.cjs\",[[257,\"dso-scrollable\",{\"_preventFocus\":[4,\"_prevent-focus\"],\"scrollPosition\":[32],\"_setScrollState\":[64]}]]],[\"dso-icon-button.cjs\",[[1,\"dso-icon-button\",{\"icon\":[513],\"label\":[513],\"variant\":[513],\"tooltipPlacement\":[513,\"tooltip-placement\"],\"disabled\":[516],\"expanded\":[516],\"toggled\":[516],\"setFocus\":[64]}]]],[\"dso-modal.cjs\",[[1,\"dso-modal\",{\"fullscreen\":[516],\"modalTitle\":[1,\"modal-title\"],\"dialogRole\":[1,\"dialog-role\"],\"returnFocus\":[4,\"return-focus\"],\"closable\":[4],\"ariaId\":[32],\"narrowView\":[32]}]]],[\"dso-info_3.cjs\",[[262,\"dso-selectable\",{\"type\":[1],\"identifier\":[1],\"name\":[1],\"value\":[1],\"invalid\":[4],\"describedById\":[1,\"described-by-id\"],\"errormessage\":[1],\"labelledById\":[1,\"labelled-by-id\"],\"disabled\":[4],\"required\":[4],\"checked\":[516],\"indeterminate\":[4],\"infoFixed\":[4,\"info-fixed\"],\"infoActive\":[32],\"toggleInfo\":[64]},null,{\"indeterminate\":[{\"setIndeterminate\":0}]}],[257,\"dso-info\",{\"fixed\":[516],\"active\":[516]}],[257,\"dso-info-button\",{\"active\":[516],\"label\":[513],\"toggletipPlacement\":[513,\"toggletip-placement\"],\"toggletipActive\":[32],\"hasToggletip\":[32],\"setFocus\":[64]},[[6,\"focusin\",\"onDocumentFocusIn\"],[7,\"pointerdown\",\"onDocumentPointerDown\"]]]]],[\"dso-alert_7.cjs\",[[1,\"dso-ozon-content\",{\"content\":[1],\"inline\":[516],\"mark\":[16],\"urlResolver\":[16],\"begripResolver\":[16],\"annotated\":[516],\"state\":[32]},null,{\"content\":[{\"contentWatcher\":0}]}],[257,\"dso-alert\",{\"status\":[513],\"roleAlert\":[4,\"role-alert\"],\"compact\":[516],\"closable\":[4]}],[257,\"dso-table\",{\"noModal\":[516,\"no-modal\"],\"isResponsive\":[32],\"modalActive\":[32],\"placeholderHeight\":[32]}],[257,\"dso-image-overlay\",{\"wijzigactie\":[1],\"active\":[32],\"zoomable\":[32]},[[2,\"load\",\"loadListener\"]]],[257,\"dso-ozon-content-toggletip\",{\"icon\":[513],\"active\":[32]},[[8,\"click\",\"handleWindowClick\"]]],[257,\"dso-panel\",{\"closeButtonLabel\":[1,\"close-button-label\"],\"emphasized\":[4]}],[257,\"dso-badge\",{\"status\":[513],\"label\":[513],\"toggletipPlacement\":[513,\"toggletip-placement\"],\"toggletipActive\":[32],\"hasToggletip\":[32]}]]]]"), options);
|
|
9
|
+
return index.bootstrapLazy(JSON.parse("[[\"dsot-document-component-demo.cjs\",[[2,\"dsot-document-component-demo\",{\"showCanvas\":[516,\"show-canvas\"],\"showBesluitversie\":[4,\"show-besluitversie\"],\"jsonFile\":[1,\"json-file\"],\"openDefault\":[4,\"open-default\"],\"mode\":[513],\"ozonContentUrlResolver\":[16],\"ozonContentBegripResolver\":[16],\"response\":[32],\"document\":[32],\"openOrClosed\":[32],\"openedAnnotation\":[32],\"filtered\":[32],\"notApplicable\":[32],\"activeAnnotationSelectables\":[32]},null,{\"jsonFile\":[{\"jsonFileWatcher\":0}],\"openDefault\":[{\"openDefaultWatcher\":0}]}]]],[\"dso-accordion-section.cjs\",[[257,\"dso-accordion-section\",{\"handleTitle\":[1,\"handle-title\"],\"wijzigactie\":[1],\"heading\":[1],\"handleUrl\":[1,\"handle-url\"],\"status\":[1],\"attachmentCount\":[2,\"attachment-count\"],\"icon\":[1],\"statusDescription\":[1,\"status-description\"],\"open\":[516],\"hasNestedAccordion\":[516,\"has-nested-accordion\"],\"label\":[1],\"labelStatus\":[1,\"label-status\"],\"activatable\":[516],\"active\":[516],\"hover\":[32],\"focusHandle\":[64]}]]],[\"dso-list-button.cjs\",[[257,\"dso-list-button\",{\"label\":[513],\"sublabel\":[513],\"count\":[514],\"min\":[520],\"max\":[520],\"checked\":[516],\"disabled\":[516],\"subcontentPrefix\":[513,\"subcontent-prefix\"]}]]],[\"dso-map-base-layers.cjs\",[[1,\"dso-map-base-layers\",{\"group\":[1],\"baseLayers\":[16]}]]],[\"dso-map-overlays.cjs\",[[1,\"dso-map-overlays\",{\"group\":[1],\"overlays\":[16]}]]],[\"dso-label_3.cjs\",[[1,\"dso-renvooi\",{\"value\":[1],\"mark\":[16]}],[257,\"dso-label\",{\"compact\":[516],\"removable\":[516],\"status\":[513],\"truncate\":[516],\"removeHover\":[32],\"removeFocus\":[32],\"isTruncated\":[32],\"labelText\":[32],\"_truncateLabel\":[64]},[[4,\"keydown\",\"keyDownListener\"]],{\"removable\":[{\"watchRemovable\":0}],\"truncate\":[{\"watchTruncate\":0}]}],[262,\"dso-slide-toggle\",{\"checked\":[4],\"disabled\":[4],\"accessibleLabel\":[1,\"accessible-label\"],\"labelledbyId\":[1,\"labelledby-id\"],\"identifier\":[1],\"hasVisibleLabel\":[32]}]]],[\"dso-advanced-select.cjs\",[[17,\"dso-advanced-select\",{\"options\":[16],\"active\":[16],\"activeHint\":[1,\"active-hint\"],\"open\":[32]},[[8,\"keydown\",\"keyDownListener\"]]]]],[\"dso-annotation-activiteit.cjs\",[[1,\"dso-annotation-activiteit\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"naam\":[1],\"regelKwalificatie\":[1,\"regel-kwalificatie\"],\"locatieNoemers\":[16],\"regelKwalificatieVoorzetsel\":[1,\"regel-kwalificatie-voorzetsel\"]}]]],[\"dso-annotation-gebiedsaanwijzing.cjs\",[[1,\"dso-annotation-gebiedsaanwijzing\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"naam\":[1]}]]],[\"dso-annotation-omgevingsnormwaarde.cjs\",[[1,\"dso-annotation-omgevingsnormwaarde\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"naam\":[1],\"toelichting\":[1],\"waardes\":[16],\"eenheid\":[1]}]]],[\"dso-legend-item.cjs\",[[257,\"dso-legend-item\",{\"disabled\":[516],\"disabledMessage\":[513,\"disabled-message\"],\"activatable\":[516],\"active\":[516],\"_mode\":[513],\"showOptions\":[32]}]]],[\"dso-map-controls.cjs\",[[257,\"dso-map-controls\",{\"open\":[1540],\"disableZoom\":[1,\"disable-zoom\"],\"hideContent\":[32],\"toggleVisibility\":[64]},[[0,\"transitionend\",\"handleTransitionEnd\"]],{\"open\":[{\"watchOpen\":0}]}]]],[\"dso-annotation-kaart.cjs\",[[1,\"dso-annotation-kaart\",{\"wijzigactie\":[513],\"naam\":[1],\"href\":[513]}]]],[\"dso-autosuggest.cjs\",[[262,\"dso-autosuggest\",{\"suggestions\":[16],\"loading\":[4],\"loadingLabel\":[1,\"loading-label\"],\"loadingDelayed\":[2,\"loading-delayed\"],\"notFoundLabel\":[1,\"not-found-label\"],\"mark\":[16],\"showSuggestions\":[32],\"selectedSuggestion\":[32],\"selectedSuggestionGroup\":[32],\"notFound\":[32],\"showLoading\":[32]},[[8,\"keydown\",\"handleSearchBarButtonKeydown\"],[4,\"click\",\"onDocumentClick\"]],{\"suggestions\":[{\"suggestionsWatcher\":0}]}]]],[\"dso-legend.cjs\",[[257,\"dso-legend\",{\"tabItems\":[16]}]]],[\"dso-project-item.cjs\",[[257,\"dso-project-item\",{\"label\":[1]}]]],[\"dso-survey-rating.cjs\",[[1,\"dso-survey-rating\"]]],[\"dso-dropdown-menu.cjs\",[[257,\"dso-dropdown-menu\",{\"checkable\":[6660],\"label\":[513],\"variant\":[513],\"open\":[32],\"_getState\":[64]},[[0,\"dsoClick\",\"dsoClickHandler\"]]]]],[\"dso-header.cjs\",[[257,\"dso-header\",{\"mainMenu\":[16],\"compact\":[1],\"authStatus\":[1,\"auth-status\"],\"loginUrl\":[1,\"login-url\"],\"logoutUrl\":[1,\"logout-url\"],\"showHelp\":[4,\"show-help\"],\"helpUrl\":[1,\"help-url\"],\"userProfileName\":[1,\"user-profile-name\"],\"userProfileUrl\":[1,\"user-profile-url\"],\"userHomeUrl\":[1,\"user-home-url\"],\"userHomeActive\":[4,\"user-home-active\"],\"visibleMenuItemsCount\":[32],\"dropdownOptionsOffset\":[32],\"open\":[32]},null,{\"mainMenu\":[{\"mainMenuChanged\":0}]}]]],[\"dso-legend-group.cjs\",[[257,\"dso-legend-group\",{\"mode\":[513]},null,{\"mode\":[{\"handleModeChange\":0}]}]]],[\"dso-mark-bar.cjs\",[[1,\"dso-mark-bar\",{\"value\":[1],\"label\":[1],\"current\":[2],\"totalCount\":[2,\"total-count\"],\"dsoFocus\":[64]}]]],[\"dso-onboarding-tip.cjs\",[[257,\"dso-onboarding-tip\",{\"placement\":[1],\"ready\":[32],\"popoverOpen\":[32]}]]],[\"dso-pagination.cjs\",[[1,\"dso-pagination\",{\"totalPages\":[2,\"total-pages\"],\"currentPage\":[2,\"current-page\"],\"formatHref\":[16],\"availablePositions\":[32]},[[0,\"dsoSizeChange\",\"sizeChangeHandler\"]]]]],[\"dso-tree-view.cjs\",[[1,\"dso-tree-view\",{\"collection\":[16],\"focusItem\":[64]}]]],[\"dso-action-list-item.cjs\",[[257,\"dso-action-list-item\",{\"step\":[2],\"itemTitle\":[1,\"item-title\"],\"flowLine\":[4,\"flow-line\"],\"warning\":[4],\"divider\":[4]}]]],[\"dso-banner.cjs\",[[257,\"dso-banner\",{\"status\":[513],\"compact\":[516],\"icon\":[516]}]]],[\"dso-card.cjs\",[[257,\"dso-card\",{\"href\":[513],\"mode\":[513],\"active\":[516]}]]],[\"dso-document-card.cjs\",[[257,\"dso-document-card\",{\"href\":[513],\"active\":[516]}]]],[\"dso-dropdown-menu-item.cjs\",[[257,\"dso-dropdown-menu-item\",{\"type\":[513],\"href\":[513],\"checked\":[516],\"_dsoFocus\":[64]}]]],[\"dso-history-item.cjs\",[[257,\"dso-history-item\",{\"type\":[513],\"href\":[513],\"current\":[516]}]]],[\"dso-map-layer.cjs\",[[257,\"dso-map-layer\",{\"activatable\":[516],\"active\":[516],\"wijzigactie\":[513]}]]],[\"dso-map-layer-object.cjs\",[[257,\"dso-map-layer-object\",{\"active\":[516],\"wijzigactie\":[513]}]]],[\"dso-map-message.cjs\",[[257,\"dso-map-message\",{\"variant\":[513],\"hasActions\":[32]}]]],[\"dso-plekinfo-card.cjs\",[[257,\"dso-plekinfo-card\",{\"wijzigactie\":[513],\"href\":[513],\"targetBlank\":[4,\"target-blank\"],\"active\":[516]}]]],[\"dso-skiplink.cjs\",[[1,\"dso-skiplink\",{\"to\":[513],\"label\":[513]}]]],[\"dso-tijdreis-banner.cjs\",[[257,\"dso-tijdreis-banner\"]]],[\"dso-accordion.cjs\",[[257,\"dso-accordion\",{\"variant\":[6145],\"reverseAlign\":[6148,\"reverse-align\"],\"_getState\":[64]}]]],[\"dso-action-list.cjs\",[[257,\"dso-action-list\",{\"listTitle\":[1,\"list-title\"]}]]],[\"dso-card-container.cjs\",[[257,\"dso-card-container\",{\"mode\":[513]}]]],[\"dso-contact-information.cjs\",[[257,\"dso-contact-information\"]]],[\"dso-cursor-tooltip.cjs\",[[257,\"dso-cursor-tooltip\"]]],[\"dso-date-picker.cjs\",[[2,\"dso-date-picker\",{\"name\":[1],\"identifier\":[1],\"disabled\":[516],\"required\":[516],\"invalid\":[516],\"describedBy\":[1,\"described-by\"],\"dsoAutofocus\":[4,\"dso-autofocus\"],\"value\":[513],\"min\":[1],\"max\":[1]}]]],[\"dso-dropdown-menu-group.cjs\",[[257,\"dso-dropdown-menu-group\",{\"label\":[513]}]]],[\"dso-highlight-box.cjs\",[[257,\"dso-highlight-box\",{\"yellow\":[516],\"border\":[516],\"white\":[516],\"green\":[516],\"dropShadow\":[516,\"drop-shadow\"],\"step\":[514]}]]],[\"dso-input-range.cjs\",[[1,\"dso-input-range\",{\"min\":[514],\"max\":[514],\"value\":[514],\"step\":[514],\"label\":[513],\"unit\":[513],\"description\":[513]}]]],[\"dso-logo.cjs\",[[1,\"dso-logo\",{\"name\":[513],\"logoUrl\":[513,\"logo-url\"],\"label\":[513],\"labelUrl\":[513,\"label-url\"],\"ribbon\":[513]}]]],[\"dso-segmented-button.cjs\",[[1,\"dso-segmented-button\",{\"groupName\":[513,\"group-name\"],\"options\":[16],\"label\":[513],\"required\":[516],\"activeOption\":[16]}]]],[\"dso-tab.cjs\",[[257,\"dso-tab\",{\"active\":[516],\"disabled\":[516],\"href\":[1],\"_dsoFocus\":[64]}]]],[\"dso-tabs.cjs\",[[257,\"dso-tabs\"]]],[\"dso-viewer-grid.cjs\",[[257,\"dso-viewer-grid\",{\"filterPanelTitle\":[513,\"filter-panel-title\"],\"filterPanelOpen\":[516,\"filter-panel-open\"],\"overlayOpen\":[516,\"overlay-open\"],\"documentPanelOpen\":[516,\"document-panel-open\"],\"print\":[516],\"mainSize\":[513,\"main-size\"],\"activeTab\":[1,\"active-tab\"],\"documentPanelSize\":[513,\"document-panel-size\"],\"mainPanelExpanded\":[4,\"main-panel-expanded\"],\"mainPanelHidden\":[4,\"main-panel-hidden\"],\"tabView\":[32],\"_checkMainPanelVisibility\":[64]},null,{\"documentPanelOpen\":[{\"documentPanelOpenWatcher\":0}],\"filterPanelOpen\":[{\"filterPanelOpenWatcher\":0}],\"overlayOpen\":[{\"overlayOpenWatcher\":0}]}]]],[\"dso-button-group.cjs\",[[257,\"dso-button-group\",{\"direction\":[513]}]]],[\"dso-icon.cjs\",[[1,\"dso-icon\",{\"icon\":[1]}]]],[\"dso-annotation-locatie_2.cjs\",[[257,\"dso-document-component\",{\"headingLevel\":[514,\"heading-level\"],\"kop\":[6145],\"inhoud\":[6145],\"open\":[516],\"filtered\":[516],\"notApplicable\":[516,\"not-applicable\"],\"badge\":[513],\"badgeStatus\":[513,\"badge-status\"],\"badgeTooltip\":[513,\"badge-tooltip\"],\"label\":[513],\"labelStatus\":[513,\"label-status\"],\"annotated\":[516],\"gereserveerd\":[6145],\"vervallen\":[6145],\"openAnnotation\":[516,\"open-annotation\"],\"alternativeTitle\":[513,\"alternative-title\"],\"type\":[513],\"wijzigactie\":[513],\"annotationsWijzigactie\":[513,\"annotations-wijzigactie\"],\"mark\":[16],\"recursiveToggle\":[8,\"recursive-toggle\"],\"ozonContentUrlResolver\":[16],\"ozonContentBegripResolver\":[16],\"mode\":[513],\"href\":[513]}],[1,\"dso-annotation-locatie\",{\"wijzigactie\":[513],\"active\":[516],\"gewijzigdeLocatie\":[516,\"gewijzigde-locatie\"],\"locatieNoemer\":[1,\"locatie-noemer\"]}]]],[\"dso-attachments-counter_2.cjs\",[[1,\"dso-attachments-counter\",{\"count\":[514]}],[257,\"dso-expandable\",{\"open\":[516],\"enableAnimation\":[516,\"enable-animation\"],\"minimumHeight\":[2,\"minimum-height\"],\"isClosed\":[32]},[[0,\"transitionstart\",\"transitionstartHandler\"],[0,\"transitionend\",\"transitionendHandler\"]],{\"open\":[{\"toggleOpen\":0}]}]]],[\"dso-progress-indicator.cjs\",[[1,\"dso-progress-indicator\",{\"label\":[1],\"size\":[513],\"block\":[516]}]]],[\"dso-responsive-element.cjs\",[[257,\"dso-responsive-element\",{\"sizeAlias\":[32],\"sizeWidth\":[32],\"getSize\":[64]}]]],[\"dso-scrollable.cjs\",[[257,\"dso-scrollable\",{\"_preventFocus\":[4,\"_prevent-focus\"],\"scrollPosition\":[32],\"_setScrollState\":[64]}]]],[\"dso-icon-button.cjs\",[[1,\"dso-icon-button\",{\"icon\":[513],\"label\":[513],\"variant\":[513],\"tooltipPlacement\":[513,\"tooltip-placement\"],\"disabled\":[516],\"expanded\":[516],\"toggled\":[516],\"setFocus\":[64]}]]],[\"dso-modal.cjs\",[[1,\"dso-modal\",{\"fullscreen\":[516],\"modalTitle\":[1,\"modal-title\"],\"dialogRole\":[1,\"dialog-role\"],\"returnFocus\":[4,\"return-focus\"],\"closable\":[4],\"ariaId\":[32],\"narrowView\":[32]}]]],[\"dso-info_3.cjs\",[[262,\"dso-selectable\",{\"type\":[1],\"identifier\":[1],\"name\":[1],\"value\":[1],\"invalid\":[4],\"describedById\":[1,\"described-by-id\"],\"errormessage\":[1],\"labelledById\":[1,\"labelled-by-id\"],\"disabled\":[4],\"required\":[4],\"checked\":[516],\"indeterminate\":[4],\"infoFixed\":[4,\"info-fixed\"],\"infoActive\":[32],\"toggleInfo\":[64]},null,{\"indeterminate\":[{\"setIndeterminate\":0}]}],[257,\"dso-info\",{\"fixed\":[516],\"active\":[516]}],[257,\"dso-info-button\",{\"active\":[516],\"label\":[513],\"toggletipPlacement\":[513,\"toggletip-placement\"],\"toggletipActive\":[32],\"hasToggletip\":[32],\"setFocus\":[64]},[[6,\"focusin\",\"onDocumentFocusIn\"],[7,\"pointerdown\",\"onDocumentPointerDown\"]]]]],[\"dso-alert_7.cjs\",[[1,\"dso-ozon-content\",{\"content\":[1],\"inline\":[516],\"mark\":[16],\"urlResolver\":[16],\"begripResolver\":[16],\"annotated\":[516],\"state\":[32]},null,{\"content\":[{\"contentWatcher\":0}]}],[257,\"dso-alert\",{\"status\":[513],\"roleAlert\":[4,\"role-alert\"],\"compact\":[516],\"closable\":[4]}],[257,\"dso-table\",{\"noModal\":[516,\"no-modal\"],\"isResponsive\":[32],\"modalActive\":[32],\"placeholderHeight\":[32]}],[257,\"dso-image-overlay\",{\"wijzigactie\":[1],\"active\":[32],\"zoomable\":[32]},[[2,\"load\",\"loadListener\"]]],[257,\"dso-ozon-content-toggletip\",{\"icon\":[513],\"active\":[32]},[[8,\"click\",\"handleWindowClick\"]]],[257,\"dso-panel\",{\"closeButtonLabel\":[1,\"close-button-label\"],\"emphasized\":[4]}],[257,\"dso-badge\",{\"status\":[513],\"label\":[513],\"toggletipPlacement\":[513,\"toggletip-placement\"],\"toggletipActive\":[32],\"hasToggletip\":[32]}]]]]"), options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
border-radius: 4px;
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
background-color: #fff;
|
|
32
|
+
text-align: start;
|
|
32
33
|
line-height: inherit;
|
|
33
34
|
font-family: inherit;
|
|
34
35
|
font-size: inherit;
|
|
@@ -40,19 +41,19 @@
|
|
|
40
41
|
.active-option dso-icon {
|
|
41
42
|
color: #275937;
|
|
42
43
|
}
|
|
43
|
-
.active-option dso-label {
|
|
44
|
-
margin-inline-start: 8px;
|
|
45
|
-
}
|
|
46
44
|
|
|
45
|
+
@media (max-width: 480px) {
|
|
46
|
+
.active-option-label {
|
|
47
|
+
hyphens: auto;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
47
50
|
.active-option-label {
|
|
48
|
-
line-height: 1;
|
|
49
|
-
padding-block:
|
|
51
|
+
line-height: 1.5;
|
|
52
|
+
padding-block: 8px;
|
|
50
53
|
padding-inline: 8px;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list -- Nodig om lange titels op de zelfde regel te houden */
|
|
55
|
-
text-overflow: ellipsis;
|
|
54
|
+
}
|
|
55
|
+
.active-option-label dso-label {
|
|
56
|
+
margin-inline-end: 8px;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
.active-option-aside {
|
|
@@ -63,8 +64,8 @@
|
|
|
63
64
|
.badges {
|
|
64
65
|
display: flex;
|
|
65
66
|
justify-content: space-between;
|
|
66
|
-
align-items: center;
|
|
67
67
|
gap: 4px;
|
|
68
|
+
padding-block-start: 8px;
|
|
68
69
|
padding-inline-start: 8px;
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -74,8 +74,8 @@ export class AdvancedSelect {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
const icon = this.open ? "caret-up" : "caret-down";
|
|
77
|
-
return (h("div", { key: 'caa960271b7eb724eedf59a6ecc3963d0edd44a7', class: "advanced-select" }, h("div", { key: 'ee68b2509312c5069a1efa48340b41420b815900', class: "advanced-select-button" }, h("button", { key: 'fcf9ad0e9f20869b4f023054b8a0d5c85120ce4b', "aria-expanded": this.open.toString(), class: clsx(["active-option", { open: this.open }]), type: "button", onClick: this.toggleOpen, ref: (element) => (this.toggleButtonElementRef = element) }, h(
|
|
78
|
-
("placeholder" in optionOrGroup && (h("li", { class: "group" }, h("p", { class: "group-label" }, optionOrGroup.label), h("p", { class: "placeholder" }, optionOrGroup.placeholder), optionOrGroup.redirect && (h(RedirectAnchor, { redirect: optionOrGroup.redirect, callback: this.handleRedirectClick }))))) || (h("li", null, h(OptionButton, { option: optionOrGroup, active: this.active, activeHint: this.activeHint, callback: this.handleOptionClick })))))))), this.options.some((optionOrGroup) => "summaryCounter" in optionOrGroup && optionOrGroup?.summaryCounter) && (h("span", { key: '
|
|
77
|
+
return (h("div", { key: 'caa960271b7eb724eedf59a6ecc3963d0edd44a7', class: "advanced-select" }, h("div", { key: 'ee68b2509312c5069a1efa48340b41420b815900', class: "advanced-select-button" }, h("button", { key: 'fcf9ad0e9f20869b4f023054b8a0d5c85120ce4b', "aria-expanded": this.open.toString(), class: clsx(["active-option", { open: this.open }]), type: "button", onClick: this.toggleOpen, ref: (element) => (this.toggleButtonElementRef = element) }, h("span", { key: 'bfc430f8bbf04dd3b96b7899e7f6291a62b1bb9b', class: "active-option-label" }, h(ActiveGroupLabel, { key: '9cd3e3c60b0286c0d50a45f8d8de830c42728f33', active: this.active, options: this.options }), this.active?.label ?? "Selecteer een optie"), h("span", { key: 'ef87672c65cd65e7a6a6ceb37b5c15e98c0bb58c', class: "active-option-aside" }, h("dso-icon", { key: '0eb9b166c8894579d44e0d0a0787ceba75bd52c1', icon: icon, "aria-hidden": "true" }))), this.open && (h("div", { key: '43fede22505062bd93adf933307eb76462293e2c', class: "groups-container" }, h("ul", { key: '9f12aadfca802808c8e99181e6819a872f9f39e4', class: "groups" }, this.options.map((optionOrGroup) => ("options" in optionOrGroup && (h("li", { class: clsx(["group", { [`group-${optionOrGroup.variant}`]: !!optionOrGroup.variant }]) }, h("p", { class: "group-label" }, optionOrGroup.label), h("ul", { class: "options" }, optionOrGroup.options.map((option) => (h("li", null, h(OptionButton, { option: option, active: this.active, activeHint: this.activeHint, callback: this.handleOptionClick, variant: optionOrGroup.variant }))))), optionOrGroup.redirect && (h(RedirectAnchor, { redirect: optionOrGroup.redirect, callback: this.handleRedirectClick }))))) ||
|
|
78
|
+
("placeholder" in optionOrGroup && (h("li", { class: "group" }, h("p", { class: "group-label" }, optionOrGroup.label), h("p", { class: "placeholder" }, optionOrGroup.placeholder), optionOrGroup.redirect && (h(RedirectAnchor, { redirect: optionOrGroup.redirect, callback: this.handleRedirectClick }))))) || (h("li", null, h(OptionButton, { option: optionOrGroup, active: this.active, activeHint: this.activeHint, callback: this.handleOptionClick })))))))), this.options.some((optionOrGroup) => "summaryCounter" in optionOrGroup && optionOrGroup?.summaryCounter) && (h("span", { key: 'fd9e7f96ab6bd4a79974991e6d51f208e7ea2346', class: "badges" }, this.options
|
|
79
79
|
.filter((option) => "options" in option && "summaryCounter" in option && !!option?.summaryCounter)
|
|
80
80
|
.map((group) => (h("dso-badge", { status: group.variant ?? "outline", label: group.badgeLabel ?? `Toon toelichting voor ${group.label.toLowerCase()}` }, group.options.length, h("div", { slot: "toggletip" }, group.toggletip))))))));
|
|
81
81
|
}
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
export const Heading = ({
|
|
2
|
+
export const Heading = ({ headingLevel, mode, href, onClick, ...props }, children) => {
|
|
3
|
+
// In the table of contents the nested lists carry the structure, so a heading level would add nothing but noise to
|
|
4
|
+
// the heading list of assistive technology. The `headingLevel` prop is ignored here.
|
|
5
|
+
if (mode === "table-of-contents") {
|
|
6
|
+
const label = h("div", { ...props }, children);
|
|
7
|
+
if (!href) {
|
|
8
|
+
return label;
|
|
9
|
+
}
|
|
10
|
+
return (h("a", { href: href, onClick: onClick, class: "heading-anchor" }, label));
|
|
11
|
+
}
|
|
3
12
|
let headingElement;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
break;
|
|
9
|
-
case "h3":
|
|
10
|
-
headingElement = (h("h3", { ...props, onClick: mode === "document" ? onClick : undefined }, children));
|
|
11
|
-
break;
|
|
12
|
-
case "h4":
|
|
13
|
-
headingElement = (h("h4", { ...props, onClick: mode === "document" ? onClick : undefined }, children));
|
|
14
|
-
break;
|
|
15
|
-
case "h5":
|
|
16
|
-
headingElement = (h("h5", { ...props, onClick: mode === "document" ? onClick : undefined }, children));
|
|
17
|
-
break;
|
|
18
|
-
case "h6":
|
|
19
|
-
headingElement = (h("h6", { ...props, onClick: mode === "document" ? onClick : undefined }, children));
|
|
13
|
+
// The native heading elements only go up to `h6`. Deeper levels are expressed with the `heading` role and an
|
|
14
|
+
// explicit `aria-level` so assistive technology still exposes the correct structure.
|
|
15
|
+
if (headingLevel > 6) {
|
|
16
|
+
headingElement = (h("div", { role: "heading", "aria-level": headingLevel, ...props, onClick: onClick }, children));
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
else {
|
|
19
|
+
// In this branch the level is 6 or lower, so it maps onto a native `h2`–`h6` element.
|
|
20
|
+
let HeadingTag;
|
|
21
|
+
switch (headingLevel) {
|
|
22
|
+
case 3:
|
|
23
|
+
HeadingTag = "h3";
|
|
24
|
+
break;
|
|
25
|
+
case 4:
|
|
26
|
+
HeadingTag = "h4";
|
|
27
|
+
break;
|
|
28
|
+
case 5:
|
|
29
|
+
HeadingTag = "h5";
|
|
30
|
+
break;
|
|
31
|
+
case 6:
|
|
32
|
+
HeadingTag = "h6";
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
HeadingTag = "h2";
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
headingElement = (h(HeadingTag, { ...props, onClick: onClick }, children));
|
|
23
39
|
}
|
|
24
40
|
return headingElement;
|
|
25
41
|
};
|
|
@@ -35,9 +35,12 @@ const AantekenAlert = ({ gereserveerd, vervallen }) => {
|
|
|
35
35
|
export class DocumentComponent {
|
|
36
36
|
constructor() {
|
|
37
37
|
/**
|
|
38
|
-
* The heading
|
|
38
|
+
* The heading level to use (only in mode="document"). When the level is 6 or lower a native heading element
|
|
39
|
+
* (`<h2>` … `<h6>`) is rendered; deeper levels are rendered as `<div role="heading" aria-level="*">` because HTML
|
|
40
|
+
* has no native heading elements beyond `<h6>`. In mode="table-of-contents" the nested lists carry the structure
|
|
41
|
+
* and no heading is rendered.
|
|
39
42
|
*/
|
|
40
|
-
this.
|
|
43
|
+
this.headingLevel = 2;
|
|
41
44
|
/**
|
|
42
45
|
* This boolean attribute indicates whether the children are visible.
|
|
43
46
|
*/
|
|
@@ -182,17 +185,17 @@ export class DocumentComponent {
|
|
|
182
185
|
this.alternativeTitle ||
|
|
183
186
|
this.label ||
|
|
184
187
|
this.annotated);
|
|
185
|
-
return (h(Host, { key: '
|
|
186
|
-
(this.mark && this.alternativeTitle && (h(MarkText, { mark: this.mark && ((text) => this.mark?.(text, "alternativeTitle")), text: this.alternativeTitle, emitMarkItemHighlight: (text, elementRef) => this.dsoMarkItemHighlight.emit({ text, elementRef, source: "alternativeTitle" }) }))))), h(AantekenStatus, { key: '
|
|
188
|
+
return (h(Host, { key: 'f8988dc23744ac52a41583fcdcba34b4a8a676b8', "not-collapsible": !collapsible }, showHeading && (h("div", { key: 'ba2f55b584cc1104770e654fcbabdee87d707ce7', class: "heading-container", part: "_heading-container" }, this.wijzigactie && h("span", { key: 'd84dd54d504f7772adca92455925529ba9e99488', class: "editaction-label" }, this.wijzigactieLabel, ":"), h("div", { key: '296ae8cb10db9e0482375fa361096df2f7fbbdcf', class: "heading" }, h(Heading, { key: 'e7240a4f5da77b667b3c838aecee3c50a70c0886', headingLevel: this.headingLevel, class: "heading-element", onClick: this.alternativeTitle ? this.handleHeadingClick : undefined, mode: this.mode, href: this.href }, collapsible && this.mode === "document" && (h("dso-icon-button", { key: 'c835dab68028116f2679c1a6c4a9476b535471fd', label: this.open ? "Invouwen" : "Uitvouwen", class: "toggle-button", expanded: this.open, icon: this.open ? "chevron-down" : "chevron-right", variant: "tertiary", onDsoClick: (e) => this.handleHeadingClick(e.detail.originalEvent) })), h("div", { key: '48280777989cc704dd59c1637695cf49d276b5fd' }, this.notApplicable && h("span", { key: '39f8d041ae3a558b4283ab9ee915f17d2388ad9a', class: "sr-only" }, "Niet van toepassing:"), this._kop ? (h("dso-ozon-content", { class: "kop", content: this._kop, onDsoClick: this.handleOzonContentClick, mark: this.mark && ((text) => this.mark?.(text, "kop")), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit({ ...e.detail, source: "kop" }), inline: true, urlResolver: this.ozonContentUrlResolver, begripResolver: this.ozonContentBegripResolver, annotated: this.annotated })) : (h("span", { class: "alternative-title" }, (!this.mark && this.alternativeTitle) ||
|
|
189
|
+
(this.mark && this.alternativeTitle && (h(MarkText, { mark: this.mark && ((text) => this.mark?.(text, "alternativeTitle")), text: this.alternativeTitle, emitMarkItemHighlight: (text, elementRef) => this.dsoMarkItemHighlight.emit({ text, elementRef, source: "alternativeTitle" }) }))))), h(AantekenStatus, { key: 'a95d529b1948a25b64f71fac2b17d29ab593a0cb', gereserveerd: this._gereserveerd, vervallen: this._vervallen }))), this.recursiveToggle !== undefined && this.open && this.mode === "document" && (h("dso-icon-button", { key: '489cc7c39def4edabe9e1dd3414857feca3167b9', label: this.recursiveToggle === true ? "Verberg onderliggende artikelen" : "Toon onderliggende artikelen", class: "recursive-toggle", expanded: this.recursiveToggle === true, icon: this.recursiveToggle === true ? "eye" : "eye-slash", variant: "tertiary", onDsoClick: (e) => this.handleRecursiveToggleClick(e.detail.originalEvent) })), this.showBadge() && (h(Fragment, { key: 'cdb81b0cc410d703c8c9e21621f8c0bf5d97a276' }, h("dso-badge", { key: '8b6fd2528543889faaecf8f937fa0ac6cadc80ec', status: this.badgeStatus, label: this.badgeTooltip ? "Toon toelichting" : undefined }, this.badge, this.badgeTooltip && h("div", { key: '4967e1b13815576b5e166da3d6cbc06e3f22e2ba', slot: "toggletip" }, this.badgeTooltip)))), (this.label || this.annotated) && (h("div", { key: '276f44c01f6ec492c866bb0aeba72ee186cb447d', class: "addons" }, this.label && (h("dso-label", { key: '3ddfcfc595536cfea798c26413c13b51d82a3e2c', status: this.labelStatus, compact: true }, this.label)), this.annotated && this.mode === "document" && (h("dso-icon-button", { key: '9573e100ba6b4cad8be15b7b2a2e9aa817369793', label: `Kenmerken en kaartgegevens ${this.openAnnotation ? "verbergen" : "tonen"}`, icon: "label", expanded: this.openAnnotation, variant: "tertiary", onDsoClick: (e) => this.dsoAnnotationToggle.emit({
|
|
187
190
|
current: this.openAnnotation,
|
|
188
191
|
next: !this.openAnnotation,
|
|
189
192
|
scrollRef: this.host,
|
|
190
193
|
originalEvent: e.detail.originalEvent,
|
|
191
|
-
}) }))))))), this.openAnnotation && (h("div", { key: '
|
|
194
|
+
}) }))))))), this.openAnnotation && (h("div", { key: 'dd3eb5839739a04c8c716c51927d7a7c8a8606bf', class: "annotation-container", part: "_annotation-container", role: "dialog", "aria-labelledby": "annotations-heading" }, h("dso-panel", { key: '6c4d109c892ea8b8f095105667fc2fe4a55ea506', id: "annotations", onDsoCloseClick: (e) => this.dsoAnnotationToggle.emit({
|
|
192
195
|
current: true,
|
|
193
196
|
next: false,
|
|
194
197
|
originalEvent: e,
|
|
195
|
-
}), closeButtonLabel: "Kenmerken en kaartgegevens verbergen" }, h("h2", { key: '
|
|
198
|
+
}), closeButtonLabel: "Kenmerken en kaartgegevens verbergen" }, h("h2", { key: 'd173f5957242b8180fd67f07e5a0f2f71e68ca8e', id: "annotations-heading", slot: "heading" }, "Kenmerken en kaart"), h("slot", { key: 'f17a9b19fd23c5dcb5e914792011c3bcc336da86', name: "annotations" })))), this.open && (this._inhoud || this._gereserveerd || this._vervallen) && this.mode === "document" && (h("div", { key: 'e03b6b7d2db9e8cbc13f9105ab9aa3e2af8a5793', class: "content", part: "_content" }, h(AantekenAlert, { key: '1516df95cd7ffb3795cc71bff9a866892b47501b', gereserveerd: this._gereserveerd, vervallen: this._vervallen }), this._inhoud && (h("dso-ozon-content", { key: 'fee5f88d382231c11aff522eff75b82df5ee6afe', content: this._inhoud, onDsoClick: this.handleOzonContentClick, mark: this.mark && ((text) => this.mark?.(text, "inhoud")), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit({ ...e.detail, source: "inhoud" }), urlResolver: this.ozonContentUrlResolver, begripResolver: this.ozonContentBegripResolver, annotated: this.annotated })))), h("div", { key: '8888df264cefd314382d48505ff8641c20c5cc86', class: "children-container", part: "_children-container" }, h("slot", { key: '56e85d5200913609e0a03c929a2d889c75ae2d7e' }))));
|
|
196
199
|
}
|
|
197
200
|
static get is() { return "dso-document-component"; }
|
|
198
201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -208,25 +211,25 @@ export class DocumentComponent {
|
|
|
208
211
|
}
|
|
209
212
|
static get properties() {
|
|
210
213
|
return {
|
|
211
|
-
"
|
|
212
|
-
"type": "
|
|
214
|
+
"headingLevel": {
|
|
215
|
+
"type": "number",
|
|
213
216
|
"mutable": false,
|
|
214
217
|
"complexType": {
|
|
215
|
-
"original": "
|
|
216
|
-
"resolved": "
|
|
218
|
+
"original": "number",
|
|
219
|
+
"resolved": "number",
|
|
217
220
|
"references": {}
|
|
218
221
|
},
|
|
219
222
|
"required": false,
|
|
220
223
|
"optional": false,
|
|
221
224
|
"docs": {
|
|
222
225
|
"tags": [],
|
|
223
|
-
"text": "The heading
|
|
226
|
+
"text": "The heading level to use (only in mode=\"document\"). When the level is 6 or lower a native heading element\r\n(`<h2>` \u2026 `<h6>`) is rendered; deeper levels are rendered as `<div role=\"heading\" aria-level=\"*\">` because HTML\r\nhas no native heading elements beyond `<h6>`. In mode=\"table-of-contents\" the nested lists carry the structure\r\nand no heading is rendered."
|
|
224
227
|
},
|
|
225
228
|
"getter": false,
|
|
226
229
|
"setter": false,
|
|
227
230
|
"reflect": true,
|
|
228
|
-
"attribute": "heading",
|
|
229
|
-
"defaultValue": "
|
|
231
|
+
"attribute": "heading-level",
|
|
232
|
+
"defaultValue": "2"
|
|
230
233
|
},
|
|
231
234
|
"kop": {
|
|
232
235
|
"type": "string",
|
|
@@ -70,7 +70,7 @@ export class DocumentComponentDemo {
|
|
|
70
70
|
}
|
|
71
71
|
return (h("dso-document-component", { annotated: this.isAnnotated(documentComponent), filtered: this.isOpen(documentComponent)
|
|
72
72
|
? this.isFiltered(documentComponent)
|
|
73
|
-
: this.hasFilteredChildren(documentComponent), gereserveerd: documentComponent.gereserveerd,
|
|
73
|
+
: this.hasFilteredChildren(documentComponent), gereserveerd: documentComponent.gereserveerd, headingLevel: 2, kop: documentComponent.kop, inhoud: documentComponent.inhoud, openAnnotation: this.isOpenedAnnotation(documentComponent), notApplicable: this.isNotApplicable(documentComponent) || path.some((p) => this.isNotApplicable(p)), onDsoAnnotationToggle: (e) => this.handleAnnotationToggle(documentComponent, e.detail), onDsoOpenToggle: () => this.handleOpenToggle(documentComponent), open: this.isOpen(documentComponent), type: documentComponent.type, vervallen: documentComponent.vervallen, wijzigactie: documentComponent.wijzigactie, recursiveToggle: this.recursiveToggleState(documentComponent), onDsoRecursiveToggle: (e) => this.handleRecursiveToggle(documentComponent, e.detail), mode: this.mode, href: this.mode === "table-of-contents" ? "/document/" + documentComponent.documentTechnischId : undefined, onDsoTableOfContentsClick: (e) => this.handleTableOfContentsClick(e), onDsoOzonContentClick: (e) => this.handleOzonContentClick(e), ozonContentUrlResolver: this.ozonContentUrlResolver, ozonContentBegripResolver: this.ozonContentBegripResolver, badge: badge, badgeStatus: badgeStatus, badgeTooltip: badgeTooltip, label: label, labelStatus: labelStatus }, this.isOpenedAnnotation(documentComponent) && (h("div", { slot: "annotations" }, h("dso-annotation-locatie", { active: this.isCheckedSlideToggle(documentComponent), "gewijzigde-locatie": true, locatieNoemer: "Winkelgebied", onDsoActiveChange: () => this.handleSelectableChange(documentComponent) }, h("span", { class: "symboolcode", slot: "symbool", "data-symboolcode": "vszt030" })))), this.showContent(documentComponent) && embeddedDocuments?.documentComponents.length && (h("ul", { class: "dso-document-component-list" }, embeddedDocuments.documentComponents.map((d) => (h("li", { key: d.documentTechnischId }, h(DocumentComponent, { path: [...path, d] }))))))));
|
|
74
74
|
};
|
|
75
75
|
this.MenuButton = ({ documentComponent }) => {
|
|
76
76
|
const { type } = documentComponent;
|
|
@@ -207,7 +207,7 @@ export class DocumentComponentDemo {
|
|
|
207
207
|
}
|
|
208
208
|
render() {
|
|
209
209
|
const { DocumentComponent, MenuButton } = this;
|
|
210
|
-
return (h("dso-responsive-element", { key: '
|
|
210
|
+
return (h("dso-responsive-element", { key: 'ab236260f9a6a0b08cce77c0ff84b9a03b51ce44', class: "dso-document-components" }, h("div", { key: 'bb00e379af2aec12362a4e5eee21b335559866a3', class: "dso-navbar" }, h("ul", { key: 'c35d80d6e616224696d974450bedc34a75abc66e', class: "dso-nav dso-nav-sub" }, this.getEmbeddedDocumentComponents(this.response)?.documentComponents?.map((d) => (h("li", { class: this.document === d ? "dso-active" : undefined }, h(MenuButton, { documentComponent: d })))))), this.document && h(DocumentComponent, { key: '63e65905336d74456fbd29bb97363bbae7411ec6', path: [this.document] })));
|
|
211
211
|
}
|
|
212
212
|
static get is() { return "dsot-document-component-demo"; }
|
|
213
213
|
static get encapsulation() { return "scoped"; }
|
|
@@ -82,10 +82,30 @@ export class DropdownMenu {
|
|
|
82
82
|
return withButton ? [this.host, ...menuItems] : menuItems;
|
|
83
83
|
}
|
|
84
84
|
componentDidRender() {
|
|
85
|
-
|
|
85
|
+
// Only position the popover while it is open. autoUpdate runs on its own ResizeObserver;
|
|
86
|
+
// keeping it active on a closed (hidden) popover computes bogus constraints that force a
|
|
87
|
+
// same-frame correction on the next open.
|
|
88
|
+
if (this.open && this.button && this.popoverElement && !this.cleanUp) {
|
|
86
89
|
const element = this.popoverElement;
|
|
87
90
|
const referenceElement = this.button;
|
|
88
|
-
|
|
91
|
+
let initialUpdate = true;
|
|
92
|
+
const applyPopoverStyles = (x, y) => {
|
|
93
|
+
if (!element.isConnected) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (this.pendingPopoverConstraints) {
|
|
97
|
+
const scrollElement = element.querySelector("dso-scrollable") ?? element;
|
|
98
|
+
Object.assign(scrollElement.style, {
|
|
99
|
+
maxHeight: `${this.pendingPopoverConstraints.availableHeight}px`,
|
|
100
|
+
maxInlineSize: `${this.pendingPopoverConstraints.availableWidth}px`,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
Object.assign(element.style, {
|
|
104
|
+
left: `${x}px`,
|
|
105
|
+
top: `${y}px`,
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
const autoUpdateCleanUp = autoUpdate(referenceElement, element, () => {
|
|
89
109
|
computePosition(referenceElement, element, {
|
|
90
110
|
strategy: "fixed",
|
|
91
111
|
middleware: [
|
|
@@ -94,23 +114,42 @@ export class DropdownMenu {
|
|
|
94
114
|
padding: 2,
|
|
95
115
|
}),
|
|
96
116
|
size({
|
|
97
|
-
apply({ availableHeight, availableWidth
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
117
|
+
apply: ({ availableHeight, availableWidth }) => {
|
|
118
|
+
// No direct DOM writes here: this callback runs inside the autoUpdate
|
|
119
|
+
// ResizeObserver cycle and would trigger "ResizeObserver loop completed
|
|
120
|
+
// with undelivered notifications". The constraints are applied together
|
|
121
|
+
// with the position, see applyPopoverStyles.
|
|
122
|
+
this.pendingPopoverConstraints = { availableWidth, availableHeight };
|
|
103
123
|
},
|
|
104
124
|
}),
|
|
105
125
|
],
|
|
106
126
|
placement: "bottom-start",
|
|
107
127
|
}).then(({ x, y }) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
128
|
+
if (initialUpdate) {
|
|
129
|
+
// The first update runs outside the ResizeObserver cycle and is applied
|
|
130
|
+
// directly so the popover does not show up unpositioned.
|
|
131
|
+
initialUpdate = false;
|
|
132
|
+
applyPopoverStyles(x, y);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// Defer DOM writes until the next frame so ResizeObserver notifications can
|
|
136
|
+
// settle before the popover mutates its own layout again.
|
|
137
|
+
if (this.popoverFrameId !== undefined) {
|
|
138
|
+
cancelAnimationFrame(this.popoverFrameId);
|
|
139
|
+
}
|
|
140
|
+
this.popoverFrameId = requestAnimationFrame(() => {
|
|
141
|
+
this.popoverFrameId = undefined;
|
|
142
|
+
applyPopoverStyles(x, y);
|
|
111
143
|
});
|
|
112
144
|
});
|
|
113
145
|
});
|
|
146
|
+
this.cleanUp = () => {
|
|
147
|
+
if (this.popoverFrameId !== undefined) {
|
|
148
|
+
cancelAnimationFrame(this.popoverFrameId);
|
|
149
|
+
this.popoverFrameId = undefined;
|
|
150
|
+
}
|
|
151
|
+
autoUpdateCleanUp();
|
|
152
|
+
};
|
|
114
153
|
}
|
|
115
154
|
}
|
|
116
155
|
toggleOptions(force) {
|
|
@@ -161,7 +200,7 @@ export class DropdownMenu {
|
|
|
161
200
|
}
|
|
162
201
|
render() {
|
|
163
202
|
const buttonId = uuidv4();
|
|
164
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: '86c4a174ec1a4f8083f6e13728bef4d0fbf73d2b', onFocusout: this.focusOutListener, onKeyDown: this.keyDownHandler }, this.label && (h("button", { key: '6b93303a8ee2717870bc52147667485e9f56c0cb', id: buttonId, class: `dso-${this.variant}`, type: "button", onClick: () => this.toggleOptions(), "aria-expanded": this.open.toString(), "aria-haspopup": "menu", ref: (element) => (this.button = element) }, this.label, h("dso-icon", { key: '02d4af678a2de9e68c6c7983279e8a8af1b221d5', icon: this.open ? "chevron-up" : "chevron-down" }))), h("div", { key: '0653885c62d4e5f9e6567cd1a06ef1f60c31bd50', popover: "manual", class: "dso-dropdown-options", "aria-labelledby": buttonId, role: "menu", ref: (element) => (this.popoverElement = element) }, h("dso-scrollable", { key: '008a6527bce7398d5bf016431c90343011b62596' }, h("slot", { key: 'cbfdd95cd211485fc8672e9dff1f3bb3ed233d99' })))));
|
|
165
204
|
}
|
|
166
205
|
static get is() { return "dso-dropdown-menu"; }
|
|
167
206
|
static get encapsulation() { return "shadow"; }
|
|
@@ -199,9 +199,29 @@ export class Header {
|
|
|
199
199
|
if (typeof this.visibleMenuItemsCount === "undefined" && this.navElement) {
|
|
200
200
|
this.visibleMenuItemsCount = this.calculateOverflowMenuItemCount(this.navElement);
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
// Only position the popover while it is open. autoUpdate runs on its own ResizeObserver;
|
|
203
|
+
// keeping it active on a closed (hidden) popover computes bogus constraints that force a
|
|
204
|
+
// same-frame correction on the next open.
|
|
205
|
+
if (this.open && this.popoverElement && !this.cleanUp && this.dropdownButtonElement) {
|
|
203
206
|
const element = this.popoverElement;
|
|
204
|
-
|
|
207
|
+
let initialUpdate = true;
|
|
208
|
+
const applyPopoverStyles = (x, y) => {
|
|
209
|
+
if (!element.isConnected) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (this.pendingPopoverConstraints) {
|
|
213
|
+
const scrollElement = element.querySelector(".dropdown-menu-options") ?? element;
|
|
214
|
+
Object.assign(scrollElement.style, {
|
|
215
|
+
maxHeight: `${this.pendingPopoverConstraints.availableHeight}px`,
|
|
216
|
+
maxInlineSize: `${this.pendingPopoverConstraints.availableWidth}px`,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
Object.assign(element.style, {
|
|
220
|
+
left: `${x}px`,
|
|
221
|
+
top: `${y}px`,
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
const autoUpdateCleanUp = autoUpdate(this.dropdownButtonElement, element, () => {
|
|
205
225
|
if (this.dropdownButtonElement) {
|
|
206
226
|
computePosition(this.dropdownButtonElement, element, {
|
|
207
227
|
strategy: "fixed",
|
|
@@ -211,28 +231,47 @@ export class Header {
|
|
|
211
231
|
padding: this.dropdownOptionsOffset,
|
|
212
232
|
}),
|
|
213
233
|
size({
|
|
214
|
-
apply({ availableHeight, availableWidth
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
234
|
+
apply: ({ availableHeight, availableWidth }) => {
|
|
235
|
+
// No direct DOM writes here: this callback runs inside the autoUpdate
|
|
236
|
+
// ResizeObserver cycle and would trigger "ResizeObserver loop completed
|
|
237
|
+
// with undelivered notifications". The constraints are applied together
|
|
238
|
+
// with the position, see applyPopoverStyles.
|
|
239
|
+
this.pendingPopoverConstraints = { availableWidth, availableHeight };
|
|
220
240
|
},
|
|
221
241
|
}),
|
|
222
242
|
],
|
|
223
243
|
placement: this.isCompact ? "bottom-end" : "bottom-start",
|
|
224
244
|
}).then(({ x, y }) => {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
245
|
+
if (initialUpdate) {
|
|
246
|
+
// The first update runs outside the ResizeObserver cycle and is applied
|
|
247
|
+
// directly so the popover does not show up unpositioned.
|
|
248
|
+
initialUpdate = false;
|
|
249
|
+
applyPopoverStyles(x, y);
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
// Defer DOM writes until the next frame so ResizeObserver notifications can
|
|
253
|
+
// settle before the popover mutates its own layout again.
|
|
254
|
+
if (this.popoverFrameId !== undefined) {
|
|
255
|
+
cancelAnimationFrame(this.popoverFrameId);
|
|
256
|
+
}
|
|
257
|
+
this.popoverFrameId = requestAnimationFrame(() => {
|
|
258
|
+
this.popoverFrameId = undefined;
|
|
259
|
+
applyPopoverStyles(x, y);
|
|
228
260
|
});
|
|
229
261
|
});
|
|
230
262
|
}
|
|
231
263
|
});
|
|
264
|
+
this.cleanUp = () => {
|
|
265
|
+
if (this.popoverFrameId !== undefined) {
|
|
266
|
+
cancelAnimationFrame(this.popoverFrameId);
|
|
267
|
+
this.popoverFrameId = undefined;
|
|
268
|
+
}
|
|
269
|
+
autoUpdateCleanUp();
|
|
270
|
+
};
|
|
232
271
|
}
|
|
233
272
|
}
|
|
234
273
|
render() {
|
|
235
|
-
return (h(Host, { key: '
|
|
274
|
+
return (h(Host, { key: '0ea04cc1432dd27da79f2fecaf342beb4486f99a', "is-compact": this.isCompact }, h("div", { key: '471e73275bf1d645fbcb83e35dc6bb5612a800ba', class: "dso-header" }, h("div", { key: '795356c3f82e93df6ff699db5b36540aaee7e832', class: "logo-container" }, h("slot", { key: '9dcdcdf2f5e6292fe31b25915d263e3505047312', name: "logo" })), this.isCompact ? this.renderCompact() : this.renderNormal())));
|
|
236
275
|
}
|
|
237
276
|
tabbables(withButton) {
|
|
238
277
|
const tabbables = this.dropdownElement ? tabbable(this.dropdownElement) : [];
|
|
@@ -214,11 +214,9 @@
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
::slotted(img.dso-highlight-box-banner) {
|
|
217
|
+
--_dso-image-margin-inline: -16px -16px;
|
|
218
|
+
--_dso-image-margin-block: -16px 8px;
|
|
217
219
|
aspect-ratio: 2.38/1;
|
|
218
|
-
margin-inline-start: -16px;
|
|
219
|
-
margin-inline-end: -16px;
|
|
220
|
-
margin-block-start: -16px;
|
|
221
|
-
margin-block-end: 8px;
|
|
222
220
|
object-fit: cover;
|
|
223
221
|
inline-size: calc(100% + 32px);
|
|
224
222
|
max-inline-size: unset !important;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
:host {
|
|
2
8
|
display: block;
|
|
3
9
|
padding-block: 16px;
|
|
@@ -34,6 +40,10 @@
|
|
|
34
40
|
--_dso-button-tertiary-disabled-color: #999;
|
|
35
41
|
background-color: #f2f2f2;
|
|
36
42
|
color: #191919;
|
|
43
|
+
--_dso-image-display: block;
|
|
44
|
+
--_dso-image-margin-block: 8px;
|
|
45
|
+
--_dso-image-margin-inline: auto;
|
|
46
|
+
--_dso-rich-content-margin-block-start: 0;
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
:host(:not([active], [fixed])),
|
|
@@ -46,21 +56,4 @@ dso-icon-button {
|
|
|
46
56
|
position: absolute;
|
|
47
57
|
inset-inline-end: 8px;
|
|
48
58
|
inset-block-start: 8px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
*,
|
|
52
|
-
*::after,
|
|
53
|
-
*::before {
|
|
54
|
-
box-sizing: border-box;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.sr-only {
|
|
58
|
-
position: absolute;
|
|
59
|
-
inline-size: 1px;
|
|
60
|
-
block-size: 1px;
|
|
61
|
-
padding: 0;
|
|
62
|
-
margin: -1px;
|
|
63
|
-
border: 0;
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
clip-path: rect(0 0 0 0);
|
|
66
59
|
}
|