intelica-library-ui 0.1.99 → 0.1.101
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.
- package/fesm2022/intelica-library-ui.mjs +212 -107
- package/fesm2022/intelica-library-ui.mjs.map +1 -1
- package/lib/components/skeleton/skeleton.component.d.ts +7 -0
- package/lib/components/skeleton-table/skeleton-table.component.d.ts +23 -0
- package/lib/pipes/truncate.pipe.d.ts +8 -0
- package/lib/services/skeleton.service.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +27 -18
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
3
|
import { inject, Injectable, signal, Pipe, Component, HostListener, Directive, EventEmitter, Output, Input, forwardRef, TemplateRef, ContentChild, ContentChildren, ViewChild, PLATFORM_ID, Inject } from '@angular/core';
|
|
3
|
-
import { getCookie, Cookies, setCookie } from 'typescript-cookie';
|
|
4
|
-
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
4
|
import { BehaviorSubject, catchError, throwError, from, switchMap, Subject, Subscription } from 'rxjs';
|
|
5
|
+
import { getCookie, Cookies, setCookie } from 'typescript-cookie';
|
|
6
6
|
import Swal from 'sweetalert2';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
@@ -31,6 +31,8 @@ import * as i3$2 from 'primeng/ripple';
|
|
|
31
31
|
import { RippleModule } from 'primeng/ripple';
|
|
32
32
|
import { Dialog } from 'primeng/dialog';
|
|
33
33
|
import * as echarts from 'echarts';
|
|
34
|
+
import * as i1$3 from 'primeng/skeleton';
|
|
35
|
+
import { SkeletonModule } from 'primeng/skeleton';
|
|
34
36
|
import * as XLSX from 'xlsx';
|
|
35
37
|
import { Workbook } from 'exceljs';
|
|
36
38
|
import { saveAs } from 'file-saver';
|
|
@@ -38,6 +40,26 @@ import JSEncrypt from 'jsencrypt';
|
|
|
38
40
|
import Aura from '@primeng/themes/aura';
|
|
39
41
|
import { definePreset } from '@primeng/themes';
|
|
40
42
|
|
|
43
|
+
// import { CookieAttributes } from "typescript-cookie/dist/types";
|
|
44
|
+
const domain = window.location.hostname.split(".").slice(-2).join(".");
|
|
45
|
+
const secure = !domain.includes("localhost");
|
|
46
|
+
const CookieAttributesGeneral = { domain: domain, path: "/", secure: secure };
|
|
47
|
+
|
|
48
|
+
const Color = {
|
|
49
|
+
mastercard: "#ff7f00",
|
|
50
|
+
visa: "#17375E",
|
|
51
|
+
amex: "#348AD5",
|
|
52
|
+
orange: "#ff7f00",
|
|
53
|
+
orangeDark: "#CC4900",
|
|
54
|
+
blue: "#17375E",
|
|
55
|
+
gray: "#D3D3D3",
|
|
56
|
+
gray3: "#a6a5a1",
|
|
57
|
+
gray5: "#e9e9e9",
|
|
58
|
+
};
|
|
59
|
+
const getColor = (name) => {
|
|
60
|
+
return Color[name];
|
|
61
|
+
};
|
|
62
|
+
|
|
41
63
|
class ConfigService {
|
|
42
64
|
Http = inject(HttpClient);
|
|
43
65
|
environment;
|
|
@@ -70,108 +92,6 @@ function InitializeConfigService(confg) {
|
|
|
70
92
|
return () => confg.init();
|
|
71
93
|
}
|
|
72
94
|
|
|
73
|
-
class TermService {
|
|
74
|
-
_http = inject(HttpClient);
|
|
75
|
-
_config = inject(ConfigService);
|
|
76
|
-
GetTerms(languageCode, pageRoot) {
|
|
77
|
-
return this._http.get(`${this._config.environment?.configurationPath}/TermPage/GetPageTerm/${languageCode}/${pageRoot}`);
|
|
78
|
-
}
|
|
79
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
80
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermService, providedIn: "root" });
|
|
81
|
-
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermService, decorators: [{
|
|
83
|
-
type: Injectable,
|
|
84
|
-
args: [{ providedIn: "root" }]
|
|
85
|
-
}] });
|
|
86
|
-
|
|
87
|
-
class GlobalTermService {
|
|
88
|
-
terms = [];
|
|
89
|
-
languageCode = "";
|
|
90
|
-
TermsReady = signal(false);
|
|
91
|
-
PageRoot = "";
|
|
92
|
-
termService = inject(TermService);
|
|
93
|
-
Initialize(pageRoot) {
|
|
94
|
-
let languageCode = getCookie("language") ?? "EN";
|
|
95
|
-
this.PageRoot = pageRoot;
|
|
96
|
-
if (pageRoot == "") {
|
|
97
|
-
this.TermsReady.set(true);
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
this.termService.GetTerms(languageCode, pageRoot).subscribe(response => {
|
|
101
|
-
this.terms = response;
|
|
102
|
-
this.TermsReady.set(true);
|
|
103
|
-
this.SetTerms();
|
|
104
|
-
this.languageCode = languageCode;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
async SetTerms() {
|
|
108
|
-
while (true) {
|
|
109
|
-
await sleep$1(10);
|
|
110
|
-
if (document.querySelectorAll("[data-term]").length > 1)
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
let textsToChange = document.querySelectorAll("[data-term]");
|
|
114
|
-
textsToChange.forEach(async (element) => {
|
|
115
|
-
let dataValue = element.getAttribute("data-term");
|
|
116
|
-
let newText = this.terms.find(x => x.termName == dataValue)?.termValue ?? "";
|
|
117
|
-
element.innerHTML = newText;
|
|
118
|
-
element.setAttribute("placeholder", newText);
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: GlobalTermService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
122
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: GlobalTermService, providedIn: "root" });
|
|
123
|
-
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: GlobalTermService, decorators: [{
|
|
125
|
-
type: Injectable,
|
|
126
|
-
args: [{ providedIn: "root" }]
|
|
127
|
-
}] });
|
|
128
|
-
function sleep$1(ms) {
|
|
129
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// import GlobalTermService from "../services/globalTerm.service";
|
|
133
|
-
class TermPipe {
|
|
134
|
-
globalTermService = inject(GlobalTermService);
|
|
135
|
-
transform(termName, language, mode = 1) {
|
|
136
|
-
let term = this.globalTermService.terms.find(x => x.termName == termName)?.termValue ?? "-";
|
|
137
|
-
if (mode == 2)
|
|
138
|
-
term = term.substring(0, 1);
|
|
139
|
-
if (mode == 3)
|
|
140
|
-
term = term.toUpperCase();
|
|
141
|
-
return term;
|
|
142
|
-
}
|
|
143
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
144
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, isStandalone: true, name: "term" });
|
|
145
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, providedIn: "root" });
|
|
146
|
-
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, decorators: [{
|
|
148
|
-
type: Injectable,
|
|
149
|
-
args: [{ providedIn: "root" }]
|
|
150
|
-
}, {
|
|
151
|
-
type: Pipe,
|
|
152
|
-
args: [{ name: "term" }]
|
|
153
|
-
}] });
|
|
154
|
-
|
|
155
|
-
// import { CookieAttributes } from "typescript-cookie/dist/types";
|
|
156
|
-
const domain = window.location.hostname.split(".").slice(-2).join(".");
|
|
157
|
-
const secure = !domain.includes("localhost");
|
|
158
|
-
const CookieAttributesGeneral = { domain: domain, path: "/", secure: secure };
|
|
159
|
-
|
|
160
|
-
const Color = {
|
|
161
|
-
mastercard: "#ff7f00",
|
|
162
|
-
visa: "#17375E",
|
|
163
|
-
amex: "#348AD5",
|
|
164
|
-
orange: "#ff7f00",
|
|
165
|
-
orangeDark: "#CC4900",
|
|
166
|
-
blue: "#17375E",
|
|
167
|
-
gray: "#D3D3D3",
|
|
168
|
-
gray3: "#a6a5a1",
|
|
169
|
-
gray5: "#e9e9e9",
|
|
170
|
-
};
|
|
171
|
-
const getColor = (name) => {
|
|
172
|
-
return Color[name];
|
|
173
|
-
};
|
|
174
|
-
|
|
175
95
|
class FeatureFlagService {
|
|
176
96
|
_http = inject(HttpClient);
|
|
177
97
|
_configService = inject(ConfigService);
|
|
@@ -389,7 +309,7 @@ class PermissionsService {
|
|
|
389
309
|
constructor() { }
|
|
390
310
|
async canActivate(next, state) {
|
|
391
311
|
while (true) {
|
|
392
|
-
await sleep(10);
|
|
312
|
+
await sleep$1(10);
|
|
393
313
|
if (document.querySelectorAll("[data-security]").length > 0)
|
|
394
314
|
break;
|
|
395
315
|
}
|
|
@@ -415,7 +335,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
415
335
|
providedIn: "root",
|
|
416
336
|
}]
|
|
417
337
|
}], ctorParameters: () => [] });
|
|
418
|
-
function sleep(ms) {
|
|
338
|
+
function sleep$1(ms) {
|
|
419
339
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
420
340
|
}
|
|
421
341
|
const TermGuard = (next, state) => {
|
|
@@ -423,6 +343,111 @@ const TermGuard = (next, state) => {
|
|
|
423
343
|
return true;
|
|
424
344
|
};
|
|
425
345
|
|
|
346
|
+
class TermService {
|
|
347
|
+
_http = inject(HttpClient);
|
|
348
|
+
_config = inject(ConfigService);
|
|
349
|
+
GetTerms(languageCode, pageRoot) {
|
|
350
|
+
return this._http.get(`${this._config.environment?.configurationPath}/TermPage/GetPageTerm/${languageCode}/${pageRoot}`);
|
|
351
|
+
}
|
|
352
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
353
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermService, providedIn: "root" });
|
|
354
|
+
}
|
|
355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermService, decorators: [{
|
|
356
|
+
type: Injectable,
|
|
357
|
+
args: [{ providedIn: "root" }]
|
|
358
|
+
}] });
|
|
359
|
+
|
|
360
|
+
class GlobalTermService {
|
|
361
|
+
terms = [];
|
|
362
|
+
languageCode = "";
|
|
363
|
+
TermsReady = signal(false);
|
|
364
|
+
PageRoot = "";
|
|
365
|
+
termService = inject(TermService);
|
|
366
|
+
Initialize(pageRoot) {
|
|
367
|
+
let languageCode = getCookie("language") ?? "EN";
|
|
368
|
+
this.PageRoot = pageRoot;
|
|
369
|
+
if (pageRoot == "") {
|
|
370
|
+
this.TermsReady.set(true);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.termService.GetTerms(languageCode, pageRoot).subscribe(response => {
|
|
374
|
+
this.terms = response;
|
|
375
|
+
this.TermsReady.set(true);
|
|
376
|
+
this.SetTerms();
|
|
377
|
+
this.languageCode = languageCode;
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
async SetTerms() {
|
|
381
|
+
while (true) {
|
|
382
|
+
await sleep(10);
|
|
383
|
+
if (document.querySelectorAll("[data-term]").length > 1)
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
let textsToChange = document.querySelectorAll("[data-term]");
|
|
387
|
+
textsToChange.forEach(async (element) => {
|
|
388
|
+
let dataValue = element.getAttribute("data-term");
|
|
389
|
+
let newText = this.terms.find(x => x.termName == dataValue)?.termValue ?? "";
|
|
390
|
+
element.innerHTML = newText;
|
|
391
|
+
element.setAttribute("placeholder", newText);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: GlobalTermService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
395
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: GlobalTermService, providedIn: "root" });
|
|
396
|
+
}
|
|
397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: GlobalTermService, decorators: [{
|
|
398
|
+
type: Injectable,
|
|
399
|
+
args: [{ providedIn: "root" }]
|
|
400
|
+
}] });
|
|
401
|
+
function sleep(ms) {
|
|
402
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// import GlobalTermService from "../services/globalTerm.service";
|
|
406
|
+
class TermPipe {
|
|
407
|
+
globalTermService = inject(GlobalTermService);
|
|
408
|
+
transform(termName, language, mode = 1) {
|
|
409
|
+
let term = this.globalTermService.terms.find(x => x.termName == termName)?.termValue ?? "-";
|
|
410
|
+
if (mode == 2)
|
|
411
|
+
term = term.substring(0, 1);
|
|
412
|
+
if (mode == 3)
|
|
413
|
+
term = term.toUpperCase();
|
|
414
|
+
return term;
|
|
415
|
+
}
|
|
416
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
417
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, isStandalone: true, name: "term" });
|
|
418
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, providedIn: "root" });
|
|
419
|
+
}
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TermPipe, decorators: [{
|
|
421
|
+
type: Injectable,
|
|
422
|
+
args: [{ providedIn: "root" }]
|
|
423
|
+
}, {
|
|
424
|
+
type: Pipe,
|
|
425
|
+
args: [{ name: "term" }]
|
|
426
|
+
}] });
|
|
427
|
+
|
|
428
|
+
class TruncatePipe {
|
|
429
|
+
transform(value, size = 15, original = false) {
|
|
430
|
+
if (!value)
|
|
431
|
+
return value;
|
|
432
|
+
if (value.length <= size)
|
|
433
|
+
return value;
|
|
434
|
+
let truncateString = value.substring(0, size);
|
|
435
|
+
return !original ? `${truncateString}...` : truncateString.toUpperCase();
|
|
436
|
+
}
|
|
437
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
438
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: TruncatePipe, isStandalone: true, name: "truncate" });
|
|
439
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TruncatePipe, providedIn: "root" });
|
|
440
|
+
}
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TruncatePipe, decorators: [{
|
|
442
|
+
type: Injectable,
|
|
443
|
+
args: [{ providedIn: "root" }]
|
|
444
|
+
}, {
|
|
445
|
+
type: Pipe,
|
|
446
|
+
args: [{
|
|
447
|
+
name: "truncate",
|
|
448
|
+
}]
|
|
449
|
+
}] });
|
|
450
|
+
|
|
426
451
|
class SpinnerComponent {
|
|
427
452
|
spinerService = inject(SpinnerService);
|
|
428
453
|
isLoading = this.spinerService.isLoading;
|
|
@@ -2748,6 +2773,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
2748
2773
|
args: ["document:click", ["$event"]]
|
|
2749
2774
|
}] } });
|
|
2750
2775
|
|
|
2776
|
+
class SkeletonService {
|
|
2777
|
+
isLoading = signal(false);
|
|
2778
|
+
hide() {
|
|
2779
|
+
this.isLoading.set(false);
|
|
2780
|
+
}
|
|
2781
|
+
show() {
|
|
2782
|
+
this.isLoading.set(true);
|
|
2783
|
+
}
|
|
2784
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2785
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonService, providedIn: "root" });
|
|
2786
|
+
}
|
|
2787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonService, decorators: [{
|
|
2788
|
+
type: Injectable,
|
|
2789
|
+
args: [{ providedIn: "root" }]
|
|
2790
|
+
}] });
|
|
2791
|
+
|
|
2792
|
+
class SkeletonComponent {
|
|
2793
|
+
skeletonService = inject(SkeletonService);
|
|
2794
|
+
isLoading = this.skeletonService.isLoading;
|
|
2795
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2796
|
+
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 }] });
|
|
2797
|
+
}
|
|
2798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonComponent, decorators: [{
|
|
2799
|
+
type: Component,
|
|
2800
|
+
args: [{ selector: "intelica-skeleton", imports: [CommonModule], template: "@if(isLoading()){\r\n<ng-content></ng-content>\r\n}\r\n" }]
|
|
2801
|
+
}] });
|
|
2802
|
+
|
|
2803
|
+
class SkeletonTableComponent {
|
|
2804
|
+
/**
|
|
2805
|
+
* @description number of rows to display
|
|
2806
|
+
* @default 6
|
|
2807
|
+
* @type number
|
|
2808
|
+
* @example <intelica-skeleton-table [rows]="6"></intelica-skeleton-table>
|
|
2809
|
+
*/
|
|
2810
|
+
rows = 6;
|
|
2811
|
+
/**
|
|
2812
|
+
* @description number of columns to display
|
|
2813
|
+
* @default 6
|
|
2814
|
+
* @type number
|
|
2815
|
+
* @example <intelica-skeleton-table [columns]="6"></intelica-skeleton-table>
|
|
2816
|
+
*/
|
|
2817
|
+
columns = 6;
|
|
2818
|
+
columnSizes = [];
|
|
2819
|
+
ngOnInit() {
|
|
2820
|
+
const baseSize = 12 / this.columns;
|
|
2821
|
+
this.columnSizes = Array.from({ length: this.columns }, (_, i) => {
|
|
2822
|
+
return `col-${baseSize}`;
|
|
2823
|
+
});
|
|
2824
|
+
}
|
|
2825
|
+
getRows() {
|
|
2826
|
+
return new Array(this.rows);
|
|
2827
|
+
}
|
|
2828
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2829
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: SkeletonTableComponent, isStandalone: true, selector: "intelica-skeleton-table", inputs: { rows: "rows", columns: "columns" }, ngImport: i0, template: "<div class=\"skeletonTable\">\r\n\t<div class=\"mb-2 row justify-content-between\">\r\n\t\t<div class=\"col-1 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t\t<div class=\"col-3 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-12 px-0 mb-2\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'4rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t@for (row of getRows(); track $index) {\r\n\t<div class=\"row borderBottomRow\">\r\n\t\t@for (column of columnSizes; track $index) {\r\n\t\t<div class=\"{{ column }} px-0\">\r\n\t\t\t<div class=\"bodyPaddingTable\">\r\n\t\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'2rem'\"></p-skeleton>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\t}\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SkeletonModule }, { kind: "component", type: i1$3.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }] });
|
|
2830
|
+
}
|
|
2831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SkeletonTableComponent, decorators: [{
|
|
2832
|
+
type: Component,
|
|
2833
|
+
args: [{ selector: "intelica-skeleton-table", imports: [CommonModule, SkeletonModule], template: "<div class=\"skeletonTable\">\r\n\t<div class=\"mb-2 row justify-content-between\">\r\n\t\t<div class=\"col-1 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t\t<div class=\"col-3 px-0\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'3rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-12 px-0 mb-2\">\r\n\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'4rem'\"></p-skeleton>\r\n\t\t</div>\r\n\t</div>\r\n\t@for (row of getRows(); track $index) {\r\n\t<div class=\"row borderBottomRow\">\r\n\t\t@for (column of columnSizes; track $index) {\r\n\t\t<div class=\"{{ column }} px-0\">\r\n\t\t\t<div class=\"bodyPaddingTable\">\r\n\t\t\t\t<p-skeleton class=\"prSkeleton\" [height]=\"'2rem'\"></p-skeleton>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\t}\r\n</div>\r\n" }]
|
|
2834
|
+
}], propDecorators: { rows: [{
|
|
2835
|
+
type: Input
|
|
2836
|
+
}], columns: [{
|
|
2837
|
+
type: Input
|
|
2838
|
+
}] } });
|
|
2839
|
+
|
|
2751
2840
|
class HtmlToExcelService {
|
|
2752
2841
|
ExportTOExcel(idTabla, html, filename, tabname, extension) {
|
|
2753
2842
|
let Table = document.getElementById(idTabla);
|
|
@@ -4145,6 +4234,22 @@ const IntelicaTheme = definePreset(Aura, {
|
|
|
4145
4234
|
},
|
|
4146
4235
|
},
|
|
4147
4236
|
components: {
|
|
4237
|
+
skeleton: {
|
|
4238
|
+
colorScheme: {
|
|
4239
|
+
light: {
|
|
4240
|
+
root: {
|
|
4241
|
+
background: "{surface.200}",
|
|
4242
|
+
animationBackground: "rgba(0,0,0,0.4)",
|
|
4243
|
+
},
|
|
4244
|
+
},
|
|
4245
|
+
dark: {
|
|
4246
|
+
root: {
|
|
4247
|
+
background: "rgba(0, 0, 0, 0.06)",
|
|
4248
|
+
animationBackground: "rgba(0, 0, 0, 0.04)",
|
|
4249
|
+
},
|
|
4250
|
+
},
|
|
4251
|
+
},
|
|
4252
|
+
},
|
|
4148
4253
|
accordion: {
|
|
4149
4254
|
root: {
|
|
4150
4255
|
transitionDuration: "{transition.duration}",
|
|
@@ -5970,5 +6075,5 @@ const IntelicaTheme = definePreset(Aura, {
|
|
|
5970
6075
|
* Generated bundle index. Do not edit.
|
|
5971
6076
|
*/
|
|
5972
6077
|
|
|
5973
|
-
export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TemplateMenuComponent, TermGuard, TermPipe, TermService, decryptData, encryptData, getColor };
|
|
6078
|
+
export { ActionDirective, ActionsMenuComponent, ButtonSplitComponent, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DynamicInputValidation, EchartComponent, EchartService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaTheme, ItemSplitDirective, LanguageService, ModalDialogComponent, OrderConstants, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RowResumenComponent, SearchComponent, SharedService, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TemplateMenuComponent, TermGuard, TermPipe, TermService, TruncatePipe, decryptData, encryptData, getColor };
|
|
5974
6079
|
//# sourceMappingURL=intelica-library-ui.mjs.map
|