igniteui-react-grids
Version:
Ignite UI React grid components.
165 lines (160 loc) • 4.91 kB
JavaScript
import { IgrColumnPropertySetter } from "./igr-column-property-setter";
import { ResponsivePhase as ResponsivePhase_internal } from "./ResponsivePhase";
/**
* Describes one phase of a responsive state to apply to the grid.
*/
var IgrResponsivePhase = /** @class */ /*@__PURE__*/ (function () {
function IgrResponsivePhase() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrResponsivePhase.prototype.createImplementation = function () {
return new ResponsivePhase_internal();
};
Object.defineProperty(IgrResponsivePhase.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrResponsivePhase.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrResponsivePhase.prototype.onImplementationCreated = function () {
};
IgrResponsivePhase.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrResponsivePhase.prototype, "name", {
/**
* The name of this responsive phase
*/
get: function () {
return this.i.k;
},
set: function (v) {
this.i.k = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrResponsivePhase.prototype, "delayMilliseconds", {
/**
* The amount of time to delay the responsive phase from starting, in milliseconds
*/
get: function () {
return this.i.i;
},
set: function (v) {
this.i.i = +v;
},
enumerable: false,
configurable: true
});
IgrResponsivePhase.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
};
/**
* Adds a column property setter to the phase.
* @param setter * The setter to add.
*/
IgrResponsivePhase.prototype.addColumnPropertySetter = function (setter) {
var iv = this.i.g((setter == null ? null : setter.i));
var ret = null;
if (iv && iv.externalObject) {
ret = iv.externalObject;
}
else {
if (iv) {
var e = new IgrResponsivePhase();
e._implementation = iv;
iv.externalObject = e;
ret = e;
}
}
return ret;
};
/**
* Adds a column property setter to the phase, and returns it.
*/
IgrResponsivePhase.prototype.columnPropertySetter = function () {
var iv = this.i.c();
var ret = null;
if (iv && iv.externalObject) {
ret = iv.externalObject;
}
else {
if (iv) {
var e = new IgrColumnPropertySetter();
e._implementation = iv;
iv.externalObject = e;
ret = e;
}
}
return ret;
};
/**
* Adds a column exchanger the the phase.
* @param exchanger * The exchanger to add.
*/
IgrResponsivePhase.prototype.addColumnExchanger = function (exchanger) {
var iv = this.i.f((exchanger == null ? null : exchanger.i));
var ret = null;
if (iv && iv.externalObject) {
ret = iv.externalObject;
}
else {
if (iv) {
var e = new IgrResponsivePhase();
e._implementation = iv;
iv.externalObject = e;
ret = e;
}
}
return ret;
};
/**
* Adds a column exchanger to the phase and returns it.
*/
IgrResponsivePhase.prototype.columnExchanger = function () {
var iv = this.i.h();
var ret = null;
if (iv && iv.externalObject) {
ret = iv.externalObject;
}
else {
if (iv) {
var e = new IgrResponsivePhase();
e._implementation = iv;
iv.externalObject = e;
ret = e;
}
}
return ret;
};
return IgrResponsivePhase;
}());
export { IgrResponsivePhase };