UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

142 lines (141 loc) 5.2 kB
import { GroupSummaryDisplayMode_$type } from "./GroupSummaryDisplayMode"; import { IgcDefinitionBaseComponent } from "./igc-definition-base-component"; import { SectionHeader } from "./SectionHeader"; import { getAllPropertyNames, toSpinal, brushToString, stringToBrush, ensureBool, ensureEnum, enumToString } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Used to configure the appearance of the section header cells. */ export let IgcSectionHeaderComponent = /*@__PURE__*/ (() => { class IgcSectionHeaderComponent extends IgcDefinitionBaseComponent { createImplementation() { return new SectionHeader(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (this.updateContentChildren) { this.updateContentChildren(); } else if (this._updateAdapters) { this._updateAdapters(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcSectionHeaderComponent._observedAttributesIgcSectionHeaderComponent == null) { let names = getAllPropertyNames(IgcSectionHeaderComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSectionHeaderComponent._observedAttributesIgcSectionHeaderComponent = names; } return IgcSectionHeaderComponent._observedAttributesIgcSectionHeaderComponent; } static register() { if (!IgcSectionHeaderComponent._isElementRegistered) { IgcSectionHeaderComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcSectionHeaderComponent.htmlTagName, IgcSectionHeaderComponent); } } get selectedBackground() { return brushToString(this.i.hs); } set selectedBackground(v) { this.i.hs = stringToBrush(v); this._a("selectedBackground", brushToString(this.i.hs)); } get actualSelectedBackground() { return brushToString(this.i.hr); } set actualSelectedBackground(v) { this.i.hr = stringToBrush(v); this._a("actualSelectedBackground", brushToString(this.i.hr)); } /** * Gets or sets the amount of left padding to use for the cell content for this column. */ get paddingLeft() { return this.i.ha; } set paddingLeft(v) { this.i.ha = +v; this._a("paddingLeft", this.i.ha); } /** * Gets or sets the amount of top padding to use for the cell content for this column. */ get paddingTop() { return this.i.hc; } set paddingTop(v) { this.i.hc = +v; this._a("paddingTop", this.i.hc); } /** * Gets or sets the amount of right padding to use for the cell content of this column. */ get paddingRight() { return this.i.hb; } set paddingRight(v) { this.i.hb = +v; this._a("paddingRight", this.i.hb); } /** * Gets or sets the amount of bottom padding to use for the cell content of this column. */ get paddingBottom() { return this.i.g9; } set paddingBottom(v) { this.i.g9 = +v; this._a("paddingBottom", this.i.g9); } get isCollapsable() { return this.i.g3; } set isCollapsable(v) { this.i.g3 = ensureBool(v); this._a("isCollapsable", this.i.g3); } get summaryDisplayMode() { return this.i.g0; } set summaryDisplayMode(v) { this.i.g0 = ensureEnum(GroupSummaryDisplayMode_$type, v); this._a("summaryDisplayMode", enumToString(GroupSummaryDisplayMode_$type, this.i.g0)); } } IgcSectionHeaderComponent._observedAttributesIgcSectionHeaderComponent = null; IgcSectionHeaderComponent.htmlTagName = "igc-section-header"; IgcSectionHeaderComponent._isElementRegistered = false; return IgcSectionHeaderComponent; })();