@db-ux/wc-core-components 4.12.0 → 4.12.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/CHANGELOG.md +8 -0
- package/bundle/db-custom-select-list-item.js +1 -1
- package/bundle/db-custom-select.js +1 -1
- package/bundle/db-drawer.js +1 -1
- package/bundle/db-header.js +1 -1
- package/bundle/db-navigation-item.js +1 -1
- package/bundle/db-popover.js +1 -1
- package/bundle/db-tag.js +1 -1
- package/bundle/db-tooltip.js +1 -1
- package/bundle/index.js +1 -1
- package/bundle/p-BFeR7jXy.js +1 -0
- package/bundle/p-C0q9XJSc.js +1 -0
- package/bundle/{p-BuBrj57D.js → p-C_qYW0Kh.js} +1 -1
- package/bundle/{p-BvgvWjGH.js → p-CuC4YsIB.js} +1 -1
- package/bundle/{p-DFypNnh0.js → p-gIJnyld5.js} +1 -1
- package/bundle/p-k8bCF_aj.js +1 -0
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +15 -7
- package/dist/cjs/db-drawer.cjs.entry.js +28 -7
- package/dist/cjs/db-header.cjs.entry.js +2 -2
- package/dist/cjs/db-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/{floating-components-DlstoCKH.js → floating-components-SpHkZuLA.js} +53 -8
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{navigation-Bah882nU.js → navigation-DUTSDY4q.js} +1 -1
- package/dist/collection/components/custom-select/custom-select.js +14 -6
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
- package/dist/collection/components/drawer/drawer.js +29 -7
- package/dist/collection/utils/floating-components.js +53 -8
- package/dist/custom-elements.json +119 -20
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-88dcff6a.entry.js → p-183c78b7.entry.js} +1 -1
- package/dist/db-ux/p-4751361d.entry.js +1 -0
- package/dist/db-ux/{p-bb5149a9.entry.js → p-5623ff36.entry.js} +1 -1
- package/dist/db-ux/{p-ef63c591.entry.js → p-87281518.entry.js} +1 -1
- package/dist/db-ux/p-C0q9XJSc.js +1 -0
- package/dist/db-ux/{p-BuBrj57D.js → p-C_qYW0Kh.js} +1 -1
- package/dist/db-ux/p-a6f33f3b.entry.js +1 -0
- package/dist/db-ux/p-f271332c.entry.js +1 -0
- package/dist/db-ux/{p-6fd70ba4.entry.js → p-f5f73623.entry.js} +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +15 -7
- package/dist/esm/db-drawer.entry.js +28 -7
- package/dist/esm/db-header.entry.js +2 -2
- package/dist/esm/db-navigation-item.entry.js +2 -2
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-tooltip.entry.js +1 -1
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/{floating-components-DOPXnIzL.js → floating-components-C0q9XJSc.js} +53 -8
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{navigation-Jh6m0eMk.js → navigation-Cd7KZ6E2.js} +1 -1
- package/dist/types/components/drawer/drawer.d.ts +4 -1
- package/dist/types/components/drawer/model.d.ts +3 -0
- package/dist/vscode.html-custom-data.json +6 -0
- package/dist/web-types.json +13 -1
- package/package.json +3 -3
- package/bundle/p-DOPXnIzL.js +0 -1
- package/bundle/p-DW47OZNu.js +0 -1
- package/bundle/p-n2qePi9e.js +0 -1
- package/dist/db-ux/p-4a94fbc9.entry.js +0 -1
- package/dist/db-ux/p-96978a7f.entry.js +0 -1
- package/dist/db-ux/p-DOPXnIzL.js +0 -1
- package/dist/db-ux/p-a4fb4782.entry.js +0 -1
package/dist/db-ux/db-ux.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-BlbKvvUv.js";export{s as setNonce}from"./p-BlbKvvUv.js";import{g as i}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await i(),a(JSON.parse('[["p-4a94fbc9",[[260,"db-custom-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"ariaDescribedBy":[1,"aria-described-by"],"showNoResults":[4,"show-no-results"],"showLoading":[4,"show-loading"],"multiple":[8],"showSelectAll":[4,"show-select-all"],"showSearch":[4,"show-search"],"values":[16],"validation":[1],"options":[16],"searchValue":[1,"search-value"],"selectedLabels":[1,"selected-labels"],"transformSelectedLabels":[16],"selectedType":[1,"selected-type"],"amountText":[1,"amount-text"],"validMessage":[1,"valid-message"],"required":[8],"selectAllLabel":[1,"select-all-label"],"removeTagsTexts":[16],"placement":[1],"searchFilter":[16],"className":[1,"classname"],"formFieldWidth":[1,"form-field-width"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"form":[1],"name":[1],"disabled":[8],"open":[4],"selectedPrefix":[1,"selected-prefix"],"dropdownWidth":[1,"dropdown-width"],"searchLabel":[1,"search-label"],"searchPlaceholder":[1,"search-placeholder"],"listLabel":[1,"list-label"],"loadingText":[1,"loading-text"],"noResultsText":[1,"no-results-text"],"mobileCloseButtonText":[1,"mobile-close-button-text"],"showClearSelection":[4,"show-clear-selection"],"clearSelectionText":[1,"clear-selection-text"],"placeholder":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_selectId":[32],"_labelId":[32],"_summaryId":[32],"_placeholderId":[32],"_infoTextId":[32],"_validity":[32],"_userInteraction":[32],"abortController":[32],"_descByIds":[32],"_selectedLabels":[32],"_selectedLabelsId":[32],"_voiceOverFallback":[32],"_selectedOptions":[32],"selectAllEnabled":[32],"searchEnabled":[32],"amountOptions":[32],"_values":[32],"_options":[32],"_hasNoOptions":[32],"_documentClickListenerCallbackId":[32],"_internalChangeTimestamp":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"_searchValue":[32],"selectAllChecked":[32],"selectAllIndeterminate":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"detailsRef":[{"watch1":0},{"watch3":0}],"_id":[{"watch2":0}],"_descByIds":[{"watch3":0}],"showNoResults":[{"watch4":0}],"showLoading":[{"watch4":0}],"_options":[{"watch4":0}],"showSelectAll":[{"watch5":0}],"amountOptions":[{"watch5":0},{"watch6":0},{"watch11":0}],"multiple":[{"watch5":0}],"showSearch":[{"watch6":0}],"values":[{"watch7":0}],"_values":[{"watch8":0},{"watch11":0},{"watch14":0}],"selectRef":[{"watch8":0},{"watch9":0},{"watch18":0}],"validation":[{"watch10":0}],"options":[{"watch12":0},{"watch14":0}],"searchValue":[{"watch13":0}],"_selectedOptions":[{"watch15":0},{"watch16":0}],"selectedType":[{"watch15":0}],"amountText":[{"watch15":0}],"selectedLabels":[{"watch15":0}],"transformSelectedLabels":[{"watch15":0}],"selectAllIndeterminate":[{"watch17":0}],"selectAllRef":[{"watch17":0}],"invalidMessage":[{"watch18":0}]}]]],["p-77a47225",[[260,"db-table",{"data":[1],"mobileVariant":[1,"mobile-variant"],"columnSizes":[16],"className":[1,"classname"],"width":[1],"size":[1],"divider":[1],"variant":[1],"showCaption":[8,"show-caption"],"stickyHeader":[1,"sticky-header"],"id":[1],"captionPlain":[1,"caption-plain"],"_data":[32],"_style":[32],"observer":[32]},null,{"data":[{"watch0":0}],"mobileVariant":[{"watch1":0}],"_ref":[{"watch1":0}],"_data":[{"watch1":0}],"columnSizes":[{"watch2":0}]}]]],["p-f0b5c785",[[260,"db-tabs",{"name":[1],"tabs":[1],"arrowScrollDistance":[8,"arrow-scroll-distance"],"orientation":[1],"behavior":[1],"initialSelectedMode":[1,"initial-selected-mode"],"initialSelectedIndex":[8,"initial-selected-index"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"alignment":[1],"width":[1],"_name":[32],"initialized":[32],"showScrollLeft":[32],"showScrollRight":[32],"scrollContainer":[32],"_resizeObserver":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-88dcff6a",[[260,"db-header",{"forceMobile":[8,"force-mobile"],"drawerOpen":[8,"drawer-open"],"className":[1,"classname"],"id":[1],"propOverrides":[16],"width":[1],"burgerMenuLabel":[1,"burger-menu-label"],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"initialized":[32],"forcedToMobile":[32],"observer":[32]},null,{"initialized":[{"watch0":0}],"_ref":[{"watch0":0}]}]]],["p-a8556349",[[260,"db-accordion",{"name":[1],"behavior":[1],"initOpenIndex":[16],"items":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"variant":[1],"_name":[32],"initialized":[32],"_initOpenIndexDone":[32],"observer":[32]},null,{"initialized":[{"watch0":0}],"name":[{"watch0":0}],"behavior":[{"watch0":0}],"_ref":[{"watch1":0},{"watch2":0}],"_name":[{"watch1":0}],"_initOpenIndexDone":[{"watch2":0}],"initOpenIndex":[{"watch2":0}]}]]],["p-81edb316",[[260,"db-checkbox",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"indeterminate":[8],"checked":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"className":[1,"classname"],"size":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"name":[1],"disabled":[8],"value":[8],"ariaDescribedBy":[1,"aria-described-by"],"label":[1],"messageIcon":[1,"message-icon"],"initialized":[32],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch3":0},{"watch4":0},{"watch5":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch3":0},{"watch4":0}],"indeterminate":[{"watch3":0}],"checked":[{"watch4":0}]}]]],["p-bb5149a9",[[260,"db-navigation-item",{"id":[1],"subNavigationExpanded":[8,"sub-navigation-expanded"],"propOverrides":[16],"className":[1,"classname"],"width":[1],"icon":[1],"showIcon":[8,"show-icon"],"active":[4],"wrap":[8],"disabled":[8],"hideSubNavigation":[8,"hide-sub-navigation"],"text":[1],"backButtonId":[1,"back-button-id"],"backButtonText":[1,"back-button-text"],"initialized":[32],"hasAreaPopup":[32],"hasSubNavigation":[32],"isSubNavigationExpanded":[32],"autoClose":[32],"navigationItemSafeTriangle":[32],"subNavigationId":[32],"subNavigationToggleId":[32],"observer":[32]},null,{"subNavigationExpanded":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0}]}]]],["p-a07e33e7",[[260,"db-notification",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"role":[1],"ariaLive":[1,"aria-live"],"variant":[1],"showIcon":[8,"show-icon"],"icon":[1],"linkVariant":[1,"link-variant"],"headline":[8],"showHeadline":[8,"show-headline"],"text":[1],"timestamp":[1],"showTimestamp":[8,"show-timestamp"],"timestampDatetime":[1,"timestamp-datetime"],"closeable":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"observer":[32]}]]],["p-70b6ebcd",[[260,"db-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"placeholder":[1],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"variant":[1],"showEmptyOption":[4,"show-empty-option"],"className":[1,"classname"],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"disabled":[8],"name":[1],"size":[2],"autocomplete":[1],"multiple":[4],"ariaDescribedBy":[1,"aria-described-by"],"options":[16],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_placeholderId":[32],"_descByIds":[32],"_value":[32],"initialized":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-68f00121",[[260,"db-switch",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"validation":[1],"required":[8],"message":[1],"showMessage":[8,"show-message"],"validMessage":[1,"valid-message"],"checked":[8],"disabled":[8],"visualAid":[8,"visual-aid"],"size":[1],"showLabel":[8,"show-label"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"value":[8],"name":[1],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"label":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"validation":[{"watch1":0}],"required":[{"watch1":0}],"message":[{"watch1":0}],"showMessage":[{"watch1":0}],"validMessage":[{"watch1":0}],"invalidMessage":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}],"_ref":[{"watch2":0},{"watch3":0}]}]]],["p-e58fbd4d",[[0,"db-textarea",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"className":[1,"classname"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"label":[1],"fieldSizing":[1,"field-sizing"],"resize":[1],"showResizer":[8,"show-resizer"],"disabled":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"maxlength":[8],"minlength":[8],"name":[1],"wrap":[1],"spellCheck":[4,"spell-check"],"autocomplete":[1],"ariaDescribedBy":[1,"aria-described-by"],"placeholder":[1],"rows":[8],"cols":[8],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-6b8375e8",[[260,"db-badge",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"size":[1],"emphasis":[1],"wrap":[8],"label":[1],"text":[1],"initialized":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-2c23efe2",[[260,"db-brand",{"hideLogo":[4,"hide-logo"],"icon":[1],"showIcon":[8,"show-icon"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"text":[1],"observer":[32]}]]],["p-37bf8d87",[[260,"db-card",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"behavior":[1],"elevationLevel":[1,"elevation-level"],"spacing":[1],"observer":[32]}]]],["p-f964d5f5",[[260,"db-custom-button",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"noText":[8,"no-text"],"observer":[32]}]]],["p-d9d006e7",[[260,"db-custom-select-form-field",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}]]],["p-57527cef",[[0,"db-divider",{"id":[1],"propOverrides":[16],"margin":[1],"variant":[1],"emphasis":[1],"width":[1],"className":[1,"classname"],"observer":[32]}]]],["p-db1b9f5d",[[260,"db-icon",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"weight":[1],"variant":[1],"text":[1],"observer":[32]}]]],["p-1e70d93f",[[260,"db-navigation",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}]]],["p-6ce4a109",[[260,"db-page",{"fadeIn":[8,"fade-in"],"documentOverflow":[1,"document-overflow"],"variant":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"mainClass":[1,"main-class"],"fontsLoaded":[32],"observer":[32]}]]],["p-ef63c591",[[260,"db-popover",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"gap":[8],"animation":[8],"open":[8],"delay":[1],"width":[1],"initialized":[32],"isExpanded":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"observer":[32]},null,{"_ref":[{"watch0":0},{"watch1":0}],"initialized":[{"watch0":0}],"isExpanded":[{"watch1":0}]}]]],["p-38c55e9c",[[260,"db-radio",{"id":[1],"propOverrides":[16],"checked":[8],"size":[1],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"validation":[1],"name":[1],"disabled":[8],"value":[8],"required":[8],"label":[1],"initialized":[32],"_id":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}]}]]],["p-6fdc00bd",[[260,"db-section",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"width":[1],"observer":[32]}]]],["p-a176424b",[[260,"db-stack",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"gap":[1],"variant":[1],"direction":[1],"alignment":[1],"justifyContent":[1,"justify-content"],"wrap":[8],"observer":[32]}]]],["p-e66aa9d8",[[260,"db-table-caption",{"id":[1],"className":[1,"classname"],"observer":[32]}]]],["p-96978a7f",[[260,"db-drawer",{"open":[8],"position":[1],"backdrop":[1],"variant":[1],"id":[1],"propOverrides":[16],"direction":[1],"className":[1,"classname"],"spacing":[1],"width":[1],"rounded":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"initialized":[32],"observer":[32]},null,{"open":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"position":[{"watch1":0}]}]]],["p-71399ee3",[[260,"db-accordion-item",{"defaultOpen":[4,"default-open"],"name":[1],"open":[8],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"headlinePlain":[1,"headline-plain"],"text":[1],"_open":[32],"_name":[32],"initialized":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"name":[{"watch1":0}],"open":[{"watch2":0}]}]]],["p-6fd70ba4",[[260,"db-tooltip",{"id":[1],"propOverrides":[16],"variant":[1],"placement":[1],"className":[1,"classname"],"emphasis":[1],"wrap":[8],"animation":[8],"delay":[1],"width":[1],"showArrow":[8,"show-arrow"],"text":[1],"_id":[32],"initialized":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"_attachedParent":[32],"_attachedId":[32],"_activeTriggerCount":[32],"_boundListeners":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"_id":[{"watch1":0}]}]]],["p-90e9ec2d",[[260,"db-table-body",{"id":[1],"className":[1,"classname"],"rows":[16]}],[260,"db-table-footer",{"id":[1],"className":[1,"classname"],"rows":[16]}],[260,"db-table-head",{"id":[1],"className":[1,"classname"],"rows":[16],"observer":[32]}]]],["p-eedf08e0",[[260,"db-tab-item",{"active":[8],"name":[1],"className":[1,"classname"],"id":[1],"propOverrides":[16],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"showIconTrailing":[8,"show-icon-trailing"],"noText":[8,"no-text"],"disabled":[8],"checked":[8],"label":[1],"_selected":[32],"_name":[32],"initialized":[32],"_listenerAdded":[32],"boundSetSelectedOnChange":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"boundSetSelectedOnChange":[{"watch0":0}],"name":[{"watch1":0}]}],[260,"db-tab-list",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}],[260,"db-tab-panel",{"className":[1,"classname"],"id":[1],"propOverrides":[16],"content":[1],"observer":[32]}]]],["p-a4fb4782",[[260,"db-input",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"dataListId":[1,"data-list-id"],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"pattern":[1],"dataList":[16],"className":[1,"classname"],"variant":[1],"showLabel":[8,"show-label"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showRequiredAsterisk":[8,"show-required-asterisk"],"showIconTrailing":[8,"show-icon-trailing"],"label":[1],"fieldSizing":[1,"field-sizing"],"name":[1],"type":[1],"multiple":[8],"accept":[1],"placeholder":[1],"disabled":[8],"step":[8],"maxlength":[8],"minlength":[8],"max":[8],"min":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"size":[2],"autocomplete":[1],"autofocus":[8],"enterkeyhint":[1],"inputmode":[1],"ariaDescribedBy":[1,"aria-described-by"],"messageSize":[1,"message-size"],"messageIcon":[1,"message-icon"],"validMessageSize":[1,"valid-message-size"],"invalidMessageSize":[1,"invalid-message-size"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_dataListId":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}],[260,"db-tag",{"removeButton":[1,"remove-button"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"emphasis":[1],"icon":[1],"showCheckState":[8,"show-check-state"],"showIcon":[8,"show-icon"],"noText":[8,"no-text"],"overflow":[8],"text":[1],"behavior":[1],"observer":[32]}],[260,"db-custom-select-dropdown",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"width":[1],"observer":[32]}],[260,"db-custom-select-list",{"multiple":[4],"label":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}],[260,"db-custom-select-list-item",{"isGroupTitle":[4,"is-group-title"],"showDivider":[4,"show-divider"],"type":[1],"checked":[8],"id":[1],"propOverrides":[16],"className":[1,"classname"],"groupTitle":[1,"group-title"],"icon":[1],"showIcon":[8,"show-icon"],"name":[1],"disabled":[8],"value":[8],"label":[1],"hasDivider":[32],"observer":[32]},null,{"isGroupTitle":[{"watch0":0}],"showDivider":[{"watch0":0}]}]]],["p-0758418a",[[260,"db-button",{"type":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"wrap":[8],"noText":[8,"no-text"],"name":[1],"form":[1],"value":[1],"text":[1],"observer":[32]}]]],["p-6d41baf1",[[260,"db-infotext",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"semantic":[1],"size":[1],"wrap":[8],"showIcon":[8,"show-icon"],"text":[1],"observer":[32]}]]],["p-5706f20a",[[260,"db-table-row",{"id":[1],"className":[1,"classname"],"interactive":[8],"subHeaderEmphasis":[1,"sub-header-emphasis"],"cells":[16]}],[260,"db-link",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"href":[1],"target":[1],"rel":[1],"role":[1],"referrerpolicy":[1],"referrerPolicy":[1,"referrer-policy"],"hreflang":[1],"disabled":[8],"size":[1],"showIcon":[8,"show-icon"],"variant":[1],"content":[1],"wrap":[8],"text":[1],"observer":[32]}],[260,"db-table-data-cell",{"id":[1],"className":[1,"classname"],"horizontalAlignment":[1,"horizontal-alignment"],"verticalAlignment":[1,"vertical-alignment"],"colSpan":[8,"col-span"],"colspan":[8],"rowSpan":[8,"row-span"],"rowspan":[8],"headers":[1]}],[260,"db-table-header-cell",{"id":[1],"className":[1,"classname"],"horizontalAlignment":[1,"horizontal-alignment"],"verticalAlignment":[1,"vertical-alignment"],"noText":[8,"no-text"],"scope":[1],"colSpan":[8,"col-span"],"colspan":[8],"rowSpan":[8,"row-span"],"rowspan":[8],"headers":[1],"abbr":[1]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as a}from"./p-BlbKvvUv.js";export{s as setNonce}from"./p-BlbKvvUv.js";import{g as i}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await i(),a(JSON.parse('[["p-4751361d",[[260,"db-custom-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"ariaDescribedBy":[1,"aria-described-by"],"showNoResults":[4,"show-no-results"],"showLoading":[4,"show-loading"],"multiple":[8],"showSelectAll":[4,"show-select-all"],"showSearch":[4,"show-search"],"values":[16],"validation":[1],"options":[16],"searchValue":[1,"search-value"],"selectedLabels":[1,"selected-labels"],"transformSelectedLabels":[16],"selectedType":[1,"selected-type"],"amountText":[1,"amount-text"],"validMessage":[1,"valid-message"],"required":[8],"selectAllLabel":[1,"select-all-label"],"removeTagsTexts":[16],"placement":[1],"searchFilter":[16],"className":[1,"classname"],"formFieldWidth":[1,"form-field-width"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"form":[1],"name":[1],"disabled":[8],"open":[4],"selectedPrefix":[1,"selected-prefix"],"dropdownWidth":[1,"dropdown-width"],"searchLabel":[1,"search-label"],"searchPlaceholder":[1,"search-placeholder"],"listLabel":[1,"list-label"],"loadingText":[1,"loading-text"],"noResultsText":[1,"no-results-text"],"mobileCloseButtonText":[1,"mobile-close-button-text"],"showClearSelection":[4,"show-clear-selection"],"clearSelectionText":[1,"clear-selection-text"],"placeholder":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_selectId":[32],"_labelId":[32],"_summaryId":[32],"_placeholderId":[32],"_infoTextId":[32],"_validity":[32],"_userInteraction":[32],"abortController":[32],"_descByIds":[32],"_selectedLabels":[32],"_selectedLabelsId":[32],"_voiceOverFallback":[32],"_selectedOptions":[32],"selectAllEnabled":[32],"searchEnabled":[32],"amountOptions":[32],"_values":[32],"_options":[32],"_hasNoOptions":[32],"_documentClickListenerCallbackId":[32],"_internalChangeTimestamp":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"_searchValue":[32],"selectAllChecked":[32],"selectAllIndeterminate":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"detailsRef":[{"watch1":0},{"watch3":0}],"_id":[{"watch2":0}],"_descByIds":[{"watch3":0}],"showNoResults":[{"watch4":0}],"showLoading":[{"watch4":0}],"_options":[{"watch4":0}],"showSelectAll":[{"watch5":0}],"amountOptions":[{"watch5":0},{"watch6":0},{"watch11":0}],"multiple":[{"watch5":0}],"showSearch":[{"watch6":0}],"values":[{"watch7":0}],"_values":[{"watch8":0},{"watch11":0},{"watch14":0}],"selectRef":[{"watch8":0},{"watch9":0},{"watch18":0}],"validation":[{"watch10":0}],"options":[{"watch12":0},{"watch14":0}],"searchValue":[{"watch13":0}],"_selectedOptions":[{"watch15":0},{"watch16":0}],"selectedType":[{"watch15":0}],"amountText":[{"watch15":0}],"selectedLabels":[{"watch15":0}],"transformSelectedLabels":[{"watch15":0}],"selectAllIndeterminate":[{"watch17":0}],"selectAllRef":[{"watch17":0}],"invalidMessage":[{"watch18":0}]}]]],["p-77a47225",[[260,"db-table",{"data":[1],"mobileVariant":[1,"mobile-variant"],"columnSizes":[16],"className":[1,"classname"],"width":[1],"size":[1],"divider":[1],"variant":[1],"showCaption":[8,"show-caption"],"stickyHeader":[1,"sticky-header"],"id":[1],"captionPlain":[1,"caption-plain"],"_data":[32],"_style":[32],"observer":[32]},null,{"data":[{"watch0":0}],"mobileVariant":[{"watch1":0}],"_ref":[{"watch1":0}],"_data":[{"watch1":0}],"columnSizes":[{"watch2":0}]}]]],["p-f0b5c785",[[260,"db-tabs",{"name":[1],"tabs":[1],"arrowScrollDistance":[8,"arrow-scroll-distance"],"orientation":[1],"behavior":[1],"initialSelectedMode":[1,"initial-selected-mode"],"initialSelectedIndex":[8,"initial-selected-index"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"alignment":[1],"width":[1],"_name":[32],"initialized":[32],"showScrollLeft":[32],"showScrollRight":[32],"scrollContainer":[32],"_resizeObserver":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-183c78b7",[[260,"db-header",{"forceMobile":[8,"force-mobile"],"drawerOpen":[8,"drawer-open"],"className":[1,"classname"],"id":[1],"propOverrides":[16],"width":[1],"burgerMenuLabel":[1,"burger-menu-label"],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"initialized":[32],"forcedToMobile":[32],"observer":[32]},null,{"initialized":[{"watch0":0}],"_ref":[{"watch0":0}]}]]],["p-a8556349",[[260,"db-accordion",{"name":[1],"behavior":[1],"initOpenIndex":[16],"items":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"variant":[1],"_name":[32],"initialized":[32],"_initOpenIndexDone":[32],"observer":[32]},null,{"initialized":[{"watch0":0}],"name":[{"watch0":0}],"behavior":[{"watch0":0}],"_ref":[{"watch1":0},{"watch2":0}],"_name":[{"watch1":0}],"_initOpenIndexDone":[{"watch2":0}],"initOpenIndex":[{"watch2":0}]}]]],["p-81edb316",[[260,"db-checkbox",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"indeterminate":[8],"checked":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"className":[1,"classname"],"size":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"name":[1],"disabled":[8],"value":[8],"ariaDescribedBy":[1,"aria-described-by"],"label":[1],"messageIcon":[1,"message-icon"],"initialized":[32],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch3":0},{"watch4":0},{"watch5":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch3":0},{"watch4":0}],"indeterminate":[{"watch3":0}],"checked":[{"watch4":0}]}]]],["p-5623ff36",[[260,"db-navigation-item",{"id":[1],"subNavigationExpanded":[8,"sub-navigation-expanded"],"propOverrides":[16],"className":[1,"classname"],"width":[1],"icon":[1],"showIcon":[8,"show-icon"],"active":[4],"wrap":[8],"disabled":[8],"hideSubNavigation":[8,"hide-sub-navigation"],"text":[1],"backButtonId":[1,"back-button-id"],"backButtonText":[1,"back-button-text"],"initialized":[32],"hasAreaPopup":[32],"hasSubNavigation":[32],"isSubNavigationExpanded":[32],"autoClose":[32],"navigationItemSafeTriangle":[32],"subNavigationId":[32],"subNavigationToggleId":[32],"observer":[32]},null,{"subNavigationExpanded":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0}]}]]],["p-a07e33e7",[[260,"db-notification",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"role":[1],"ariaLive":[1,"aria-live"],"variant":[1],"showIcon":[8,"show-icon"],"icon":[1],"linkVariant":[1,"link-variant"],"headline":[8],"showHeadline":[8,"show-headline"],"text":[1],"timestamp":[1],"showTimestamp":[8,"show-timestamp"],"timestampDatetime":[1,"timestamp-datetime"],"closeable":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"observer":[32]}]]],["p-70b6ebcd",[[260,"db-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"placeholder":[1],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"variant":[1],"showEmptyOption":[4,"show-empty-option"],"className":[1,"classname"],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"disabled":[8],"name":[1],"size":[2],"autocomplete":[1],"multiple":[4],"ariaDescribedBy":[1,"aria-described-by"],"options":[16],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_placeholderId":[32],"_descByIds":[32],"_value":[32],"initialized":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-68f00121",[[260,"db-switch",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"validation":[1],"required":[8],"message":[1],"showMessage":[8,"show-message"],"validMessage":[1,"valid-message"],"checked":[8],"disabled":[8],"visualAid":[8,"visual-aid"],"size":[1],"showLabel":[8,"show-label"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"value":[8],"name":[1],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"label":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"validation":[{"watch1":0}],"required":[{"watch1":0}],"message":[{"watch1":0}],"showMessage":[{"watch1":0}],"validMessage":[{"watch1":0}],"invalidMessage":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}],"_ref":[{"watch2":0},{"watch3":0}]}]]],["p-e58fbd4d",[[0,"db-textarea",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"className":[1,"classname"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"label":[1],"fieldSizing":[1,"field-sizing"],"resize":[1],"showResizer":[8,"show-resizer"],"disabled":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"maxlength":[8],"minlength":[8],"name":[1],"wrap":[1],"spellCheck":[4,"spell-check"],"autocomplete":[1],"ariaDescribedBy":[1,"aria-described-by"],"placeholder":[1],"rows":[8],"cols":[8],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-6b8375e8",[[260,"db-badge",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"size":[1],"emphasis":[1],"wrap":[8],"label":[1],"text":[1],"initialized":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-2c23efe2",[[260,"db-brand",{"hideLogo":[4,"hide-logo"],"icon":[1],"showIcon":[8,"show-icon"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"text":[1],"observer":[32]}]]],["p-37bf8d87",[[260,"db-card",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"behavior":[1],"elevationLevel":[1,"elevation-level"],"spacing":[1],"observer":[32]}]]],["p-f964d5f5",[[260,"db-custom-button",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"noText":[8,"no-text"],"observer":[32]}]]],["p-d9d006e7",[[260,"db-custom-select-form-field",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}]]],["p-57527cef",[[0,"db-divider",{"id":[1],"propOverrides":[16],"margin":[1],"variant":[1],"emphasis":[1],"width":[1],"className":[1,"classname"],"observer":[32]}]]],["p-db1b9f5d",[[260,"db-icon",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"weight":[1],"variant":[1],"text":[1],"observer":[32]}]]],["p-1e70d93f",[[260,"db-navigation",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}]]],["p-6ce4a109",[[260,"db-page",{"fadeIn":[8,"fade-in"],"documentOverflow":[1,"document-overflow"],"variant":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"mainClass":[1,"main-class"],"fontsLoaded":[32],"observer":[32]}]]],["p-87281518",[[260,"db-popover",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"gap":[8],"animation":[8],"open":[8],"delay":[1],"width":[1],"initialized":[32],"isExpanded":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"observer":[32]},null,{"_ref":[{"watch0":0},{"watch1":0}],"initialized":[{"watch0":0}],"isExpanded":[{"watch1":0}]}]]],["p-38c55e9c",[[260,"db-radio",{"id":[1],"propOverrides":[16],"checked":[8],"size":[1],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"validation":[1],"name":[1],"disabled":[8],"value":[8],"required":[8],"label":[1],"initialized":[32],"_id":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}]}]]],["p-6fdc00bd",[[260,"db-section",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"width":[1],"observer":[32]}]]],["p-a176424b",[[260,"db-stack",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"gap":[1],"variant":[1],"direction":[1],"alignment":[1],"justifyContent":[1,"justify-content"],"wrap":[8],"observer":[32]}]]],["p-e66aa9d8",[[260,"db-table-caption",{"id":[1],"className":[1,"classname"],"observer":[32]}]]],["p-f271332c",[[260,"db-drawer",{"open":[8],"position":[1],"backdrop":[1],"variant":[1],"id":[1],"propOverrides":[16],"direction":[1],"className":[1,"classname"],"spacing":[1],"width":[1],"rounded":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"initialized":[32],"backdropPointerDown":[32],"observer":[32]},null,{"open":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"position":[{"watch1":0}]}]]],["p-71399ee3",[[260,"db-accordion-item",{"defaultOpen":[4,"default-open"],"name":[1],"open":[8],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"headlinePlain":[1,"headline-plain"],"text":[1],"_open":[32],"_name":[32],"initialized":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"name":[{"watch1":0}],"open":[{"watch2":0}]}]]],["p-f5f73623",[[260,"db-tooltip",{"id":[1],"propOverrides":[16],"variant":[1],"placement":[1],"className":[1,"classname"],"emphasis":[1],"wrap":[8],"animation":[8],"delay":[1],"width":[1],"showArrow":[8,"show-arrow"],"text":[1],"_id":[32],"initialized":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"_attachedParent":[32],"_attachedId":[32],"_activeTriggerCount":[32],"_boundListeners":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"_id":[{"watch1":0}]}]]],["p-90e9ec2d",[[260,"db-table-body",{"id":[1],"className":[1,"classname"],"rows":[16]}],[260,"db-table-footer",{"id":[1],"className":[1,"classname"],"rows":[16]}],[260,"db-table-head",{"id":[1],"className":[1,"classname"],"rows":[16],"observer":[32]}]]],["p-eedf08e0",[[260,"db-tab-item",{"active":[8],"name":[1],"className":[1,"classname"],"id":[1],"propOverrides":[16],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"showIconTrailing":[8,"show-icon-trailing"],"noText":[8,"no-text"],"disabled":[8],"checked":[8],"label":[1],"_selected":[32],"_name":[32],"initialized":[32],"_listenerAdded":[32],"boundSetSelectedOnChange":[32],"observer":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"boundSetSelectedOnChange":[{"watch0":0}],"name":[{"watch1":0}]}],[260,"db-tab-list",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}],[260,"db-tab-panel",{"className":[1,"classname"],"id":[1],"propOverrides":[16],"content":[1],"observer":[32]}]]],["p-a6f33f3b",[[260,"db-input",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"dataListId":[1,"data-list-id"],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"pattern":[1],"dataList":[16],"className":[1,"classname"],"variant":[1],"showLabel":[8,"show-label"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showRequiredAsterisk":[8,"show-required-asterisk"],"showIconTrailing":[8,"show-icon-trailing"],"label":[1],"fieldSizing":[1,"field-sizing"],"name":[1],"type":[1],"multiple":[8],"accept":[1],"placeholder":[1],"disabled":[8],"step":[8],"maxlength":[8],"minlength":[8],"max":[8],"min":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"size":[2],"autocomplete":[1],"autofocus":[8],"enterkeyhint":[1],"inputmode":[1],"ariaDescribedBy":[1,"aria-described-by"],"messageSize":[1,"message-size"],"messageIcon":[1,"message-icon"],"validMessageSize":[1,"valid-message-size"],"invalidMessageSize":[1,"invalid-message-size"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_dataListId":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32],"observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}],[260,"db-tag",{"removeButton":[1,"remove-button"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"emphasis":[1],"icon":[1],"showCheckState":[8,"show-check-state"],"showIcon":[8,"show-icon"],"noText":[8,"no-text"],"overflow":[8],"text":[1],"behavior":[1],"observer":[32]}],[260,"db-custom-select-dropdown",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"width":[1],"observer":[32]}],[260,"db-custom-select-list",{"multiple":[4],"label":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"observer":[32]}],[260,"db-custom-select-list-item",{"isGroupTitle":[4,"is-group-title"],"showDivider":[4,"show-divider"],"type":[1],"checked":[8],"id":[1],"propOverrides":[16],"className":[1,"classname"],"groupTitle":[1,"group-title"],"icon":[1],"showIcon":[8,"show-icon"],"name":[1],"disabled":[8],"value":[8],"label":[1],"hasDivider":[32],"observer":[32]},null,{"isGroupTitle":[{"watch0":0}],"showDivider":[{"watch0":0}]}]]],["p-0758418a",[[260,"db-button",{"type":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"wrap":[8],"noText":[8,"no-text"],"name":[1],"form":[1],"value":[1],"text":[1],"observer":[32]}]]],["p-6d41baf1",[[260,"db-infotext",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"semantic":[1],"size":[1],"wrap":[8],"showIcon":[8,"show-icon"],"text":[1],"observer":[32]}]]],["p-5706f20a",[[260,"db-table-row",{"id":[1],"className":[1,"classname"],"interactive":[8],"subHeaderEmphasis":[1,"sub-header-emphasis"],"cells":[16]}],[260,"db-link",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"href":[1],"target":[1],"rel":[1],"role":[1],"referrerpolicy":[1],"referrerPolicy":[1,"referrer-policy"],"hreflang":[1],"disabled":[8],"size":[1],"showIcon":[8,"show-icon"],"variant":[1],"content":[1],"wrap":[8],"text":[1],"observer":[32]}],[260,"db-table-data-cell",{"id":[1],"className":[1,"classname"],"horizontalAlignment":[1,"horizontal-alignment"],"verticalAlignment":[1,"vertical-alignment"],"colSpan":[8,"col-span"],"colspan":[8],"rowSpan":[8,"row-span"],"rowspan":[8],"headers":[1]}],[260,"db-table-header-cell",{"id":[1],"className":[1,"classname"],"horizontalAlignment":[1,"horizontal-alignment"],"verticalAlignment":[1,"vertical-alignment"],"noText":[8,"no-text"],"scope":[1],"colSpan":[8,"col-span"],"colspan":[8],"rowSpan":[8,"row-span"],"rowspan":[8],"headers":[1],"abbr":[1]}]]]]'),e))));
|
package/dist/db-ux/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as addAttributeToChildren,c as cls,d as delay,e as getBoolean,g as getBooleanAsString,l as getHideProp,k as getInputValue,p as getNotificationRole,f as getNumber,n as getOptionKey,m as getSearchInput,j as getStep,h as hasVoiceOver,i as isArrayOfStrings,b as isIOSSafari,o as isKeyboardEvent,s as stringPropVisible,u as uuid}from"./p-fumiz06Y.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentClickListener}from"./p-OOIf-5XP.js";export{D as DocumentScrollListener}from"./p-BtImZ8Nt.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-
|
|
1
|
+
export{a as addAttributeToChildren,c as cls,d as delay,e as getBoolean,g as getBooleanAsString,l as getHideProp,k as getInputValue,p as getNotificationRole,f as getNumber,n as getOptionKey,m as getSearchInput,j as getStep,h as hasVoiceOver,i as isArrayOfStrings,b as isIOSSafari,o as isKeyboardEvent,s as stringPropVisible,u as uuid}from"./p-fumiz06Y.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentClickListener}from"./p-OOIf-5XP.js";export{D as DocumentScrollListener}from"./p-BtImZ8Nt.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-C0q9XJSc.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-C_qYW0Kh.js";const _=["divider","card"],L=["multiple","single"],I=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],O=["outlined","brand","filled","ghost"],U=["button","reset","submit"],R=["static","interactive"],M=["1","2","3"],P=["fixed","auto","full"],V=["checkbox","radio"],X=["amount","text","tag"],K=["none","_"],W=["horizontal","vertical"],Y=["none","strong","weak","invisible"],H=["left","right","up","down"],J=["modal","inside"],Z=["fixed","absolute"],Q=["16","20","24","32","48","64"],$=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],ee=["adaptive","brand","inline"],ae=["medium","small"],te=["external","internal"],ne=["docked","standalone","overlay"],oe=["block","inline"],re=["assertive","polite","off"],se=["auto","fixed"],ie=["hidden","auto"],le=["simple","divider"],de=["row","column"],ce=["stretch","start","end","center"],me=["space-between","start","end","center"],Ee=["row","col","rowgroup","colgroup"],ge=["none","weak","strong"],_e=["x-small","small","medium","large"],ue=["flat","zebra","spaced"],pe=["none","both","horizontal","vertical"],fe=["table","list"],Se=["none","both","horizontal","vertical"],De=["auto","1fr","min-content","max-content"],Le=["scrollbar","arrows"],Ae=["auto","manually"],Te=["static","removable"],he=["none","both","horizontal","vertical"],Ie=["hard","soft","off"],Fe=["description","label"],be=["adaptive","neutral","critical","informational","warning","successful"],Oe=["medium","small","large","none"],xe=["medium","small","large","none"],Ue=["left","right","left-start","left-end","right-start","right-end"],ve=["top","bottom","top-start","top-end","bottom-start","bottom-end"],we=[...Ue,...ve],Ce=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],ye=["horizontal","vertical"],Ne=["full","auto"],Re=["full","medium","large","small"],Me=["none","slow","fast"],Pe=["auto","fixed"],ke=["small","medium"],Be=["weak","strong"],Ge=["invalid","valid","no-validation"],Ve=["fixed","content"],Xe=["above","floating"],ze=["leading","trailing"],je=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],Ke=["_self","_blank","_parent","_top"],We=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Ye=["start","center","end"];export{L as AccordionBehaviorList,_ as AccordionVariantList,Ye as AlignmentList,je as AutoCompleteList,I as BadgePlacementList,U as ButtonTypeList,O as ButtonVariantList,R as CardBehaviorList,M as CardElevationLevelList,P as CustomSelectDropdownWidthList,V as CustomSelectListItemTypeList,De as DBTableColumnsSizeList,pe as DBTableDividerList,Ee as DBTableHeaderCellScopeList,fe as DBTableMobileVariantList,_e as DBTableRowSizeList,ge as DBTableRowSubHeaderEmphasisList,Se as DBTableStickyHeaderList,ue as DBTableVariantList,K as DividerMarginList,W as DividerVariantList,Y as DrawerBackdropList,H as DrawerDirectionList,Z as DrawerPositionList,J as DrawerVariantList,Be as EmphasisList,Ve as FieldSizingList,Ce as GapSpacingList,Q as IconWeightList,$ as InputTypeList,ze as LabelVariantHorizontalList,Xe as LabelVariantList,te as LinkContentList,We as LinkReferrerPolicyList,ae as LinkSizeList,Ke as LinkTargetList,ee as LinkVariantList,xe as MarginList,Re as MaxWidthList,re as NotificationAriaLiveList,oe as NotificationLinkVariantList,ne as NotificationVariantList,ye as OrientationList,ie as PageDocumentOverflowList,se as PageVariantList,Ue as PlacementHorizontalList,we as PlacementList,ve as PlacementVerticalList,Me as PopoverDelayList,Pe as PopoverWidthList,X as SelectedTypeList,be as SemanticList,ke as SizeList,Oe as SpacingList,ce as StackAlignmentList,de as StackDirectionList,me as StackJustifyContentList,le as StackVariantList,Le as TabsBehaviorList,Ae as TabsInitialSelectedModeList,Te as TagBehaviorList,he as TextareaResizeList,Ie as TextareaWrapList,Fe as TooltipVariantList,Ge as ValidationList,Ne as WidthList}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as e,h as d,g as t}from"./p-BlbKvvUv.js";import{p as i}from"./p-BdL-nI5y.js";import{e as s,a as c,c as n}from"./p-fumiz06Y.js";import{i as b}from"./p-
|
|
1
|
+
import{r as a,c as e,h as d,g as t}from"./p-BlbKvvUv.js";import{p as i}from"./p-BdL-nI5y.js";import{e as s,a as c,c as n}from"./p-fumiz06Y.js";import{i as b}from"./p-C_qYW0Kh.js";import"./p-C0q9XJSc.js";const o=class{constructor(d){a(this,d),this.toggle=e(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1,this.observer=void 0}handleToggle(a){a&&a.stopPropagation&&a.stopPropagation();const e=!s(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(e)}handleNavigationItemClick(a){b(a)&&this.handleToggle()}setupObserver(a){if(!a)return;const e=a.closest("db-header");e&&!this.observer&&(this.observer=new MutationObserver((e=>{e.some((a=>{var e;const d=a.target.attributes.getNamedItem(null!==(e=a.attributeName)&&void 0!==e?e:"");return(null==d?void 0:d.value)!==a.oldValue}))&&this.enableAttributePassing(a,"db-header")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(a,e){const d=null==a?void 0:a.closest(e);if(a&&d){const e=d.attributes;for(let t=0;t<e.length;t++){const i=e.item(t);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?a.setAttribute(i.name,i.value):a.removeAttribute(i.name),d.removeAttribute(i.name);else if(i&&["style"].includes(i.name))a.setAttribute(i.name,i.value),d.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),t=i.value.replace("hydrated","").trim(),s=a.getAttribute("class");a.setAttribute(i.name,`${s||""}${t?` ${t}`:""}`),e?d.setAttribute("class","hydrated"):d.removeAttribute(i.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(c(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const a=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);a&&a.remove()}this.enableAttributePassing(this._ref,"db-header"),(()=>{this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var a;null===(a=this.observer)||void 0===a||a.disconnect()}render(){var a,e,t;return d("header",{key:"aeeac33c4b9db2b9749b24ccca840aa03bac81df",class:n("db-header",this.className),ref:a=>{this._ref=a},id:null!==(a=this.id)&&void 0!==a?a:null===(e=this.propOverrides)||void 0===e?void 0:e.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("div",{key:"1078f960dbc6ed24664b5ff5c23c3524d725b822",class:"db-header-meta-navigation"},d("slot",{key:"c55739d8ae17254c2aa457795a31017a07ab5a88",name:"metaNavigation"})),d("div",{key:"6e82ab28439854dec6bcc6dcf9ed3fa36c6f5e69",class:"db-header-navigation-bar"},d("div",{key:"7e991f8cdee7c1767ea3aefdd9a01c662fb5d178",class:"db-header-brand-container"},d("slot",{key:"a1e2aea32b28520095612367e97a8b955f93bd96",name:"brand"})),d("div",{key:"273f17e3b8594dad83d8fbad021008405d865176",class:"db-header-navigation-container"},d("div",{key:"8bd9a08a0f3cf8083d238963c2cc3715edf1d5a4",class:"db-header-navigation"},d("slot",{key:"abfd95ef152c34e53806c114f243ff26b63a9bbe"})),d("div",{key:"4a61c6d86a0362913b45a432095a621ca22d1268",class:"db-header-primary-action"},d("slot",{key:"3b79bfc6d85a0a39fcb3ca2550be0a2a36b6a682",name:"primaryAction"}))),d("div",{key:"1c506669010a04ae260b692811ed17d76a3ecc03",class:"db-header-action-container"},d("div",{key:"aa522f5b0010a1747a1bc7f550c3700a0bad4e8a",class:"db-header-burger-menu-container"},d("db-button",{key:"2223a3865ed4ea94e3a3849e73e4113e1db0fb66",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(t=this.burgerMenuLabel)&&void 0!==t?t:i)),d("div",{key:"86f41a6b354de871ac3f4d9cf8b7205c699ba189",class:"db-header-secondary-action"},d("slot",{key:"43e443323eb93871bb19cbea2222da6eb8ebd0e8",name:"secondaryAction"})))),d("db-drawer",{key:"8a8474e8a7f54d827f5844f76dea9ce44ef565e0",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:s(this.drawerOpen),onClose:()=>this.handleToggle()},d("div",{key:"21f360dc09f2d53aea13fde8b13c1ffb3781f558",class:"db-header-drawer-navigation"},d("div",{key:"0c567049a2c1788decb48b10b0115348d2f3b406",class:"db-header-navigation",onClick:a=>this.handleNavigationItemClick(a)},d("slot",{key:"1403d518f5f63eca522ccecaf5a4b5f153649a33"})),d("div",{key:"c624cf3f4ea7e89a87e430ef96b34fa4ce6d4236",class:"db-header-meta-navigation"},d("slot",{key:"4fde72b2d7d8c098a8a09160e8f36ca2ddbd0702",name:"metaNavigation"}))),d("div",{key:"91d6fc1b39b3cfc39b8563956971f56a168da218",class:"db-header-secondary-action"},d("slot",{key:"a9745f3cf4c91db6a3cd0bc4e4bf904b8bc7a2aa",name:"secondaryAction"}))))}get rootElement(){return t(this)}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}};export{o as db_header}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as t,h as s,F as h,g as e}from"./p-BlbKvvUv.js";import{l,a as o,m as a,f as d,g as n,h as c,e as v,d as r,i as u,o as w,k as f,c as b,s as m}from"./p-BdL-nI5y.js";import{h as p,d as y,s as g,m as k,u as F,e as A,g as x,l as D,c as C}from"./p-fumiz06Y.js";import{D as O}from"./p-OOIf-5XP.js";import{D as S}from"./p-BtImZ8Nt.js";import{a as I}from"./p-C0q9XJSc.js";import{b as L}from"./p-BihrW11j.js";const T=class{constructor(s){i(this,s),this.amountChange=t(this,"amountChange"),this.dropdownToggle=t(this,"dropdownToggle"),this.optionSelected=t(this,"optionSelected"),this.search=t(this,"search"),this.showClearSelection=!0,this.clearSelectionText="Clear selection",this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._selectId=void 0,this._labelId=void 0,this._summaryId=void 0,this._placeholderId=void 0,this._infoTextId=void 0,this._validity="no-validation",this._userInteraction=!1,this.abortController=void 0,this._descByIds=void 0,this._selectedLabels="",this._selectedLabelsId=void 0,this._voiceOverFallback="",this._selectedOptions=[],this.selectAllEnabled=!1,this.searchEnabled=!1,this.amountOptions=0,this._values=[],this._options=[],this._hasNoOptions=!1,this._documentClickListenerCallbackId=void 0,this._internalChangeTimestamp=0,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._searchValue=void 0,this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.observer=void 0,this.satisfyReact=function(i){i.stopPropagation()}}handleDocumentScroll(i){var t,s;(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.contains)&&(null===(s=null==i?void 0:i.target)||void 0===s?void 0:s.contains(this.detailsRef))&&this.handleAutoPlacement()}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,h,e,o,a,d;this.selectRef&&(this.selectRef.value=this.getNativeSelectValue()),(null===(i=this.selectRef)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(h=this.selectRef)||void 0===h?void 0:h.validity.valid)&&this.required?(this.setDescById(this._validMessageId),p()&&(this._voiceOverFallback=null!==(e=this.validMessage)&&void 0!==e?e:f,y((()=>this._voiceOverFallback=""),1e3)),this._validity=null!==(o=this.validation)&&void 0!==o?o:"valid"):g(this.message,this.showMessage)?(this.setDescById(this._messageId),this._validity=null!==(a=this.validation)&&void 0!==a?a:"no-validation"):(this.setDescById(this._placeholderId),this._validity=null!==(d=this.validation)&&void 0!==d?d:"no-validation"):(this.setDescById(this._invalidMessageId),this._invalidMessage=this.invalidMessage||(null===(t=this.selectRef)||void 0===t?void 0:t.validationMessage)||l,p()&&(this._voiceOverFallback=this._invalidMessage,y((()=>this._voiceOverFallback=""),1e3)),this._userInteraction&&(this._validity=null!==(s=this.validation)&&void 0!==s?s:"invalid"))}handleDropdownToggle(i){var t,s;this.dropdownToggle&&(i.stopPropagation(),this.dropdownToggle.emit(i)),i.target instanceof HTMLDetailsElement&&i.target.open?(this._documentClickListenerCallbackId=(new O).addCallback((i=>this.handleDocumentClose(i))),this._documentScrollListenerCallbackId=(new S).addCallback((i=>this.handleDocumentScroll(i))),this.handleAutoPlacement(),null===(t=this._observer)||void 0===t||t.observe(this.detailsRef),i.target.dataset.test||this.handleOpenByKeyboardFocus()):(this._documentClickListenerCallbackId&&(new O).removeCallback(this._documentClickListenerCallbackId),this._documentScrollListenerCallbackId&&(new S).removeCallback(this._documentScrollListenerCallbackId),null===(s=this._observer)||void 0===s||s.unobserve(this.detailsRef))}getNativeSelectValue(){var i,t;return(null===(i=this._values)||void 0===i?void 0:i.length)&&null!==(t=this._values.at(0))&&void 0!==t?t:""}setDescById(i){var t;const s=[];i&&s.push(i),this._selectedLabelsId&&(null===(t=this._selectedLabels)||void 0===t?void 0:t.length)&&s.push(this._selectedLabelsId),this._descByIds=s.join(" ")}getSelectAllLabel(){var i;return null!==(i=this.selectAllLabel)&&void 0!==i?i:o}getOptionLabel(i){var t,s,h;return null!==(h=null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:s.toString())&&void 0!==h?h:""}getOptionChecked(i){var t,s;return!(!i||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&(null===(s=this._values)||void 0===s?void 0:s.includes(i))}getTagRemoveLabel(i){const t=this.removeTagsTexts,s=this.options;if(t&&s){const h=s.findIndex((t=>t.value===i.value));if(h>=0&&h<t.length)return t[h]}return`${a} ${this.getOptionLabel(i)}`}handleTagRemove(i,t){t&&t.stopPropagation(),this.handleSelect(i.value),this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const i=this.detailsRef.querySelector("article");i&&y((()=>{var t;I(i,this.detailsRef,null!==(t=this.placement)&&void 0!==t?t:"bottom")}),1)}}handleArrowDownUp(i){var t,s,h;if(null===(t=this.detailsRef)||void 0===t?void 0:t.open){if(self.document){const t=self.document.activeElement;if(t)if("checkbox"===t.getAttribute("type")||"radio"===t.getAttribute("type")){const e=null==t?void 0:t.closest("li");if("ArrowDown"===i.key||"ArrowRight"===i.key){let i=null==e?void 0:e.nextElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.nextElementSibling}i||this.handleFocusFirstDropdownCheckbox(t)}else{let i=null==e?void 0:e.previousElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.previousElementSibling}if(!i){const i=this.detailsRef.querySelector('input[type="checkbox"]');if(i&&i!==t)this.handleFocusFirstDropdownCheckbox(t);else{const i=k(this.detailsRef);if(i)y((()=>{i.focus()}),100);else{const i=Array.from(null===(s=this.detailsRef)||void 0===s?void 0:s.querySelectorAll('input[type="checkbox"],input[type="radio"]'));i.length&&(null===(h=i.at(-1))||void 0===h||h.focus())}}}}}else"search"!==t.getAttribute("type")||"ArrowUp"!==i.key&&"ArrowLeft"!==i.key?this.handleFocusFirstDropdownCheckbox(t):(this.handleClose(void 0,!0),this.handleSummaryFocus())}}else"ArrowDown"!==i.key&&"ArrowRight"!==i.key||(this.handleAutoPlacement(),this.detailsRef&&(this.detailsRef.open=!0),this.handleOpenByKeyboardFocus());i.stopPropagation(),i.preventDefault()}handleKeyboardPress(i){var t,s,h;if(i.stopPropagation(),"Escape"===i.key&&(null===(t=this.detailsRef)||void 0===t?void 0:t.open))this.handleClose(void 0,!0),this.handleSummaryFocus();else if("Enter"===i.key&&(null===(s=this.detailsRef)||void 0===s?void 0:s.open)){if(self.document){const t=self.document.activeElement;if(["checkbox","radio"].includes(t.getAttribute("type")||""))t.click(),i.preventDefault();else if("search"===t.getAttribute("type")){const t=null===(h=this._options)||void 0===h?void 0:h.find((i=>!i.isGroupTitle&&!i.disabled));(null==t?void 0:t.value)&&(this.handleSelect(t.value),i.preventDefault())}}}else"ArrowDown"!==i.key&&"ArrowUp"!==i.key&&"ArrowLeft"!==i.key&&"ArrowRight"!==i.key||this.handleArrowDownUp(i)}handleClose(i,t){if(this.detailsRef)if(t)this.detailsRef.open=!1,this.handleSummaryFocus();else if(this.detailsRef.open&&i&&i.relatedTarget){const t=i.relatedTarget;this.detailsRef.contains(t)||"dialog"===t.localName||y((()=>this.detailsRef.open=!1),1)}}handleDocumentClose(i){var t,s;if(i){const h="number"==typeof i.detail?i.target:null===(t=i.detail)||void 0===t?void 0:t.target;(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&!this.detailsRef.contains(h)&&(this.detailsRef.open=!1)}}handleOptionSelected(i){(new Date).getTime()-this._internalChangeTimestamp<200||(this._values=i,this._userInteraction=!0,this.optionSelected&&this.optionSelected.emit(null!=i?i:[]),this._internalChangeTimestamp=(new Date).getTime())}handleSelect(i){var t;i&&(this.multiple?(null===(t=this._values)||void 0===t?void 0:t.includes(i))?this.handleOptionSelected(this._values.filter((t=>t!==i))):this.handleOptionSelected([...this._values||[],i]):(this.handleOptionSelected([i]),this.handleClose(void 0,!0)))}handleSelectAll(i){var t;if(i.stopPropagation(),(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions)this.handleOptionSelected([]);else{const i=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:void 0;this.handleOptionSelected(this.options?this.options.filter((t=>{var s;return!t.isGroupTitle&&(!i||(null===(s=t.value)||void 0===s?void 0:s.toLowerCase().includes(i.toLowerCase())))})).map((i=>{var t;return null!==(t=i.value)&&void 0!==t?t:""})):[])}}handleFocusFirstDropdownCheckbox(i){if(this.detailsRef){const t=Array.from(this.detailsRef.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(t.length){const s=t.at(0),h=s===i&&t.length>1?t.at(1):s;h&&y((()=>{h.focus()}),1)}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const i=k(this.detailsRef);i?y((()=>{i.focus()}),1):this.handleFocusFirstDropdownCheckbox()}}handleSearch(i){var t;if(void 0===i)return;let s;if("string"==typeof i)s=i;else{const t=i;t.stopPropagation(),this.search&&this.search.emit(t),s=t.target.value,this._searchValue=s}this._options=this.options&&s&&0!==s.length?this.options.filter(this.searchFilter?i=>this.searchFilter(i,s):i=>!i.isGroupTitle&&this.getOptionLabel(i).toLowerCase().includes(s.toLowerCase())):this.options,(null===(t=this.detailsRef)||void 0===t?void 0:t.open)&&this.handleAutoPlacement()}handleClearAll(i){i.stopPropagation(),this.handleOptionSelected([]),this.handleSummaryFocus()}handleSummaryFocus(){var i;this.detailsRef&&(null===(i=this.detailsRef.querySelector("summary"))||void 0===i||i.focus())}resetIds(){var i,t,s;const h=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`custom-select-${F()}`;this._id=h,this._messageId=h+d,this._validMessageId=h+n,this._invalidMessageId=h+c,this._selectId=h+v,this._labelId=h+r,this._summaryId=h+"-summary",this._placeholderId=h+u,this._selectedLabelsId=h+"-selected-labels",this._infoTextId=h+"-info"}setupObserver(i){if(!i)return;const t=i.closest("db-custom-select");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-custom-select")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const e=t.item(h);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))e.value?i.setAttribute(e.name,e.value):i.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),h=e.value.replace("hydrated","").trim(),l=i.getAttribute("class");i.setAttribute(e.name,`${l||""}${h?` ${h}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.detailsRef&&this.detailsRef.addEventListener("focusout",(i=>this.handleClose(i)))}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+d;this._labelId=this._id+r,this._selectId=this._id+v,this._validMessageId=this._id+n,this._invalidMessageId=this._id+c,this._placeholderId=this._id+u,g(this.message,this.showMessage)?this.setDescById(i):this.setDescById()}}watch2(){this.watch2Fn()}watch3Fn(){var i;if(this.detailsRef){const t=this.detailsRef.querySelector("summary");t&&t.setAttribute("aria-describedby",null!==(i=this.ariaDescribedBy)&&void 0!==i?i:this._descByIds||"")}}watch3(){this.watch3Fn()}watch4Fn(){void 0!==this.showNoResults?this._hasNoOptions=this.showNoResults:this._options&&(this._hasNoOptions=0===this._options.length)}watch4(){this.watch4Fn()}watch5Fn(){var i;this.selectAllEnabled=Boolean(this.multiple&&(null!==(i=this.showSelectAll)&&void 0!==i?i:this.amountOptions>5))}watch5(){this.watch5Fn()}watch6Fn(){var i;this.searchEnabled=null!==(i=this.showSearch)&&void 0!==i?i:this.amountOptions>9}watch6(){this.watch6Fn()}watch7Fn(){var i;const t=this.values;Array.isArray(t)?this._values!==t&&(this._values=t):null==t&&0!==(null===(i=this._values)||void 0===i?void 0:i.length)&&(this._values=[])}watch7(){this.watch7Fn()}watch8Fn(){this.selectRef&&this.handleValidation()}watch8(){this.watch8Fn()}watch9Fn(){if(this.selectRef){let i=this.abortController;i||(i=new AbortController,this.abortController=i);const t=this.values;L(this.selectRef,(()=>{this.handleOptionSelected(t||(this.selectRef.value?[this.selectRef.value]:[])),this.handleValidation()}),i.signal)}}watch9(){this.watch9Fn()}watch10Fn(){this._validity=this.validation}watch10(){this.watch10Fn()}watch11Fn(){var i,t;0===(null===(i=this._values)||void 0===i?void 0:i.length)?(this.selectAllChecked=!1,this.selectAllIndeterminate=!1):(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions?(this.selectAllIndeterminate=!1,this.selectAllChecked=!0):this._values&&(this.selectAllIndeterminate=!0)}watch11(){this.watch11Fn()}watch12Fn(){var i,t,s;this._options=this.options,this.amountOptions=null!==(t=null===(i=this.options)||void 0===i?void 0:i.filter((i=>!i.isGroupTitle)).length)&&void 0!==t?t:0,(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&this.handleAutoPlacement()}watch12(){this.watch12Fn()}watch13Fn(){this._searchValue=this.searchValue,this.searchValue&&this.handleSearch(this.searchValue)}watch13(){this.watch13Fn()}watch14Fn(){var i,t;(null===(i=this.options)||void 0===i?void 0:i.length)&&(this._selectedOptions=null===(t=this.options)||void 0===t?void 0:t.filter((i=>{var t,s;return!(!i.value||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&!i.isGroupTitle&&(null===(s=this._values)||void 0===s?void 0:s.includes(i.value))})))}watch14(){this.watch14Fn()}watch15Fn(){var i,t,s;if(this.selectedLabels)this._selectedLabels=this.selectedLabels;else if(null===(i=this._selectedOptions)||void 0===i?void 0:i.length){if(this.transformSelectedLabels)return void(this._selectedLabels=(0,this.transformSelectedLabels)(this._selectedOptions));this._selectedLabels="amount"===this.selectedType?this.amountText?this.amountText:`${null===(t=this._selectedOptions)||void 0===t?void 0:t.length} ${w}`:null===(s=this._selectedOptions)||void 0===s?void 0:s.map((i=>this.getOptionLabel(i))).join(", ")}else this._selectedLabels=""}watch15(){this.watch15Fn()}watch16Fn(){var i,t;this.amountChange&&this.amountChange.emit(null!==(t=null===(i=this._selectedOptions)||void 0===i?void 0:i.length)&&void 0!==t?t:0)}watch16(){this.watch16Fn()}watch17Fn(){this.selectAllRef&&(this.selectAllRef.indeterminate=Boolean(this.selectAllIndeterminate))}watch17(){this.watch17Fn()}watch18Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this.selectRef)||void 0===i?void 0:i.validationMessage)||l}watch18(){this.watch18Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-custom-select"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||l,"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((i=>{if(this.detailsRef){const t=i.find((({target:i})=>i===this.detailsRef));t&&!t.isIntersecting&&this.detailsRef.open&&(this.detailsRef.open=!1)}})))})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn(),this.watch6Fn(),this.watch7Fn(),this.watch8Fn(),this.watch9Fn(),this.watch10Fn(),this.watch11Fn(),this.watch12Fn(),this.watch13Fn(),this.watch14Fn(),this.watch15Fn(),this.watch16Fn(),this.watch17Fn(),this.watch18Fn()}disconnectedCallback(){var i,t;null===(i=this.abortController)||void 0===i||i.abort(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var i,t,e,l,a,d,n,c,v,r,u,w,p,y,k;return s("div",{key:"9f804bd057ef9cde5cc83263e5b1e3a477ad5d2e",class:C("db-custom-select",this.className),id:this._id,ref:i=>{this._ref=i},"aria-invalid":"invalid"===this._validity,"data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":"floating"===this.variant&&"tag"===this.selectedType&&this.multiple?"above":this.variant,"data-required":x(this.required,"required"),"data-hide-asterisk":D(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":D(this.showLabel),"data-icon":this.icon,"data-show-icon":x(this.showIcon,"showIcon")},s("label",{key:"1ce826237b63c3abfad8b55068c25fdc4acc2d7a",id:this._labelId},null!==(i=this.label)&&void 0!==i?i:o,s("select",{key:"9f16da6b3d9e633e4ce70e8654925df86a901074",role:"none",hidden:!0,id:this._selectId,tabIndex:-1,ref:i=>{this.selectRef=i},form:this.form,name:this.name,"data-custom-validity":this._validity,multiple:A(this.multiple,"multiple"),disabled:A(this.disabled,"disabled"),required:A(this.required,"required"),onChange:i=>this.satisfyReact(i)},(null===(t=this.options)||void 0===t?void 0:t.length)?null===(e=this.options)||void 0===e?void 0:e.map((i=>s("option",{disabled:i.disabled,value:i.value,key:void 0},this.getOptionLabel(i)))):null)),s("details",{key:"6a88c236898236ee539bced6fa3b3918be8f693d",ref:i=>{this.detailsRef=i},open:this.open,onToggle:i=>this.handleDropdownToggle(i),onKeyDown:i=>this.handleKeyboardPress(i)},s("slot",{key:"c9dd3e30dd094da51de1b2064749a211fef6eb36"}),this.options?s(h,null,s("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":x(this.disabled,"disabled"),tabIndex:this.disabled?-1:void 0,"aria-labelledby":this._labelId},(null===(l=this._selectedLabels)||void 0===l?void 0:l.length)?s("span",{"data-visually-hidden":x("tag"===this.selectedType,"selectedType"),id:this._selectedLabelsId},this.selectedPrefix?s("span",{"data-visually-hidden":"true"},this.selectedPrefix):null,this._selectedLabels):null,"tag"===this.selectedType?s("div",null,null===(a=this._selectedOptions)||void 0===a?void 0:a.map((i=>s("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(i),onRemove:t=>this.handleTagRemove(i,t),key:void 0},this.getOptionLabel(i))))):null),s("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?s("div",null,s("db-input",{type:"search",ref:i=>{this.searchInputRef=i},name:this._id,form:this._id,showLabel:!1,value:this._searchValue,label:null!==(d=this.searchLabel)&&void 0!==d?d:o,placeholder:null!==(n=this.searchPlaceholder)&&void 0!==n?n:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:void 0,onInput:i=>this.handleSearch(i)})):null,this._hasNoOptions||this.showLoading?s("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":void 0,semantic:this.showLoading?"informational":"warning"},null!==(c=this.showLoading?this.loadingText:this.noResultsText)&&void 0!==c?c:b):s(h,null,this.selectAllEnabled?s("div",null,s("div",{class:"db-checkbox db-custom-select-list-item"},s("label",null,s("input",{type:"checkbox",value:"select-all",ref:i=>{this.selectAllRef=i},form:this._id,checked:this.selectAllChecked,onChange:i=>this.handleSelectAll(i)}),this.getSelectAllLabel()))):null,s("db-custom-select-list",{multiple:A(this.multiple,"multiple"),label:null!==(r=null!==(v=this.listLabel)&&void 0!==v?v:this.label)&&void 0!==r?r:o},null===(u=this._options)||void 0===u?void 0:u.map((i=>s("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:i.showDivider,icon:i.icon,isGroupTitle:i.isGroupTitle,groupTitle:this.getOptionLabel(i),name:this._id,checked:this.getOptionChecked(i.value),disabled:i.disabled,value:i.value,onChange:()=>this.handleSelect(i.value),key:void 0},i.isGroupTitle?null:this.getOptionLabel(i)))))),s("div",null,s("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(void 0,!0)},null!==(w=this.mobileCloseButtonText)&&void 0!==w?w:m)))):null),(null===(p=this.showClearSelection)||void 0===p||p)&&(null===(y=this._values)||void 0===y?void 0:y.length)?s("db-button",{icon:"cross",variant:"ghost",size:"small",noText:!0,name:this._id,form:this._id,disabled:A(this.disabled,"disabled"),onClick:i=>this.handleClearAll(i)},this.clearSelectionText,s("db-tooltip",{placement:"top"},this.clearSelectionText)):null,s("span",{key:"3210abcd9df6f8232346aa78def9e3bd078f35db",class:"db-custom-select-placeholder","aria-hidden":"true",id:this._placeholderId},null!==(k=this.placeholder)&&void 0!==k?k:this.label),g(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||f):null,s("db-infotext",{key:"a552df2b93f899230e80623e2014691e411c3b40",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"b29045acf1f702b90b434dc4aa9d589c0c6c57f5","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return e(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}}};export{T as db_custom_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,F as a,g as n}from"./p-BlbKvvUv.js";import{n as
|
|
1
|
+
import{r as i,c as t,h as s,F as a,g as n}from"./p-BlbKvvUv.js";import{n as h}from"./p-BdL-nI5y.js";import{d as o,e,g as d,c as l,u as r}from"./p-fumiz06Y.js";import{N as c}from"./p-C_qYW0Kh.js";import"./p-C0q9XJSc.js";const v=class{constructor(s){i(this,s),this.click=t(this,"click"),this.initialized=!1,this.hasAreaPopup=!1,this.hasSubNavigation=!0,this.isSubNavigationExpanded=!1,this.autoClose=!1,this.navigationItemSafeTriangle=void 0,this.subNavigationId=void 0,this.subNavigationToggleId=void 0,this.observer=void 0}handleNavigationItemClick(i){var t;"A"===(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.nodeName)&&(this.autoClose=!0,o((()=>{this.autoClose=!1}),1e3))}handleClick(i){this.click&&(i.stopPropagation(),this.click.emit(i)),this.hasAreaPopup&&(this.isSubNavigationExpanded=!0)}handleBackClick(i){i.stopPropagation(),this.isSubNavigationExpanded=!1}setupObserver(i){if(!i)return;const t=i.closest("db-navigation-item");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-navigation-item")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const n=t.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?i.setAttribute(n.name,n.value):i.removeAttribute(n.name),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))i.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(n.name,`${h||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){void 0!==this.subNavigationExpanded&&(this.isSubNavigationExpanded=!!e(this.subNavigationExpanded,"subNavigationExpanded"))}watch0(){this.watch0Fn()}watch1Fn(){var i;if(this.initialized&&this._ref){const t=this._ref.querySelector("menu");t&&((null===(i=t.children)||void 0===i?void 0:i.length)>0?(this.hasAreaPopup=!0,this.navigationItemSafeTriangle||(this.navigationItemSafeTriangle=new c(this._ref,t))):this.hasSubNavigation=!1)}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-navigation-item"),(()=>{var i;this.initialized=!0;const t=`sub-nav-${null!==(i=this.id)&&void 0!==i?i:r()}`;this.subNavigationId=t,this.subNavigationToggleId=`${t}-toggle`})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var i;null===(i=this.observer)||void 0===i||i.disconnect()}render(){var i,t,n;return s("li",{key:"c7821549626fe4b55c4bc6907832c972723bc174",class:l("db-navigation-item",this.className),ref:i=>{this._ref=i},id:null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id,onMouseOver:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.enableFollow()},onMouseLeave:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.disableFollow()},onMouseMove:i=>{var t;return null===(t=this.navigationItemSafeTriangle)||void 0===t?void 0:t.followByMouseEvent(i)},"data-width":this.width,"data-icon":this.icon,"data-show-icon":d(this.showIcon,"showIcon"),"data-active":this.active,"data-wrap":d(this.wrap,"wrap"),"aria-disabled":d(this.disabled,"disabled")},!e(this.hideSubNavigation,"hideSubNavigation")&&this.hasSubNavigation?s(a,null,s("button",{class:"db-navigation-item-expand-button",id:this.subNavigationToggleId,"aria-haspopup":this.hasAreaPopup?"true":void 0,"aria-expanded":this.isSubNavigationExpanded,"aria-controls":this.subNavigationId,disabled:e(this.disabled,"disabled"),onClick:i=>this.handleClick(i)},this.text?this.text:s("slot",{name:"expandButton"})),s("menu",{class:"db-sub-navigation",id:this.subNavigationId,"aria-labelledby":this.subNavigationToggleId,"data-force-close":this.autoClose,onClick:i=>this.handleNavigationItemClick(i)},this.hasAreaPopup?s("div",{class:"db-mobile-navigation-back"},s("db-button",{icon:"arrow_left",variant:"ghost",id:this.backButtonId,onClick:i=>this.handleBackClick(i)},null!==(n=this.backButtonText)&&void 0!==n?n:h)):null,s("slot",{name:"subNavigation"}))):this.text?this.text:s("slot",null))}get rootElement(){return n(this)}static get watchers(){return{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}}};export{v as db_navigation_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{d as e,g as o,c as a}from"./p-fumiz06Y.js";import{D as n}from"./p-BtImZ8Nt.js";import{b as h}from"./p-
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{d as e,g as o,c as a}from"./p-fumiz06Y.js";import{D as n}from"./p-BtImZ8Nt.js";import{b as h}from"./p-C0q9XJSc.js";const d=class{constructor(i){t(this,i),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this.observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&e((()=>{var i;h(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new n).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new n).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}setupObserver(t){if(!t)return;const i=t.closest("db-popover");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-popover")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const o=i.item(e);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?t.setAttribute(o.name,o.value):t.removeAttribute(o.name),s.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const i=o.value.includes("hydrated"),e=o.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(o.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(o.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=Boolean(this.isExpanded).toString())}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-popover"),(()=>{this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e;return i("div",{key:"6c495cb9c8f329dd2cf07bfc55b56eb9aa524fb9",class:a("db-popover",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},i("slot",{key:"f74be440cae4d35f76ff2899bae864fc9e3e5c8a",name:"trigger"}),i("article",{key:"efec32b56bf7267aed0f0723306398f9e5f66c75",class:"db-popover-content","data-spacing":this.spacing,"data-gap":o(this.gap,"gap"),"data-animation":o(null===(e=this.animation)||void 0===e||e,"animation"),"data-open":o(this.open,"open"),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},i("slot",{key:"2a1957f512ad0c9eca6e9e5f50721dda1ce56cf3"})))}get rootElement(){return s(this)}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}};export{d as db_popover}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=t=>{const{outTop:o,outBottom:e,outLeft:i,outRight:l}=(t=>{var o;const{top:e,bottom:i,left:l,right:n}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:d}=window;let p=e<0,h=i>r,a=l<0,c=n>d;const s=t.dataset.outsideVy,f=t.dataset.outsideVx,b=null===(o=null==t?void 0:t.parentElement)||void 0===o?void 0:o.getBoundingClientRect();return b&&(s&&("top"===t.dataset.outsideVy?p=b.top-(i-b.bottom)<0:h=b.bottom+(b.top-e)>r),f&&("left"===t.dataset.outsideVx?a=b.left-(n-b.right)<0:c=b.right+(b.left-l)>d)),{outTop:p,outBottom:h,outLeft:a,outRight:c}})(t);let n={};return o||e?(n={vy:o?"top":"bottom"},t.dataset.outsideVy=n.vy):delete t.dataset.outsideVy,i||l?(n=Object.assign(Object.assign({},n),{vx:l?"right":"left"}),t.dataset.outsideVx=n.vx):delete t.dataset.outsideVx,n},o=(t,o,i)=>{if(!t||!o)return;const l="full"===t.dataset.width,n="auto"===t.dataset.width;if(t.style.inlineSize="",t.style.minInlineSize="","9999"===getComputedStyle(t).zIndex)return;const{top:r,bottom:d,childHeight:p,childWidth:h,width:a,right:c,left:s,correctedPlacement:f,innerWidth:b}=e(t,o,i);let u=a;if(n){const o=parseFloat(getComputedStyle(t).maxInlineSize);!isNaN(o)&&o>0&&(u=Math.min(a,o))}l?t.style.inlineSize=`${a}px`:n&&(t.style.minInlineSize=`${u}px`);let g=h;n?g=Math.max(h,u):l&&(g=a);let m=f;n&&("top"===m||"bottom"===m||"top-start"===m||"bottom-start"===m)&&s+g>b&&(m=m.startsWith("top")?"top-end":"bottom-end"),"top"===m||"bottom"===m||"top-start"===m||"bottom-start"===m?t.style.insetInlineStart=`${s}px`:"top-end"!==m&&"bottom-end"!==m||(t.style.insetInlineStart=`${Math.max(c-g,0)}px`),(null==m?void 0:m.startsWith("top"))?t.style.insetBlockStart=r-p+"px":(null==m?void 0:m.startsWith("bottom"))&&(t.style.insetBlockStart=`${d}px`),t.style.position="fixed"},e=(t,o,e)=>{if(!t||!o)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:e,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const i=t.getBoundingClientRect(),{top:l,height:n,bottom:r,right:d,left:p,width:h}=o.getBoundingClientRect(),{innerHeight:a,innerWidth:c}=window;let s=i.height,f=i.width;"bottom"!==e&&"top"!==e||(f/=2),"left"!==e&&"right"!==e||(s/=2);const b=r+s>a,u=l-s<0,g=p-f<0,m=d+f>c;let $=e;return e.startsWith("bottom")?b?($=null==e?void 0:e.replace("bottom","top"),g&&m?$="top":g?$="top-start":m&&($="top-end")):g&&m?$="bottom":g?$="bottom-start":m&&($="bottom-end"):e.startsWith("top")?u?($=null==e?void 0:e.replace("top","bottom"),g&&m?$="bottom":g?$="bottom-start":m&&($="bottom-end")):g&&m?$="top":g?$="top-start":m&&($="top-end"):e.startsWith("left")?g?($=null==e?void 0:e.replace("left","right"),b&&u?$="right":b?$="right-end":u&&($="right-start")):b&&u?$="left":b?$="left-end":u&&($="left-start"):$.startsWith("right")&&(m?($=null==e?void 0:e.replace("right","left"),b&&u?$="left":b?$="left-end":u&&($="left-start")):b&&u?$="right":b?$="right-end":u&&($="right-start")),{top:l,bottom:r,right:d,height:n,width:h,left:p,childHeight:i.height,childWidth:i.width,correctedPlacement:$,innerWidth:c,innerHeight:a}},i=new WeakMap,l=(t,o,l)=>{var n,r;if(!t||!o)return;const d=getComputedStyle(o),p=["absolute","fixed"].includes(d.position),h=(t=>{if(i.has(t))return i.get(t);let o=t.parentElement,e=0;for(;o&&e<10;){if(o.dataset.correctedPlacement)return i.set(t,o),o;o=o.parentElement,e+=1}return i.set(t,null),null})(t),a=!h&&!p,c=null!==(r=null===(n=getComputedStyle(t))||void 0===n?void 0:n.getPropertyValue("--db-popover-distance"))&&void 0!==r?r:"0px";let{top:s,height:f,width:b,childHeight:u,childWidth:g,right:m,left:$,bottom:x,correctedPlacement:v,innerWidth:w,innerHeight:W}=e(t,o,l);if(h){const t=h.getBoundingClientRect();$=Math.abs($-t.left),m=1.5*(b+Math.abs(m-t.right)),s=Math.abs(s-t.top),x=1.5*(f+Math.abs(x-t.bottom))}if(p&&($=0,m=b,s=0,x=f,["auto","inherit","0"].includes(d.zIndex)&&(o.style.zIndex="1")),g>b&&(v.startsWith("bottom")||v.startsWith("top"))){const o=b/2/g*100;v.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-inline-start",`${o}%`):v.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-inline-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-inline-start","50%")}if(u>f&&(v.startsWith("left")||v.startsWith("bottom"))){const o=f/2/u*100;v.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-block-start",`${o}%`):v.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-block-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-block-start","50%")}if("right"===v||"left"===v)t.style.insetBlockStart=`${s+f/2}px`;else if("right-start"===v||"left-start"===v){const o=s+u;t.style.insetBlockStart=`${s}px`,t.style.insetBlockEnd=`${!p&&o>W?W:o}px`}else if("right-end"===v||"left-end"===v){const o=x-u;t.style.insetBlockStart=`${!p&&o<0?0:o}px`,t.style.insetBlockEnd=`${x}px`}else if("top"===v||"bottom"===v)t.style.insetInlineStart=`${$+b/2}px`;else if("top-start"===v||"bottom-start"===v){const o=$+g;t.style.insetInlineStart=`${$}px`,t.style.insetInlineEnd=`${!p&&o>w?w:o}px`}else if("top-end"===v||"bottom-end"===v){const o=m-g;t.style.insetInlineStart=`${!p&&o<0?0:o}px`,t.style.insetInlineEnd=`${m}px`}if(null==v?void 0:v.startsWith("right")){const o=m+g;t.style.insetInlineStart=`calc(${m}px + ${c})`,t.style.insetInlineEnd=`calc(${a&&o>w?w:o}px + ${c})`}else if(null==v?void 0:v.startsWith("left")){const o=$-g;t.style.insetInlineStart=`calc(${a&&o<0?0:o}px - ${c})`,t.style.insetInlineEnd=`calc(${m}px - ${c})`}else if(null==v?void 0:v.startsWith("top")){const o=s-u;t.style.insetBlockStart=`calc(${a&&o<0?0:o}px - ${c})`,t.style.insetBlockEnd=`calc(${p?o:x}px - ${c})`}else if(null==v?void 0:v.startsWith("bottom")){const o=x+u;t.style.insetBlockStart=`calc(${p?o:x}px + ${c})`,t.style.insetBlockEnd=`calc(${a&&o>W?W:o}px + ${c})`}t.style.position="fixed",t.dataset.correctedPlacement=v};export{o as a,l as b,e as g,t as h}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i}from"./p-
|
|
1
|
+
import{h as i}from"./p-C0q9XJSc.js";const t=i=>{var t,s;const{target:h}=i;return Boolean(!(null===(t=null==h?void 0:h.classList)||void 0===t?void 0:t.contains("db-navigation-item-expand-button"))&&(null===(s=null==h?void 0:h.parentElement)||void 0===s?void 0:s.classList.contains("db-navigation-item")))};class s{constructor(i,t){var s;this.parentSubNavigation=null,this.initialized=!1,this.mouseX=0,this.mouseY=0,this.element=i,this.subNavigation=t,this.element&&this.subNavigation&&(this.parentSubNavigation=null===(s=this.element)||void 0===s?void 0:s.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var i,t,s;const h=null!==(t=null===(i=this.parentSubNavigation)||void 0===i?void 0:i.getBoundingClientRect().width)&&void 0!==t?t:0;null===(s=this.element)||void 0===s||s.style.setProperty("--db-navigation-item-inline-size",`${h}px`),this.initialized=!0}enableFollow(){var t,s;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const h=i(this.subNavigation),n=this.element.getBoundingClientRect(),o=null!==(s=null===(t=this.parentSubNavigation)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==s?s:0;this.triangleData={itemRect:n,parentElementWidth:o,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(o-n.width)/2,outsideVX:h.vx,outsideVY:h.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?"right"===this.triangleData.outsideVX?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,.75*this.triangleData.itemRect.width):0}getTriangleTipY(){if(!this.triangleData)return 0;const i=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return"bottom"===this.triangleData.outsideVY?i+(this.triangleData.subNavigationHeight-2*this.triangleData.padding-this.triangleData.itemRect.height):i}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const i="right"===this.triangleData.outsideVX;return!!(i&&this.mouseX<-1*this.triangleData.padding)||!i&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding}getTriangleCoordinates(i){if(!this.triangleData)return;if("fill-gap"===i){const i=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=this.triangleData.parentElementWidth-this.triangleData.padding+"px";return{lb:`${t} ${i}`,lt:`${t} 0`,rt:"100% 0",rb:`100% ${i}`}}const t=this.getTriangleTipX(),s=this.getTriangleTipY();return{lb:`${t}px ${s}px`,lt:`${t}px ${s}px`,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(i){if(!(this.initialized&&this.triangleData&&this.element&&this.subNavigation))return;this.mouseX=i.clientX-this.triangleData.itemRect.left,this.mouseY=i.clientY-this.triangleData.itemRect.top;const t=this.hasMouseEnteredSubNavigation(),s=this.getTriangleCoordinates(t?"fill-gap":"safe-triangle");s&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${s.lb}, ${s.lt}, ${s.rt}, ${s.rb})`),t&&(this.triangleData=void 0))}}export{s as N,t as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as s,c as e}from"./p-BlbKvvUv.js";import{c as h,e as a,g as d,h as o,d as n,s as l,i as c,u as r,k as u,f as v,j as b,b as f,l as m}from"./p-fumiz06Y.js";import{l as p,f as y,g as w,h as g,j as k,k as x,b as $,a as O,m as _}from"./p-BdL-nI5y.js";import{c as C}from"./p-BihrW11j.js";const F=class{constructor(i){t(this,i),this.width="fixed",this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-custom-select-dropdown");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-dropdown")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-dropdown"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return i("article",{key:"7720cebaaa9128aa7f12a3720aa1374a0fd689d7",class:h("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-width":this.width},i("slot",{key:"19d66fe8c4369630a1debf34e448c0f13ebe0be9"}))}get rootElement(){return s(this)}},I=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-custom-select-list");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-list")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return i("div",{key:"753c3016f6c9a1ed9fce2fa8c7ae00b9ff73383d",class:h("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},i("ul",{key:"6fce279c5ddf56f52c574e98d60335cd689d7e2c"},i("slot",{key:"667b6c5979cee0f28941fc4e62ba67d9b5878373"})))}get rootElement(){return s(this)}},L=class{constructor(i){t(this,i),this.change=e(this,"change"),this.hasDivider=!1,this.observer=void 0}handleChange(t){t.stopPropagation(),this.change&&this.change.emit(t)}getIconTrailing(){if(!this.isGroupTitle&&"checkbox"!==this.type)return a(this.checked,"checked")?"check":"x_placeholder"}setupObserver(t){if(!t)return;const i=t.closest("db-custom-select-list-item");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-list-item")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){this.hasDivider=Boolean(this.isGroupTitle||this.showDivider)}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list-item"),this.setupObserver(this._ref),this.watch0Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return i("li",{key:"95e2aeea15f86890868013ddb33a6b365d814fc4",class:h("db-custom-select-list-item",this.className,{"db-checkbox":"checkbox"===this.type&&!this.isGroupTitle,"db-radio":"checkbox"!==this.type&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-divider":d(this.hasDivider,"hasDivider")},this.isGroupTitle?i("span",null,this.groupTitle):i("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":d(this.showIcon,"showIcon"),"data-icon-trailing":this.getIconTrailing()},i("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),i("span",{class:"db-custom-select-list-item-label"},this.label?this.label:null,i("slot",null))))}get rootElement(){return s(this)}static get watchers(){return{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}}},D=class{constructor(i){t(this,i),this.input=e(this,"input"),this.change=e(this,"change"),this.blur=e(this,"blur"),this.focus=e(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._dataListId=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,e;(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)?(this._descByIds=this._validMessageId,o()&&(this._voiceOverFallback=null!==(e=this.validMessage)&&void 0!==e?e:x,n((()=>this._voiceOverFallback=""),1e3))):this._descByIds=l(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||p,o()&&(this._voiceOverFallback=this._invalidMessage,n((()=>this._voiceOverFallback=""),1e3)))}handleInput(t,i){this.input&&this.input.emit(t),this.handleValidation()}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}getDataList(){const t=this.dataList;return Array.from((c(t)?null==t?void 0:t.map((t=>({value:t,label:void 0}))):t)||[])}resetIds(){var t,i,s;const e=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:`input-${r()}`;this._id=e,this._messageId=e+y,this._validMessageId=e+w,this._invalidMessageId=e+g,this._dataListId=e+k}setupObserver(t){if(!t)return;const i=t.closest("db-input");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-input")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var t;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||p}watch1(){this.watch1Fn()}watch2Fn(){var t;if(this._id){const i=this._id+y;this._messageId=i,this._validMessageId=this._id+w,this._invalidMessageId=this._id+g,this._dataListId=null!==(t=this.dataListId)&&void 0!==t?t:this._id+k,l(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),C(this._ref,{value:this.value,defaultValue:t},(t=>{this.handleChange(t,!0),this.handleInput(t,!0)}),i.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-input"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||p})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,s,e,o,n,c,r,p;return i("div",{key:"bfe18e425b08ee3c315f9f59eb230d5ba437407a",class:h("db-input",this.className),"data-variant":this.variant,"data-hide-label":m(this.showLabel),"data-show-icon":d(this.showIconLeading,"showIconLeading")||d(this.showIcon,"showIcon"),"data-icon":null!==(t=this.iconLeading)&&void 0!==t?t:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":m(this.showRequiredAsterisk),"data-show-icon-trailing":d(this.showIconTrailing,"showIconTrailing")},i("label",{key:"0356f8c8e0cf5fe3d4da7857f75a6298fe39486b",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:O),i("input",{key:"4bd3c6406df28e017ceb6f080b06e7b4ccf2df75","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:t=>{this._ref=t},id:this._id,name:this.name,type:this.type||"text",multiple:a(this.multiple,"multiple"),accept:this.accept,placeholder:null!==(e=this.placeholder)&&void 0!==e?e:$,disabled:a(this.disabled,"disabled"),required:a(this.required,"required"),step:b(this.step),value:null!==(n=null!==(o=this.value)&&void 0!==o?o:this._value)&&void 0!==n?n:"",maxLength:v(this.maxLength,this.maxlength),minLength:v(this.minLength,this.minlength),max:u(this.max,this.type),min:u(this.min,this.type),readOnly:a(this.readOnly,"readOnly")||a(this.readonly,"readonly")||void 0,form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:a(this.autofocus,"autofocus"),enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),list:this.dataList&&this._dataListId,"aria-describedby":null!==(c=this.ariaDescribedBy)&&void 0!==c?c:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(r=this.type)&&void 0!==r?r:"")&&f()?"textbox":void 0}),this.dataList?i("datalist",{id:this._dataListId},null===(p=this.getDataList())||void 0===p?void 0:p.map((t=>i("option",{key:this._dataListId+"-option-"+t.value,value:t.value},t.label)))):null,i("slot",{key:"7071e137ef966ea7ba8c0242c540ee73163e8023"}),l(this.message,this.showMessage)?i("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?i("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||x):null,i("db-infotext",{key:"221bc7dceacad6b0c4eb9cfd5747a8db71ff512d",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),i("span",{key:"2e376dfcacc4be02eaff503d25e219fcf78ff7a8","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return s(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},V=class{constructor(i){t(this,i),this.remove=e(this,"remove"),this.observer=void 0}handleRemove(t){t&&(t.stopPropagation(),this.remove&&this.remove.emit(t))}getRemoveButtonText(){return this.removeButton?this.removeButton:_}setupObserver(t){if(!t)return;const i=t.closest("db-tag");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tag")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tag"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e;return i("div",{key:"bf503e6e826fcb53cfc057b1f2610d062967311e",class:h("db-tag",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-semantic":this.semantic,"data-emphasis":this.emphasis,"data-icon":this.icon,"data-show-check-state":d(null===(e=this.showCheckState)||void 0===e||e,"showCheckState"),"data-show-icon":d(this.showIcon,"showIcon"),"data-no-text":d(this.noText,"noText"),"data-overflow":d(this.overflow,"overflow")},i("slot",{key:"d047f3f96e38b36f4d8f43cfb316d1571ebdd9ba",name:"content"}),this.text?this.text:null,i("slot",{key:"b2356b4e384b61ac2844bdb4a8c2f9c4e5b9f153"}),"removable"===this.behavior?i("button",{class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",type:"button",onClick:t=>this.handleRemove(t)},i("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}get rootElement(){return s(this)}};export{F as db_custom_select_dropdown,I as db_custom_select_list,L as db_custom_select_list_item,D as db_input,V as db_tag}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,g as e}from"./p-BlbKvvUv.js";import{s as a}from"./p-BdL-nI5y.js";import{o as d,e as h,d as o,g as n,c as r}from"./p-fumiz06Y.js";const c=class{constructor(i){t(this,i),this.close=s(this,"close"),this.initialized=!1,this.backdropPointerDown=!1,this.observer=void 0}isNotModal(){return"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant}handleBackdropPointerDown(t){var s;this.backdropPointerDown="DIALOG"===(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.nodeName)}handleClose(t,s){var i;t&&(d(t)?"Escape"===t.key&&(t.preventDefault(),this.close&&this.close.emit(t)):(s&&(t.stopPropagation(),this.close&&this.close.emit(t)),"DIALOG"===(null===(i=t.target)||void 0===i?void 0:i.nodeName)&&"click"===t.type&&"none"!==this.backdrop&&this.backdropPointerDown&&this.close&&this.close.emit(t),this.backdropPointerDown=!1))}handleDialogOpen(){if(this._ref){const t=h(this.open,"open");t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),this.isNotModal()?this._ref.show():(this._ref.setAttribute("closedby","any"),this._ref.showModal()),o((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),o((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}setupObserver(t){if(!t)return;const s=t.closest("db-drawer");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const i=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==i?void 0:i.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-drawer")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),i.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){this.handleDialogOpen()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&"absolute"===this.position){const t=this._ref.parentElement;t&&(t.style.position="relative")}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-drawer"),(()=>{this.handleDialogOpen(),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e;return i("dialog",{key:"c03126193778f601b7ff3aeeeff508c8920e67a7",class:"db-drawer",id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,ref:t=>{this._ref=t},onClick:t=>this.handleClose(t),onMouseDown:t=>this.handleBackdropPointerDown(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},i("article",{key:"64661349d858bf5be872d664b44bc6fa829014e6",class:r("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":n(this.rounded,"rounded")},i("header",{key:"b758a538b1337573090305aadcf3bc3befef1bf3",class:"db-drawer-header"},i("div",{key:"235f2be7afc9c968b9270178c2720a5a50436123",class:"db-drawer-header-text"},i("slot",{key:"26787a5e103d2d34785ce1eccd0ff73b6733fce8",name:"drawerHeader"})),i("db-button",{key:"1d22b406c4e235e91bc9bfc3265a0aaa9c7f8e8c",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t,!0)},null!==(e=this.closeButtonText)&&void 0!==e?e:a)),i("div",{key:"0e338b2e11c8582ba59595f34d8fc4911db7025e",class:"db-drawer-content"},i("slot",{key:"c761758ada4d1602878a58de6003e01cf5b5d075"}))))}get rootElement(){return e(this)}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}};export{c as db_drawer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{D as e}from"./p-BdL-nI5y.js";import{d as a,u as h,g as o,c as d}from"./p-fumiz06Y.js";import{D as n}from"./p-BtImZ8Nt.js";import{b as l}from"./p-
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{D as e}from"./p-BdL-nI5y.js";import{d as a,u as h,g as o,c as d}from"./p-fumiz06Y.js";import{D as n}from"./p-BtImZ8Nt.js";import{b as l}from"./p-C0q9XJSc.js";const r=class{constructor(i){t(this,i),this._id=e,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._attachedParent=void 0,this._attachedId=void 0,this._activeTriggerCount=0,this._boundListeners=[],this.observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&a((()=>{var i;this._ref&&l(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,e;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t,i,s;this._activeTriggerCount=Math.max((null!==(t=this._activeTriggerCount)&&void 0!==t?t:0)-1,0),(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)>0||(this._documentScrollListenerCallbackId&&((new n).removeCallback(this._documentScrollListenerCallbackId),this._documentScrollListenerCallbackId=void 0),null===(s=this._observer)||void 0===s||s.unobserve(this.getParent()))}handleEnter(t){var i,s;this._activeTriggerCount=(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)+1,1===this._activeTriggerCount&&(this._documentScrollListenerCallbackId=(new n).addCallback((i=>this.handleDocumentScroll(i,t))),null===(s=this._observer)||void 0===s||s.observe(this.getParent())),this.handleAutoPlacement(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"tooltip-"+h()}_detachListeners(){var t,i,s;const e=this._documentScrollListenerCallbackId;e&&((new n).removeCallback(e),this._documentScrollListenerCallbackId=void 0),null===(t=this._observer)||void 0===t||t.disconnect(),this._observer=void 0,this._activeTriggerCount=0,(null!==(i=this._boundListeners)&&void 0!==i?i:[]).forEach((t=>{t.parent.removeEventListener(t.type,t.fn)})),this._boundListeners=[];const a=this._attachedParent;if(a){const t=null!==(s=this._attachedId)&&void 0!==s?s:this._id,i=a.querySelectorAll(".db-tooltip"),e=Array.from(i).some((t=>t!==this._ref));"true"!==a.dataset.hasTooltip||e||delete a.dataset.hasTooltip,a.getAttribute("aria-labelledby")===t&&a.removeAttribute("aria-labelledby"),a.getAttribute("aria-describedby")===t&&a.removeAttribute("aria-describedby"),this._attachedParent=void 0,this._attachedId=void 0}}setupObserver(t){if(!t)return;const i=t.closest("db-tooltip");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tooltip")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref&&this.initialized&&this._id){const i=this.getParent();if(i){this.handleAutoPlacement(i);const s=()=>this.handleEnter(i),e=()=>this.handleLeave(),a=t=>this.handleEscape(t);i.addEventListener("mouseenter",s),i.addEventListener("focusin",s),i.addEventListener("keydown",a),i.addEventListener("mouseleave",e),i.addEventListener("focusout",e),this._boundListeners=[...null!==(t=this._boundListeners)&&void 0!==t?t:[],{parent:i,type:"mouseenter",fn:s},{parent:i,type:"focusin",fn:s},{parent:i,type:"keydown",fn:a},{parent:i,type:"mouseleave",fn:e},{parent:i,type:"focusout",fn:e}],i.dataset.hasTooltip="true",i.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id),this._attachedParent=i,this._attachedId=this._id}"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tooltip"),(()=>{this.resetIds(),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;this._detachListeners(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return i("i",{key:"a35fc9349a599145e2ea2287aa6467500854fadd",class:d("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-wrap":o(this.wrap,"wrap"),"data-animation":o(null===(t=this.animation)||void 0===t||t,"animation"),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":o(null===(s=this.showArrow)||void 0===s||s,"showArrow"),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,i("slot",{key:"63d102dc8c4c4022c2dc3bad582f0167635adcb2"}))}get rootElement(){return s(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}};export{r as db_tooltip}
|
|
@@ -290,7 +290,7 @@ const DBCustomSelectListItem = class {
|
|
|
290
290
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
291
291
|
}), ref: (el) => {
|
|
292
292
|
this._ref = el;
|
|
293
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider, "hasDivider") }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
293
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider, "hasDivider") }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), h("span", { class: "db-custom-select-list-item-label" }, this.label ? this.label : null, h("slot", null)))) : (h("span", null, this.groupTitle))));
|
|
294
294
|
}
|
|
295
295
|
get rootElement() { return getElement(this); }
|
|
296
296
|
static get watchers() { return {
|