igniteui-webcomponents-grids
Version:
Ignite UI Web Components grid components.
115 lines (114 loc) • 4.58 kB
JavaScript
import { __extends } from "tslib";
import { IgcDefinitionBaseComponent } from "./igc-definition-base-component";
import { ColumnMovingSeparator } from "./ColumnMovingSeparator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
var IgcColumnMovingSeparatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcColumnMovingSeparatorComponent, _super);
function IgcColumnMovingSeparatorComponent() {
return _super.call(this) || this;
}
IgcColumnMovingSeparatorComponent.prototype.createImplementation = function () {
return new ColumnMovingSeparator();
};
Object.defineProperty(IgcColumnMovingSeparatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcColumnMovingSeparatorComponent.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();
}
};
IgcColumnMovingSeparatorComponent.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(IgcColumnMovingSeparatorComponent, "observedAttributes", {
get: function () {
if (IgcColumnMovingSeparatorComponent._observedAttributesIgcColumnMovingSeparatorComponent == null) {
var names = getAllPropertyNames(IgcColumnMovingSeparatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcColumnMovingSeparatorComponent._observedAttributesIgcColumnMovingSeparatorComponent = names;
}
return IgcColumnMovingSeparatorComponent._observedAttributesIgcColumnMovingSeparatorComponent;
},
enumerable: false,
configurable: true
});
IgcColumnMovingSeparatorComponent.register = function () {
if (!IgcColumnMovingSeparatorComponent._isElementRegistered) {
IgcColumnMovingSeparatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcColumnMovingSeparatorComponent.htmlTagName, IgcColumnMovingSeparatorComponent);
}
};
Object.defineProperty(IgcColumnMovingSeparatorComponent.prototype, "separatorWidth", {
/**
* Gets or sets the separator width for this column.
*/
get: function () {
return this.i.g3;
},
set: function (v) {
this.i.g3 = +v;
this._a("separatorWidth", this.i.g3);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcColumnMovingSeparatorComponent.prototype, "actualOpacity", {
get: function () {
return this.i.g0;
},
set: function (v) {
this.i.g0 = +v;
this._a("actualOpacity", this.i.g0);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcColumnMovingSeparatorComponent.prototype, "opacity", {
get: function () {
return this.i.g1;
},
set: function (v) {
this.i.g1 = +v;
this._a("opacity", this.i.g1);
},
enumerable: false,
configurable: true
});
IgcColumnMovingSeparatorComponent._observedAttributesIgcColumnMovingSeparatorComponent = null;
IgcColumnMovingSeparatorComponent.htmlTagName = "igc-column-moving-separator";
IgcColumnMovingSeparatorComponent._isElementRegistered = false;
return IgcColumnMovingSeparatorComponent;
}(IgcDefinitionBaseComponent));
export { IgcColumnMovingSeparatorComponent };