bit-ng-library 21.0.1 → 21.0.3
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 +4 -0
- package/fesm2022/bit-ng-library.mjs +478 -464
- package/fesm2022/bit-ng-library.mjs.map +1 -1
- package/{types/bit-ng-library.d.ts → index.d.ts} +406 -406
- package/index.d.ts.map +1 -0
- package/package.json +4 -5
- package/types/bit-ng-library.d.ts.map +0 -1
|
@@ -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: "20.3.16", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StorageService }); }
|
|
275
275
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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$" }] : []));
|
|
289
|
+
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
290
|
+
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : []));
|
|
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: "20.3.16", ngImport: i0, type: ThemeFBitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
349
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ThemeFBitService }); }
|
|
350
350
|
}
|
|
351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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$" }] : []));
|
|
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: "20.3.16", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
378
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LocaleService, providedIn: "root" }); }
|
|
379
379
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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: "21.2.13", 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" }] : []));
|
|
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$" }] : []));
|
|
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,13 @@ class AyudaService {
|
|
|
414
414
|
console.warn(`No existe ayuda para la clave [${key}]`);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
resetAyuda() {
|
|
418
|
+
this.mostrar.set(null);
|
|
419
|
+
}
|
|
420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AyudaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
421
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AyudaService, providedIn: "root" }); }
|
|
419
422
|
}
|
|
420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AyudaService, decorators: [{
|
|
421
424
|
type: Injectable,
|
|
422
425
|
args: [{ providedIn: "root" }]
|
|
423
426
|
}], ctorParameters: () => [] });
|
|
@@ -497,10 +500,10 @@ class BitMessageService {
|
|
|
497
500
|
hideErrorsPanel() {
|
|
498
501
|
this.observableErrorsSource.next(null);
|
|
499
502
|
}
|
|
500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
501
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
504
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitMessageService, providedIn: "root" }); }
|
|
502
505
|
}
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitMessageService, decorators: [{
|
|
504
507
|
type: Injectable,
|
|
505
508
|
args: [{ providedIn: "root" }]
|
|
506
509
|
}], ctorParameters: () => [] });
|
|
@@ -521,7 +524,7 @@ class GeneralUtils {
|
|
|
521
524
|
static { this.FORMAT_SHORT_SECONDS_TIME = "HH:mm:ss"; }
|
|
522
525
|
constructor() {
|
|
523
526
|
this.observableLoadingSource = new Subject();
|
|
524
|
-
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] :
|
|
527
|
+
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
525
528
|
console.log("GeneralUtils constructor");
|
|
526
529
|
this.observableLoading = this.observableLoadingSource.asObservable();
|
|
527
530
|
}
|
|
@@ -649,10 +652,10 @@ class GeneralUtils {
|
|
|
649
652
|
}
|
|
650
653
|
return "-";
|
|
651
654
|
}
|
|
652
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
653
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GeneralUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GeneralUtils, providedIn: "root" }); }
|
|
654
657
|
}
|
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GeneralUtils, decorators: [{
|
|
656
659
|
type: Injectable,
|
|
657
660
|
args: [{ providedIn: "root" }]
|
|
658
661
|
}], ctorParameters: () => [] });
|
|
@@ -680,7 +683,8 @@ class TranslateService {
|
|
|
680
683
|
this.langChangeSubject = new BehaviorSubject(this.defaultLanguage);
|
|
681
684
|
this.langChanged$ = this.langChangeSubject.asObservable(); //.pipe(startWith(this.getActiveLang()));
|
|
682
685
|
}
|
|
683
|
-
/**
|
|
686
|
+
/**
|
|
687
|
+
* Permite traducir un texto cuya clave tiene incluida el contexto en la propia key. Se entiende que el prefijo antes
|
|
684
688
|
* del primer punto representará el contexto y el resto representará la clave que podrá ser compuesta:
|
|
685
689
|
* Ejemplo: contexto.grupo.subgrupo.clave
|
|
686
690
|
*/
|
|
@@ -693,6 +697,10 @@ class TranslateService {
|
|
|
693
697
|
}
|
|
694
698
|
return this.selectTranslate(key, null, context);
|
|
695
699
|
}
|
|
700
|
+
// Giramos el orden de los parámetros 2 y 3 para favorecer el caso común (clave en fichero)
|
|
701
|
+
translate(key, context, params) {
|
|
702
|
+
return this.translocoService.translate(key, params, context);
|
|
703
|
+
}
|
|
696
704
|
selectTranslate(key, params, lang, _isObject) {
|
|
697
705
|
// console.log(`selectTranslate ${key} ${lang}`);
|
|
698
706
|
return this.translocoService.selectTranslate(key, params, lang, _isObject);
|
|
@@ -707,13 +715,12 @@ class TranslateService {
|
|
|
707
715
|
return this;
|
|
708
716
|
}
|
|
709
717
|
getActiveLang() {
|
|
710
|
-
|
|
711
|
-
return lang;
|
|
718
|
+
return this.translocoService.getActiveLang();
|
|
712
719
|
}
|
|
713
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
714
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TranslateService, providedIn: "root" }); }
|
|
715
722
|
}
|
|
716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TranslateService, decorators: [{
|
|
717
724
|
type: Injectable,
|
|
718
725
|
args: [{ providedIn: "root" }]
|
|
719
726
|
}], ctorParameters: () => [] });
|
|
@@ -855,10 +862,10 @@ class HttpUtilsService {
|
|
|
855
862
|
}
|
|
856
863
|
return httpHeaders;
|
|
857
864
|
}
|
|
858
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
859
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
865
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
866
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpUtilsService, providedIn: "root" }); }
|
|
860
867
|
}
|
|
861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpUtilsService, decorators: [{
|
|
862
869
|
type: Injectable,
|
|
863
870
|
args: [{ providedIn: "root" }]
|
|
864
871
|
}], ctorParameters: () => [] });
|
|
@@ -1645,10 +1652,10 @@ class DateUtils {
|
|
|
1645
1652
|
}
|
|
1646
1653
|
return "-";
|
|
1647
1654
|
}
|
|
1648
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1649
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DateUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DateUtils, providedIn: "root" }); }
|
|
1650
1657
|
}
|
|
1651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DateUtils, decorators: [{
|
|
1652
1659
|
type: Injectable,
|
|
1653
1660
|
args: [{ providedIn: "root" }]
|
|
1654
1661
|
}], ctorParameters: () => [] });
|
|
@@ -1662,10 +1669,10 @@ class DomainService {
|
|
|
1662
1669
|
return domain && domain[lang] ? of(domain[lang]) : of([]);
|
|
1663
1670
|
})), { injector: injector });
|
|
1664
1671
|
}
|
|
1665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1666
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainService, providedIn: "root" }); }
|
|
1667
1674
|
}
|
|
1668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainService, decorators: [{
|
|
1669
1676
|
type: Injectable,
|
|
1670
1677
|
args: [{ providedIn: "root" }]
|
|
1671
1678
|
}] });
|
|
@@ -1717,10 +1724,10 @@ class DownloadService {
|
|
|
1717
1724
|
this.generalUtils.stopLoading();
|
|
1718
1725
|
}, () => this.generalUtils.stopLoading());
|
|
1719
1726
|
}
|
|
1720
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1721
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1728
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DownloadService, providedIn: "root" }); }
|
|
1722
1729
|
}
|
|
1723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DownloadService, decorators: [{
|
|
1724
1731
|
type: Injectable,
|
|
1725
1732
|
args: [{
|
|
1726
1733
|
providedIn: "root"
|
|
@@ -1747,10 +1754,10 @@ class FocusService {
|
|
|
1747
1754
|
//console.log(`returning focus on ${this.focused}`);
|
|
1748
1755
|
return this.focused;
|
|
1749
1756
|
}
|
|
1750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1751
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1757
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1758
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FocusService, providedIn: "root" }); }
|
|
1752
1759
|
}
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FocusService, decorators: [{
|
|
1754
1761
|
type: Injectable,
|
|
1755
1762
|
args: [{ providedIn: "root" }]
|
|
1756
1763
|
}] });
|
|
@@ -1776,10 +1783,10 @@ class SessionSharedService {
|
|
|
1776
1783
|
// console.log('shared set', key, value);
|
|
1777
1784
|
this.data.set(key, value);
|
|
1778
1785
|
}
|
|
1779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1780
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SessionSharedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1787
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SessionSharedService, providedIn: "root" }); }
|
|
1781
1788
|
}
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SessionSharedService, decorators: [{
|
|
1783
1790
|
type: Injectable,
|
|
1784
1791
|
args: [{ providedIn: "root" }]
|
|
1785
1792
|
}], ctorParameters: () => [] });
|
|
@@ -1792,10 +1799,10 @@ class TableViewService {
|
|
|
1792
1799
|
sendExportMessage() {
|
|
1793
1800
|
this.observableExportSource.next(true);
|
|
1794
1801
|
}
|
|
1795
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1796
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1803
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableViewService, providedIn: "root" }); }
|
|
1797
1804
|
}
|
|
1798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableViewService, decorators: [{
|
|
1799
1806
|
type: Injectable,
|
|
1800
1807
|
args: [{ providedIn: "root" }]
|
|
1801
1808
|
}], ctorParameters: () => [] });
|
|
@@ -1814,10 +1821,10 @@ class ToolbarService {
|
|
|
1814
1821
|
toolbar.componentId = componentId;
|
|
1815
1822
|
this.observableToolbarSource.next(toolbar);
|
|
1816
1823
|
}
|
|
1817
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1818
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1825
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ToolbarService, providedIn: "root" }); }
|
|
1819
1826
|
}
|
|
1820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ToolbarService, decorators: [{
|
|
1821
1828
|
type: Injectable,
|
|
1822
1829
|
args: [{ providedIn: "root" }]
|
|
1823
1830
|
}], ctorParameters: () => [] });
|
|
@@ -1865,17 +1872,17 @@ class UploadService {
|
|
|
1865
1872
|
getUrlDownloadFile(id) {
|
|
1866
1873
|
return `${this.DOWNLOAD_URL}${id}`;
|
|
1867
1874
|
}
|
|
1868
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1869
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1876
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UploadService, providedIn: "root" }); }
|
|
1870
1877
|
}
|
|
1871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UploadService, decorators: [{
|
|
1872
1879
|
type: Injectable,
|
|
1873
1880
|
args: [{ providedIn: "root" }]
|
|
1874
1881
|
}], ctorParameters: () => [] });
|
|
1875
1882
|
|
|
1876
1883
|
class ClearItemsService {
|
|
1877
1884
|
constructor() {
|
|
1878
|
-
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] :
|
|
1885
|
+
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : []));
|
|
1879
1886
|
}
|
|
1880
1887
|
setClearItems(value) {
|
|
1881
1888
|
this.clearItems.set(value);
|
|
@@ -1883,10 +1890,10 @@ class ClearItemsService {
|
|
|
1883
1890
|
getClearItems() {
|
|
1884
1891
|
return this.clearItems;
|
|
1885
1892
|
}
|
|
1886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1887
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClearItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1894
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClearItemsService }); }
|
|
1888
1895
|
}
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ClearItemsService, decorators: [{
|
|
1890
1897
|
type: Injectable
|
|
1891
1898
|
}], ctorParameters: () => [] });
|
|
1892
1899
|
|
|
@@ -1903,10 +1910,10 @@ class BaseComponent {
|
|
|
1903
1910
|
getHelpSectionUrl(section) {
|
|
1904
1911
|
return this.ayudaService.baseHelpUrl$() + '#/' + section + "/";
|
|
1905
1912
|
}
|
|
1906
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1907
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1914
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: BaseComponent, isStandalone: true, ngImport: i0 }); }
|
|
1908
1915
|
}
|
|
1909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1910
1917
|
type: Directive
|
|
1911
1918
|
}] });
|
|
1912
1919
|
|
|
@@ -2388,7 +2395,7 @@ function makeToolbarChildList(enableDelete) {
|
|
|
2388
2395
|
class BitBreadCrumbComponent {
|
|
2389
2396
|
constructor() {
|
|
2390
2397
|
this.router = inject(Router);
|
|
2391
|
-
this.bc = input([],
|
|
2398
|
+
this.bc = input([], ...(ngDevMode ? [{ debugName: "bc", alias: "breadcrumb" }] : [{ alias: "breadcrumb" }]));
|
|
2392
2399
|
}
|
|
2393
2400
|
/** Comprobamos si los datos de entrada no están definidos para inicializarlos en blanco */
|
|
2394
2401
|
ngOnInit() {
|
|
@@ -2406,8 +2413,8 @@ class BitBreadCrumbComponent {
|
|
|
2406
2413
|
}
|
|
2407
2414
|
return false; //para evitar que navegue al href="#"
|
|
2408
2415
|
}
|
|
2409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2410
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitBreadCrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2417
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitBreadCrumbComponent, isStandalone: false, selector: "bit-breadcrumb", inputs: { bc: { classPropertyName: "bc", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2411
2418
|
<ul class="breadcrumb">
|
|
2412
2419
|
@for (path of bc(); track path; let i = $index) {
|
|
2413
2420
|
<li [class.active]="i == bc().length - 1">
|
|
@@ -2422,7 +2429,7 @@ class BitBreadCrumbComponent {
|
|
|
2422
2429
|
</ul>
|
|
2423
2430
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2424
2431
|
}
|
|
2425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitBreadCrumbComponent, decorators: [{
|
|
2426
2433
|
type: Component,
|
|
2427
2434
|
args: [{
|
|
2428
2435
|
selector: "bit-breadcrumb",
|
|
@@ -2451,8 +2458,8 @@ class BitControlMessages {
|
|
|
2451
2458
|
constructor() {
|
|
2452
2459
|
this.focusService = inject(FocusService);
|
|
2453
2460
|
this.translateService = inject(TranslateService);
|
|
2454
|
-
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] :
|
|
2455
|
-
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] :
|
|
2461
|
+
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : []));
|
|
2462
|
+
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : []));
|
|
2456
2463
|
}
|
|
2457
2464
|
get isError() {
|
|
2458
2465
|
if (this.focusService.getFocusedElement() !== this.field()) {
|
|
@@ -2469,8 +2476,8 @@ class BitControlMessages {
|
|
|
2469
2476
|
}
|
|
2470
2477
|
return false;
|
|
2471
2478
|
}
|
|
2472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2479
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitControlMessages, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2480
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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
2481
|
@if (isError) {
|
|
2475
2482
|
<div>
|
|
2476
2483
|
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
@@ -2478,7 +2485,7 @@ class BitControlMessages {
|
|
|
2478
2485
|
}
|
|
2479
2486
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2480
2487
|
}
|
|
2481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitControlMessages, decorators: [{
|
|
2482
2489
|
type: Component,
|
|
2483
2490
|
args: [{
|
|
2484
2491
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2523,11 +2530,11 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2523
2530
|
super();
|
|
2524
2531
|
this.bitMessageService = inject(BitMessageService);
|
|
2525
2532
|
this.translateService = inject(TranslateService);
|
|
2526
|
-
this.message = signal(new BitMessage("", ""), ...(ngDevMode ? [{ debugName: "message" }] :
|
|
2527
|
-
this.display = signal(false, ...(ngDevMode ? [{ debugName: "display" }] :
|
|
2533
|
+
this.message = signal(new BitMessage("", ""), ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
2534
|
+
this.display = signal(false, ...(ngDevMode ? [{ debugName: "display" }] : []));
|
|
2528
2535
|
this.errorAccessUrl = toSignal(this.translateService.selectTranslate("messages.erroraccessurl", {}, "bitnglibrary"), { initialValue: "" });
|
|
2529
2536
|
this.errorAccess = toSignal(this.translateService.selectTranslate("messages.erroraccess", {}, "bitnglibrary"), { initialValue: "" });
|
|
2530
|
-
this.isSeverityInfo = computed(() => this.message().severity === "info", ...(ngDevMode ? [{ debugName: "isSeverityInfo" }] :
|
|
2537
|
+
this.isSeverityInfo = computed(() => this.message().severity === "info", ...(ngDevMode ? [{ debugName: "isSeverityInfo" }] : []));
|
|
2531
2538
|
const bitMessageService = this.bitMessageService;
|
|
2532
2539
|
//console.log("DialogComponent contructor(" + bitMessageService + ")");
|
|
2533
2540
|
//Nos suscribimos a la espera de que envíen mensajes
|
|
@@ -2598,8 +2605,8 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2598
2605
|
return '<span class="' + cls + '">' + match + "</span>";
|
|
2599
2606
|
});
|
|
2600
2607
|
}
|
|
2601
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2602
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2609
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitDialogComponent, isStandalone: false, selector: "bit-dialog", usesInheritance: true, ngImport: i0, template: `
|
|
2603
2610
|
@if (!isSeverityInfo()) {
|
|
2604
2611
|
<p-dialog
|
|
2605
2612
|
class="scroll-y scroll-{{ message().height }}"
|
|
@@ -2654,9 +2661,9 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2654
2661
|
<pre [innerHTML]="syntaxHighlight(message().message)"></pre>
|
|
2655
2662
|
</p-dialog>
|
|
2656
2663
|
}
|
|
2657
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.Dialog, selector: "p-dialog", inputs: ["
|
|
2664
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.Dialog, selector: "p-dialog", inputs: ["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", "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
2665
|
}
|
|
2659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDialogComponent, decorators: [{
|
|
2660
2667
|
type: Component,
|
|
2661
2668
|
args: [{
|
|
2662
2669
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2763,10 +2770,10 @@ class CantidadMonedaPipe {
|
|
|
2763
2770
|
: "";
|
|
2764
2771
|
return integer + fraction;
|
|
2765
2772
|
}
|
|
2766
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2767
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2773
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CantidadMonedaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2774
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: CantidadMonedaPipe, isStandalone: false, name: "cantidadMoneda" }); }
|
|
2768
2775
|
}
|
|
2769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CantidadMonedaPipe, decorators: [{
|
|
2770
2777
|
type: Pipe,
|
|
2771
2778
|
args: [{
|
|
2772
2779
|
name: "cantidadMoneda",
|
|
@@ -2776,12 +2783,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
2776
2783
|
|
|
2777
2784
|
class BitPajigatorComponent {
|
|
2778
2785
|
constructor() {
|
|
2779
|
-
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] :
|
|
2780
|
-
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] :
|
|
2781
|
-
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] :
|
|
2782
|
-
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] :
|
|
2783
|
-
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] :
|
|
2784
|
-
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] :
|
|
2786
|
+
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] : []));
|
|
2787
|
+
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
2788
|
+
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] : []));
|
|
2789
|
+
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : []));
|
|
2790
|
+
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
2791
|
+
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : []));
|
|
2785
2792
|
this.onPageChange = output();
|
|
2786
2793
|
this.onPageSizeChange = output();
|
|
2787
2794
|
this.maxPages = computed(() => {
|
|
@@ -2794,10 +2801,10 @@ class BitPajigatorComponent {
|
|
|
2794
2801
|
}
|
|
2795
2802
|
console.log("totalItems:" + this.totalItems() + "maxPages:" + maxPages + " itemsPerPage:" + this.itemsPerPage());
|
|
2796
2803
|
return maxPages;
|
|
2797
|
-
}, ...(ngDevMode ? [{ debugName: "maxPages" }] :
|
|
2798
|
-
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] :
|
|
2799
|
-
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] :
|
|
2800
|
-
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] :
|
|
2804
|
+
}, ...(ngDevMode ? [{ debugName: "maxPages" }] : []));
|
|
2805
|
+
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] : []));
|
|
2806
|
+
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] : []));
|
|
2807
|
+
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] : []));
|
|
2801
2808
|
}
|
|
2802
2809
|
changeItemsPerpage(items) {
|
|
2803
2810
|
if (!items)
|
|
@@ -2811,10 +2818,10 @@ class BitPajigatorComponent {
|
|
|
2811
2818
|
this.page.update((current) => (current += direction));
|
|
2812
2819
|
this.onPageChange.emit(this.page());
|
|
2813
2820
|
}
|
|
2814
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2815
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2821
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitPajigatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2822
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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'\">\r\n <div class=\"pajigator-container\">\r\n <div class=\"pajigator-results-container\">\r\n <span class=\"pajigator-results-label\">{{\"bitnglibrary.footer.results\" | transloco}}</span>\r\n @if (paginator()) { \r\n @if (maxCurrentItems() >= totalItems()) {\r\n <span>{{totalItems() | cantidadMoneda:0}}</span>\r\n }\r\n @if (maxCurrentItems() < totalItems()) {\r\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\r\n }\r\n } @else {\r\n <span>{{totalItems() | cantidadMoneda:0}}</span>\r\n }\r\n </div>\r\n @if (paginator()) { \r\n <div class=\"pajigator-page-size\">\r\n <div class=\"pajigator-page-size-label\">{{ \"bitnglibrary.footer.itemsPerPage\" | transloco }}</div>\r\n <!-- appendTo=\"body\"--->\r\n <p-select appendTo=\"body\"\r\n [options]=\"rowsPerPageOptions()\"\r\n [ngModel]=\"itemsPerPage()\"\r\n (ngModelChange)=\"changeItemsPerpage($event)\" />\r\n </div>\r\n <div class=\"pajigator-range-actions\">\r\n @if (showPageInfo()) {\r\n <div class=\"pajigator-range-label\"> {{ \"bitnglibrary.footer.page\" | transloco }} {{page()}} de {{maxPages()}} </div>\r\n }\r\n <p-button (onClick)=\"changePage(-1)\" [disabled]=\"!showLeftNavigationButton()\" severity=\"primary\" label=\"<\" ariaLabel=\"P\u00E0gina anterior\" />\r\n <p-button (onClick)=\"changePage(1)\" [disabled]=\"!showRightNavigationButton()\" severity=\"primary\" label=\">\" ariaLabel=\"P\u00E0gina seg\u00FCent\" />\r\n </div>\r\n } \r\n </div>\r\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"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { 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: "pipe", type: i3.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: CantidadMonedaPipe, name: "cantidadMoneda" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2816
2823
|
}
|
|
2817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitPajigatorComponent, decorators: [{
|
|
2818
2825
|
type: Component,
|
|
2819
2826
|
args: [{ selector: 'bit-pajigator', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div [class]=\"paginator() ? 'pajigator-outer-container' : 'pajigator-outer-container-single-result'\">\r\n <div class=\"pajigator-container\">\r\n <div class=\"pajigator-results-container\">\r\n <span class=\"pajigator-results-label\">{{\"bitnglibrary.footer.results\" | transloco}}</span>\r\n @if (paginator()) { \r\n @if (maxCurrentItems() >= totalItems()) {\r\n <span>{{totalItems() | cantidadMoneda:0}}</span>\r\n }\r\n @if (maxCurrentItems() < totalItems()) {\r\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\r\n }\r\n } @else {\r\n <span>{{totalItems() | cantidadMoneda:0}}</span>\r\n }\r\n </div>\r\n @if (paginator()) { \r\n <div class=\"pajigator-page-size\">\r\n <div class=\"pajigator-page-size-label\">{{ \"bitnglibrary.footer.itemsPerPage\" | transloco }}</div>\r\n <!-- appendTo=\"body\"--->\r\n <p-select appendTo=\"body\"\r\n [options]=\"rowsPerPageOptions()\"\r\n [ngModel]=\"itemsPerPage()\"\r\n (ngModelChange)=\"changeItemsPerpage($event)\" />\r\n </div>\r\n <div class=\"pajigator-range-actions\">\r\n @if (showPageInfo()) {\r\n <div class=\"pajigator-range-label\"> {{ \"bitnglibrary.footer.page\" | transloco }} {{page()}} de {{maxPages()}} </div>\r\n }\r\n <p-button (onClick)=\"changePage(-1)\" [disabled]=\"!showLeftNavigationButton()\" severity=\"primary\" label=\"<\" ariaLabel=\"P\u00E0gina anterior\" />\r\n <p-button (onClick)=\"changePage(1)\" [disabled]=\"!showRightNavigationButton()\" severity=\"primary\" label=\">\" ariaLabel=\"P\u00E0gina seg\u00FCent\" />\r\n </div>\r\n } \r\n </div>\r\n</div>" }]
|
|
2820
2827
|
}], 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"] }] } });
|
|
@@ -2822,19 +2829,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
2822
2829
|
class BitHelpComponent {
|
|
2823
2830
|
constructor() {
|
|
2824
2831
|
this.ayudaService = inject(AyudaService);
|
|
2825
|
-
this.ayuda = linkedSignal(
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2832
|
+
this.ayuda = linkedSignal(...(ngDevMode ? [{ debugName: "ayuda", source: this.ayudaService.mostrar,
|
|
2833
|
+
computation: (newAyuda, _) => {
|
|
2834
|
+
console.log("newAyuda", newAyuda);
|
|
2835
|
+
return newAyuda;
|
|
2836
|
+
} }] : [{
|
|
2837
|
+
source: this.ayudaService.mostrar,
|
|
2838
|
+
computation: (newAyuda, _) => {
|
|
2839
|
+
console.log("newAyuda", newAyuda);
|
|
2840
|
+
return newAyuda;
|
|
2841
|
+
}
|
|
2842
|
+
}]));
|
|
2843
|
+
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : []));
|
|
2831
2844
|
}
|
|
2832
2845
|
/** Oculta el modal con los avisos */
|
|
2833
2846
|
hideAyuda() {
|
|
2847
|
+
this.ayudaService.resetAyuda();
|
|
2834
2848
|
this.ayuda.set(null);
|
|
2835
2849
|
}
|
|
2836
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2837
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2850
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitHelpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2851
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitHelpComponent, isStandalone: false, selector: "bit-help", ngImport: i0, template: `
|
|
2838
2852
|
@if (mostrarAyuda()) {
|
|
2839
2853
|
<div class="ventana-ayuda">
|
|
2840
2854
|
<div class="ayuda-header">
|
|
@@ -2849,7 +2863,7 @@ class BitHelpComponent {
|
|
|
2849
2863
|
}
|
|
2850
2864
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2851
2865
|
}
|
|
2852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitHelpComponent, decorators: [{
|
|
2853
2867
|
type: Component,
|
|
2854
2868
|
args: [{
|
|
2855
2869
|
selector: "bit-help",
|
|
@@ -2877,36 +2891,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
2877
2891
|
class BitFooterMessagesComponent {
|
|
2878
2892
|
constructor() {
|
|
2879
2893
|
this.translateService = inject(TranslateService);
|
|
2880
|
-
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] :
|
|
2881
|
-
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] :
|
|
2882
|
-
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] :
|
|
2883
|
-
this.typeFooter = input("list",
|
|
2884
|
-
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] :
|
|
2885
|
-
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] :
|
|
2886
|
-
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] :
|
|
2894
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2895
|
+
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] : []));
|
|
2896
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : []));
|
|
2897
|
+
this.typeFooter = input("list", ...(ngDevMode ? [{ debugName: "typeFooter", alias: "type" }] : [{ alias: "type" }]));
|
|
2898
|
+
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] : []));
|
|
2899
|
+
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] : []));
|
|
2900
|
+
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] : []));
|
|
2887
2901
|
/** Flag: la página está realizando la búsqueda. */
|
|
2888
|
-
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] :
|
|
2902
|
+
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : []));
|
|
2889
2903
|
/** Flag: la página está realizando la búsqueda. */
|
|
2890
|
-
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] :
|
|
2904
|
+
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : []));
|
|
2891
2905
|
/** Flag: la página ha finalizado la última búsqueda. */
|
|
2892
|
-
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] :
|
|
2906
|
+
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : []));
|
|
2893
2907
|
/** Flag: la página está en modo solo lectura */
|
|
2894
|
-
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] :
|
|
2908
|
+
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
2895
2909
|
/** Flag: la página ha finalizado con error */
|
|
2896
|
-
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] :
|
|
2910
|
+
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
2897
2911
|
/** Flag: encontrado resultado. */
|
|
2898
2912
|
this.foundResult = computed(() => {
|
|
2899
2913
|
return (this.searchFinished() &&
|
|
2900
2914
|
((this.isFooterList() && this.totalItems() > 0) ||
|
|
2901
2915
|
this.isFooterForm() ||
|
|
2902
2916
|
(this.isFooterScroll() && this.totalItems() <= this.maxCurrentItems())));
|
|
2903
|
-
}, ...(ngDevMode ? [{ debugName: "foundResult" }] :
|
|
2917
|
+
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : []));
|
|
2904
2918
|
/** Flag: hay más resultados (scroll). */
|
|
2905
2919
|
this.moreResults = computed(() => {
|
|
2906
2920
|
return this.searchFinished() && this.isFooterScroll() && this.totalItems() > this.maxCurrentItems();
|
|
2907
|
-
}, ...(ngDevMode ? [{ debugName: "moreResults" }] :
|
|
2921
|
+
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : []));
|
|
2908
2922
|
/** Flag: no hay resultados. */
|
|
2909
|
-
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] :
|
|
2923
|
+
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : []));
|
|
2910
2924
|
this.messages = computed(() => {
|
|
2911
2925
|
let messagesMap = new Map();
|
|
2912
2926
|
if (this.isFooterList() || this.isFooterScroll()) {
|
|
@@ -2927,7 +2941,7 @@ class BitFooterMessagesComponent {
|
|
|
2927
2941
|
}
|
|
2928
2942
|
messagesMap.set(PageStatus.Error, "bitnglibrary.footer.error");
|
|
2929
2943
|
return messagesMap;
|
|
2930
|
-
}, ...(ngDevMode ? [{ debugName: "messages" }] :
|
|
2944
|
+
}, ...(ngDevMode ? [{ debugName: "messages" }] : []));
|
|
2931
2945
|
this.initMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Init)));
|
|
2932
2946
|
this.searchingMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Searching)));
|
|
2933
2947
|
this.finishMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.FinishSearch)));
|
|
@@ -2946,7 +2960,7 @@ class BitFooterMessagesComponent {
|
|
|
2946
2960
|
else if (this.isFooterForm()) {
|
|
2947
2961
|
return `mensaje-form mensaje-${type}`;
|
|
2948
2962
|
}
|
|
2949
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] :
|
|
2963
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
2950
2964
|
this.message = computed(() => {
|
|
2951
2965
|
if (this.searchInitiated())
|
|
2952
2966
|
return this.initMessage();
|
|
@@ -2963,12 +2977,12 @@ class BitFooterMessagesComponent {
|
|
|
2963
2977
|
if (this.error())
|
|
2964
2978
|
return this.errorMessage();
|
|
2965
2979
|
return "";
|
|
2966
|
-
}, ...(ngDevMode ? [{ debugName: "message" }] :
|
|
2980
|
+
}, ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
2967
2981
|
}
|
|
2968
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2969
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
2982
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitFooterMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2983
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", 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>\r\n <div [class]=\"getStyle()\">\r\n <i class=\"fa fa-info\"></i>\r\n <span>{{message()}}</span>\r\n </div>\r\n\r\n <bit-help />\r\n</div>", dependencies: [{ kind: "component", type: BitHelpComponent, selector: "bit-help" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2970
2984
|
}
|
|
2971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitFooterMessagesComponent, decorators: [{
|
|
2972
2986
|
type: Component,
|
|
2973
2987
|
args: [{ selector: 'bit-footer-messages', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div>\r\n <div [class]=\"getStyle()\">\r\n <i class=\"fa fa-info\"></i>\r\n <span>{{message()}}</span>\r\n </div>\r\n\r\n <bit-help />\r\n</div>" }]
|
|
2974
2988
|
}], 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 }] }] } });
|
|
@@ -2978,28 +2992,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
2978
2992
|
**/
|
|
2979
2993
|
class BitFooterComponent {
|
|
2980
2994
|
constructor() {
|
|
2981
|
-
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] :
|
|
2982
|
-
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] :
|
|
2983
|
-
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] :
|
|
2984
|
-
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] :
|
|
2985
|
-
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] :
|
|
2986
|
-
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] :
|
|
2987
|
-
this.typeFooter = input("list",
|
|
2988
|
-
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] :
|
|
2995
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : [])); // Número total de elementos recuperados de la consulta
|
|
2996
|
+
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] : [])); // filtro de búsqieda
|
|
2997
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2998
|
+
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] : []));
|
|
2999
|
+
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] : []));
|
|
3000
|
+
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] : [])); // Indicará si lo queremos fijo abajo en la página. Por defecto sí.
|
|
3001
|
+
this.typeFooter = input("list", ...(ngDevMode ? [{ debugName: "typeFooter", alias: "type" }] : [{ alias: "type" }]));
|
|
3002
|
+
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
2989
3003
|
this.onPageChange = output(); //para notificar cambios en la página a mostrar
|
|
2990
3004
|
this.onNewPageSize = output(); //para notificar cambios en los elementos a mostrar por página
|
|
2991
3005
|
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
|
|
2992
|
-
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] :
|
|
2993
|
-
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] :
|
|
3006
|
+
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
3007
|
+
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
2994
3008
|
this.maxCurrentItems = computed(() => {
|
|
2995
3009
|
let maxCurrentItems = this.filter()?.pagina * this.filter()?.resultados;
|
|
2996
3010
|
if (maxCurrentItems > this.totalItems()) {
|
|
2997
3011
|
maxCurrentItems = this.totalItems();
|
|
2998
3012
|
}
|
|
2999
3013
|
return maxCurrentItems;
|
|
3000
|
-
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] :
|
|
3001
|
-
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] :
|
|
3002
|
-
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] :
|
|
3014
|
+
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : [])); // número de elementos que mostramos en pantalla. Necesario para el modo scroll
|
|
3015
|
+
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] : []));
|
|
3016
|
+
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] : []));
|
|
3003
3017
|
this.getStyle = computed(() => {
|
|
3004
3018
|
if ((this.fixed() && this.typeFooter() === TYPE_LIST) || this.typeFooter() === TYPE_SCROLL) {
|
|
3005
3019
|
return "footer navbar-fixed-bottom";
|
|
@@ -3010,7 +3024,7 @@ class BitFooterComponent {
|
|
|
3010
3024
|
else {
|
|
3011
3025
|
return "footer";
|
|
3012
3026
|
}
|
|
3013
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] :
|
|
3027
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
3014
3028
|
}
|
|
3015
3029
|
pageChange(page) {
|
|
3016
3030
|
this.onPageChange.emit(page);
|
|
@@ -3018,10 +3032,10 @@ class BitFooterComponent {
|
|
|
3018
3032
|
pageSizeChange(pageSize) {
|
|
3019
3033
|
this.onNewPageSize.emit(pageSize);
|
|
3020
3034
|
}
|
|
3021
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3022
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3035
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3036
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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()\">\r\n\r\n @if (showScroll()) {\r\n <div class=\"scroll-outer-container\">\r\n <div class=\"pajigator-container\">\r\n <label>{{\"bitnglibrary.footer.results\" | transloco}}</label>\r\n @if (maxCurrentItems() >= totalItems()) {\r\n <span>{{totalItems()}}</span>\r\n }\r\n @if (maxCurrentItems() < totalItems()) {\r\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (showPajigator()) {\r\n <bit-pajigator [paginator]=\"paginator()\"\r\n [totalItems]=\"totalItems()\"\r\n [page]=\"page()\"\r\n [itemsPerPage]=\"itemsPerPage()\"\r\n [rowsPerPageOptions]=\"[baseItemsPerPage,baseItemsPerPage*2,baseItemsPerPage*4,baseItemsPerPage*10,baseItemsPerPage*50]\"\r\n [maxCurrentItems]=\"maxCurrentItems()\"\r\n (onPageChange)=\"pageChange($event)\"\r\n (onPageSizeChange)=\"pageSizeChange($event)\" />\r\n }\r\n\r\n @if (mostrarAvisos()) {\r\n <bit-footer-messages [type]=\"typeFooter()\"\r\n [status]=\"status()\"\r\n [maxCurrentItems]=\"maxCurrentItems()\"\r\n [totalItems]=\"totalItems()\" />\r\n }\r\n\r\n</footer>\r\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 }); }
|
|
3023
3037
|
}
|
|
3024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitFooterComponent, decorators: [{
|
|
3025
3039
|
type: Component,
|
|
3026
3040
|
args: [{ selector: "bit-footer", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<footer [class]=\"getStyle()\">\r\n\r\n @if (showScroll()) {\r\n <div class=\"scroll-outer-container\">\r\n <div class=\"pajigator-container\">\r\n <label>{{\"bitnglibrary.footer.results\" | transloco}}</label>\r\n @if (maxCurrentItems() >= totalItems()) {\r\n <span>{{totalItems()}}</span>\r\n }\r\n @if (maxCurrentItems() < totalItems()) {\r\n <span>{{maxCurrentItems()}} / {{totalItems()}}</span>\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (showPajigator()) {\r\n <bit-pajigator [paginator]=\"paginator()\"\r\n [totalItems]=\"totalItems()\"\r\n [page]=\"page()\"\r\n [itemsPerPage]=\"itemsPerPage()\"\r\n [rowsPerPageOptions]=\"[baseItemsPerPage,baseItemsPerPage*2,baseItemsPerPage*4,baseItemsPerPage*10,baseItemsPerPage*50]\"\r\n [maxCurrentItems]=\"maxCurrentItems()\"\r\n (onPageChange)=\"pageChange($event)\"\r\n (onPageSizeChange)=\"pageSizeChange($event)\" />\r\n }\r\n\r\n @if (mostrarAvisos()) {\r\n <bit-footer-messages [type]=\"typeFooter()\"\r\n [status]=\"status()\"\r\n [maxCurrentItems]=\"maxCurrentItems()\"\r\n [totalItems]=\"totalItems()\" />\r\n }\r\n\r\n</footer>\r\n" }]
|
|
3027
3041
|
}], 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"] }] } });
|
|
@@ -3029,16 +3043,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3029
3043
|
class BitBotonAyudaComponent {
|
|
3030
3044
|
constructor() {
|
|
3031
3045
|
this.ayudaService = inject(AyudaService);
|
|
3032
|
-
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] :
|
|
3033
|
-
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] :
|
|
3034
|
-
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] :
|
|
3035
|
-
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] :
|
|
3046
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : []));
|
|
3047
|
+
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] : [])); // show a little [?] or a full button
|
|
3048
|
+
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] : [])); // extra CSS classes for HTML component
|
|
3049
|
+
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] : []));
|
|
3036
3050
|
}
|
|
3037
3051
|
mostrarAyuda() {
|
|
3038
3052
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3039
3053
|
}
|
|
3040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3041
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3054
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitBotonAyudaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3055
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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
3056
|
@if (boton()) {
|
|
3043
3057
|
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3044
3058
|
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
@@ -3048,9 +3062,9 @@ class BitBotonAyudaComponent {
|
|
|
3048
3062
|
@if (!boton()) {
|
|
3049
3063
|
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3050
3064
|
}
|
|
3051
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["
|
|
3065
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3052
3066
|
}
|
|
3053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitBotonAyudaComponent, decorators: [{
|
|
3054
3068
|
type: Component,
|
|
3055
3069
|
args: [{
|
|
3056
3070
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3079,11 +3093,11 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3079
3093
|
this.translateService = inject(TranslateService);
|
|
3080
3094
|
this.translations = toSignal(this.translateService.selectTranslate("toolbar", {}, "bitnglibrary", true), { initialValue: {} });
|
|
3081
3095
|
this.mostrar = false;
|
|
3082
|
-
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] :
|
|
3083
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] :
|
|
3084
|
-
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] :
|
|
3085
|
-
this.buttonSize = input(...(ngDevMode ? [undefined, { debugName: "buttonSize" }] :
|
|
3086
|
-
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] :
|
|
3096
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : []));
|
|
3097
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : [])); // clave de la ayuda contextual que mostrar para su botón
|
|
3098
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : [])); // género femenino (para los nombres de botones) o no
|
|
3099
|
+
this.buttonSize = input(...(ngDevMode ? [undefined, { debugName: "buttonSize" }] : [])); // tamaño de los botones, por defecto normal
|
|
3100
|
+
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
|
|
3087
3101
|
this.onToolbarButtonPressed = output();
|
|
3088
3102
|
/** Devuelve si hay other actions que deben mostrarse en desplegable (solo cuando hay más de una). */
|
|
3089
3103
|
this.itemsOtherActionsEnDesplegable = computed(() => {
|
|
@@ -3093,12 +3107,12 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3093
3107
|
return actions;
|
|
3094
3108
|
else
|
|
3095
3109
|
return [];
|
|
3096
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] :
|
|
3110
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : []));
|
|
3097
3111
|
/** Devuelve la clave de traducción del label del botón de "other actions" */
|
|
3098
3112
|
this.otherActionsLabel = computed(() => {
|
|
3099
3113
|
const toolbar = this.toolbar() || {};
|
|
3100
3114
|
return toolbar['_otherActionsLabel'] || 'other-actions';
|
|
3101
|
-
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] :
|
|
3115
|
+
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : []));
|
|
3102
3116
|
/** Devuelve si hay other actions que deben mostrarse como botón (incluye la de desplegable si hay solo una). */
|
|
3103
3117
|
this.itemsOtherActionsEnBoton = computed(() => {
|
|
3104
3118
|
const toolbar = this.toolbar() || {};
|
|
@@ -3108,7 +3122,7 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3108
3122
|
if (actionsEnDesplegable?.length === 1)
|
|
3109
3123
|
actions.push(actionsEnDesplegable[0]);
|
|
3110
3124
|
return actions;
|
|
3111
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] :
|
|
3125
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : []));
|
|
3112
3126
|
}
|
|
3113
3127
|
static { this.FILTER_BUTTON = "filter"; }
|
|
3114
3128
|
static { this.PRINT_BUTTON = "print"; }
|
|
@@ -3200,10 +3214,10 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3200
3214
|
incluirOtherActionComoBoton(toolbarItem) {
|
|
3201
3215
|
return toolbarItem.otherAction && toolbarItem.visible && (!this.otherActionsDropdown() || toolbarItem.displayAsButton === true);
|
|
3202
3216
|
}
|
|
3203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3204
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitToolbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3218
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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\">\r\n\r\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se deben incluir en un desplegable -->\r\n @if (itemsOtherActionsEnDesplegable().length > 1) {\r\n <p-splitbutton #sb label=\"{{'bitnglibrary.toolbar.' + otherActionsLabel() | transloco}}\" [model]=\"itemsOtherActionsEnDesplegable()\" (onClick)=\"onSplitButtonLabelClick(sb, $event)\" />\r\n }\r\n\r\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se muestran una tras otra en l\u00EDnea -->\r\n @for (button of itemsOtherActionsEnBoton(); track button) {\r\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>\r\n }\r\n\r\n <!-- acciones estandar -->\r\n @if (visible('new')) {\r\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>\r\n }\r\n @if (visible('add')) {\r\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>\r\n }\r\n\r\n @if (visible('export')) {\r\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>\r\n }\r\n @if (visible('save')) {\r\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>\r\n }\r\n @if (visible('delete')) {\r\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>\r\n }\r\n @if (visible('print')) {\r\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>\r\n }\r\n @if (ayuda()) {\r\n <bit-boton-ayuda boton=\"true\" [ayuda]=\"ayuda()\" [buttonSize]=\"buttonSize()\" />\r\n }\r\n</div>\r\n", dependencies: [{ 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: 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", "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 }); }
|
|
3205
3219
|
}
|
|
3206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitToolbarComponent, decorators: [{
|
|
3207
3221
|
type: Component,
|
|
3208
3222
|
args: [{ selector: "bit-toolbar", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"contenedor-toolbar\">\r\n\r\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se deben incluir en un desplegable -->\r\n @if (itemsOtherActionsEnDesplegable().length > 1) {\r\n <p-splitbutton #sb label=\"{{'bitnglibrary.toolbar.' + otherActionsLabel() | transloco}}\" [model]=\"itemsOtherActionsEnDesplegable()\" (onClick)=\"onSplitButtonLabelClick(sb, $event)\" />\r\n }\r\n\r\n <!-- acciones no estandar definidas din\u00E1micamente o muy particulares que se muestran una tras otra en l\u00EDnea -->\r\n @for (button of itemsOtherActionsEnBoton(); track button) {\r\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>\r\n }\r\n\r\n <!-- acciones estandar -->\r\n @if (visible('new')) {\r\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>\r\n }\r\n @if (visible('add')) {\r\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>\r\n }\r\n\r\n @if (visible('export')) {\r\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>\r\n }\r\n @if (visible('save')) {\r\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>\r\n }\r\n @if (visible('delete')) {\r\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>\r\n }\r\n @if (visible('print')) {\r\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>\r\n }\r\n @if (ayuda()) {\r\n <bit-boton-ayuda boton=\"true\" [ayuda]=\"ayuda()\" [buttonSize]=\"buttonSize()\" />\r\n }\r\n</div>\r\n" }]
|
|
3209
3223
|
}], 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"] }] } });
|
|
@@ -3213,14 +3227,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3213
3227
|
*/
|
|
3214
3228
|
class BitHeaderComponent {
|
|
3215
3229
|
constructor() {
|
|
3216
|
-
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] :
|
|
3217
|
-
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] :
|
|
3218
|
-
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] :
|
|
3219
|
-
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] :
|
|
3220
|
-
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] :
|
|
3221
|
-
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] :
|
|
3222
|
-
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] :
|
|
3223
|
-
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] :
|
|
3230
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : []));
|
|
3231
|
+
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] : []));
|
|
3232
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : [])); // determina si las "other actions" deben mostrarse en línea o como un desplegable
|
|
3233
|
+
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3234
|
+
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] : []));
|
|
3235
|
+
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] : []));
|
|
3236
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : [])); // género femenino (para los nombres de botones) o no
|
|
3237
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : [])); // clave de la ayuda contextual para la botonera
|
|
3224
3238
|
this.onToolbarButtonPressed = output();
|
|
3225
3239
|
}
|
|
3226
3240
|
/** 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
|
|
@@ -3229,10 +3243,10 @@ class BitHeaderComponent {
|
|
|
3229
3243
|
onTBPressed(button) {
|
|
3230
3244
|
this.onToolbarButtonPressed.emit(button);
|
|
3231
3245
|
}
|
|
3232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3233
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3247
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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\">\r\n<div class=\"col-12 lg:col-4 sm:col-4 caja-breadcrumb\"> -->\r\n <!-- ruta de donde nos encontramos (miga de pan) -->\r\n <!-- <bit-breadcrumb *ngIf=\"breadcrumb\" [breadcrumb]=\"breadcrumb\"></bit-breadcrumb>\r\n</div>\r\n<div *ngIf=\"noToolbar === false\"\r\n class=\"col-12 lg:col-8 sm:col-8\"> -->\r\n <!-- botonera de acciones -->\r\n <!-- <bit-toolbar\r\n [toolbar]=\"toolbar\"\r\n [femenino]=\"femenino\"\r\n [otherActionsDropdown]=\"otherActionsDropdown\"\r\n [ayuda]=\"ayuda\"\r\n(onToolbarButtonPressed)=\"onTBPressed($event)\"></bit-toolbar>\r\n</div>\r\n</div> -->\r\n\r\n<div class=\"grid mt-3 mb-3\">\r\n <div class=\"col-12 caja-breadcrumb\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + colsBreadcrumb() : 'lg:col-4']\">\r\n <!-- ruta de donde nos encontramos (miga de pan) -->\r\n @if (breadcrumb()) {\r\n <bit-breadcrumb [breadcrumb]=\"breadcrumb()\" />\r\n }\r\n </div>\r\n @if (noToolbar() === false) {\r\n <div\r\n class=\"col-12\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + (12- colsBreadcrumb()) : 'lg:col-8']\">\r\n <!-- botonera de acciones -->\r\n <bit-toolbar [toolbar]=\"toolbar()\"\r\n [femenino]=\"femenino()\"\r\n [otherActionsDropdown]=\"otherActionsDropdown()\"\r\n [ayuda]=\"ayuda()\"\r\n (onToolbarButtonPressed)=\"onTBPressed($event)\" />\r\n </div>\r\n }\r\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 }); }
|
|
3234
3248
|
}
|
|
3235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitHeaderComponent, decorators: [{
|
|
3236
3250
|
type: Component,
|
|
3237
3251
|
args: [{ selector: "bit-header", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<!-- <div class=\"grid mt-3 mb-3\">\r\n<div class=\"col-12 lg:col-4 sm:col-4 caja-breadcrumb\"> -->\r\n <!-- ruta de donde nos encontramos (miga de pan) -->\r\n <!-- <bit-breadcrumb *ngIf=\"breadcrumb\" [breadcrumb]=\"breadcrumb\"></bit-breadcrumb>\r\n</div>\r\n<div *ngIf=\"noToolbar === false\"\r\n class=\"col-12 lg:col-8 sm:col-8\"> -->\r\n <!-- botonera de acciones -->\r\n <!-- <bit-toolbar\r\n [toolbar]=\"toolbar\"\r\n [femenino]=\"femenino\"\r\n [otherActionsDropdown]=\"otherActionsDropdown\"\r\n [ayuda]=\"ayuda\"\r\n(onToolbarButtonPressed)=\"onTBPressed($event)\"></bit-toolbar>\r\n</div>\r\n</div> -->\r\n\r\n<div class=\"grid mt-3 mb-3\">\r\n <div class=\"col-12 caja-breadcrumb\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + colsBreadcrumb() : 'lg:col-4']\">\r\n <!-- ruta de donde nos encontramos (miga de pan) -->\r\n @if (breadcrumb()) {\r\n <bit-breadcrumb [breadcrumb]=\"breadcrumb()\" />\r\n }\r\n </div>\r\n @if (noToolbar() === false) {\r\n <div\r\n class=\"col-12\" [ngClass]=\"[colsBreadcrumb() ? 'lg:col-' + (12- colsBreadcrumb()) : 'lg:col-8']\">\r\n <!-- botonera de acciones -->\r\n <bit-toolbar [toolbar]=\"toolbar()\"\r\n [femenino]=\"femenino()\"\r\n [otherActionsDropdown]=\"otherActionsDropdown()\"\r\n [ayuda]=\"ayuda()\"\r\n (onToolbarButtonPressed)=\"onTBPressed($event)\" />\r\n </div>\r\n }\r\n</div>" }]
|
|
3238
3252
|
}], 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"] }] } });
|
|
@@ -3240,15 +3254,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3240
3254
|
class BitLoadingComponent {
|
|
3241
3255
|
constructor() {
|
|
3242
3256
|
this.generalUtils = inject(GeneralUtils);
|
|
3243
|
-
this.imageSource = input(undefined,
|
|
3244
|
-
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] :
|
|
3257
|
+
this.imageSource = input(undefined, ...(ngDevMode ? [{ debugName: "imageSource", alias: "source" }] : [{ alias: "source" }]));
|
|
3258
|
+
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3245
3259
|
console.log("Constructor bitloading");
|
|
3246
3260
|
}
|
|
3247
3261
|
ngOnDestroy() {
|
|
3248
3262
|
this.generalUtils.loading.set(0);
|
|
3249
3263
|
}
|
|
3250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3264
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3265
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitLoadingComponent, isStandalone: false, selector: "bit-loading", inputs: { imageSource: { classPropertyName: "imageSource", publicName: "source", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3252
3266
|
@if (loading()) {
|
|
3253
3267
|
<div class="modal">
|
|
3254
3268
|
<div class="grid">
|
|
@@ -3260,7 +3274,7 @@ class BitLoadingComponent {
|
|
|
3260
3274
|
}
|
|
3261
3275
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3262
3276
|
}
|
|
3263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitLoadingComponent, decorators: [{
|
|
3264
3278
|
type: Component,
|
|
3265
3279
|
args: [{
|
|
3266
3280
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3319,10 +3333,10 @@ class BitNotificationToastComponent extends BaseComponent {
|
|
|
3319
3333
|
getLife(life) {
|
|
3320
3334
|
return life ? life : DEFAULT_LIFE; // Si no se especifica el tiempo, usamos el valor por defecto
|
|
3321
3335
|
}
|
|
3322
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3323
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNotificationToastComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3337
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", 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", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3324
3338
|
}
|
|
3325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNotificationToastComponent, decorators: [{
|
|
3326
3340
|
type: Component,
|
|
3327
3341
|
args: [{
|
|
3328
3342
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3339,8 +3353,8 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3339
3353
|
this.bitMessageService = inject(BitMessageService);
|
|
3340
3354
|
this.primeMessageService = inject(MessageService);
|
|
3341
3355
|
this.translateService = inject(TranslateService);
|
|
3342
|
-
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] :
|
|
3343
|
-
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] :
|
|
3356
|
+
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : []));
|
|
3357
|
+
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : []));
|
|
3344
3358
|
this.messages = [];
|
|
3345
3359
|
}
|
|
3346
3360
|
ngOnInit() {
|
|
@@ -3457,10 +3471,10 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3457
3471
|
return of([]);
|
|
3458
3472
|
}
|
|
3459
3473
|
}
|
|
3460
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3461
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3474
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNotificationErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3475
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", 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", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3462
3476
|
}
|
|
3463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNotificationErrorComponent, decorators: [{
|
|
3464
3478
|
type: Component,
|
|
3465
3479
|
args: [{
|
|
3466
3480
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3482,10 +3496,10 @@ class FocusRegisterDirective {
|
|
|
3482
3496
|
onBlur() {
|
|
3483
3497
|
this.focusService.clear();
|
|
3484
3498
|
}
|
|
3485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3486
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FocusRegisterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3500
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: FocusRegisterDirective, isStandalone: false, selector: "input,select,textarea,bit-input,bit-select", host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" } }, ngImport: i0 }); }
|
|
3487
3501
|
}
|
|
3488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FocusRegisterDirective, decorators: [{
|
|
3489
3503
|
type: Directive,
|
|
3490
3504
|
args: [{
|
|
3491
3505
|
selector: "input,select,textarea,bit-input,bit-select" //TODO: no funciona bien con autoComplete. No se registra el focus
|
|
@@ -3503,21 +3517,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3503
3517
|
class BitNGUploadComponent {
|
|
3504
3518
|
constructor() {
|
|
3505
3519
|
this.generalUtils = inject(GeneralUtils);
|
|
3506
|
-
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] :
|
|
3507
|
-
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] :
|
|
3508
|
-
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] :
|
|
3509
|
-
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] :
|
|
3510
|
-
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] :
|
|
3511
|
-
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] :
|
|
3512
|
-
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] :
|
|
3513
|
-
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] :
|
|
3514
|
-
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] :
|
|
3515
|
-
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] :
|
|
3516
|
-
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] :
|
|
3520
|
+
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] : []));
|
|
3521
|
+
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] : []));
|
|
3522
|
+
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] : []));
|
|
3523
|
+
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] : []));
|
|
3524
|
+
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] : []));
|
|
3525
|
+
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] : []));
|
|
3526
|
+
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] : []));
|
|
3527
|
+
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] : []));
|
|
3528
|
+
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] : []));
|
|
3529
|
+
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] : []));
|
|
3530
|
+
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] : []));
|
|
3517
3531
|
this.onSuccess = output();
|
|
3518
3532
|
this.onError = output();
|
|
3519
|
-
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] :
|
|
3520
|
-
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] :
|
|
3533
|
+
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : []));
|
|
3534
|
+
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : []));
|
|
3521
3535
|
}
|
|
3522
3536
|
ngOnInit() {
|
|
3523
3537
|
this.uploader().onSuccessItem = (item, response, status, headers) => {
|
|
@@ -3597,10 +3611,10 @@ class BitNGUploadComponent {
|
|
|
3597
3611
|
fileOverBase(e) {
|
|
3598
3612
|
this.hasBaseDropZoneOver.set(e);
|
|
3599
3613
|
}
|
|
3600
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
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\">\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: ["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 }); }
|
|
3614
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNGUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3615
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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 }); }
|
|
3602
3616
|
}
|
|
3603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNGUploadComponent, decorators: [{
|
|
3604
3618
|
type: Component,
|
|
3605
3619
|
args: [{ selector: "bit-ng-upload", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, 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" }]
|
|
3606
3620
|
}], 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 }] }] } });
|
|
@@ -3612,13 +3626,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3612
3626
|
*/
|
|
3613
3627
|
class BitUserControlsComponent {
|
|
3614
3628
|
constructor() {
|
|
3615
|
-
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] :
|
|
3616
|
-
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] :
|
|
3629
|
+
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : []));
|
|
3630
|
+
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : []));
|
|
3617
3631
|
}
|
|
3618
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3619
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitUserControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3633
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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()) {\r\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\r\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3620
3634
|
}
|
|
3621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitUserControlsComponent, decorators: [{
|
|
3622
3636
|
type: Component,
|
|
3623
3637
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-user-controls", standalone: false, template: "@if (usuario()) {\r\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\r\n}" }]
|
|
3624
3638
|
}], propDecorators: { usuario: [{ type: i0.Input, args: [{ isSignal: true, alias: "usuario", required: true }] }] } });
|
|
@@ -3628,13 +3642,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3628
3642
|
**/
|
|
3629
3643
|
class BitColumnBooleanComponent {
|
|
3630
3644
|
constructor() {
|
|
3631
|
-
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] :
|
|
3632
|
-
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] :
|
|
3633
|
-
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] :
|
|
3634
|
-
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] :
|
|
3645
|
+
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] : [])); // objeto del que extraer la propiedad
|
|
3646
|
+
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] : [])); // propiedad booleana que procesar
|
|
3647
|
+
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] : []));
|
|
3648
|
+
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] : []));
|
|
3635
3649
|
}
|
|
3636
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3650
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitColumnBooleanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3651
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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
3652
|
@if (data()) {
|
|
3639
3653
|
<span class="ui-cell-data">
|
|
3640
3654
|
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
@@ -3642,7 +3656,7 @@ class BitColumnBooleanComponent {
|
|
|
3642
3656
|
}
|
|
3643
3657
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3644
3658
|
}
|
|
3645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitColumnBooleanComponent, decorators: [{
|
|
3646
3660
|
type: Component,
|
|
3647
3661
|
args: [{
|
|
3648
3662
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3660,9 +3674,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3660
3674
|
|
|
3661
3675
|
class BitDomainValueComponent {
|
|
3662
3676
|
constructor() {
|
|
3663
|
-
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] :
|
|
3664
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] :
|
|
3665
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] :
|
|
3677
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
3678
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : []));
|
|
3679
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
3666
3680
|
this.translatedValue = computed(() => {
|
|
3667
3681
|
// buscar traducción para el valor en el dominio
|
|
3668
3682
|
const data = this.data();
|
|
@@ -3677,14 +3691,14 @@ class BitDomainValueComponent {
|
|
|
3677
3691
|
else {
|
|
3678
3692
|
return this.emptyText() ?? "Carregant...";
|
|
3679
3693
|
}
|
|
3680
|
-
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] :
|
|
3694
|
+
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : []));
|
|
3681
3695
|
}
|
|
3682
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3683
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3696
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDomainValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3697
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", 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
3698
|
<span>{{ translatedValue() }}</span>
|
|
3685
3699
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3686
3700
|
}
|
|
3687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDomainValueComponent, decorators: [{
|
|
3688
3702
|
type: Component,
|
|
3689
3703
|
args: [{
|
|
3690
3704
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3703,20 +3717,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3703
3717
|
class BitGeneralComponent extends BaseComponent {
|
|
3704
3718
|
constructor() {
|
|
3705
3719
|
super(...arguments);
|
|
3706
|
-
this.control = input(undefined,
|
|
3707
|
-
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] :
|
|
3708
|
-
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] :
|
|
3709
|
-
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] :
|
|
3710
|
-
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] :
|
|
3711
|
-
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] :
|
|
3712
|
-
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] :
|
|
3713
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] :
|
|
3714
|
-
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] :
|
|
3715
|
-
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] :
|
|
3716
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] :
|
|
3717
|
-
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] :
|
|
3718
|
-
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] :
|
|
3719
|
-
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] :
|
|
3720
|
+
this.control = input(undefined, ...(ngDevMode ? [{ debugName: "control", alias: "formControl" }] : [{ alias: "formControl" }]));
|
|
3721
|
+
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] : []));
|
|
3722
|
+
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] : []));
|
|
3723
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
3724
|
+
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] : []));
|
|
3725
|
+
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] : []));
|
|
3726
|
+
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] : []));
|
|
3727
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : [])); // clave de la ayuda contextual
|
|
3728
|
+
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
3729
|
+
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
3730
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : [])); // forzar que no se reserve espacio para el nombre del campo
|
|
3731
|
+
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] : []));
|
|
3732
|
+
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] : []));
|
|
3733
|
+
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] : []));
|
|
3720
3734
|
this.onChange = output();
|
|
3721
3735
|
this.onTouch = output();
|
|
3722
3736
|
this.onBlur = output();
|
|
@@ -3725,7 +3739,7 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3725
3739
|
this.dataTestId = computed(() => {
|
|
3726
3740
|
const testid = this.testid();
|
|
3727
3741
|
return testid ? testid : this.nombre();
|
|
3728
|
-
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] :
|
|
3742
|
+
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : []));
|
|
3729
3743
|
/**
|
|
3730
3744
|
* Contador que se incrementa cada vez que el FormControl asociado cambia su valor, validadores o validez.
|
|
3731
3745
|
* Se usa como dependencia reactiva de la señal `obligatorio` para que ésta se recalcule bajo OnPush / zoneless,
|
|
@@ -3753,15 +3767,15 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3753
3767
|
this.controlEvents(); // dependencia reactiva
|
|
3754
3768
|
const c = this.control();
|
|
3755
3769
|
return this.forceObligatorio() || !!c?.errors?.["required"];
|
|
3756
|
-
}, ...(ngDevMode ? [{ debugName: "obligatorio" }] :
|
|
3770
|
+
}, ...(ngDevMode ? [{ debugName: "obligatorio" }] : []));
|
|
3757
3771
|
}
|
|
3758
3772
|
showAyuda() {
|
|
3759
3773
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3760
3774
|
}
|
|
3761
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3762
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitGeneralComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3776
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", 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 }); }
|
|
3763
3777
|
}
|
|
3764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitGeneralComponent, decorators: [{
|
|
3765
3779
|
type: Directive
|
|
3766
3780
|
}], 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"] }] } });
|
|
3767
3781
|
|
|
@@ -3773,7 +3787,7 @@ class BitCustomComponent extends BitGeneralComponent {
|
|
|
3773
3787
|
constructor() {
|
|
3774
3788
|
super(...arguments);
|
|
3775
3789
|
this.cdr = inject(ChangeDetectorRef);
|
|
3776
|
-
this.isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] :
|
|
3790
|
+
this.isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
|
|
3777
3791
|
// nos permite decirle a Angular que nuestro componente ha modificado su valor
|
|
3778
3792
|
this._onChange = (_) => { };
|
|
3779
3793
|
// nos permite decirle a Angular que nuestro componente ha sido tacado
|
|
@@ -3807,10 +3821,10 @@ class BitCustomComponent extends BitGeneralComponent {
|
|
|
3807
3821
|
registerOnTouched(fn) {
|
|
3808
3822
|
this._onTouch = fn;
|
|
3809
3823
|
}
|
|
3810
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3811
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitCustomComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3825
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: BitCustomComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
3812
3826
|
}
|
|
3813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitCustomComponent, decorators: [{
|
|
3814
3828
|
type: Directive
|
|
3815
3829
|
}] });
|
|
3816
3830
|
|
|
@@ -3840,16 +3854,16 @@ class BitTextComponent extends BitCustomComponent {
|
|
|
3840
3854
|
this.value = text;
|
|
3841
3855
|
this.changeComponentValue(this.value);
|
|
3842
3856
|
}
|
|
3843
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3844
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3858
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitTextComponent, isStandalone: false, selector: "bit-text", providers: [
|
|
3845
3859
|
{
|
|
3846
3860
|
provide: NG_VALUE_ACCESSOR,
|
|
3847
3861
|
useExisting: forwardRef(() => BitTextComponent),
|
|
3848
3862
|
multi: true
|
|
3849
3863
|
}
|
|
3850
|
-
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <input\r\n pInputText\r\n type=\"text\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n autocomplete=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <input\r\n pInputText\r\n type=\"text\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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: ["
|
|
3864
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <input\r\n pInputText\r\n type=\"text\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n autocomplete=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <input\r\n pInputText\r\n type=\"text\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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: ["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", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { 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 }); }
|
|
3851
3865
|
}
|
|
3852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitTextComponent, decorators: [{
|
|
3853
3867
|
type: Component,
|
|
3854
3868
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-text", providers: [
|
|
3855
3869
|
{
|
|
@@ -3863,7 +3877,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
3863
3877
|
class BitTextAreaComponent extends BitCustomComponent {
|
|
3864
3878
|
constructor() {
|
|
3865
3879
|
super(...arguments);
|
|
3866
|
-
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] :
|
|
3880
|
+
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : []));
|
|
3867
3881
|
}
|
|
3868
3882
|
get value_lectura() {
|
|
3869
3883
|
if (this.value == null) {
|
|
@@ -3890,14 +3904,14 @@ class BitTextAreaComponent extends BitCustomComponent {
|
|
|
3890
3904
|
this.value = text;
|
|
3891
3905
|
this.changeComponentValue(this.value);
|
|
3892
3906
|
}
|
|
3893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3894
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitTextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3908
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitTextAreaComponent, isStandalone: false, selector: "bit-textarea", inputs: { filas: { classPropertyName: "filas", publicName: "filas", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
3895
3909
|
provide: NG_VALUE_ACCESSOR,
|
|
3896
3910
|
useExisting: forwardRef(() => BitTextAreaComponent),
|
|
3897
3911
|
multi: true
|
|
3898
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <pre class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</pre>\r\n}\r\n@if (!readOnly()) {\r\n <textarea\r\n pInputTextarea\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n autocomplete=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [placeholder]=\"placeholder()\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n class=\"{{ estilo() }}\"\r\n [rows]=\"filas()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n ></textarea>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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: ["
|
|
3912
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <pre class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</pre>\r\n}\r\n@if (!readOnly()) {\r\n <textarea\r\n pInputTextarea\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n autocomplete=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [placeholder]=\"placeholder()\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n class=\"{{ estilo() }}\"\r\n [rows]=\"filas()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n ></textarea>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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: ["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 }); }
|
|
3899
3913
|
}
|
|
3900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitTextAreaComponent, decorators: [{
|
|
3901
3915
|
type: Component,
|
|
3902
3916
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-textarea", providers: [{
|
|
3903
3917
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3911,12 +3925,12 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3911
3925
|
constructor() {
|
|
3912
3926
|
super(...arguments);
|
|
3913
3927
|
// calendarios
|
|
3914
|
-
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] :
|
|
3915
|
-
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] :
|
|
3916
|
-
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] :
|
|
3917
|
-
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] :
|
|
3918
|
-
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] :
|
|
3919
|
-
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] :
|
|
3928
|
+
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] : [])); // fecha mínima seleccionable
|
|
3929
|
+
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] : [])); // fecha máxima seleccionable
|
|
3930
|
+
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] : [])); // desabilitar edicion por teclado
|
|
3931
|
+
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] : []));
|
|
3932
|
+
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] : []));
|
|
3933
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
|
|
3920
3934
|
this.onSelect = output();
|
|
3921
3935
|
this.dateUtils = inject(DateUtils);
|
|
3922
3936
|
this.translateService = inject(TranslateService);
|
|
@@ -3991,10 +4005,10 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3991
4005
|
isValueCorrect(value) {
|
|
3992
4006
|
return moment(value, this.visual_format, true).isValid();
|
|
3993
4007
|
}
|
|
3994
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3995
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4008
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4009
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", 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 }); }
|
|
3996
4010
|
}
|
|
3997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitCalendarComponent, decorators: [{
|
|
3998
4012
|
type: Directive
|
|
3999
4013
|
}], 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"] }] } });
|
|
4000
4014
|
|
|
@@ -4002,7 +4016,7 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4002
4016
|
constructor() {
|
|
4003
4017
|
super();
|
|
4004
4018
|
this.dateUtils = inject(DateUtils);
|
|
4005
|
-
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] :
|
|
4019
|
+
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4006
4020
|
this.visual_format = DateUtils.FORMAT_SHORT_DATE;
|
|
4007
4021
|
}
|
|
4008
4022
|
get value_lectura() {
|
|
@@ -4034,14 +4048,14 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4034
4048
|
getDateFormat() {
|
|
4035
4049
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_DATE;
|
|
4036
4050
|
}
|
|
4037
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4038
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4051
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4052
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitDateComponent, isStandalone: false, selector: "bit-date", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4039
4053
|
provide: NG_VALUE_ACCESSOR,
|
|
4040
4054
|
useExisting: forwardRef(() => BitDateComponent),
|
|
4041
4055
|
multi: true
|
|
4042
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"dd/mm/yy\"\r\n placeholder=\"{{ placeholder() }}\"\r\n [showOtherMonths]=\"true\"\r\n [selectOtherMonths]=\"true\"\r\n [readonlyInput]=\"calendarReadOnlyInput()\"\r\n [minDate]=\"fechaMinima()\"\r\n [maxDate]=\"fechaMaxima()\"\r\n yearRange=\"2000:2050\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (!readOnly()) {\r\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"
|
|
4056
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"dd/mm/yy\"\r\n placeholder=\"{{ placeholder() }}\"\r\n [showOtherMonths]=\"true\"\r\n [selectOtherMonths]=\"true\"\r\n [readonlyInput]=\"calendarReadOnlyInput()\"\r\n [minDate]=\"fechaMinima()\"\r\n [maxDate]=\"fechaMaxima()\"\r\n yearRange=\"2000:2050\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (!readOnly()) {\r\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"], 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 }); }
|
|
4043
4057
|
}
|
|
4044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDateComponent, decorators: [{
|
|
4045
4059
|
type: Component,
|
|
4046
4060
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-date", providers: [{
|
|
4047
4061
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4054,7 +4068,7 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4054
4068
|
constructor() {
|
|
4055
4069
|
super();
|
|
4056
4070
|
this.dateUtils = inject(DateUtils);
|
|
4057
|
-
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] :
|
|
4071
|
+
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4058
4072
|
this.visual_format = DateUtils.FORMAT_SHORT_TIME;
|
|
4059
4073
|
}
|
|
4060
4074
|
get value_lectura() {
|
|
@@ -4086,14 +4100,14 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4086
4100
|
getDateFormat() {
|
|
4087
4101
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_TIME;
|
|
4088
4102
|
}
|
|
4089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitTimeComponent, isStandalone: false, selector: "bit-time", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4091
4105
|
provide: NG_VALUE_ACCESSOR,
|
|
4092
4106
|
useExisting: forwardRef(() => BitTimeComponent),
|
|
4093
4107
|
multi: true
|
|
4094
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"HH:mm\"\r\n [timeOnly]=\"true\"\r\n placeholder=\"{{ placeholder() }}\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n (onTodayClick)=\"_onTodayClick($event)\"\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"
|
|
4108
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"HH:mm\"\r\n [timeOnly]=\"true\"\r\n placeholder=\"{{ placeholder() }}\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n (onTodayClick)=\"_onTodayClick($event)\"\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"], 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 }); }
|
|
4095
4109
|
}
|
|
4096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitTimeComponent, decorators: [{
|
|
4097
4111
|
type: Component,
|
|
4098
4112
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-time", providers: [{
|
|
4099
4113
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4106,7 +4120,7 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4106
4120
|
constructor() {
|
|
4107
4121
|
super();
|
|
4108
4122
|
this.dateUtils = inject(DateUtils);
|
|
4109
|
-
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] :
|
|
4123
|
+
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4110
4124
|
this.visual_format = DateUtils.FORMAT_LONG_DATE;
|
|
4111
4125
|
}
|
|
4112
4126
|
get value_lectura() {
|
|
@@ -4138,14 +4152,14 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4138
4152
|
getDateFormat() {
|
|
4139
4153
|
return this.format() ? this.format() : DateUtils.FORMAT_LONG_DATE;
|
|
4140
4154
|
}
|
|
4141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4142
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4155
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDateTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4156
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitDateTimeComponent, isStandalone: false, selector: "bit-datetime", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4143
4157
|
provide: NG_VALUE_ACCESSOR,
|
|
4144
4158
|
useExisting: forwardRef(() => BitDateTimeComponent),
|
|
4145
4159
|
multi: true
|
|
4146
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"dd/mm/yy\"\r\n placeholder=\"{{ placeholder() }}\" \r\n [minDate]=\"fechaMinima()\"\r\n [maxDate]=\"fechaMaxima()\"\r\n [showOtherMonths]=\"true\"\r\n [selectOtherMonths]=\"true\"\r\n yearRange=\"2000:2050\"\r\n [showTime]=\"true\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (!readOnly()) {\r\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"
|
|
4160
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"dd/mm/yy\"\r\n placeholder=\"{{ placeholder() }}\" \r\n [minDate]=\"fechaMinima()\"\r\n [maxDate]=\"fechaMaxima()\"\r\n [showOtherMonths]=\"true\"\r\n [selectOtherMonths]=\"true\"\r\n yearRange=\"2000:2050\"\r\n [showTime]=\"true\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (!readOnly()) {\r\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"], 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 }); }
|
|
4147
4161
|
}
|
|
4148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDateTimeComponent, decorators: [{
|
|
4149
4163
|
type: Component,
|
|
4150
4164
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-datetime", providers: [{
|
|
4151
4165
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4169,14 +4183,14 @@ class BitCheckBoxComponent extends BitCustomComponent {
|
|
|
4169
4183
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4170
4184
|
this.changeComponentValue(this.value);
|
|
4171
4185
|
}
|
|
4172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4173
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitCheckBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4187
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitCheckBoxComponent, isStandalone: false, selector: "bit-checkbox", providers: [{
|
|
4174
4188
|
provide: NG_VALUE_ACCESSOR,
|
|
4175
4189
|
useExisting: forwardRef(() => BitCheckBoxComponent),
|
|
4176
4190
|
multi: true
|
|
4177
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-checkbox class=\"{{ estilo() }}\"\r\n binary=\"true\"\r\n [(ngModel)]=\"value\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n id=\"{{ nombre() }}\"\r\n (onChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n\r\n@if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\r\n}\r\n\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["
|
|
4191
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-checkbox class=\"{{ estilo() }}\"\r\n binary=\"true\"\r\n [(ngModel)]=\"value\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n id=\"{{ nombre() }}\"\r\n (onChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n\r\n@if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\r\n}\r\n\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["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 }); }
|
|
4178
4192
|
}
|
|
4179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitCheckBoxComponent, decorators: [{
|
|
4180
4194
|
type: Component,
|
|
4181
4195
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox", providers: [{
|
|
4182
4196
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4200,14 +4214,14 @@ class BitSwitchComponent extends BitCustomComponent {
|
|
|
4200
4214
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4201
4215
|
this.changeComponentValue(this.value);
|
|
4202
4216
|
}
|
|
4203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4204
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4218
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitSwitchComponent, isStandalone: false, selector: "bit-switch", providers: [{
|
|
4205
4219
|
provide: NG_VALUE_ACCESSOR,
|
|
4206
4220
|
useExisting: forwardRef(() => BitSwitchComponent),
|
|
4207
4221
|
multi: true
|
|
4208
4222
|
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-toggleswitch onLabel=\"S\u00ED\"\r\n offLabel=\"No\"\r\n binary=\"true\"\r\n [(ngModel)]=\"value\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n id=\"{{ nombre() }}\"\r\n (onChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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 }); }
|
|
4209
4223
|
}
|
|
4210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSwitchComponent, decorators: [{
|
|
4211
4225
|
type: Component,
|
|
4212
4226
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch", providers: [{
|
|
4213
4227
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4219,17 +4233,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
4219
4233
|
class BitAutoCompleteComponent extends BitCustomComponent {
|
|
4220
4234
|
constructor() {
|
|
4221
4235
|
super(...arguments);
|
|
4222
|
-
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] :
|
|
4223
|
-
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] :
|
|
4224
|
-
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] :
|
|
4225
|
-
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] :
|
|
4226
|
-
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] :
|
|
4227
|
-
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] :
|
|
4228
|
-
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] :
|
|
4236
|
+
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : []));
|
|
4237
|
+
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] : []));
|
|
4238
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
4239
|
+
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : []));
|
|
4240
|
+
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
4241
|
+
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] : []));
|
|
4242
|
+
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] : [])); // si se usa un template personalizado para mostrar los items
|
|
4229
4243
|
this.completeMethod = output();
|
|
4230
4244
|
this.onSelect = output();
|
|
4231
4245
|
this.onClear = output();
|
|
4232
|
-
this.itemTemplate = contentChild("itemTemplate",
|
|
4246
|
+
this.itemTemplate = contentChild("itemTemplate", ...(ngDevMode ? [{ debugName: "itemTemplate", read: TemplateRef }] : [{ read: TemplateRef }]));
|
|
4233
4247
|
this.suggestions_mapped = computed(() => {
|
|
4234
4248
|
let suggestions = this.suggestions();
|
|
4235
4249
|
if (suggestions) {
|
|
@@ -4237,7 +4251,7 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4237
4251
|
this.log() && console.log("suggestions mapped for component: " + this.nombre(), newList);
|
|
4238
4252
|
return newList;
|
|
4239
4253
|
}
|
|
4240
|
-
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] :
|
|
4254
|
+
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : []));
|
|
4241
4255
|
}
|
|
4242
4256
|
ngAfterViewInit() {
|
|
4243
4257
|
// Control de errores:
|
|
@@ -4354,16 +4368,16 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4354
4368
|
}
|
|
4355
4369
|
}
|
|
4356
4370
|
}
|
|
4357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4358
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitAutoCompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4372
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [
|
|
4359
4373
|
{
|
|
4360
4374
|
provide: NG_VALUE_ACCESSOR,
|
|
4361
4375
|
useExisting: forwardRef(() => BitAutoCompleteComponent),
|
|
4362
4376
|
multi: true
|
|
4363
4377
|
}
|
|
4364
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, read: TemplateRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n<label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n</label>\r\n} @if (readOnly()) {\r\n<p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n} @if (!readOnly()) {\r\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 -->\r\n<p-autoComplete\r\n fluid\r\n [(ngModel)]=\"value\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [placeholder]=\"placeholder()\"\r\n [delay]=\"400\"\r\n [suggestions]=\"suggestions_mapped()\"\r\n [multiple]=\"multiple()\"\r\n [inputStyleClass]=\"inputStyleClass()\"\r\n optionLabel=\"{{ customTemplate() ? this.suggestionField() : '' }}\"\r\n appendTo=\"body\"\r\n (completeMethod)=\"search($event)\"\r\n (onSelect)=\"_onSelect($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId() }}\"\r\n>\r\n @if (customTemplate() && itemTemplate()) {\r\n <ng-template pTemplate=\"item\" let-item>\r\n <ng-container *ngTemplateOutlet=\"itemTemplate(); context: { $implicit: item }\" />\r\n </ng-template>\r\n }\r\n</p-autoComplete>\r\n} @if (control() != null) {\r\n<control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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", "
|
|
4378
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, read: TemplateRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n<label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n</label>\r\n} @if (readOnly()) {\r\n<p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n} @if (!readOnly()) {\r\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 -->\r\n<p-autoComplete\r\n fluid\r\n [(ngModel)]=\"value\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [placeholder]=\"placeholder()\"\r\n [delay]=\"400\"\r\n [suggestions]=\"suggestions_mapped()\"\r\n [multiple]=\"multiple()\"\r\n [inputStyleClass]=\"inputStyleClass()\"\r\n optionLabel=\"{{ customTemplate() ? this.suggestionField() : '' }}\"\r\n appendTo=\"body\"\r\n (completeMethod)=\"search($event)\"\r\n (onSelect)=\"_onSelect($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId() }}\"\r\n>\r\n @if (customTemplate() && itemTemplate()) {\r\n <ng-template pTemplate=\"item\" let-item>\r\n <ng-container *ngTemplateOutlet=\"itemTemplate(); context: { $implicit: item }\" />\r\n </ng-template>\r\n }\r\n</p-autoComplete>\r\n} @if (control() != null) {\r\n<control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "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 }); }
|
|
4365
4379
|
}
|
|
4366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitAutoCompleteComponent, decorators: [{
|
|
4367
4381
|
type: Component,
|
|
4368
4382
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-autocomplete", providers: [
|
|
4369
4383
|
{
|
|
@@ -4388,23 +4402,23 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4388
4402
|
super();
|
|
4389
4403
|
this.router = router;
|
|
4390
4404
|
this.translateService = translateService;
|
|
4391
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] :
|
|
4392
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] :
|
|
4393
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] :
|
|
4394
|
-
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] :
|
|
4395
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] :
|
|
4396
|
-
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] :
|
|
4397
|
-
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] :
|
|
4398
|
-
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] :
|
|
4399
|
-
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] :
|
|
4400
|
-
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] :
|
|
4401
|
-
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] :
|
|
4402
|
-
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] :
|
|
4405
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : [])); // forzar no reservar espacio para el nombre del campo
|
|
4406
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : [])); // lista de valores estáticos con lo que inicializamos el select
|
|
4407
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
4408
|
+
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] : []));
|
|
4409
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : [])); //valor por defecto seleccionable como primer elemento
|
|
4410
|
+
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] : []));
|
|
4411
|
+
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] : []));
|
|
4412
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
|
|
4413
|
+
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] : []));
|
|
4414
|
+
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] : [])); // El atributo de los objetos de la lista que corresponde al label
|
|
4415
|
+
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] : [])); // El atributo de los objetos de la lista que corresponde al valor
|
|
4416
|
+
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] : [])); // El atributo de los objetos de la lista que indica si un valor está deshabilitado
|
|
4403
4417
|
this.listaOpciones = computed(() => {
|
|
4404
4418
|
let list = this.data() ? this.data().slice() : [];
|
|
4405
4419
|
this.log() && console.log("Lista de opciones forComponent:" + this.nombre(), list);
|
|
4406
4420
|
return list;
|
|
4407
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] :
|
|
4421
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : []));
|
|
4408
4422
|
this.listaOpcionesVisible = computed(() => {
|
|
4409
4423
|
let opciones = [];
|
|
4410
4424
|
if (this.listaOpciones()) {
|
|
@@ -4424,12 +4438,12 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4424
4438
|
}
|
|
4425
4439
|
this.log() && console.log("Lista de opciones visibles forComponent:" + this.nombre() + " después de excludeValues", opciones);
|
|
4426
4440
|
return opciones;
|
|
4427
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] :
|
|
4441
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : []));
|
|
4428
4442
|
}
|
|
4429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4430
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDropDownGeneralComponent, deps: [{ token: i1$6.ActivatedRoute }, { token: TranslateService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4444
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", 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 }); }
|
|
4431
4445
|
}
|
|
4432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDropDownGeneralComponent, decorators: [{
|
|
4433
4447
|
type: Directive
|
|
4434
4448
|
}], 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 }] }] } });
|
|
4435
4449
|
|
|
@@ -4447,7 +4461,7 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4447
4461
|
const router = inject(ActivatedRoute);
|
|
4448
4462
|
const translateService = inject(TranslateService);
|
|
4449
4463
|
super(router, translateService);
|
|
4450
|
-
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] :
|
|
4464
|
+
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4451
4465
|
this.router = router;
|
|
4452
4466
|
this.translateService = translateService;
|
|
4453
4467
|
}
|
|
@@ -4483,16 +4497,16 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4483
4497
|
this.value = null;
|
|
4484
4498
|
this.changeComponentValue(this.value);
|
|
4485
4499
|
}
|
|
4486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4487
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDropDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4501
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: BitDropDownComponent, isStandalone: false, selector: "bit-dropdown", inputs: { filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4488
4502
|
{
|
|
4489
4503
|
provide: NG_VALUE_ACCESSOR,
|
|
4490
4504
|
useExisting: forwardRef(() => BitDropDownComponent),
|
|
4491
4505
|
multi: true
|
|
4492
4506
|
}
|
|
4493
|
-
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-select\r\n id=\"{{ nombre() }}\"\r\n [(ngModel)]=\"value\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [options]=\"listaOpcionesVisible()\"\r\n [filter]=\"filter()\"\r\n [group]=\"group()\"\r\n [optionLabel]=\"atributoLabel()\"\r\n [optionValue]=\"atributoValue()\"\r\n [optionDisabled]=\"atributoDisabled()\"\r\n [appendTo]=\"appendTo()\"\r\n (onChange)=\"_onChangeValue($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n >\r\n <ng-template let-item pTemplate=\"item\">\r\n <span [ngClass]=\"{ 'opcion-desactivada': item[atributoDisabled()] }\">{{ item[atributoLabel()] }}</span>\r\n </ng-template>\r\n </p-select>\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"id()\" />\r\n }\r\n}\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: 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"
|
|
4507
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-select\r\n id=\"{{ nombre() }}\"\r\n [(ngModel)]=\"value\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [options]=\"listaOpcionesVisible()\"\r\n [filter]=\"filter()\"\r\n [group]=\"group()\"\r\n [optionLabel]=\"atributoLabel()\"\r\n [optionValue]=\"atributoValue()\"\r\n [optionDisabled]=\"atributoDisabled()\"\r\n [appendTo]=\"appendTo()\"\r\n (onChange)=\"_onChangeValue($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n >\r\n <ng-template let-item pTemplate=\"item\">\r\n <span [ngClass]=\"{ 'opcion-desactivada': item[atributoDisabled()] }\">{{ item[atributoLabel()] }}</span>\r\n </ng-template>\r\n </p-select>\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"id()\" />\r\n }\r\n}\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: 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"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4494
4508
|
}
|
|
4495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDropDownComponent, decorators: [{
|
|
4496
4510
|
type: Component,
|
|
4497
4511
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown", providers: [
|
|
4498
4512
|
{
|
|
@@ -4512,10 +4526,10 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4512
4526
|
const router = inject(ActivatedRoute);
|
|
4513
4527
|
const translateService = inject(TranslateService);
|
|
4514
4528
|
super(router, translateService);
|
|
4515
|
-
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] :
|
|
4516
|
-
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] :
|
|
4517
|
-
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] :
|
|
4518
|
-
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] :
|
|
4529
|
+
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : []));
|
|
4530
|
+
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] : [])); // indica si se muestran los elementos seleccionados en una columna separada
|
|
4531
|
+
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : [])); //título que aparece en el link para eliminar un elemento una vez seleccionado
|
|
4532
|
+
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4519
4533
|
this.router = router;
|
|
4520
4534
|
this.translateService = translateService;
|
|
4521
4535
|
}
|
|
@@ -4594,16 +4608,16 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4594
4608
|
emitValue() {
|
|
4595
4609
|
this.changeComponentValue(this.value);
|
|
4596
4610
|
}
|
|
4597
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4598
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDropDownMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [
|
|
4599
4613
|
{
|
|
4600
4614
|
provide: NG_VALUE_ACCESSOR,
|
|
4601
4615
|
useExisting: forwardRef(() => BitDropDownMultipleComponent),
|
|
4602
4616
|
multi: true
|
|
4603
4617
|
}
|
|
4604
|
-
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\"><ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly() && !showSeparateSelectedLabels()) {\r\n <p class=\"lectura\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-multiSelect id=\"{{ id() }}\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder()\"\r\n [filter]=\"filter()\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [options]=\"listaOpciones()\"\r\n [disabled]=\"isDisabled()\"\r\n [optionLabel]=\"atributoLabel()\"\r\n [optionValue]=\"atributoValue()\"\r\n [maxSelectedLabels]=\"maxSelectedLabels()\"\r\n [appendTo]=\"appendTo()\"\r\n selectedItemsLabel=\"{0} elements seleccionats\"\r\n (onChange)=\"_onChangeValue($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"id()\" />\r\n }\r\n @if (showSeparateSelectedLabels()) {\r\n <div>\r\n <label for=\"{{ nombre() }}\"> </label>\r\n <div class=\"multiselect-labels\">\r\n @for (item of value; track item) {\r\n <div class=\"label label-primary multiselect-labels-lg\">\r\n <span>{{ labelSelectedItem(item) }}</span>\r\n @if (!readOnly()) {\r\n \r\n <a (click)=\"deleteSelectedItem($event, item)\" title=\"{{ title() }}\"><i class=\"fa fa-times\"></i></a>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\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"
|
|
4618
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\"><ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly() && !showSeparateSelectedLabels()) {\r\n <p class=\"lectura\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-multiSelect id=\"{{ id() }}\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder()\"\r\n [filter]=\"filter()\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [options]=\"listaOpciones()\"\r\n [disabled]=\"isDisabled()\"\r\n [optionLabel]=\"atributoLabel()\"\r\n [optionValue]=\"atributoValue()\"\r\n [maxSelectedLabels]=\"maxSelectedLabels()\"\r\n [appendTo]=\"appendTo()\"\r\n selectedItemsLabel=\"{0} elements seleccionats\"\r\n (onChange)=\"_onChangeValue($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"id()\" />\r\n }\r\n @if (showSeparateSelectedLabels()) {\r\n <div>\r\n <label for=\"{{ nombre() }}\"> </label>\r\n <div class=\"multiselect-labels\">\r\n @for (item of value; track item) {\r\n <div class=\"label label-primary multiselect-labels-lg\">\r\n <span>{{ labelSelectedItem(item) }}</span>\r\n @if (!readOnly()) {\r\n \r\n <a (click)=\"deleteSelectedItem($event, item)\" title=\"{{ title() }}\"><i class=\"fa fa-times\"></i></a>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\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"], 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 }); }
|
|
4605
4619
|
}
|
|
4606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitDropDownMultipleComponent, decorators: [{
|
|
4607
4621
|
type: Component,
|
|
4608
4622
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown-multiple", providers: [
|
|
4609
4623
|
{
|
|
@@ -4647,11 +4661,11 @@ class ConfigurationEditor {
|
|
|
4647
4661
|
class BitEditorComponent extends BitCustomComponent {
|
|
4648
4662
|
constructor() {
|
|
4649
4663
|
super(...arguments);
|
|
4650
|
-
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] :
|
|
4664
|
+
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : []));
|
|
4651
4665
|
// si es "custom", se utiliza el objeto de configuracion: configuration.
|
|
4652
4666
|
// si es "default", no se utiliza ninguna configuracion (se muestran todos los controles)
|
|
4653
|
-
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] :
|
|
4654
|
-
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] :
|
|
4667
|
+
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : []));
|
|
4668
|
+
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
4655
4669
|
this.onTextChange = output();
|
|
4656
4670
|
}
|
|
4657
4671
|
// es posible tener configuraciones globales en todos los bit-editor de un proyecto
|
|
@@ -4700,14 +4714,14 @@ class BitEditorComponent extends BitCustomComponent {
|
|
|
4700
4714
|
const configuration = this.configuration();
|
|
4701
4715
|
return configuration ? configuration : BitEditorComponent.globalConfiguration;
|
|
4702
4716
|
}
|
|
4703
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4704
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4718
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [{
|
|
4705
4719
|
provide: NG_VALUE_ACCESSOR,
|
|
4706
4720
|
useExisting: forwardRef(() => BitEditorComponent),
|
|
4707
4721
|
multi: true
|
|
4708
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\">\r\n {{ value_lectura && value_lectura != \"\" ? value_lectura : \" \" }}\r\n </p>\r\n}\r\n@if (!readOnly() && tipo() == 'custom') {\r\n <p-editor\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n [ngModel]=\"value\"\r\n styleClass=\"editor\"\r\n [disabled]=\"isDisabled()\"\r\n [placeholder]=\"placeholder()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n (onInit)=\"onInit($event)\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (onTextChange)=\"_onTextChange($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n >\r\n <p-header>\r\n @if (configuracion.fontSize) {\r\n <span class=\"ql-formats\">\r\n <select class=\"ql-size\">\r\n <option value=\"small\">{{ \"bitnglibrary.form.biteditor.small\" | transloco }}</option>\r\n <!-- Note a missing, thus falsy value, is used to reset to default -->\r\n <option selected>{{ \"bitnglibrary.form.biteditor.normal\" | transloco }}</option>\r\n <option value=\"large\">{{ \"bitnglibrary.form.biteditor.large\" | transloco }}</option>\r\n <option value=\"huge\">{{ \"bitnglibrary.form.biteditor.huge\" | transloco }}</option>\r\n </select>\r\n </span>\r\n }\r\n @if (configuracion.fontFormat) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n <button class=\"ql-strike\" aria-label=\"Strikethrough\"></button>\r\n </span>\r\n }\r\n @if (configuracion.bullet) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-list\" aria-label=\"Insert Ordered List\" value=\"ordered\" type=\"button\"></button>\r\n <button class=\"ql-list\" aria-label=\"Insert Bullet List\" value=\"bullet\" type=\"button\"></button>\r\n </span>\r\n }\r\n @if (configuracion.link) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-link\" aria-label=\"Insert Link\" type=\"button\"></button>\r\n </span>\r\n }\r\n </p-header>\r\n </p-editor>\r\n}\r\n@if (!readOnly() && (!tipo() || tipo() == 'default')) {\r\n <p-editor id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n [ngModel]=\"value\"\r\n styleClass=\"editor\"\r\n [placeholder]=\"placeholder()\"\r\n [placeholder]=\"placeholder()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"
|
|
4722
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\">\r\n {{ value_lectura && value_lectura != \"\" ? value_lectura : \" \" }}\r\n </p>\r\n}\r\n@if (!readOnly() && tipo() == 'custom') {\r\n <p-editor\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n [ngModel]=\"value\"\r\n styleClass=\"editor\"\r\n [disabled]=\"isDisabled()\"\r\n [placeholder]=\"placeholder()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n (onInit)=\"onInit($event)\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (onTextChange)=\"_onTextChange($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n >\r\n <p-header>\r\n @if (configuracion.fontSize) {\r\n <span class=\"ql-formats\">\r\n <select class=\"ql-size\">\r\n <option value=\"small\">{{ \"bitnglibrary.form.biteditor.small\" | transloco }}</option>\r\n <!-- Note a missing, thus falsy value, is used to reset to default -->\r\n <option selected>{{ \"bitnglibrary.form.biteditor.normal\" | transloco }}</option>\r\n <option value=\"large\">{{ \"bitnglibrary.form.biteditor.large\" | transloco }}</option>\r\n <option value=\"huge\">{{ \"bitnglibrary.form.biteditor.huge\" | transloco }}</option>\r\n </select>\r\n </span>\r\n }\r\n @if (configuracion.fontFormat) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n <button class=\"ql-strike\" aria-label=\"Strikethrough\"></button>\r\n </span>\r\n }\r\n @if (configuracion.bullet) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-list\" aria-label=\"Insert Ordered List\" value=\"ordered\" type=\"button\"></button>\r\n <button class=\"ql-list\" aria-label=\"Insert Bullet List\" value=\"bullet\" type=\"button\"></button>\r\n </span>\r\n }\r\n @if (configuracion.link) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-link\" aria-label=\"Insert Link\" type=\"button\"></button>\r\n </span>\r\n }\r\n </p-header>\r\n </p-editor>\r\n}\r\n@if (!readOnly() && (!tipo() || tipo() == 'default')) {\r\n <p-editor id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n [ngModel]=\"value\"\r\n styleClass=\"editor\"\r\n [placeholder]=\"placeholder()\"\r\n [placeholder]=\"placeholder()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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"] }, { 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 }); }
|
|
4709
4723
|
}
|
|
4710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitEditorComponent, decorators: [{
|
|
4711
4725
|
type: Component,
|
|
4712
4726
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-editor", providers: [{
|
|
4713
4727
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4722,15 +4736,15 @@ class BitReadonlyComponent {
|
|
|
4722
4736
|
this.sessionShared = inject(SessionSharedService);
|
|
4723
4737
|
this.ayudaService = inject(AyudaService);
|
|
4724
4738
|
this.dateUtils = inject(DateUtils);
|
|
4725
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] :
|
|
4726
|
-
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] :
|
|
4727
|
-
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] :
|
|
4728
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] :
|
|
4729
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] :
|
|
4730
|
-
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] :
|
|
4739
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : []));
|
|
4740
|
+
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] : []));
|
|
4741
|
+
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] : [])); // text (default), date, datetime, time, boolean, textarea, list, list-multiple
|
|
4742
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : []));
|
|
4743
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : [])); //lista de valores estáticos con lo que inicializamos el select
|
|
4744
|
+
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] : []));
|
|
4731
4745
|
this.opcionesDropdown = computed(() => {
|
|
4732
4746
|
return (this.data() && this.data().slice()) || [];
|
|
4733
|
-
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] :
|
|
4747
|
+
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : []));
|
|
4734
4748
|
}
|
|
4735
4749
|
showAyuda() {
|
|
4736
4750
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
@@ -4756,10 +4770,10 @@ class BitReadonlyComponent {
|
|
|
4756
4770
|
return valor;
|
|
4757
4771
|
}
|
|
4758
4772
|
}
|
|
4759
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4760
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4773
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4774
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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()) {\r\n <label>\r\n <ng-content /> \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (!isTextarea()) {\r\n <p class=\"lectura\">{{value_lectura}}</p>\r\n}\r\n@if (isTextarea()) {\r\n <pre class=\"lectura\">{{value_lectura}}</pre>\r\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4761
4775
|
}
|
|
4762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitReadonlyComponent, decorators: [{
|
|
4763
4777
|
type: Component,
|
|
4764
4778
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-readonly", standalone: false, template: "@if (!hideLabel()) {\r\n <label>\r\n <ng-content /> \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (!isTextarea()) {\r\n <p class=\"lectura\">{{value_lectura}}</p>\r\n}\r\n@if (isTextarea()) {\r\n <pre class=\"lectura\">{{value_lectura}}</pre>\r\n}" }]
|
|
4765
4779
|
}], 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 }] }] } });
|
|
@@ -4767,18 +4781,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
4767
4781
|
class BitNumberComponent extends BitCustomComponent {
|
|
4768
4782
|
constructor() {
|
|
4769
4783
|
super(...arguments);
|
|
4770
|
-
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] :
|
|
4771
|
-
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] :
|
|
4772
|
-
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] :
|
|
4773
|
-
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] :
|
|
4774
|
-
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] :
|
|
4775
|
-
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] :
|
|
4776
|
-
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] :
|
|
4777
|
-
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] :
|
|
4778
|
-
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] :
|
|
4779
|
-
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] :
|
|
4780
|
-
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] :
|
|
4781
|
-
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] :
|
|
4784
|
+
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] : []));
|
|
4785
|
+
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] : []));
|
|
4786
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : []));
|
|
4787
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : []));
|
|
4788
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : []));
|
|
4789
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : []));
|
|
4790
|
+
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] : []));
|
|
4791
|
+
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] : []));
|
|
4792
|
+
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : []));
|
|
4793
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : []));
|
|
4794
|
+
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] : []));
|
|
4795
|
+
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] : []));
|
|
4782
4796
|
}
|
|
4783
4797
|
get value_lectura() {
|
|
4784
4798
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -4794,14 +4808,14 @@ class BitNumberComponent extends BitCustomComponent {
|
|
|
4794
4808
|
this.value = text;
|
|
4795
4809
|
this.changeComponentValue(this.value);
|
|
4796
4810
|
}
|
|
4797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4798
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4811
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4812
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [{
|
|
4799
4813
|
provide: NG_VALUE_ACCESSOR,
|
|
4800
4814
|
useExisting: forwardRef(() => BitNumberComponent),
|
|
4801
4815
|
multi: true
|
|
4802
|
-
}], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputReference"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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", "
|
|
4816
|
+
}], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputReference"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4803
4817
|
}
|
|
4804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitNumberComponent, decorators: [{
|
|
4805
4819
|
type: Component,
|
|
4806
4820
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-number", providers: [{
|
|
4807
4821
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4813,25 +4827,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
4813
4827
|
class BitAmountComponent extends BitNumberComponent {
|
|
4814
4828
|
constructor() {
|
|
4815
4829
|
super(...arguments);
|
|
4816
|
-
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] :
|
|
4817
|
-
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] :
|
|
4818
|
-
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] :
|
|
4819
|
-
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] :
|
|
4820
|
-
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] :
|
|
4821
|
-
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] :
|
|
4822
|
-
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] :
|
|
4823
|
-
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] :
|
|
4824
|
-
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] :
|
|
4825
|
-
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] :
|
|
4826
|
-
}
|
|
4827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4828
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4830
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : []));
|
|
4831
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : []));
|
|
4832
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : []));
|
|
4833
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : []));
|
|
4834
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : []));
|
|
4835
|
+
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] : []));
|
|
4836
|
+
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] : []));
|
|
4837
|
+
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] : []));
|
|
4838
|
+
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] : []));
|
|
4839
|
+
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : []));
|
|
4840
|
+
}
|
|
4841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitAmountComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4842
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [{
|
|
4829
4843
|
provide: NG_VALUE_ACCESSOR,
|
|
4830
4844
|
useExisting: forwardRef(() => BitAmountComponent),
|
|
4831
4845
|
multi: true
|
|
4832
|
-
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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", "
|
|
4846
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4833
4847
|
}
|
|
4834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4848
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitAmountComponent, decorators: [{
|
|
4835
4849
|
type: Component,
|
|
4836
4850
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-amount", providers: [{
|
|
4837
4851
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4843,7 +4857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
4843
4857
|
/** Esta clase contiene información sobre el menú pulsado por el usuairo. Permite setear dicho valor y recuperarlo mediante un signal */
|
|
4844
4858
|
class MenuService {
|
|
4845
4859
|
constructor() {
|
|
4846
|
-
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] :
|
|
4860
|
+
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : []));
|
|
4847
4861
|
}
|
|
4848
4862
|
setCurrentMenu(menuTitle) {
|
|
4849
4863
|
this.currentMenu$.set(menuTitle);
|
|
@@ -4852,10 +4866,10 @@ class MenuService {
|
|
|
4852
4866
|
getCurrentMenu() {
|
|
4853
4867
|
return this.currentMenu$;
|
|
4854
4868
|
}
|
|
4855
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4856
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4869
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4870
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuService, providedIn: "root" }); }
|
|
4857
4871
|
}
|
|
4858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuService, decorators: [{
|
|
4859
4873
|
type: Injectable,
|
|
4860
4874
|
args: [{ providedIn: "root" }]
|
|
4861
4875
|
}], ctorParameters: () => [] });
|
|
@@ -4868,8 +4882,8 @@ class MenuTitle {
|
|
|
4868
4882
|
|
|
4869
4883
|
class BitSidebarComponent {
|
|
4870
4884
|
constructor() {
|
|
4871
|
-
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] :
|
|
4872
|
-
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] :
|
|
4885
|
+
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
4886
|
+
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : []));
|
|
4873
4887
|
this.onSelectLanguage = output();
|
|
4874
4888
|
this.onCloseMenu = output();
|
|
4875
4889
|
this.onMenuTitle = output();
|
|
@@ -4897,10 +4911,10 @@ class BitSidebarComponent {
|
|
|
4897
4911
|
this.closeMenu();
|
|
4898
4912
|
this.onSelectLanguage.emit(language);
|
|
4899
4913
|
}
|
|
4900
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4901
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4914
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4915
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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'\">\r\n <i class=\"closebtn fa fa-times\" (click)=\"closeMenu()\"></i>\r\n <ul>\r\n @for (item of items(); track item) {\r\n <li class=\"item\" (click)=\"clickMenu(item)\">\r\n @if (item.items.length > 0) {\r\n <i class=\"fa\" [ngClass]=\"{'fa-chevron-right':!item.expanded,'fa-chevron-down':item.expanded}\"></i>\r\n }\r\n {{ \"menu.\" + item.label | transloco }}\r\n @if (item.expanded) {\r\n <ul>\r\n @for (subitem of item.items; track subitem) {\r\n <li class=\"subitem\" [routerLink]=\"subitem.routerLink\" (click)=\"clickMenuItem($event, item, subitem)\">\r\n <i class=\"{{subitem.icon}}\"></i> \r\n <a>{{ \"menu.\" + subitem.label | transloco }}</a></li>\r\n }\r\n </ul>\r\n }\r\n </li>\r\n }\r\n </ul>\r\n <!-- <p class=\"idioma-selector\"> \r\n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"></bit-language-selector>\r\n </p> -->\r\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>\r\n</div>\r\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 }); }
|
|
4902
4916
|
}
|
|
4903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSidebarComponent, decorators: [{
|
|
4904
4918
|
type: Component,
|
|
4905
4919
|
args: [{ selector: "bit-sidebar", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div id=\"mySidebar\" class=\"sidebar\" [style.min-width]=\"visibilidad() ? '300px' : '0px'\">\r\n <i class=\"closebtn fa fa-times\" (click)=\"closeMenu()\"></i>\r\n <ul>\r\n @for (item of items(); track item) {\r\n <li class=\"item\" (click)=\"clickMenu(item)\">\r\n @if (item.items.length > 0) {\r\n <i class=\"fa\" [ngClass]=\"{'fa-chevron-right':!item.expanded,'fa-chevron-down':item.expanded}\"></i>\r\n }\r\n {{ \"menu.\" + item.label | transloco }}\r\n @if (item.expanded) {\r\n <ul>\r\n @for (subitem of item.items; track subitem) {\r\n <li class=\"subitem\" [routerLink]=\"subitem.routerLink\" (click)=\"clickMenuItem($event, item, subitem)\">\r\n <i class=\"{{subitem.icon}}\"></i> \r\n <a>{{ \"menu.\" + subitem.label | transloco }}</a></li>\r\n }\r\n </ul>\r\n }\r\n </li>\r\n }\r\n </ul>\r\n <!-- <p class=\"idioma-selector\"> \r\n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"></bit-language-selector>\r\n </p> -->\r\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>\r\n</div>\r\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"] }]
|
|
4906
4920
|
}], 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"] }] } });
|
|
@@ -4911,10 +4925,10 @@ class BitThemeSelectorComponent {
|
|
|
4911
4925
|
this.themeFBitService = inject(ThemeFBitService);
|
|
4912
4926
|
this.themeList$ = computed(() => this.themeFBitService.themeList$().map((theme) => {
|
|
4913
4927
|
return { name: theme };
|
|
4914
|
-
}), ...(ngDevMode ? [{ debugName: "themeList$" }] :
|
|
4928
|
+
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
4915
4929
|
this.currentTheme$ = computed(() => {
|
|
4916
4930
|
return this.themeFBitService.currentTheme$();
|
|
4917
|
-
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] :
|
|
4931
|
+
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
4918
4932
|
effect(() => {
|
|
4919
4933
|
console.log("theme", this.currentTheme$());
|
|
4920
4934
|
console.log("themeList", this.themeList$());
|
|
@@ -4928,10 +4942,10 @@ class BitThemeSelectorComponent {
|
|
|
4928
4942
|
this.themeFBitService.changeTheme(theme);
|
|
4929
4943
|
this.onChangeTheme.emit(theme);
|
|
4930
4944
|
}
|
|
4931
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4932
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4945
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitThemeSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4946
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: BitThemeSelectorComponent, isStandalone: false, selector: "bit-theme-selector", outputs: { onChangeTheme: "onChangeTheme" }, ngImport: i0, template: "<p-selectbutton \r\n [options]=\"themeList$()\" \r\n [ngModel]=\"currentTheme$()\" \r\n optionLabel=\"name\" \r\n optionValue=\"name\" \r\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 }); }
|
|
4933
4947
|
}
|
|
4934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitThemeSelectorComponent, decorators: [{
|
|
4935
4949
|
type: Component,
|
|
4936
4950
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-theme-selector", standalone: false, template: "<p-selectbutton \r\n [options]=\"themeList$()\" \r\n [ngModel]=\"currentTheme$()\" \r\n optionLabel=\"name\" \r\n optionValue=\"name\" \r\n (onOptionClick)=\"selectGroupChanged($event)\"/>" }]
|
|
4937
4951
|
}], ctorParameters: () => [], propDecorators: { onChangeTheme: [{ type: i0.Output, args: ["onChangeTheme"] }] } });
|
|
@@ -4940,8 +4954,8 @@ class BitLanguageSelectorComponent {
|
|
|
4940
4954
|
constructor() {
|
|
4941
4955
|
this.onSelectLanguage = output();
|
|
4942
4956
|
this.localeService = inject(LocaleService);
|
|
4943
|
-
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] :
|
|
4944
|
-
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] :
|
|
4957
|
+
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : []));
|
|
4958
|
+
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : []));
|
|
4945
4959
|
}
|
|
4946
4960
|
//signal(this.localeService.locale$());
|
|
4947
4961
|
selectGroupChanged(_event) {
|
|
@@ -4953,10 +4967,10 @@ class BitLanguageSelectorComponent {
|
|
|
4953
4967
|
this.currentLanguage$.set(language);
|
|
4954
4968
|
this.onSelectLanguage.emit(language);
|
|
4955
4969
|
}
|
|
4956
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4957
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4970
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitLanguageSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4971
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: BitLanguageSelectorComponent, isStandalone: false, selector: "bit-language-selector", outputs: { onSelectLanguage: "onSelectLanguage" }, ngImport: i0, template: "<p-selectbutton \r\n [options]=\"languageList$()\" \r\n [ngModel]=\"currentLanguage$()\" \r\n optionLabel=\"label\" \r\n optionValue=\"value\" \r\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 }); }
|
|
4958
4972
|
}
|
|
4959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitLanguageSelectorComponent, decorators: [{
|
|
4960
4974
|
type: Component,
|
|
4961
4975
|
args: [{ selector: "bit-language-selector", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<p-selectbutton \r\n [options]=\"languageList$()\" \r\n [ngModel]=\"currentLanguage$()\" \r\n optionLabel=\"label\" \r\n optionValue=\"value\" \r\n (onOptionClick)=\"selectGroupChanged($event)\"/>" }]
|
|
4962
4976
|
}], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }] } });
|
|
@@ -4982,10 +4996,10 @@ class BitSettingsComponent {
|
|
|
4982
4996
|
this.themeFBitService.setDarkMode(this.isDarkMode);
|
|
4983
4997
|
this.onDarkModeChange.emit(this.isDarkMode); // Emit the new state
|
|
4984
4998
|
}
|
|
4985
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4986
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4999
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5000
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: BitSettingsComponent, isStandalone: false, selector: "bit-settings", outputs: { onSelectLanguage: "onSelectLanguage", onDarkModeChange: "onDarkModeChange" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\r\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>\r\n <p-popover #op ariaLabel=\"{{ t('configselection') }}\">\r\n <div class=\"config-panel-settings\">\r\n <span class=\"config-panel-label\">{{ t('themelabel') }}</span>\r\n <bit-theme-selector />\r\n <span class=\"config-panel-label\">{{ t('darkmodeselection') }}</span>\r\n <div class=\"flex gap-2 align-items-center\">\r\n <span class=\"fa-solid fa-moon\"></span>\r\n <p-toggleswitch ariaLabel=\"{{ t('darkmodeselection') }}\" [(ngModel)]=\"isDarkMode\" (onChange)=\"toggleDarkMode($event);\" attr.data-testid=\"darkMode\"/>\r\n </div>\r\n <span class=\"config-panel-label\">{{ t('languageselection') }}</span>\r\n <div class=\"flex gap-2 align-items-center\">\r\n <span class=\"fa-solid fa-globe\"></span>\r\n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"/>\r\n </div>\r\n \r\n </div> \r\n </p-popover>\r\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"], 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", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { 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 }); }
|
|
4987
5001
|
}
|
|
4988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSettingsComponent, decorators: [{
|
|
4989
5003
|
type: Component,
|
|
4990
5004
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-settings", standalone: false, template: "<ng-container *transloco=\"let t\">\r\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>\r\n <p-popover #op ariaLabel=\"{{ t('configselection') }}\">\r\n <div class=\"config-panel-settings\">\r\n <span class=\"config-panel-label\">{{ t('themelabel') }}</span>\r\n <bit-theme-selector />\r\n <span class=\"config-panel-label\">{{ t('darkmodeselection') }}</span>\r\n <div class=\"flex gap-2 align-items-center\">\r\n <span class=\"fa-solid fa-moon\"></span>\r\n <p-toggleswitch ariaLabel=\"{{ t('darkmodeselection') }}\" [(ngModel)]=\"isDarkMode\" (onChange)=\"toggleDarkMode($event);\" attr.data-testid=\"darkMode\"/>\r\n </div>\r\n <span class=\"config-panel-label\">{{ t('languageselection') }}</span>\r\n <div class=\"flex gap-2 align-items-center\">\r\n <span class=\"fa-solid fa-globe\"></span>\r\n <bit-language-selector (onSelectLanguage)=\"selectLanguage($event)\"/>\r\n </div>\r\n \r\n </div> \r\n </p-popover>\r\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"] }]
|
|
4991
5005
|
}], ctorParameters: () => [], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }], onDarkModeChange: [{ type: i0.Output, args: ["onDarkModeChange"] }] } });
|
|
@@ -5036,10 +5050,10 @@ class BytesPipe {
|
|
|
5036
5050
|
const prev = format.prev ? BytesPipe.formats[format.prev] : undefined;
|
|
5037
5051
|
return prev ? bytes / prev.max : bytes;
|
|
5038
5052
|
}
|
|
5039
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5040
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5053
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5054
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: BytesPipe, isStandalone: false, name: "bytes" }); }
|
|
5041
5055
|
}
|
|
5042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BytesPipe, decorators: [{
|
|
5043
5057
|
type: Pipe,
|
|
5044
5058
|
args: [{
|
|
5045
5059
|
name: "bytes",
|
|
@@ -5076,10 +5090,10 @@ class CapitalizePipe {
|
|
|
5076
5090
|
return texto;
|
|
5077
5091
|
}
|
|
5078
5092
|
}
|
|
5079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5080
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5093
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5094
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: CapitalizePipe, isStandalone: false, name: "capitalize" }); }
|
|
5081
5095
|
}
|
|
5082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CapitalizePipe, decorators: [{
|
|
5083
5097
|
type: Pipe,
|
|
5084
5098
|
args: [{
|
|
5085
5099
|
name: "capitalize",
|
|
@@ -5096,10 +5110,10 @@ class CutTextPipe {
|
|
|
5096
5110
|
}
|
|
5097
5111
|
return value.substring(0, maxLength) + "...";
|
|
5098
5112
|
}
|
|
5099
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5100
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CutTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5114
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: CutTextPipe, isStandalone: false, name: "cutText" }); }
|
|
5101
5115
|
}
|
|
5102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CutTextPipe, decorators: [{
|
|
5103
5117
|
type: Pipe,
|
|
5104
5118
|
args: [{
|
|
5105
5119
|
name: 'cutText',
|
|
@@ -5124,10 +5138,10 @@ class DomainListValuePipe {
|
|
|
5124
5138
|
s = s.substring(0, s.length - 2);
|
|
5125
5139
|
return s;
|
|
5126
5140
|
}
|
|
5127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5128
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5142
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: DomainListValuePipe, isStandalone: false, name: "domainListValue" }); }
|
|
5129
5143
|
}
|
|
5130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainListValuePipe, decorators: [{
|
|
5131
5145
|
type: Pipe,
|
|
5132
5146
|
args: [{
|
|
5133
5147
|
name: "domainListValue",
|
|
@@ -5149,10 +5163,10 @@ class DomainValuePipe {
|
|
|
5149
5163
|
return "";
|
|
5150
5164
|
}
|
|
5151
5165
|
}
|
|
5152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5153
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5167
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: DomainValuePipe, isStandalone: false, name: "domainValue" }); }
|
|
5154
5168
|
}
|
|
5155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DomainValuePipe, decorators: [{
|
|
5156
5170
|
type: Pipe,
|
|
5157
5171
|
args: [{
|
|
5158
5172
|
name: "domainValue",
|
|
@@ -5172,10 +5186,10 @@ class ListValuePipe {
|
|
|
5172
5186
|
s = s.substring(0, s.length - 2);
|
|
5173
5187
|
return s;
|
|
5174
5188
|
}
|
|
5175
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5176
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5190
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: ListValuePipe, isStandalone: false, name: "listValue" }); }
|
|
5177
5191
|
}
|
|
5178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListValuePipe, decorators: [{
|
|
5179
5193
|
type: Pipe,
|
|
5180
5194
|
args: [{
|
|
5181
5195
|
name: "listValue",
|
|
@@ -5197,10 +5211,10 @@ class OtherToolbarActionPipe {
|
|
|
5197
5211
|
}
|
|
5198
5212
|
return actions;
|
|
5199
5213
|
}
|
|
5200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5201
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5214
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: OtherToolbarActionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5215
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: OtherToolbarActionPipe, isStandalone: false, name: "otherToolbarAction" }); }
|
|
5202
5216
|
}
|
|
5203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: OtherToolbarActionPipe, decorators: [{
|
|
5204
5218
|
type: Pipe,
|
|
5205
5219
|
args: [{
|
|
5206
5220
|
name: "otherToolbarAction",
|
|
@@ -5224,10 +5238,10 @@ class RemoveLineBreaksPipe {
|
|
|
5224
5238
|
}
|
|
5225
5239
|
return str;
|
|
5226
5240
|
}
|
|
5227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5228
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5241
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RemoveLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5242
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: RemoveLineBreaksPipe, isStandalone: false, name: "removeLineBreaks" }); }
|
|
5229
5243
|
}
|
|
5230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RemoveLineBreaksPipe, decorators: [{
|
|
5231
5245
|
type: Pipe,
|
|
5232
5246
|
args: [{
|
|
5233
5247
|
name: "removeLineBreaks",
|
|
@@ -5244,10 +5258,10 @@ class SiONoPipe {
|
|
|
5244
5258
|
return value ? "Sí" : "No";
|
|
5245
5259
|
}
|
|
5246
5260
|
}
|
|
5247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5248
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5261
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SiONoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5262
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: SiONoPipe, isStandalone: false, name: "siONo" }); }
|
|
5249
5263
|
}
|
|
5250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SiONoPipe, decorators: [{
|
|
5251
5265
|
type: Pipe,
|
|
5252
5266
|
args: [{
|
|
5253
5267
|
name: "siONo",
|
|
@@ -5259,10 +5273,10 @@ class StringifyPipe {
|
|
|
5259
5273
|
transform(value) {
|
|
5260
5274
|
return JSON.stringify(value);
|
|
5261
5275
|
}
|
|
5262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5263
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5276
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5277
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: StringifyPipe, isStandalone: false, name: "stringify" }); }
|
|
5264
5278
|
}
|
|
5265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StringifyPipe, decorators: [{
|
|
5266
5280
|
type: Pipe,
|
|
5267
5281
|
args: [{
|
|
5268
5282
|
name: "stringify",
|
|
@@ -5289,10 +5303,10 @@ class BitPanelDirective {
|
|
|
5289
5303
|
ngOnDestroy() {
|
|
5290
5304
|
this.suscription && this.suscription.unsubscribe();
|
|
5291
5305
|
}
|
|
5292
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5293
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5307
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: BitPanelDirective, isStandalone: false, selector: "[bitpanel]", ngImport: i0 }); }
|
|
5294
5308
|
}
|
|
5295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitPanelDirective, decorators: [{
|
|
5296
5310
|
type: Directive,
|
|
5297
5311
|
args: [{
|
|
5298
5312
|
selector: "[bitpanel]",
|
|
@@ -5308,8 +5322,8 @@ const directives = [
|
|
|
5308
5322
|
class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
5309
5323
|
constructor() {
|
|
5310
5324
|
super(...arguments);
|
|
5311
|
-
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] :
|
|
5312
|
-
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] :
|
|
5325
|
+
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : []));
|
|
5326
|
+
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : []));
|
|
5313
5327
|
}
|
|
5314
5328
|
get value_lectura() {
|
|
5315
5329
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -5325,14 +5339,14 @@ class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
|
5325
5339
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
5326
5340
|
this.changeComponentValue(this.value);
|
|
5327
5341
|
}
|
|
5328
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5329
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSwitchSiNoComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [{
|
|
5330
5344
|
provide: NG_VALUE_ACCESSOR,
|
|
5331
5345
|
useExisting: forwardRef(() => BitSwitchSiNoComponent),
|
|
5332
5346
|
multi: true
|
|
5333
5347
|
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-toggleswitch onLabel=\"S\u00ED\"\r\n offLabel=\"No\"\r\n binary=\"true\"\r\n [(ngModel)]=\"value\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n id=\"{{ nombre() }}\"\r\n [trueValue]=\"valorTrue()\"\r\n [falseValue]=\"valorFalse()\"\r\n (onChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\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 }); }
|
|
5334
5348
|
}
|
|
5335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitSwitchSiNoComponent, decorators: [{
|
|
5336
5350
|
type: Component,
|
|
5337
5351
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch-si-no", providers: [{
|
|
5338
5352
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -5344,9 +5358,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
5344
5358
|
class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
5345
5359
|
constructor() {
|
|
5346
5360
|
super(...arguments);
|
|
5347
|
-
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] :
|
|
5348
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] :
|
|
5349
|
-
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] :
|
|
5361
|
+
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : []));
|
|
5362
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
5363
|
+
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : []));
|
|
5350
5364
|
this.estiloCheckAll = computed(() => {
|
|
5351
5365
|
if (this.isCheckAll()) {
|
|
5352
5366
|
return "pi pi-check-square";
|
|
@@ -5354,7 +5368,7 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5354
5368
|
else {
|
|
5355
5369
|
return "pi pi-stop";
|
|
5356
5370
|
}
|
|
5357
|
-
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] :
|
|
5371
|
+
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : []));
|
|
5358
5372
|
}
|
|
5359
5373
|
get value_lectura() {
|
|
5360
5374
|
if (this.value) {
|
|
@@ -5405,16 +5419,16 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5405
5419
|
refreshCheckAll() {
|
|
5406
5420
|
this.isCheckAll.set(this.data()?.length === this.value?.length);
|
|
5407
5421
|
}
|
|
5408
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5409
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitMultipleCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5423
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", 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: [
|
|
5410
5424
|
{
|
|
5411
5425
|
provide: NG_VALUE_ACCESSOR,
|
|
5412
5426
|
useExisting: forwardRef(() => BitMultipleCheckboxComponent),
|
|
5413
5427
|
multi: true
|
|
5414
5428
|
}
|
|
5415
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t\">\r\n\r\n @if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> \r\n @if (!readOnly() && this.chekAll()) {\r\n <i title=\"{{t('bitnglibrary.form.bitmultiplecheckbox.checkall')}}\"\r\n style=\"color: #ced4da\"\r\n class=\"font-normal cursor-pointer hover:text-blue-600 cursor-pointer text-sm {{ estiloCheckAll() }}\"\r\n (click)=\"onCheckAll()\"></i> \r\n }\r\n @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span> \r\n }\r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n }\r\n\r\n @if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n } @else {\r\n\r\n @for (dominio of data(); track dominio) {\r\n <div class=\"field-checkbox inline-block\">\r\n <p-checkbox\r\n id=\"{{ nombre() + '-' + dominio.value }}\"\r\n name=\"{{ nombre() + '-' + dominio.value }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [value]=\"dominio.value\"\r\n [(ngModel)]=\"value\"\r\n [inputId]=\"dominio.value\"\r\n [disabled]=\"isDisabled()\"\r\n (onChange)=\"onChangeValue($event)\">\r\n attr.data-testid=\"{{ dataTestId() + \"-\" + dominio.value }}\"\r\n </p-checkbox>\r\n <label class=\"inline-block ml-2 mr-4 font-normal cursor-pointer hover:text-blue-400\"\r\n [for]=\"dominio.value\">{{ dominio.label }}</label>\r\n </div>\r\n }\r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\r\n }\r\n\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n }\r\n }\r\n\r\n</ng-container>\r\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["
|
|
5429
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t\">\r\n\r\n @if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> \r\n @if (!readOnly() && this.chekAll()) {\r\n <i title=\"{{t('bitnglibrary.form.bitmultiplecheckbox.checkall')}}\"\r\n style=\"color: #ced4da\"\r\n class=\"font-normal cursor-pointer hover:text-blue-600 cursor-pointer text-sm {{ estiloCheckAll() }}\"\r\n (click)=\"onCheckAll()\"></i> \r\n }\r\n @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span> \r\n }\r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n }\r\n\r\n @if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n } @else {\r\n\r\n @for (dominio of data(); track dominio) {\r\n <div class=\"field-checkbox inline-block\">\r\n <p-checkbox\r\n id=\"{{ nombre() + '-' + dominio.value }}\"\r\n name=\"{{ nombre() + '-' + dominio.value }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [value]=\"dominio.value\"\r\n [(ngModel)]=\"value\"\r\n [inputId]=\"dominio.value\"\r\n [disabled]=\"isDisabled()\"\r\n (onChange)=\"onChangeValue($event)\">\r\n attr.data-testid=\"{{ dataTestId() + \"-\" + dominio.value }}\"\r\n </p-checkbox>\r\n <label class=\"inline-block ml-2 mr-4 font-normal cursor-pointer hover:text-blue-400\"\r\n [for]=\"dominio.value\">{{ dominio.label }}</label>\r\n </div>\r\n }\r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\r\n }\r\n\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n }\r\n }\r\n\r\n</ng-container>\r\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["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 }); }
|
|
5416
5430
|
}
|
|
5417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BitMultipleCheckboxComponent, decorators: [{
|
|
5418
5432
|
type: Component,
|
|
5419
5433
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox-multiple", providers: [
|
|
5420
5434
|
{
|
|
@@ -5514,8 +5528,8 @@ const formComponents = [
|
|
|
5514
5528
|
BitAmountComponent
|
|
5515
5529
|
];
|
|
5516
5530
|
class SharedLibraryModule {
|
|
5517
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5518
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SharedLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5532
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: SharedLibraryModule, declarations: [BitPanelDirective, FocusRegisterDirective, BitBreadCrumbComponent,
|
|
5519
5533
|
BitControlMessages,
|
|
5520
5534
|
BitDialogComponent,
|
|
5521
5535
|
BitFooterComponent,
|
|
@@ -5674,7 +5688,7 @@ class SharedLibraryModule {
|
|
|
5674
5688
|
BitReadonlyComponent,
|
|
5675
5689
|
BitNumberComponent,
|
|
5676
5690
|
BitAmountComponent] }); }
|
|
5677
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5691
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SharedLibraryModule, providers: [{ provide: TRANSLOCO_SCOPE, useValue: "bitnglibrary" }, MessageService], imports: [modules, RouterModule, FileUploadModule$1, TranslocoModule, AccordionModule,
|
|
5678
5692
|
AutoCompleteModule,
|
|
5679
5693
|
BadgeModule,
|
|
5680
5694
|
DatePickerModule,
|
|
@@ -5720,7 +5734,7 @@ class SharedLibraryModule {
|
|
|
5720
5734
|
TreeModule,
|
|
5721
5735
|
TreeTableModule] }); }
|
|
5722
5736
|
}
|
|
5723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SharedLibraryModule, decorators: [{
|
|
5724
5738
|
type: NgModule,
|
|
5725
5739
|
args: [{
|
|
5726
5740
|
imports: [...modules, RouterModule, FileUploadModule$1, TranslocoModule],
|
|
@@ -5794,10 +5808,10 @@ class CanDeactivateGuard {
|
|
|
5794
5808
|
canDeactivate(component) {
|
|
5795
5809
|
return component.canDeactivate ? component.canDeactivate() : true;
|
|
5796
5810
|
}
|
|
5797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5798
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5811
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CanDeactivateGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5812
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CanDeactivateGuard }); }
|
|
5799
5813
|
}
|
|
5800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CanDeactivateGuard, decorators: [{
|
|
5801
5815
|
type: Injectable
|
|
5802
5816
|
}] });
|
|
5803
5817
|
|
|
@@ -5822,10 +5836,10 @@ class CustomHttpInterceptor {
|
|
|
5822
5836
|
this.generalUtils.stopLoading();
|
|
5823
5837
|
}));
|
|
5824
5838
|
}
|
|
5825
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5826
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5839
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CustomHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5840
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CustomHttpInterceptor, providedIn: "root" }); }
|
|
5827
5841
|
}
|
|
5828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CustomHttpInterceptor, decorators: [{
|
|
5829
5843
|
type: Injectable,
|
|
5830
5844
|
args: [{ providedIn: "root" }]
|
|
5831
5845
|
}], ctorParameters: () => [] });
|
|
@@ -5854,10 +5868,10 @@ class EntityDataService {
|
|
|
5854
5868
|
getService(entityName) {
|
|
5855
5869
|
return this.services[entityName.trim()];
|
|
5856
5870
|
}
|
|
5857
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5858
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5871
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EntityDataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5872
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EntityDataService, providedIn: "root" }); }
|
|
5859
5873
|
}
|
|
5860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EntityDataService, decorators: [{
|
|
5861
5875
|
type: Injectable,
|
|
5862
5876
|
args: [{ providedIn: "root" }]
|
|
5863
5877
|
}], ctorParameters: () => [] });
|
|
@@ -5982,7 +5996,7 @@ class EntityCollectionServiceBase {
|
|
|
5982
5996
|
entities = entities.sort(sortComparerFn);
|
|
5983
5997
|
}
|
|
5984
5998
|
return entities;
|
|
5985
|
-
}, ...(ngDevMode ? [{ debugName: "entities$" }] :
|
|
5999
|
+
}, ...(ngDevMode ? [{ debugName: "entities$" }] : []));
|
|
5986
6000
|
/** Signal of all ids in the cached collection. */
|
|
5987
6001
|
this.ids$ = this.entityStore.ids;
|
|
5988
6002
|
/** Signal of the filter object applied by the entity collection's filter function */
|
|
@@ -6502,10 +6516,10 @@ class HttpUrlGenerator {
|
|
|
6502
6516
|
...(entityHttpResourceUrls || {})
|
|
6503
6517
|
};
|
|
6504
6518
|
}
|
|
6505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6506
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6519
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpUrlGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6520
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpUrlGenerator, providedIn: "root" }); }
|
|
6507
6521
|
}
|
|
6508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpUrlGenerator, decorators: [{
|
|
6509
6523
|
type: Injectable,
|
|
6510
6524
|
args: [{ providedIn: "root" }]
|
|
6511
6525
|
}] });
|