@limetech/lime-elements 37.14.0 → 37.14.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/dist/cjs/limel-portal_3.cjs.entry.js +6 -4
- package/dist/cjs/limel-portal_3.cjs.entry.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +6 -4
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/esm/limel-portal_3.entry.js +6 -4
- package/dist/esm/limel-portal_3.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-4b29d287.entry.js → p-66c9403f.entry.js} +2 -2
- package/dist/lime-elements/p-66c9403f.entry.js.map +1 -0
- package/package.json +2 -2
- package/dist/lime-elements/p-4b29d287.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-443111b3.js";export{s as setNonce}from"./p-443111b3.js";const i=()=>{const l=import.meta.url;const i={};if(l!==""){i.resourcesUrl=new URL(".",l).href}return e(i)};i().then((e=>l(JSON.parse('[["p-613d6e99",[[1,"limel-action-bar",{"actions":[16],"accessibleLabel":[513,"accessible-label"],"layout":[513],"openDirection":[513,"open-direction"],"overflowCutoff":[32]}]]],["p-2b4bc9d5",[[1,"limel-split-button",{"label":[513],"primary":[516],"icon":[513],"disabled":[516],"items":[16]}]]],["p-08dd6ff7",[[1,"limel-file-viewer",{"url":[513],"filename":[513],"alt":[513],"allowFullscreen":[516,"allow-fullscreen"],"allowOpenInNewTab":[516,"allow-open-in-new-tab"],"allowDownload":[516,"allow-download"],"language":[1],"officeViewer":[513,"office-viewer"],"actions":[16],"isFullscreen":[32],"fileType":[32],"loading":[32],"fileUrl":[32]}]]],["p-48652dbe",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["p-3e90be0a",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"invalid":[516],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["p-5d2eaff4",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formatter":[16],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["p-65018bde",[[1,"limel-dock",{"dockItems":[16],"dockFooterItems":[16],"accessibleLabel":[513,"accessible-label"],"expanded":[516],"allowResize":[516,"allow-resize"],"mobileBreakPoint":[514,"mobile-break-point"],"useMobileLayout":[32]}]]],["p-fc91537a",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"invalid":[516],"accept":[513],"language":[1]}]]],["p-79cf904b",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["p-3d6dc7de",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["p-6fb481ea",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["p-3cd95c9f",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["p-768dc020",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["p-5d01dc2a",[[1,"limel-help",{"value":[1],"trigger":[1],"readMoreLink":[16],"openDirection":[513,"open-direction"],"isOpen":[32]}]]],["p-c36a9afa",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"indeterminate":[516],"required":[516],"readonlyLabels":[16],"modified":[32]}]]],["p-04409f02",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"layout":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"],"aggregates":[16],"selectable":[4],"selection":[16]}]]],["p-5e0ee0be",[[1,"limel-info-tile",{"value":[520],"icon":[1],"label":[513],"prefix":[513],"suffix":[513],"disabled":[516],"badge":[520],"loading":[516],"link":[16],"progress":[16]}]]],["p-9b437537",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"invalid":[516],"value":[516],"helperText":[513,"helper-text"],"readonlyLabels":[16],"fieldId":[32]}]]],["p-e724004c",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["p-eb58b4b7",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["p-6b2bc81b",[[1,"limel-shortcut",{"icon":[513],"label":[513],"disabled":[516],"badge":[520],"link":[16]}]]],["p-afce9725",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["p-9d0552a2",[[1,"limel-callout",{"heading":[513],"icon":[513],"type":[513],"language":[1]}]]],["p-9375145d",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["p-11d775ca",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"fold":[4],"lint":[4],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["p-16e4ca3e",[[1,"limel-config",{"config":[16]}]]],["p-ea98795d",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["p-8651eb16",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16],"errors":[16]}]]],["p-b5f723e2",[[1,"limel-grid"]]],["p-4b29d287",[[1,"limel-tooltip",{"elementId":[513,"element-id"],"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514],"openDirection":[513,"open-direction"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514]}],[1,"limel-portal",{"openDirection":[513,"open-direction"],"position":[513],"containerId":[513,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[516,"inherit-parent-width"],"visible":[516],"anchor":[16]}]]],["p-e791ef57",[[17,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}]]],["p-57a26fef",[[1,"limel-badge",{"label":[520]}]]],["p-16c3a81a",[[0,"limel-dock-button",{"item":[16],"expanded":[516],"useMobileLayout":[516,"use-mobile-layout"],"isOpen":[32]}]]],["p-c44129b5",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["p-0fef416f",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"],"subheadingDivider":[1,"subheading-divider"]}]]],["p-d6660d2a",[[1,"limel-help-content",{"value":[1],"readMoreLink":[16]}]]],["p-bc63c12e",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4],"currentStep":[4,"current-step"]}]]],["p-c316e9a6",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"prefix":[513],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["p-33a52a53",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1],"formatter":[16]}]]],["p-6eeb61e4",[[0,"limel-action-bar-overflow-menu",{"items":[16],"openDirection":[513,"open-direction"]}],[0,"limel-action-bar-item",{"item":[16],"isVisible":[516,"is-visible"]}]]],["p-a6f90b2e",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"justLoaded":[32]}]]],["p-c9ffb1b4",[[1,"limel-file-dropzone",{"accept":[513],"disabled":[4],"text":[1],"helperText":[1,"helper-text"],"hasFileToDrop":[32]}],[1,"limel-file-input",{"accept":[513],"disabled":[516],"multiple":[516]}]]],["p-264bf26c",[[1,"limel-markdown",{"value":[1]}]]],["p-426c1849",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516]}]]],["p-9605854b",[[1,"limel-linear-progress",{"value":[514],"indeterminate":[516]}]]],["p-5c9fbe6f",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["p-54d85dd0",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"invalid":[516],"inputType":[513,"input-type"],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"selectedChipIds":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}],[1,"limel-chip",{"language":[513],"text":[513],"icon":[1],"link":[16],"badge":[520],"disabled":[516],"readonly":[516],"selected":[516],"invalid":[516],"removable":[516],"type":[513],"loading":[516],"progress":[514],"identifier":[520]}]]],["p-53fc6f0e",[[1,"limel-popover",{"open":[4],"openDirection":[513,"open-direction"]}],[1,"limel-popover-surface",{"contentCollection":[16]}]]],["p-9df38d59",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["p-a2d19673",[[1,"limel-dynamic-label",{"value":[8],"defaultLabel":[16],"labels":[16]}],[1,"limel-helper-line",{"helperText":[513,"helper-text"],"length":[514],"maxLength":[514,"max-length"],"invalid":[516],"helperTextId":[513,"helper-text-id"]}]]],["p-da62cd3f",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"prefix":[513],"suffix":[513],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"locale":[513],"isFocused":[32],"isModified":[32],"showCompletions":[32]}],[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}]]],["p-497a0b69",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"surfaceWidth":[513,"surface-width"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"],"loading":[516],"currentSubMenu":[1040],"rootItem":[16],"searcher":[16],"emptyResultMessage":[1,"empty-result-message"],"loadingSubItems":[32],"searchValue":[32],"searchResults":[32]}],[1,"limel-breadcrumbs",{"items":[16],"divider":[1]}],[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as l}from"./p-443111b3.js";export{s as setNonce}from"./p-443111b3.js";const i=()=>{const l=import.meta.url;const i={};if(l!==""){i.resourcesUrl=new URL(".",l).href}return e(i)};i().then((e=>l(JSON.parse('[["p-613d6e99",[[1,"limel-action-bar",{"actions":[16],"accessibleLabel":[513,"accessible-label"],"layout":[513],"openDirection":[513,"open-direction"],"overflowCutoff":[32]}]]],["p-2b4bc9d5",[[1,"limel-split-button",{"label":[513],"primary":[516],"icon":[513],"disabled":[516],"items":[16]}]]],["p-08dd6ff7",[[1,"limel-file-viewer",{"url":[513],"filename":[513],"alt":[513],"allowFullscreen":[516,"allow-fullscreen"],"allowOpenInNewTab":[516,"allow-open-in-new-tab"],"allowDownload":[516,"allow-download"],"language":[1],"officeViewer":[513,"office-viewer"],"actions":[16],"isFullscreen":[32],"fileType":[32],"loading":[32],"fileUrl":[32]}]]],["p-48652dbe",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["p-3e90be0a",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"invalid":[516],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["p-5d2eaff4",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formatter":[16],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["p-65018bde",[[1,"limel-dock",{"dockItems":[16],"dockFooterItems":[16],"accessibleLabel":[513,"accessible-label"],"expanded":[516],"allowResize":[516,"allow-resize"],"mobileBreakPoint":[514,"mobile-break-point"],"useMobileLayout":[32]}]]],["p-fc91537a",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"invalid":[516],"accept":[513],"language":[1]}]]],["p-79cf904b",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["p-3d6dc7de",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["p-6fb481ea",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["p-3cd95c9f",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["p-768dc020",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["p-5d01dc2a",[[1,"limel-help",{"value":[1],"trigger":[1],"readMoreLink":[16],"openDirection":[513,"open-direction"],"isOpen":[32]}]]],["p-c36a9afa",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"indeterminate":[516],"required":[516],"readonlyLabels":[16],"modified":[32]}]]],["p-04409f02",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"layout":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"],"aggregates":[16],"selectable":[4],"selection":[16]}]]],["p-5e0ee0be",[[1,"limel-info-tile",{"value":[520],"icon":[1],"label":[513],"prefix":[513],"suffix":[513],"disabled":[516],"badge":[520],"loading":[516],"link":[16],"progress":[16]}]]],["p-9b437537",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"invalid":[516],"value":[516],"helperText":[513,"helper-text"],"readonlyLabels":[16],"fieldId":[32]}]]],["p-e724004c",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["p-eb58b4b7",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["p-6b2bc81b",[[1,"limel-shortcut",{"icon":[513],"label":[513],"disabled":[516],"badge":[520],"link":[16]}]]],["p-afce9725",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["p-9d0552a2",[[1,"limel-callout",{"heading":[513],"icon":[513],"type":[513],"language":[1]}]]],["p-9375145d",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["p-11d775ca",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"fold":[4],"lint":[4],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["p-16e4ca3e",[[1,"limel-config",{"config":[16]}]]],["p-ea98795d",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["p-8651eb16",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16],"errors":[16]}]]],["p-b5f723e2",[[1,"limel-grid"]]],["p-66c9403f",[[1,"limel-tooltip",{"elementId":[513,"element-id"],"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514],"openDirection":[513,"open-direction"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514]}],[1,"limel-portal",{"openDirection":[513,"open-direction"],"position":[513],"containerId":[513,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[516,"inherit-parent-width"],"visible":[516],"anchor":[16]}]]],["p-e791ef57",[[17,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}]]],["p-57a26fef",[[1,"limel-badge",{"label":[520]}]]],["p-16c3a81a",[[0,"limel-dock-button",{"item":[16],"expanded":[516],"useMobileLayout":[516,"use-mobile-layout"],"isOpen":[32]}]]],["p-c44129b5",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["p-0fef416f",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"],"subheadingDivider":[1,"subheading-divider"]}]]],["p-d6660d2a",[[1,"limel-help-content",{"value":[1],"readMoreLink":[16]}]]],["p-bc63c12e",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4],"currentStep":[4,"current-step"]}]]],["p-c316e9a6",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"prefix":[513],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["p-33a52a53",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1],"formatter":[16]}]]],["p-6eeb61e4",[[0,"limel-action-bar-overflow-menu",{"items":[16],"openDirection":[513,"open-direction"]}],[0,"limel-action-bar-item",{"item":[16],"isVisible":[516,"is-visible"]}]]],["p-a6f90b2e",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"justLoaded":[32]}]]],["p-c9ffb1b4",[[1,"limel-file-dropzone",{"accept":[513],"disabled":[4],"text":[1],"helperText":[1,"helper-text"],"hasFileToDrop":[32]}],[1,"limel-file-input",{"accept":[513],"disabled":[516],"multiple":[516]}]]],["p-264bf26c",[[1,"limel-markdown",{"value":[1]}]]],["p-426c1849",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516]}]]],["p-9605854b",[[1,"limel-linear-progress",{"value":[514],"indeterminate":[516]}]]],["p-5c9fbe6f",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["p-54d85dd0",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"invalid":[516],"inputType":[513,"input-type"],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"selectedChipIds":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}],[1,"limel-chip",{"language":[513],"text":[513],"icon":[1],"link":[16],"badge":[520],"disabled":[516],"readonly":[516],"selected":[516],"invalid":[516],"removable":[516],"type":[513],"loading":[516],"progress":[514],"identifier":[520]}]]],["p-53fc6f0e",[[1,"limel-popover",{"open":[4],"openDirection":[513,"open-direction"]}],[1,"limel-popover-surface",{"contentCollection":[16]}]]],["p-9df38d59",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["p-a2d19673",[[1,"limel-dynamic-label",{"value":[8],"defaultLabel":[16],"labels":[16]}],[1,"limel-helper-line",{"helperText":[513,"helper-text"],"length":[514],"maxLength":[514,"max-length"],"invalid":[516],"helperTextId":[513,"helper-text-id"]}]]],["p-da62cd3f",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"prefix":[513],"suffix":[513],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"locale":[513],"isFocused":[32],"isModified":[32],"showCompletions":[32]}],[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}]]],["p-497a0b69",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"surfaceWidth":[513,"surface-width"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"],"loading":[516],"currentSubMenu":[1040],"rootItem":[16],"searcher":[16],"emptyResultMessage":[1,"empty-result-message"],"loadingSubItems":[32],"searchValue":[32],"searchResults":[32]}],[1,"limel-breadcrumbs",{"items":[16],"divider":[1]}],[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]]]'),e)));
|
|
2
2
|
//# sourceMappingURL=lime-elements.esm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as r,g as e}from"./p-443111b3.js";import{c as n}from"./p-3ccdc4a3.js";var i="top";var a="bottom";var o="right";var s="left";var u="auto";var f=[i,a,o,s];var v="start";var c="end";var l="clippingParents";var d="viewport";var h="popper";var p="reference";var b=f.reduce((function(t,r){return t.concat([r+"-"+v,r+"-"+c])}),[]);var m=[].concat(f,[u]).reduce((function(t,r){return t.concat([r,r+"-"+v,r+"-"+c])}),[]);var y="beforeRead";var g="read";var w="afterRead";var x="beforeMain";var O="main";var j="afterMain";var k="beforeWrite";var M="write";var C="afterWrite";var P=[y,g,w,x,O,j,k,M,C];function A(t){return t?(t.nodeName||"").toLowerCase():null}function L(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r?r.defaultView||window:window}return t}function E(t){var r=L(t).Element;return t instanceof r||t instanceof Element}function S(t){var r=L(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function q(t){if(typeof ShadowRoot==="undefined"){return false}var r=L(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function R(t){var r=t.state;Object.keys(r.elements).forEach((function(t){var e=r.styles[t]||{};var n=r.attributes[t]||{};var i=r.elements[t];if(!S(i)||!A(i)){return}Object.assign(i.style,e);Object.keys(n).forEach((function(t){var r=n[t];if(r===false){i.removeAttribute(t)}else{i.setAttribute(t,r===true?"":r)}}))}))}function W(t){var r=t.state;var e={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,e.popper);r.styles=e;if(r.elements.arrow){Object.assign(r.elements.arrow.style,e.arrow)}return function(){Object.keys(r.elements).forEach((function(t){var n=r.elements[t];var i=r.attributes[t]||{};var a=Object.keys(r.styles.hasOwnProperty(t)?r.styles[t]:e[t]);var o=a.reduce((function(t,r){t[r]="";return t}),{});if(!S(n)||!A(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}const z={name:"applyStyles",enabled:true,phase:"write",fn:R,effect:W,requires:["computeStyles"]};function B(t){return t.split("-")[0]}var I=Math.max;var T=Math.min;var _=Math.round;function F(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(F())}function V(t,r,e){if(r===void 0){r=false}if(e===void 0){e=false}var n=t.getBoundingClientRect();var i=1;var a=1;if(r&&S(t)){i=t.offsetWidth>0?_(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?_(n.height)/t.offsetHeight||1:1}var o=E(t)?L(t):window,s=o.visualViewport;var u=!H()&&e;var f=(n.left+(u&&s?s.offsetLeft:0))/i;var v=(n.top+(u&&s?s.offsetTop:0))/a;var c=n.width/i;var l=n.height/a;return{width:c,height:l,top:v,right:f+c,bottom:v+l,left:f,x:f,y:v}}function D(t){var r=V(t);var e=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(r.width-e)<=1){e=r.width}if(Math.abs(r.height-n)<=1){n=r.height}return{x:t.offsetLeft,y:t.offsetTop,width:e,height:n}}function $(t,r){var e=r.getRootNode&&r.getRootNode();if(t.contains(r)){return true}else if(e&&q(e)){var n=r;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function N(t){return L(t).getComputedStyle(t)}function U(t){return["table","td","th"].indexOf(A(t))>=0}function G(t){return((E(t)?t.ownerDocument:t.document)||window.document).documentElement}function J(t){if(A(t)==="html"){return t}return t.assignedSlot||t.parentNode||(q(t)?t.host:null)||G(t)}function K(t){if(!S(t)||N(t).position==="fixed"){return null}return t.offsetParent}function Q(t){var r=/firefox/i.test(F());var e=/Trident/i.test(F());if(e&&S(t)){var n=N(t);if(n.position==="fixed"){return null}}var i=J(t);if(q(i)){i=i.host}while(S(i)&&["html","body"].indexOf(A(i))<0){var a=N(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||r&&a.willChange==="filter"||r&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function X(t){var r=L(t);var e=K(t);while(e&&U(e)&&N(e).position==="static"){e=K(e)}if(e&&(A(e)==="html"||A(e)==="body"&&N(e).position==="static")){return r}return e||Q(t)||r}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z(t,r,e){return I(t,T(r,e))}function tt(t,r,e){var n=Z(t,r,e);return n>e?e:n}function rt(){return{top:0,right:0,bottom:0,left:0}}function et(t){return Object.assign({},rt(),t)}function nt(t,r){return r.reduce((function(r,e){r[e]=t;return r}),{})}var it=function t(r,e){r=typeof r==="function"?r(Object.assign({},e.rects,{placement:e.placement})):r;return et(typeof r!=="number"?r:nt(r,f))};function at(t){var r;var e=t.state,n=t.name,u=t.options;var f=e.elements.arrow;var v=e.modifiersData.popperOffsets;var c=B(e.placement);var l=Y(c);var d=[s,o].indexOf(c)>=0;var h=d?"height":"width";if(!f||!v){return}var p=it(u.padding,e);var b=D(f);var m=l==="y"?i:s;var y=l==="y"?a:o;var g=e.rects.reference[h]+e.rects.reference[l]-v[l]-e.rects.popper[h];var w=v[l]-e.rects.reference[l];var x=X(f);var O=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0;var j=g/2-w/2;var k=p[m];var M=O-b[h]-p[y];var C=O/2-b[h]/2+j;var P=Z(k,C,M);var A=l;e.modifiersData[n]=(r={},r[A]=P,r.centerOffset=P-C,r)}function ot(t){var r=t.state,e=t.options;var n=e.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=r.elements.popper.querySelector(i);if(!i){return}}if(!$(r.elements.popper,i)){return}r.elements.arrow=i}const st={name:"arrow",enabled:true,phase:"main",fn:at,effect:ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ut(t){return t.split("-")[1]}var ft={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vt(t,r){var e=t.x,n=t.y;var i=r.devicePixelRatio||1;return{x:_(e*i)/i||0,y:_(n*i)/i||0}}function ct(t){var r;var e=t.popper,n=t.popperRect,u=t.placement,f=t.variation,v=t.offsets,l=t.position,d=t.gpuAcceleration,h=t.adaptive,p=t.roundOffsets,b=t.isFixed;var m=v.x,y=m===void 0?0:m,g=v.y,w=g===void 0?0:g;var x=typeof p==="function"?p({x:y,y:w}):{x:y,y:w};y=x.x;w=x.y;var O=v.hasOwnProperty("x");var j=v.hasOwnProperty("y");var k=s;var M=i;var C=window;if(h){var P=X(e);var A="clientHeight";var E="clientWidth";if(P===L(e)){P=G(e);if(N(P).position!=="static"&&l==="absolute"){A="scrollHeight";E="scrollWidth"}}P=P;if(u===i||(u===s||u===o)&&f===c){M=a;var S=b&&P===C&&C.visualViewport?C.visualViewport.height:P[A];w-=S-n.height;w*=d?1:-1}if(u===s||(u===i||u===a)&&f===c){k=o;var q=b&&P===C&&C.visualViewport?C.visualViewport.width:P[E];y-=q-n.width;y*=d?1:-1}}var R=Object.assign({position:l},h&&ft);var W=p===true?vt({x:y,y:w},L(e)):{x:y,y:w};y=W.x;w=W.y;if(d){var z;return Object.assign({},R,(z={},z[M]=j?"0":"",z[k]=O?"0":"",z.transform=(C.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",z))}return Object.assign({},R,(r={},r[M]=j?w+"px":"",r[k]=O?y+"px":"",r.transform="",r))}function lt(t){var r=t.state,e=t.options;var n=e.gpuAcceleration,i=n===void 0?true:n,a=e.adaptive,o=a===void 0?true:a,s=e.roundOffsets,u=s===void 0?true:s;var f={placement:B(r.placement),variation:ut(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:i,isFixed:r.options.strategy==="fixed"};if(r.modifiersData.popperOffsets!=null){r.styles.popper=Object.assign({},r.styles.popper,ct(Object.assign({},f,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:o,roundOffsets:u})))}if(r.modifiersData.arrow!=null){r.styles.arrow=Object.assign({},r.styles.arrow,ct(Object.assign({},f,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const dt={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:lt,data:{}};var ht={passive:true};function pt(t){var r=t.state,e=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,s=o===void 0?true:o;var u=L(r.elements.popper);var f=[].concat(r.scrollParents.reference,r.scrollParents.popper);if(a){f.forEach((function(t){t.addEventListener("scroll",e.update,ht)}))}if(s){u.addEventListener("resize",e.update,ht)}return function(){if(a){f.forEach((function(t){t.removeEventListener("scroll",e.update,ht)}))}if(s){u.removeEventListener("resize",e.update,ht)}}}const bt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:pt,data:{}};var mt={left:"right",right:"left",bottom:"top",top:"bottom"};function yt(t){return t.replace(/left|right|bottom|top/g,(function(t){return mt[t]}))}var gt={start:"end",end:"start"};function wt(t){return t.replace(/start|end/g,(function(t){return gt[t]}))}function xt(t){var r=L(t);var e=r.pageXOffset;var n=r.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Ot(t){return V(G(t)).left+xt(t).scrollLeft}function jt(t,r){var e=L(t);var n=G(t);var i=e.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var s=0;var u=0;if(i){a=i.width;o=i.height;var f=H();if(f||!f&&r==="fixed"){s=i.offsetLeft;u=i.offsetTop}}return{width:a,height:o,x:s+Ot(t),y:u}}function kt(t){var r;var e=G(t);var n=xt(t);var i=(r=t.ownerDocument)==null?void 0:r.body;var a=I(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=I(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-n.scrollLeft+Ot(t);var u=-n.scrollTop;if(N(i||e).direction==="rtl"){s+=I(e.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:u}}function Mt(t){var r=N(t),e=r.overflow,n=r.overflowX,i=r.overflowY;return/auto|scroll|overlay|hidden/.test(e+i+n)}function Ct(t){if(["html","body","#document"].indexOf(A(t))>=0){return t.ownerDocument.body}if(S(t)&&Mt(t)){return t}return Ct(J(t))}function Pt(t,r){var e;if(r===void 0){r=[]}var n=Ct(t);var i=n===((e=t.ownerDocument)==null?void 0:e.body);var a=L(n);var o=i?[a].concat(a.visualViewport||[],Mt(n)?n:[]):n;var s=r.concat(o);return i?s:s.concat(Pt(J(o)))}function At(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Lt(t,r){var e=V(t,false,r==="fixed");e.top=e.top+t.clientTop;e.left=e.left+t.clientLeft;e.bottom=e.top+t.clientHeight;e.right=e.left+t.clientWidth;e.width=t.clientWidth;e.height=t.clientHeight;e.x=e.left;e.y=e.top;return e}function Et(t,r,e){return r===d?At(jt(t,e)):E(r)?Lt(r,e):At(kt(G(t)))}function St(t){var r=Pt(J(t));var e=["absolute","fixed"].indexOf(N(t).position)>=0;var n=e&&S(t)?X(t):t;if(!E(n)){return[]}return r.filter((function(t){return E(t)&&$(t,n)&&A(t)!=="body"}))}function qt(t,r,e,n){var i=r==="clippingParents"?St(t):[].concat(r);var a=[].concat(i,[e]);var o=a[0];var s=a.reduce((function(r,e){var i=Et(t,e,n);r.top=I(i.top,r.top);r.right=T(i.right,r.right);r.bottom=T(i.bottom,r.bottom);r.left=I(i.left,r.left);return r}),Et(t,o,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function Rt(t){var r=t.reference,e=t.element,n=t.placement;var u=n?B(n):null;var f=n?ut(n):null;var l=r.x+r.width/2-e.width/2;var d=r.y+r.height/2-e.height/2;var h;switch(u){case i:h={x:l,y:r.y-e.height};break;case a:h={x:l,y:r.y+r.height};break;case o:h={x:r.x+r.width,y:d};break;case s:h={x:r.x-e.width,y:d};break;default:h={x:r.x,y:r.y}}var p=u?Y(u):null;if(p!=null){var b=p==="y"?"height":"width";switch(f){case v:h[p]=h[p]-(r[b]/2-e[b]/2);break;case c:h[p]=h[p]+(r[b]/2-e[b]/2);break}}return h}function Wt(t,r){if(r===void 0){r={}}var e=r,n=e.placement,s=n===void 0?t.placement:n,u=e.strategy,v=u===void 0?t.strategy:u,c=e.boundary,b=c===void 0?l:c,m=e.rootBoundary,y=m===void 0?d:m,g=e.elementContext,w=g===void 0?h:g,x=e.altBoundary,O=x===void 0?false:x,j=e.padding,k=j===void 0?0:j;var M=et(typeof k!=="number"?k:nt(k,f));var C=w===h?p:h;var P=t.rects.popper;var A=t.elements[O?C:w];var L=qt(E(A)?A:A.contextElement||G(t.elements.popper),b,y,v);var S=V(t.elements.reference);var q=Rt({reference:S,element:P,strategy:"absolute",placement:s});var R=At(Object.assign({},P,q));var W=w===h?R:S;var z={top:L.top-W.top+M.top,bottom:W.bottom-L.bottom+M.bottom,left:L.left-W.left+M.left,right:W.right-L.right+M.right};var B=t.modifiersData.offset;if(w===h&&B){var I=B[s];Object.keys(z).forEach((function(t){var r=[o,a].indexOf(t)>=0?1:-1;var e=[i,a].indexOf(t)>=0?"y":"x";z[t]+=I[e]*r}))}return z}function zt(t,r){if(r===void 0){r={}}var e=r,n=e.placement,i=e.boundary,a=e.rootBoundary,o=e.padding,s=e.flipVariations,u=e.allowedAutoPlacements,v=u===void 0?m:u;var c=ut(n);var l=c?s?b:b.filter((function(t){return ut(t)===c})):f;var d=l.filter((function(t){return v.indexOf(t)>=0}));if(d.length===0){d=l}var h=d.reduce((function(r,e){r[e]=Wt(t,{placement:e,boundary:i,rootBoundary:a,padding:o})[B(e)];return r}),{});return Object.keys(h).sort((function(t,r){return h[t]-h[r]}))}function Bt(t){if(B(t)===u){return[]}var r=yt(t);return[wt(t),r,wt(r)]}function It(t){var r=t.state,e=t.options,n=t.name;if(r.modifiersData[n]._skip){return}var f=e.mainAxis,c=f===void 0?true:f,l=e.altAxis,d=l===void 0?true:l,h=e.fallbackPlacements,p=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,g=e.flipVariations,w=g===void 0?true:g,x=e.allowedAutoPlacements;var O=r.options.placement;var j=B(O);var k=j===O;var M=h||(k||!w?[yt(O)]:Bt(O));var C=[O].concat(M).reduce((function(t,e){return t.concat(B(e)===u?zt(r,{placement:e,boundary:b,rootBoundary:m,padding:p,flipVariations:w,allowedAutoPlacements:x}):e)}),[]);var P=r.rects.reference;var A=r.rects.popper;var L=new Map;var E=true;var S=C[0];for(var q=0;q<C.length;q++){var R=C[q];var W=B(R);var z=ut(R)===v;var I=[i,a].indexOf(W)>=0;var T=I?"width":"height";var _=Wt(r,{placement:R,boundary:b,rootBoundary:m,altBoundary:y,padding:p});var F=I?z?o:s:z?a:i;if(P[T]>A[T]){F=yt(F)}var H=yt(F);var V=[];if(c){V.push(_[W]<=0)}if(d){V.push(_[F]<=0,_[H]<=0)}if(V.every((function(t){return t}))){S=R;E=false;break}L.set(R,V)}if(E){var D=w?3:1;var $=function t(r){var e=C.find((function(t){var e=L.get(t);if(e){return e.slice(0,r).every((function(t){return t}))}}));if(e){S=e;return"break"}};for(var N=D;N>0;N--){var U=$(N);if(U==="break")break}}if(r.placement!==S){r.modifiersData[n]._skip=true;r.placement=S;r.reset=true}}const Tt={name:"flip",enabled:true,phase:"main",fn:It,requiresIfExists:["offset"],data:{_skip:false}};function _t(t,r,e){if(e===void 0){e={x:0,y:0}}return{top:t.top-r.height-e.y,right:t.right-r.width+e.x,bottom:t.bottom-r.height+e.y,left:t.left-r.width-e.x}}function Ft(t){return[i,o,a,s].some((function(r){return t[r]>=0}))}function Ht(t){var r=t.state,e=t.name;var n=r.rects.reference;var i=r.rects.popper;var a=r.modifiersData.preventOverflow;var o=Wt(r,{elementContext:"reference"});var s=Wt(r,{altBoundary:true});var u=_t(o,n);var f=_t(s,i,a);var v=Ft(u);var c=Ft(f);r.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:v,hasPopperEscaped:c};r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":c})}const Vt={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Ht};function Dt(t,r,e){var n=B(t);var a=[s,i].indexOf(n)>=0?-1:1;var u=typeof e==="function"?e(Object.assign({},r,{placement:t})):e,f=u[0],v=u[1];f=f||0;v=(v||0)*a;return[s,o].indexOf(n)>=0?{x:v,y:f}:{x:f,y:v}}function $t(t){var r=t.state,e=t.options,n=t.name;var i=e.offset,a=i===void 0?[0,0]:i;var o=m.reduce((function(t,e){t[e]=Dt(e,r.rects,a);return t}),{});var s=o[r.placement],u=s.x,f=s.y;if(r.modifiersData.popperOffsets!=null){r.modifiersData.popperOffsets.x+=u;r.modifiersData.popperOffsets.y+=f}r.modifiersData[n]=o}const Nt={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:$t};function Ut(t){var r=t.state,e=t.name;r.modifiersData[e]=Rt({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const Gt={name:"popperOffsets",enabled:true,phase:"read",fn:Ut,data:{}};function Jt(t){return t==="x"?"y":"x"}function Kt(t){var r=t.state,e=t.options,n=t.name;var u=e.mainAxis,f=u===void 0?true:u,c=e.altAxis,l=c===void 0?false:c,d=e.boundary,h=e.rootBoundary,p=e.altBoundary,b=e.padding,m=e.tether,y=m===void 0?true:m,g=e.tetherOffset,w=g===void 0?0:g;var x=Wt(r,{boundary:d,rootBoundary:h,padding:b,altBoundary:p});var O=B(r.placement);var j=ut(r.placement);var k=!j;var M=Y(O);var C=Jt(M);var P=r.modifiersData.popperOffsets;var A=r.rects.reference;var L=r.rects.popper;var E=typeof w==="function"?w(Object.assign({},r.rects,{placement:r.placement})):w;var S=typeof E==="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E);var q=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null;var R={x:0,y:0};if(!P){return}if(f){var W;var z=M==="y"?i:s;var _=M==="y"?a:o;var F=M==="y"?"height":"width";var H=P[M];var V=H+x[z];var $=H-x[_];var N=y?-L[F]/2:0;var U=j===v?A[F]:L[F];var G=j===v?-L[F]:-A[F];var J=r.elements.arrow;var K=y&&J?D(J):{width:0,height:0};var Q=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:rt();var et=Q[z];var nt=Q[_];var it=Z(0,A[F],K[F]);var at=k?A[F]/2-N-it-et-S.mainAxis:U-it-et-S.mainAxis;var ot=k?-A[F]/2+N+it+nt+S.mainAxis:G+it+nt+S.mainAxis;var st=r.elements.arrow&&X(r.elements.arrow);var ft=st?M==="y"?st.clientTop||0:st.clientLeft||0:0;var vt=(W=q==null?void 0:q[M])!=null?W:0;var ct=H+at-vt-ft;var lt=H+ot-vt;var dt=Z(y?T(V,ct):V,H,y?I($,lt):$);P[M]=dt;R[M]=dt-H}if(l){var ht;var pt=M==="x"?i:s;var bt=M==="x"?a:o;var mt=P[C];var yt=C==="y"?"height":"width";var gt=mt+x[pt];var wt=mt-x[bt];var xt=[i,s].indexOf(O)!==-1;var Ot=(ht=q==null?void 0:q[C])!=null?ht:0;var jt=xt?gt:mt-A[yt]-L[yt]-Ot+S.altAxis;var kt=xt?mt+A[yt]+L[yt]-Ot-S.altAxis:wt;var Mt=y&&xt?tt(jt,mt,kt):Z(y?jt:gt,mt,y?kt:wt);P[C]=Mt;R[C]=Mt-mt}r.modifiersData[n]=R}const Qt={name:"preventOverflow",enabled:true,phase:"main",fn:Kt,requiresIfExists:["offset"]};function Xt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yt(t){if(t===L(t)||!S(t)){return xt(t)}else{return Xt(t)}}function Zt(t){var r=t.getBoundingClientRect();var e=_(r.width)/t.offsetWidth||1;var n=_(r.height)/t.offsetHeight||1;return e!==1||n!==1}function tr(t,r,e){if(e===void 0){e=false}var n=S(r);var i=S(r)&&Zt(r);var a=G(r);var o=V(t,i,e);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(n||!n&&!e){if(A(r)!=="body"||Mt(a)){s=Yt(r)}if(S(r)){u=V(r,true);u.x+=r.clientLeft;u.y+=r.clientTop}else if(a){u.x=Ot(a)}}return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function rr(t){var r=new Map;var e=new Set;var n=[];t.forEach((function(t){r.set(t.name,t)}));function i(t){e.add(t.name);var a=[].concat(t.requires||[],t.requiresIfExists||[]);a.forEach((function(t){if(!e.has(t)){var n=r.get(t);if(n){i(n)}}}));n.push(t)}t.forEach((function(t){if(!e.has(t.name)){i(t)}}));return n}function er(t){var r=rr(t);return P.reduce((function(t,e){return t.concat(r.filter((function(t){return t.phase===e})))}),[])}function nr(t){var r;return function(){if(!r){r=new Promise((function(e){Promise.resolve().then((function(){r=undefined;e(t())}))}))}return r}}function ir(t){var r=t.reduce((function(t,r){var e=t[r.name];t[r.name]=e?Object.assign({},e,r,{options:Object.assign({},e.options,r.options),data:Object.assign({},e.data,r.data)}):r;return t}),{});return Object.keys(r).map((function(t){return r[t]}))}var ar={placement:"bottom",modifiers:[],strategy:"absolute"};function or(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++){r[e]=arguments[e]}return!r.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function sr(t){if(t===void 0){t={}}var r=t,e=r.defaultModifiers,n=e===void 0?[]:e,i=r.defaultOptions,a=i===void 0?ar:i;return function t(r,e,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ar,a),modifiersData:{},elements:{reference:r,popper:e},attributes:{},styles:{}};var s=[];var u=false;var f={state:o,setOptions:function t(i){var s=typeof i==="function"?i(o.options):i;c();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:E(r)?Pt(r):r.contextElement?Pt(r.contextElement):[],popper:Pt(e)};var u=er(ir([].concat(n,o.options.modifiers)));o.orderedModifiers=u.filter((function(t){return t.enabled}));v();return f.update()},forceUpdate:function t(){if(u){return}var r=o.elements,e=r.reference,n=r.popper;if(!or(e,n)){return}o.rects={reference:tr(e,X(n),o.options.strategy==="fixed"),popper:D(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++){if(o.reset===true){o.reset=false;i=-1;continue}var a=o.orderedModifiers[i],s=a.fn,v=a.options,c=v===void 0?{}:v,l=a.name;if(typeof s==="function"){o=s({state:o,options:c,name:l,instance:f})||o}}},update:nr((function(){return new Promise((function(t){f.forceUpdate();t(o)}))})),destroy:function t(){c();u=true}};if(!or(r,e)){return f}f.setOptions(i).then((function(t){if(!u&&i.onFirstUpdate){i.onFirstUpdate(t)}}));function v(){o.orderedModifiers.forEach((function(t){var r=t.name,e=t.options,n=e===void 0?{}:e,i=t.effect;if(typeof i==="function"){var a=i({state:o,name:r,instance:f,options:n});var u=function t(){};s.push(a||u)}}))}function c(){s.forEach((function(t){return t()}));s=[]}return f}}var ur=[bt,Gt,dt,z,Nt,Tt,Qt,st,Vt];var fr=sr({defaultModifiers:ur});const vr=":host(limel-portal){display:block;position:absolute;top:0;bottom:0;width:100%;pointer-events:none}:host([hidden]){display:none}";const cr=class{constructor(r){t(this,r);this.loaded=false;this.openDirection="bottom";this.position="absolute";this.containerId=undefined;this.containerStyle={};this.parent=document.body;this.inheritParentWidth=false;this.visible=false;this.anchor=null;this.parents=new WeakMap}disconnectedCallback(){this.removeContainer();this.destroyPopper();if(this.observer){this.observer.unobserve(this.container)}}connectedCallback(){if(!this.loaded){return}this.createContainer();this.hideContainer();this.attachContainer();this.styleContainer();if(this.visible){this.createPopper();this.showContainer()}if("ResizeObserver"in window){const t=new ResizeObserver((()=>{if(this.popperInstance){this.styleContainer();this.popperInstance.update()}}));t.observe(this.container)}}componentDidLoad(){this.loaded=true;this.connectedCallback()}render(){return r("slot",null)}onVisible(){if(!this.visible){this.hideContainer();this.styleContainer();this.destroyPopper();return}this.styleContainer();this.createPopper();requestAnimationFrame((()=>{this.showContainer()}))}createContainer(){const t=this.host.shadowRoot.querySelector("slot");const r=t.assignedElements&&t.assignedElements()||[];this.container=document.createElement("div");this.container.setAttribute("id",this.containerId);this.container.setAttribute("class","limel-portal--container");this.container.style.fontFamily="var(--limel-portal-font-family, inherit)";Object.assign(this.container,{portalSource:this.host});r.forEach((t=>{this.parents.set(t,t.parentElement);this.container.appendChild(t)}))}attachContainer(){this.parent.appendChild(this.container)}removeContainer(){if(!this.container){return}Array.from(this.container.children).forEach((t=>{const r=this.parents.get(t);if(!r){return}r.appendChild(t)}));this.hideContainer();this.container.parentElement.removeChild(this.container)}hideContainer(){this.container.style.opacity="0"}showContainer(){this.container.style.opacity="1"}styleContainer(){const t=this.host.getBoundingClientRect().width;if(this.visible){this.container.style.display="block"}else{this.container.style.display="none"}if(this.inheritParentWidth){const r=this.getContentWidth(this.container);let e=r;if(t>0){e=t}this.container.style.width=`${e}px`}this.ensureContainerFitsInViewPort();Object.keys(this.containerStyle).forEach((t=>{this.container.style[t]=this.containerStyle[t]}))}getContentWidth(t){if(!t){return null}const r=t.getBoundingClientRect().width;if(r!==0){return r}const e=t.querySelector("*");return this.getContentWidth(e)}createPopper(){const t=this.createPopperConfig();this.popperInstance=fr(this.anchor||this.host,this.container,t)}destroyPopper(){var t;(t=this.popperInstance)===null||t===void 0?void 0:t.destroy();this.popperInstance=null}createPopperConfig(){const t=this.getPlacement(this.openDirection);const r=this.getFlipPlacement(this.openDirection);return{strategy:this.position,placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:[r]}}]}}getPlacement(t){const r={"left-start":"left-start",left:"left","left-end":"left-end","right-start":"right-start",right:"right","right-end":"right-end","top-start":"top-start",top:"top","top-end":"top-end","bottom-start":"bottom-start",bottom:"bottom","bottom-end":"bottom-end"};return r[t]}getFlipPlacement(t){const r={"left-start":"right-start",left:"right","left-end":"right-end","right-start":"left-start",right:"left","right-end":"left-end","top-start":"bottom-start",top:"bottom","top-end":"bottom-end","bottom-start":"top-start",bottom:"top","bottom-end":"top-end"};return r[t]}ensureContainerFitsInViewPort(){const t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);const{top:r,bottom:e}=this.host.getBoundingClientRect();const n=Math.max(r,0);const i=Math.max(t-e,0);const a=16;const o=Math.max(n,i)-a;this.container.style.maxHeight=`${o}px`}get host(){return e(this)}static get watchers(){return{visible:["onVisible"]}}};cr.style=vr;const lr=":host(limel-tooltip){position:absolute;pointer-events:none}";const dr=50;const hr=class{constructor(r){t(this,r);this.showTooltip=()=>{const t=500;this.showTooltipTimeoutHandle=window.setTimeout((()=>{this.open=true}),t)};this.hideTooltip=()=>{clearTimeout(this.showTooltipTimeoutHandle);this.open=false};this.elementId=undefined;this.label=undefined;this.helperLabel=undefined;this.maxlength=dr;this.openDirection="top";this.open=undefined;this.portalId=n();this.tooltipId=n()}connectedCallback(){this.ownerElement=this.getOwnerElement();this.setOwnerAriaLabel();this.addListeners()}disconnectedCallback(){this.removeListeners()}render(){const t=getComputedStyle(this.host).getPropertyValue("--tooltip-z-index");return r("div",{class:"trigger-anchor"},r("limel-portal",{openDirection:this.openDirection,visible:this.open,containerId:this.portalId,containerStyle:{"z-index":t,"pointer-events":"none"},anchor:this.ownerElement},r("limel-tooltip-content",{label:this.label,helperLabel:this.helperLabel,maxlength:this.maxlength,role:"tooltip","aria-hidden":!this.open,id:this.tooltipId})))}setOwnerAriaLabel(){var t;(t=this.ownerElement)===null||t===void 0?void 0:t.setAttribute("aria-describedby",this.tooltipId)}addListeners(){var t,r,e;(t=this.ownerElement)===null||t===void 0?void 0:t.addEventListener("mouseover",this.showTooltip);(r=this.ownerElement)===null||r===void 0?void 0:r.addEventListener("mouseout",this.hideTooltip);(e=this.ownerElement)===null||e===void 0?void 0:e.addEventListener("click",this.hideTooltip)}removeListeners(){var t,r,e;(t=this.ownerElement)===null||t===void 0?void 0:t.removeEventListener("mouseover",this.showTooltip);(r=this.ownerElement)===null||r===void 0?void 0:r.removeEventListener("mouseout",this.hideTooltip);(e=this.ownerElement)===null||e===void 0?void 0:e.removeEventListener("click",this.hideTooltip)}getOwnerElement(){let t=this.host;do{t=t.parentNode}while(t&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE);return t===null||t===void 0?void 0:t.getElementById(this.elementId)}get host(){return e(this)}};hr.style=lr;const pr=":host(limel-tooltip-content){animation:display-tooltip 0.2s ease;display:flex;border-radius:0.25rem;padding:0.25rem 0.5rem;background-color:rgb(var(--contrast-1300));box-shadow:var(--shadow-depth-16)}text{font-size:0.875rem;line-height:1.25;display:flex;column-gap:1rem}text.has-column-layout{display:table-cell;width:fit-content;max-width:min(var(--tooltip-max-width-of-text), 80vw)}text.has-column-layout .label{padding-bottom:0.5rem}text.has-column-layout .helper-label{padding-bottom:0.25rem}.label{color:rgb(var(--contrast-200))}.helper-label{color:rgb(var(--contrast-800))}.helper-label:empty{display:none}@keyframes display-tooltip{0%{opacity:0;transform:translate3d(0, 0, 0) scale(0.94)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";const br=class{constructor(r){t(this,r);this.label=undefined;this.helperLabel=undefined;this.maxlength=undefined}render(){let t=false;if(this.helperLabel&&this.maxlength){t=this.label.length+this.helperLabel.length>this.maxlength}const e={};if(this.maxlength){e.style={"--tooltip-max-width-of-text":`${this.maxlength}`+"ch"}}return[r("text",Object.assign({class:{"has-column-layout":t}},e),r("div",{class:"label"},this.label),r("div",{class:"helper-label"},this.helperLabel))]}};br.style=pr;export{cr as limel_portal,hr as limel_tooltip,br as limel_tooltip_content};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as r,g as e}from"./p-443111b3.js";import{c as n}from"./p-3ccdc4a3.js";var i="top";var a="bottom";var o="right";var s="left";var u="auto";var v=[i,a,o,s];var f="start";var c="end";var l="clippingParents";var d="viewport";var h="popper";var p="reference";var b=v.reduce((function(t,r){return t.concat([r+"-"+f,r+"-"+c])}),[]);var m=[].concat(v,[u]).reduce((function(t,r){return t.concat([r,r+"-"+f,r+"-"+c])}),[]);var y="beforeRead";var g="read";var w="afterRead";var x="beforeMain";var O="main";var j="afterMain";var k="beforeWrite";var M="write";var C="afterWrite";var P=[y,g,w,x,O,j,k,M,C];function A(t){return t?(t.nodeName||"").toLowerCase():null}function L(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r?r.defaultView||window:window}return t}function E(t){var r=L(t).Element;return t instanceof r||t instanceof Element}function S(t){var r=L(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function q(t){if(typeof ShadowRoot==="undefined"){return false}var r=L(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function R(t){var r=t.state;Object.keys(r.elements).forEach((function(t){var e=r.styles[t]||{};var n=r.attributes[t]||{};var i=r.elements[t];if(!S(i)||!A(i)){return}Object.assign(i.style,e);Object.keys(n).forEach((function(t){var r=n[t];if(r===false){i.removeAttribute(t)}else{i.setAttribute(t,r===true?"":r)}}))}))}function W(t){var r=t.state;var e={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,e.popper);r.styles=e;if(r.elements.arrow){Object.assign(r.elements.arrow.style,e.arrow)}return function(){Object.keys(r.elements).forEach((function(t){var n=r.elements[t];var i=r.attributes[t]||{};var a=Object.keys(r.styles.hasOwnProperty(t)?r.styles[t]:e[t]);var o=a.reduce((function(t,r){t[r]="";return t}),{});if(!S(n)||!A(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}const z={name:"applyStyles",enabled:true,phase:"write",fn:R,effect:W,requires:["computeStyles"]};function B(t){return t.split("-")[0]}var I=Math.max;var T=Math.min;var _=Math.round;function F(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(F())}function V(t,r,e){if(r===void 0){r=false}if(e===void 0){e=false}var n=t.getBoundingClientRect();var i=1;var a=1;if(r&&S(t)){i=t.offsetWidth>0?_(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?_(n.height)/t.offsetHeight||1:1}var o=E(t)?L(t):window,s=o.visualViewport;var u=!H()&&e;var v=(n.left+(u&&s?s.offsetLeft:0))/i;var f=(n.top+(u&&s?s.offsetTop:0))/a;var c=n.width/i;var l=n.height/a;return{width:c,height:l,top:f,right:v+c,bottom:f+l,left:v,x:v,y:f}}function D(t){var r=V(t);var e=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(r.width-e)<=1){e=r.width}if(Math.abs(r.height-n)<=1){n=r.height}return{x:t.offsetLeft,y:t.offsetTop,width:e,height:n}}function $(t,r){var e=r.getRootNode&&r.getRootNode();if(t.contains(r)){return true}else if(e&&q(e)){var n=r;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function N(t){return L(t).getComputedStyle(t)}function U(t){return["table","td","th"].indexOf(A(t))>=0}function G(t){return((E(t)?t.ownerDocument:t.document)||window.document).documentElement}function J(t){if(A(t)==="html"){return t}return t.assignedSlot||t.parentNode||(q(t)?t.host:null)||G(t)}function K(t){if(!S(t)||N(t).position==="fixed"){return null}return t.offsetParent}function Q(t){var r=/firefox/i.test(F());var e=/Trident/i.test(F());if(e&&S(t)){var n=N(t);if(n.position==="fixed"){return null}}var i=J(t);if(q(i)){i=i.host}while(S(i)&&["html","body"].indexOf(A(i))<0){var a=N(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||r&&a.willChange==="filter"||r&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function X(t){var r=L(t);var e=K(t);while(e&&U(e)&&N(e).position==="static"){e=K(e)}if(e&&(A(e)==="html"||A(e)==="body"&&N(e).position==="static")){return r}return e||Q(t)||r}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z(t,r,e){return I(t,T(r,e))}function tt(t,r,e){var n=Z(t,r,e);return n>e?e:n}function rt(){return{top:0,right:0,bottom:0,left:0}}function et(t){return Object.assign({},rt(),t)}function nt(t,r){return r.reduce((function(r,e){r[e]=t;return r}),{})}var it=function t(r,e){r=typeof r==="function"?r(Object.assign({},e.rects,{placement:e.placement})):r;return et(typeof r!=="number"?r:nt(r,v))};function at(t){var r;var e=t.state,n=t.name,u=t.options;var v=e.elements.arrow;var f=e.modifiersData.popperOffsets;var c=B(e.placement);var l=Y(c);var d=[s,o].indexOf(c)>=0;var h=d?"height":"width";if(!v||!f){return}var p=it(u.padding,e);var b=D(v);var m=l==="y"?i:s;var y=l==="y"?a:o;var g=e.rects.reference[h]+e.rects.reference[l]-f[l]-e.rects.popper[h];var w=f[l]-e.rects.reference[l];var x=X(v);var O=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0;var j=g/2-w/2;var k=p[m];var M=O-b[h]-p[y];var C=O/2-b[h]/2+j;var P=Z(k,C,M);var A=l;e.modifiersData[n]=(r={},r[A]=P,r.centerOffset=P-C,r)}function ot(t){var r=t.state,e=t.options;var n=e.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=r.elements.popper.querySelector(i);if(!i){return}}if(!$(r.elements.popper,i)){return}r.elements.arrow=i}const st={name:"arrow",enabled:true,phase:"main",fn:at,effect:ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ut(t){return t.split("-")[1]}var vt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ft(t,r){var e=t.x,n=t.y;var i=r.devicePixelRatio||1;return{x:_(e*i)/i||0,y:_(n*i)/i||0}}function ct(t){var r;var e=t.popper,n=t.popperRect,u=t.placement,v=t.variation,f=t.offsets,l=t.position,d=t.gpuAcceleration,h=t.adaptive,p=t.roundOffsets,b=t.isFixed;var m=f.x,y=m===void 0?0:m,g=f.y,w=g===void 0?0:g;var x=typeof p==="function"?p({x:y,y:w}):{x:y,y:w};y=x.x;w=x.y;var O=f.hasOwnProperty("x");var j=f.hasOwnProperty("y");var k=s;var M=i;var C=window;if(h){var P=X(e);var A="clientHeight";var E="clientWidth";if(P===L(e)){P=G(e);if(N(P).position!=="static"&&l==="absolute"){A="scrollHeight";E="scrollWidth"}}P=P;if(u===i||(u===s||u===o)&&v===c){M=a;var S=b&&P===C&&C.visualViewport?C.visualViewport.height:P[A];w-=S-n.height;w*=d?1:-1}if(u===s||(u===i||u===a)&&v===c){k=o;var q=b&&P===C&&C.visualViewport?C.visualViewport.width:P[E];y-=q-n.width;y*=d?1:-1}}var R=Object.assign({position:l},h&&vt);var W=p===true?ft({x:y,y:w},L(e)):{x:y,y:w};y=W.x;w=W.y;if(d){var z;return Object.assign({},R,(z={},z[M]=j?"0":"",z[k]=O?"0":"",z.transform=(C.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",z))}return Object.assign({},R,(r={},r[M]=j?w+"px":"",r[k]=O?y+"px":"",r.transform="",r))}function lt(t){var r=t.state,e=t.options;var n=e.gpuAcceleration,i=n===void 0?true:n,a=e.adaptive,o=a===void 0?true:a,s=e.roundOffsets,u=s===void 0?true:s;var v={placement:B(r.placement),variation:ut(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:i,isFixed:r.options.strategy==="fixed"};if(r.modifiersData.popperOffsets!=null){r.styles.popper=Object.assign({},r.styles.popper,ct(Object.assign({},v,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:o,roundOffsets:u})))}if(r.modifiersData.arrow!=null){r.styles.arrow=Object.assign({},r.styles.arrow,ct(Object.assign({},v,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const dt={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:lt,data:{}};var ht={passive:true};function pt(t){var r=t.state,e=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,s=o===void 0?true:o;var u=L(r.elements.popper);var v=[].concat(r.scrollParents.reference,r.scrollParents.popper);if(a){v.forEach((function(t){t.addEventListener("scroll",e.update,ht)}))}if(s){u.addEventListener("resize",e.update,ht)}return function(){if(a){v.forEach((function(t){t.removeEventListener("scroll",e.update,ht)}))}if(s){u.removeEventListener("resize",e.update,ht)}}}const bt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:pt,data:{}};var mt={left:"right",right:"left",bottom:"top",top:"bottom"};function yt(t){return t.replace(/left|right|bottom|top/g,(function(t){return mt[t]}))}var gt={start:"end",end:"start"};function wt(t){return t.replace(/start|end/g,(function(t){return gt[t]}))}function xt(t){var r=L(t);var e=r.pageXOffset;var n=r.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Ot(t){return V(G(t)).left+xt(t).scrollLeft}function jt(t,r){var e=L(t);var n=G(t);var i=e.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var s=0;var u=0;if(i){a=i.width;o=i.height;var v=H();if(v||!v&&r==="fixed"){s=i.offsetLeft;u=i.offsetTop}}return{width:a,height:o,x:s+Ot(t),y:u}}function kt(t){var r;var e=G(t);var n=xt(t);var i=(r=t.ownerDocument)==null?void 0:r.body;var a=I(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=I(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-n.scrollLeft+Ot(t);var u=-n.scrollTop;if(N(i||e).direction==="rtl"){s+=I(e.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:u}}function Mt(t){var r=N(t),e=r.overflow,n=r.overflowX,i=r.overflowY;return/auto|scroll|overlay|hidden/.test(e+i+n)}function Ct(t){if(["html","body","#document"].indexOf(A(t))>=0){return t.ownerDocument.body}if(S(t)&&Mt(t)){return t}return Ct(J(t))}function Pt(t,r){var e;if(r===void 0){r=[]}var n=Ct(t);var i=n===((e=t.ownerDocument)==null?void 0:e.body);var a=L(n);var o=i?[a].concat(a.visualViewport||[],Mt(n)?n:[]):n;var s=r.concat(o);return i?s:s.concat(Pt(J(o)))}function At(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Lt(t,r){var e=V(t,false,r==="fixed");e.top=e.top+t.clientTop;e.left=e.left+t.clientLeft;e.bottom=e.top+t.clientHeight;e.right=e.left+t.clientWidth;e.width=t.clientWidth;e.height=t.clientHeight;e.x=e.left;e.y=e.top;return e}function Et(t,r,e){return r===d?At(jt(t,e)):E(r)?Lt(r,e):At(kt(G(t)))}function St(t){var r=Pt(J(t));var e=["absolute","fixed"].indexOf(N(t).position)>=0;var n=e&&S(t)?X(t):t;if(!E(n)){return[]}return r.filter((function(t){return E(t)&&$(t,n)&&A(t)!=="body"}))}function qt(t,r,e,n){var i=r==="clippingParents"?St(t):[].concat(r);var a=[].concat(i,[e]);var o=a[0];var s=a.reduce((function(r,e){var i=Et(t,e,n);r.top=I(i.top,r.top);r.right=T(i.right,r.right);r.bottom=T(i.bottom,r.bottom);r.left=I(i.left,r.left);return r}),Et(t,o,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function Rt(t){var r=t.reference,e=t.element,n=t.placement;var u=n?B(n):null;var v=n?ut(n):null;var l=r.x+r.width/2-e.width/2;var d=r.y+r.height/2-e.height/2;var h;switch(u){case i:h={x:l,y:r.y-e.height};break;case a:h={x:l,y:r.y+r.height};break;case o:h={x:r.x+r.width,y:d};break;case s:h={x:r.x-e.width,y:d};break;default:h={x:r.x,y:r.y}}var p=u?Y(u):null;if(p!=null){var b=p==="y"?"height":"width";switch(v){case f:h[p]=h[p]-(r[b]/2-e[b]/2);break;case c:h[p]=h[p]+(r[b]/2-e[b]/2);break}}return h}function Wt(t,r){if(r===void 0){r={}}var e=r,n=e.placement,s=n===void 0?t.placement:n,u=e.strategy,f=u===void 0?t.strategy:u,c=e.boundary,b=c===void 0?l:c,m=e.rootBoundary,y=m===void 0?d:m,g=e.elementContext,w=g===void 0?h:g,x=e.altBoundary,O=x===void 0?false:x,j=e.padding,k=j===void 0?0:j;var M=et(typeof k!=="number"?k:nt(k,v));var C=w===h?p:h;var P=t.rects.popper;var A=t.elements[O?C:w];var L=qt(E(A)?A:A.contextElement||G(t.elements.popper),b,y,f);var S=V(t.elements.reference);var q=Rt({reference:S,element:P,strategy:"absolute",placement:s});var R=At(Object.assign({},P,q));var W=w===h?R:S;var z={top:L.top-W.top+M.top,bottom:W.bottom-L.bottom+M.bottom,left:L.left-W.left+M.left,right:W.right-L.right+M.right};var B=t.modifiersData.offset;if(w===h&&B){var I=B[s];Object.keys(z).forEach((function(t){var r=[o,a].indexOf(t)>=0?1:-1;var e=[i,a].indexOf(t)>=0?"y":"x";z[t]+=I[e]*r}))}return z}function zt(t,r){if(r===void 0){r={}}var e=r,n=e.placement,i=e.boundary,a=e.rootBoundary,o=e.padding,s=e.flipVariations,u=e.allowedAutoPlacements,f=u===void 0?m:u;var c=ut(n);var l=c?s?b:b.filter((function(t){return ut(t)===c})):v;var d=l.filter((function(t){return f.indexOf(t)>=0}));if(d.length===0){d=l}var h=d.reduce((function(r,e){r[e]=Wt(t,{placement:e,boundary:i,rootBoundary:a,padding:o})[B(e)];return r}),{});return Object.keys(h).sort((function(t,r){return h[t]-h[r]}))}function Bt(t){if(B(t)===u){return[]}var r=yt(t);return[wt(t),r,wt(r)]}function It(t){var r=t.state,e=t.options,n=t.name;if(r.modifiersData[n]._skip){return}var v=e.mainAxis,c=v===void 0?true:v,l=e.altAxis,d=l===void 0?true:l,h=e.fallbackPlacements,p=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,g=e.flipVariations,w=g===void 0?true:g,x=e.allowedAutoPlacements;var O=r.options.placement;var j=B(O);var k=j===O;var M=h||(k||!w?[yt(O)]:Bt(O));var C=[O].concat(M).reduce((function(t,e){return t.concat(B(e)===u?zt(r,{placement:e,boundary:b,rootBoundary:m,padding:p,flipVariations:w,allowedAutoPlacements:x}):e)}),[]);var P=r.rects.reference;var A=r.rects.popper;var L=new Map;var E=true;var S=C[0];for(var q=0;q<C.length;q++){var R=C[q];var W=B(R);var z=ut(R)===f;var I=[i,a].indexOf(W)>=0;var T=I?"width":"height";var _=Wt(r,{placement:R,boundary:b,rootBoundary:m,altBoundary:y,padding:p});var F=I?z?o:s:z?a:i;if(P[T]>A[T]){F=yt(F)}var H=yt(F);var V=[];if(c){V.push(_[W]<=0)}if(d){V.push(_[F]<=0,_[H]<=0)}if(V.every((function(t){return t}))){S=R;E=false;break}L.set(R,V)}if(E){var D=w?3:1;var $=function t(r){var e=C.find((function(t){var e=L.get(t);if(e){return e.slice(0,r).every((function(t){return t}))}}));if(e){S=e;return"break"}};for(var N=D;N>0;N--){var U=$(N);if(U==="break")break}}if(r.placement!==S){r.modifiersData[n]._skip=true;r.placement=S;r.reset=true}}const Tt={name:"flip",enabled:true,phase:"main",fn:It,requiresIfExists:["offset"],data:{_skip:false}};function _t(t,r,e){if(e===void 0){e={x:0,y:0}}return{top:t.top-r.height-e.y,right:t.right-r.width+e.x,bottom:t.bottom-r.height+e.y,left:t.left-r.width-e.x}}function Ft(t){return[i,o,a,s].some((function(r){return t[r]>=0}))}function Ht(t){var r=t.state,e=t.name;var n=r.rects.reference;var i=r.rects.popper;var a=r.modifiersData.preventOverflow;var o=Wt(r,{elementContext:"reference"});var s=Wt(r,{altBoundary:true});var u=_t(o,n);var v=_t(s,i,a);var f=Ft(u);var c=Ft(v);r.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:v,isReferenceHidden:f,hasPopperEscaped:c};r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":c})}const Vt={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Ht};function Dt(t,r,e){var n=B(t);var a=[s,i].indexOf(n)>=0?-1:1;var u=typeof e==="function"?e(Object.assign({},r,{placement:t})):e,v=u[0],f=u[1];v=v||0;f=(f||0)*a;return[s,o].indexOf(n)>=0?{x:f,y:v}:{x:v,y:f}}function $t(t){var r=t.state,e=t.options,n=t.name;var i=e.offset,a=i===void 0?[0,0]:i;var o=m.reduce((function(t,e){t[e]=Dt(e,r.rects,a);return t}),{});var s=o[r.placement],u=s.x,v=s.y;if(r.modifiersData.popperOffsets!=null){r.modifiersData.popperOffsets.x+=u;r.modifiersData.popperOffsets.y+=v}r.modifiersData[n]=o}const Nt={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:$t};function Ut(t){var r=t.state,e=t.name;r.modifiersData[e]=Rt({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const Gt={name:"popperOffsets",enabled:true,phase:"read",fn:Ut,data:{}};function Jt(t){return t==="x"?"y":"x"}function Kt(t){var r=t.state,e=t.options,n=t.name;var u=e.mainAxis,v=u===void 0?true:u,c=e.altAxis,l=c===void 0?false:c,d=e.boundary,h=e.rootBoundary,p=e.altBoundary,b=e.padding,m=e.tether,y=m===void 0?true:m,g=e.tetherOffset,w=g===void 0?0:g;var x=Wt(r,{boundary:d,rootBoundary:h,padding:b,altBoundary:p});var O=B(r.placement);var j=ut(r.placement);var k=!j;var M=Y(O);var C=Jt(M);var P=r.modifiersData.popperOffsets;var A=r.rects.reference;var L=r.rects.popper;var E=typeof w==="function"?w(Object.assign({},r.rects,{placement:r.placement})):w;var S=typeof E==="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E);var q=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null;var R={x:0,y:0};if(!P){return}if(v){var W;var z=M==="y"?i:s;var _=M==="y"?a:o;var F=M==="y"?"height":"width";var H=P[M];var V=H+x[z];var $=H-x[_];var N=y?-L[F]/2:0;var U=j===f?A[F]:L[F];var G=j===f?-L[F]:-A[F];var J=r.elements.arrow;var K=y&&J?D(J):{width:0,height:0};var Q=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:rt();var et=Q[z];var nt=Q[_];var it=Z(0,A[F],K[F]);var at=k?A[F]/2-N-it-et-S.mainAxis:U-it-et-S.mainAxis;var ot=k?-A[F]/2+N+it+nt+S.mainAxis:G+it+nt+S.mainAxis;var st=r.elements.arrow&&X(r.elements.arrow);var vt=st?M==="y"?st.clientTop||0:st.clientLeft||0:0;var ft=(W=q==null?void 0:q[M])!=null?W:0;var ct=H+at-ft-vt;var lt=H+ot-ft;var dt=Z(y?T(V,ct):V,H,y?I($,lt):$);P[M]=dt;R[M]=dt-H}if(l){var ht;var pt=M==="x"?i:s;var bt=M==="x"?a:o;var mt=P[C];var yt=C==="y"?"height":"width";var gt=mt+x[pt];var wt=mt-x[bt];var xt=[i,s].indexOf(O)!==-1;var Ot=(ht=q==null?void 0:q[C])!=null?ht:0;var jt=xt?gt:mt-A[yt]-L[yt]-Ot+S.altAxis;var kt=xt?mt+A[yt]+L[yt]-Ot-S.altAxis:wt;var Mt=y&&xt?tt(jt,mt,kt):Z(y?jt:gt,mt,y?kt:wt);P[C]=Mt;R[C]=Mt-mt}r.modifiersData[n]=R}const Qt={name:"preventOverflow",enabled:true,phase:"main",fn:Kt,requiresIfExists:["offset"]};function Xt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yt(t){if(t===L(t)||!S(t)){return xt(t)}else{return Xt(t)}}function Zt(t){var r=t.getBoundingClientRect();var e=_(r.width)/t.offsetWidth||1;var n=_(r.height)/t.offsetHeight||1;return e!==1||n!==1}function tr(t,r,e){if(e===void 0){e=false}var n=S(r);var i=S(r)&&Zt(r);var a=G(r);var o=V(t,i,e);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(n||!n&&!e){if(A(r)!=="body"||Mt(a)){s=Yt(r)}if(S(r)){u=V(r,true);u.x+=r.clientLeft;u.y+=r.clientTop}else if(a){u.x=Ot(a)}}return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function rr(t){var r=new Map;var e=new Set;var n=[];t.forEach((function(t){r.set(t.name,t)}));function i(t){e.add(t.name);var a=[].concat(t.requires||[],t.requiresIfExists||[]);a.forEach((function(t){if(!e.has(t)){var n=r.get(t);if(n){i(n)}}}));n.push(t)}t.forEach((function(t){if(!e.has(t.name)){i(t)}}));return n}function er(t){var r=rr(t);return P.reduce((function(t,e){return t.concat(r.filter((function(t){return t.phase===e})))}),[])}function nr(t){var r;return function(){if(!r){r=new Promise((function(e){Promise.resolve().then((function(){r=undefined;e(t())}))}))}return r}}function ir(t){var r=t.reduce((function(t,r){var e=t[r.name];t[r.name]=e?Object.assign({},e,r,{options:Object.assign({},e.options,r.options),data:Object.assign({},e.data,r.data)}):r;return t}),{});return Object.keys(r).map((function(t){return r[t]}))}var ar={placement:"bottom",modifiers:[],strategy:"absolute"};function or(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++){r[e]=arguments[e]}return!r.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function sr(t){if(t===void 0){t={}}var r=t,e=r.defaultModifiers,n=e===void 0?[]:e,i=r.defaultOptions,a=i===void 0?ar:i;return function t(r,e,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ar,a),modifiersData:{},elements:{reference:r,popper:e},attributes:{},styles:{}};var s=[];var u=false;var v={state:o,setOptions:function t(i){var s=typeof i==="function"?i(o.options):i;c();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:E(r)?Pt(r):r.contextElement?Pt(r.contextElement):[],popper:Pt(e)};var u=er(ir([].concat(n,o.options.modifiers)));o.orderedModifiers=u.filter((function(t){return t.enabled}));f();return v.update()},forceUpdate:function t(){if(u){return}var r=o.elements,e=r.reference,n=r.popper;if(!or(e,n)){return}o.rects={reference:tr(e,X(n),o.options.strategy==="fixed"),popper:D(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++){if(o.reset===true){o.reset=false;i=-1;continue}var a=o.orderedModifiers[i],s=a.fn,f=a.options,c=f===void 0?{}:f,l=a.name;if(typeof s==="function"){o=s({state:o,options:c,name:l,instance:v})||o}}},update:nr((function(){return new Promise((function(t){v.forceUpdate();t(o)}))})),destroy:function t(){c();u=true}};if(!or(r,e)){return v}v.setOptions(i).then((function(t){if(!u&&i.onFirstUpdate){i.onFirstUpdate(t)}}));function f(){o.orderedModifiers.forEach((function(t){var r=t.name,e=t.options,n=e===void 0?{}:e,i=t.effect;if(typeof i==="function"){var a=i({state:o,name:r,instance:v,options:n});var u=function t(){};s.push(a||u)}}))}function c(){s.forEach((function(t){return t()}));s=[]}return v}}var ur=[bt,Gt,dt,z,Nt,Tt,Qt,st,Vt];var vr=sr({defaultModifiers:ur});const fr=":host(limel-portal){display:block;position:absolute;top:0;bottom:0;width:100%;pointer-events:none}:host([hidden]){display:none}";const cr=class{constructor(r){t(this,r);this.loaded=false;this.openDirection="bottom";this.position="absolute";this.containerId=undefined;this.containerStyle={};this.parent=document.body;this.inheritParentWidth=false;this.visible=false;this.anchor=null;this.parents=new WeakMap}disconnectedCallback(){this.removeContainer();this.destroyPopper();if(this.observer){this.observer.unobserve(this.container)}}connectedCallback(){if(!this.loaded){return}this.createContainer();this.hideContainer();this.attachContainer();this.styleContainer();if(this.visible){this.createPopper();this.showContainer()}if("ResizeObserver"in window){const t=new ResizeObserver((()=>{if(this.popperInstance){this.styleContainer();this.popperInstance.update()}}));t.observe(this.container)}}componentDidLoad(){this.loaded=true;this.connectedCallback()}render(){return r("slot",null)}onVisible(){if(!this.visible){this.hideContainer();this.styleContainer();this.destroyPopper();return}this.styleContainer();this.createPopper();requestAnimationFrame((()=>{this.showContainer()}))}createContainer(){const t=this.host.shadowRoot.querySelector("slot");const r=t.assignedElements&&t.assignedElements()||[];this.container=document.createElement("div");this.container.setAttribute("id",this.containerId);this.container.setAttribute("class","limel-portal--container");this.container.style.fontFamily="var(--limel-portal-font-family, inherit)";Object.assign(this.container,{portalSource:this.host});r.forEach((t=>{this.parents.set(t,t.parentElement);this.container.appendChild(t)}))}attachContainer(){this.parent.appendChild(this.container)}removeContainer(){if(!this.container){return}Array.from(this.container.children).forEach((t=>{const r=this.parents.get(t);if(!r){return}r.appendChild(t)}));this.hideContainer();this.container.parentElement.removeChild(this.container)}hideContainer(){this.container.style.opacity="0"}showContainer(){this.container.style.opacity="1"}styleContainer(){const t=this.host.getBoundingClientRect().width;if(this.visible){this.container.style.display="block"}else{this.container.style.display="none"}if(this.inheritParentWidth){const r=this.getContentWidth(this.container);let e=r;if(t>0){e=t}this.container.style.width=`${e}px`}this.ensureContainerFitsInViewPort();Object.keys(this.containerStyle).forEach((t=>{this.container.style[t]=this.containerStyle[t]}))}getContentWidth(t){if(!t){return null}const r=t.getBoundingClientRect().width;if(r!==0){return r}const e=t.querySelector("*");return this.getContentWidth(e)}createPopper(){const t=this.createPopperConfig();this.popperInstance=vr(this.anchor||this.host,this.container,t)}destroyPopper(){var t;(t=this.popperInstance)===null||t===void 0?void 0:t.destroy();this.popperInstance=null}createPopperConfig(){const t=this.getPlacement(this.openDirection);const r=this.getFlipPlacement(this.openDirection);return{strategy:this.position,placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:[r]}}]}}getPlacement(t){const r={"left-start":"left-start",left:"left","left-end":"left-end","right-start":"right-start",right:"right","right-end":"right-end","top-start":"top-start",top:"top","top-end":"top-end","bottom-start":"bottom-start",bottom:"bottom","bottom-end":"bottom-end"};return r[t]}getFlipPlacement(t){const r={"left-start":"right-start",left:"right","left-end":"right-end","right-start":"left-start",right:"left","right-end":"left-end","top-start":"bottom-start",top:"bottom","top-end":"bottom-end","bottom-start":"top-start",bottom:"top","bottom-end":"top-end"};return r[t]}ensureContainerFitsInViewPort(){const t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);const{top:r,bottom:e}=this.host.getBoundingClientRect();const n=Math.max(r,0);const i=Math.max(t-e,0);const a=16;const o=Math.max(n,i)-a;this.container.style.maxHeight=`${o}px`}get host(){return e(this)}static get watchers(){return{visible:["onVisible"]}}};cr.style=fr;const lr=":host(limel-tooltip){position:absolute;pointer-events:none}";const dr=50;const hr=class{constructor(r){t(this,r);this.showTooltip=()=>{const t=500;this.showTooltipTimeoutHandle=window.setTimeout((()=>{this.open=true}),t)};this.hideTooltip=()=>{clearTimeout(this.showTooltipTimeoutHandle);this.open=false};this.elementId=undefined;this.label=undefined;this.helperLabel=undefined;this.maxlength=dr;this.openDirection="top";this.open=undefined;this.portalId=n();this.tooltipId=n()}connectedCallback(){this.ownerElement=this.getOwnerElement();this.setOwnerAriaLabel();this.addListeners()}disconnectedCallback(){this.removeListeners()}render(){const t=getComputedStyle(this.host).getPropertyValue("--tooltip-z-index");return r("div",{class:"trigger-anchor"},r("limel-portal",{openDirection:this.openDirection,visible:this.open,containerId:this.portalId,containerStyle:{"z-index":t,"pointer-events":"none"},anchor:this.ownerElement},r("limel-tooltip-content",{label:this.label,helperLabel:this.helperLabel,maxlength:this.maxlength,role:"tooltip","aria-hidden":!this.open,id:this.tooltipId})))}setOwnerAriaLabel(){var t;(t=this.ownerElement)===null||t===void 0?void 0:t.setAttribute("aria-describedby",this.tooltipId)}addListeners(){var t,r,e,n;(t=this.ownerElement)===null||t===void 0?void 0:t.addEventListener("mouseover",this.showTooltip);(r=this.ownerElement)===null||r===void 0?void 0:r.addEventListener("mouseout",this.hideTooltip);(e=this.ownerElement)===null||e===void 0?void 0:e.addEventListener("focus",this.showTooltip);(n=this.ownerElement)===null||n===void 0?void 0:n.addEventListener("blur",this.hideTooltip)}removeListeners(){var t,r,e,n;(t=this.ownerElement)===null||t===void 0?void 0:t.removeEventListener("mouseover",this.showTooltip);(r=this.ownerElement)===null||r===void 0?void 0:r.removeEventListener("mouseout",this.hideTooltip);(e=this.ownerElement)===null||e===void 0?void 0:e.removeEventListener("focus",this.showTooltip);(n=this.ownerElement)===null||n===void 0?void 0:n.removeEventListener("blur",this.hideTooltip)}getOwnerElement(){let t=this.host;do{t=t.parentNode}while(t&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&t.nodeType!==Node.DOCUMENT_NODE);return t===null||t===void 0?void 0:t.getElementById(this.elementId)}get host(){return e(this)}};hr.style=lr;const pr=":host(limel-tooltip-content){animation:display-tooltip 0.2s ease;display:flex;border-radius:0.25rem;padding:0.25rem 0.5rem;background-color:rgb(var(--contrast-1300));box-shadow:var(--shadow-depth-16)}text{font-size:0.875rem;line-height:1.25;display:flex;column-gap:1rem}text.has-column-layout{display:table-cell;width:fit-content;max-width:min(var(--tooltip-max-width-of-text), 80vw)}text.has-column-layout .label{padding-bottom:0.5rem}text.has-column-layout .helper-label{padding-bottom:0.25rem}.label{color:rgb(var(--contrast-200))}.helper-label{color:rgb(var(--contrast-800))}.helper-label:empty{display:none}@keyframes display-tooltip{0%{opacity:0;transform:translate3d(0, 0, 0) scale(0.94)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";const br=class{constructor(r){t(this,r);this.label=undefined;this.helperLabel=undefined;this.maxlength=undefined}render(){let t=false;if(this.helperLabel&&this.maxlength){t=this.label.length+this.helperLabel.length>this.maxlength}const e={};if(this.maxlength){e.style={"--tooltip-max-width-of-text":`${this.maxlength}`+"ch"}}return[r("text",Object.assign({class:{"has-column-layout":t}},e),r("div",{class:"label"},this.label),r("div",{class:"helper-label"},this.helperLabel))]}};br.style=pr;export{cr as limel_portal,hr as limel_tooltip,br as limel_tooltip_content};
|
|
2
|
+
//# sourceMappingURL=p-66c9403f.entry.js.map
|