igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
89 lines (88 loc) • 3.29 kB
JavaScript
import { IgcGridConditionalStyleCollection } from "./igc-grid-conditional-style-collection";
import { IgcGridConditionalStyleComponent } from "./igc-grid-conditional-style-component";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
export let IgcGridCompoundConditionalStyleComponent = /*@__PURE__*/ (() => {
class IgcGridCompoundConditionalStyleComponent extends IgcGridConditionalStyleComponent {
/**
* @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 (IgcGridCompoundConditionalStyleComponent._observedAttributesIgcGridCompoundConditionalStyleComponent == null) {
let names = getAllPropertyNames(IgcGridCompoundConditionalStyleComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcGridCompoundConditionalStyleComponent._observedAttributesIgcGridCompoundConditionalStyleComponent = names;
}
return IgcGridCompoundConditionalStyleComponent._observedAttributesIgcGridCompoundConditionalStyleComponent;
}
get isCompound() {
return this.i.s;
}
getSubStyles() {
let iv = this.i.aq();
let ret = null;
if (iv && iv.externalObject) {
ret = iv.externalObject;
}
else {
if (iv) {
let e = new IgcGridConditionalStyleCollection();
e._implementation = iv;
iv.externalObject = e;
ret = e;
}
}
return ret;
}
actualNeedsFieldMaximum() {
let iv = this.i.p();
return (iv);
}
actualNeedsFieldMinimum() {
let iv = this.i.q();
return (iv);
}
actualNeedsFieldSum() {
let iv = this.i.r();
return (iv);
}
}
IgcGridCompoundConditionalStyleComponent._observedAttributesIgcGridCompoundConditionalStyleComponent = null;
return IgcGridCompoundConditionalStyleComponent;
})();