import { Component, Event, Prop, h } from "@stencil/core";
export class PopoverControls {
  constructor() {
    /**
     * The list of buttons to show when the material button is clicked
     */
    this.controls = [];
  }
  render() {
    return (h("ion-content", null,
      h("ion-list", null, this.controls.map((mb) => (h("ion-item", { detail: true, lines: "full", href: (mb === null || mb === void 0 ? void 0 : mb.href) || "#", onClick: (event) => {
          if (typeof (mb === null || mb === void 0 ? void 0 : mb.onClick) !== "function")
            return;
          mb.onClick(event);
          this.floodteamClosePopover.emit({ event });
        } },
        h("ion-icon", { color: mb === null || mb === void 0 ? void 0 : mb.color, name: mb.icon.indexOf("/") === -1 ? mb.icon : null, src: mb.icon.indexOf("/") === -1 ? null : mb.icon, slot: "start" }),
        h("ion-label", { color: mb === null || mb === void 0 ? void 0 : mb.color, innerHTML: mb.label })))))));
  }
  static get is() { return "floodteam-popover-controls"; }
  static get originalStyleUrls() { return {
    "$": ["popover-controls.css"]
  }; }
  static get styleUrls() { return {
    "$": ["popover-controls.css"]
  }; }
  static get properties() { return {
    "controls": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "Control[]",
        "resolved": "Control[]",
        "references": {
          "Control": {
            "location": "import",
            "path": "../../../interfaces"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "The list of buttons to show when the material button is clicked"
      },
      "defaultValue": "[]"
    }
  }; }
  static get events() { return [{
      "method": "floodteamClosePopover",
      "name": "floodteamClosePopover",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [],
        "text": ""
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
}
//# sourceMappingURL=popover-controls.js.map