igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
108 lines (107 loc) • 4.82 kB
JavaScript
import { __extends } from "tslib";
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";
var IgcTextIconSetConditionalStyleComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcTextIconSetConditionalStyleComponent, _super);
function IgcTextIconSetConditionalStyleComponent() {
return _super.call(this) || this;
}
IgcTextIconSetConditionalStyleComponent.prototype.createImplementation = function () {
return new TextIconSetConditionalStyle();
};
Object.defineProperty(IgcTextIconSetConditionalStyleComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcTextIconSetConditionalStyleComponent.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();
}
};
IgcTextIconSetConditionalStyleComponent.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(IgcTextIconSetConditionalStyleComponent, "observedAttributes", {
get: function () {
if (IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent == null) {
var names = getAllPropertyNames(IgcTextIconSetConditionalStyleComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent = names;
}
return IgcTextIconSetConditionalStyleComponent._observedAttributesIgcTextIconSetConditionalStyleComponent;
},
enumerable: false,
configurable: true
});
IgcTextIconSetConditionalStyleComponent.register = function () {
if (!IgcTextIconSetConditionalStyleComponent._isElementRegistered) {
IgcTextIconSetConditionalStyleComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcTextIconSetConditionalStyleComponent.htmlTagName, IgcTextIconSetConditionalStyleComponent);
}
};
Object.defineProperty(IgcTextIconSetConditionalStyleComponent.prototype, "iconType", {
get: function () {
return this.i.av;
},
set: function (v) {
this.i.av = ensureEnum(TextIconSetBuiltInTypes_$type, v);
this._a("iconType", enumToString(TextIconSetBuiltInTypes_$type, this.i.av));
},
enumerable: false,
configurable: true
});
IgcTextIconSetConditionalStyleComponent.prototype.getSubStyles = function () {
var iv = this.i.aq();
var ret = null;
if (iv && iv.externalObject) {
ret = iv.externalObject;
}
else {
if (iv) {
var 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;
}(IgcGridCompoundConditionalStyleComponent));
export { IgcTextIconSetConditionalStyleComponent };