bit-ng-library 20.1.13 → 21.0.0
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/README.md +745 -741
- package/fesm2022/bit-ng-library.mjs +802 -810
- package/fesm2022/bit-ng-library.mjs.map +1 -1
- package/package.json +5 -4
- package/{index.d.ts → types/bit-ng-library.d.ts} +416 -417
- package/types/bit-ng-library.d.ts.map +1 -0
- package/index.d.ts.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Subject, BehaviorSubject, lastValueFrom, of, ReplaySubject, combineLatest, forkJoin, throwError } from 'rxjs';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, inject, signal, computed, DestroyRef, Directive, input, ChangeDetectionStrategy, Component, Pipe, model, output, linkedSignal, ElementRef, Renderer2, HostListener, viewChild, forwardRef, contentChild, TemplateRef, effect, NgModule } from '@angular/core';
|
|
3
|
+
import { Injectable, inject, signal, computed, DestroyRef, Directive, input, ChangeDetectionStrategy, Component, Pipe, model, output, linkedSignal, ElementRef, Renderer2, HostListener, viewChild, ChangeDetectorRef, forwardRef, contentChild, TemplateRef, effect, NgModule } from '@angular/core';
|
|
4
4
|
import { map, mergeMap, tap, takeUntil, filter, concatMap, take, catchError, finalize } from 'rxjs/operators';
|
|
5
5
|
import { PrimeNG } from 'primeng/config';
|
|
6
|
-
import Aura from '@
|
|
6
|
+
import Aura from '@primeuix/themes/aura';
|
|
7
7
|
import * as i3 from '@jsverse/transloco';
|
|
8
8
|
import { TranslocoService, TranslocoModule, TRANSLOCO_SCOPE } from '@jsverse/transloco';
|
|
9
9
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import * as i1$1 from '@angular/forms';
|
|
12
|
-
import { FormGroup,
|
|
12
|
+
import { FormGroup, FormControl, FormArray, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
13
13
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
14
14
|
import { saveAs } from 'file-saver';
|
|
15
15
|
import * as i2 from '@angular/common';
|
|
@@ -270,10 +270,10 @@ class StorageService {
|
|
|
270
270
|
}
|
|
271
271
|
return object;
|
|
272
272
|
}
|
|
273
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
274
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService }); }
|
|
275
275
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService, decorators: [{
|
|
277
277
|
type: Injectable
|
|
278
278
|
}], ctorParameters: () => [] });
|
|
279
279
|
|
|
@@ -285,9 +285,9 @@ class ThemeFBitService {
|
|
|
285
285
|
constructor() {
|
|
286
286
|
this.primeNgConfig = inject(PrimeNG);
|
|
287
287
|
this.storageService = inject(StorageService);
|
|
288
|
-
this.themeList$ = signal([ThemeFBitService.THEME_CAIB, ThemeFBitService.THEME_PRIME, ThemeFBitService.THEME_MATERIAL, ThemeFBitService.THEME_NORA], ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
289
|
-
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
290
|
-
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : []));
|
|
288
|
+
this.themeList$ = signal([ThemeFBitService.THEME_CAIB, ThemeFBitService.THEME_PRIME, ThemeFBitService.THEME_MATERIAL, ThemeFBitService.THEME_NORA], ...(ngDevMode ? [{ debugName: "themeList$" }] : /* istanbul ignore next */ []));
|
|
289
|
+
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : /* istanbul ignore next */ []));
|
|
290
|
+
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : /* istanbul ignore next */ []));
|
|
291
291
|
this.themeOptions = {
|
|
292
292
|
darkModeSelector: ".my-app-dark" //es el selector que cuando lo añadamos como clase al index.html hará que se active el modo oscuro
|
|
293
293
|
};
|
|
@@ -345,10 +345,10 @@ class ThemeFBitService {
|
|
|
345
345
|
element.classList.toggle("my-app-dark");
|
|
346
346
|
console.log("toggleDarkMode");
|
|
347
347
|
}
|
|
348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
349
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
349
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService }); }
|
|
350
350
|
}
|
|
351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService, decorators: [{
|
|
352
352
|
type: Injectable
|
|
353
353
|
}], ctorParameters: () => [] });
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ class LocaleService {
|
|
|
360
360
|
{ label: "Català", value: "ca" }
|
|
361
361
|
];
|
|
362
362
|
// the default locale
|
|
363
|
-
this.locale$ = signal("ca", ...(ngDevMode ? [{ debugName: "locale$" }] : []));
|
|
363
|
+
this.locale$ = signal("ca", ...(ngDevMode ? [{ debugName: "locale$" }] : /* istanbul ignore next */ []));
|
|
364
364
|
this.storageService = inject(StorageService);
|
|
365
365
|
this.translateService = inject(TranslateService);
|
|
366
366
|
console.log("construyendo LocaleService");
|
|
@@ -374,10 +374,10 @@ class LocaleService {
|
|
|
374
374
|
this.storageService.setData(StorageService.LANGUAGE, this.locale$());
|
|
375
375
|
this.translateService.setActiveLang(this.locale$());
|
|
376
376
|
}
|
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
378
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
377
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
378
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, providedIn: "root" }); }
|
|
379
379
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, decorators: [{
|
|
381
381
|
type: Injectable,
|
|
382
382
|
args: [{
|
|
383
383
|
providedIn: "root"
|
|
@@ -387,10 +387,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
387
387
|
class AyudaService {
|
|
388
388
|
static { this.AYUDAS = []; } // Inicializar desde la aplicacion cliente
|
|
389
389
|
constructor() {
|
|
390
|
-
this.mostrar = signal(null, ...(ngDevMode ? [{ debugName: "mostrar" }] : []));
|
|
390
|
+
this.mostrar = signal(null, ...(ngDevMode ? [{ debugName: "mostrar" }] : /* istanbul ignore next */ []));
|
|
391
391
|
this.themeFbitService = inject(ThemeFBitService);
|
|
392
392
|
this.localeService = inject(LocaleService);
|
|
393
|
-
this.baseHelpUrl$ = computed(() => `assets/docshelp/${this.localeService.locale$()}/index.html?darkMode=${this.themeFbitService.darkMode$()}`, ...(ngDevMode ? [{ debugName: "baseHelpUrl$" }] : []));
|
|
393
|
+
this.baseHelpUrl$ = computed(() => `assets/docshelp/${this.localeService.locale$()}/index.html?darkMode=${this.themeFbitService.darkMode$()}`, ...(ngDevMode ? [{ debugName: "baseHelpUrl$" }] : /* istanbul ignore next */ []));
|
|
394
394
|
this.loadAyudas();
|
|
395
395
|
}
|
|
396
396
|
// procesa el fichero app.ayudas.json y crea el mapa para acceder luego directamente por clave
|
|
@@ -414,10 +414,10 @@ class AyudaService {
|
|
|
414
414
|
console.warn(`No existe ayuda para la clave [${key}]`);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
418
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
417
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
418
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, providedIn: "root" }); }
|
|
419
419
|
}
|
|
420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, decorators: [{
|
|
421
421
|
type: Injectable,
|
|
422
422
|
args: [{ providedIn: "root" }]
|
|
423
423
|
}], ctorParameters: () => [] });
|
|
@@ -497,10 +497,10 @@ class BitMessageService {
|
|
|
497
497
|
hideErrorsPanel() {
|
|
498
498
|
this.observableErrorsSource.next(null);
|
|
499
499
|
}
|
|
500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
501
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, providedIn: "root" }); }
|
|
502
502
|
}
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, decorators: [{
|
|
504
504
|
type: Injectable,
|
|
505
505
|
args: [{ providedIn: "root" }]
|
|
506
506
|
}], ctorParameters: () => [] });
|
|
@@ -521,7 +521,7 @@ class GeneralUtils {
|
|
|
521
521
|
static { this.FORMAT_SHORT_SECONDS_TIME = "HH:mm:ss"; }
|
|
522
522
|
constructor() {
|
|
523
523
|
this.observableLoadingSource = new Subject();
|
|
524
|
-
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
524
|
+
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
525
525
|
console.log("GeneralUtils constructor");
|
|
526
526
|
this.observableLoading = this.observableLoadingSource.asObservable();
|
|
527
527
|
}
|
|
@@ -649,10 +649,10 @@ class GeneralUtils {
|
|
|
649
649
|
}
|
|
650
650
|
return "-";
|
|
651
651
|
}
|
|
652
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
653
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
653
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, providedIn: "root" }); }
|
|
654
654
|
}
|
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, decorators: [{
|
|
656
656
|
type: Injectable,
|
|
657
657
|
args: [{ providedIn: "root" }]
|
|
658
658
|
}], ctorParameters: () => [] });
|
|
@@ -710,10 +710,10 @@ class TranslateService {
|
|
|
710
710
|
let lang = this.translocoService.getActiveLang();
|
|
711
711
|
return lang;
|
|
712
712
|
}
|
|
713
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
714
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
713
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
714
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, providedIn: "root" }); }
|
|
715
715
|
}
|
|
716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, decorators: [{
|
|
717
717
|
type: Injectable,
|
|
718
718
|
args: [{ providedIn: "root" }]
|
|
719
719
|
}], ctorParameters: () => [] });
|
|
@@ -855,10 +855,10 @@ class HttpUtilsService {
|
|
|
855
855
|
}
|
|
856
856
|
return httpHeaders;
|
|
857
857
|
}
|
|
858
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
859
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
858
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
859
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, providedIn: "root" }); }
|
|
860
860
|
}
|
|
861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, decorators: [{
|
|
862
862
|
type: Injectable,
|
|
863
863
|
args: [{ providedIn: "root" }]
|
|
864
864
|
}], ctorParameters: () => [] });
|
|
@@ -1312,13 +1312,13 @@ class CustomValidators {
|
|
|
1312
1312
|
// es un formulario anidado, seguimos bajando recursivamente
|
|
1313
1313
|
mensajes = mensajes.concat(CustomValidators.validateForm(control, controlLabel));
|
|
1314
1314
|
}
|
|
1315
|
-
else if (control instanceof
|
|
1315
|
+
else if (control instanceof FormControl) {
|
|
1316
1316
|
// es un campo final, añadimos sus mensajes de error
|
|
1317
1317
|
for (let errorKey in control.errors) {
|
|
1318
1318
|
mensajes.push({ prefixes: controlLabel, errorMessage: CustomValidators.config[errorKey] });
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
else if (control instanceof
|
|
1321
|
+
else if (control instanceof FormArray) {
|
|
1322
1322
|
// es una lista de controles anidada, la recorremos
|
|
1323
1323
|
control.controls &&
|
|
1324
1324
|
control.controls.forEach((arrControl, index) => {
|
|
@@ -1327,7 +1327,7 @@ class CustomValidators {
|
|
|
1327
1327
|
// es una lista de FormGroups, bajamos a ellos recursivamente
|
|
1328
1328
|
mensajes = mensajes.concat(CustomValidators.validateForm(arrControl, arrControlLabel));
|
|
1329
1329
|
}
|
|
1330
|
-
else if (arrControl instanceof
|
|
1330
|
+
else if (arrControl instanceof FormControl) {
|
|
1331
1331
|
// es una lista de FormControls, los tratamos desde aquí
|
|
1332
1332
|
for (let errorKey in control.errors) {
|
|
1333
1333
|
mensajes.push({ prefixes: arrControlLabel, errorMessage: CustomValidators.config[errorKey] });
|
|
@@ -1645,10 +1645,10 @@ class DateUtils {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
return "-";
|
|
1647
1647
|
}
|
|
1648
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1649
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1648
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1649
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, providedIn: "root" }); }
|
|
1650
1650
|
}
|
|
1651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, decorators: [{
|
|
1652
1652
|
type: Injectable,
|
|
1653
1653
|
args: [{ providedIn: "root" }]
|
|
1654
1654
|
}], ctorParameters: () => [] });
|
|
@@ -1662,10 +1662,10 @@ class DomainService {
|
|
|
1662
1662
|
return domain && domain[lang] ? of(domain[lang]) : of([]);
|
|
1663
1663
|
})), { injector: injector });
|
|
1664
1664
|
}
|
|
1665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1666
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1665
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1666
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, providedIn: "root" }); }
|
|
1667
1667
|
}
|
|
1668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, decorators: [{
|
|
1669
1669
|
type: Injectable,
|
|
1670
1670
|
args: [{ providedIn: "root" }]
|
|
1671
1671
|
}] });
|
|
@@ -1717,10 +1717,10 @@ class DownloadService {
|
|
|
1717
1717
|
this.generalUtils.stopLoading();
|
|
1718
1718
|
}, () => this.generalUtils.stopLoading());
|
|
1719
1719
|
}
|
|
1720
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1721
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, providedIn: "root" }); }
|
|
1722
1722
|
}
|
|
1723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, decorators: [{
|
|
1724
1724
|
type: Injectable,
|
|
1725
1725
|
args: [{
|
|
1726
1726
|
providedIn: "root"
|
|
@@ -1747,10 +1747,10 @@ class FocusService {
|
|
|
1747
1747
|
//console.log(`returning focus on ${this.focused}`);
|
|
1748
1748
|
return this.focused;
|
|
1749
1749
|
}
|
|
1750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1751
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1750
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1751
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, providedIn: "root" }); }
|
|
1752
1752
|
}
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, decorators: [{
|
|
1754
1754
|
type: Injectable,
|
|
1755
1755
|
args: [{ providedIn: "root" }]
|
|
1756
1756
|
}] });
|
|
@@ -1776,10 +1776,10 @@ class SessionSharedService {
|
|
|
1776
1776
|
// console.log('shared set', key, value);
|
|
1777
1777
|
this.data.set(key, value);
|
|
1778
1778
|
}
|
|
1779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1780
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1780
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, providedIn: "root" }); }
|
|
1781
1781
|
}
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, decorators: [{
|
|
1783
1783
|
type: Injectable,
|
|
1784
1784
|
args: [{ providedIn: "root" }]
|
|
1785
1785
|
}], ctorParameters: () => [] });
|
|
@@ -1792,10 +1792,10 @@ class TableViewService {
|
|
|
1792
1792
|
sendExportMessage() {
|
|
1793
1793
|
this.observableExportSource.next(true);
|
|
1794
1794
|
}
|
|
1795
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1796
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1796
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, providedIn: "root" }); }
|
|
1797
1797
|
}
|
|
1798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, decorators: [{
|
|
1799
1799
|
type: Injectable,
|
|
1800
1800
|
args: [{ providedIn: "root" }]
|
|
1801
1801
|
}], ctorParameters: () => [] });
|
|
@@ -1814,10 +1814,10 @@ class ToolbarService {
|
|
|
1814
1814
|
toolbar.componentId = componentId;
|
|
1815
1815
|
this.observableToolbarSource.next(toolbar);
|
|
1816
1816
|
}
|
|
1817
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1818
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1817
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1818
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, providedIn: "root" }); }
|
|
1819
1819
|
}
|
|
1820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, decorators: [{
|
|
1821
1821
|
type: Injectable,
|
|
1822
1822
|
args: [{ providedIn: "root" }]
|
|
1823
1823
|
}], ctorParameters: () => [] });
|
|
@@ -1865,17 +1865,17 @@ class UploadService {
|
|
|
1865
1865
|
getUrlDownloadFile(id) {
|
|
1866
1866
|
return `${this.DOWNLOAD_URL}${id}`;
|
|
1867
1867
|
}
|
|
1868
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1869
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1869
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, providedIn: "root" }); }
|
|
1870
1870
|
}
|
|
1871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, decorators: [{
|
|
1872
1872
|
type: Injectable,
|
|
1873
1873
|
args: [{ providedIn: "root" }]
|
|
1874
1874
|
}], ctorParameters: () => [] });
|
|
1875
1875
|
|
|
1876
1876
|
class ClearItemsService {
|
|
1877
1877
|
constructor() {
|
|
1878
|
-
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : []));
|
|
1878
|
+
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : /* istanbul ignore next */ []));
|
|
1879
1879
|
}
|
|
1880
1880
|
setClearItems(value) {
|
|
1881
1881
|
this.clearItems.set(value);
|
|
@@ -1883,10 +1883,10 @@ class ClearItemsService {
|
|
|
1883
1883
|
getClearItems() {
|
|
1884
1884
|
return this.clearItems;
|
|
1885
1885
|
}
|
|
1886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1887
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1886
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1887
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService }); }
|
|
1888
1888
|
}
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService, decorators: [{
|
|
1890
1890
|
type: Injectable
|
|
1891
1891
|
}], ctorParameters: () => [] });
|
|
1892
1892
|
|
|
@@ -1903,10 +1903,10 @@ class BaseComponent {
|
|
|
1903
1903
|
getHelpSectionUrl(section) {
|
|
1904
1904
|
return this.ayudaService.baseHelpUrl$() + '#/' + section + "/";
|
|
1905
1905
|
}
|
|
1906
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1907
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1906
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1907
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BaseComponent, isStandalone: true, ngImport: i0 }); }
|
|
1908
1908
|
}
|
|
1909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1910
1910
|
type: Directive
|
|
1911
1911
|
}] });
|
|
1912
1912
|
|
|
@@ -2388,7 +2388,7 @@ function makeToolbarChildList(enableDelete) {
|
|
|
2388
2388
|
class BitBreadCrumbComponent {
|
|
2389
2389
|
constructor() {
|
|
2390
2390
|
this.router = inject(Router);
|
|
2391
|
-
this.bc = input([], ...(ngDevMode ?
|
|
2391
|
+
this.bc = input([], { ...(ngDevMode ? { debugName: "bc" } : /* istanbul ignore next */ {}), alias: "breadcrumb" });
|
|
2392
2392
|
}
|
|
2393
2393
|
/** Comprobamos si los datos de entrada no están definidos para inicializarlos en blanco */
|
|
2394
2394
|
ngOnInit() {
|
|
@@ -2406,40 +2406,40 @@ class BitBreadCrumbComponent {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
return false; //para evitar que navegue al href="#"
|
|
2408
2408
|
}
|
|
2409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2410
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2411
|
-
<ul class="breadcrumb">
|
|
2412
|
-
@for (path of bc(); track path; let i = $index) {
|
|
2413
|
-
<li [class.active]="i == bc().length - 1">
|
|
2414
|
-
@if (i < bc().length - 1 && path.url) {
|
|
2415
|
-
<a class="breadcrumb-item" (click)="goAddress(path)" href="#">{{ "breadcrumb." + path.label | transloco }}</a>
|
|
2416
|
-
}
|
|
2417
|
-
@if (i == bc().length - 1 || !path.url) {
|
|
2418
|
-
<span class="breadcrumb-item active">{{ "breadcrumb." + path.label | transloco }}</span>
|
|
2419
|
-
}
|
|
2420
|
-
</li>
|
|
2421
|
-
}
|
|
2422
|
-
</ul>
|
|
2409
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBreadCrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2410
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitBreadCrumbComponent, isStandalone: false, selector: "bit-breadcrumb", inputs: { bc: { classPropertyName: "bc", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2411
|
+
<ul class="breadcrumb">
|
|
2412
|
+
@for (path of bc(); track path; let i = $index) {
|
|
2413
|
+
<li [class.active]="i == bc().length - 1">
|
|
2414
|
+
@if (i < bc().length - 1 && path.url) {
|
|
2415
|
+
<a class="breadcrumb-item" (click)="goAddress(path)" href="#">{{ "breadcrumb." + path.label | transloco }}</a>
|
|
2416
|
+
}
|
|
2417
|
+
@if (i == bc().length - 1 || !path.url) {
|
|
2418
|
+
<span class="breadcrumb-item active">{{ "breadcrumb." + path.label | transloco }}</span>
|
|
2419
|
+
}
|
|
2420
|
+
</li>
|
|
2421
|
+
}
|
|
2422
|
+
</ul>
|
|
2423
2423
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2424
2424
|
}
|
|
2425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBreadCrumbComponent, decorators: [{
|
|
2426
2426
|
type: Component,
|
|
2427
2427
|
args: [{
|
|
2428
2428
|
selector: "bit-breadcrumb",
|
|
2429
2429
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2430
|
-
template: `
|
|
2431
|
-
<ul class="breadcrumb">
|
|
2432
|
-
@for (path of bc(); track path; let i = $index) {
|
|
2433
|
-
<li [class.active]="i == bc().length - 1">
|
|
2434
|
-
@if (i < bc().length - 1 && path.url) {
|
|
2435
|
-
<a class="breadcrumb-item" (click)="goAddress(path)" href="#">{{ "breadcrumb." + path.label | transloco }}</a>
|
|
2436
|
-
}
|
|
2437
|
-
@if (i == bc().length - 1 || !path.url) {
|
|
2438
|
-
<span class="breadcrumb-item active">{{ "breadcrumb." + path.label | transloco }}</span>
|
|
2439
|
-
}
|
|
2440
|
-
</li>
|
|
2441
|
-
}
|
|
2442
|
-
</ul>
|
|
2430
|
+
template: `
|
|
2431
|
+
<ul class="breadcrumb">
|
|
2432
|
+
@for (path of bc(); track path; let i = $index) {
|
|
2433
|
+
<li [class.active]="i == bc().length - 1">
|
|
2434
|
+
@if (i < bc().length - 1 && path.url) {
|
|
2435
|
+
<a class="breadcrumb-item" (click)="goAddress(path)" href="#">{{ "breadcrumb." + path.label | transloco }}</a>
|
|
2436
|
+
}
|
|
2437
|
+
@if (i == bc().length - 1 || !path.url) {
|
|
2438
|
+
<span class="breadcrumb-item active">{{ "breadcrumb." + path.label | transloco }}</span>
|
|
2439
|
+
}
|
|
2440
|
+
</li>
|
|
2441
|
+
}
|
|
2442
|
+
</ul>
|
|
2443
2443
|
`
|
|
2444
2444
|
//styleUrls: ["bit-breadcrumb.component.css"]
|
|
2445
2445
|
,
|
|
@@ -2451,8 +2451,8 @@ class BitControlMessages {
|
|
|
2451
2451
|
constructor() {
|
|
2452
2452
|
this.focusService = inject(FocusService);
|
|
2453
2453
|
this.translateService = inject(TranslateService);
|
|
2454
|
-
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : []));
|
|
2455
|
-
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : []));
|
|
2454
|
+
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : /* istanbul ignore next */ []));
|
|
2455
|
+
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : /* istanbul ignore next */ []));
|
|
2456
2456
|
}
|
|
2457
2457
|
get isError() {
|
|
2458
2458
|
if (this.focusService.getFocusedElement() !== this.field()) {
|
|
@@ -2469,25 +2469,26 @@ class BitControlMessages {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
return false;
|
|
2471
2471
|
}
|
|
2472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2474
|
-
@if (isError) {
|
|
2475
|
-
<div>
|
|
2476
|
-
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
2477
|
-
</div>
|
|
2478
|
-
}
|
|
2479
|
-
`, isInline: true, dependencies: [{ kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
|
|
2472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitControlMessages, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2473
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitControlMessages, isStandalone: false, selector: "control-messages", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2474
|
+
@if (isError) {
|
|
2475
|
+
<div>
|
|
2476
|
+
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
2477
|
+
</div>
|
|
2478
|
+
}
|
|
2479
|
+
`, isInline: true, dependencies: [{ kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2480
2480
|
}
|
|
2481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitControlMessages, decorators: [{
|
|
2482
2482
|
type: Component,
|
|
2483
2483
|
args: [{
|
|
2484
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2484
2485
|
selector: "control-messages",
|
|
2485
|
-
template: `
|
|
2486
|
-
@if (isError) {
|
|
2487
|
-
<div>
|
|
2488
|
-
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
2489
|
-
</div>
|
|
2490
|
-
}
|
|
2486
|
+
template: `
|
|
2487
|
+
@if (isError) {
|
|
2488
|
+
<div>
|
|
2489
|
+
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
2490
|
+
</div>
|
|
2491
|
+
}
|
|
2491
2492
|
`
|
|
2492
2493
|
//styleUrls: ["bit-control-messages.component.css"]
|
|
2493
2494
|
,
|
|
@@ -2522,8 +2523,11 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2522
2523
|
super();
|
|
2523
2524
|
this.bitMessageService = inject(BitMessageService);
|
|
2524
2525
|
this.translateService = inject(TranslateService);
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2526
|
+
this.message = signal(new BitMessage("", ""), ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
2527
|
+
this.display = signal(false, ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
2528
|
+
this.errorAccessUrl = toSignal(this.translateService.selectTranslate("messages.erroraccessurl", {}, "bitnglibrary"), { initialValue: "" });
|
|
2529
|
+
this.errorAccess = toSignal(this.translateService.selectTranslate("messages.erroraccess", {}, "bitnglibrary"), { initialValue: "" });
|
|
2530
|
+
this.isSeverityInfo = computed(() => this.message().severity === "info", ...(ngDevMode ? [{ debugName: "isSeverityInfo" }] : /* istanbul ignore next */ []));
|
|
2527
2531
|
const bitMessageService = this.bitMessageService;
|
|
2528
2532
|
//console.log("DialogComponent contructor(" + bitMessageService + ")");
|
|
2529
2533
|
//Nos suscribimos a la espera de que envíen mensajes
|
|
@@ -2534,69 +2538,41 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2534
2538
|
this.showError(message);
|
|
2535
2539
|
});
|
|
2536
2540
|
}
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
this.getMessagesI18N();
|
|
2541
|
-
}
|
|
2542
|
-
getMessagesI18N() {
|
|
2543
|
-
this.translateService
|
|
2544
|
-
.selectTranslate("messages.erroraccessurl", {}, "bitnglibrary")
|
|
2545
|
-
.pipe(takeUntil(this.destroy$))
|
|
2546
|
-
.subscribe((v) => (this.errorAccessUrl = v));
|
|
2547
|
-
this.translateService
|
|
2548
|
-
.selectTranslate("messages.erroraccess", {}, "bitnglibrary")
|
|
2549
|
-
.pipe(takeUntil(this.destroy$))
|
|
2550
|
-
.subscribe((v) => (this.errorAccess = v));
|
|
2551
|
-
}
|
|
2552
|
-
showMessage(message) {
|
|
2553
|
-
this.message = message;
|
|
2554
|
-
if (this.message.json) {
|
|
2541
|
+
showMessage(incoming) {
|
|
2542
|
+
let content = incoming.message;
|
|
2543
|
+
if (incoming.json) {
|
|
2555
2544
|
try {
|
|
2556
|
-
|
|
2557
|
-
|
|
2545
|
+
const parsed = eval("(" + incoming.message + ")"); //{"w":1, "b":'foo', "c":[false,'false',null, 'null', {"d":{"e":1.3e5,"f":'2.3e5'}}]};
|
|
2546
|
+
content = JSON.stringify(parsed, undefined, 2);
|
|
2558
2547
|
}
|
|
2559
2548
|
catch (error) {
|
|
2560
2549
|
console.warn("No pudo convertirse a JSON la información del log");
|
|
2561
2550
|
}
|
|
2562
2551
|
}
|
|
2563
|
-
|
|
2564
|
-
this.
|
|
2552
|
+
const finalContent = content || BitDialogComponent.MENSAJE_VOID;
|
|
2553
|
+
const height = incoming.height === 0 ? this.calculateHeightNumber(finalContent) : incoming.height;
|
|
2554
|
+
this.message.set(new BitMessage(incoming.title, finalContent, incoming.width, height, incoming.modal, incoming.severity, incoming.masInfo, incoming.json));
|
|
2555
|
+
this.display.set(true);
|
|
2565
2556
|
}
|
|
2566
2557
|
showError(error) {
|
|
2567
|
-
|
|
2558
|
+
const messageError = error.url ? `${this.errorAccessUrl()} ${error.url}` : `${this.errorAccess()}`;
|
|
2568
2559
|
this.showMessage(new BitMessage(messageError, error.errorText, 1024, 600, false, BitMessage.ERROR, error.trazaError));
|
|
2569
2560
|
}
|
|
2570
|
-
get isSeverityInfo() {
|
|
2571
|
-
return this.message && this.message.severity === "info";
|
|
2572
|
-
}
|
|
2573
2561
|
/**
|
|
2574
2562
|
* Calcula la altura del diálogo en función de la información a mostrar.
|
|
2575
2563
|
* TODO: Contar las líneas reales del mensaje en vez de la longitud
|
|
2576
2564
|
*/
|
|
2577
|
-
calculateHeightNumber() {
|
|
2578
|
-
|
|
2579
|
-
if (msj) {
|
|
2580
|
-
if (msj.length < 100) {
|
|
2581
|
-
return 100;
|
|
2582
|
-
}
|
|
2583
|
-
else if (msj.length < 200) {
|
|
2584
|
-
return 200;
|
|
2585
|
-
}
|
|
2586
|
-
else if (msj.length < 300) {
|
|
2587
|
-
return 300;
|
|
2588
|
-
}
|
|
2589
|
-
else if (msj.length < 400) {
|
|
2590
|
-
return 400;
|
|
2591
|
-
}
|
|
2592
|
-
else {
|
|
2593
|
-
return 500;
|
|
2594
|
-
}
|
|
2595
|
-
}
|
|
2596
|
-
else {
|
|
2597
|
-
this.message.message = BitDialogComponent.MENSAJE_VOID;
|
|
2565
|
+
calculateHeightNumber(msj) {
|
|
2566
|
+
if (msj.length < 100)
|
|
2598
2567
|
return 100;
|
|
2599
|
-
|
|
2568
|
+
else if (msj.length < 200)
|
|
2569
|
+
return 200;
|
|
2570
|
+
else if (msj.length < 300)
|
|
2571
|
+
return 300;
|
|
2572
|
+
else if (msj.length < 400)
|
|
2573
|
+
return 400;
|
|
2574
|
+
else
|
|
2575
|
+
return 500;
|
|
2600
2576
|
}
|
|
2601
2577
|
syntaxHighlight(json) {
|
|
2602
2578
|
if (typeof json != "string") {
|
|
@@ -2622,117 +2598,124 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2622
2598
|
return '<span class="' + cls + '">' + match + "</span>";
|
|
2623
2599
|
});
|
|
2624
2600
|
}
|
|
2625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2627
|
-
@if (!isSeverityInfo) {
|
|
2628
|
-
<p-dialog
|
|
2629
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2630
|
-
header="{{ message.title }}"
|
|
2631
|
-
[
|
|
2632
|
-
|
|
2633
|
-
[
|
|
2634
|
-
[
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
[
|
|
2655
|
-
[
|
|
2656
|
-
[
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
[
|
|
2670
|
-
|
|
2671
|
-
[
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2601
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2602
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDialogComponent, isStandalone: false, selector: "bit-dialog", usesInheritance: true, ngImport: i0, template: `
|
|
2603
|
+
@if (!isSeverityInfo()) {
|
|
2604
|
+
<p-dialog
|
|
2605
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2606
|
+
header="{{ message().title }}"
|
|
2607
|
+
[visible]="display()"
|
|
2608
|
+
(visibleChange)="display.set($event)"
|
|
2609
|
+
[style]="{ width: '50vw' }"
|
|
2610
|
+
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2611
|
+
[modal]="message().modal"
|
|
2612
|
+
showEffect="fade"
|
|
2613
|
+
position="top"
|
|
2614
|
+
>
|
|
2615
|
+
<p class="mensaje-dialogo">{{ message().message }}</p>
|
|
2616
|
+
@if (message().masInfo) {
|
|
2617
|
+
<span>
|
|
2618
|
+
<pre>{{ message().masInfo }}</pre>
|
|
2619
|
+
</span>
|
|
2620
|
+
}
|
|
2621
|
+
<footer>
|
|
2622
|
+
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"> </div>
|
|
2623
|
+
</footer>
|
|
2624
|
+
</p-dialog>
|
|
2625
|
+
}
|
|
2626
|
+
@if (isSeverityInfo() && !message().json) {
|
|
2627
|
+
<p-dialog
|
|
2628
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2629
|
+
header="{{ message().title }}"
|
|
2630
|
+
[style]="{ width: '50vw' }"
|
|
2631
|
+
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2632
|
+
[visible]="display()"
|
|
2633
|
+
(visibleChange)="display.set($event)"
|
|
2634
|
+
[modal]="message().modal"
|
|
2635
|
+
showEffect="fade"
|
|
2636
|
+
position="top"
|
|
2637
|
+
>
|
|
2638
|
+
<p class="mensaje-dialogo" [innerHTML]="message().message"></p>
|
|
2639
|
+
</p-dialog>
|
|
2640
|
+
}
|
|
2641
|
+
@if (message().json) {
|
|
2642
|
+
<p-dialog
|
|
2643
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2644
|
+
header="{{ message().title }}"
|
|
2645
|
+
[visible]="display()"
|
|
2646
|
+
(visibleChange)="display.set($event)"
|
|
2647
|
+
[style]="{ width: '50vw' }"
|
|
2648
|
+
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2649
|
+
[baseZIndex]="10000"
|
|
2650
|
+
[modal]="message().modal"
|
|
2651
|
+
showEffect="fade"
|
|
2652
|
+
position="top"
|
|
2653
|
+
>
|
|
2654
|
+
<pre [innerHTML]="syntaxHighlight(message().message)"></pre>
|
|
2655
|
+
</p-dialog>
|
|
2656
|
+
}
|
|
2657
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2658
|
+
}
|
|
2659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDialogComponent, decorators: [{
|
|
2681
2660
|
type: Component,
|
|
2682
2661
|
args: [{
|
|
2662
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2683
2663
|
selector: "bit-dialog",
|
|
2684
|
-
template: `
|
|
2685
|
-
@if (!isSeverityInfo) {
|
|
2686
|
-
<p-dialog
|
|
2687
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2688
|
-
header="{{ message.title }}"
|
|
2689
|
-
[
|
|
2690
|
-
|
|
2691
|
-
[
|
|
2692
|
-
[
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
[
|
|
2713
|
-
[
|
|
2714
|
-
[
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
[
|
|
2728
|
-
|
|
2729
|
-
[
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2664
|
+
template: `
|
|
2665
|
+
@if (!isSeverityInfo()) {
|
|
2666
|
+
<p-dialog
|
|
2667
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2668
|
+
header="{{ message().title }}"
|
|
2669
|
+
[visible]="display()"
|
|
2670
|
+
(visibleChange)="display.set($event)"
|
|
2671
|
+
[style]="{ width: '50vw' }"
|
|
2672
|
+
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2673
|
+
[modal]="message().modal"
|
|
2674
|
+
showEffect="fade"
|
|
2675
|
+
position="top"
|
|
2676
|
+
>
|
|
2677
|
+
<p class="mensaje-dialogo">{{ message().message }}</p>
|
|
2678
|
+
@if (message().masInfo) {
|
|
2679
|
+
<span>
|
|
2680
|
+
<pre>{{ message().masInfo }}</pre>
|
|
2681
|
+
</span>
|
|
2682
|
+
}
|
|
2683
|
+
<footer>
|
|
2684
|
+
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"> </div>
|
|
2685
|
+
</footer>
|
|
2686
|
+
</p-dialog>
|
|
2687
|
+
}
|
|
2688
|
+
@if (isSeverityInfo() && !message().json) {
|
|
2689
|
+
<p-dialog
|
|
2690
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2691
|
+
header="{{ message().title }}"
|
|
2692
|
+
[style]="{ width: '50vw' }"
|
|
2693
|
+
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2694
|
+
[visible]="display()"
|
|
2695
|
+
(visibleChange)="display.set($event)"
|
|
2696
|
+
[modal]="message().modal"
|
|
2697
|
+
showEffect="fade"
|
|
2698
|
+
position="top"
|
|
2699
|
+
>
|
|
2700
|
+
<p class="mensaje-dialogo" [innerHTML]="message().message"></p>
|
|
2701
|
+
</p-dialog>
|
|
2702
|
+
}
|
|
2703
|
+
@if (message().json) {
|
|
2704
|
+
<p-dialog
|
|
2705
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2706
|
+
header="{{ message().title }}"
|
|
2707
|
+
[visible]="display()"
|
|
2708
|
+
(visibleChange)="display.set($event)"
|
|
2709
|
+
[style]="{ width: '50vw' }"
|
|
2710
|
+
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2711
|
+
[baseZIndex]="10000"
|
|
2712
|
+
[modal]="message().modal"
|
|
2713
|
+
showEffect="fade"
|
|
2714
|
+
position="top"
|
|
2715
|
+
>
|
|
2716
|
+
<pre [innerHTML]="syntaxHighlight(message().message)"></pre>
|
|
2717
|
+
</p-dialog>
|
|
2718
|
+
}
|
|
2736
2719
|
`
|
|
2737
2720
|
//styleUrls: ["bit-dialog.component.css"]
|
|
2738
2721
|
,
|
|
@@ -2780,10 +2763,10 @@ class CantidadMonedaPipe {
|
|
|
2780
2763
|
: "";
|
|
2781
2764
|
return integer + fraction;
|
|
2782
2765
|
}
|
|
2783
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2784
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2766
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2767
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, isStandalone: false, name: "cantidadMoneda" }); }
|
|
2785
2768
|
}
|
|
2786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, decorators: [{
|
|
2787
2770
|
type: Pipe,
|
|
2788
2771
|
args: [{
|
|
2789
2772
|
name: "cantidadMoneda",
|
|
@@ -2793,12 +2776,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
2793
2776
|
|
|
2794
2777
|
class BitPajigatorComponent {
|
|
2795
2778
|
constructor() {
|
|
2796
|
-
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] : []));
|
|
2797
|
-
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
2798
|
-
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] : []));
|
|
2799
|
-
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : []));
|
|
2800
|
-
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
2801
|
-
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : []));
|
|
2779
|
+
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
2780
|
+
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
2781
|
+
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2782
|
+
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
2783
|
+
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
2784
|
+
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : /* istanbul ignore next */ []));
|
|
2802
2785
|
this.onPageChange = output();
|
|
2803
2786
|
this.onPageSizeChange = output();
|
|
2804
2787
|
this.maxPages = computed(() => {
|
|
@@ -2811,10 +2794,10 @@ class BitPajigatorComponent {
|
|
|
2811
2794
|
}
|
|
2812
2795
|
console.log("totalItems:" + this.totalItems() + "maxPages:" + maxPages + " itemsPerPage:" + this.itemsPerPage());
|
|
2813
2796
|
return maxPages;
|
|
2814
|
-
}, ...(ngDevMode ? [{ debugName: "maxPages" }] : []));
|
|
2815
|
-
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] : []));
|
|
2816
|
-
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] : []));
|
|
2817
|
-
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] : []));
|
|
2797
|
+
}, ...(ngDevMode ? [{ debugName: "maxPages" }] : /* istanbul ignore next */ []));
|
|
2798
|
+
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] : /* istanbul ignore next */ []));
|
|
2799
|
+
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] : /* istanbul ignore next */ []));
|
|
2800
|
+
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] : /* istanbul ignore next */ []));
|
|
2818
2801
|
}
|
|
2819
2802
|
changeItemsPerpage(items) {
|
|
2820
2803
|
if (!items)
|
|
@@ -2828,68 +2811,62 @@ class BitPajigatorComponent {
|
|
|
2828
2811
|
this.page.update((current) => (current += direction));
|
|
2829
2812
|
this.onPageChange.emit(this.page());
|
|
2830
2813
|
}
|
|
2831
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2832
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2814
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPajigatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2815
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitPajigatorComponent, isStandalone: false, selector: "bit-pajigator", inputs: { paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, maxCurrentItems: { classPropertyName: "maxCurrentItems", publicName: "maxCurrentItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange", itemsPerPage: "itemsPerPageChange", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "<div [class]=\"paginator() ? 'pajigator-outer-container' : 'pajigator-outer-container-single-result'\">\n <div class=\"pajigator-container\">\n <div class=\"pajigator-results-container\">\n <span class=\"pajigator-results-label\">{{\"bitnglibrary.footer.results\" | transloco}}</span>\n @if (paginator()) { \n @if (maxCurrentItems() >= totalItems()) {\n <span>{{totalItems() | cantidadMoneda:0}}</span>\n }\n @if (maxCurrentItems() < totalItems()) {\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\n }\n } @else {\n <span>{{totalItems() | cantidadMoneda:0}}</span>\n }\n </div>\n @if (paginator()) { \n <div class=\"pajigator-page-size\">\n <div class=\"pajigator-page-size-label\">{{ \"bitnglibrary.footer.itemsPerPage\" | transloco }}</div>\n <!-- appendTo=\"body\"--->\n <p-select appendTo=\"body\"\n [options]=\"rowsPerPageOptions()\"\n [ngModel]=\"itemsPerPage()\"\n (ngModelChange)=\"changeItemsPerpage($event)\" />\n </div>\n <div class=\"pajigator-range-actions\">\n @if (showPageInfo()) {\n <div class=\"pajigator-range-label\"> {{ \"bitnglibrary.footer.page\" | transloco }} {{page()}} de {{maxPages()}} </div>\n }\n <p-button (onClick)=\"changePage(-1)\" [disabled]=\"!showLeftNavigationButton()\" severity=\"primary\" label=\"<\" ariaLabel=\"P\u00E0gina anterior\" />\n <p-button (onClick)=\"changePage(1)\" [disabled]=\"!showRightNavigationButton()\" severity=\"primary\" label=\">\" ariaLabel=\"P\u00E0gina seg\u00FCent\" />\n </div>\n } \n </div>\n</div>", dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: CantidadMonedaPipe, name: "cantidadMoneda" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2833
2816
|
}
|
|
2834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPajigatorComponent, decorators: [{
|
|
2835
2818
|
type: Component,
|
|
2836
|
-
args: [{ selector: 'bit-pajigator', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"paginator() ? 'pajigator-outer-container' : 'pajigator-outer-container-single-result'\">\
|
|
2819
|
+
args: [{ selector: 'bit-pajigator', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"paginator() ? 'pajigator-outer-container' : 'pajigator-outer-container-single-result'\">\n <div class=\"pajigator-container\">\n <div class=\"pajigator-results-container\">\n <span class=\"pajigator-results-label\">{{\"bitnglibrary.footer.results\" | transloco}}</span>\n @if (paginator()) { \n @if (maxCurrentItems() >= totalItems()) {\n <span>{{totalItems() | cantidadMoneda:0}}</span>\n }\n @if (maxCurrentItems() < totalItems()) {\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\n }\n } @else {\n <span>{{totalItems() | cantidadMoneda:0}}</span>\n }\n </div>\n @if (paginator()) { \n <div class=\"pajigator-page-size\">\n <div class=\"pajigator-page-size-label\">{{ \"bitnglibrary.footer.itemsPerPage\" | transloco }}</div>\n <!-- appendTo=\"body\"--->\n <p-select appendTo=\"body\"\n [options]=\"rowsPerPageOptions()\"\n [ngModel]=\"itemsPerPage()\"\n (ngModelChange)=\"changeItemsPerpage($event)\" />\n </div>\n <div class=\"pajigator-range-actions\">\n @if (showPageInfo()) {\n <div class=\"pajigator-range-label\"> {{ \"bitnglibrary.footer.page\" | transloco }} {{page()}} de {{maxPages()}} </div>\n }\n <p-button (onClick)=\"changePage(-1)\" [disabled]=\"!showLeftNavigationButton()\" severity=\"primary\" label=\"<\" ariaLabel=\"P\u00E0gina anterior\" />\n <p-button (onClick)=\"changePage(1)\" [disabled]=\"!showRightNavigationButton()\" severity=\"primary\" label=\">\" ariaLabel=\"P\u00E0gina seg\u00FCent\" />\n </div>\n } \n </div>\n</div>" }]
|
|
2837
2820
|
}], propDecorators: { paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], itemsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsPerPage", required: false }] }, { type: i0.Output, args: ["itemsPerPageChange"] }], maxCurrentItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxCurrentItems", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], onPageSizeChange: [{ type: i0.Output, args: ["onPageSizeChange"] }] } });
|
|
2838
2821
|
|
|
2839
2822
|
class BitHelpComponent {
|
|
2840
2823
|
constructor() {
|
|
2841
2824
|
this.ayudaService = inject(AyudaService);
|
|
2842
|
-
this.ayuda = linkedSignal(...(ngDevMode ?
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
computation: (newAyuda, _) => {
|
|
2849
|
-
console.log("newAyuda", newAyuda);
|
|
2850
|
-
return newAyuda;
|
|
2851
|
-
}
|
|
2852
|
-
}]));
|
|
2853
|
-
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : []));
|
|
2825
|
+
this.ayuda = linkedSignal({ ...(ngDevMode ? { debugName: "ayuda" } : /* istanbul ignore next */ {}), source: this.ayudaService.mostrar,
|
|
2826
|
+
computation: (newAyuda, _) => {
|
|
2827
|
+
console.log("newAyuda", newAyuda);
|
|
2828
|
+
return newAyuda;
|
|
2829
|
+
} });
|
|
2830
|
+
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : /* istanbul ignore next */ []));
|
|
2854
2831
|
}
|
|
2855
2832
|
/** Oculta el modal con los avisos */
|
|
2856
2833
|
hideAyuda() {
|
|
2857
2834
|
this.ayuda.set(null);
|
|
2858
2835
|
}
|
|
2859
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2860
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2861
|
-
@if (mostrarAyuda()) {
|
|
2862
|
-
<div class="ventana-ayuda">
|
|
2863
|
-
<div class="ayuda-header">
|
|
2864
|
-
{{ ayuda().header }}
|
|
2865
|
-
<span class="fa fa-close" (click)="hideAyuda()"></span>
|
|
2866
|
-
</div>
|
|
2867
|
-
<div class="ayuda-body">
|
|
2868
|
-
<p class="ayuda-subtitulo" [innerHTML]="ayuda().title"></p>
|
|
2869
|
-
<p [innerHTML]="ayuda().body"></p>
|
|
2870
|
-
</div>
|
|
2871
|
-
</div>
|
|
2872
|
-
}
|
|
2836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHelpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2837
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitHelpComponent, isStandalone: false, selector: "bit-help", ngImport: i0, template: `
|
|
2838
|
+
@if (mostrarAyuda()) {
|
|
2839
|
+
<div class="ventana-ayuda">
|
|
2840
|
+
<div class="ayuda-header">
|
|
2841
|
+
{{ ayuda().header }}
|
|
2842
|
+
<span class="fa fa-close" (click)="hideAyuda()"></span>
|
|
2843
|
+
</div>
|
|
2844
|
+
<div class="ayuda-body">
|
|
2845
|
+
<p class="ayuda-subtitulo" [innerHTML]="ayuda().title"></p>
|
|
2846
|
+
<p [innerHTML]="ayuda().body"></p>
|
|
2847
|
+
</div>
|
|
2848
|
+
</div>
|
|
2849
|
+
}
|
|
2873
2850
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2874
2851
|
}
|
|
2875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHelpComponent, decorators: [{
|
|
2876
2853
|
type: Component,
|
|
2877
2854
|
args: [{
|
|
2878
2855
|
selector: "bit-help",
|
|
2879
2856
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2880
|
-
template: `
|
|
2881
|
-
@if (mostrarAyuda()) {
|
|
2882
|
-
<div class="ventana-ayuda">
|
|
2883
|
-
<div class="ayuda-header">
|
|
2884
|
-
{{ ayuda().header }}
|
|
2885
|
-
<span class="fa fa-close" (click)="hideAyuda()"></span>
|
|
2886
|
-
</div>
|
|
2887
|
-
<div class="ayuda-body">
|
|
2888
|
-
<p class="ayuda-subtitulo" [innerHTML]="ayuda().title"></p>
|
|
2889
|
-
<p [innerHTML]="ayuda().body"></p>
|
|
2890
|
-
</div>
|
|
2891
|
-
</div>
|
|
2892
|
-
}
|
|
2857
|
+
template: `
|
|
2858
|
+
@if (mostrarAyuda()) {
|
|
2859
|
+
<div class="ventana-ayuda">
|
|
2860
|
+
<div class="ayuda-header">
|
|
2861
|
+
{{ ayuda().header }}
|
|
2862
|
+
<span class="fa fa-close" (click)="hideAyuda()"></span>
|
|
2863
|
+
</div>
|
|
2864
|
+
<div class="ayuda-body">
|
|
2865
|
+
<p class="ayuda-subtitulo" [innerHTML]="ayuda().title"></p>
|
|
2866
|
+
<p [innerHTML]="ayuda().body"></p>
|
|
2867
|
+
</div>
|
|
2868
|
+
</div>
|
|
2869
|
+
}
|
|
2893
2870
|
`
|
|
2894
2871
|
//styleUrls: ["bit-help.component.css"]
|
|
2895
2872
|
,
|
|
@@ -2900,36 +2877,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
2900
2877
|
class BitFooterMessagesComponent {
|
|
2901
2878
|
constructor() {
|
|
2902
2879
|
this.translateService = inject(TranslateService);
|
|
2903
|
-
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2904
|
-
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] : []));
|
|
2905
|
-
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : []));
|
|
2906
|
-
this.typeFooter = input("list", ...(ngDevMode ?
|
|
2907
|
-
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] : []));
|
|
2908
|
-
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] : []));
|
|
2909
|
-
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] : []));
|
|
2880
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2881
|
+
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] : /* istanbul ignore next */ []));
|
|
2882
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2883
|
+
this.typeFooter = input("list", { ...(ngDevMode ? { debugName: "typeFooter" } : /* istanbul ignore next */ {}), alias: "type" });
|
|
2884
|
+
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] : /* istanbul ignore next */ []));
|
|
2885
|
+
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] : /* istanbul ignore next */ []));
|
|
2886
|
+
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] : /* istanbul ignore next */ []));
|
|
2910
2887
|
/** Flag: la página está realizando la búsqueda. */
|
|
2911
|
-
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : []));
|
|
2888
|
+
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : /* istanbul ignore next */ []));
|
|
2912
2889
|
/** Flag: la página está realizando la búsqueda. */
|
|
2913
|
-
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : []));
|
|
2890
|
+
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : /* istanbul ignore next */ []));
|
|
2914
2891
|
/** Flag: la página ha finalizado la última búsqueda. */
|
|
2915
|
-
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : []));
|
|
2892
|
+
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : /* istanbul ignore next */ []));
|
|
2916
2893
|
/** Flag: la página está en modo solo lectura */
|
|
2917
|
-
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
2894
|
+
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
2918
2895
|
/** Flag: la página ha finalizado con error */
|
|
2919
|
-
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
2896
|
+
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2920
2897
|
/** Flag: encontrado resultado. */
|
|
2921
2898
|
this.foundResult = computed(() => {
|
|
2922
2899
|
return (this.searchFinished() &&
|
|
2923
2900
|
((this.isFooterList() && this.totalItems() > 0) ||
|
|
2924
2901
|
this.isFooterForm() ||
|
|
2925
2902
|
(this.isFooterScroll() && this.totalItems() <= this.maxCurrentItems())));
|
|
2926
|
-
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : []));
|
|
2903
|
+
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : /* istanbul ignore next */ []));
|
|
2927
2904
|
/** Flag: hay más resultados (scroll). */
|
|
2928
2905
|
this.moreResults = computed(() => {
|
|
2929
2906
|
return this.searchFinished() && this.isFooterScroll() && this.totalItems() > this.maxCurrentItems();
|
|
2930
|
-
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : []));
|
|
2907
|
+
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : /* istanbul ignore next */ []));
|
|
2931
2908
|
/** Flag: no hay resultados. */
|
|
2932
|
-
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : []));
|
|
2909
|
+
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : /* istanbul ignore next */ []));
|
|
2933
2910
|
this.messages = computed(() => {
|
|
2934
2911
|
let messagesMap = new Map();
|
|
2935
2912
|
if (this.isFooterList() || this.isFooterScroll()) {
|
|
@@ -2950,7 +2927,7 @@ class BitFooterMessagesComponent {
|
|
|
2950
2927
|
}
|
|
2951
2928
|
messagesMap.set(PageStatus.Error, "bitnglibrary.footer.error");
|
|
2952
2929
|
return messagesMap;
|
|
2953
|
-
}, ...(ngDevMode ? [{ debugName: "messages" }] : []));
|
|
2930
|
+
}, ...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
2954
2931
|
this.initMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Init)));
|
|
2955
2932
|
this.searchingMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Searching)));
|
|
2956
2933
|
this.finishMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.FinishSearch)));
|
|
@@ -2969,7 +2946,7 @@ class BitFooterMessagesComponent {
|
|
|
2969
2946
|
else if (this.isFooterForm()) {
|
|
2970
2947
|
return `mensaje-form mensaje-${type}`;
|
|
2971
2948
|
}
|
|
2972
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
2949
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : /* istanbul ignore next */ []));
|
|
2973
2950
|
this.message = computed(() => {
|
|
2974
2951
|
if (this.searchInitiated())
|
|
2975
2952
|
return this.initMessage();
|
|
@@ -2986,14 +2963,14 @@ class BitFooterMessagesComponent {
|
|
|
2986
2963
|
if (this.error())
|
|
2987
2964
|
return this.errorMessage();
|
|
2988
2965
|
return "";
|
|
2989
|
-
}, ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
2966
|
+
}, ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
2990
2967
|
}
|
|
2991
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2992
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
2968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2969
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitFooterMessagesComponent, isStandalone: false, selector: "bit-footer-messages", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, maxCurrentItems: { classPropertyName: "maxCurrentItems", publicName: "maxCurrentItems", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, typeFooter: { classPropertyName: "typeFooter", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div>\n <div [class]=\"getStyle()\">\n <i class=\"fa fa-info\"></i>\n <span>{{message()}}</span>\n </div>\n\n <bit-help />\n</div>", dependencies: [{ kind: "component", type: BitHelpComponent, selector: "bit-help" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2993
2970
|
}
|
|
2994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterMessagesComponent, decorators: [{
|
|
2995
2972
|
type: Component,
|
|
2996
|
-
args: [{ selector: 'bit-footer-messages', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div>\
|
|
2973
|
+
args: [{ selector: 'bit-footer-messages', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div>\n <div [class]=\"getStyle()\">\n <i class=\"fa fa-info\"></i>\n <span>{{message()}}</span>\n </div>\n\n <bit-help />\n</div>" }]
|
|
2997
2974
|
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], maxCurrentItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxCurrentItems", required: false }] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], typeFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
2998
2975
|
|
|
2999
2976
|
/**
|
|
@@ -3001,28 +2978,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3001
2978
|
**/
|
|
3002
2979
|
class BitFooterComponent {
|
|
3003
2980
|
constructor() {
|
|
3004
|
-
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : [])); // Número total de elementos recuperados de la consulta
|
|
3005
|
-
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] : [])); // filtro de búsqieda
|
|
3006
|
-
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
3007
|
-
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] : []));
|
|
3008
|
-
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] : []));
|
|
3009
|
-
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] : [])); // Indicará si lo queremos fijo abajo en la página. Por defecto sí.
|
|
3010
|
-
this.typeFooter = input("list", ...(ngDevMode ?
|
|
3011
|
-
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
2981
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : /* istanbul ignore next */ [])); // Número total de elementos recuperados de la consulta
|
|
2982
|
+
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] : /* istanbul ignore next */ [])); // filtro de búsqieda
|
|
2983
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2984
|
+
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
2985
|
+
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] : /* istanbul ignore next */ []));
|
|
2986
|
+
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] : /* istanbul ignore next */ [])); // Indicará si lo queremos fijo abajo en la página. Por defecto sí.
|
|
2987
|
+
this.typeFooter = input("list", { ...(ngDevMode ? { debugName: "typeFooter" } : /* istanbul ignore next */ {}), alias: "type" });
|
|
2988
|
+
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
3012
2989
|
this.onPageChange = output(); //para notificar cambios en la página a mostrar
|
|
3013
2990
|
this.onNewPageSize = output(); //para notificar cambios en los elementos a mostrar por página
|
|
3014
2991
|
this.baseItemsPerPage = BaseFilter.RESULTADOS_PAGE; // guardamos el número de resultados pre-configurados por página para mostrar la lista de x, x+10 y x+20
|
|
3015
|
-
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
3016
|
-
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
2992
|
+
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
2993
|
+
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
3017
2994
|
this.maxCurrentItems = computed(() => {
|
|
3018
2995
|
let maxCurrentItems = this.filter()?.pagina * this.filter()?.resultados;
|
|
3019
2996
|
if (maxCurrentItems > this.totalItems()) {
|
|
3020
2997
|
maxCurrentItems = this.totalItems();
|
|
3021
2998
|
}
|
|
3022
2999
|
return maxCurrentItems;
|
|
3023
|
-
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : [])); // número de elementos que mostramos en pantalla. Necesario para el modo scroll
|
|
3024
|
-
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] : []));
|
|
3025
|
-
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] : []));
|
|
3000
|
+
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : /* istanbul ignore next */ [])); // número de elementos que mostramos en pantalla. Necesario para el modo scroll
|
|
3001
|
+
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] : /* istanbul ignore next */ []));
|
|
3002
|
+
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] : /* istanbul ignore next */ []));
|
|
3026
3003
|
this.getStyle = computed(() => {
|
|
3027
3004
|
if ((this.fixed() && this.typeFooter() === TYPE_LIST) || this.typeFooter() === TYPE_SCROLL) {
|
|
3028
3005
|
return "footer navbar-fixed-bottom";
|
|
@@ -3033,7 +3010,7 @@ class BitFooterComponent {
|
|
|
3033
3010
|
else {
|
|
3034
3011
|
return "footer";
|
|
3035
3012
|
}
|
|
3036
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
3013
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : /* istanbul ignore next */ []));
|
|
3037
3014
|
}
|
|
3038
3015
|
pageChange(page) {
|
|
3039
3016
|
this.onPageChange.emit(page);
|
|
@@ -3041,52 +3018,53 @@ class BitFooterComponent {
|
|
|
3041
3018
|
pageSizeChange(pageSize) {
|
|
3042
3019
|
this.onNewPageSize.emit(pageSize);
|
|
3043
3020
|
}
|
|
3044
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3045
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3022
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitFooterComponent, isStandalone: false, selector: "bit-footer", inputs: { totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, mostrarAvisos: { classPropertyName: "mostrarAvisos", publicName: "mostrarAvisos", isSignal: true, isRequired: false, transformFunction: null }, fixed: { classPropertyName: "fixed", publicName: "fixed", isSignal: true, isRequired: false, transformFunction: null }, typeFooter: { classPropertyName: "typeFooter", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", onNewPageSize: "onNewPageSize" }, ngImport: i0, template: "<footer [class]=\"getStyle()\">\n\n @if (showScroll()) {\n <div class=\"scroll-outer-container\">\n <div class=\"pajigator-container\">\n <label>{{\"bitnglibrary.footer.results\" | transloco}}</label>\n @if (maxCurrentItems() >= totalItems()) {\n <span>{{totalItems()}}</span>\n }\n @if (maxCurrentItems() < totalItems()) {\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\n }\n </div>\n </div>\n }\n\n @if (showPajigator()) {\n <bit-pajigator [paginator]=\"paginator()\"\n [totalItems]=\"totalItems()\"\n [page]=\"page()\"\n [itemsPerPage]=\"itemsPerPage()\"\n [rowsPerPageOptions]=\"[baseItemsPerPage,baseItemsPerPage*2,baseItemsPerPage*4,baseItemsPerPage*10,baseItemsPerPage*50]\"\n [maxCurrentItems]=\"maxCurrentItems()\"\n (onPageChange)=\"pageChange($event)\"\n (onPageSizeChange)=\"pageSizeChange($event)\" />\n }\n\n @if (mostrarAvisos()) {\n <bit-footer-messages [type]=\"typeFooter()\"\n [status]=\"status()\"\n [maxCurrentItems]=\"maxCurrentItems()\"\n [totalItems]=\"totalItems()\" />\n }\n\n</footer>\n", dependencies: [{ kind: "component", type: BitPajigatorComponent, selector: "bit-pajigator", inputs: ["paginator", "page", "totalItems", "rowsPerPageOptions", "itemsPerPage", "maxCurrentItems"], outputs: ["pageChange", "itemsPerPageChange", "onPageChange", "onPageSizeChange"] }, { kind: "component", type: BitFooterMessagesComponent, selector: "bit-footer-messages", inputs: ["status", "maxCurrentItems", "totalItems", "type"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3046
3023
|
}
|
|
3047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterComponent, decorators: [{
|
|
3048
3025
|
type: Component,
|
|
3049
|
-
args: [{ selector: "bit-footer", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<footer [class]=\"getStyle()\">\
|
|
3026
|
+
args: [{ selector: "bit-footer", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<footer [class]=\"getStyle()\">\n\n @if (showScroll()) {\n <div class=\"scroll-outer-container\">\n <div class=\"pajigator-container\">\n <label>{{\"bitnglibrary.footer.results\" | transloco}}</label>\n @if (maxCurrentItems() >= totalItems()) {\n <span>{{totalItems()}}</span>\n }\n @if (maxCurrentItems() < totalItems()) {\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\n }\n </div>\n </div>\n }\n\n @if (showPajigator()) {\n <bit-pajigator [paginator]=\"paginator()\"\n [totalItems]=\"totalItems()\"\n [page]=\"page()\"\n [itemsPerPage]=\"itemsPerPage()\"\n [rowsPerPageOptions]=\"[baseItemsPerPage,baseItemsPerPage*2,baseItemsPerPage*4,baseItemsPerPage*10,baseItemsPerPage*50]\"\n [maxCurrentItems]=\"maxCurrentItems()\"\n (onPageChange)=\"pageChange($event)\"\n (onPageSizeChange)=\"pageSizeChange($event)\" />\n }\n\n @if (mostrarAvisos()) {\n <bit-footer-messages [type]=\"typeFooter()\"\n [status]=\"status()\"\n [maxCurrentItems]=\"maxCurrentItems()\"\n [totalItems]=\"totalItems()\" />\n }\n\n</footer>\n" }]
|
|
3050
3027
|
}], propDecorators: { totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], mostrarAvisos: [{ type: i0.Input, args: [{ isSignal: true, alias: "mostrarAvisos", required: false }] }], fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }], typeFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], onNewPageSize: [{ type: i0.Output, args: ["onNewPageSize"] }] } });
|
|
3051
3028
|
|
|
3052
3029
|
class BitBotonAyudaComponent {
|
|
3053
3030
|
constructor() {
|
|
3054
3031
|
this.ayudaService = inject(AyudaService);
|
|
3055
|
-
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : []));
|
|
3056
|
-
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] : [])); // show a little [?] or a full button
|
|
3057
|
-
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] : [])); // extra CSS classes for HTML component
|
|
3058
|
-
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] : []));
|
|
3032
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : /* istanbul ignore next */ []));
|
|
3033
|
+
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] : /* istanbul ignore next */ [])); // show a little [?] or a full button
|
|
3034
|
+
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] : /* istanbul ignore next */ [])); // extra CSS classes for HTML component
|
|
3035
|
+
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
|
|
3059
3036
|
}
|
|
3060
3037
|
mostrarAyuda() {
|
|
3061
3038
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3062
3039
|
}
|
|
3063
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3064
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3065
|
-
@if (boton()) {
|
|
3066
|
-
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3067
|
-
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
3068
|
-
</p-button>
|
|
3069
|
-
}
|
|
3070
|
-
|
|
3071
|
-
@if (!boton()) {
|
|
3072
|
-
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3073
|
-
}
|
|
3074
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["type", "
|
|
3075
|
-
}
|
|
3076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3040
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBotonAyudaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3041
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitBotonAyudaComponent, isStandalone: false, selector: "bit-boton-ayuda", inputs: { ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, boton: { classPropertyName: "boton", publicName: "boton", isSignal: true, isRequired: false, transformFunction: null }, extraClass: { classPropertyName: "extraClass", publicName: "extraClass", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3042
|
+
@if (boton()) {
|
|
3043
|
+
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3044
|
+
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
3045
|
+
</p-button>
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
@if (!boton()) {
|
|
3049
|
+
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3050
|
+
}
|
|
3051
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3052
|
+
}
|
|
3053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBotonAyudaComponent, decorators: [{
|
|
3077
3054
|
type: Component,
|
|
3078
3055
|
args: [{
|
|
3056
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3079
3057
|
selector: "bit-boton-ayuda",
|
|
3080
|
-
template: `
|
|
3081
|
-
@if (boton()) {
|
|
3082
|
-
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3083
|
-
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
3084
|
-
</p-button>
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
@if (!boton()) {
|
|
3088
|
-
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3089
|
-
}
|
|
3058
|
+
template: `
|
|
3059
|
+
@if (boton()) {
|
|
3060
|
+
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3061
|
+
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
3062
|
+
</p-button>
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
@if (!boton()) {
|
|
3066
|
+
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3067
|
+
}
|
|
3090
3068
|
`,
|
|
3091
3069
|
standalone: false
|
|
3092
3070
|
}]
|
|
@@ -3096,24 +3074,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3096
3074
|
* Componenente que muestra una barra de botones.
|
|
3097
3075
|
*/
|
|
3098
3076
|
class BitToolbarComponent extends BaseComponent {
|
|
3099
|
-
static { this.FILTER_BUTTON = "filter"; }
|
|
3100
|
-
static { this.PRINT_BUTTON = "print"; }
|
|
3101
|
-
static { this.EXPORT_BUTTON = "export"; }
|
|
3102
|
-
static { this.NEW_BUTTON = "new"; }
|
|
3103
|
-
static { this.SAVE_BUTTON = "save"; }
|
|
3104
|
-
static { this.DELETE_BUTTON = "delete"; }
|
|
3105
|
-
static { this.ADD_BUTTON = "add"; }
|
|
3106
|
-
static { this.HELP_BUTTON = "help"; }
|
|
3107
3077
|
constructor() {
|
|
3108
|
-
super();
|
|
3078
|
+
super(...arguments);
|
|
3109
3079
|
this.translateService = inject(TranslateService);
|
|
3080
|
+
this.translations = toSignal(this.translateService.selectTranslate("toolbar", {}, "bitnglibrary", true), { initialValue: {} });
|
|
3110
3081
|
this.mostrar = false;
|
|
3111
|
-
this.
|
|
3112
|
-
this.
|
|
3113
|
-
this.
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3116
|
-
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : [])); // determina si todas las "other actions" se muestran en un desplegable o depende del atributo displayAsButton de cada una
|
|
3082
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
3083
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual que mostrar para su botón
|
|
3084
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : /* istanbul ignore next */ [])); // género femenino (para los nombres de botones) o no
|
|
3085
|
+
this.buttonSize = input(...(ngDevMode ? [undefined, { debugName: "buttonSize" }] : /* istanbul ignore next */ [])); // tamaño de los botones, por defecto normal
|
|
3086
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : /* istanbul ignore next */ [])); // determina si todas las "other actions" se muestran en un desplegable o depende del atributo displayAsButton de cada una
|
|
3117
3087
|
this.onToolbarButtonPressed = output();
|
|
3118
3088
|
/** Devuelve si hay other actions que deben mostrarse en desplegable (solo cuando hay más de una). */
|
|
3119
3089
|
this.itemsOtherActionsEnDesplegable = computed(() => {
|
|
@@ -3123,12 +3093,12 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3123
3093
|
return actions;
|
|
3124
3094
|
else
|
|
3125
3095
|
return [];
|
|
3126
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : []));
|
|
3096
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : /* istanbul ignore next */ []));
|
|
3127
3097
|
/** Devuelve la clave de traducción del label del botón de "other actions" */
|
|
3128
3098
|
this.otherActionsLabel = computed(() => {
|
|
3129
3099
|
const toolbar = this.toolbar() || {};
|
|
3130
3100
|
return toolbar['_otherActionsLabel'] || 'other-actions';
|
|
3131
|
-
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : []));
|
|
3101
|
+
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : /* istanbul ignore next */ []));
|
|
3132
3102
|
/** Devuelve si hay other actions que deben mostrarse como botón (incluye la de desplegable si hay solo una). */
|
|
3133
3103
|
this.itemsOtherActionsEnBoton = computed(() => {
|
|
3134
3104
|
const toolbar = this.toolbar() || {};
|
|
@@ -3138,14 +3108,16 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3138
3108
|
if (actionsEnDesplegable?.length === 1)
|
|
3139
3109
|
actions.push(actionsEnDesplegable[0]);
|
|
3140
3110
|
return actions;
|
|
3141
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : []));
|
|
3142
|
-
this.translateService
|
|
3143
|
-
.selectTranslate("toolbar", {}, "bitnglibrary", true)
|
|
3144
|
-
.pipe(takeUntil(this.destroy$))
|
|
3145
|
-
.subscribe((translations) => {
|
|
3146
|
-
this.translations = translations;
|
|
3147
|
-
});
|
|
3111
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : /* istanbul ignore next */ []));
|
|
3148
3112
|
}
|
|
3113
|
+
static { this.FILTER_BUTTON = "filter"; }
|
|
3114
|
+
static { this.PRINT_BUTTON = "print"; }
|
|
3115
|
+
static { this.EXPORT_BUTTON = "export"; }
|
|
3116
|
+
static { this.NEW_BUTTON = "new"; }
|
|
3117
|
+
static { this.SAVE_BUTTON = "save"; }
|
|
3118
|
+
static { this.DELETE_BUTTON = "delete"; }
|
|
3119
|
+
static { this.ADD_BUTTON = "add"; }
|
|
3120
|
+
static { this.HELP_BUTTON = "help"; }
|
|
3149
3121
|
onSplitButtonLabelClick(sb, event) {
|
|
3150
3122
|
setTimeout(() => sb.onDropdownButtonClick(event));
|
|
3151
3123
|
}
|
|
@@ -3199,7 +3171,7 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3199
3171
|
if (this.incluirOtherActionEnDropdown(toolbar[key])) {
|
|
3200
3172
|
let toolbarItem = toolbar[key]; // capture the current toolbar item
|
|
3201
3173
|
actions.push({
|
|
3202
|
-
label: this.translations[toolbarItem.label],
|
|
3174
|
+
label: this.translations()[toolbarItem.label],
|
|
3203
3175
|
icon: toolbarItem.estilo,
|
|
3204
3176
|
visible: toolbarItem.visible,
|
|
3205
3177
|
command: () => {
|
|
@@ -3228,27 +3200,27 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3228
3200
|
incluirOtherActionComoBoton(toolbarItem) {
|
|
3229
3201
|
return toolbarItem.otherAction && toolbarItem.visible && (!this.otherActionsDropdown() || toolbarItem.displayAsButton === true);
|
|
3230
3202
|
}
|
|
3231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3232
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitToolbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitToolbarComponent, isStandalone: false, selector: "bit-toolbar", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, femenino: { classPropertyName: "femenino", publicName: "femenino", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null }, otherActionsDropdown: { classPropertyName: "otherActionsDropdown", publicName: "otherActionsDropdown", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onToolbarButtonPressed: "onToolbarButtonPressed" }, usesInheritance: true, ngImport: i0, template: "<div class=\"contenedor-toolbar\">\n\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se deben incluir en un desplegable -->\n @if (itemsOtherActionsEnDesplegable().length > 1) {\n <p-splitbutton #sb label=\"{{'bitnglibrary.toolbar.' + otherActionsLabel() | transloco}}\" [model]=\"itemsOtherActionsEnDesplegable()\" (onClick)=\"onSplitButtonLabelClick(sb, $event)\" />\n }\n\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se muestran una tras otra en l\u00EDnea -->\n @for (button of itemsOtherActionsEnBoton(); track button) {\n <p-button type=\"button\" [disabled]=\"!button.enable\" (onClick)=\"otherAction(button)\" [size]=\"buttonSize()\">{{\"bitnglibrary.toolbar.\"+button.label | transloco}} <span [class]=\"button.estilo?button.estilo:'pi pi-angle-right'\"></span></p-button>\n }\n\n <!-- acciones estandar -->\n @if (visible('new')) {\n <p-button type=\"button\" [disabled]=\"!enable('new')\" (onClick)=\"newElement()\" [size]=\"buttonSize()\" styleClass=\"p-button-danger\">{{(femenino() ? \"bitnglibrary.toolbar.new-female\": \"bitnglibrary.toolbar.new\") | transloco}} <span [class]=\"estilo('new', 'pi pi-plus')\"></span></p-button>\n }\n @if (visible('add')) {\n <p-button type=\"button\" [disabled]=\"!enable('add')\" (onClick)=\"add()\" [size]=\"buttonSize()\" styleClass=\"p-button-danger\">{{\"bitnglibrary.toolbar.add\" | transloco}} <span [class]=\"estilo('add', 'pi pi-plus')\"></span></p-button>\n }\n\n @if (visible('export')) {\n <p-button type=\"button\" [disabled]=\"!enable('export')\" (onClick)=\"exportData()\" [size]=\"buttonSize()\" styleClass=\"p-button-secondary\">{{\"bitnglibrary.toolbar.export\" | transloco}} <span [class]=\"estilo('export', 'pi pi-file')\"></span></p-button>\n }\n @if (visible('save')) {\n <p-button type=\"button\" [disabled]=\"!enable('save')\" (onClick)=\"save()\" [size]=\"buttonSize()\" styleClass=\"p-button-success\">{{\"bitnglibrary.toolbar.save\" | transloco}} <span [class]=\"estilo('save', 'pi pi-save')\"></span></p-button>\n }\n @if (visible('delete')) {\n <p-button type=\"button\" [disabled]=\"!enable('delete')\" (onClick)=\"delete()\" [size]=\"buttonSize()\" styleClass=\"p-button-danger\">{{\"bitnglibrary.toolbar.delete\" | transloco}} <span [class]=\"estilo('delete', 'pi pi-trash')\"></span></p-button>\n }\n @if (visible('print')) {\n <p-button type=\"button\" [disabled]=\"!enable('print')\" (onClick)=\"print()\" [size]=\"buttonSize()\" styleClass=\"p-button-secondary\">{{\"bitnglibrary.toolbar.print\" | transloco}} <span [class]=\"estilo('print', 'pi pi-print')\"></span></p-button>\n }\n @if (ayuda()) {\n <bit-boton-ayuda boton=\"true\" [ayuda]=\"ayuda()\" [buttonSize]=\"buttonSize()\" />\n }\n</div>\n", dependencies: [{ kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i2$2.SplitButton, selector: "p-splitbutton, p-splitButton, p-split-button", inputs: ["model", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "icon", "iconPos", "label", "tooltip", "tooltipOptions", "styleClass", "menuStyle", "menuStyleClass", "dropdownIcon", "appendTo", "dir", "expandAriaLabel", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "buttonProps", "menuButtonProps", "autofocus", "disabled", "tabindex", "menuButtonDisabled", "buttonDisabled"], outputs: ["onClick", "onMenuHide", "onMenuShow", "onDropdownClick"] }, { kind: "component", type: BitBotonAyudaComponent, selector: "bit-boton-ayuda", inputs: ["ayuda", "boton", "extraClass", "buttonSize"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3233
3205
|
}
|
|
3234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitToolbarComponent, decorators: [{
|
|
3235
3207
|
type: Component,
|
|
3236
|
-
args: [{ selector: "bit-toolbar", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"contenedor-toolbar\">\
|
|
3237
|
-
}],
|
|
3208
|
+
args: [{ selector: "bit-toolbar", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"contenedor-toolbar\">\n\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se deben incluir en un desplegable -->\n @if (itemsOtherActionsEnDesplegable().length > 1) {\n <p-splitbutton #sb label=\"{{'bitnglibrary.toolbar.' + otherActionsLabel() | transloco}}\" [model]=\"itemsOtherActionsEnDesplegable()\" (onClick)=\"onSplitButtonLabelClick(sb, $event)\" />\n }\n\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se muestran una tras otra en l\u00EDnea -->\n @for (button of itemsOtherActionsEnBoton(); track button) {\n <p-button type=\"button\" [disabled]=\"!button.enable\" (onClick)=\"otherAction(button)\" [size]=\"buttonSize()\">{{\"bitnglibrary.toolbar.\"+button.label | transloco}} <span [class]=\"button.estilo?button.estilo:'pi pi-angle-right'\"></span></p-button>\n }\n\n <!-- acciones estandar -->\n @if (visible('new')) {\n <p-button type=\"button\" [disabled]=\"!enable('new')\" (onClick)=\"newElement()\" [size]=\"buttonSize()\" styleClass=\"p-button-danger\">{{(femenino() ? \"bitnglibrary.toolbar.new-female\": \"bitnglibrary.toolbar.new\") | transloco}} <span [class]=\"estilo('new', 'pi pi-plus')\"></span></p-button>\n }\n @if (visible('add')) {\n <p-button type=\"button\" [disabled]=\"!enable('add')\" (onClick)=\"add()\" [size]=\"buttonSize()\" styleClass=\"p-button-danger\">{{\"bitnglibrary.toolbar.add\" | transloco}} <span [class]=\"estilo('add', 'pi pi-plus')\"></span></p-button>\n }\n\n @if (visible('export')) {\n <p-button type=\"button\" [disabled]=\"!enable('export')\" (onClick)=\"exportData()\" [size]=\"buttonSize()\" styleClass=\"p-button-secondary\">{{\"bitnglibrary.toolbar.export\" | transloco}} <span [class]=\"estilo('export', 'pi pi-file')\"></span></p-button>\n }\n @if (visible('save')) {\n <p-button type=\"button\" [disabled]=\"!enable('save')\" (onClick)=\"save()\" [size]=\"buttonSize()\" styleClass=\"p-button-success\">{{\"bitnglibrary.toolbar.save\" | transloco}} <span [class]=\"estilo('save', 'pi pi-save')\"></span></p-button>\n }\n @if (visible('delete')) {\n <p-button type=\"button\" [disabled]=\"!enable('delete')\" (onClick)=\"delete()\" [size]=\"buttonSize()\" styleClass=\"p-button-danger\">{{\"bitnglibrary.toolbar.delete\" | transloco}} <span [class]=\"estilo('delete', 'pi pi-trash')\"></span></p-button>\n }\n @if (visible('print')) {\n <p-button type=\"button\" [disabled]=\"!enable('print')\" (onClick)=\"print()\" [size]=\"buttonSize()\" styleClass=\"p-button-secondary\">{{\"bitnglibrary.toolbar.print\" | transloco}} <span [class]=\"estilo('print', 'pi pi-print')\"></span></p-button>\n }\n @if (ayuda()) {\n <bit-boton-ayuda boton=\"true\" [ayuda]=\"ayuda()\" [buttonSize]=\"buttonSize()\" />\n }\n</div>\n" }]
|
|
3209
|
+
}], propDecorators: { toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: false }] }], ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], femenino: [{ type: i0.Input, args: [{ isSignal: true, alias: "femenino", required: false }] }], buttonSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSize", required: false }] }], otherActionsDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "otherActionsDropdown", required: false }] }], onToolbarButtonPressed: [{ type: i0.Output, args: ["onToolbarButtonPressed"] }] } });
|
|
3238
3210
|
|
|
3239
3211
|
/**
|
|
3240
3212
|
* Componente que muestra miga de pan y toolbar
|
|
3241
3213
|
*/
|
|
3242
3214
|
class BitHeaderComponent {
|
|
3243
3215
|
constructor() {
|
|
3244
|
-
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : []));
|
|
3245
|
-
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] : []));
|
|
3246
|
-
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : [])); // determina si las "other actions" deben mostrarse en línea o como un desplegable
|
|
3247
|
-
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3248
|
-
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] : []));
|
|
3249
|
-
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] : []));
|
|
3250
|
-
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : [])); // género femenino (para los nombres de botones) o no
|
|
3251
|
-
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : [])); // clave de la ayuda contextual para la botonera
|
|
3216
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
3217
|
+
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] : /* istanbul ignore next */ []));
|
|
3218
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : /* istanbul ignore next */ [])); // determina si las "other actions" deben mostrarse en línea o como un desplegable
|
|
3219
|
+
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] : /* istanbul ignore next */ []));
|
|
3220
|
+
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] : /* istanbul ignore next */ []));
|
|
3221
|
+
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] : /* istanbul ignore next */ []));
|
|
3222
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : /* istanbul ignore next */ [])); // género femenino (para los nombres de botones) o no
|
|
3223
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual para la botonera
|
|
3252
3224
|
this.onToolbarButtonPressed = output();
|
|
3253
3225
|
}
|
|
3254
3226
|
/** Tenemos que capturar el evento y volver a subirlo, por diseño Angular2 no permite enviar un evento de un nieto a su abuelo, solo
|
|
@@ -3257,51 +3229,52 @@ class BitHeaderComponent {
|
|
|
3257
3229
|
onTBPressed(button) {
|
|
3258
3230
|
this.onToolbarButtonPressed.emit(button);
|
|
3259
3231
|
}
|
|
3260
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3261
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3233
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitHeaderComponent, isStandalone: false, selector: "bit-header", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, noToolbar: { classPropertyName: "noToolbar", publicName: "noToolbar", isSignal: true, isRequired: false, transformFunction: null }, otherActionsDropdown: { classPropertyName: "otherActionsDropdown", publicName: "otherActionsDropdown", isSignal: true, isRequired: false, transformFunction: null }, breadcrumb: { classPropertyName: "breadcrumb", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null }, masacciones: { classPropertyName: "masacciones", publicName: "masacciones", isSignal: true, isRequired: false, transformFunction: null }, colsBreadcrumb: { classPropertyName: "colsBreadcrumb", publicName: "colsBreadcrumb", isSignal: true, isRequired: false, transformFunction: null }, femenino: { classPropertyName: "femenino", publicName: "femenino", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onToolbarButtonPressed: "onToolbarButtonPressed" }, ngImport: i0, template: "<!-- <div class=\"grid mt-3 mb-3\">\n<div class=\"col-12 lg:col-4 sm:col-4 caja-breadcrumb\"> -->\n <!-- ruta de donde nos encontramos (miga de pan) -->\n <!-- <bit-breadcrumb *ngIf=\"breadcrumb\" [breadcrumb]=\"breadcrumb\"></bit-breadcrumb>\n</div>\n<div *ngIf=\"noToolbar === false\"\n class=\"col-12 lg:col-8 sm:col-8\"> -->\n <!-- botonera de acciones -->\n <!-- <bit-toolbar\n [toolbar]=\"toolbar\"\n [femenino]=\"femenino\"\n [otherActionsDropdown]=\"otherActionsDropdown\"\n [ayuda]=\"ayuda\"\n(onToolbarButtonPressed)=\"onTBPressed($event)\"></bit-toolbar>\n</div>\n</div> -->\n\n<div class=\"grid mt-3 mb-3\">\n <div class=\"col-12 caja-breadcrumb\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + colsBreadcrumb() : 'lg:col-4']\">\n <!-- ruta de donde nos encontramos (miga de pan) -->\n @if (breadcrumb()) {\n <bit-breadcrumb [breadcrumb]=\"breadcrumb()\" />\n }\n </div>\n @if (noToolbar() === false) {\n <div\n class=\"col-12\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + (12- colsBreadcrumb()) : 'lg:col-8']\">\n <!-- botonera de acciones -->\n <bit-toolbar [toolbar]=\"toolbar()\"\n [femenino]=\"femenino()\"\n [otherActionsDropdown]=\"otherActionsDropdown()\"\n [ayuda]=\"ayuda()\"\n (onToolbarButtonPressed)=\"onTBPressed($event)\" />\n </div>\n }\n</div>", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BitBreadCrumbComponent, selector: "bit-breadcrumb", inputs: ["breadcrumb"] }, { kind: "component", type: BitToolbarComponent, selector: "bit-toolbar", inputs: ["toolbar", "ayuda", "femenino", "buttonSize", "otherActionsDropdown"], outputs: ["onToolbarButtonPressed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3262
3234
|
}
|
|
3263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHeaderComponent, decorators: [{
|
|
3264
3236
|
type: Component,
|
|
3265
|
-
args: [{ selector: "bit-header", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<!-- <div class=\"grid mt-3 mb-3\">\
|
|
3237
|
+
args: [{ selector: "bit-header", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<!-- <div class=\"grid mt-3 mb-3\">\n<div class=\"col-12 lg:col-4 sm:col-4 caja-breadcrumb\"> -->\n <!-- ruta de donde nos encontramos (miga de pan) -->\n <!-- <bit-breadcrumb *ngIf=\"breadcrumb\" [breadcrumb]=\"breadcrumb\"></bit-breadcrumb>\n</div>\n<div *ngIf=\"noToolbar === false\"\n class=\"col-12 lg:col-8 sm:col-8\"> -->\n <!-- botonera de acciones -->\n <!-- <bit-toolbar\n [toolbar]=\"toolbar\"\n [femenino]=\"femenino\"\n [otherActionsDropdown]=\"otherActionsDropdown\"\n [ayuda]=\"ayuda\"\n(onToolbarButtonPressed)=\"onTBPressed($event)\"></bit-toolbar>\n</div>\n</div> -->\n\n<div class=\"grid mt-3 mb-3\">\n <div class=\"col-12 caja-breadcrumb\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + colsBreadcrumb() : 'lg:col-4']\">\n <!-- ruta de donde nos encontramos (miga de pan) -->\n @if (breadcrumb()) {\n <bit-breadcrumb [breadcrumb]=\"breadcrumb()\" />\n }\n </div>\n @if (noToolbar() === false) {\n <div\n class=\"col-12\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + (12- colsBreadcrumb()) : 'lg:col-8']\">\n <!-- botonera de acciones -->\n <bit-toolbar [toolbar]=\"toolbar()\"\n [femenino]=\"femenino()\"\n [otherActionsDropdown]=\"otherActionsDropdown()\"\n [ayuda]=\"ayuda()\"\n (onToolbarButtonPressed)=\"onTBPressed($event)\" />\n </div>\n }\n</div>" }]
|
|
3266
3238
|
}], propDecorators: { toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: false }] }], noToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "noToolbar", required: false }] }], otherActionsDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "otherActionsDropdown", required: false }] }], breadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb", required: false }] }], masacciones: [{ type: i0.Input, args: [{ isSignal: true, alias: "masacciones", required: false }] }], colsBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "colsBreadcrumb", required: false }] }], femenino: [{ type: i0.Input, args: [{ isSignal: true, alias: "femenino", required: false }] }], ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], onToolbarButtonPressed: [{ type: i0.Output, args: ["onToolbarButtonPressed"] }] } });
|
|
3267
3239
|
|
|
3268
3240
|
class BitLoadingComponent {
|
|
3269
3241
|
constructor() {
|
|
3270
3242
|
this.generalUtils = inject(GeneralUtils);
|
|
3271
|
-
this.imageSource = input(undefined, ...(ngDevMode ?
|
|
3272
|
-
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3243
|
+
this.imageSource = input(undefined, { ...(ngDevMode ? { debugName: "imageSource" } : /* istanbul ignore next */ {}), alias: "source" });
|
|
3244
|
+
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
3273
3245
|
console.log("Constructor bitloading");
|
|
3274
3246
|
}
|
|
3275
3247
|
ngOnDestroy() {
|
|
3276
3248
|
this.generalUtils.loading.set(0);
|
|
3277
3249
|
}
|
|
3278
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3279
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3280
|
-
@if (loading()) {
|
|
3281
|
-
<div class="modal">
|
|
3282
|
-
<div class="grid">
|
|
3283
|
-
<div class="col-12 text-center">
|
|
3284
|
-
<i class="pi pi-spin pi-spinner icono-loading"></i>
|
|
3285
|
-
</div>
|
|
3286
|
-
</div>
|
|
3287
|
-
</div>
|
|
3288
|
-
}
|
|
3289
|
-
`, isInline: true }); }
|
|
3290
|
-
}
|
|
3291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitLoadingComponent, isStandalone: false, selector: "bit-loading", inputs: { imageSource: { classPropertyName: "imageSource", publicName: "source", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3252
|
+
@if (loading()) {
|
|
3253
|
+
<div class="modal">
|
|
3254
|
+
<div class="grid">
|
|
3255
|
+
<div class="col-12 text-center">
|
|
3256
|
+
<i class="pi pi-spin pi-spinner icono-loading"></i>
|
|
3257
|
+
</div>
|
|
3258
|
+
</div>
|
|
3259
|
+
</div>
|
|
3260
|
+
}
|
|
3261
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3262
|
+
}
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLoadingComponent, decorators: [{
|
|
3292
3264
|
type: Component,
|
|
3293
3265
|
args: [{
|
|
3266
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3294
3267
|
selector: "bit-loading",
|
|
3295
|
-
template: `
|
|
3296
|
-
@if (loading()) {
|
|
3297
|
-
<div class="modal">
|
|
3298
|
-
<div class="grid">
|
|
3299
|
-
<div class="col-12 text-center">
|
|
3300
|
-
<i class="pi pi-spin pi-spinner icono-loading"></i>
|
|
3301
|
-
</div>
|
|
3302
|
-
</div>
|
|
3303
|
-
</div>
|
|
3304
|
-
}
|
|
3268
|
+
template: `
|
|
3269
|
+
@if (loading()) {
|
|
3270
|
+
<div class="modal">
|
|
3271
|
+
<div class="grid">
|
|
3272
|
+
<div class="col-12 text-center">
|
|
3273
|
+
<i class="pi pi-spin pi-spinner icono-loading"></i>
|
|
3274
|
+
</div>
|
|
3275
|
+
</div>
|
|
3276
|
+
</div>
|
|
3277
|
+
}
|
|
3305
3278
|
`,
|
|
3306
3279
|
standalone: false
|
|
3307
3280
|
}]
|
|
@@ -3320,7 +3293,7 @@ class BitNotificationToastComponent extends BaseComponent {
|
|
|
3320
3293
|
//Nos suscribimos a la espera de que envíen notificaciones
|
|
3321
3294
|
subscribeToNotifications() {
|
|
3322
3295
|
this.bitMessageService.observableNotifications
|
|
3323
|
-
.pipe(tap((notification) => {
|
|
3296
|
+
.pipe(takeUntil(this.destroy$), tap((notification) => {
|
|
3324
3297
|
//controlamos si nos llega vacío
|
|
3325
3298
|
if (!notification) {
|
|
3326
3299
|
this.hide();
|
|
@@ -3346,12 +3319,13 @@ class BitNotificationToastComponent extends BaseComponent {
|
|
|
3346
3319
|
getLife(life) {
|
|
3347
3320
|
return life ? life : DEFAULT_LIFE; // Si no se especifica el tiempo, usamos el valor por defecto
|
|
3348
3321
|
}
|
|
3349
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3350
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationToastComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3323
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitNotificationToastComponent, isStandalone: false, selector: "bit-notification-toast", usesInheritance: true, ngImport: i0, template: ` <p-toast key="notification" position="top-right" /> `, isInline: true, dependencies: [{ kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3351
3324
|
}
|
|
3352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationToastComponent, decorators: [{
|
|
3353
3326
|
type: Component,
|
|
3354
3327
|
args: [{
|
|
3328
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3355
3329
|
selector: "bit-notification-toast",
|
|
3356
3330
|
template: ` <p-toast key="notification" position="top-right" /> `,
|
|
3357
3331
|
standalone: false
|
|
@@ -3365,8 +3339,8 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3365
3339
|
this.bitMessageService = inject(BitMessageService);
|
|
3366
3340
|
this.primeMessageService = inject(MessageService);
|
|
3367
3341
|
this.translateService = inject(TranslateService);
|
|
3368
|
-
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : []));
|
|
3369
|
-
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : []));
|
|
3342
|
+
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : /* istanbul ignore next */ []));
|
|
3343
|
+
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : /* istanbul ignore next */ []));
|
|
3370
3344
|
this.messages = [];
|
|
3371
3345
|
}
|
|
3372
3346
|
ngOnInit() {
|
|
@@ -3376,7 +3350,7 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3376
3350
|
//Nos suscribimos a la espera de que envíen notificaciones de error
|
|
3377
3351
|
subscribeToNotificationMessages() {
|
|
3378
3352
|
this.bitMessageService.observableNotificationsErrors
|
|
3379
|
-
.pipe(tap((notificacionError) => {
|
|
3353
|
+
.pipe(takeUntil(this.destroy$), tap((notificacionError) => {
|
|
3380
3354
|
//controlamos si nos llega vacio
|
|
3381
3355
|
if (!notificacionError) {
|
|
3382
3356
|
this.hideErrors();
|
|
@@ -3427,10 +3401,10 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3427
3401
|
else {
|
|
3428
3402
|
console.log("single error");
|
|
3429
3403
|
if (!detail) {
|
|
3430
|
-
this.pushError(title, message);
|
|
3404
|
+
this.pushError(title || "", message || "");
|
|
3431
3405
|
}
|
|
3432
3406
|
else {
|
|
3433
|
-
this.pushError(message, detail);
|
|
3407
|
+
this.pushError(message || "", detail);
|
|
3434
3408
|
}
|
|
3435
3409
|
this.showErrors();
|
|
3436
3410
|
}
|
|
@@ -3483,12 +3457,13 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3483
3457
|
return of([]);
|
|
3484
3458
|
}
|
|
3485
3459
|
}
|
|
3486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3487
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3461
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitNotificationErrorComponent, isStandalone: false, selector: "bit-notification-error", inputs: { escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: ` <p-toast /> `, isInline: true, dependencies: [{ kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3488
3462
|
}
|
|
3489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationErrorComponent, decorators: [{
|
|
3490
3464
|
type: Component,
|
|
3491
3465
|
args: [{
|
|
3466
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3492
3467
|
selector: "bit-notification-error",
|
|
3493
3468
|
template: ` <p-toast /> `,
|
|
3494
3469
|
standalone: false
|
|
@@ -3507,10 +3482,10 @@ class FocusRegisterDirective {
|
|
|
3507
3482
|
onBlur() {
|
|
3508
3483
|
this.focusService.clear();
|
|
3509
3484
|
}
|
|
3510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3511
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusRegisterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3486
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: FocusRegisterDirective, isStandalone: false, selector: "input,select,textarea,bit-input,bit-select", host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" } }, ngImport: i0 }); }
|
|
3512
3487
|
}
|
|
3513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusRegisterDirective, decorators: [{
|
|
3514
3489
|
type: Directive,
|
|
3515
3490
|
args: [{
|
|
3516
3491
|
selector: "input,select,textarea,bit-input,bit-select" //TODO: no funciona bien con autoComplete. No se registra el focus
|
|
@@ -3528,21 +3503,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3528
3503
|
class BitNGUploadComponent {
|
|
3529
3504
|
constructor() {
|
|
3530
3505
|
this.generalUtils = inject(GeneralUtils);
|
|
3531
|
-
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] : []));
|
|
3532
|
-
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] : []));
|
|
3533
|
-
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] : []));
|
|
3534
|
-
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] : []));
|
|
3535
|
-
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] : []));
|
|
3536
|
-
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] : []));
|
|
3537
|
-
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] : []));
|
|
3538
|
-
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] : []));
|
|
3539
|
-
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] : []));
|
|
3540
|
-
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] : []));
|
|
3541
|
-
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] : []));
|
|
3506
|
+
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] : /* istanbul ignore next */ []));
|
|
3507
|
+
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] : /* istanbul ignore next */ []));
|
|
3508
|
+
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] : /* istanbul ignore next */ []));
|
|
3509
|
+
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] : /* istanbul ignore next */ []));
|
|
3510
|
+
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] : /* istanbul ignore next */ []));
|
|
3511
|
+
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] : /* istanbul ignore next */ []));
|
|
3512
|
+
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] : /* istanbul ignore next */ []));
|
|
3513
|
+
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] : /* istanbul ignore next */ []));
|
|
3514
|
+
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] : /* istanbul ignore next */ []));
|
|
3515
|
+
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] : /* istanbul ignore next */ []));
|
|
3516
|
+
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] : /* istanbul ignore next */ []));
|
|
3542
3517
|
this.onSuccess = output();
|
|
3543
3518
|
this.onError = output();
|
|
3544
|
-
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : []));
|
|
3545
|
-
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : []));
|
|
3519
|
+
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []));
|
|
3520
|
+
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : /* istanbul ignore next */ []));
|
|
3546
3521
|
}
|
|
3547
3522
|
ngOnInit() {
|
|
3548
3523
|
this.uploader().onSuccessItem = (item, response, status, headers) => {
|
|
@@ -3622,12 +3597,12 @@ class BitNGUploadComponent {
|
|
|
3622
3597
|
fileOverBase(e) {
|
|
3623
3598
|
this.hasBaseDropZoneOver.set(e);
|
|
3624
3599
|
}
|
|
3625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: BitNGUploadComponent, isStandalone: false, selector: "bit-ng-upload", inputs: { uploader: { classPropertyName: "uploader", publicName: "uploader", isSignal: true, isRequired: true, transformFunction: null }, hasDropZone: { classPropertyName: "hasDropZone", publicName: "hasDropZone", isSignal: true, isRequired: false, transformFunction: null }, hasQueue: { classPropertyName: "hasQueue", publicName: "hasQueue", isSignal: true, isRequired: false, transformFunction: null }, hasSingleUpload: { classPropertyName: "hasSingleUpload", publicName: "hasSingleUpload", isSignal: true, isRequired: false, transformFunction: null }, hasMultipleUpload: { classPropertyName: "hasMultipleUpload", publicName: "hasMultipleUpload", isSignal: true, isRequired: false, transformFunction: null }, deleteItemAfterUpload: { classPropertyName: "deleteItemAfterUpload", publicName: "deleteItemAfterUpload", isSignal: true, isRequired: false, transformFunction: null }, canUpload: { classPropertyName: "canUpload", publicName: "canUpload", isSignal: true, isRequired: false, transformFunction: null }, hasProgressBar: { classPropertyName: "hasProgressBar", publicName: "hasProgressBar", isSignal: true, isRequired: false, transformFunction: null }, sizeDropZone: { classPropertyName: "sizeDropZone", publicName: "sizeDropZone", isSignal: true, isRequired: false, transformFunction: null }, sizeQueue: { classPropertyName: "sizeQueue", publicName: "sizeQueue", isSignal: true, isRequired: false, transformFunction: null }, inputAccept: { classPropertyName: "inputAccept", publicName: "inputAccept", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSuccess: "onSuccess", onError: "onError" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"grid\">\r\n <div class=\"col-12\">\r\n @if (hasDropZone()) {\r\n <div\r\n ng2FileDrop\r\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver()}\"\r\n (fileOver)=\"fileOverBase($event)\"\r\n [uploader]=\"uploader()\"\r\n class=\"well my-drop-zone\">\r\n <div class=\"contenedor-upload\">\r\n <i class=\"fa fa-file documento\"></i>\r\n <div>\r\n <span>{{ \"bitnglibrary.upload.dropfiles\" | transloco }}</span>\r\n <div class=\"grid\">\r\n <div class=\"col-12\">\r\n @if (hasMultipleUpload()) {\r\n <label class=\"btn-upload\">\r\n <input autocomplete=\"upload\" type=\"file\" ng2FileSelect [uploader]=\"uploader()\" multiple [accept]=\"inputAccept()\" />\r\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.multiple' | transloco}}\r\n </label>\r\n }\r\n @if (hasSingleUpload()) {\r\n <label class=\"btn-upload\">\r\n <input autocomplete=\"upload\" #fileRef type=\"file\" ng2FileSelect [uploader]=\"uploader()\" [accept]=\"inputAccept()\" />\r\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.simple' | transloco}}\r\n </label>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"grid\">\r\n @if (hasQueue()) {\r\n <div class=\"col-12\">\r\n <p>{{\"bitnglibrary.upload.uploadfiles\" | transloco}}: {{ uploader()?.queue?.length }}</p>\r\n <p-table [value]=\"uploader()?.queue\">\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th width=\"50%\">{{\"bitnglibrary.upload.filename\" | transloco}}</th>\r\n @if (uploader().options.isHTML5) {\r\n <th>{{\"bitnglibrary.upload.filesize\" | transloco}}</th>\r\n }\r\n @if (uploader().options.isHTML5 && hasProgressBar()) {\r\n <th>{{\"bitnglibrary.upload.progress\" | transloco}}</th>\r\n }\r\n @if (canUpload()) {\r\n <th>Estat</th>\r\n }\r\n <th>{{\"bitnglibrary.upload.actions\" | transloco}}</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-item>\r\n <tr>\r\n <td><strong>{{ item?.file?.name }}</strong></td>\r\n @if (uploader()?.options?.isHTML5) {\r\n <td nowrap>{{ item?.file?.size/1024 | number:'.2' }} KB</td>\r\n }\r\n @if (uploader().options.isHTML5 && hasProgressBar()) {\r\n <td>\r\n <div class=\"progress\" style=\"margin-bottom: 0;\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': item.progress + '%' }\"></div>\r\n </div>\r\n </td>\r\n }\r\n @if (canUpload()) {\r\n <td class=\"p-text-center\">\r\n @if (item.isSuccess) {\r\n <span><i class=\"fa fa-check\"></i></span>\r\n }\r\n @if (item.isCancel) {\r\n <span><i class=\"fa fa-ban\"></i></span>\r\n }\r\n @if (item.isError) {\r\n <span><i class=\"fa fa-times\"></i></span>\r\n }\r\n </td>\r\n }\r\n <td nowrap>\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.upload' | transloco}}\" styleClass=\"p-button-success\"\r\n (onClick)=\"uploadFile(item)\" [disabled]=\"item.isReady || item.isUploading || item.isSuccess\" />\r\n }\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelupload' | transloco}}\" styleClass=\"p-button-warning\"\r\n (onClick)=\"cancelFile(item)\" [disabled]=\"!item.isUploading\" />\r\n }\r\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removefromqueue' | transloco}}\" styleClass=\"p-button-danger\"\r\n (onClick)=\"removeFile(item)\" />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n @if (hasProgressBar()) {\r\n <div class=\"cola-progreso\">\r\n <span>{{\"bitnglibrary.upload.progressqueue\" | transloco}}<span>{{(uploader()?.progress?.toString() == 'NaN'? (\"bitnglibrary.upload.finishupload\"|transloco): uploader()?.progress + ' %')}}</span></span>\r\n <div class=\"progress\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': (uploader()?.progress?.toString() == 'NaN'?'0':uploader()?.progress) + '%' }\"></div>\r\n </div>\r\n </div>\r\n }\r\n <div>\r\n\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.uploadall' | transloco}}\" styleClass=\"p-button-success\"\r\n (onClick)=\"uploadAll()\" [disabled]=\"!(uploader()?.getNotUploadedItems()?.length)\" />\r\n }\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelall' | transloco}}\" styleClass=\"p-button-warning\"\r\n (onClick)=\"cancelQueue()\" [disabled]=\"!(uploader()?.isUploading)\" />\r\n }\r\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removeall' | transloco}}\" styleClass=\"p-button-danger\"\r\n (onClick)=\"removeQueue()\" [disabled]=\"!(uploader()?.queue?.length)\" />\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i5.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i5.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "pipe", type: i2.DecimalPipe, name: "number" }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNGUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3601
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitNGUploadComponent, isStandalone: false, selector: "bit-ng-upload", inputs: { uploader: { classPropertyName: "uploader", publicName: "uploader", isSignal: true, isRequired: true, transformFunction: null }, hasDropZone: { classPropertyName: "hasDropZone", publicName: "hasDropZone", isSignal: true, isRequired: false, transformFunction: null }, hasQueue: { classPropertyName: "hasQueue", publicName: "hasQueue", isSignal: true, isRequired: false, transformFunction: null }, hasSingleUpload: { classPropertyName: "hasSingleUpload", publicName: "hasSingleUpload", isSignal: true, isRequired: false, transformFunction: null }, hasMultipleUpload: { classPropertyName: "hasMultipleUpload", publicName: "hasMultipleUpload", isSignal: true, isRequired: false, transformFunction: null }, deleteItemAfterUpload: { classPropertyName: "deleteItemAfterUpload", publicName: "deleteItemAfterUpload", isSignal: true, isRequired: false, transformFunction: null }, canUpload: { classPropertyName: "canUpload", publicName: "canUpload", isSignal: true, isRequired: false, transformFunction: null }, hasProgressBar: { classPropertyName: "hasProgressBar", publicName: "hasProgressBar", isSignal: true, isRequired: false, transformFunction: null }, sizeDropZone: { classPropertyName: "sizeDropZone", publicName: "sizeDropZone", isSignal: true, isRequired: false, transformFunction: null }, sizeQueue: { classPropertyName: "sizeQueue", publicName: "sizeQueue", isSignal: true, isRequired: false, transformFunction: null }, inputAccept: { classPropertyName: "inputAccept", publicName: "inputAccept", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSuccess: "onSuccess", onError: "onError" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"grid\">\n <div class=\"col-12\">\n @if (hasDropZone()) {\n <div\n ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver()}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader()\"\n class=\"well my-drop-zone\">\n <div class=\"contenedor-upload\">\n <i class=\"fa fa-file documento\"></i>\n <div>\n <span>{{ \"bitnglibrary.upload.dropfiles\" | transloco }}</span>\n <div class=\"grid\">\n <div class=\"col-12\">\n @if (hasMultipleUpload()) {\n <label class=\"btn-upload\">\n <input autocomplete=\"upload\" type=\"file\" ng2FileSelect [uploader]=\"uploader()\" multiple [accept]=\"inputAccept()\" />\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.multiple' | transloco}}\n </label>\n }\n @if (hasSingleUpload()) {\n <label class=\"btn-upload\">\n <input autocomplete=\"upload\" #fileRef type=\"file\" ng2FileSelect [uploader]=\"uploader()\" [accept]=\"inputAccept()\" />\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.simple' | transloco}}\n </label>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n</div>\n<div class=\"grid\">\n @if (hasQueue()) {\n <div class=\"col-12\">\n <p>{{\"bitnglibrary.upload.uploadfiles\" | transloco}}: {{ uploader()?.queue?.length }}</p>\n <p-table [value]=\"uploader()?.queue\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th width=\"50%\">{{\"bitnglibrary.upload.filename\" | transloco}}</th>\n @if (uploader().options.isHTML5) {\n <th>{{\"bitnglibrary.upload.filesize\" | transloco}}</th>\n }\n @if (uploader().options.isHTML5 && hasProgressBar()) {\n <th>{{\"bitnglibrary.upload.progress\" | transloco}}</th>\n }\n @if (canUpload()) {\n <th>Estat</th>\n }\n <th>{{\"bitnglibrary.upload.actions\" | transloco}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-item>\n <tr>\n <td><strong>{{ item?.file?.name }}</strong></td>\n @if (uploader()?.options?.isHTML5) {\n <td nowrap>{{ item?.file?.size/1024 | number:'.2' }} KB</td>\n }\n @if (uploader().options.isHTML5 && hasProgressBar()) {\n <td>\n <div class=\"progress\" style=\"margin-bottom: 0;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': item.progress + '%' }\"></div>\n </div>\n </td>\n }\n @if (canUpload()) {\n <td class=\"p-text-center\">\n @if (item.isSuccess) {\n <span><i class=\"fa fa-check\"></i></span>\n }\n @if (item.isCancel) {\n <span><i class=\"fa fa-ban\"></i></span>\n }\n @if (item.isError) {\n <span><i class=\"fa fa-times\"></i></span>\n }\n </td>\n }\n <td nowrap>\n @if (canUpload()) {\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.upload' | transloco}}\" styleClass=\"p-button-success\"\n (onClick)=\"uploadFile(item)\" [disabled]=\"item.isReady || item.isUploading || item.isSuccess\" />\n }\n @if (canUpload()) {\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelupload' | transloco}}\" styleClass=\"p-button-warning\"\n (onClick)=\"cancelFile(item)\" [disabled]=\"!item.isUploading\" />\n }\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removefromqueue' | transloco}}\" styleClass=\"p-button-danger\"\n (onClick)=\"removeFile(item)\" />\n </td>\n </tr>\n </ng-template>\n </p-table>\n @if (hasProgressBar()) {\n <div class=\"cola-progreso\">\n <span>{{\"bitnglibrary.upload.progressqueue\" | transloco}}<span>{{(uploader()?.progress?.toString() == 'NaN'? (\"bitnglibrary.upload.finishupload\"|transloco): uploader()?.progress + ' %')}}</span></span>\n <div class=\"progress\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': (uploader()?.progress?.toString() == 'NaN'?'0':uploader()?.progress) + '%' }\"></div>\n </div>\n </div>\n }\n <div>\n\n @if (canUpload()) {\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.uploadall' | transloco}}\" styleClass=\"p-button-success\"\n (onClick)=\"uploadAll()\" [disabled]=\"!(uploader()?.getNotUploadedItems()?.length)\" />\n }\n @if (canUpload()) {\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelall' | transloco}}\" styleClass=\"p-button-warning\"\n (onClick)=\"cancelQueue()\" [disabled]=\"!(uploader()?.isUploading)\" />\n }\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removeall' | transloco}}\" styleClass=\"p-button-danger\"\n (onClick)=\"removeQueue()\" [disabled]=\"!(uploader()?.queue?.length)\" />\n </div>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i5.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i5.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "pipe", type: i2.DecimalPipe, name: "number" }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3627
3602
|
}
|
|
3628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNGUploadComponent, decorators: [{
|
|
3629
3604
|
type: Component,
|
|
3630
|
-
args: [{ selector: "bit-ng-upload", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"grid\">\
|
|
3605
|
+
args: [{ selector: "bit-ng-upload", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"grid\">\n <div class=\"col-12\">\n @if (hasDropZone()) {\n <div\n ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver()}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader()\"\n class=\"well my-drop-zone\">\n <div class=\"contenedor-upload\">\n <i class=\"fa fa-file documento\"></i>\n <div>\n <span>{{ \"bitnglibrary.upload.dropfiles\" | transloco }}</span>\n <div class=\"grid\">\n <div class=\"col-12\">\n @if (hasMultipleUpload()) {\n <label class=\"btn-upload\">\n <input autocomplete=\"upload\" type=\"file\" ng2FileSelect [uploader]=\"uploader()\" multiple [accept]=\"inputAccept()\" />\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.multiple' | transloco}}\n </label>\n }\n @if (hasSingleUpload()) {\n <label class=\"btn-upload\">\n <input autocomplete=\"upload\" #fileRef type=\"file\" ng2FileSelect [uploader]=\"uploader()\" [accept]=\"inputAccept()\" />\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.simple' | transloco}}\n </label>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n</div>\n<div class=\"grid\">\n @if (hasQueue()) {\n <div class=\"col-12\">\n <p>{{\"bitnglibrary.upload.uploadfiles\" | transloco}}: {{ uploader()?.queue?.length }}</p>\n <p-table [value]=\"uploader()?.queue\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th width=\"50%\">{{\"bitnglibrary.upload.filename\" | transloco}}</th>\n @if (uploader().options.isHTML5) {\n <th>{{\"bitnglibrary.upload.filesize\" | transloco}}</th>\n }\n @if (uploader().options.isHTML5 && hasProgressBar()) {\n <th>{{\"bitnglibrary.upload.progress\" | transloco}}</th>\n }\n @if (canUpload()) {\n <th>Estat</th>\n }\n <th>{{\"bitnglibrary.upload.actions\" | transloco}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-item>\n <tr>\n <td><strong>{{ item?.file?.name }}</strong></td>\n @if (uploader()?.options?.isHTML5) {\n <td nowrap>{{ item?.file?.size/1024 | number:'.2' }} KB</td>\n }\n @if (uploader().options.isHTML5 && hasProgressBar()) {\n <td>\n <div class=\"progress\" style=\"margin-bottom: 0;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': item.progress + '%' }\"></div>\n </div>\n </td>\n }\n @if (canUpload()) {\n <td class=\"p-text-center\">\n @if (item.isSuccess) {\n <span><i class=\"fa fa-check\"></i></span>\n }\n @if (item.isCancel) {\n <span><i class=\"fa fa-ban\"></i></span>\n }\n @if (item.isError) {\n <span><i class=\"fa fa-times\"></i></span>\n }\n </td>\n }\n <td nowrap>\n @if (canUpload()) {\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.upload' | transloco}}\" styleClass=\"p-button-success\"\n (onClick)=\"uploadFile(item)\" [disabled]=\"item.isReady || item.isUploading || item.isSuccess\" />\n }\n @if (canUpload()) {\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelupload' | transloco}}\" styleClass=\"p-button-warning\"\n (onClick)=\"cancelFile(item)\" [disabled]=\"!item.isUploading\" />\n }\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removefromqueue' | transloco}}\" styleClass=\"p-button-danger\"\n (onClick)=\"removeFile(item)\" />\n </td>\n </tr>\n </ng-template>\n </p-table>\n @if (hasProgressBar()) {\n <div class=\"cola-progreso\">\n <span>{{\"bitnglibrary.upload.progressqueue\" | transloco}}<span>{{(uploader()?.progress?.toString() == 'NaN'? (\"bitnglibrary.upload.finishupload\"|transloco): uploader()?.progress + ' %')}}</span></span>\n <div class=\"progress\">\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': (uploader()?.progress?.toString() == 'NaN'?'0':uploader()?.progress) + '%' }\"></div>\n </div>\n </div>\n }\n <div>\n\n @if (canUpload()) {\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.uploadall' | transloco}}\" styleClass=\"p-button-success\"\n (onClick)=\"uploadAll()\" [disabled]=\"!(uploader()?.getNotUploadedItems()?.length)\" />\n }\n @if (canUpload()) {\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelall' | transloco}}\" styleClass=\"p-button-warning\"\n (onClick)=\"cancelQueue()\" [disabled]=\"!(uploader()?.isUploading)\" />\n }\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removeall' | transloco}}\" styleClass=\"p-button-danger\"\n (onClick)=\"removeQueue()\" [disabled]=\"!(uploader()?.queue?.length)\" />\n </div>\n </div>\n }\n</div>\n" }]
|
|
3631
3606
|
}], propDecorators: { uploader: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploader", required: true }] }], hasDropZone: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDropZone", required: false }] }], hasQueue: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasQueue", required: false }] }], hasSingleUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasSingleUpload", required: false }] }], hasMultipleUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasMultipleUpload", required: false }] }], deleteItemAfterUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteItemAfterUpload", required: false }] }], canUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "canUpload", required: false }] }], hasProgressBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasProgressBar", required: false }] }], sizeDropZone: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeDropZone", required: false }] }], sizeQueue: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeQueue", required: false }] }], inputAccept: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputAccept", required: false }] }], onSuccess: [{ type: i0.Output, args: ["onSuccess"] }], onError: [{ type: i0.Output, args: ["onError"] }], fileInput: [{ type: i0.ViewChild, args: ["fileRef", { isSignal: true }] }] } });
|
|
3632
3607
|
|
|
3633
3608
|
/**
|
|
@@ -3637,15 +3612,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3637
3612
|
*/
|
|
3638
3613
|
class BitUserControlsComponent {
|
|
3639
3614
|
constructor() {
|
|
3640
|
-
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : []));
|
|
3641
|
-
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : []));
|
|
3615
|
+
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : /* istanbul ignore next */ []));
|
|
3616
|
+
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : /* istanbul ignore next */ []));
|
|
3642
3617
|
}
|
|
3643
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3644
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3618
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitUserControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3619
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitUserControlsComponent, isStandalone: false, selector: "bit-user-controls", inputs: { usuario: { classPropertyName: "usuario", publicName: "usuario", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (usuario()) {\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3645
3620
|
}
|
|
3646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitUserControlsComponent, decorators: [{
|
|
3647
3622
|
type: Component,
|
|
3648
|
-
args: [{ selector: "bit-user-controls", standalone: false, template: "@if (usuario()) {\
|
|
3623
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-user-controls", standalone: false, template: "@if (usuario()) {\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\n}" }]
|
|
3649
3624
|
}], propDecorators: { usuario: [{ type: i0.Input, args: [{ isSignal: true, alias: "usuario", required: true }] }] } });
|
|
3650
3625
|
|
|
3651
3626
|
/**
|
|
@@ -3653,30 +3628,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3653
3628
|
**/
|
|
3654
3629
|
class BitColumnBooleanComponent {
|
|
3655
3630
|
constructor() {
|
|
3656
|
-
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] : [])); // objeto del que extraer la propiedad
|
|
3657
|
-
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] : [])); // propiedad booleana que procesar
|
|
3658
|
-
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] : []));
|
|
3659
|
-
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] : []));
|
|
3660
|
-
}
|
|
3661
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3662
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3663
|
-
@if (data()) {
|
|
3664
|
-
<span class="ui-cell-data">
|
|
3665
|
-
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
3666
|
-
</span>
|
|
3667
|
-
}
|
|
3668
|
-
`, isInline: true }); }
|
|
3669
|
-
}
|
|
3670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3631
|
+
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ [])); // objeto del que extraer la propiedad
|
|
3632
|
+
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ [])); // propiedad booleana que procesar
|
|
3633
|
+
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] : /* istanbul ignore next */ []));
|
|
3634
|
+
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] : /* istanbul ignore next */ []));
|
|
3635
|
+
}
|
|
3636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitColumnBooleanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3637
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitColumnBooleanComponent, isStandalone: false, selector: "bit-column-boolean", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, textTrue: { classPropertyName: "textTrue", publicName: "textTrue", isSignal: true, isRequired: false, transformFunction: null }, textFalse: { classPropertyName: "textFalse", publicName: "textFalse", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3638
|
+
@if (data()) {
|
|
3639
|
+
<span class="ui-cell-data">
|
|
3640
|
+
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
3641
|
+
</span>
|
|
3642
|
+
}
|
|
3643
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3644
|
+
}
|
|
3645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitColumnBooleanComponent, decorators: [{
|
|
3671
3646
|
type: Component,
|
|
3672
3647
|
args: [{
|
|
3648
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3673
3649
|
selector: "bit-column-boolean",
|
|
3674
|
-
template: `
|
|
3675
|
-
@if (data()) {
|
|
3676
|
-
<span class="ui-cell-data">
|
|
3677
|
-
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
3678
|
-
</span>
|
|
3679
|
-
}
|
|
3650
|
+
template: `
|
|
3651
|
+
@if (data()) {
|
|
3652
|
+
<span class="ui-cell-data">
|
|
3653
|
+
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
3654
|
+
</span>
|
|
3655
|
+
}
|
|
3680
3656
|
`,
|
|
3681
3657
|
standalone: false
|
|
3682
3658
|
}]
|
|
@@ -3684,9 +3660,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3684
3660
|
|
|
3685
3661
|
class BitDomainValueComponent {
|
|
3686
3662
|
constructor() {
|
|
3687
|
-
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
3688
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : []));
|
|
3689
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
3663
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3664
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
3665
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
3690
3666
|
this.translatedValue = computed(() => {
|
|
3691
3667
|
// buscar traducción para el valor en el dominio
|
|
3692
3668
|
const data = this.data();
|
|
@@ -3701,19 +3677,20 @@ class BitDomainValueComponent {
|
|
|
3701
3677
|
else {
|
|
3702
3678
|
return this.emptyText() ?? "Carregant...";
|
|
3703
3679
|
}
|
|
3704
|
-
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : []));
|
|
3680
|
+
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : /* istanbul ignore next */ []));
|
|
3705
3681
|
}
|
|
3706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3708
|
-
<span>{{ translatedValue() }}</span>
|
|
3709
|
-
`, isInline: true }); }
|
|
3682
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDomainValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3683
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitDomainValueComponent, isStandalone: false, selector: "bit-domain-value", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3684
|
+
<span>{{ translatedValue() }}</span>
|
|
3685
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3710
3686
|
}
|
|
3711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDomainValueComponent, decorators: [{
|
|
3712
3688
|
type: Component,
|
|
3713
3689
|
args: [{
|
|
3690
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3714
3691
|
selector: "bit-domain-value",
|
|
3715
|
-
template: `
|
|
3716
|
-
<span>{{ translatedValue() }}</span>
|
|
3692
|
+
template: `
|
|
3693
|
+
<span>{{ translatedValue() }}</span>
|
|
3717
3694
|
`,
|
|
3718
3695
|
standalone: false
|
|
3719
3696
|
}]
|
|
@@ -3726,20 +3703,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3726
3703
|
class BitGeneralComponent extends BaseComponent {
|
|
3727
3704
|
constructor() {
|
|
3728
3705
|
super(...arguments);
|
|
3729
|
-
this.control = input(undefined, ...(ngDevMode ?
|
|
3730
|
-
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] : []));
|
|
3731
|
-
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] : []));
|
|
3732
|
-
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
3733
|
-
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] : []));
|
|
3734
|
-
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] : []));
|
|
3735
|
-
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] : []));
|
|
3736
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : [])); // clave de la ayuda contextual
|
|
3737
|
-
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
3738
|
-
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
3739
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : [])); // forzar que no se reserve espacio para el nombre del campo
|
|
3740
|
-
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] : []));
|
|
3741
|
-
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] : []));
|
|
3742
|
-
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] : []));
|
|
3706
|
+
this.control = input(undefined, { ...(ngDevMode ? { debugName: "control" } : /* istanbul ignore next */ {}), alias: "formControl" });
|
|
3707
|
+
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] : /* istanbul ignore next */ []));
|
|
3708
|
+
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] : /* istanbul ignore next */ []));
|
|
3709
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3710
|
+
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] : /* istanbul ignore next */ []));
|
|
3711
|
+
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] : /* istanbul ignore next */ []));
|
|
3712
|
+
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] : /* istanbul ignore next */ []));
|
|
3713
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual
|
|
3714
|
+
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3715
|
+
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
3716
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ [])); // forzar que no se reserve espacio para el nombre del campo
|
|
3717
|
+
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] : /* istanbul ignore next */ []));
|
|
3718
|
+
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] : /* istanbul ignore next */ []));
|
|
3719
|
+
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] : /* istanbul ignore next */ []));
|
|
3743
3720
|
this.onChange = output();
|
|
3744
3721
|
this.onTouch = output();
|
|
3745
3722
|
this.onBlur = output();
|
|
@@ -3748,7 +3725,7 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3748
3725
|
this.dataTestId = computed(() => {
|
|
3749
3726
|
const testid = this.testid();
|
|
3750
3727
|
return testid ? testid : this.nombre();
|
|
3751
|
-
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : []));
|
|
3728
|
+
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : /* istanbul ignore next */ []));
|
|
3752
3729
|
}
|
|
3753
3730
|
get obligatorio() {
|
|
3754
3731
|
let control = this.control();
|
|
@@ -3757,10 +3734,10 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3757
3734
|
showAyuda() {
|
|
3758
3735
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3759
3736
|
}
|
|
3760
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3761
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3737
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitGeneralComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3738
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitGeneralComponent, isStandalone: true, inputs: { control: { classPropertyName: "control", publicName: "formControl", isSignal: true, isRequired: false, transformFunction: null }, nombre: { classPropertyName: "nombre", publicName: "nombre", isSignal: true, isRequired: false, transformFunction: null }, nombreDirectiva: { classPropertyName: "nombreDirectiva", publicName: "nombreDirectiva", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, estilo: { classPropertyName: "estilo", publicName: "estilo", isSignal: true, isRequired: false, transformFunction: null }, tooltipTexto: { classPropertyName: "tooltipTexto", publicName: "tooltipTexto", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosicion: { classPropertyName: "tooltipPosicion", publicName: "tooltipPosicion", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, forceObligatorio: { classPropertyName: "forceObligatorio", publicName: "forceObligatorio", isSignal: true, isRequired: false, transformFunction: null }, testid: { classPropertyName: "testid", publicName: "testid", isSignal: true, isRequired: false, transformFunction: null }, log: { classPropertyName: "log", publicName: "log", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onTouch: "onTouch", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0 }); }
|
|
3762
3739
|
}
|
|
3763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitGeneralComponent, decorators: [{
|
|
3764
3741
|
type: Directive
|
|
3765
3742
|
}], propDecorators: { control: [{ type: i0.Input, args: [{ isSignal: true, alias: "formControl", required: false }] }], nombre: [{ type: i0.Input, args: [{ isSignal: true, alias: "nombre", required: false }] }], nombreDirectiva: [{ type: i0.Input, args: [{ isSignal: true, alias: "nombreDirectiva", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], estilo: [{ type: i0.Input, args: [{ isSignal: true, alias: "estilo", required: false }] }], tooltipTexto: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTexto", required: false }] }], tooltipPosicion: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosicion", required: false }] }], ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], forceObligatorio: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceObligatorio", required: false }] }], testid: [{ type: i0.Input, args: [{ isSignal: true, alias: "testid", required: false }] }], log: [{ type: i0.Input, args: [{ isSignal: true, alias: "log", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onTouch: [{ type: i0.Output, args: ["onTouch"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }] } });
|
|
3766
3743
|
|
|
@@ -3771,7 +3748,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3771
3748
|
class BitCustomComponent extends BitGeneralComponent {
|
|
3772
3749
|
constructor() {
|
|
3773
3750
|
super(...arguments);
|
|
3774
|
-
this.
|
|
3751
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
3752
|
+
this.isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3775
3753
|
// nos permite decirle a Angular que nuestro componente ha modificado su valor
|
|
3776
3754
|
this._onChange = (_) => { };
|
|
3777
3755
|
// nos permite decirle a Angular que nuestro componente ha sido tacado
|
|
@@ -3805,10 +3783,10 @@ class BitCustomComponent extends BitGeneralComponent {
|
|
|
3805
3783
|
registerOnTouched(fn) {
|
|
3806
3784
|
this._onTouch = fn;
|
|
3807
3785
|
}
|
|
3808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3809
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCustomComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3787
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BitCustomComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
3810
3788
|
}
|
|
3811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCustomComponent, decorators: [{
|
|
3812
3790
|
type: Directive
|
|
3813
3791
|
}] });
|
|
3814
3792
|
|
|
@@ -3831,32 +3809,33 @@ class BitTextComponent extends BitCustomComponent {
|
|
|
3831
3809
|
else {
|
|
3832
3810
|
this.value = v;
|
|
3833
3811
|
}
|
|
3812
|
+
this.cdr.markForCheck();
|
|
3834
3813
|
}
|
|
3835
3814
|
onChangeValue(text) {
|
|
3836
3815
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + text);
|
|
3837
3816
|
this.value = text;
|
|
3838
3817
|
this.changeComponentValue(this.value);
|
|
3839
3818
|
}
|
|
3840
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3841
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3819
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3820
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTextComponent, isStandalone: false, selector: "bit-text", providers: [{
|
|
3842
3821
|
provide: NG_VALUE_ACCESSOR,
|
|
3843
3822
|
useExisting: forwardRef(() => BitTextComponent),
|
|
3844
3823
|
multi: true
|
|
3845
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
3824
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!tooltipTexto() && !readOnly()) {\n <input\n pInputText\n type=\"text\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n autocomplete=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [placeholder]=\"placeholder()\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (tooltipTexto() && !readOnly()) {\n <input\n pInputText\n type=\"text\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [pTooltip]=\"tooltipTexto()\"\n [tooltipPosition]=\"tooltipPosicion()\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$3.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3846
3825
|
}
|
|
3847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextComponent, decorators: [{
|
|
3848
3827
|
type: Component,
|
|
3849
|
-
args: [{ selector: "bit-text", providers: [{
|
|
3828
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-text", providers: [{
|
|
3850
3829
|
provide: NG_VALUE_ACCESSOR,
|
|
3851
3830
|
useExisting: forwardRef(() => BitTextComponent),
|
|
3852
3831
|
multi: true
|
|
3853
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
3832
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!tooltipTexto() && !readOnly()) {\n <input\n pInputText\n type=\"text\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n autocomplete=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [placeholder]=\"placeholder()\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (tooltipTexto() && !readOnly()) {\n <input\n pInputText\n type=\"text\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [pTooltip]=\"tooltipTexto()\"\n [tooltipPosition]=\"tooltipPosicion()\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
3854
3833
|
}] });
|
|
3855
3834
|
|
|
3856
3835
|
class BitTextAreaComponent extends BitCustomComponent {
|
|
3857
3836
|
constructor() {
|
|
3858
3837
|
super(...arguments);
|
|
3859
|
-
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : []));
|
|
3838
|
+
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : /* istanbul ignore next */ []));
|
|
3860
3839
|
}
|
|
3861
3840
|
get value_lectura() {
|
|
3862
3841
|
if (this.value == null) {
|
|
@@ -3876,26 +3855,27 @@ class BitTextAreaComponent extends BitCustomComponent {
|
|
|
3876
3855
|
else {
|
|
3877
3856
|
this.value = v;
|
|
3878
3857
|
}
|
|
3858
|
+
this.cdr.markForCheck();
|
|
3879
3859
|
}
|
|
3880
3860
|
onChangeValue(text) {
|
|
3881
3861
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + text);
|
|
3882
3862
|
this.value = text;
|
|
3883
3863
|
this.changeComponentValue(this.value);
|
|
3884
3864
|
}
|
|
3885
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3886
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3865
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3866
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTextAreaComponent, isStandalone: false, selector: "bit-textarea", inputs: { filas: { classPropertyName: "filas", publicName: "filas", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
3887
3867
|
provide: NG_VALUE_ACCESSOR,
|
|
3888
3868
|
useExisting: forwardRef(() => BitTextAreaComponent),
|
|
3889
3869
|
multi: true
|
|
3890
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
3870
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <pre class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</pre>\n}\n@if (!readOnly()) {\n <textarea\n pInputTextarea\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n autocomplete=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n class=\"{{ estilo() }}\"\n [rows]=\"filas()\"\n (ngModelChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n ></textarea>\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$4.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3891
3871
|
}
|
|
3892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextAreaComponent, decorators: [{
|
|
3893
3873
|
type: Component,
|
|
3894
|
-
args: [{ selector: "bit-textarea", providers: [{
|
|
3874
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-textarea", providers: [{
|
|
3895
3875
|
provide: NG_VALUE_ACCESSOR,
|
|
3896
3876
|
useExisting: forwardRef(() => BitTextAreaComponent),
|
|
3897
3877
|
multi: true
|
|
3898
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
3878
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <pre class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</pre>\n}\n@if (!readOnly()) {\n <textarea\n pInputTextarea\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n autocomplete=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n class=\"{{ estilo() }}\"\n [rows]=\"filas()\"\n (ngModelChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n ></textarea>\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
3899
3879
|
}], propDecorators: { filas: [{ type: i0.Input, args: [{ isSignal: true, alias: "filas", required: false }] }] } });
|
|
3900
3880
|
|
|
3901
3881
|
/** Clase general para componentes personalizados de tipo Fecha como puede ser BitDate, BitTime y BitDateTime */
|
|
@@ -3903,12 +3883,12 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3903
3883
|
constructor() {
|
|
3904
3884
|
super(...arguments);
|
|
3905
3885
|
// calendarios
|
|
3906
|
-
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] : [])); // fecha mínima seleccionable
|
|
3907
|
-
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] : [])); // fecha máxima seleccionable
|
|
3908
|
-
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] : [])); // desabilitar edicion por teclado
|
|
3909
|
-
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] : []));
|
|
3910
|
-
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] : []));
|
|
3911
|
-
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
|
|
3886
|
+
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] : /* istanbul ignore next */ [])); // fecha mínima seleccionable
|
|
3887
|
+
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] : /* istanbul ignore next */ [])); // fecha máxima seleccionable
|
|
3888
|
+
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] : /* istanbul ignore next */ [])); // desabilitar edicion por teclado
|
|
3889
|
+
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] : /* istanbul ignore next */ []));
|
|
3890
|
+
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] : /* istanbul ignore next */ []));
|
|
3891
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
3912
3892
|
this.onSelect = output();
|
|
3913
3893
|
this.dateUtils = inject(DateUtils);
|
|
3914
3894
|
this.translateService = inject(TranslateService);
|
|
@@ -3983,10 +3963,10 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3983
3963
|
isValueCorrect(value) {
|
|
3984
3964
|
return moment(value, this.visual_format, true).isValid();
|
|
3985
3965
|
}
|
|
3986
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3987
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3966
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3967
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitCalendarComponent, isStandalone: true, inputs: { fechaMinima: { classPropertyName: "fechaMinima", publicName: "fechaMinima", isSignal: true, isRequired: false, transformFunction: null }, fechaMaxima: { classPropertyName: "fechaMaxima", publicName: "fechaMaxima", isSignal: true, isRequired: false, transformFunction: null }, calendarReadOnlyInput: { classPropertyName: "calendarReadOnlyInput", publicName: "calendarReadOnlyInput", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelect: "onSelect" }, usesInheritance: true, ngImport: i0 }); }
|
|
3988
3968
|
}
|
|
3989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCalendarComponent, decorators: [{
|
|
3990
3970
|
type: Directive
|
|
3991
3971
|
}], propDecorators: { fechaMinima: [{ type: i0.Input, args: [{ isSignal: true, alias: "fechaMinima", required: false }] }], fechaMaxima: [{ type: i0.Input, args: [{ isSignal: true, alias: "fechaMaxima", required: false }] }], calendarReadOnlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarReadOnlyInput", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }] } });
|
|
3992
3972
|
|
|
@@ -3994,7 +3974,7 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
3994
3974
|
constructor() {
|
|
3995
3975
|
super();
|
|
3996
3976
|
this.dateUtils = inject(DateUtils);
|
|
3997
|
-
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
3977
|
+
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3998
3978
|
this.visual_format = DateUtils.FORMAT_SHORT_DATE;
|
|
3999
3979
|
}
|
|
4000
3980
|
get value_lectura() {
|
|
@@ -4017,6 +3997,7 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4017
3997
|
this.value = this.dateUtils.getStringAsDate(v, this.getDateFormat());
|
|
4018
3998
|
this.log() && console.log("new value:" + this.value);
|
|
4019
3999
|
}
|
|
4000
|
+
this.cdr.markForCheck();
|
|
4020
4001
|
}
|
|
4021
4002
|
getDateAsString(d) {
|
|
4022
4003
|
let value = this.dateUtils.getDateAsString(d, this.getDateFormat());
|
|
@@ -4025,27 +4006,27 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4025
4006
|
getDateFormat() {
|
|
4026
4007
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_DATE;
|
|
4027
4008
|
}
|
|
4028
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4029
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4010
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDateComponent, isStandalone: false, selector: "bit-date", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4030
4011
|
provide: NG_VALUE_ACCESSOR,
|
|
4031
4012
|
useExisting: forwardRef(() => BitDateComponent),
|
|
4032
4013
|
multi: true
|
|
4033
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4014
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-datepicker class=\"FormControl\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n autofocus=\"false\"\n [disabled]=\"isDisabled()\"\n [(ngModel)]=\"value\"\n dateFormat=\"dd/mm/yy\"\n placeholder=\"{{ placeholder() }}\"\n [showOtherMonths]=\"true\"\n [selectOtherMonths]=\"true\"\n [readonlyInput]=\"calendarReadOnlyInput()\"\n [minDate]=\"fechaMinima()\"\n [maxDate]=\"fechaMaxima()\"\n yearRange=\"2000:2050\"\n [firstDayOfWeek]=\"1\"\n showButtonBar={{showButtonBar()}}\n [appendTo]=\"appendTo()\"\n (onSelect)=\"_onSelect(value)\"\n (onClear)=\"_onClear()\"\n (onClearClick)=\"_onClear()\"\n (onFocus)=\"_onFocus()\"\n (onBlur)=\"_onBlur($event)\"\n (onInput)=\"_onInput($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (!readOnly()) {\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4034
4015
|
}
|
|
4035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateComponent, decorators: [{
|
|
4036
4017
|
type: Component,
|
|
4037
|
-
args: [{ selector: "bit-date", providers: [{
|
|
4018
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-date", providers: [{
|
|
4038
4019
|
provide: NG_VALUE_ACCESSOR,
|
|
4039
4020
|
useExisting: forwardRef(() => BitDateComponent),
|
|
4040
4021
|
multi: true
|
|
4041
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4022
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-datepicker class=\"FormControl\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n autofocus=\"false\"\n [disabled]=\"isDisabled()\"\n [(ngModel)]=\"value\"\n dateFormat=\"dd/mm/yy\"\n placeholder=\"{{ placeholder() }}\"\n [showOtherMonths]=\"true\"\n [selectOtherMonths]=\"true\"\n [readonlyInput]=\"calendarReadOnlyInput()\"\n [minDate]=\"fechaMinima()\"\n [maxDate]=\"fechaMaxima()\"\n yearRange=\"2000:2050\"\n [firstDayOfWeek]=\"1\"\n showButtonBar={{showButtonBar()}}\n [appendTo]=\"appendTo()\"\n (onSelect)=\"_onSelect(value)\"\n (onClear)=\"_onClear()\"\n (onClearClick)=\"_onClear()\"\n (onFocus)=\"_onFocus()\"\n (onBlur)=\"_onBlur($event)\"\n (onInput)=\"_onInput($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (!readOnly()) {\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4042
4023
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
4043
4024
|
|
|
4044
4025
|
class BitTimeComponent extends BitCalendarComponent {
|
|
4045
4026
|
constructor() {
|
|
4046
4027
|
super();
|
|
4047
4028
|
this.dateUtils = inject(DateUtils);
|
|
4048
|
-
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4029
|
+
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4049
4030
|
this.visual_format = DateUtils.FORMAT_SHORT_TIME;
|
|
4050
4031
|
}
|
|
4051
4032
|
get value_lectura() {
|
|
@@ -4068,6 +4049,7 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4068
4049
|
this.value = this.dateUtils.getStringAsDate(v, this.getDateFormat());
|
|
4069
4050
|
this.log() && console.log("new value:" + this.value);
|
|
4070
4051
|
}
|
|
4052
|
+
this.cdr.markForCheck();
|
|
4071
4053
|
}
|
|
4072
4054
|
getDateAsString(d) {
|
|
4073
4055
|
let value = this.dateUtils.getTimeAsString(d, this.getDateFormat());
|
|
@@ -4076,27 +4058,27 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4076
4058
|
getDateFormat() {
|
|
4077
4059
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_TIME;
|
|
4078
4060
|
}
|
|
4079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4080
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4061
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4062
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTimeComponent, isStandalone: false, selector: "bit-time", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4081
4063
|
provide: NG_VALUE_ACCESSOR,
|
|
4082
4064
|
useExisting: forwardRef(() => BitTimeComponent),
|
|
4083
4065
|
multi: true
|
|
4084
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4066
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-datepicker class=\"FormControl\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n autofocus=\"false\"\n [disabled]=\"isDisabled()\"\n [(ngModel)]=\"value\"\n dateFormat=\"HH:mm\"\n [timeOnly]=\"true\"\n placeholder=\"{{ placeholder() }}\"\n [firstDayOfWeek]=\"1\"\n showButtonBar={{showButtonBar()}}\n (onTodayClick)=\"_onTodayClick($event)\"\n [appendTo]=\"appendTo()\"\n (onSelect)=\"_onSelect(value)\"\n (onClear)=\"_onClear()\"\n (onClearClick)=\"_onClear()\"\n (onFocus)=\"_onFocus()\"\n (onBlur)=\"_onBlur($event)\"\n (onInput)=\"_onInput($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4085
4067
|
}
|
|
4086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTimeComponent, decorators: [{
|
|
4087
4069
|
type: Component,
|
|
4088
|
-
args: [{ selector: "bit-time", providers: [{
|
|
4070
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-time", providers: [{
|
|
4089
4071
|
provide: NG_VALUE_ACCESSOR,
|
|
4090
4072
|
useExisting: forwardRef(() => BitTimeComponent),
|
|
4091
4073
|
multi: true
|
|
4092
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4074
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-datepicker class=\"FormControl\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n autofocus=\"false\"\n [disabled]=\"isDisabled()\"\n [(ngModel)]=\"value\"\n dateFormat=\"HH:mm\"\n [timeOnly]=\"true\"\n placeholder=\"{{ placeholder() }}\"\n [firstDayOfWeek]=\"1\"\n showButtonBar={{showButtonBar()}}\n (onTodayClick)=\"_onTodayClick($event)\"\n [appendTo]=\"appendTo()\"\n (onSelect)=\"_onSelect(value)\"\n (onClear)=\"_onClear()\"\n (onClearClick)=\"_onClear()\"\n (onFocus)=\"_onFocus()\"\n (onBlur)=\"_onBlur($event)\"\n (onInput)=\"_onInput($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4093
4075
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
4094
4076
|
|
|
4095
4077
|
class BitDateTimeComponent extends BitCalendarComponent {
|
|
4096
4078
|
constructor() {
|
|
4097
4079
|
super();
|
|
4098
4080
|
this.dateUtils = inject(DateUtils);
|
|
4099
|
-
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4081
|
+
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4100
4082
|
this.visual_format = DateUtils.FORMAT_LONG_DATE;
|
|
4101
4083
|
}
|
|
4102
4084
|
get value_lectura() {
|
|
@@ -4119,6 +4101,7 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4119
4101
|
this.value = this.dateUtils.getStringAsDate(v, this.getDateFormat());
|
|
4120
4102
|
this.log() && console.log("new value:" + this.value);
|
|
4121
4103
|
}
|
|
4104
|
+
this.cdr.markForCheck();
|
|
4122
4105
|
}
|
|
4123
4106
|
getDateAsString(d) {
|
|
4124
4107
|
let value = this.dateUtils.getDateTimeAsString(d, this.getDateFormat());
|
|
@@ -4127,20 +4110,20 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4127
4110
|
getDateFormat() {
|
|
4128
4111
|
return this.format() ? this.format() : DateUtils.FORMAT_LONG_DATE;
|
|
4129
4112
|
}
|
|
4130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4131
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4114
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDateTimeComponent, isStandalone: false, selector: "bit-datetime", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4132
4115
|
provide: NG_VALUE_ACCESSOR,
|
|
4133
4116
|
useExisting: forwardRef(() => BitDateTimeComponent),
|
|
4134
4117
|
multi: true
|
|
4135
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4118
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-datepicker class=\"FormControl\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n autofocus=\"false\"\n [disabled]=\"isDisabled()\"\n [(ngModel)]=\"value\"\n dateFormat=\"dd/mm/yy\"\n placeholder=\"{{ placeholder() }}\" \n [minDate]=\"fechaMinima()\"\n [maxDate]=\"fechaMaxima()\"\n [showOtherMonths]=\"true\"\n [selectOtherMonths]=\"true\"\n yearRange=\"2000:2050\"\n [showTime]=\"true\"\n [firstDayOfWeek]=\"1\"\n showButtonBar={{showButtonBar()}}\n [appendTo]=\"appendTo()\"\n (onSelect)=\"_onSelect(value)\"\n (onClear)=\"_onClear()\"\n (onClearClick)=\"_onClear()\"\n (onFocus)=\"_onFocus()\"\n (onBlur)=\"_onBlur($event)\"\n (onInput)=\"_onInput($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (!readOnly()) {\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4136
4119
|
}
|
|
4137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateTimeComponent, decorators: [{
|
|
4138
4121
|
type: Component,
|
|
4139
|
-
args: [{ selector: "bit-datetime", providers: [{
|
|
4122
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-datetime", providers: [{
|
|
4140
4123
|
provide: NG_VALUE_ACCESSOR,
|
|
4141
4124
|
useExisting: forwardRef(() => BitDateTimeComponent),
|
|
4142
4125
|
multi: true
|
|
4143
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4126
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-datepicker class=\"FormControl\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n autofocus=\"false\"\n [disabled]=\"isDisabled()\"\n [(ngModel)]=\"value\"\n dateFormat=\"dd/mm/yy\"\n placeholder=\"{{ placeholder() }}\" \n [minDate]=\"fechaMinima()\"\n [maxDate]=\"fechaMaxima()\"\n [showOtherMonths]=\"true\"\n [selectOtherMonths]=\"true\"\n yearRange=\"2000:2050\"\n [showTime]=\"true\"\n [firstDayOfWeek]=\"1\"\n showButtonBar={{showButtonBar()}}\n [appendTo]=\"appendTo()\"\n (onSelect)=\"_onSelect(value)\"\n (onClear)=\"_onClear()\"\n (onClearClick)=\"_onClear()\"\n (onFocus)=\"_onFocus()\"\n (onBlur)=\"_onBlur($event)\"\n (onInput)=\"_onInput($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (!readOnly()) {\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4144
4127
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
4145
4128
|
|
|
4146
4129
|
class BitCheckBoxComponent extends BitCustomComponent {
|
|
@@ -4151,26 +4134,27 @@ class BitCheckBoxComponent extends BitCustomComponent {
|
|
|
4151
4134
|
writeValue(v) {
|
|
4152
4135
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
4153
4136
|
this.value = v;
|
|
4137
|
+
this.cdr.markForCheck();
|
|
4154
4138
|
}
|
|
4155
4139
|
onChangeValue(event) {
|
|
4156
4140
|
this.value = event.checked;
|
|
4157
4141
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4158
4142
|
this.changeComponentValue(this.value);
|
|
4159
4143
|
}
|
|
4160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4161
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4144
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCheckBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4145
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitCheckBoxComponent, isStandalone: false, selector: "bit-checkbox", providers: [{
|
|
4162
4146
|
provide: NG_VALUE_ACCESSOR,
|
|
4163
4147
|
useExisting: forwardRef(() => BitCheckBoxComponent),
|
|
4164
4148
|
multi: true
|
|
4165
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4149
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-checkbox class=\"{{ estilo() }}\"\n binary=\"true\"\n [(ngModel)]=\"value\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n id=\"{{ nombre() }}\"\n (onChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n\n@if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\n}\n\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4166
4150
|
}
|
|
4167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCheckBoxComponent, decorators: [{
|
|
4168
4152
|
type: Component,
|
|
4169
|
-
args: [{ selector: "bit-checkbox", providers: [{
|
|
4153
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox", providers: [{
|
|
4170
4154
|
provide: NG_VALUE_ACCESSOR,
|
|
4171
4155
|
useExisting: forwardRef(() => BitCheckBoxComponent),
|
|
4172
4156
|
multi: true
|
|
4173
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4157
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-checkbox class=\"{{ estilo() }}\"\n binary=\"true\"\n [(ngModel)]=\"value\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n id=\"{{ nombre() }}\"\n (onChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n\n@if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\n}\n\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4174
4158
|
}] });
|
|
4175
4159
|
|
|
4176
4160
|
class BitSwitchComponent extends BitCustomComponent {
|
|
@@ -4181,42 +4165,43 @@ class BitSwitchComponent extends BitCustomComponent {
|
|
|
4181
4165
|
writeValue(v) {
|
|
4182
4166
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
4183
4167
|
this.value = v;
|
|
4168
|
+
this.cdr.markForCheck();
|
|
4184
4169
|
}
|
|
4185
4170
|
onChangeValue(event) {
|
|
4186
4171
|
this.value = event.checked;
|
|
4187
4172
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4188
4173
|
this.changeComponentValue(this.value);
|
|
4189
4174
|
}
|
|
4190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4191
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4176
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSwitchComponent, isStandalone: false, selector: "bit-switch", providers: [{
|
|
4192
4177
|
provide: NG_VALUE_ACCESSOR,
|
|
4193
4178
|
useExisting: forwardRef(() => BitSwitchComponent),
|
|
4194
4179
|
multi: true
|
|
4195
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4180
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-toggleswitch onLabel=\"S\u00ED\"\n offLabel=\"No\"\n binary=\"true\"\n [(ngModel)]=\"value\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n id=\"{{ nombre() }}\"\n (onChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$5.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4196
4181
|
}
|
|
4197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchComponent, decorators: [{
|
|
4198
4183
|
type: Component,
|
|
4199
|
-
args: [{ selector: "bit-switch", providers: [{
|
|
4184
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch", providers: [{
|
|
4200
4185
|
provide: NG_VALUE_ACCESSOR,
|
|
4201
4186
|
useExisting: forwardRef(() => BitSwitchComponent),
|
|
4202
4187
|
multi: true
|
|
4203
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4188
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-toggleswitch onLabel=\"S\u00ED\"\n offLabel=\"No\"\n binary=\"true\"\n [(ngModel)]=\"value\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n id=\"{{ nombre() }}\"\n (onChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4204
4189
|
}] });
|
|
4205
4190
|
|
|
4206
4191
|
class BitAutoCompleteComponent extends BitCustomComponent {
|
|
4207
4192
|
constructor() {
|
|
4208
4193
|
super(...arguments);
|
|
4209
|
-
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : []));
|
|
4210
|
-
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] : []));
|
|
4211
|
-
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
4212
|
-
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : []));
|
|
4213
|
-
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
4214
|
-
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] : []));
|
|
4215
|
-
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] : [])); // si se usa un template personalizado para mostrar los items
|
|
4194
|
+
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []));
|
|
4195
|
+
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] : /* istanbul ignore next */ []));
|
|
4196
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
4197
|
+
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
|
|
4198
|
+
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
4199
|
+
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
4200
|
+
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] : /* istanbul ignore next */ [])); // si se usa un template personalizado para mostrar los items
|
|
4216
4201
|
this.completeMethod = output();
|
|
4217
4202
|
this.onSelect = output();
|
|
4218
4203
|
this.onClear = output();
|
|
4219
|
-
this.itemTemplate = contentChild("itemTemplate", ...(ngDevMode ?
|
|
4204
|
+
this.itemTemplate = contentChild("itemTemplate", { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
4220
4205
|
this.suggestions_mapped = computed(() => {
|
|
4221
4206
|
let suggestions = this.suggestions();
|
|
4222
4207
|
if (suggestions) {
|
|
@@ -4224,7 +4209,7 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4224
4209
|
this.log() && console.log("suggestions mapped for component: " + this.nombre(), newList);
|
|
4225
4210
|
return newList;
|
|
4226
4211
|
}
|
|
4227
|
-
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : []));
|
|
4212
|
+
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : /* istanbul ignore next */ []));
|
|
4228
4213
|
}
|
|
4229
4214
|
ngAfterViewInit() {
|
|
4230
4215
|
// Control de errores:
|
|
@@ -4284,6 +4269,7 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4284
4269
|
this.value = this.displayValue();
|
|
4285
4270
|
}
|
|
4286
4271
|
}
|
|
4272
|
+
this.cdr.markForCheck();
|
|
4287
4273
|
}
|
|
4288
4274
|
changeComponentValue(value) {
|
|
4289
4275
|
this.log() && console.log(`changeComponentValue forComponent ${this.nombre()} with value ${value}`);
|
|
@@ -4340,24 +4326,24 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4340
4326
|
}
|
|
4341
4327
|
}
|
|
4342
4328
|
}
|
|
4343
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4344
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAutoCompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4330
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitAutoCompleteComponent, isStandalone: false, selector: "bit-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, suggestionField: { classPropertyName: "suggestionField", publicName: "suggestionField", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, displayValue: { classPropertyName: "displayValue", publicName: "displayValue", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: "customTemplate", publicName: "customTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onClear: "onClear" }, providers: [
|
|
4345
4331
|
{
|
|
4346
4332
|
provide: NG_VALUE_ACCESSOR,
|
|
4347
4333
|
useExisting: forwardRef(() => BitAutoCompleteComponent),
|
|
4348
4334
|
multi: true
|
|
4349
4335
|
}
|
|
4350
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, read: TemplateRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4336
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, read: TemplateRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n<label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n</label>\n} @if (readOnly()) {\n<p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n} @if (!readOnly()) {\n<!-- Si usamos un template personalizado, hay que indicar el optionLabel para que sepa cu\u00E1l es el campo a mostrar al seleccionar un elemento -->\n<p-autoComplete\n fluid\n [(ngModel)]=\"value\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"placeholder()\"\n [delay]=\"400\"\n [suggestions]=\"suggestions_mapped()\"\n [multiple]=\"multiple()\"\n [inputStyleClass]=\"inputStyleClass()\"\n optionLabel=\"{{ customTemplate() ? this.suggestionField() : '' }}\"\n appendTo=\"body\"\n (completeMethod)=\"search($event)\"\n (onSelect)=\"_onSelect($event)\"\n (onClear)=\"_onClear()\"\n (onBlur)=\"_onBlur()\"\n (onFocus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId() }}\"\n>\n @if (customTemplate() && itemTemplate()) {\n <ng-template pTemplate=\"item\" let-item>\n <ng-container *ngTemplateOutlet=\"itemTemplate(); context: { $implicit: item }\" />\n </ng-template>\n }\n</p-autoComplete>\n} @if (control() != null) {\n<control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i2$6.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4351
4337
|
}
|
|
4352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAutoCompleteComponent, decorators: [{
|
|
4353
4339
|
type: Component,
|
|
4354
|
-
args: [{ selector: "bit-autocomplete", providers: [
|
|
4340
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-autocomplete", providers: [
|
|
4355
4341
|
{
|
|
4356
4342
|
provide: NG_VALUE_ACCESSOR,
|
|
4357
4343
|
useExisting: forwardRef(() => BitAutoCompleteComponent),
|
|
4358
4344
|
multi: true
|
|
4359
4345
|
}
|
|
4360
|
-
], standalone: false, template: "@if (!hideLabel()) {\
|
|
4346
|
+
], standalone: false, template: "@if (!hideLabel()) {\n<label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n</label>\n} @if (readOnly()) {\n<p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n} @if (!readOnly()) {\n<!-- Si usamos un template personalizado, hay que indicar el optionLabel para que sepa cu\u00E1l es el campo a mostrar al seleccionar un elemento -->\n<p-autoComplete\n fluid\n [(ngModel)]=\"value\"\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"placeholder()\"\n [delay]=\"400\"\n [suggestions]=\"suggestions_mapped()\"\n [multiple]=\"multiple()\"\n [inputStyleClass]=\"inputStyleClass()\"\n optionLabel=\"{{ customTemplate() ? this.suggestionField() : '' }}\"\n appendTo=\"body\"\n (completeMethod)=\"search($event)\"\n (onSelect)=\"_onSelect($event)\"\n (onClear)=\"_onClear()\"\n (onBlur)=\"_onBlur()\"\n (onFocus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId() }}\"\n>\n @if (customTemplate() && itemTemplate()) {\n <ng-template pTemplate=\"item\" let-item>\n <ng-container *ngTemplateOutlet=\"itemTemplate(); context: { $implicit: item }\" />\n </ng-template>\n }\n</p-autoComplete>\n} @if (control() != null) {\n<control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4361
4347
|
}], propDecorators: { suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], suggestionField: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestionField", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], displayValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayValue", required: false }] }], customTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTemplate", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], itemTemplate: [{ type: i0.ContentChild, args: ["itemTemplate", { ...{ read: TemplateRef }, isSignal: true }] }] } });
|
|
4362
4348
|
|
|
4363
4349
|
/**
|
|
@@ -4374,23 +4360,23 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4374
4360
|
super();
|
|
4375
4361
|
this.router = router;
|
|
4376
4362
|
this.translateService = translateService;
|
|
4377
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : [])); // forzar no reservar espacio para el nombre del campo
|
|
4378
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : [])); // lista de valores estáticos con lo que inicializamos el select
|
|
4379
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
4380
|
-
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] : []));
|
|
4381
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : [])); //valor por defecto seleccionable como primer elemento
|
|
4382
|
-
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] : []));
|
|
4383
|
-
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] : []));
|
|
4384
|
-
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
|
|
4385
|
-
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] : []));
|
|
4386
|
-
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] : [])); // El atributo de los objetos de la lista que corresponde al label
|
|
4387
|
-
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] : [])); // El atributo de los objetos de la lista que corresponde al valor
|
|
4388
|
-
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] : [])); // El atributo de los objetos de la lista que indica si un valor está deshabilitado
|
|
4363
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ [])); // forzar no reservar espacio para el nombre del campo
|
|
4364
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ [])); // lista de valores estáticos con lo que inicializamos el select
|
|
4365
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
4366
|
+
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] : /* istanbul ignore next */ []));
|
|
4367
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ [])); //valor por defecto seleccionable como primer elemento
|
|
4368
|
+
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] : /* istanbul ignore next */ []));
|
|
4369
|
+
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] : /* istanbul ignore next */ []));
|
|
4370
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
4371
|
+
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
4372
|
+
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que corresponde al label
|
|
4373
|
+
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que corresponde al valor
|
|
4374
|
+
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que indica si un valor está deshabilitado
|
|
4389
4375
|
this.listaOpciones = computed(() => {
|
|
4390
4376
|
let list = this.data() ? this.data().slice() : [];
|
|
4391
4377
|
this.log() && console.log("Lista de opciones forComponent:" + this.nombre(), list);
|
|
4392
4378
|
return list;
|
|
4393
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : []));
|
|
4379
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : /* istanbul ignore next */ []));
|
|
4394
4380
|
this.listaOpcionesVisible = computed(() => {
|
|
4395
4381
|
let opciones = [];
|
|
4396
4382
|
if (this.listaOpciones()) {
|
|
@@ -4410,12 +4396,12 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4410
4396
|
}
|
|
4411
4397
|
this.log() && console.log("Lista de opciones visibles forComponent:" + this.nombre() + " después de excludeValues", opciones);
|
|
4412
4398
|
return opciones;
|
|
4413
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : []));
|
|
4399
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : /* istanbul ignore next */ []));
|
|
4414
4400
|
}
|
|
4415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4416
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4401
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownGeneralComponent, deps: [{ token: i1$6.ActivatedRoute }, { token: TranslateService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4402
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitDropDownGeneralComponent, isStandalone: true, inputs: { hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, excludedValues: { classPropertyName: "excludedValues", publicName: "excludedValues", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, includeEmpty: { classPropertyName: "includeEmpty", publicName: "includeEmpty", isSignal: true, isRequired: false, transformFunction: null }, valueAs: { classPropertyName: "valueAs", publicName: "valueAs", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, atributoLabel: { classPropertyName: "atributoLabel", publicName: "atributoLabel", isSignal: true, isRequired: false, transformFunction: null }, atributoValue: { classPropertyName: "atributoValue", publicName: "atributoValue", isSignal: true, isRequired: false, transformFunction: null }, atributoDisabled: { classPropertyName: "atributoDisabled", publicName: "atributoDisabled", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
4417
4403
|
}
|
|
4418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownGeneralComponent, decorators: [{
|
|
4419
4405
|
type: Directive
|
|
4420
4406
|
}], ctorParameters: () => [{ type: i1$6.ActivatedRoute }, { type: TranslateService }], propDecorators: { hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], excludedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludedValues", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], includeEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "includeEmpty", required: false }] }], valueAs: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueAs", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], atributoLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "atributoLabel", required: false }] }], atributoValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "atributoValue", required: false }] }], atributoDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "atributoDisabled", required: false }] }] } });
|
|
4421
4407
|
|
|
@@ -4433,7 +4419,7 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4433
4419
|
const router = inject(ActivatedRoute);
|
|
4434
4420
|
const translateService = inject(TranslateService);
|
|
4435
4421
|
super(router, translateService);
|
|
4436
|
-
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4422
|
+
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
4437
4423
|
this.router = router;
|
|
4438
4424
|
this.translateService = translateService;
|
|
4439
4425
|
}
|
|
@@ -4452,6 +4438,7 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4452
4438
|
else {
|
|
4453
4439
|
this.value = v;
|
|
4454
4440
|
}
|
|
4441
|
+
this.cdr.markForCheck();
|
|
4455
4442
|
}
|
|
4456
4443
|
_onChangeValue(event) {
|
|
4457
4444
|
this.value = event.value;
|
|
@@ -4468,24 +4455,24 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4468
4455
|
this.value = null;
|
|
4469
4456
|
this.changeComponentValue(this.value);
|
|
4470
4457
|
}
|
|
4471
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4472
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDropDownComponent, isStandalone: false, selector: "bit-dropdown", inputs: { filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4473
4460
|
{
|
|
4474
4461
|
provide: NG_VALUE_ACCESSOR,
|
|
4475
4462
|
useExisting: forwardRef(() => BitDropDownComponent),
|
|
4476
4463
|
multi: true
|
|
4477
4464
|
}
|
|
4478
|
-
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4465
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-select\n id=\"{{ nombre() }}\"\n [(ngModel)]=\"value\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [options]=\"listaOpcionesVisible()\"\n [filter]=\"filter()\"\n [group]=\"group()\"\n [optionLabel]=\"atributoLabel()\"\n [optionValue]=\"atributoValue()\"\n [optionDisabled]=\"atributoDisabled()\"\n [appendTo]=\"appendTo()\"\n (onChange)=\"_onChangeValue($event)\"\n (onClear)=\"_onClear()\"\n (onBlur)=\"_onBlur()\"\n (onFocus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n >\n <ng-template let-item pTemplate=\"item\">\n <span [ngClass]=\"{ 'opcion-desactivada': item[atributoDisabled()] }\">{{ item[atributoLabel()] }}</span>\n </ng-template>\n </p-select>\n @if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"id()\" />\n }\n}\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4479
4466
|
}
|
|
4480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownComponent, decorators: [{
|
|
4481
4468
|
type: Component,
|
|
4482
|
-
args: [{ selector: "bit-dropdown", providers: [
|
|
4469
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown", providers: [
|
|
4483
4470
|
{
|
|
4484
4471
|
provide: NG_VALUE_ACCESSOR,
|
|
4485
4472
|
useExisting: forwardRef(() => BitDropDownComponent),
|
|
4486
4473
|
multi: true
|
|
4487
4474
|
}
|
|
4488
|
-
], standalone: false, template: "@if (!hideLabel()) {\
|
|
4475
|
+
], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-select\n id=\"{{ nombre() }}\"\n [(ngModel)]=\"value\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [options]=\"listaOpcionesVisible()\"\n [filter]=\"filter()\"\n [group]=\"group()\"\n [optionLabel]=\"atributoLabel()\"\n [optionValue]=\"atributoValue()\"\n [optionDisabled]=\"atributoDisabled()\"\n [appendTo]=\"appendTo()\"\n (onChange)=\"_onChangeValue($event)\"\n (onClear)=\"_onClear()\"\n (onBlur)=\"_onBlur()\"\n (onFocus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n >\n <ng-template let-item pTemplate=\"item\">\n <span [ngClass]=\"{ 'opcion-desactivada': item[atributoDisabled()] }\">{{ item[atributoLabel()] }}</span>\n </ng-template>\n </p-select>\n @if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"id()\" />\n }\n}\n" }]
|
|
4489
4476
|
}], ctorParameters: () => [], propDecorators: { filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }] } });
|
|
4490
4477
|
|
|
4491
4478
|
/**
|
|
@@ -4497,10 +4484,10 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4497
4484
|
const router = inject(ActivatedRoute);
|
|
4498
4485
|
const translateService = inject(TranslateService);
|
|
4499
4486
|
super(router, translateService);
|
|
4500
|
-
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : []));
|
|
4501
|
-
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] : [])); // indica si se muestran los elementos seleccionados en una columna separada
|
|
4502
|
-
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : [])); //título que aparece en el link para eliminar un elemento una vez seleccionado
|
|
4503
|
-
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4487
|
+
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : /* istanbul ignore next */ []));
|
|
4488
|
+
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] : /* istanbul ignore next */ [])); // indica si se muestran los elementos seleccionados en una columna separada
|
|
4489
|
+
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ [])); //título que aparece en el link para eliminar un elemento una vez seleccionado
|
|
4490
|
+
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
4504
4491
|
this.router = router;
|
|
4505
4492
|
this.translateService = translateService;
|
|
4506
4493
|
}
|
|
@@ -4557,6 +4544,7 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4557
4544
|
this.log() && console.log("currentValues: ", this.value);
|
|
4558
4545
|
}
|
|
4559
4546
|
}
|
|
4547
|
+
this.cdr.markForCheck();
|
|
4560
4548
|
}
|
|
4561
4549
|
_onChangeValue(event) {
|
|
4562
4550
|
this.value = event.value;
|
|
@@ -4578,24 +4566,24 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4578
4566
|
emitValue() {
|
|
4579
4567
|
this.changeComponentValue(this.value);
|
|
4580
4568
|
}
|
|
4581
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4582
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4570
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDropDownMultipleComponent, isStandalone: false, selector: "bit-dropdown-multiple", inputs: { maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, showSeparateSelectedLabels: { classPropertyName: "showSeparateSelectedLabels", publicName: "showSeparateSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4583
4571
|
{
|
|
4584
4572
|
provide: NG_VALUE_ACCESSOR,
|
|
4585
4573
|
useExisting: forwardRef(() => BitDropDownMultipleComponent),
|
|
4586
4574
|
multi: true
|
|
4587
4575
|
}
|
|
4588
|
-
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4576
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\"><ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\n }\n </label>\n}\n@if (readOnly() && !showSeparateSelectedLabels()) {\n <p class=\"lectura\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-multiSelect id=\"{{ id() }}\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder()\"\n [filter]=\"filter()\"\n ariaLabel=\"{{ nombre() }}\"\n [options]=\"listaOpciones()\"\n [disabled]=\"isDisabled()\"\n [optionLabel]=\"atributoLabel()\"\n [optionValue]=\"atributoValue()\"\n [maxSelectedLabels]=\"maxSelectedLabels()\"\n [appendTo]=\"appendTo()\"\n selectedItemsLabel=\"{0} elements seleccionats\"\n (onChange)=\"_onChangeValue($event)\"\n (onClear)=\"_onClear()\"\n (onBlur)=\"_onBlur()\"\n (onFocus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n @if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"id()\" />\n }\n @if (showSeparateSelectedLabels()) {\n <div>\n <label for=\"{{ nombre() }}\"> </label>\n <div class=\"multiselect-labels\">\n @for (item of value; track item) {\n <div class=\"label label-primary multiselect-labels-lg\">\n <span>{{ labelSelectedItem(item) }}</span>\n @if (!readOnly()) {\n \n <a (click)=\"deleteSelectedItem($event, item)\" title=\"{{ title() }}\"><i class=\"fa fa-times\"></i></a>\n }\n </div>\n }\n </div>\n </div>\n }\n}", styles: ["bit-dropdown-multiple div{margin-right:2px!important}bit-dropdown-multiple .row{margin-left:0}.multiselect-labels .label{font-size:90%}.multiselect-labels .label span{margin-right:2px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$7.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4589
4577
|
}
|
|
4590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownMultipleComponent, decorators: [{
|
|
4591
4579
|
type: Component,
|
|
4592
|
-
args: [{ selector: "bit-dropdown-multiple", providers: [
|
|
4580
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown-multiple", providers: [
|
|
4593
4581
|
{
|
|
4594
4582
|
provide: NG_VALUE_ACCESSOR,
|
|
4595
4583
|
useExisting: forwardRef(() => BitDropDownMultipleComponent),
|
|
4596
4584
|
multi: true
|
|
4597
4585
|
}
|
|
4598
|
-
], standalone: false, template: "@if (!hideLabel()) {\
|
|
4586
|
+
], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\"><ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\n }\n </label>\n}\n@if (readOnly() && !showSeparateSelectedLabels()) {\n <p class=\"lectura\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-multiSelect id=\"{{ id() }}\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder()\"\n [filter]=\"filter()\"\n ariaLabel=\"{{ nombre() }}\"\n [options]=\"listaOpciones()\"\n [disabled]=\"isDisabled()\"\n [optionLabel]=\"atributoLabel()\"\n [optionValue]=\"atributoValue()\"\n [maxSelectedLabels]=\"maxSelectedLabels()\"\n [appendTo]=\"appendTo()\"\n selectedItemsLabel=\"{0} elements seleccionats\"\n (onChange)=\"_onChangeValue($event)\"\n (onClear)=\"_onClear()\"\n (onBlur)=\"_onBlur()\"\n (onFocus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n @if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"id()\" />\n }\n @if (showSeparateSelectedLabels()) {\n <div>\n <label for=\"{{ nombre() }}\"> </label>\n <div class=\"multiselect-labels\">\n @for (item of value; track item) {\n <div class=\"label label-primary multiselect-labels-lg\">\n <span>{{ labelSelectedItem(item) }}</span>\n @if (!readOnly()) {\n \n <a (click)=\"deleteSelectedItem($event, item)\" title=\"{{ title() }}\"><i class=\"fa fa-times\"></i></a>\n }\n </div>\n }\n </div>\n </div>\n }\n}", styles: ["bit-dropdown-multiple div{margin-right:2px!important}bit-dropdown-multiple .row{margin-left:0}.multiselect-labels .label{font-size:90%}.multiselect-labels .label span{margin-right:2px}\n"] }]
|
|
4599
4587
|
}], ctorParameters: () => [], propDecorators: { maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], showSeparateSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeparateSelectedLabels", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }] } });
|
|
4600
4588
|
|
|
4601
4589
|
class ConfigurationEditor {
|
|
@@ -4631,11 +4619,11 @@ class ConfigurationEditor {
|
|
|
4631
4619
|
class BitEditorComponent extends BitCustomComponent {
|
|
4632
4620
|
constructor() {
|
|
4633
4621
|
super(...arguments);
|
|
4634
|
-
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : []));
|
|
4622
|
+
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : /* istanbul ignore next */ []));
|
|
4635
4623
|
// si es "custom", se utiliza el objeto de configuracion: configuration.
|
|
4636
4624
|
// si es "default", no se utiliza ninguna configuracion (se muestran todos los controles)
|
|
4637
|
-
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : []));
|
|
4638
|
-
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
4625
|
+
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : /* istanbul ignore next */ []));
|
|
4626
|
+
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
4639
4627
|
this.onTextChange = output();
|
|
4640
4628
|
}
|
|
4641
4629
|
// es posible tener configuraciones globales en todos los bit-editor de un proyecto
|
|
@@ -4658,6 +4646,7 @@ class BitEditorComponent extends BitCustomComponent {
|
|
|
4658
4646
|
else {
|
|
4659
4647
|
this.value = v;
|
|
4660
4648
|
}
|
|
4649
|
+
this.cdr.markForCheck();
|
|
4661
4650
|
}
|
|
4662
4651
|
onChangeValue(text) {
|
|
4663
4652
|
this.value = text;
|
|
@@ -4683,20 +4672,20 @@ class BitEditorComponent extends BitCustomComponent {
|
|
|
4683
4672
|
const configuration = this.configuration();
|
|
4684
4673
|
return configuration ? configuration : BitEditorComponent.globalConfiguration;
|
|
4685
4674
|
}
|
|
4686
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4687
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4675
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4676
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitEditorComponent, isStandalone: false, selector: "bit-editor", inputs: { tipo: { classPropertyName: "tipo", publicName: "tipo", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onTextChange: "onTextChange" }, providers: [{
|
|
4688
4677
|
provide: NG_VALUE_ACCESSOR,
|
|
4689
4678
|
useExisting: forwardRef(() => BitEditorComponent),
|
|
4690
4679
|
multi: true
|
|
4691
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4680
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\">\n {{ value_lectura && value_lectura != \"\" ? value_lectura : \" \" }}\n </p>\n}\n@if (!readOnly() && tipo() == 'custom') {\n <p-editor\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n [ngModel]=\"value\"\n styleClass=\"editor\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"placeholder()\"\n [style]=\"{ height: height() + 'px' }\"\n (onInit)=\"onInit($event)\"\n (ngModelChange)=\"onChangeValue($event)\"\n (onTextChange)=\"_onTextChange($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n >\n <p-header>\n @if (configuracion.fontSize) {\n <span class=\"ql-formats\">\n <select class=\"ql-size\">\n <option value=\"small\">{{ \"bitnglibrary.form.biteditor.small\" | transloco }}</option>\n <!-- Note a missing, thus falsy value, is used to reset to default -->\n <option selected>{{ \"bitnglibrary.form.biteditor.normal\" | transloco }}</option>\n <option value=\"large\">{{ \"bitnglibrary.form.biteditor.large\" | transloco }}</option>\n <option value=\"huge\">{{ \"bitnglibrary.form.biteditor.huge\" | transloco }}</option>\n </select>\n </span>\n }\n @if (configuracion.fontFormat) {\n <span class=\"ql-formats\">\n <button class=\"ql-bold\" aria-label=\"Bold\"></button>\n <button class=\"ql-italic\" aria-label=\"Italic\"></button>\n <button class=\"ql-underline\" aria-label=\"Underline\"></button>\n <button class=\"ql-strike\" aria-label=\"Strikethrough\"></button>\n </span>\n }\n @if (configuracion.bullet) {\n <span class=\"ql-formats\">\n <button class=\"ql-list\" aria-label=\"Insert Ordered List\" value=\"ordered\" type=\"button\"></button>\n <button class=\"ql-list\" aria-label=\"Insert Bullet List\" value=\"bullet\" type=\"button\"></button>\n </span>\n }\n @if (configuracion.link) {\n <span class=\"ql-formats\">\n <button class=\"ql-link\" aria-label=\"Insert Link\" type=\"button\"></button>\n </span>\n }\n </p-header>\n </p-editor>\n}\n@if (!readOnly() && (!tipo() || tipo() == 'default')) {\n <p-editor id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n [ngModel]=\"value\"\n styleClass=\"editor\"\n [placeholder]=\"placeholder()\"\n [placeholder]=\"placeholder()\"\n [style]=\"{ height: height() + 'px' }\"\n (ngModelChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$3.Header, selector: "p-header" }, { kind: "component", type: i2$8.Editor, selector: "p-editor", inputs: ["style", "styleClass", "placeholder", "formats", "modules", "bounds", "scrollingContainer", "debug", "readonly"], outputs: ["onInit", "onTextChange", "onSelectionChange", "onEditorChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4692
4681
|
}
|
|
4693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitEditorComponent, decorators: [{
|
|
4694
4683
|
type: Component,
|
|
4695
|
-
args: [{ selector: "bit-editor", providers: [{
|
|
4684
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-editor", providers: [{
|
|
4696
4685
|
provide: NG_VALUE_ACCESSOR,
|
|
4697
4686
|
useExisting: forwardRef(() => BitEditorComponent),
|
|
4698
4687
|
multi: true
|
|
4699
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4688
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\">\n {{ value_lectura && value_lectura != \"\" ? value_lectura : \" \" }}\n </p>\n}\n@if (!readOnly() && tipo() == 'custom') {\n <p-editor\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n [ngModel]=\"value\"\n styleClass=\"editor\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"placeholder()\"\n [style]=\"{ height: height() + 'px' }\"\n (onInit)=\"onInit($event)\"\n (ngModelChange)=\"onChangeValue($event)\"\n (onTextChange)=\"_onTextChange($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n >\n <p-header>\n @if (configuracion.fontSize) {\n <span class=\"ql-formats\">\n <select class=\"ql-size\">\n <option value=\"small\">{{ \"bitnglibrary.form.biteditor.small\" | transloco }}</option>\n <!-- Note a missing, thus falsy value, is used to reset to default -->\n <option selected>{{ \"bitnglibrary.form.biteditor.normal\" | transloco }}</option>\n <option value=\"large\">{{ \"bitnglibrary.form.biteditor.large\" | transloco }}</option>\n <option value=\"huge\">{{ \"bitnglibrary.form.biteditor.huge\" | transloco }}</option>\n </select>\n </span>\n }\n @if (configuracion.fontFormat) {\n <span class=\"ql-formats\">\n <button class=\"ql-bold\" aria-label=\"Bold\"></button>\n <button class=\"ql-italic\" aria-label=\"Italic\"></button>\n <button class=\"ql-underline\" aria-label=\"Underline\"></button>\n <button class=\"ql-strike\" aria-label=\"Strikethrough\"></button>\n </span>\n }\n @if (configuracion.bullet) {\n <span class=\"ql-formats\">\n <button class=\"ql-list\" aria-label=\"Insert Ordered List\" value=\"ordered\" type=\"button\"></button>\n <button class=\"ql-list\" aria-label=\"Insert Bullet List\" value=\"bullet\" type=\"button\"></button>\n </span>\n }\n @if (configuracion.link) {\n <span class=\"ql-formats\">\n <button class=\"ql-link\" aria-label=\"Insert Link\" type=\"button\"></button>\n </span>\n }\n </p-header>\n </p-editor>\n}\n@if (!readOnly() && (!tipo() || tipo() == 'default')) {\n <p-editor id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n [ngModel]=\"value\"\n styleClass=\"editor\"\n [placeholder]=\"placeholder()\"\n [placeholder]=\"placeholder()\"\n [style]=\"{ height: height() + 'px' }\"\n (ngModelChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4700
4689
|
}], propDecorators: { tipo: [{ type: i0.Input, args: [{ isSignal: true, alias: "tipo", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], onTextChange: [{ type: i0.Output, args: ["onTextChange"] }] } });
|
|
4701
4690
|
|
|
4702
4691
|
class BitReadonlyComponent {
|
|
@@ -4705,15 +4694,15 @@ class BitReadonlyComponent {
|
|
|
4705
4694
|
this.sessionShared = inject(SessionSharedService);
|
|
4706
4695
|
this.ayudaService = inject(AyudaService);
|
|
4707
4696
|
this.dateUtils = inject(DateUtils);
|
|
4708
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : []));
|
|
4709
|
-
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] : []));
|
|
4710
|
-
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] : [])); // text (default), date, datetime, time, boolean, textarea, list, list-multiple
|
|
4711
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : []));
|
|
4712
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : [])); //lista de valores estáticos con lo que inicializamos el select
|
|
4713
|
-
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] : []));
|
|
4697
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ []));
|
|
4698
|
+
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] : /* istanbul ignore next */ []));
|
|
4699
|
+
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] : /* istanbul ignore next */ [])); // text (default), date, datetime, time, boolean, textarea, list, list-multiple
|
|
4700
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ []));
|
|
4701
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ [])); //lista de valores estáticos con lo que inicializamos el select
|
|
4702
|
+
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] : /* istanbul ignore next */ []));
|
|
4714
4703
|
this.opcionesDropdown = computed(() => {
|
|
4715
4704
|
return (this.data() && this.data().slice()) || [];
|
|
4716
|
-
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : []));
|
|
4705
|
+
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : /* istanbul ignore next */ []));
|
|
4717
4706
|
}
|
|
4718
4707
|
showAyuda() {
|
|
4719
4708
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
@@ -4739,29 +4728,29 @@ class BitReadonlyComponent {
|
|
|
4739
4728
|
return valor;
|
|
4740
4729
|
}
|
|
4741
4730
|
}
|
|
4742
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4743
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4731
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4732
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitReadonlyComponent, isStandalone: false, selector: "bit-readonly", inputs: { ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, valor: { classPropertyName: "valor", publicName: "valor", isSignal: true, isRequired: false, transformFunction: null }, tipo: { classPropertyName: "tipo", publicName: "tipo", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (!hideLabel()) {\n <label>\n <ng-content /> \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (!isTextarea()) {\n <p class=\"lectura\">{{value_lectura}}</p>\n}\n@if (isTextarea()) {\n <pre class=\"lectura\">{{value_lectura}}</pre>\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4744
4733
|
}
|
|
4745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitReadonlyComponent, decorators: [{
|
|
4746
4735
|
type: Component,
|
|
4747
|
-
args: [{ selector: "bit-readonly", standalone: false, template: "@if (!hideLabel()) {\
|
|
4736
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-readonly", standalone: false, template: "@if (!hideLabel()) {\n <label>\n <ng-content /> \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (!isTextarea()) {\n <p class=\"lectura\">{{value_lectura}}</p>\n}\n@if (isTextarea()) {\n <pre class=\"lectura\">{{value_lectura}}</pre>\n}" }]
|
|
4748
4737
|
}], propDecorators: { ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], valor: [{ type: i0.Input, args: [{ isSignal: true, alias: "valor", required: false }] }], tipo: [{ type: i0.Input, args: [{ isSignal: true, alias: "tipo", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
4749
4738
|
|
|
4750
4739
|
class BitNumberComponent extends BitCustomComponent {
|
|
4751
4740
|
constructor() {
|
|
4752
4741
|
super(...arguments);
|
|
4753
|
-
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] : []));
|
|
4754
|
-
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] : []));
|
|
4755
|
-
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : []));
|
|
4756
|
-
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : []));
|
|
4757
|
-
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : []));
|
|
4758
|
-
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : []));
|
|
4759
|
-
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] : []));
|
|
4760
|
-
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] : []));
|
|
4761
|
-
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : []));
|
|
4762
|
-
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : []));
|
|
4763
|
-
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] : []));
|
|
4764
|
-
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] : []));
|
|
4742
|
+
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] : /* istanbul ignore next */ []));
|
|
4743
|
+
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] : /* istanbul ignore next */ []));
|
|
4744
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : /* istanbul ignore next */ []));
|
|
4745
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : /* istanbul ignore next */ []));
|
|
4746
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : /* istanbul ignore next */ []));
|
|
4747
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : /* istanbul ignore next */ []));
|
|
4748
|
+
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] : /* istanbul ignore next */ []));
|
|
4749
|
+
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] : /* istanbul ignore next */ []));
|
|
4750
|
+
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : /* istanbul ignore next */ []));
|
|
4751
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : /* istanbul ignore next */ []));
|
|
4752
|
+
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] : /* istanbul ignore next */ []));
|
|
4753
|
+
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
|
|
4765
4754
|
}
|
|
4766
4755
|
get value_lectura() {
|
|
4767
4756
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -4770,62 +4759,63 @@ class BitNumberComponent extends BitCustomComponent {
|
|
|
4770
4759
|
writeValue(v) {
|
|
4771
4760
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
4772
4761
|
this.value = v;
|
|
4762
|
+
this.cdr.markForCheck();
|
|
4773
4763
|
}
|
|
4774
4764
|
onChangeValue(text) {
|
|
4775
4765
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + text);
|
|
4776
4766
|
this.value = text;
|
|
4777
4767
|
this.changeComponentValue(this.value);
|
|
4778
4768
|
}
|
|
4779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4780
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4770
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitNumberComponent, isStandalone: false, selector: "bit-number", inputs: { modo: { classPropertyName: "modo", publicName: "modo", isSignal: true, isRequired: false, transformFunction: null }, divisa: { classPropertyName: "divisa", publicName: "divisa", isSignal: true, isRequired: false, transformFunction: null }, prefijo: { classPropertyName: "prefijo", publicName: "prefijo", isSignal: true, isRequired: false, transformFunction: null }, sufijo: { classPropertyName: "sufijo", publicName: "sufijo", isSignal: true, isRequired: false, transformFunction: null }, minimo: { classPropertyName: "minimo", publicName: "minimo", isSignal: true, isRequired: false, transformFunction: null }, maximo: { classPropertyName: "maximo", publicName: "maximo", isSignal: true, isRequired: false, transformFunction: null }, numeroDecimales: { classPropertyName: "numeroDecimales", publicName: "numeroDecimales", isSignal: true, isRequired: false, transformFunction: null }, maximoDecimales: { classPropertyName: "maximoDecimales", publicName: "maximoDecimales", isSignal: true, isRequired: false, transformFunction: null }, separadorGrupo: { classPropertyName: "separadorGrupo", publicName: "separadorGrupo", isSignal: true, isRequired: false, transformFunction: null }, mostrarBotones: { classPropertyName: "mostrarBotones", publicName: "mostrarBotones", isSignal: true, isRequired: false, transformFunction: null }, incremento: { classPropertyName: "incremento", publicName: "incremento", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4781
4771
|
provide: NG_VALUE_ACCESSOR,
|
|
4782
4772
|
useExisting: forwardRef(() => BitNumberComponent),
|
|
4783
4773
|
multi: true
|
|
4784
|
-
}], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputReference"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4774
|
+
}], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputReference"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [placeholder]=\"placeholder()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [pTooltip]=\"tooltipTexto()\"\n [tooltipPosition]=\"tooltipPosicion()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$7.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4785
4775
|
}
|
|
4786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNumberComponent, decorators: [{
|
|
4787
4777
|
type: Component,
|
|
4788
|
-
args: [{ selector: "bit-number", providers: [{
|
|
4778
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-number", providers: [{
|
|
4789
4779
|
provide: NG_VALUE_ACCESSOR,
|
|
4790
4780
|
useExisting: forwardRef(() => BitNumberComponent),
|
|
4791
4781
|
multi: true
|
|
4792
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4782
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [placeholder]=\"placeholder()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [pTooltip]=\"tooltipTexto()\"\n [tooltipPosition]=\"tooltipPosicion()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4793
4783
|
}], propDecorators: { modo: [{ type: i0.Input, args: [{ isSignal: true, alias: "modo", required: false }] }], divisa: [{ type: i0.Input, args: [{ isSignal: true, alias: "divisa", required: false }] }], prefijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefijo", required: false }] }], sufijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sufijo", required: false }] }], minimo: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimo", required: false }] }], maximo: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximo", required: false }] }], numeroDecimales: [{ type: i0.Input, args: [{ isSignal: true, alias: "numeroDecimales", required: false }] }], maximoDecimales: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximoDecimales", required: false }] }], separadorGrupo: [{ type: i0.Input, args: [{ isSignal: true, alias: "separadorGrupo", required: false }] }], mostrarBotones: [{ type: i0.Input, args: [{ isSignal: true, alias: "mostrarBotones", required: false }] }], incremento: [{ type: i0.Input, args: [{ isSignal: true, alias: "incremento", required: false }] }], inputElement: [{ type: i0.ViewChild, args: ['inputReference', { isSignal: true }] }] } });
|
|
4794
4784
|
|
|
4795
4785
|
class BitAmountComponent extends BitNumberComponent {
|
|
4796
4786
|
constructor() {
|
|
4797
4787
|
super(...arguments);
|
|
4798
|
-
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : []));
|
|
4799
|
-
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : []));
|
|
4800
|
-
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : []));
|
|
4801
|
-
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : []));
|
|
4802
|
-
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : []));
|
|
4803
|
-
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] : []));
|
|
4804
|
-
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] : []));
|
|
4805
|
-
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] : []));
|
|
4806
|
-
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] : []));
|
|
4807
|
-
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : []));
|
|
4808
|
-
}
|
|
4809
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4810
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4788
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : /* istanbul ignore next */ []));
|
|
4789
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : /* istanbul ignore next */ []));
|
|
4790
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : /* istanbul ignore next */ []));
|
|
4791
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : /* istanbul ignore next */ []));
|
|
4792
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : /* istanbul ignore next */ []));
|
|
4793
|
+
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] : /* istanbul ignore next */ []));
|
|
4794
|
+
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] : /* istanbul ignore next */ []));
|
|
4795
|
+
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] : /* istanbul ignore next */ []));
|
|
4796
|
+
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] : /* istanbul ignore next */ []));
|
|
4797
|
+
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : /* istanbul ignore next */ []));
|
|
4798
|
+
}
|
|
4799
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAmountComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4800
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitAmountComponent, isStandalone: false, selector: "bit-amount", inputs: { prefijo: { classPropertyName: "prefijo", publicName: "prefijo", isSignal: true, isRequired: false, transformFunction: null }, sufijo: { classPropertyName: "sufijo", publicName: "sufijo", isSignal: true, isRequired: false, transformFunction: null }, minimo: { classPropertyName: "minimo", publicName: "minimo", isSignal: true, isRequired: false, transformFunction: null }, maximo: { classPropertyName: "maximo", publicName: "maximo", isSignal: true, isRequired: false, transformFunction: null }, mostrarBotones: { classPropertyName: "mostrarBotones", publicName: "mostrarBotones", isSignal: true, isRequired: false, transformFunction: null }, incremento: { classPropertyName: "incremento", publicName: "incremento", isSignal: true, isRequired: false, transformFunction: null }, modo: { classPropertyName: "modo", publicName: "modo", isSignal: true, isRequired: false, transformFunction: null }, divisa: { classPropertyName: "divisa", publicName: "divisa", isSignal: true, isRequired: false, transformFunction: null }, maximoDecimales: { classPropertyName: "maximoDecimales", publicName: "maximoDecimales", isSignal: true, isRequired: false, transformFunction: null }, separadorGrupo: { classPropertyName: "separadorGrupo", publicName: "separadorGrupo", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4811
4801
|
provide: NG_VALUE_ACCESSOR,
|
|
4812
4802
|
useExisting: forwardRef(() => BitAmountComponent),
|
|
4813
4803
|
multi: true
|
|
4814
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
4804
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [placeholder]=\"placeholder()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [pTooltip]=\"tooltipTexto()\"\n [tooltipPosition]=\"tooltipPosicion()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "component", type: i1$7.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4815
4805
|
}
|
|
4816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAmountComponent, decorators: [{
|
|
4817
4807
|
type: Component,
|
|
4818
|
-
args: [{ selector: "bit-amount", providers: [{
|
|
4808
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-amount", providers: [{
|
|
4819
4809
|
provide: NG_VALUE_ACCESSOR,
|
|
4820
4810
|
useExisting: forwardRef(() => BitAmountComponent),
|
|
4821
4811
|
multi: true
|
|
4822
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
4812
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [placeholder]=\"placeholder()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (tooltipTexto() && !readOnly()) {\n <p-inputNumber\n #inputReference\n id=\"{{ nombre() }}\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n [ngModel]=\"value\"\n [attr.directive]=\"nombreDirectiva()\"\n [pTooltip]=\"tooltipTexto()\"\n [tooltipPosition]=\"tooltipPosicion()\"\n [mode]=\"modo()\"\n [currency]=\"divisa()\"\n [prefix]=\"prefijo()\"\n [suffix]=\"sufijo()\"\n [min]=\"minimo()\"\n [max]=\"maximo()\"\n [minFractionDigits]=\"numeroDecimales()\"\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\n [useGrouping]=\"separadorGrupo()\"\n [showButtons]=\"mostrarBotones()\"\n [step]=\"incremento()\"\n locale=\"es-ES\"\n (ngModelChange)=\"onChangeValue($event)\"\n (blur)=\"_onBlur()\"\n (focus)=\"_onFocus()\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
4823
4813
|
}], propDecorators: { prefijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefijo", required: false }] }], sufijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sufijo", required: false }] }], minimo: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimo", required: false }] }], maximo: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximo", required: false }] }], mostrarBotones: [{ type: i0.Input, args: [{ isSignal: true, alias: "mostrarBotones", required: false }] }], incremento: [{ type: i0.Input, args: [{ isSignal: true, alias: "incremento", required: false }] }], modo: [{ type: i0.Input, args: [{ isSignal: true, alias: "modo", required: false }] }], divisa: [{ type: i0.Input, args: [{ isSignal: true, alias: "divisa", required: false }] }], maximoDecimales: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximoDecimales", required: false }] }], separadorGrupo: [{ type: i0.Input, args: [{ isSignal: true, alias: "separadorGrupo", required: false }] }] } });
|
|
4824
4814
|
|
|
4825
4815
|
/** Esta clase contiene información sobre el menú pulsado por el usuairo. Permite setear dicho valor y recuperarlo mediante un signal */
|
|
4826
4816
|
class MenuService {
|
|
4827
4817
|
constructor() {
|
|
4828
|
-
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : []));
|
|
4818
|
+
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : /* istanbul ignore next */ []));
|
|
4829
4819
|
}
|
|
4830
4820
|
setCurrentMenu(menuTitle) {
|
|
4831
4821
|
this.currentMenu$.set(menuTitle);
|
|
@@ -4834,10 +4824,10 @@ class MenuService {
|
|
|
4834
4824
|
getCurrentMenu() {
|
|
4835
4825
|
return this.currentMenu$;
|
|
4836
4826
|
}
|
|
4837
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4838
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4827
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4828
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, providedIn: "root" }); }
|
|
4839
4829
|
}
|
|
4840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, decorators: [{
|
|
4841
4831
|
type: Injectable,
|
|
4842
4832
|
args: [{ providedIn: "root" }]
|
|
4843
4833
|
}], ctorParameters: () => [] });
|
|
@@ -4850,8 +4840,8 @@ class MenuTitle {
|
|
|
4850
4840
|
|
|
4851
4841
|
class BitSidebarComponent {
|
|
4852
4842
|
constructor() {
|
|
4853
|
-
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
4854
|
-
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : []));
|
|
4843
|
+
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
4844
|
+
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : /* istanbul ignore next */ []));
|
|
4855
4845
|
this.onSelectLanguage = output();
|
|
4856
4846
|
this.onCloseMenu = output();
|
|
4857
4847
|
this.onMenuTitle = output();
|
|
@@ -4879,12 +4869,12 @@ class BitSidebarComponent {
|
|
|
4879
4869
|
this.closeMenu();
|
|
4880
4870
|
this.onSelectLanguage.emit(language);
|
|
4881
4871
|
}
|
|
4882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4883
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4872
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4873
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSidebarComponent, isStandalone: false, selector: "bit-sidebar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, visibilidad: { classPropertyName: "visibilidad", publicName: "visibilidad", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectLanguage: "onSelectLanguage", onCloseMenu: "onCloseMenu", onMenuTitle: "onMenuTitle" }, ngImport: i0, template: "<div id=\"mySidebar\" class=\"sidebar\" [style.min-width]=\"visibilidad() ? '300px' : '0px'\">\n <i class=\"closebtn fa fa-times\" (click)=\"closeMenu()\"></i>\n <ul>\n @for (item of items(); track item) {\n <li class=\"item\" (click)=\"clickMenu(item)\">\n @if (item.items.length > 0) {\n <i class=\"fa\" [ngClass]=\"{'fa-chevron-right':!item.expanded,'fa-chevron-down':item.expanded}\"></i>\n }\n {{ \"menu.\" + item.label | transloco }}\n @if (item.expanded) {\n <ul>\n @for (subitem of item.items; track subitem) {\n <li class=\"subitem\" [routerLink]=\"subitem.routerLink\" (click)=\"clickMenuItem($event, item, subitem)\">\n <i class=\"{{subitem.icon}}\"></i> \n <a>{{ \"menu.\" + subitem.label | transloco }}</a></li>\n }\n </ul>\n }\n </li>\n }\n </ul>\n <!-- <p class=\"idioma-selector\"> \n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"></bit-language-selector>\n </p> -->\n <p class=\"nombre-desarrollado\">{{ \"menu.desarrollado-por\" | transloco }} <a href=\"https://www.caib.es/webgoib/w/agencia-balear-digitalitzacio-ciberseguretat-i-telecomunicacions\" target=\"_blank\">IB Digital</a></p>\n</div>\n", styles: [".idioma-selector{padding:0;width:100%;position:absolute;bottom:44px;text-align:center}.sidebar{height:100%;width:0;position:fixed;z-index:100;top:0;left:0;background-color:#eaeaea;overflow:hidden;padding-top:60px;transition:.3s;cursor:pointer;box-shadow:1px 0 10px #656565}.sidebar>ul{padding-left:20px;overflow-x:hidden;overflow-y:auto;height:86.2%;padding-bottom:30px}.sidebar i,.sidebar a{text-decoration:none}.sidebar i{padding-left:10px;margin-right:5px}.sidebar li{padding:8px 0}.sidebar li.item{font-weight:700;cursor:pointer}li.item ul{padding-left:20px}.sidebar li.subitem{font-weight:400;transition:.5s}.sidebar li.subitem:hover{background:#ffffff80;-webkit-border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-bottomleft:4px;border-top-left-radius:4px;border-bottom-left-radius:4px}.sidebar li.subitem:hover a,.sidebar li.subitem:hover i{color:#0068a0}.sidebar .closebtn{color:#9a9a9a;position:absolute;top:18px;right:25px;font-size:25px}.sidebar .nombre-desarrollado{position:absolute;bottom:-13px;width:100%;background:#fff;padding:20px;text-align:center;cursor:auto}.sidebar .nombre-desarrollado a{font-weight:700;color:#1b8ac6}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4884
4874
|
}
|
|
4885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSidebarComponent, decorators: [{
|
|
4886
4876
|
type: Component,
|
|
4887
|
-
args: [{ selector: "bit-sidebar", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div id=\"mySidebar\" class=\"sidebar\" [style.min-width]=\"visibilidad() ? '300px' : '0px'\">\
|
|
4877
|
+
args: [{ selector: "bit-sidebar", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div id=\"mySidebar\" class=\"sidebar\" [style.min-width]=\"visibilidad() ? '300px' : '0px'\">\n <i class=\"closebtn fa fa-times\" (click)=\"closeMenu()\"></i>\n <ul>\n @for (item of items(); track item) {\n <li class=\"item\" (click)=\"clickMenu(item)\">\n @if (item.items.length > 0) {\n <i class=\"fa\" [ngClass]=\"{'fa-chevron-right':!item.expanded,'fa-chevron-down':item.expanded}\"></i>\n }\n {{ \"menu.\" + item.label | transloco }}\n @if (item.expanded) {\n <ul>\n @for (subitem of item.items; track subitem) {\n <li class=\"subitem\" [routerLink]=\"subitem.routerLink\" (click)=\"clickMenuItem($event, item, subitem)\">\n <i class=\"{{subitem.icon}}\"></i> \n <a>{{ \"menu.\" + subitem.label | transloco }}</a></li>\n }\n </ul>\n }\n </li>\n }\n </ul>\n <!-- <p class=\"idioma-selector\"> \n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"></bit-language-selector>\n </p> -->\n <p class=\"nombre-desarrollado\">{{ \"menu.desarrollado-por\" | transloco }} <a href=\"https://www.caib.es/webgoib/w/agencia-balear-digitalitzacio-ciberseguretat-i-telecomunicacions\" target=\"_blank\">IB Digital</a></p>\n</div>\n", styles: [".idioma-selector{padding:0;width:100%;position:absolute;bottom:44px;text-align:center}.sidebar{height:100%;width:0;position:fixed;z-index:100;top:0;left:0;background-color:#eaeaea;overflow:hidden;padding-top:60px;transition:.3s;cursor:pointer;box-shadow:1px 0 10px #656565}.sidebar>ul{padding-left:20px;overflow-x:hidden;overflow-y:auto;height:86.2%;padding-bottom:30px}.sidebar i,.sidebar a{text-decoration:none}.sidebar i{padding-left:10px;margin-right:5px}.sidebar li{padding:8px 0}.sidebar li.item{font-weight:700;cursor:pointer}li.item ul{padding-left:20px}.sidebar li.subitem{font-weight:400;transition:.5s}.sidebar li.subitem:hover{background:#ffffff80;-webkit-border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-bottomleft:4px;border-top-left-radius:4px;border-bottom-left-radius:4px}.sidebar li.subitem:hover a,.sidebar li.subitem:hover i{color:#0068a0}.sidebar .closebtn{color:#9a9a9a;position:absolute;top:18px;right:25px;font-size:25px}.sidebar .nombre-desarrollado{position:absolute;bottom:-13px;width:100%;background:#fff;padding:20px;text-align:center;cursor:auto}.sidebar .nombre-desarrollado a{font-weight:700;color:#1b8ac6}\n"] }]
|
|
4888
4878
|
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], visibilidad: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibilidad", required: false }] }], onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }], onCloseMenu: [{ type: i0.Output, args: ["onCloseMenu"] }], onMenuTitle: [{ type: i0.Output, args: ["onMenuTitle"] }] } });
|
|
4889
4879
|
|
|
4890
4880
|
class BitThemeSelectorComponent {
|
|
@@ -4893,10 +4883,10 @@ class BitThemeSelectorComponent {
|
|
|
4893
4883
|
this.themeFBitService = inject(ThemeFBitService);
|
|
4894
4884
|
this.themeList$ = computed(() => this.themeFBitService.themeList$().map((theme) => {
|
|
4895
4885
|
return { name: theme };
|
|
4896
|
-
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
4886
|
+
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : /* istanbul ignore next */ []));
|
|
4897
4887
|
this.currentTheme$ = computed(() => {
|
|
4898
4888
|
return this.themeFBitService.currentTheme$();
|
|
4899
|
-
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
4889
|
+
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : /* istanbul ignore next */ []));
|
|
4900
4890
|
effect(() => {
|
|
4901
4891
|
console.log("theme", this.currentTheme$());
|
|
4902
4892
|
console.log("themeList", this.themeList$());
|
|
@@ -4910,20 +4900,20 @@ class BitThemeSelectorComponent {
|
|
|
4910
4900
|
this.themeFBitService.changeTheme(theme);
|
|
4911
4901
|
this.onChangeTheme.emit(theme);
|
|
4912
4902
|
}
|
|
4913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4914
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitThemeSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4904
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitThemeSelectorComponent, isStandalone: false, selector: "bit-theme-selector", outputs: { onChangeTheme: "onChangeTheme" }, ngImport: i0, template: "<p-selectbutton \n [options]=\"themeList$()\" \n [ngModel]=\"currentTheme$()\" \n optionLabel=\"name\" \n optionValue=\"name\" \n (onOptionClick)=\"selectGroupChanged($event)\"/>", dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$9.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4915
4905
|
}
|
|
4916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitThemeSelectorComponent, decorators: [{
|
|
4917
4907
|
type: Component,
|
|
4918
|
-
args: [{ selector: "bit-theme-selector", standalone: false, template: "<p-selectbutton \
|
|
4908
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-theme-selector", standalone: false, template: "<p-selectbutton \n [options]=\"themeList$()\" \n [ngModel]=\"currentTheme$()\" \n optionLabel=\"name\" \n optionValue=\"name\" \n (onOptionClick)=\"selectGroupChanged($event)\"/>" }]
|
|
4919
4909
|
}], ctorParameters: () => [], propDecorators: { onChangeTheme: [{ type: i0.Output, args: ["onChangeTheme"] }] } });
|
|
4920
4910
|
|
|
4921
4911
|
class BitLanguageSelectorComponent {
|
|
4922
4912
|
constructor() {
|
|
4923
4913
|
this.onSelectLanguage = output();
|
|
4924
4914
|
this.localeService = inject(LocaleService);
|
|
4925
|
-
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : []));
|
|
4926
|
-
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : []));
|
|
4915
|
+
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : /* istanbul ignore next */ []));
|
|
4916
|
+
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : /* istanbul ignore next */ []));
|
|
4927
4917
|
}
|
|
4928
4918
|
//signal(this.localeService.locale$());
|
|
4929
4919
|
selectGroupChanged(_event) {
|
|
@@ -4935,12 +4925,12 @@ class BitLanguageSelectorComponent {
|
|
|
4935
4925
|
this.currentLanguage$.set(language);
|
|
4936
4926
|
this.onSelectLanguage.emit(language);
|
|
4937
4927
|
}
|
|
4938
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4939
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4928
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLanguageSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4929
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitLanguageSelectorComponent, isStandalone: false, selector: "bit-language-selector", outputs: { onSelectLanguage: "onSelectLanguage" }, ngImport: i0, template: "<p-selectbutton \n [options]=\"languageList$()\" \n [ngModel]=\"currentLanguage$()\" \n optionLabel=\"label\" \n optionValue=\"value\" \n (onOptionClick)=\"selectGroupChanged($event)\"/>", dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$9.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4940
4930
|
}
|
|
4941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLanguageSelectorComponent, decorators: [{
|
|
4942
4932
|
type: Component,
|
|
4943
|
-
args: [{ selector: "bit-language-selector", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<p-selectbutton \
|
|
4933
|
+
args: [{ selector: "bit-language-selector", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<p-selectbutton \n [options]=\"languageList$()\" \n [ngModel]=\"currentLanguage$()\" \n optionLabel=\"label\" \n optionValue=\"value\" \n (onOptionClick)=\"selectGroupChanged($event)\"/>" }]
|
|
4944
4934
|
}], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }] } });
|
|
4945
4935
|
|
|
4946
4936
|
class BitSettingsComponent {
|
|
@@ -4964,12 +4954,12 @@ class BitSettingsComponent {
|
|
|
4964
4954
|
this.themeFBitService.setDarkMode(this.isDarkMode);
|
|
4965
4955
|
this.onDarkModeChange.emit(this.isDarkMode); // Emit the new state
|
|
4966
4956
|
}
|
|
4967
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4968
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4957
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4958
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitSettingsComponent, isStandalone: false, selector: "bit-settings", outputs: { onSelectLanguage: "onSelectLanguage", onDarkModeChange: "onDarkModeChange" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n <a href=\"#\" (click)=\"op.toggle($event); $event.preventDefault();\" class=\"pi pi-cog icono-header\" pTooltip=\"{{ t('configselection') }}\" tooltipPosition=\"left\" aria-label=\"{{ t('configselection') }}\"></a>\n <p-popover #op ariaLabel=\"{{ t('configselection') }}\">\n <div class=\"config-panel-settings\">\n <span class=\"config-panel-label\">{{ t('themelabel') }}</span>\n <bit-theme-selector />\n <span class=\"config-panel-label\">{{ t('darkmodeselection') }}</span>\n <div class=\"flex gap-2 align-items-center\">\n <span class=\"fa-solid fa-moon\"></span>\n <p-toggleswitch ariaLabel=\"{{ t('darkmodeselection') }}\" [(ngModel)]=\"isDarkMode\" (onChange)=\"toggleDarkMode($event);\" attr.data-testid=\"darkMode\"/>\n </div>\n <span class=\"config-panel-label\">{{ t('languageselection') }}</span>\n <div class=\"flex gap-2 align-items-center\">\n <span class=\"fa-solid fa-globe\"></span>\n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"/>\n </div>\n \n </div> \n </p-popover>\n</ng-container>", styles: [".config-panel-settings{display:flex;flex-direction:column;gap:.5rem}.config-panel-label{font-weight:700;line-height:1}a{text-decoration:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$5.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "component", type: i3$3.Popover, selector: "p-popover", inputs: ["ariaLabel", "ariaLabelledBy", "dismissable", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i3.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: BitLanguageSelectorComponent, selector: "bit-language-selector", outputs: ["onSelectLanguage"] }, { kind: "component", type: BitThemeSelectorComponent, selector: "bit-theme-selector", outputs: ["onChangeTheme"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4969
4959
|
}
|
|
4970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSettingsComponent, decorators: [{
|
|
4971
4961
|
type: Component,
|
|
4972
|
-
args: [{ selector: "bit-settings", standalone: false, template: "<ng-container *transloco=\"let t\">\
|
|
4962
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-settings", standalone: false, template: "<ng-container *transloco=\"let t\">\n <a href=\"#\" (click)=\"op.toggle($event); $event.preventDefault();\" class=\"pi pi-cog icono-header\" pTooltip=\"{{ t('configselection') }}\" tooltipPosition=\"left\" aria-label=\"{{ t('configselection') }}\"></a>\n <p-popover #op ariaLabel=\"{{ t('configselection') }}\">\n <div class=\"config-panel-settings\">\n <span class=\"config-panel-label\">{{ t('themelabel') }}</span>\n <bit-theme-selector />\n <span class=\"config-panel-label\">{{ t('darkmodeselection') }}</span>\n <div class=\"flex gap-2 align-items-center\">\n <span class=\"fa-solid fa-moon\"></span>\n <p-toggleswitch ariaLabel=\"{{ t('darkmodeselection') }}\" [(ngModel)]=\"isDarkMode\" (onChange)=\"toggleDarkMode($event);\" attr.data-testid=\"darkMode\"/>\n </div>\n <span class=\"config-panel-label\">{{ t('languageselection') }}</span>\n <div class=\"flex gap-2 align-items-center\">\n <span class=\"fa-solid fa-globe\"></span>\n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"/>\n </div>\n \n </div> \n </p-popover>\n</ng-container>", styles: [".config-panel-settings{display:flex;flex-direction:column;gap:.5rem}.config-panel-label{font-weight:700;line-height:1}a{text-decoration:none}\n"] }]
|
|
4973
4963
|
}], ctorParameters: () => [], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }], onDarkModeChange: [{ type: i0.Output, args: ["onDarkModeChange"] }] } });
|
|
4974
4964
|
|
|
4975
4965
|
class BytesPipe {
|
|
@@ -5018,10 +5008,10 @@ class BytesPipe {
|
|
|
5018
5008
|
const prev = format.prev ? BytesPipe.formats[format.prev] : undefined;
|
|
5019
5009
|
return prev ? bytes / prev.max : bytes;
|
|
5020
5010
|
}
|
|
5021
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5022
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5011
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5012
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, isStandalone: false, name: "bytes" }); }
|
|
5023
5013
|
}
|
|
5024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, decorators: [{
|
|
5025
5015
|
type: Pipe,
|
|
5026
5016
|
args: [{
|
|
5027
5017
|
name: "bytes",
|
|
@@ -5058,10 +5048,10 @@ class CapitalizePipe {
|
|
|
5058
5048
|
return texto;
|
|
5059
5049
|
}
|
|
5060
5050
|
}
|
|
5061
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5062
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5051
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5052
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, isStandalone: false, name: "capitalize" }); }
|
|
5063
5053
|
}
|
|
5064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, decorators: [{
|
|
5065
5055
|
type: Pipe,
|
|
5066
5056
|
args: [{
|
|
5067
5057
|
name: "capitalize",
|
|
@@ -5078,10 +5068,10 @@ class CutTextPipe {
|
|
|
5078
5068
|
}
|
|
5079
5069
|
return value.substring(0, maxLength) + "...";
|
|
5080
5070
|
}
|
|
5081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5082
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5071
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5072
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, isStandalone: false, name: "cutText" }); }
|
|
5083
5073
|
}
|
|
5084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, decorators: [{
|
|
5085
5075
|
type: Pipe,
|
|
5086
5076
|
args: [{
|
|
5087
5077
|
name: 'cutText',
|
|
@@ -5106,10 +5096,10 @@ class DomainListValuePipe {
|
|
|
5106
5096
|
s = s.substring(0, s.length - 2);
|
|
5107
5097
|
return s;
|
|
5108
5098
|
}
|
|
5109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5110
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5100
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, isStandalone: false, name: "domainListValue" }); }
|
|
5111
5101
|
}
|
|
5112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, decorators: [{
|
|
5113
5103
|
type: Pipe,
|
|
5114
5104
|
args: [{
|
|
5115
5105
|
name: "domainListValue",
|
|
@@ -5131,10 +5121,10 @@ class DomainValuePipe {
|
|
|
5131
5121
|
return "";
|
|
5132
5122
|
}
|
|
5133
5123
|
}
|
|
5134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5135
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5125
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, isStandalone: false, name: "domainValue" }); }
|
|
5136
5126
|
}
|
|
5137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, decorators: [{
|
|
5138
5128
|
type: Pipe,
|
|
5139
5129
|
args: [{
|
|
5140
5130
|
name: "domainValue",
|
|
@@ -5154,10 +5144,10 @@ class ListValuePipe {
|
|
|
5154
5144
|
s = s.substring(0, s.length - 2);
|
|
5155
5145
|
return s;
|
|
5156
5146
|
}
|
|
5157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5158
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5148
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, isStandalone: false, name: "listValue" }); }
|
|
5159
5149
|
}
|
|
5160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, decorators: [{
|
|
5161
5151
|
type: Pipe,
|
|
5162
5152
|
args: [{
|
|
5163
5153
|
name: "listValue",
|
|
@@ -5179,10 +5169,10 @@ class OtherToolbarActionPipe {
|
|
|
5179
5169
|
}
|
|
5180
5170
|
return actions;
|
|
5181
5171
|
}
|
|
5182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5183
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5173
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, isStandalone: false, name: "otherToolbarAction" }); }
|
|
5184
5174
|
}
|
|
5185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, decorators: [{
|
|
5186
5176
|
type: Pipe,
|
|
5187
5177
|
args: [{
|
|
5188
5178
|
name: "otherToolbarAction",
|
|
@@ -5206,10 +5196,10 @@ class RemoveLineBreaksPipe {
|
|
|
5206
5196
|
}
|
|
5207
5197
|
return str;
|
|
5208
5198
|
}
|
|
5209
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5210
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5200
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, isStandalone: false, name: "removeLineBreaks" }); }
|
|
5211
5201
|
}
|
|
5212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, decorators: [{
|
|
5213
5203
|
type: Pipe,
|
|
5214
5204
|
args: [{
|
|
5215
5205
|
name: "removeLineBreaks",
|
|
@@ -5226,10 +5216,10 @@ class SiONoPipe {
|
|
|
5226
5216
|
return value ? "Sí" : "No";
|
|
5227
5217
|
}
|
|
5228
5218
|
}
|
|
5229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5230
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5220
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, isStandalone: false, name: "siONo" }); }
|
|
5231
5221
|
}
|
|
5232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, decorators: [{
|
|
5233
5223
|
type: Pipe,
|
|
5234
5224
|
args: [{
|
|
5235
5225
|
name: "siONo",
|
|
@@ -5241,10 +5231,10 @@ class StringifyPipe {
|
|
|
5241
5231
|
transform(value) {
|
|
5242
5232
|
return JSON.stringify(value);
|
|
5243
5233
|
}
|
|
5244
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5245
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5234
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5235
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, isStandalone: false, name: "stringify" }); }
|
|
5246
5236
|
}
|
|
5247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, decorators: [{
|
|
5248
5238
|
type: Pipe,
|
|
5249
5239
|
args: [{
|
|
5250
5240
|
name: "stringify",
|
|
@@ -5271,10 +5261,10 @@ class BitPanelDirective {
|
|
|
5271
5261
|
ngOnDestroy() {
|
|
5272
5262
|
this.suscription && this.suscription.unsubscribe();
|
|
5273
5263
|
}
|
|
5274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5275
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5265
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BitPanelDirective, isStandalone: false, selector: "[bitpanel]", ngImport: i0 }); }
|
|
5276
5266
|
}
|
|
5277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPanelDirective, decorators: [{
|
|
5278
5268
|
type: Directive,
|
|
5279
5269
|
args: [{
|
|
5280
5270
|
selector: "[bitpanel]",
|
|
@@ -5290,8 +5280,8 @@ const directives = [
|
|
|
5290
5280
|
class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
5291
5281
|
constructor() {
|
|
5292
5282
|
super(...arguments);
|
|
5293
|
-
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : []));
|
|
5294
|
-
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : []));
|
|
5283
|
+
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : /* istanbul ignore next */ []));
|
|
5284
|
+
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : /* istanbul ignore next */ []));
|
|
5295
5285
|
}
|
|
5296
5286
|
get value_lectura() {
|
|
5297
5287
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -5300,34 +5290,35 @@ class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
|
5300
5290
|
writeValue(v) {
|
|
5301
5291
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
5302
5292
|
this.value = v;
|
|
5293
|
+
this.cdr.markForCheck();
|
|
5303
5294
|
}
|
|
5304
5295
|
onChangeValue(event) {
|
|
5305
5296
|
this.value = event.checked;
|
|
5306
5297
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
5307
5298
|
this.changeComponentValue(this.value);
|
|
5308
5299
|
}
|
|
5309
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5310
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchSiNoComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSwitchSiNoComponent, isStandalone: false, selector: "bit-switch-si-no", inputs: { valorTrue: { classPropertyName: "valorTrue", publicName: "valorTrue", isSignal: true, isRequired: false, transformFunction: null }, valorFalse: { classPropertyName: "valorFalse", publicName: "valorFalse", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
5311
5302
|
provide: NG_VALUE_ACCESSOR,
|
|
5312
5303
|
useExisting: forwardRef(() => BitSwitchSiNoComponent),
|
|
5313
5304
|
multi: true
|
|
5314
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\
|
|
5305
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-toggleswitch onLabel=\"S\u00ED\"\n offLabel=\"No\"\n binary=\"true\"\n [(ngModel)]=\"value\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n id=\"{{ nombre() }}\"\n [trueValue]=\"valorTrue()\"\n [falseValue]=\"valorFalse()\"\n (onChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n", dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$5.ToggleSwitch, selector: "p-toggleswitch, p-toggleSwitch, p-toggle-switch", inputs: ["styleClass", "tabindex", "inputId", "readonly", "trueValue", "falseValue", "ariaLabel", "size", "ariaLabelledBy", "autofocus"], outputs: ["onChange"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5315
5306
|
}
|
|
5316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchSiNoComponent, decorators: [{
|
|
5317
5308
|
type: Component,
|
|
5318
|
-
args: [{ selector: "bit-switch-si-no", providers: [{
|
|
5309
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch-si-no", providers: [{
|
|
5319
5310
|
provide: NG_VALUE_ACCESSOR,
|
|
5320
5311
|
useExisting: forwardRef(() => BitSwitchSiNoComponent),
|
|
5321
5312
|
multi: true
|
|
5322
|
-
}], standalone: false, template: "@if (!hideLabel()) {\
|
|
5313
|
+
}], standalone: false, template: "@if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span>\n } \n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n}\n@if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n}\n@if (!readOnly()) {\n <p-toggleswitch onLabel=\"S\u00ED\"\n offLabel=\"No\"\n binary=\"true\"\n [(ngModel)]=\"value\"\n name=\"{{ nombre() }}\"\n ariaLabel=\"{{ nombre() }}\"\n [disabled]=\"isDisabled()\"\n id=\"{{ nombre() }}\"\n [trueValue]=\"valorTrue()\"\n [falseValue]=\"valorFalse()\"\n (onChange)=\"onChangeValue($event)\"\n attr.data-testid=\"{{ dataTestId()}}\"\n />\n}\n@if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n}\n" }]
|
|
5323
5314
|
}], propDecorators: { valorTrue: [{ type: i0.Input, args: [{ isSignal: true, alias: "valorTrue", required: false }] }], valorFalse: [{ type: i0.Input, args: [{ isSignal: true, alias: "valorFalse", required: false }] }] } });
|
|
5324
5315
|
|
|
5325
5316
|
class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
5326
5317
|
constructor() {
|
|
5327
5318
|
super(...arguments);
|
|
5328
|
-
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : []));
|
|
5329
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
5330
|
-
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : []));
|
|
5319
|
+
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : /* istanbul ignore next */ []));
|
|
5320
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
5321
|
+
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : /* istanbul ignore next */ []));
|
|
5331
5322
|
this.estiloCheckAll = computed(() => {
|
|
5332
5323
|
if (this.isCheckAll()) {
|
|
5333
5324
|
return "pi pi-check-square";
|
|
@@ -5335,7 +5326,7 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5335
5326
|
else {
|
|
5336
5327
|
return "pi pi-stop";
|
|
5337
5328
|
}
|
|
5338
|
-
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : []));
|
|
5329
|
+
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : /* istanbul ignore next */ []));
|
|
5339
5330
|
}
|
|
5340
5331
|
get value_lectura() {
|
|
5341
5332
|
if (this.value) {
|
|
@@ -5356,6 +5347,7 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5356
5347
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
5357
5348
|
this.value = v;
|
|
5358
5349
|
this.refreshCheckAll();
|
|
5350
|
+
this.cdr.markForCheck();
|
|
5359
5351
|
}
|
|
5360
5352
|
onChangeValue(event) {
|
|
5361
5353
|
let selected = event && event.checked;
|
|
@@ -5385,24 +5377,24 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5385
5377
|
refreshCheckAll() {
|
|
5386
5378
|
this.isCheckAll.set(this.data()?.length === this.value?.length);
|
|
5387
5379
|
}
|
|
5388
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5389
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5380
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMultipleCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5381
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitMultipleCheckboxComponent, isStandalone: false, selector: "bit-checkbox-multiple", inputs: { chekAll: { classPropertyName: "chekAll", publicName: "chekAll", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
5390
5382
|
{
|
|
5391
5383
|
provide: NG_VALUE_ACCESSOR,
|
|
5392
5384
|
useExisting: forwardRef(() => BitMultipleCheckboxComponent),
|
|
5393
5385
|
multi: true
|
|
5394
5386
|
}
|
|
5395
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t\">\
|
|
5387
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t\">\n\n @if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> \n @if (!readOnly() && this.chekAll()) {\n <i title=\"{{t('bitnglibrary.form.bitmultiplecheckbox.checkall')}}\"\n style=\"color: #ced4da\"\n class=\"font-normal cursor-pointer hover:text-blue-600 cursor-pointer text-sm {{ estiloCheckAll() }}\"\n (click)=\"onCheckAll()\"></i> \n }\n @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span> \n }\n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n }\n\n @if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n } @else {\n\n @for (dominio of data(); track dominio) {\n <div class=\"field-checkbox inline-block\">\n <p-checkbox\n id=\"{{ nombre() + '-' + dominio.value }}\"\n name=\"{{ nombre() + '-' + dominio.value }}\"\n ariaLabel=\"{{ nombre() }}\"\n [value]=\"dominio.value\"\n [(ngModel)]=\"value\"\n [inputId]=\"dominio.value\"\n [disabled]=\"isDisabled()\"\n (onChange)=\"onChangeValue($event)\">\n attr.data-testid=\"{{ dataTestId() + \"-\" + dominio.value }}\"\n </p-checkbox>\n <label class=\"inline-block ml-2 mr-4 font-normal cursor-pointer hover:text-blue-400\"\n [for]=\"dominio.value\">{{ dominio.label }}</label>\n </div>\n }\n @if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\n }\n\n @if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n }\n }\n\n</ng-container>\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5396
5388
|
}
|
|
5397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMultipleCheckboxComponent, decorators: [{
|
|
5398
5390
|
type: Component,
|
|
5399
|
-
args: [{ selector: "bit-checkbox-multiple", providers: [
|
|
5391
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox-multiple", providers: [
|
|
5400
5392
|
{
|
|
5401
5393
|
provide: NG_VALUE_ACCESSOR,
|
|
5402
5394
|
useExisting: forwardRef(() => BitMultipleCheckboxComponent),
|
|
5403
5395
|
multi: true
|
|
5404
5396
|
}
|
|
5405
|
-
], standalone: false, template: "<ng-container *transloco=\"let t\">\
|
|
5397
|
+
], standalone: false, template: "<ng-container *transloco=\"let t\">\n\n @if (!hideLabel()) {\n <label for=\"{{ nombre() }}\">\n <ng-content /> \n @if (!readOnly() && this.chekAll()) {\n <i title=\"{{t('bitnglibrary.form.bitmultiplecheckbox.checkall')}}\"\n style=\"color: #ced4da\"\n class=\"font-normal cursor-pointer hover:text-blue-600 cursor-pointer text-sm {{ estiloCheckAll() }}\"\n (click)=\"onCheckAll()\"></i> \n }\n @if (obligatorio) {\n <span class=\"obligatorio fa fa-asterisk\"></span> \n }\n @if (ayuda()) {\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\n }\n </label>\n }\n\n @if (readOnly()) {\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\n } @else {\n\n @for (dominio of data(); track dominio) {\n <div class=\"field-checkbox inline-block\">\n <p-checkbox\n id=\"{{ nombre() + '-' + dominio.value }}\"\n name=\"{{ nombre() + '-' + dominio.value }}\"\n ariaLabel=\"{{ nombre() }}\"\n [value]=\"dominio.value\"\n [(ngModel)]=\"value\"\n [inputId]=\"dominio.value\"\n [disabled]=\"isDisabled()\"\n (onChange)=\"onChangeValue($event)\">\n attr.data-testid=\"{{ dataTestId() + \"-\" + dominio.value }}\"\n </p-checkbox>\n <label class=\"inline-block ml-2 mr-4 font-normal cursor-pointer hover:text-blue-400\"\n [for]=\"dominio.value\">{{ dominio.label }}</label>\n </div>\n }\n @if (ayuda()) {\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\n }\n\n @if (control() != null) {\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\n }\n }\n\n</ng-container>\n" }]
|
|
5406
5398
|
}], propDecorators: { chekAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "chekAll", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
5407
5399
|
|
|
5408
5400
|
const modules = [
|
|
@@ -5494,8 +5486,8 @@ const formComponents = [
|
|
|
5494
5486
|
BitAmountComponent
|
|
5495
5487
|
];
|
|
5496
5488
|
class SharedLibraryModule {
|
|
5497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5498
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5489
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5490
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, declarations: [BitPanelDirective, FocusRegisterDirective, BitBreadCrumbComponent,
|
|
5499
5491
|
BitControlMessages,
|
|
5500
5492
|
BitDialogComponent,
|
|
5501
5493
|
BitFooterComponent,
|
|
@@ -5654,7 +5646,7 @@ class SharedLibraryModule {
|
|
|
5654
5646
|
BitReadonlyComponent,
|
|
5655
5647
|
BitNumberComponent,
|
|
5656
5648
|
BitAmountComponent] }); }
|
|
5657
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5649
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, providers: [{ provide: TRANSLOCO_SCOPE, useValue: "bitnglibrary" }, MessageService], imports: [modules, RouterModule, FileUploadModule$1, TranslocoModule, AccordionModule,
|
|
5658
5650
|
AutoCompleteModule,
|
|
5659
5651
|
BadgeModule,
|
|
5660
5652
|
DatePickerModule,
|
|
@@ -5700,7 +5692,7 @@ class SharedLibraryModule {
|
|
|
5700
5692
|
TreeModule,
|
|
5701
5693
|
TreeTableModule] }); }
|
|
5702
5694
|
}
|
|
5703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, decorators: [{
|
|
5704
5696
|
type: NgModule,
|
|
5705
5697
|
args: [{
|
|
5706
5698
|
imports: [...modules, RouterModule, FileUploadModule$1, TranslocoModule],
|
|
@@ -5774,10 +5766,10 @@ class CanDeactivateGuard {
|
|
|
5774
5766
|
canDeactivate(component) {
|
|
5775
5767
|
return component.canDeactivate ? component.canDeactivate() : true;
|
|
5776
5768
|
}
|
|
5777
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5778
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5770
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard }); }
|
|
5779
5771
|
}
|
|
5780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard, decorators: [{
|
|
5781
5773
|
type: Injectable
|
|
5782
5774
|
}] });
|
|
5783
5775
|
|
|
@@ -5802,10 +5794,10 @@ class CustomHttpInterceptor {
|
|
|
5802
5794
|
this.generalUtils.stopLoading();
|
|
5803
5795
|
}));
|
|
5804
5796
|
}
|
|
5805
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5806
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5797
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5798
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, providedIn: "root" }); }
|
|
5807
5799
|
}
|
|
5808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, decorators: [{
|
|
5809
5801
|
type: Injectable,
|
|
5810
5802
|
args: [{ providedIn: "root" }]
|
|
5811
5803
|
}], ctorParameters: () => [] });
|
|
@@ -5834,10 +5826,10 @@ class EntityDataService {
|
|
|
5834
5826
|
getService(entityName) {
|
|
5835
5827
|
return this.services[entityName.trim()];
|
|
5836
5828
|
}
|
|
5837
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5838
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5829
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5830
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, providedIn: "root" }); }
|
|
5839
5831
|
}
|
|
5840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, decorators: [{
|
|
5841
5833
|
type: Injectable,
|
|
5842
5834
|
args: [{ providedIn: "root" }]
|
|
5843
5835
|
}], ctorParameters: () => [] });
|
|
@@ -5962,7 +5954,7 @@ class EntityCollectionServiceBase {
|
|
|
5962
5954
|
entities = entities.sort(sortComparerFn);
|
|
5963
5955
|
}
|
|
5964
5956
|
return entities;
|
|
5965
|
-
}, ...(ngDevMode ? [{ debugName: "entities$" }] : []));
|
|
5957
|
+
}, ...(ngDevMode ? [{ debugName: "entities$" }] : /* istanbul ignore next */ []));
|
|
5966
5958
|
/** Signal of all ids in the cached collection. */
|
|
5967
5959
|
this.ids$ = this.entityStore.ids;
|
|
5968
5960
|
/** Signal of the filter object applied by the entity collection's filter function */
|
|
@@ -6482,10 +6474,10 @@ class HttpUrlGenerator {
|
|
|
6482
6474
|
...(entityHttpResourceUrls || {})
|
|
6483
6475
|
};
|
|
6484
6476
|
}
|
|
6485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6486
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6477
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6478
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, providedIn: "root" }); }
|
|
6487
6479
|
}
|
|
6488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, decorators: [{
|
|
6489
6481
|
type: Injectable,
|
|
6490
6482
|
args: [{ providedIn: "root" }]
|
|
6491
6483
|
}] });
|