| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874 | 
							- /*!
 
-  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
 
-  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
 
-  * v1.0.0-beta.97
 
-  */
 
- import { forceUpdate, Host, h } from "@stencil/core";
 
- import { CSS, ARIA_CONTROLS, ARIA_EXPANDED, HEADING_LEVEL, TEXT, defaultPopoverPlacement } from "./resources";
 
- import { FloatingCSS, connectFloatingUI, disconnectFloatingUI, defaultOffsetDistance, filterComputedPlacements, reposition, updateAfterClose } from "../../utils/floating-ui";
 
- import { guid } from "../../utils/guid";
 
- import { queryElementRoots, toAriaBoolean } from "../../utils/dom";
 
- import { connectOpenCloseComponent, disconnectOpenCloseComponent } from "../../utils/openCloseComponent";
 
- import { Heading } from "../functional/Heading";
 
- import PopoverManager from "./PopoverManager";
 
- const manager = new PopoverManager();
 
- /**
 
-  * @slot - A slot for adding custom content.
 
-  */
 
- export class Popover {
 
-   constructor() {
 
-     // --------------------------------------------------------------------------
 
-     //
 
-     //  Properties
 
-     //
 
-     // --------------------------------------------------------------------------
 
-     /**
 
-      * When `true`, clicking outside of the component automatically closes open `calcite-popover`s.
 
-      */
 
-     this.autoClose = false;
 
-     /**
 
-      * When `true`, a close button is added to the component.
 
-      *
 
-      * @deprecated use dismissible instead.
 
-      */
 
-     this.closeButton = false;
 
-     /**
 
-      * When `true`, a close button is added to the component.
 
-      *
 
-      * @deprecated use `closable` instead.
 
-      */
 
-     this.dismissible = false;
 
-     /** When `true`, display a close button within the component. */
 
-     this.closable = false;
 
-     /**
 
-      * When `true`, prevents flipping the component's placement when overlapping its `referenceElement`.
 
-      */
 
-     this.disableFlip = false;
 
-     /**
 
-      * When `true`, removes the caret pointer.
 
-      */
 
-     this.disablePointer = false;
 
-     /**
 
-      * Offsets the position of the component away from the `referenceElement`.
 
-      *
 
-      * @default 6
 
-      */
 
-     this.offsetDistance = defaultOffsetDistance;
 
-     /**
 
-      * Offsets the position of the component along the `referenceElement`.
 
-      */
 
-     this.offsetSkidding = 0;
 
-     /**
 
-      * When `true`, displays and positions the component.
 
-      */
 
-     this.open = false;
 
-     /**
 
-      * Determines the type of positioning to use for the overlaid content.
 
-      *
 
-      * Using `"absolute"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.
 
-      *
 
-      * `"fixed"` value should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
 
-      *
 
-      */
 
-     this.overlayPositioning = "absolute";
 
-     /**
 
-      * Determines where the component will be positioned relative to the `referenceElement`.
 
-      *
 
-      * @see [LogicalPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/floating-ui.ts#L25)
 
-      */
 
-     this.placement = defaultPopoverPlacement;
 
-     /**
 
-      * When `true`, disables automatically toggling the component when its `referenceElement` has been triggered.
 
-      *
 
-      * This property can be set to `true` to manage when the component is open.
 
-      */
 
-     this.triggerDisabled = false;
 
-     /**
 
-      * Accessible name for the component's close button.
 
-      *
 
-      * @default "Close"
 
-      */
 
-     this.intlClose = TEXT.close;
 
-     this.guid = `calcite-popover-${guid()}`;
 
-     this.openTransitionProp = "opacity";
 
-     this.hasLoaded = false;
 
-     // --------------------------------------------------------------------------
 
-     //
 
-     //  Private Methods
 
-     //
 
-     // --------------------------------------------------------------------------
 
-     this.setTransitionEl = (el) => {
 
-       this.transitionEl = el;
 
-       connectOpenCloseComponent(this);
 
-     };
 
-     this.setFilteredPlacements = () => {
 
-       const { el, flipPlacements } = this;
 
-       this.filteredFlipPlacements = flipPlacements
 
-         ? filterComputedPlacements(flipPlacements, el)
 
-         : null;
 
-     };
 
-     this.setUpReferenceElement = (warn = true) => {
 
-       this.removeReferences();
 
-       this.effectiveReferenceElement = this.getReferenceElement();
 
-       connectFloatingUI(this, this.effectiveReferenceElement, this.el);
 
-       const { el, referenceElement, effectiveReferenceElement } = this;
 
-       if (warn && referenceElement && !effectiveReferenceElement) {
 
-         console.warn(`${el.tagName}: reference-element id "${referenceElement}" was not found.`, {
 
-           el
 
-         });
 
-       }
 
-       this.addReferences();
 
-     };
 
-     this.getId = () => {
 
-       return this.el.id || this.guid;
 
-     };
 
-     this.setExpandedAttr = () => {
 
-       const { effectiveReferenceElement, open } = this;
 
-       if (!effectiveReferenceElement) {
 
-         return;
 
-       }
 
-       if ("setAttribute" in effectiveReferenceElement) {
 
-         effectiveReferenceElement.setAttribute(ARIA_EXPANDED, toAriaBoolean(open));
 
-       }
 
-     };
 
-     this.addReferences = () => {
 
-       const { effectiveReferenceElement } = this;
 
-       if (!effectiveReferenceElement) {
 
-         return;
 
-       }
 
-       const id = this.getId();
 
-       if ("setAttribute" in effectiveReferenceElement) {
 
-         effectiveReferenceElement.setAttribute(ARIA_CONTROLS, id);
 
-       }
 
-       manager.registerElement(effectiveReferenceElement, this.el);
 
-       this.setExpandedAttr();
 
-     };
 
-     this.removeReferences = () => {
 
-       const { effectiveReferenceElement } = this;
 
-       if (!effectiveReferenceElement) {
 
-         return;
 
-       }
 
-       if ("removeAttribute" in effectiveReferenceElement) {
 
-         effectiveReferenceElement.removeAttribute(ARIA_CONTROLS);
 
-         effectiveReferenceElement.removeAttribute(ARIA_EXPANDED);
 
-       }
 
-       manager.unregisterElement(effectiveReferenceElement);
 
-     };
 
-     this.hide = () => {
 
-       this.open = false;
 
-     };
 
-     this.storeArrowEl = (el) => {
 
-       this.arrowEl = el;
 
-       this.reposition(true);
 
-     };
 
-   }
 
-   handleDismissible(value) {
 
-     this.closable = value;
 
-   }
 
-   handleClosable(value) {
 
-     this.dismissible = value;
 
-   }
 
-   flipPlacementsHandler() {
 
-     this.setFilteredPlacements();
 
-     this.reposition(true);
 
-   }
 
-   offsetDistanceOffsetHandler() {
 
-     this.reposition(true);
 
-   }
 
-   offsetSkiddingHandler() {
 
-     this.reposition(true);
 
-   }
 
-   openHandler(value) {
 
-     if (value) {
 
-       this.reposition(true);
 
-     }
 
-     else {
 
-       updateAfterClose(this.el);
 
-     }
 
-     this.setExpandedAttr();
 
-   }
 
-   overlayPositioningHandler() {
 
-     this.reposition(true);
 
-   }
 
-   placementHandler() {
 
-     this.reposition(true);
 
-   }
 
-   referenceElementHandler() {
 
-     this.setUpReferenceElement();
 
-     this.reposition(true);
 
-   }
 
-   // --------------------------------------------------------------------------
 
-   //
 
-   //  Lifecycle
 
-   //
 
-   // --------------------------------------------------------------------------
 
-   connectedCallback() {
 
-     this.setFilteredPlacements();
 
-     connectOpenCloseComponent(this);
 
-     const closable = this.closable || this.dismissible;
 
-     if (closable) {
 
-       this.handleDismissible(closable);
 
-     }
 
-     if (closable) {
 
-       this.handleClosable(closable);
 
-     }
 
-     this.setUpReferenceElement(this.hasLoaded);
 
-   }
 
-   componentDidLoad() {
 
-     if (this.referenceElement && !this.effectiveReferenceElement) {
 
-       this.setUpReferenceElement();
 
-     }
 
-     this.reposition();
 
-     this.hasLoaded = true;
 
-   }
 
-   disconnectedCallback() {
 
-     this.removeReferences();
 
-     disconnectFloatingUI(this, this.effectiveReferenceElement, this.el);
 
-     disconnectOpenCloseComponent(this);
 
-   }
 
-   // --------------------------------------------------------------------------
 
-   //
 
-   //  Public Methods
 
-   //
 
-   // --------------------------------------------------------------------------
 
-   /**
 
-    * Updates the position of the component.
 
-    *
 
-    * @param delayed
 
-    */
 
-   async reposition(delayed = false) {
 
-     const { el, effectiveReferenceElement, placement, overlayPositioning, disableFlip, filteredFlipPlacements, offsetDistance, offsetSkidding, arrowEl } = this;
 
-     return reposition(this, {
 
-       floatingEl: el,
 
-       referenceEl: effectiveReferenceElement,
 
-       overlayPositioning,
 
-       placement,
 
-       disableFlip,
 
-       flipPlacements: filteredFlipPlacements,
 
-       offsetDistance,
 
-       offsetSkidding,
 
-       includeArrow: !this.disablePointer,
 
-       arrowEl,
 
-       type: "popover"
 
-     }, delayed);
 
-   }
 
-   /**
 
-    * Sets focus on the component.
 
-    *
 
-    * @param focusId
 
-    */
 
-   async setFocus(focusId) {
 
-     var _a;
 
-     const { closeButtonEl } = this;
 
-     if (focusId === "close-button" && closeButtonEl) {
 
-       forceUpdate(closeButtonEl);
 
-       closeButtonEl.setFocus();
 
-       return;
 
-     }
 
-     (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
 
-   }
 
-   /**
 
-    * Toggles the component's open property.
 
-    *
 
-    * @param value
 
-    */
 
-   async toggle(value = !this.open) {
 
-     this.open = value;
 
-   }
 
-   getReferenceElement() {
 
-     const { referenceElement, el } = this;
 
-     return ((typeof referenceElement === "string"
 
-       ? queryElementRoots(el, { id: referenceElement })
 
-       : referenceElement) || null);
 
-   }
 
-   onBeforeOpen() {
 
-     this.calcitePopoverBeforeOpen.emit();
 
-   }
 
-   onOpen() {
 
-     this.calcitePopoverOpen.emit();
 
-   }
 
-   onBeforeClose() {
 
-     this.calcitePopoverBeforeClose.emit();
 
-   }
 
-   onClose() {
 
-     this.calcitePopoverClose.emit();
 
-   }
 
-   // --------------------------------------------------------------------------
 
-   //
 
-   //  Render Methods
 
-   //
 
-   // --------------------------------------------------------------------------
 
-   renderCloseButton() {
 
-     const { closeButton, intlClose, heading, closable } = this;
 
-     return closable || closeButton ? (h("div", { class: CSS.closeButtonContainer }, h("calcite-action", { class: CSS.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), scale: heading ? "s" : "m", text: intlClose }, h("calcite-icon", { icon: "x", scale: heading ? "s" : "m" })))) : null;
 
-   }
 
-   renderHeader() {
 
-     const { heading, headingLevel } = this;
 
-     const headingNode = heading ? (h(Heading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading)) : null;
 
-     return headingNode ? (h("div", { class: CSS.header }, headingNode, this.renderCloseButton())) : null;
 
-   }
 
-   render() {
 
-     const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
 
-     const displayed = effectiveReferenceElement && open;
 
-     const hidden = !displayed;
 
-     const arrowNode = !disablePointer ? h("div", { class: CSS.arrow, ref: this.storeArrowEl }) : null;
 
-     return (h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
 
-         [FloatingCSS.animation]: true,
 
-         [FloatingCSS.animationActive]: displayed
 
-       }, ref: this.setTransitionEl }, arrowNode, h("div", { class: {
 
-         [CSS.hasHeader]: !!heading,
 
-         [CSS.container]: true
 
-       } }, this.renderHeader(), h("div", { class: CSS.content }, h("slot", null)), !heading ? this.renderCloseButton() : null))));
 
-   }
 
-   static get is() { return "calcite-popover"; }
 
-   static get encapsulation() { return "shadow"; }
 
-   static get originalStyleUrls() {
 
-     return {
 
-       "$": ["popover.scss"]
 
-     };
 
-   }
 
-   static get styleUrls() {
 
-     return {
 
-       "$": ["popover.css"]
 
-     };
 
-   }
 
-   static get properties() {
 
-     return {
 
-       "autoClose": {
 
-         "type": "boolean",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "When `true`, clicking outside of the component automatically closes open `calcite-popover`s."
 
-         },
 
-         "attribute": "auto-close",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "closeButton": {
 
-         "type": "boolean",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [{
 
-               "name": "deprecated",
 
-               "text": "use dismissible instead."
 
-             }],
 
-           "text": "When `true`, a close button is added to the component."
 
-         },
 
-         "attribute": "close-button",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "dismissible": {
 
-         "type": "boolean",
 
-         "mutable": true,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [{
 
-               "name": "deprecated",
 
-               "text": "use `closable` instead."
 
-             }],
 
-           "text": "When `true`, a close button is added to the component."
 
-         },
 
-         "attribute": "dismissible",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "closable": {
 
-         "type": "boolean",
 
-         "mutable": true,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "When `true`, display a close button within the component."
 
-         },
 
-         "attribute": "closable",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "disableFlip": {
 
-         "type": "boolean",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "When `true`, prevents flipping the component's placement when overlapping its `referenceElement`."
 
-         },
 
-         "attribute": "disable-flip",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "disablePointer": {
 
-         "type": "boolean",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "When `true`, removes the caret pointer."
 
-         },
 
-         "attribute": "disable-pointer",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "flipPlacements": {
 
-         "type": "unknown",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "EffectivePlacement[]",
 
-           "resolved": "Placement[]",
 
-           "references": {
 
-             "EffectivePlacement": {
 
-               "location": "import",
 
-               "path": "../../utils/floating-ui"
 
-             }
 
-           }
 
-         },
 
-         "required": false,
 
-         "optional": true,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Defines the available placements that can be used when a flip occurs."
 
-         }
 
-       },
 
-       "heading": {
 
-         "type": "string",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "string",
 
-           "resolved": "string",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": true,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "The component header text."
 
-         },
 
-         "attribute": "heading",
 
-         "reflect": false
 
-       },
 
-       "headingLevel": {
 
-         "type": "number",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "HeadingLevel",
 
-           "resolved": "1 | 2 | 3 | 4 | 5 | 6",
 
-           "references": {
 
-             "HeadingLevel": {
 
-               "location": "import",
 
-               "path": "../functional/Heading"
 
-             }
 
-           }
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Specifies the number at which section headings should start."
 
-         },
 
-         "attribute": "heading-level",
 
-         "reflect": true
 
-       },
 
-       "label": {
 
-         "type": "string",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "string",
 
-           "resolved": "string",
 
-           "references": {}
 
-         },
 
-         "required": true,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Accessible name for the component."
 
-         },
 
-         "attribute": "label",
 
-         "reflect": false
 
-       },
 
-       "offsetDistance": {
 
-         "type": "number",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "number",
 
-           "resolved": "number",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [{
 
-               "name": "default",
 
-               "text": "6"
 
-             }],
 
-           "text": "Offsets the position of the component away from the `referenceElement`."
 
-         },
 
-         "attribute": "offset-distance",
 
-         "reflect": true,
 
-         "defaultValue": "defaultOffsetDistance"
 
-       },
 
-       "offsetSkidding": {
 
-         "type": "number",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "number",
 
-           "resolved": "number",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Offsets the position of the component along the `referenceElement`."
 
-         },
 
-         "attribute": "offset-skidding",
 
-         "reflect": true,
 
-         "defaultValue": "0"
 
-       },
 
-       "open": {
 
-         "type": "boolean",
 
-         "mutable": true,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "When `true`, displays and positions the component."
 
-         },
 
-         "attribute": "open",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "overlayPositioning": {
 
-         "type": "string",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "OverlayPositioning",
 
-           "resolved": "\"absolute\" | \"fixed\"",
 
-           "references": {
 
-             "OverlayPositioning": {
 
-               "location": "import",
 
-               "path": "../../utils/floating-ui"
 
-             }
 
-           }
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Determines the type of positioning to use for the overlaid content.\n\nUsing `\"absolute\"` will work for most cases. The component will be positioned inside of overflowing parent containers and will affect the container's layout.\n\n`\"fixed\"` value should be used to escape an overflowing parent container, or when the reference element's `position` CSS property is `\"fixed\"`."
 
-         },
 
-         "attribute": "overlay-positioning",
 
-         "reflect": true,
 
-         "defaultValue": "\"absolute\""
 
-       },
 
-       "placement": {
 
-         "type": "string",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "LogicalPlacement",
 
-           "resolved": "Placement | VariationPlacement | AutoPlacement | DeprecatedPlacement",
 
-           "references": {
 
-             "LogicalPlacement": {
 
-               "location": "import",
 
-               "path": "../../utils/floating-ui"
 
-             }
 
-           }
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [{
 
-               "name": "see",
 
-               "text": "[LogicalPlacement](https://github.com/Esri/calcite-components/blob/master/src/utils/floating-ui.ts#L25)"
 
-             }],
 
-           "text": "Determines where the component will be positioned relative to the `referenceElement`."
 
-         },
 
-         "attribute": "placement",
 
-         "reflect": true,
 
-         "defaultValue": "defaultPopoverPlacement"
 
-       },
 
-       "referenceElement": {
 
-         "type": "string",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "ReferenceElement | string",
 
-           "resolved": "Element | VirtualElement | string",
 
-           "references": {
 
-             "ReferenceElement": {
 
-               "location": "import",
 
-               "path": "../../utils/floating-ui"
 
-             }
 
-           }
 
-         },
 
-         "required": true,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "The `referenceElement` used to position the component according to its `placement` value. Setting to an `HTMLElement` is preferred so the component does not need to query the DOM. However, a string `id` of the reference element can also be used."
 
-         },
 
-         "attribute": "reference-element",
 
-         "reflect": false
 
-       },
 
-       "triggerDisabled": {
 
-         "type": "boolean",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "boolean",
 
-           "resolved": "boolean",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "When `true`, disables automatically toggling the component when its `referenceElement` has been triggered.\n\nThis property can be set to `true` to manage when the component is open."
 
-         },
 
-         "attribute": "trigger-disabled",
 
-         "reflect": true,
 
-         "defaultValue": "false"
 
-       },
 
-       "intlClose": {
 
-         "type": "string",
 
-         "mutable": false,
 
-         "complexType": {
 
-           "original": "string",
 
-           "resolved": "string",
 
-           "references": {}
 
-         },
 
-         "required": false,
 
-         "optional": false,
 
-         "docs": {
 
-           "tags": [{
 
-               "name": "default",
 
-               "text": "\"Close\""
 
-             }],
 
-           "text": "Accessible name for the component's close button."
 
-         },
 
-         "attribute": "intl-close",
 
-         "reflect": false,
 
-         "defaultValue": "TEXT.close"
 
-       }
 
-     };
 
-   }
 
-   static get states() {
 
-     return {
 
-       "effectiveReferenceElement": {}
 
-     };
 
-   }
 
-   static get events() {
 
-     return [{
 
-         "method": "calcitePopoverBeforeClose",
 
-         "name": "calcitePopoverBeforeClose",
 
-         "bubbles": true,
 
-         "cancelable": false,
 
-         "composed": true,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Fires when the component is requested to be closed and before the closing transition begins."
 
-         },
 
-         "complexType": {
 
-           "original": "void",
 
-           "resolved": "void",
 
-           "references": {}
 
-         }
 
-       }, {
 
-         "method": "calcitePopoverClose",
 
-         "name": "calcitePopoverClose",
 
-         "bubbles": true,
 
-         "cancelable": false,
 
-         "composed": true,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Fires when the component is closed and animation is complete."
 
-         },
 
-         "complexType": {
 
-           "original": "void",
 
-           "resolved": "void",
 
-           "references": {}
 
-         }
 
-       }, {
 
-         "method": "calcitePopoverBeforeOpen",
 
-         "name": "calcitePopoverBeforeOpen",
 
-         "bubbles": true,
 
-         "cancelable": false,
 
-         "composed": true,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Fires when the component is added to the DOM but not rendered, and before the opening transition begins."
 
-         },
 
-         "complexType": {
 
-           "original": "void",
 
-           "resolved": "void",
 
-           "references": {}
 
-         }
 
-       }, {
 
-         "method": "calcitePopoverOpen",
 
-         "name": "calcitePopoverOpen",
 
-         "bubbles": true,
 
-         "cancelable": false,
 
-         "composed": true,
 
-         "docs": {
 
-           "tags": [],
 
-           "text": "Fires when the component is open and animation is complete."
 
-         },
 
-         "complexType": {
 
-           "original": "void",
 
-           "resolved": "void",
 
-           "references": {}
 
-         }
 
-       }];
 
-   }
 
-   static get methods() {
 
-     return {
 
-       "reposition": {
 
-         "complexType": {
 
-           "signature": "(delayed?: boolean) => Promise<void>",
 
-           "parameters": [{
 
-               "tags": [{
 
-                   "name": "param",
 
-                   "text": "delayed"
 
-                 }],
 
-               "text": ""
 
-             }],
 
-           "references": {
 
-             "Promise": {
 
-               "location": "global"
 
-             }
 
-           },
 
-           "return": "Promise<void>"
 
-         },
 
-         "docs": {
 
-           "text": "Updates the position of the component.",
 
-           "tags": [{
 
-               "name": "param",
 
-               "text": "delayed"
 
-             }]
 
-         }
 
-       },
 
-       "setFocus": {
 
-         "complexType": {
 
-           "signature": "(focusId?: \"close-button\") => Promise<void>",
 
-           "parameters": [{
 
-               "tags": [{
 
-                   "name": "param",
 
-                   "text": "focusId"
 
-                 }],
 
-               "text": ""
 
-             }],
 
-           "references": {
 
-             "Promise": {
 
-               "location": "global"
 
-             }
 
-           },
 
-           "return": "Promise<void>"
 
-         },
 
-         "docs": {
 
-           "text": "Sets focus on the component.",
 
-           "tags": [{
 
-               "name": "param",
 
-               "text": "focusId"
 
-             }]
 
-         }
 
-       },
 
-       "toggle": {
 
-         "complexType": {
 
-           "signature": "(value?: boolean) => Promise<void>",
 
-           "parameters": [{
 
-               "tags": [{
 
-                   "name": "param",
 
-                   "text": "value"
 
-                 }],
 
-               "text": ""
 
-             }],
 
-           "references": {
 
-             "Promise": {
 
-               "location": "global"
 
-             }
 
-           },
 
-           "return": "Promise<void>"
 
-         },
 
-         "docs": {
 
-           "text": "Toggles the component's open property.",
 
-           "tags": [{
 
-               "name": "param",
 
-               "text": "value"
 
-             }]
 
-         }
 
-       }
 
-     };
 
-   }
 
-   static get elementRef() { return "el"; }
 
-   static get watchers() {
 
-     return [{
 
-         "propName": "dismissible",
 
-         "methodName": "handleDismissible"
 
-       }, {
 
-         "propName": "closable",
 
-         "methodName": "handleClosable"
 
-       }, {
 
-         "propName": "flipPlacements",
 
-         "methodName": "flipPlacementsHandler"
 
-       }, {
 
-         "propName": "offsetDistance",
 
-         "methodName": "offsetDistanceOffsetHandler"
 
-       }, {
 
-         "propName": "offsetSkidding",
 
-         "methodName": "offsetSkiddingHandler"
 
-       }, {
 
-         "propName": "open",
 
-         "methodName": "openHandler"
 
-       }, {
 
-         "propName": "overlayPositioning",
 
-         "methodName": "overlayPositioningHandler"
 
-       }, {
 
-         "propName": "placement",
 
-         "methodName": "placementHandler"
 
-       }, {
 
-         "propName": "referenceElement",
 
-         "methodName": "referenceElementHandler"
 
-       }];
 
-   }
 
- }
 
 
  |