igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
153 lines (152 loc) • 5.39 kB
JavaScript
import { IgcDefinitionBaseComponent } from "./igc-definition-base-component";
import { getAllPropertyNames, toSpinal, brushToString, stringToBrush } from "igniteui-webcomponents-core";
import { FontInfo } from "igniteui-webcomponents-core";
export let IgcSummaryRowComponent = /*@__PURE__*/ (() => {
class IgcSummaryRowComponent extends IgcDefinitionBaseComponent {
/**
* @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 (IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent == null) {
let names = getAllPropertyNames(IgcSummaryRowComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent = names;
}
return IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent;
}
/**
* Gets or sets the background color for summary cells when selected.
*/
get selectedBackground() {
return brushToString(this.i.hv);
}
set selectedBackground(v) {
this.i.hv = stringToBrush(v);
this._a("selectedBackground", brushToString(this.i.hv));
}
/**
* Gets the actual background color for summary cells when selected.
*/
get actualSelectedBackground() {
return brushToString(this.i.hs);
}
set actualSelectedBackground(v) {
this.i.hs = stringToBrush(v);
this._a("actualSelectedBackground", brushToString(this.i.hs));
}
/**
* Gets or sets the text color for the summary labels.
*/
get summaryLabelTextColor() {
return brushToString(this.i.hw);
}
set summaryLabelTextColor(v) {
this.i.hw = stringToBrush(v);
this._a("summaryLabelTextColor", brushToString(this.i.hw));
}
/**
* Gets the actual text color for the summary labels.
*/
get actualSummaryLabelTextColor() {
return brushToString(this.i.ht);
}
set actualSummaryLabelTextColor(v) {
this.i.ht = stringToBrush(v);
this._a("actualSummaryLabelTextColor", brushToString(this.i.ht));
}
/**
* Gets or sets the text style for the summary labels.
*/
get summaryNameTextStyle() {
if (this.i.summaryNameTextStyle == null) {
return null;
}
return this.i.summaryNameTextStyle.fontString;
}
set summaryNameTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.summaryNameTextStyle = fi;
this._a("summaryNameTextStyle", this.i.summaryNameTextStyle != null ? this.i.summaryNameTextStyle.fontString : "");
}
/**
* Gets or sets the amount of left padding to use for the cell content for this column.
*/
get paddingLeft() {
return this.i.g8;
}
set paddingLeft(v) {
this.i.g8 = +v;
this._a("paddingLeft", this.i.g8);
}
/**
* Gets or sets the amount of top padding to use for the cell content for this column.
*/
get paddingTop() {
return this.i.ha;
}
set paddingTop(v) {
this.i.ha = +v;
this._a("paddingTop", this.i.ha);
}
/**
* Gets or sets the amount of right padding to use for the cell content of this column.
*/
get paddingRight() {
return this.i.g9;
}
set paddingRight(v) {
this.i.g9 = +v;
this._a("paddingRight", this.i.g9);
}
/**
* Gets or sets the amount of bottom padding to use for the cell content of this column.
*/
get paddingBottom() {
return this.i.g7;
}
set paddingBottom(v) {
this.i.g7 = +v;
this._a("paddingBottom", this.i.g7);
}
}
IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent = null;
return IgcSummaryRowComponent;
})();