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, Prop, Element, Event, h } from '@stencil/core';
import { sanitizeVegaComponent } from '../../../utils/component';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer, slotPlaceholder, } from 'vega-slimmer/core';
import { VegaLeftNavSectionRenderer } from './slimmers/renderers/vega-left-nav-section-renderer';
import { createEventEmitSlimmer, } from '../../../helpers/event-manager/slimmers/event-emit-slimmer';
import { VegaActionClick } from '../../../helpers/event-manager/event-id/vega-event-id';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
/**
 * @vegaVersion 1.31.0
 */
export class VegaLeftNavSection {
  constructor() {
    this.globalSlimmers = {};
    this.renderer = new VegaLeftNavSectionRenderer();
    this.actionClickEventEmitter = createEventEmitSlimmer(VegaLeftNavSection, VegaActionClick);
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
  }
  render() {
    slotPlaceholder(h("slot", null));
    return sanitizeVegaComponent(this.renderer.render(), this.host);
  }
  static get is() { return "vega-left-nav-section"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-left-nav-section.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-left-nav-section.css"]
  }; }
  static get properties() { return {
    "sectionHeader": {
      "type": "unknown",
      "mutable": false,
      "complexType": {
        "original": "LeftNavSectionHeaderConfig",
        "resolved": "{ title?: string; actionTitle?: string; actionLink?: string; actionEventful?: boolean; }",
        "references": {
          "LeftNavSectionHeaderConfig": {
            "location": "import",
            "path": "../interface"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "1.31.0"
          }],
        "text": "sectionHeader attached to the left nav section **"
      }
    },
    "itemKey": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.45.0"
          }],
        "text": "Defines a unique key for the left nav nav section item."
      },
      "attribute": "item-key",
      "reflect": false
    }
  }; }
  static get events() { return [{
      "method": "vegaActionClick",
      "name": "vegaActionClick",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.11.0"
          }],
        "text": "An event emitter notifying the action click event when the action link is not configured."
      },
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      }
    }, {
      "method": "actionClick",
      "name": "actionClick",
      "bubbles": true,
      "cancelable": true,
      "composed": true,
      "docs": {
        "tags": [{
            "name": "eventSemantics",
            "text": "namespace:native"
          }, {
            "name": "vegaVersion",
            "text": "2.11.0"
          }],
        "text": "An event emitter notifying the action click event when the action link is not configured."
      },
      "complexType": {
        "original": "any",
        "resolved": "any",
        "references": {}
      }
    }]; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaGlobalSlimmer()
], VegaLeftNavSection.prototype, "globalSlimmers", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaLeftNavSection.prototype, "renderer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaLeftNavSection.prototype, "actionClickEventEmitter", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaLeftNavSection.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
