igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
61 lines (60 loc) • 2.01 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, String_$type, Boolean_$type, markType } from "./type";
import { List$1 } from "./List$1";
import { Dictionary$2 } from "./Dictionary$2";
/**
* @hidden
*/
export let Description = /*@__PURE__*/ (() => {
class Description extends Base {
constructor() {
super(...arguments);
this.b = false;
this.e = new Dictionary$2(String_$type, Boolean_$type, 0);
this.f = new List$1(String_$type, 0);
this.g = null;
}
isDescriptionModified() {
return this.b;
}
clearIsDescriptionModified() {
this.b = false;
}
a() {
if (this.f.count == 0) {
this.f.add("Type");
}
return this.f.toArray();
}
j(a) {
this.b = true;
if (!this.e.containsKey(a)) {
if (this.f.count == 0) {
this.f.add("Type");
}
this.f.add(a);
}
this.e.item(a, true);
}
isDirty(a) {
if (this.e.containsKey(a)) {
return this.e.item(a);
}
return false;
}
get name() {
return this.g;
}
set name(a) {
this.g = a;
this.j("Name");
}
}
Description.$t = markType(Description, 'Description');
return Description;
})();