igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
95 lines (94 loc) • 4.07 kB
JavaScript
import { TextIconSetBuiltInTypes_$type } from "./TextIconSetBuiltInTypes";
import { IgcGridConditionalStyleCollection } from "./igc-grid-conditional-style-collection";
import { IgcGridCompoundConditionalStyleComponent } from "./igc-grid-compound-conditional-style-component";
import { TextIconSetConditionalStyle } from "./TextIconSetConditionalStyle";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
export let IgcTextIconSetConditionalStyleComponent = /*@__PURE__*/ (() => {
class IgcTextIconSetConditionalStyleComponent extends IgcGridCompoundConditionalStyleComponent {
createImplementation() {
return new TextIconSetConditionalStyle();
}
/**
* @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 (IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent == null) {
let names = getAllPropertyNames(IgcTextIconSetConditionalStyleComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent = names;
}
return IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent;
}
static register() {
if (!IgcTextIconSetConditionalStyleComponent._isElementRegistered) {
IgcTextIconSetConditionalStyleComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcTextIconSetConditionalStyleComponent.htmlTagName, IgcTextIconSetConditionalStyleComponent);
}
}
get iconType() {
return this.i.av;
}
set iconType(v) {
this.i.av = ensureEnum(TextIconSetBuiltInTypes_$type, v);
this._a("iconType", enumToString(TextIconSetBuiltInTypes_$type, this.i.av));
}
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;
}
}
IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent = null;
IgcTextIconSetConditionalStyleComponent.htmlTagName = "igc-text-icon-set-conditional-style";
IgcTextIconSetConditionalStyleComponent._isElementRegistered = false;
return IgcTextIconSetConditionalStyleComponent;
})();