var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component, Host, h, Prop, Element } from '@stencil/core';
import { sanitizeVegaComponent } from '../../../utils/component';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer, slotPlaceholder, } from 'vega-slimmer/core';
import { VegaDropdownGroupRenderer } from './slimmers/renderers/vega-dropdown-group-renderer';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
/**
 * @vegaVersion 1.47.0
 */
export class VegaDropdownGroup {
  constructor() {
    this.globalSlimmers = {};
    this.renderer = new VegaDropdownGroupRenderer();
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
    /**
     * Determines whether to include a dividing line at
     *      the bottom of the dropdown group.
     *
     * @vegaVersion 1.47.0
     */
    this.divide = true;
  }
  render() {
    slotPlaceholder(h("slot", null));
    return sanitizeVegaComponent(h(Host, null, this.renderer.render()), this.host);
  }
  static get is() { return "vega-dropdown-group"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-dropdown-group.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-dropdown-group.css"]
  }; }
  static get properties() { return {
    "label": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "1.47.0"
          }],
        "text": "Specifies the label for the dropdown group's level."
      },
      "attribute": "label",
      "reflect": false
    },
    "divide": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "1.47.0"
          }],
        "text": "Determines whether to include a dividing line at\n     the bottom of the dropdown group."
      },
      "attribute": "divide",
      "reflect": false,
      "defaultValue": "true"
    }
  }; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaGlobalSlimmer()
], VegaDropdownGroup.prototype, "globalSlimmers", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaDropdownGroup.prototype, "renderer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaDropdownGroup.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
