import { h } from '@stencil/core';
export class EclPagination {
  constructor() {
    this.styleClass = '';
    this.theme = 'ec';
  }
  getClass() {
    const styleClasses = [
      `ecl-pagination`,
      this.styleClass
    ];
    return styleClasses.join(' ');
  }
  componentDidRender() {
    const items = this.el.querySelectorAll('.ecl-pagination__item');
    if (items) {
      this.el.querySelector('.ecl-pagination__list').innerHTML = '';
      this.el.querySelector('.ecl-pagination__list').append(...items);
    }
  }
  ;
  render() {
    return (h("div", { class: this.getClass() }, h("ul", { class: "ecl-pagination__list" }, h("slot", null))));
  }
  ;
  static get is() { return "ecl-pagination"; }
  static get encapsulation() { return "scoped"; }
  static get originalStyleUrls() {
    return {
      "ec": ["./build/styles/ecl-pagination-ec.css"],
      "eu": ["./build/styles/ecl-pagination-eu.css"]
    };
  }
  static get styleUrls() {
    return {
      "ec": ["./build/styles/ecl-pagination-ec.css"],
      "eu": ["./build/styles/ecl-pagination-eu.css"]
    };
  }
  static get properties() {
    return {
      "styleClass": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "style-class",
        "reflect": false,
        "defaultValue": "''"
      },
      "theme": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "theme",
        "reflect": false,
        "defaultValue": "'ec'"
      }
    };
  }
  static get elementRef() { return "el"; }
}
//# sourceMappingURL=ecl-pagination.js.map
