intelica-library-ui 0.1.111 → 0.1.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2965,13 +2965,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2965
2965
|
class SkeletonComponent {
|
|
2966
2966
|
skeletonService = inject(SkeletonService);
|
|
2967
2967
|
isLoading = this.skeletonService.isLoading;
|
|
2968
|
+
localLoading = false;
|
|
2969
|
+
show = false;
|
|
2968
2970
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2969
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonComponent, isStandalone: true, selector: "intelica-skeleton", ngImport: i0, template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
2971
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonComponent, isStandalone: true, selector: "intelica-skeleton", inputs: { localLoading: "localLoading", show: "show" }, ngImport: i0, template: "@if((isLoading() && !localLoading) || show){\r\n<ng-content></ng-content>\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
2970
2972
|
}
|
|
2971
2973
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, decorators: [{
|
|
2972
2974
|
type: Component,
|
|
2973
|
-
args: [{ selector: "intelica-skeleton", imports: [CommonModule], template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n" }]
|
|
2974
|
-
}]
|
|
2975
|
+
args: [{ selector: "intelica-skeleton", imports: [CommonModule], template: "@if((isLoading() && !localLoading) || show){\r\n<ng-content></ng-content>\r\n}\r\n" }]
|
|
2976
|
+
}], propDecorators: { localLoading: [{
|
|
2977
|
+
type: Input
|
|
2978
|
+
}], show: [{
|
|
2979
|
+
type: Input
|
|
2980
|
+
}] } });
|
|
2975
2981
|
|
|
2976
2982
|
class SkeletonTableComponent {
|
|
2977
2983
|
/**
|
|
@@ -3279,6 +3285,10 @@ class HtmlToExcelService {
|
|
|
3279
3285
|
const insertedRow = worksheet.addRow(rowValues);
|
|
3280
3286
|
insertedRow.eachCell((cell, colNumber) => {
|
|
3281
3287
|
const col = columns[colNumber - 1];
|
|
3288
|
+
if (col.formatNumber) {
|
|
3289
|
+
cell.numFmt = this.GetNumberFormat(col.formatNumber);
|
|
3290
|
+
cell.value = Number(cell.value);
|
|
3291
|
+
}
|
|
3282
3292
|
cell.alignment = {
|
|
3283
3293
|
vertical: "middle",
|
|
3284
3294
|
horizontal: col.alignHorizontal ?? "left",
|
|
@@ -3473,6 +3483,15 @@ class HtmlToExcelService {
|
|
|
3473
3483
|
}
|
|
3474
3484
|
return letter;
|
|
3475
3485
|
}
|
|
3486
|
+
GetNumberFormat(formatNumber) {
|
|
3487
|
+
const formats = {
|
|
3488
|
+
integer: '#,##0;(#,##0);"-"',
|
|
3489
|
+
decimal: '#,##0.00;(#,##0.00);"-"',
|
|
3490
|
+
percent_2: '#0.00"%";(#0.00"%");"-"',
|
|
3491
|
+
percent_4: '#0.0000"%";(#0.0000"%");"-"',
|
|
3492
|
+
};
|
|
3493
|
+
return formats[formatNumber] || "";
|
|
3494
|
+
}
|
|
3476
3495
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: HtmlToExcelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3477
3496
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: HtmlToExcelService, providedIn: "root" });
|
|
3478
3497
|
}
|