igniteui-angular-spreadsheet
Version:
Ignite UI Angular spreadsheet component for displaying and editing Microsoft Excel workbooks for modern web apps.
87 lines (86 loc) • 3.7 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, toNullable, Boolean_$type, Nullable$1, Number_$type, String_$type, typeGetValue, markType } from "igniteui-angular-core";
import { WorkbookColorInfo } from "igniteui-angular-excel";
import { FontSuperscriptSubscriptStyle_$type } from "igniteui-angular-excel";
import { FontUnderlineStyle_$type } from "igniteui-angular-excel";
import { WorksheetCellFormatData } from "igniteui-angular-excel";
import { EqualityComparer$1 } from "igniteui-angular-core";
import { stringEmpty } from "igniteui-angular-core";
/**
* @hidden
*/
export let EditModeWorkbookFontInfo = /*@__PURE__*/ (() => {
class EditModeWorkbookFontInfo extends Base {
constructor() {
super(...arguments);
this.e = toNullable(Boolean_$type, null);
this.c = null;
this.d = 0;
this.f = toNullable(Boolean_$type, null);
this.i = null;
this.g = toNullable(Boolean_$type, null);
this.a = 0;
this.b = 0;
}
h(a) {
let b = null;
let c = this.k(Nullable$1.$.specialize(Boolean_$type), this.e, a.e, "Bold", b);
this.e = c.p0;
b = c.p3;
let d = this.k(WorkbookColorInfo.$, this.c, a.c, "ColorInfo", b);
this.c = d.p0;
b = d.p3;
let e = this.k(Number_$type, this.d, a.d, "Height", b);
this.d = e.p0;
b = e.p3;
let f = this.k(Nullable$1.$.specialize(Boolean_$type), this.f, a.f, "Italic", b);
this.f = f.p0;
b = f.p3;
let g = this.k(String_$type, this.i, a.i, "Name", b);
this.i = g.p0;
b = g.p3;
let h = this.k(Nullable$1.$.specialize(Boolean_$type), this.g, a.g, "Strikeout", b);
this.g = h.p0;
b = h.p3;
let i = this.k(FontSuperscriptSubscriptStyle_$type, this.a, a.a, "SuperscriptSubscriptStyle", b);
this.a = i.p0;
b = i.p3;
let j = this.k(FontUnderlineStyle_$type, this.b, a.b, "UnderlineStyle", b);
this.b = j.p0;
b = j.p3;
return b;
}
j() {
this.e = toNullable(Boolean_$type, false);
this.c = WorkbookColorInfo.automatic;
this.d = typeGetValue(WorksheetCellFormatData._da(512));
this.f = toNullable(Boolean_$type, false);
this.i = WorksheetCellFormatData._da(2048);
this.g = toNullable(Boolean_$type, false);
this.a = 0;
this.b = 0;
}
k($t, a, b, c, d) {
if (!EqualityComparer$1.defaultEqualityComparerValue($t).equalsC(a, b)) {
a = b;
if (d == null) {
d = c;
}
else {
d = stringEmpty();
}
}
return {
p0: a,
p3: d
};
}
}
EditModeWorkbookFontInfo.$t = markType(EditModeWorkbookFontInfo, 'EditModeWorkbookFontInfo');
return EditModeWorkbookFontInfo;
})();