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, State } from '@stencil/core';
import { sanitizeVegaComponent } from '../../../utils/component';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer } from 'vega-slimmer/core';
import { VegaTableFootCellStateController } from './slimmers/controllers/vega-table-foot-cell-state-controller';
import ResponsiveFormatFacade from '../../../helpers/formatter/responsive-map-formatter/responsive-format-facade';
import { PageResizeObserverSlimmer } from '../../../helpers/slimmers/page-resize-observer-slimmer';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
import { VegaTableFootCellRenderer } from './slimmers/renderers/vega-table-foot-cell-renderer';
import { getCurrentBreakpoint } from '../../../utils/breakpoints';
/**
 * @vegaVersion 2.68.1
 */
export class VegaTableFootCell {
  constructor() {
    this.globalSlimmers = {};
    this.vegaTableFootCellStateController = new VegaTableFootCellStateController();
    this.vegaTableFootCellRenderer = new VegaTableFootCellRenderer();
    this.pageResizeObserverSlimmer = new PageResizeObserverSlimmer();
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
    this.currentBreakpoint = getCurrentBreakpoint();
  }
  render() {
    return sanitizeVegaComponent(h(Host, { class: {
        [`density-${ResponsiveFormatFacade.formatCustom(this.density)}`]: true,
        'column-divider': this.columnDivider,
      }, style: { width: this.width } }, this.vegaTableFootCellRenderer.render()), this.host);
  }
  static get is() { return "vega-table-foot-cell"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-table-foot-cell.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-table-foot-cell.css"]
  }; }
  static get properties() { return {
    "breakpoint": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "VegaTableColumnBreakpoint",
        "resolved": "\"L\" | \"M\" | \"S\" | \"XL\"",
        "references": {
          "VegaTableColumnBreakpoint": {
            "location": "import",
            "path": "../interface"
          }
        }
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.68.1"
          }],
        "text": "Defines the screen width at which the column becomes hidden.\n   If not set, the column remains visible at all times."
      },
      "attribute": "breakpoint",
      "reflect": false
    },
    "textAlign": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "'left' | 'right' | 'center'",
        "resolved": "\"center\" | \"left\" | \"right\"",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.68.1"
          }],
        "text": "Determines the alignment of text within the foot cell."
      },
      "attribute": "text-align",
      "reflect": false
    },
    "width": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": true,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.68.1"
          }],
        "text": "Specifies the width of the foot cell."
      },
      "attribute": "width",
      "reflect": false
    }
  }; }
  static get states() { return {
    "currentBreakpoint": {},
    "density": {},
    "columnDivider": {}
  }; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaGlobalSlimmer()
], VegaTableFootCell.prototype, "globalSlimmers", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaTableFootCell.prototype, "vegaTableFootCellStateController", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaTableFootCell.prototype, "vegaTableFootCellRenderer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaTableFootCell.prototype, "pageResizeObserverSlimmer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaTableFootCell.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
