UNPKG

igniteui-webcomponents-grids

Version:

Ignite UI Web Components grid components.

198 lines (197 loc) 7 kB
import { __extends } from "tslib"; import { IgcDefinitionBaseComponent } from "./igc-definition-base-component"; import { getAllPropertyNames, toSpinal, brushToString, stringToBrush } from "igniteui-webcomponents-core"; import { FontInfo } from "igniteui-webcomponents-core"; var IgcSummaryRowComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcSummaryRowComponent, _super); function IgcSummaryRowComponent() { return _super.call(this) || this; } Object.defineProperty(IgcSummaryRowComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcSummaryRowComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } 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(); } }; IgcSummaryRowComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcSummaryRowComponent, "observedAttributes", { get: function () { if (IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent == null) { var names = getAllPropertyNames(IgcSummaryRowComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent = names; } return IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "selectedBackground", { /** * Gets or sets the background color for summary cells when selected. */ get: function () { return brushToString(this.i.hv); }, set: function (v) { this.i.hv = stringToBrush(v); this._a("selectedBackground", brushToString(this.i.hv)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "actualSelectedBackground", { /** * Gets the actual background color for summary cells when selected. */ get: function () { return brushToString(this.i.hs); }, set: function (v) { this.i.hs = stringToBrush(v); this._a("actualSelectedBackground", brushToString(this.i.hs)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "summaryLabelTextColor", { /** * Gets or sets the text color for the summary labels. */ get: function () { return brushToString(this.i.hw); }, set: function (v) { this.i.hw = stringToBrush(v); this._a("summaryLabelTextColor", brushToString(this.i.hw)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "actualSummaryLabelTextColor", { /** * Gets the actual text color for the summary labels. */ get: function () { return brushToString(this.i.ht); }, set: function (v) { this.i.ht = stringToBrush(v); this._a("actualSummaryLabelTextColor", brushToString(this.i.ht)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "summaryNameTextStyle", { /** * Gets or sets the text style for the summary labels. */ get: function () { if (this.i.summaryNameTextStyle == null) { return null; } return this.i.summaryNameTextStyle.fontString; }, set: function (v) { var fi = new FontInfo(); fi.fontString = v; this.i.summaryNameTextStyle = fi; this._a("summaryNameTextStyle", this.i.summaryNameTextStyle != null ? this.i.summaryNameTextStyle.fontString : ""); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "paddingLeft", { /** * Gets or sets the amount of left padding to use for the cell content for this column. */ get: function () { return this.i.g8; }, set: function (v) { this.i.g8 = +v; this._a("paddingLeft", this.i.g8); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "paddingTop", { /** * Gets or sets the amount of top padding to use for the cell content for this column. */ get: function () { return this.i.ha; }, set: function (v) { this.i.ha = +v; this._a("paddingTop", this.i.ha); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "paddingRight", { /** * Gets or sets the amount of right padding to use for the cell content of this column. */ get: function () { return this.i.g9; }, set: function (v) { this.i.g9 = +v; this._a("paddingRight", this.i.g9); }, enumerable: false, configurable: true }); Object.defineProperty(IgcSummaryRowComponent.prototype, "paddingBottom", { /** * Gets or sets the amount of bottom padding to use for the cell content of this column. */ get: function () { return this.i.g7; }, set: function (v) { this.i.g7 = +v; this._a("paddingBottom", this.i.g7); }, enumerable: false, configurable: true }); IgcSummaryRowComponent._observedAttributesIgcSummaryRowComponent = null; return IgcSummaryRowComponent; }(IgcDefinitionBaseComponent)); export { IgcSummaryRowComponent };