bit-ng-library 21.0.3 → 21.0.4
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 +8 -0
- package/fesm2022/bit-ng-library.mjs +462 -468
- package/fesm2022/bit-ng-library.mjs.map +1 -1
- package/package.json +5 -4
- package/{index.d.ts → types/bit-ng-library.d.ts} +407 -404
- package/types/bit-ng-library.d.ts.map +1 -0
- package/index.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: "21.2.13", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService }); }
|
|
275
275
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService, decorators: [{
|
|
277
277
|
type: Injectable
|
|
278
278
|
}], ctorParameters: () => [] });
|
|
279
279
|
|
|
@@ -285,9 +285,9 @@ class ThemeFBitService {
|
|
|
285
285
|
constructor() {
|
|
286
286
|
this.primeNgConfig = inject(PrimeNG);
|
|
287
287
|
this.storageService = inject(StorageService);
|
|
288
|
-
this.themeList$ = signal([ThemeFBitService.THEME_CAIB, ThemeFBitService.THEME_PRIME, ThemeFBitService.THEME_MATERIAL, ThemeFBitService.THEME_NORA], ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
289
|
-
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
290
|
-
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : []));
|
|
288
|
+
this.themeList$ = signal([ThemeFBitService.THEME_CAIB, ThemeFBitService.THEME_PRIME, ThemeFBitService.THEME_MATERIAL, ThemeFBitService.THEME_NORA], ...(ngDevMode ? [{ debugName: "themeList$" }] : /* istanbul ignore next */ []));
|
|
289
|
+
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : /* istanbul ignore next */ []));
|
|
290
|
+
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : /* istanbul ignore next */ []));
|
|
291
291
|
this.themeOptions = {
|
|
292
292
|
darkModeSelector: ".my-app-dark" //es el selector que cuando lo añadamos como clase al index.html hará que se active el modo oscuro
|
|
293
293
|
};
|
|
@@ -345,10 +345,10 @@ class ThemeFBitService {
|
|
|
345
345
|
element.classList.toggle("my-app-dark");
|
|
346
346
|
console.log("toggleDarkMode");
|
|
347
347
|
}
|
|
348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
349
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
349
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService }); }
|
|
350
350
|
}
|
|
351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService, decorators: [{
|
|
352
352
|
type: Injectable
|
|
353
353
|
}], ctorParameters: () => [] });
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ class LocaleService {
|
|
|
360
360
|
{ label: "Català", value: "ca" }
|
|
361
361
|
];
|
|
362
362
|
// the default locale
|
|
363
|
-
this.locale$ = signal("ca", ...(ngDevMode ? [{ debugName: "locale$" }] : []));
|
|
363
|
+
this.locale$ = signal("ca", ...(ngDevMode ? [{ debugName: "locale$" }] : /* istanbul ignore next */ []));
|
|
364
364
|
this.storageService = inject(StorageService);
|
|
365
365
|
this.translateService = inject(TranslateService);
|
|
366
366
|
console.log("construyendo LocaleService");
|
|
@@ -374,10 +374,10 @@ class LocaleService {
|
|
|
374
374
|
this.storageService.setData(StorageService.LANGUAGE, this.locale$());
|
|
375
375
|
this.translateService.setActiveLang(this.locale$());
|
|
376
376
|
}
|
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
378
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
377
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
378
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, providedIn: "root" }); }
|
|
379
379
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, decorators: [{
|
|
381
381
|
type: Injectable,
|
|
382
382
|
args: [{
|
|
383
383
|
providedIn: "root"
|
|
@@ -387,10 +387,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
387
387
|
class AyudaService {
|
|
388
388
|
static { this.AYUDAS = []; } // Inicializar desde la aplicacion cliente
|
|
389
389
|
constructor() {
|
|
390
|
-
this.mostrar = signal(null, ...(ngDevMode ? [{ debugName: "mostrar" }] : []));
|
|
390
|
+
this.mostrar = signal(null, ...(ngDevMode ? [{ debugName: "mostrar" }] : /* istanbul ignore next */ []));
|
|
391
391
|
this.themeFbitService = inject(ThemeFBitService);
|
|
392
392
|
this.localeService = inject(LocaleService);
|
|
393
|
-
this.baseHelpUrl$ = computed(() => `assets/docshelp/${this.localeService.locale$()}/index.html?darkMode=${this.themeFbitService.darkMode$()}`, ...(ngDevMode ? [{ debugName: "baseHelpUrl$" }] : []));
|
|
393
|
+
this.baseHelpUrl$ = computed(() => `assets/docshelp/${this.localeService.locale$()}/index.html?darkMode=${this.themeFbitService.darkMode$()}`, ...(ngDevMode ? [{ debugName: "baseHelpUrl$" }] : /* istanbul ignore next */ []));
|
|
394
394
|
this.loadAyudas();
|
|
395
395
|
}
|
|
396
396
|
// procesa el fichero app.ayudas.json y crea el mapa para acceder luego directamente por clave
|
|
@@ -417,10 +417,10 @@ class AyudaService {
|
|
|
417
417
|
resetAyuda() {
|
|
418
418
|
this.mostrar.set(null);
|
|
419
419
|
}
|
|
420
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
421
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
421
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, providedIn: "root" }); }
|
|
422
422
|
}
|
|
423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, decorators: [{
|
|
424
424
|
type: Injectable,
|
|
425
425
|
args: [{ providedIn: "root" }]
|
|
426
426
|
}], ctorParameters: () => [] });
|
|
@@ -500,10 +500,10 @@ class BitMessageService {
|
|
|
500
500
|
hideErrorsPanel() {
|
|
501
501
|
this.observableErrorsSource.next(null);
|
|
502
502
|
}
|
|
503
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
504
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
504
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, providedIn: "root" }); }
|
|
505
505
|
}
|
|
506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, decorators: [{
|
|
507
507
|
type: Injectable,
|
|
508
508
|
args: [{ providedIn: "root" }]
|
|
509
509
|
}], ctorParameters: () => [] });
|
|
@@ -524,7 +524,7 @@ class GeneralUtils {
|
|
|
524
524
|
static { this.FORMAT_SHORT_SECONDS_TIME = "HH:mm:ss"; }
|
|
525
525
|
constructor() {
|
|
526
526
|
this.observableLoadingSource = new Subject();
|
|
527
|
-
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
527
|
+
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
528
528
|
console.log("GeneralUtils constructor");
|
|
529
529
|
this.observableLoading = this.observableLoadingSource.asObservable();
|
|
530
530
|
}
|
|
@@ -652,10 +652,10 @@ class GeneralUtils {
|
|
|
652
652
|
}
|
|
653
653
|
return "-";
|
|
654
654
|
}
|
|
655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
656
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, providedIn: "root" }); }
|
|
657
657
|
}
|
|
658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, decorators: [{
|
|
659
659
|
type: Injectable,
|
|
660
660
|
args: [{ providedIn: "root" }]
|
|
661
661
|
}], ctorParameters: () => [] });
|
|
@@ -717,10 +717,10 @@ class TranslateService {
|
|
|
717
717
|
getActiveLang() {
|
|
718
718
|
return this.translocoService.getActiveLang();
|
|
719
719
|
}
|
|
720
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
721
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, providedIn: "root" }); }
|
|
722
722
|
}
|
|
723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, decorators: [{
|
|
724
724
|
type: Injectable,
|
|
725
725
|
args: [{ providedIn: "root" }]
|
|
726
726
|
}], ctorParameters: () => [] });
|
|
@@ -862,10 +862,10 @@ class HttpUtilsService {
|
|
|
862
862
|
}
|
|
863
863
|
return httpHeaders;
|
|
864
864
|
}
|
|
865
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
866
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
865
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
866
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, providedIn: "root" }); }
|
|
867
867
|
}
|
|
868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, decorators: [{
|
|
869
869
|
type: Injectable,
|
|
870
870
|
args: [{ providedIn: "root" }]
|
|
871
871
|
}], ctorParameters: () => [] });
|
|
@@ -1652,10 +1652,10 @@ class DateUtils {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
return "-";
|
|
1654
1654
|
}
|
|
1655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1656
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, providedIn: "root" }); }
|
|
1657
1657
|
}
|
|
1658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, decorators: [{
|
|
1659
1659
|
type: Injectable,
|
|
1660
1660
|
args: [{ providedIn: "root" }]
|
|
1661
1661
|
}], ctorParameters: () => [] });
|
|
@@ -1669,10 +1669,10 @@ class DomainService {
|
|
|
1669
1669
|
return domain && domain[lang] ? of(domain[lang]) : of([]);
|
|
1670
1670
|
})), { injector: injector });
|
|
1671
1671
|
}
|
|
1672
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1673
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, providedIn: "root" }); }
|
|
1674
1674
|
}
|
|
1675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, decorators: [{
|
|
1676
1676
|
type: Injectable,
|
|
1677
1677
|
args: [{ providedIn: "root" }]
|
|
1678
1678
|
}] });
|
|
@@ -1724,10 +1724,10 @@ class DownloadService {
|
|
|
1724
1724
|
this.generalUtils.stopLoading();
|
|
1725
1725
|
}, () => this.generalUtils.stopLoading());
|
|
1726
1726
|
}
|
|
1727
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1728
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1727
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1728
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, providedIn: "root" }); }
|
|
1729
1729
|
}
|
|
1730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, decorators: [{
|
|
1731
1731
|
type: Injectable,
|
|
1732
1732
|
args: [{
|
|
1733
1733
|
providedIn: "root"
|
|
@@ -1754,10 +1754,10 @@ class FocusService {
|
|
|
1754
1754
|
//console.log(`returning focus on ${this.focused}`);
|
|
1755
1755
|
return this.focused;
|
|
1756
1756
|
}
|
|
1757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1758
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1757
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1758
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, providedIn: "root" }); }
|
|
1759
1759
|
}
|
|
1760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, decorators: [{
|
|
1761
1761
|
type: Injectable,
|
|
1762
1762
|
args: [{ providedIn: "root" }]
|
|
1763
1763
|
}] });
|
|
@@ -1783,10 +1783,10 @@ class SessionSharedService {
|
|
|
1783
1783
|
// console.log('shared set', key, value);
|
|
1784
1784
|
this.data.set(key, value);
|
|
1785
1785
|
}
|
|
1786
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1787
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1787
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, providedIn: "root" }); }
|
|
1788
1788
|
}
|
|
1789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, decorators: [{
|
|
1790
1790
|
type: Injectable,
|
|
1791
1791
|
args: [{ providedIn: "root" }]
|
|
1792
1792
|
}], ctorParameters: () => [] });
|
|
@@ -1799,10 +1799,10 @@ class TableViewService {
|
|
|
1799
1799
|
sendExportMessage() {
|
|
1800
1800
|
this.observableExportSource.next(true);
|
|
1801
1801
|
}
|
|
1802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1803
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1803
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, providedIn: "root" }); }
|
|
1804
1804
|
}
|
|
1805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, decorators: [{
|
|
1806
1806
|
type: Injectable,
|
|
1807
1807
|
args: [{ providedIn: "root" }]
|
|
1808
1808
|
}], ctorParameters: () => [] });
|
|
@@ -1821,10 +1821,10 @@ class ToolbarService {
|
|
|
1821
1821
|
toolbar.componentId = componentId;
|
|
1822
1822
|
this.observableToolbarSource.next(toolbar);
|
|
1823
1823
|
}
|
|
1824
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1825
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1825
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, providedIn: "root" }); }
|
|
1826
1826
|
}
|
|
1827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, decorators: [{
|
|
1828
1828
|
type: Injectable,
|
|
1829
1829
|
args: [{ providedIn: "root" }]
|
|
1830
1830
|
}], ctorParameters: () => [] });
|
|
@@ -1872,17 +1872,17 @@ class UploadService {
|
|
|
1872
1872
|
getUrlDownloadFile(id) {
|
|
1873
1873
|
return `${this.DOWNLOAD_URL}${id}`;
|
|
1874
1874
|
}
|
|
1875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1876
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1875
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1876
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, providedIn: "root" }); }
|
|
1877
1877
|
}
|
|
1878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, decorators: [{
|
|
1879
1879
|
type: Injectable,
|
|
1880
1880
|
args: [{ providedIn: "root" }]
|
|
1881
1881
|
}], ctorParameters: () => [] });
|
|
1882
1882
|
|
|
1883
1883
|
class ClearItemsService {
|
|
1884
1884
|
constructor() {
|
|
1885
|
-
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : []));
|
|
1885
|
+
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : /* istanbul ignore next */ []));
|
|
1886
1886
|
}
|
|
1887
1887
|
setClearItems(value) {
|
|
1888
1888
|
this.clearItems.set(value);
|
|
@@ -1890,10 +1890,10 @@ class ClearItemsService {
|
|
|
1890
1890
|
getClearItems() {
|
|
1891
1891
|
return this.clearItems;
|
|
1892
1892
|
}
|
|
1893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1894
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1894
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService }); }
|
|
1895
1895
|
}
|
|
1896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService, decorators: [{
|
|
1897
1897
|
type: Injectable
|
|
1898
1898
|
}], ctorParameters: () => [] });
|
|
1899
1899
|
|
|
@@ -1910,10 +1910,10 @@ class BaseComponent {
|
|
|
1910
1910
|
getHelpSectionUrl(section) {
|
|
1911
1911
|
return this.ayudaService.baseHelpUrl$() + '#/' + section + "/";
|
|
1912
1912
|
}
|
|
1913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1914
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1914
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BaseComponent, isStandalone: true, ngImport: i0 }); }
|
|
1915
1915
|
}
|
|
1916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1917
1917
|
type: Directive
|
|
1918
1918
|
}] });
|
|
1919
1919
|
|
|
@@ -2395,7 +2395,7 @@ function makeToolbarChildList(enableDelete) {
|
|
|
2395
2395
|
class BitBreadCrumbComponent {
|
|
2396
2396
|
constructor() {
|
|
2397
2397
|
this.router = inject(Router);
|
|
2398
|
-
this.bc = input([], ...(ngDevMode ?
|
|
2398
|
+
this.bc = input([], { ...(ngDevMode ? { debugName: "bc" } : /* istanbul ignore next */ {}), alias: "breadcrumb" });
|
|
2399
2399
|
}
|
|
2400
2400
|
/** Comprobamos si los datos de entrada no están definidos para inicializarlos en blanco */
|
|
2401
2401
|
ngOnInit() {
|
|
@@ -2413,8 +2413,8 @@ class BitBreadCrumbComponent {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
return false; //para evitar que navegue al href="#"
|
|
2415
2415
|
}
|
|
2416
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2417
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBreadCrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2417
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitBreadCrumbComponent, isStandalone: false, selector: "bit-breadcrumb", inputs: { bc: { classPropertyName: "bc", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2418
2418
|
<ul class="breadcrumb">
|
|
2419
2419
|
@for (path of bc(); track path; let i = $index) {
|
|
2420
2420
|
<li [class.active]="i == bc().length - 1">
|
|
@@ -2429,7 +2429,7 @@ class BitBreadCrumbComponent {
|
|
|
2429
2429
|
</ul>
|
|
2430
2430
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2431
2431
|
}
|
|
2432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBreadCrumbComponent, decorators: [{
|
|
2433
2433
|
type: Component,
|
|
2434
2434
|
args: [{
|
|
2435
2435
|
selector: "bit-breadcrumb",
|
|
@@ -2458,8 +2458,8 @@ class BitControlMessages {
|
|
|
2458
2458
|
constructor() {
|
|
2459
2459
|
this.focusService = inject(FocusService);
|
|
2460
2460
|
this.translateService = inject(TranslateService);
|
|
2461
|
-
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : []));
|
|
2462
|
-
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : []));
|
|
2461
|
+
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : /* istanbul ignore next */ []));
|
|
2462
|
+
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : /* istanbul ignore next */ []));
|
|
2463
2463
|
}
|
|
2464
2464
|
get isError() {
|
|
2465
2465
|
if (this.focusService.getFocusedElement() !== this.field()) {
|
|
@@ -2476,8 +2476,8 @@ class BitControlMessages {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
return false;
|
|
2478
2478
|
}
|
|
2479
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2480
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2479
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitControlMessages, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2480
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitControlMessages, isStandalone: false, selector: "control-messages", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2481
2481
|
@if (isError) {
|
|
2482
2482
|
<div>
|
|
2483
2483
|
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
@@ -2485,7 +2485,7 @@ class BitControlMessages {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2487
2487
|
}
|
|
2488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitControlMessages, decorators: [{
|
|
2489
2489
|
type: Component,
|
|
2490
2490
|
args: [{
|
|
2491
2491
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2530,11 +2530,11 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2530
2530
|
super();
|
|
2531
2531
|
this.bitMessageService = inject(BitMessageService);
|
|
2532
2532
|
this.translateService = inject(TranslateService);
|
|
2533
|
-
this.message = signal(new BitMessage("", ""), ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
2534
|
-
this.display = signal(false, ...(ngDevMode ? [{ debugName: "display" }] : []));
|
|
2533
|
+
this.message = signal(new BitMessage("", ""), ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
2534
|
+
this.display = signal(false, ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
2535
2535
|
this.errorAccessUrl = toSignal(this.translateService.selectTranslate("messages.erroraccessurl", {}, "bitnglibrary"), { initialValue: "" });
|
|
2536
2536
|
this.errorAccess = toSignal(this.translateService.selectTranslate("messages.erroraccess", {}, "bitnglibrary"), { initialValue: "" });
|
|
2537
|
-
this.isSeverityInfo = computed(() => this.message().severity === "info", ...(ngDevMode ? [{ debugName: "isSeverityInfo" }] : []));
|
|
2537
|
+
this.isSeverityInfo = computed(() => this.message().severity === "info", ...(ngDevMode ? [{ debugName: "isSeverityInfo" }] : /* istanbul ignore next */ []));
|
|
2538
2538
|
const bitMessageService = this.bitMessageService;
|
|
2539
2539
|
//console.log("DialogComponent contructor(" + bitMessageService + ")");
|
|
2540
2540
|
//Nos suscribimos a la espera de que envíen mensajes
|
|
@@ -2605,8 +2605,8 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2605
2605
|
return '<span class="' + cls + '">' + match + "</span>";
|
|
2606
2606
|
});
|
|
2607
2607
|
}
|
|
2608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2609
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2609
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDialogComponent, isStandalone: false, selector: "bit-dialog", usesInheritance: true, ngImport: i0, template: `
|
|
2610
2610
|
@if (!isSeverityInfo()) {
|
|
2611
2611
|
<p-dialog
|
|
2612
2612
|
class="scroll-y scroll-{{ message().height }}"
|
|
@@ -2661,9 +2661,9 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2661
2661
|
<pre [innerHTML]="syntaxHighlight(message().message)"></pre>
|
|
2662
2662
|
</p-dialog>
|
|
2663
2663
|
}
|
|
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 }); }
|
|
2664
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2665
2665
|
}
|
|
2666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDialogComponent, decorators: [{
|
|
2667
2667
|
type: Component,
|
|
2668
2668
|
args: [{
|
|
2669
2669
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2770,10 +2770,10 @@ class CantidadMonedaPipe {
|
|
|
2770
2770
|
: "";
|
|
2771
2771
|
return integer + fraction;
|
|
2772
2772
|
}
|
|
2773
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2774
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2773
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2774
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, isStandalone: false, name: "cantidadMoneda" }); }
|
|
2775
2775
|
}
|
|
2776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, decorators: [{
|
|
2777
2777
|
type: Pipe,
|
|
2778
2778
|
args: [{
|
|
2779
2779
|
name: "cantidadMoneda",
|
|
@@ -2783,12 +2783,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2783
2783
|
|
|
2784
2784
|
class BitPajigatorComponent {
|
|
2785
2785
|
constructor() {
|
|
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" }] : []));
|
|
2786
|
+
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
2787
|
+
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
2788
|
+
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2789
|
+
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
2790
|
+
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
2791
|
+
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : /* istanbul ignore next */ []));
|
|
2792
2792
|
this.onPageChange = output();
|
|
2793
2793
|
this.onPageSizeChange = output();
|
|
2794
2794
|
this.maxPages = computed(() => {
|
|
@@ -2801,10 +2801,10 @@ class BitPajigatorComponent {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
console.log("totalItems:" + this.totalItems() + "maxPages:" + maxPages + " itemsPerPage:" + this.itemsPerPage());
|
|
2803
2803
|
return maxPages;
|
|
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" }] : []));
|
|
2804
|
+
}, ...(ngDevMode ? [{ debugName: "maxPages" }] : /* istanbul ignore next */ []));
|
|
2805
|
+
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] : /* istanbul ignore next */ []));
|
|
2806
|
+
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] : /* istanbul ignore next */ []));
|
|
2807
|
+
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] : /* istanbul ignore next */ []));
|
|
2808
2808
|
}
|
|
2809
2809
|
changeItemsPerpage(items) {
|
|
2810
2810
|
if (!items)
|
|
@@ -2818,10 +2818,10 @@ class BitPajigatorComponent {
|
|
|
2818
2818
|
this.page.update((current) => (current += direction));
|
|
2819
2819
|
this.onPageChange.emit(this.page());
|
|
2820
2820
|
}
|
|
2821
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2822
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2821
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPajigatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2822
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitPajigatorComponent, isStandalone: false, selector: "bit-pajigator", inputs: { paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, maxCurrentItems: { classPropertyName: "maxCurrentItems", publicName: "maxCurrentItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange", itemsPerPage: "itemsPerPageChange", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "<div [class]=\"paginator() ? 'pajigator-outer-container' : 'pajigator-outer-container-single-result'\">\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", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: CantidadMonedaPipe, name: "cantidadMoneda" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2823
2823
|
}
|
|
2824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPajigatorComponent, decorators: [{
|
|
2825
2825
|
type: Component,
|
|
2826
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>" }]
|
|
2827
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"] }] } });
|
|
@@ -2829,26 +2829,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2829
2829
|
class BitHelpComponent {
|
|
2830
2830
|
constructor() {
|
|
2831
2831
|
this.ayudaService = inject(AyudaService);
|
|
2832
|
-
this.ayuda = linkedSignal(...(ngDevMode ?
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
computation: (newAyuda, _) => {
|
|
2839
|
-
console.log("newAyuda", newAyuda);
|
|
2840
|
-
return newAyuda;
|
|
2841
|
-
}
|
|
2842
|
-
}]));
|
|
2843
|
-
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : []));
|
|
2832
|
+
this.ayuda = linkedSignal({ ...(ngDevMode ? { debugName: "ayuda" } : /* istanbul ignore next */ {}), source: this.ayudaService.mostrar,
|
|
2833
|
+
computation: (newAyuda, _) => {
|
|
2834
|
+
console.log("newAyuda", newAyuda);
|
|
2835
|
+
return newAyuda;
|
|
2836
|
+
} });
|
|
2837
|
+
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : /* istanbul ignore next */ []));
|
|
2844
2838
|
}
|
|
2845
2839
|
/** Oculta el modal con los avisos */
|
|
2846
2840
|
hideAyuda() {
|
|
2847
2841
|
this.ayudaService.resetAyuda();
|
|
2848
2842
|
this.ayuda.set(null);
|
|
2849
2843
|
}
|
|
2850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2851
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2844
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHelpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2845
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitHelpComponent, isStandalone: false, selector: "bit-help", ngImport: i0, template: `
|
|
2852
2846
|
@if (mostrarAyuda()) {
|
|
2853
2847
|
<div class="ventana-ayuda">
|
|
2854
2848
|
<div class="ayuda-header">
|
|
@@ -2863,7 +2857,7 @@ class BitHelpComponent {
|
|
|
2863
2857
|
}
|
|
2864
2858
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2865
2859
|
}
|
|
2866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHelpComponent, decorators: [{
|
|
2867
2861
|
type: Component,
|
|
2868
2862
|
args: [{
|
|
2869
2863
|
selector: "bit-help",
|
|
@@ -2891,36 +2885,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2891
2885
|
class BitFooterMessagesComponent {
|
|
2892
2886
|
constructor() {
|
|
2893
2887
|
this.translateService = inject(TranslateService);
|
|
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 ?
|
|
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" }] : []));
|
|
2888
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2889
|
+
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] : /* istanbul ignore next */ []));
|
|
2890
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2891
|
+
this.typeFooter = input("list", { ...(ngDevMode ? { debugName: "typeFooter" } : /* istanbul ignore next */ {}), alias: "type" });
|
|
2892
|
+
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] : /* istanbul ignore next */ []));
|
|
2893
|
+
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] : /* istanbul ignore next */ []));
|
|
2894
|
+
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] : /* istanbul ignore next */ []));
|
|
2901
2895
|
/** Flag: la página está realizando la búsqueda. */
|
|
2902
|
-
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : []));
|
|
2896
|
+
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : /* istanbul ignore next */ []));
|
|
2903
2897
|
/** Flag: la página está realizando la búsqueda. */
|
|
2904
|
-
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : []));
|
|
2898
|
+
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : /* istanbul ignore next */ []));
|
|
2905
2899
|
/** Flag: la página ha finalizado la última búsqueda. */
|
|
2906
|
-
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : []));
|
|
2900
|
+
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : /* istanbul ignore next */ []));
|
|
2907
2901
|
/** Flag: la página está en modo solo lectura */
|
|
2908
|
-
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
2902
|
+
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
2909
2903
|
/** Flag: la página ha finalizado con error */
|
|
2910
|
-
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
2904
|
+
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2911
2905
|
/** Flag: encontrado resultado. */
|
|
2912
2906
|
this.foundResult = computed(() => {
|
|
2913
2907
|
return (this.searchFinished() &&
|
|
2914
2908
|
((this.isFooterList() && this.totalItems() > 0) ||
|
|
2915
2909
|
this.isFooterForm() ||
|
|
2916
2910
|
(this.isFooterScroll() && this.totalItems() <= this.maxCurrentItems())));
|
|
2917
|
-
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : []));
|
|
2911
|
+
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : /* istanbul ignore next */ []));
|
|
2918
2912
|
/** Flag: hay más resultados (scroll). */
|
|
2919
2913
|
this.moreResults = computed(() => {
|
|
2920
2914
|
return this.searchFinished() && this.isFooterScroll() && this.totalItems() > this.maxCurrentItems();
|
|
2921
|
-
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : []));
|
|
2915
|
+
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : /* istanbul ignore next */ []));
|
|
2922
2916
|
/** Flag: no hay resultados. */
|
|
2923
|
-
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : []));
|
|
2917
|
+
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : /* istanbul ignore next */ []));
|
|
2924
2918
|
this.messages = computed(() => {
|
|
2925
2919
|
let messagesMap = new Map();
|
|
2926
2920
|
if (this.isFooterList() || this.isFooterScroll()) {
|
|
@@ -2941,7 +2935,7 @@ class BitFooterMessagesComponent {
|
|
|
2941
2935
|
}
|
|
2942
2936
|
messagesMap.set(PageStatus.Error, "bitnglibrary.footer.error");
|
|
2943
2937
|
return messagesMap;
|
|
2944
|
-
}, ...(ngDevMode ? [{ debugName: "messages" }] : []));
|
|
2938
|
+
}, ...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
2945
2939
|
this.initMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Init)));
|
|
2946
2940
|
this.searchingMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Searching)));
|
|
2947
2941
|
this.finishMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.FinishSearch)));
|
|
@@ -2960,7 +2954,7 @@ class BitFooterMessagesComponent {
|
|
|
2960
2954
|
else if (this.isFooterForm()) {
|
|
2961
2955
|
return `mensaje-form mensaje-${type}`;
|
|
2962
2956
|
}
|
|
2963
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
2957
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : /* istanbul ignore next */ []));
|
|
2964
2958
|
this.message = computed(() => {
|
|
2965
2959
|
if (this.searchInitiated())
|
|
2966
2960
|
return this.initMessage();
|
|
@@ -2977,12 +2971,12 @@ class BitFooterMessagesComponent {
|
|
|
2977
2971
|
if (this.error())
|
|
2978
2972
|
return this.errorMessage();
|
|
2979
2973
|
return "";
|
|
2980
|
-
}, ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
2974
|
+
}, ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
2981
2975
|
}
|
|
2982
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2983
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
2976
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2977
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitFooterMessagesComponent, isStandalone: false, selector: "bit-footer-messages", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, maxCurrentItems: { classPropertyName: "maxCurrentItems", publicName: "maxCurrentItems", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, typeFooter: { classPropertyName: "typeFooter", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div>\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 }); }
|
|
2984
2978
|
}
|
|
2985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterMessagesComponent, decorators: [{
|
|
2986
2980
|
type: Component,
|
|
2987
2981
|
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>" }]
|
|
2988
2982
|
}], 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 }] }] } });
|
|
@@ -2992,28 +2986,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2992
2986
|
**/
|
|
2993
2987
|
class BitFooterComponent {
|
|
2994
2988
|
constructor() {
|
|
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 ?
|
|
3002
|
-
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
2989
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : /* istanbul ignore next */ [])); // Número total de elementos recuperados de la consulta
|
|
2990
|
+
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] : /* istanbul ignore next */ [])); // filtro de búsqieda
|
|
2991
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2992
|
+
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
2993
|
+
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] : /* istanbul ignore next */ []));
|
|
2994
|
+
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] : /* istanbul ignore next */ [])); // Indicará si lo queremos fijo abajo en la página. Por defecto sí.
|
|
2995
|
+
this.typeFooter = input("list", { ...(ngDevMode ? { debugName: "typeFooter" } : /* istanbul ignore next */ {}), alias: "type" });
|
|
2996
|
+
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
3003
2997
|
this.onPageChange = output(); //para notificar cambios en la página a mostrar
|
|
3004
2998
|
this.onNewPageSize = output(); //para notificar cambios en los elementos a mostrar por página
|
|
3005
2999
|
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
|
|
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" }] : []));
|
|
3000
|
+
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
3001
|
+
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
3008
3002
|
this.maxCurrentItems = computed(() => {
|
|
3009
3003
|
let maxCurrentItems = this.filter()?.pagina * this.filter()?.resultados;
|
|
3010
3004
|
if (maxCurrentItems > this.totalItems()) {
|
|
3011
3005
|
maxCurrentItems = this.totalItems();
|
|
3012
3006
|
}
|
|
3013
3007
|
return maxCurrentItems;
|
|
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" }] : []));
|
|
3008
|
+
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : /* istanbul ignore next */ [])); // número de elementos que mostramos en pantalla. Necesario para el modo scroll
|
|
3009
|
+
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] : /* istanbul ignore next */ []));
|
|
3010
|
+
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] : /* istanbul ignore next */ []));
|
|
3017
3011
|
this.getStyle = computed(() => {
|
|
3018
3012
|
if ((this.fixed() && this.typeFooter() === TYPE_LIST) || this.typeFooter() === TYPE_SCROLL) {
|
|
3019
3013
|
return "footer navbar-fixed-bottom";
|
|
@@ -3024,7 +3018,7 @@ class BitFooterComponent {
|
|
|
3024
3018
|
else {
|
|
3025
3019
|
return "footer";
|
|
3026
3020
|
}
|
|
3027
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
3021
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : /* istanbul ignore next */ []));
|
|
3028
3022
|
}
|
|
3029
3023
|
pageChange(page) {
|
|
3030
3024
|
this.onPageChange.emit(page);
|
|
@@ -3032,10 +3026,10 @@ class BitFooterComponent {
|
|
|
3032
3026
|
pageSizeChange(pageSize) {
|
|
3033
3027
|
this.onNewPageSize.emit(pageSize);
|
|
3034
3028
|
}
|
|
3035
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3036
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3029
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3030
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitFooterComponent, isStandalone: false, selector: "bit-footer", inputs: { totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, mostrarAvisos: { classPropertyName: "mostrarAvisos", publicName: "mostrarAvisos", isSignal: true, isRequired: false, transformFunction: null }, fixed: { classPropertyName: "fixed", publicName: "fixed", isSignal: true, isRequired: false, transformFunction: null }, typeFooter: { classPropertyName: "typeFooter", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", onNewPageSize: "onNewPageSize" }, ngImport: i0, template: "<footer [class]=\"getStyle()\">\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 }); }
|
|
3037
3031
|
}
|
|
3038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterComponent, decorators: [{
|
|
3039
3033
|
type: Component,
|
|
3040
3034
|
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" }]
|
|
3041
3035
|
}], 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"] }] } });
|
|
@@ -3043,16 +3037,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3043
3037
|
class BitBotonAyudaComponent {
|
|
3044
3038
|
constructor() {
|
|
3045
3039
|
this.ayudaService = inject(AyudaService);
|
|
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" }] : []));
|
|
3040
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : /* istanbul ignore next */ []));
|
|
3041
|
+
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] : /* istanbul ignore next */ [])); // show a little [?] or a full button
|
|
3042
|
+
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] : /* istanbul ignore next */ [])); // extra CSS classes for HTML component
|
|
3043
|
+
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
|
|
3050
3044
|
}
|
|
3051
3045
|
mostrarAyuda() {
|
|
3052
3046
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3053
3047
|
}
|
|
3054
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3055
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3048
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBotonAyudaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3049
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitBotonAyudaComponent, isStandalone: false, selector: "bit-boton-ayuda", inputs: { ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, boton: { classPropertyName: "boton", publicName: "boton", isSignal: true, isRequired: false, transformFunction: null }, extraClass: { classPropertyName: "extraClass", publicName: "extraClass", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3056
3050
|
@if (boton()) {
|
|
3057
3051
|
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3058
3052
|
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
@@ -3062,9 +3056,9 @@ class BitBotonAyudaComponent {
|
|
|
3062
3056
|
@if (!boton()) {
|
|
3063
3057
|
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3064
3058
|
}
|
|
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", "
|
|
3059
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3066
3060
|
}
|
|
3067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBotonAyudaComponent, decorators: [{
|
|
3068
3062
|
type: Component,
|
|
3069
3063
|
args: [{
|
|
3070
3064
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3093,11 +3087,11 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3093
3087
|
this.translateService = inject(TranslateService);
|
|
3094
3088
|
this.translations = toSignal(this.translateService.selectTranslate("toolbar", {}, "bitnglibrary", true), { initialValue: {} });
|
|
3095
3089
|
this.mostrar = false;
|
|
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
|
|
3090
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
3091
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual que mostrar para su botón
|
|
3092
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : /* istanbul ignore next */ [])); // género femenino (para los nombres de botones) o no
|
|
3093
|
+
this.buttonSize = input(...(ngDevMode ? [undefined, { debugName: "buttonSize" }] : /* istanbul ignore next */ [])); // tamaño de los botones, por defecto normal
|
|
3094
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : /* istanbul ignore next */ [])); // determina si todas las "other actions" se muestran en un desplegable o depende del atributo displayAsButton de cada una
|
|
3101
3095
|
this.onToolbarButtonPressed = output();
|
|
3102
3096
|
/** Devuelve si hay other actions que deben mostrarse en desplegable (solo cuando hay más de una). */
|
|
3103
3097
|
this.itemsOtherActionsEnDesplegable = computed(() => {
|
|
@@ -3107,12 +3101,12 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3107
3101
|
return actions;
|
|
3108
3102
|
else
|
|
3109
3103
|
return [];
|
|
3110
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : []));
|
|
3104
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : /* istanbul ignore next */ []));
|
|
3111
3105
|
/** Devuelve la clave de traducción del label del botón de "other actions" */
|
|
3112
3106
|
this.otherActionsLabel = computed(() => {
|
|
3113
3107
|
const toolbar = this.toolbar() || {};
|
|
3114
3108
|
return toolbar['_otherActionsLabel'] || 'other-actions';
|
|
3115
|
-
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : []));
|
|
3109
|
+
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : /* istanbul ignore next */ []));
|
|
3116
3110
|
/** Devuelve si hay other actions que deben mostrarse como botón (incluye la de desplegable si hay solo una). */
|
|
3117
3111
|
this.itemsOtherActionsEnBoton = computed(() => {
|
|
3118
3112
|
const toolbar = this.toolbar() || {};
|
|
@@ -3122,7 +3116,7 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3122
3116
|
if (actionsEnDesplegable?.length === 1)
|
|
3123
3117
|
actions.push(actionsEnDesplegable[0]);
|
|
3124
3118
|
return actions;
|
|
3125
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : []));
|
|
3119
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : /* istanbul ignore next */ []));
|
|
3126
3120
|
}
|
|
3127
3121
|
static { this.FILTER_BUTTON = "filter"; }
|
|
3128
3122
|
static { this.PRINT_BUTTON = "print"; }
|
|
@@ -3214,10 +3208,10 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3214
3208
|
incluirOtherActionComoBoton(toolbarItem) {
|
|
3215
3209
|
return toolbarItem.otherAction && toolbarItem.visible && (!this.otherActionsDropdown() || toolbarItem.displayAsButton === true);
|
|
3216
3210
|
}
|
|
3217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitToolbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3212
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitToolbarComponent, isStandalone: false, selector: "bit-toolbar", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, femenino: { classPropertyName: "femenino", publicName: "femenino", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null }, otherActionsDropdown: { classPropertyName: "otherActionsDropdown", publicName: "otherActionsDropdown", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onToolbarButtonPressed: "onToolbarButtonPressed" }, usesInheritance: true, ngImport: i0, template: "<div class=\"contenedor-toolbar\">\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: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i2$2.SplitButton, selector: "p-splitbutton, p-splitButton, p-split-button", inputs: ["model", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "icon", "iconPos", "label", "tooltip", "tooltipOptions", "styleClass", "menuStyle", "menuStyleClass", "dropdownIcon", "appendTo", "dir", "expandAriaLabel", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "buttonProps", "menuButtonProps", "autofocus", "disabled", "tabindex", "menuButtonDisabled", "buttonDisabled"], outputs: ["onClick", "onMenuHide", "onMenuShow", "onDropdownClick"] }, { kind: "component", type: BitBotonAyudaComponent, selector: "bit-boton-ayuda", inputs: ["ayuda", "boton", "extraClass", "buttonSize"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3219
3213
|
}
|
|
3220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitToolbarComponent, decorators: [{
|
|
3221
3215
|
type: Component,
|
|
3222
3216
|
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" }]
|
|
3223
3217
|
}], 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"] }] } });
|
|
@@ -3227,14 +3221,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3227
3221
|
*/
|
|
3228
3222
|
class BitHeaderComponent {
|
|
3229
3223
|
constructor() {
|
|
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
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
3225
|
+
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] : /* istanbul ignore next */ []));
|
|
3226
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : /* istanbul ignore next */ [])); // determina si las "other actions" deben mostrarse en línea o como un desplegable
|
|
3227
|
+
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] : /* istanbul ignore next */ []));
|
|
3228
|
+
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] : /* istanbul ignore next */ []));
|
|
3229
|
+
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] : /* istanbul ignore next */ []));
|
|
3230
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : /* istanbul ignore next */ [])); // género femenino (para los nombres de botones) o no
|
|
3231
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual para la botonera
|
|
3238
3232
|
this.onToolbarButtonPressed = output();
|
|
3239
3233
|
}
|
|
3240
3234
|
/** 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
|
|
@@ -3243,10 +3237,10 @@ class BitHeaderComponent {
|
|
|
3243
3237
|
onTBPressed(button) {
|
|
3244
3238
|
this.onToolbarButtonPressed.emit(button);
|
|
3245
3239
|
}
|
|
3246
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3247
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3240
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3241
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitHeaderComponent, isStandalone: false, selector: "bit-header", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, noToolbar: { classPropertyName: "noToolbar", publicName: "noToolbar", isSignal: true, isRequired: false, transformFunction: null }, otherActionsDropdown: { classPropertyName: "otherActionsDropdown", publicName: "otherActionsDropdown", isSignal: true, isRequired: false, transformFunction: null }, breadcrumb: { classPropertyName: "breadcrumb", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null }, masacciones: { classPropertyName: "masacciones", publicName: "masacciones", isSignal: true, isRequired: false, transformFunction: null }, colsBreadcrumb: { classPropertyName: "colsBreadcrumb", publicName: "colsBreadcrumb", isSignal: true, isRequired: false, transformFunction: null }, femenino: { classPropertyName: "femenino", publicName: "femenino", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onToolbarButtonPressed: "onToolbarButtonPressed" }, ngImport: i0, template: "<!-- <div class=\"grid mt-3 mb-3\">\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 }); }
|
|
3248
3242
|
}
|
|
3249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHeaderComponent, decorators: [{
|
|
3250
3244
|
type: Component,
|
|
3251
3245
|
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>" }]
|
|
3252
3246
|
}], 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"] }] } });
|
|
@@ -3254,15 +3248,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3254
3248
|
class BitLoadingComponent {
|
|
3255
3249
|
constructor() {
|
|
3256
3250
|
this.generalUtils = inject(GeneralUtils);
|
|
3257
|
-
this.imageSource = input(undefined, ...(ngDevMode ?
|
|
3258
|
-
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3251
|
+
this.imageSource = input(undefined, { ...(ngDevMode ? { debugName: "imageSource" } : /* istanbul ignore next */ {}), alias: "source" });
|
|
3252
|
+
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
3259
3253
|
console.log("Constructor bitloading");
|
|
3260
3254
|
}
|
|
3261
3255
|
ngOnDestroy() {
|
|
3262
3256
|
this.generalUtils.loading.set(0);
|
|
3263
3257
|
}
|
|
3264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3265
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3259
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitLoadingComponent, isStandalone: false, selector: "bit-loading", inputs: { imageSource: { classPropertyName: "imageSource", publicName: "source", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3266
3260
|
@if (loading()) {
|
|
3267
3261
|
<div class="modal">
|
|
3268
3262
|
<div class="grid">
|
|
@@ -3274,7 +3268,7 @@ class BitLoadingComponent {
|
|
|
3274
3268
|
}
|
|
3275
3269
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3276
3270
|
}
|
|
3277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLoadingComponent, decorators: [{
|
|
3278
3272
|
type: Component,
|
|
3279
3273
|
args: [{
|
|
3280
3274
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3333,10 +3327,10 @@ class BitNotificationToastComponent extends BaseComponent {
|
|
|
3333
3327
|
getLife(life) {
|
|
3334
3328
|
return life ? life : DEFAULT_LIFE; // Si no se especifica el tiempo, usamos el valor por defecto
|
|
3335
3329
|
}
|
|
3336
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3337
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationToastComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3331
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitNotificationToastComponent, isStandalone: false, selector: "bit-notification-toast", usesInheritance: true, ngImport: i0, template: ` <p-toast key="notification" position="top-right" /> `, isInline: true, dependencies: [{ kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3338
3332
|
}
|
|
3339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationToastComponent, decorators: [{
|
|
3340
3334
|
type: Component,
|
|
3341
3335
|
args: [{
|
|
3342
3336
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3353,8 +3347,8 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3353
3347
|
this.bitMessageService = inject(BitMessageService);
|
|
3354
3348
|
this.primeMessageService = inject(MessageService);
|
|
3355
3349
|
this.translateService = inject(TranslateService);
|
|
3356
|
-
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : []));
|
|
3357
|
-
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : []));
|
|
3350
|
+
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : /* istanbul ignore next */ []));
|
|
3351
|
+
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : /* istanbul ignore next */ []));
|
|
3358
3352
|
this.messages = [];
|
|
3359
3353
|
}
|
|
3360
3354
|
ngOnInit() {
|
|
@@ -3471,10 +3465,10 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3471
3465
|
return of([]);
|
|
3472
3466
|
}
|
|
3473
3467
|
}
|
|
3474
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3475
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3468
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3469
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitNotificationErrorComponent, isStandalone: false, selector: "bit-notification-error", inputs: { escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: ` <p-toast /> `, isInline: true, dependencies: [{ kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3476
3470
|
}
|
|
3477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationErrorComponent, decorators: [{
|
|
3478
3472
|
type: Component,
|
|
3479
3473
|
args: [{
|
|
3480
3474
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3496,10 +3490,10 @@ class FocusRegisterDirective {
|
|
|
3496
3490
|
onBlur() {
|
|
3497
3491
|
this.focusService.clear();
|
|
3498
3492
|
}
|
|
3499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3500
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3493
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusRegisterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3494
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: FocusRegisterDirective, isStandalone: false, selector: "input,select,textarea,bit-input,bit-select", host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" } }, ngImport: i0 }); }
|
|
3501
3495
|
}
|
|
3502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusRegisterDirective, decorators: [{
|
|
3503
3497
|
type: Directive,
|
|
3504
3498
|
args: [{
|
|
3505
3499
|
selector: "input,select,textarea,bit-input,bit-select" //TODO: no funciona bien con autoComplete. No se registra el focus
|
|
@@ -3517,21 +3511,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3517
3511
|
class BitNGUploadComponent {
|
|
3518
3512
|
constructor() {
|
|
3519
3513
|
this.generalUtils = inject(GeneralUtils);
|
|
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" }] : []));
|
|
3514
|
+
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] : /* istanbul ignore next */ []));
|
|
3515
|
+
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] : /* istanbul ignore next */ []));
|
|
3516
|
+
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] : /* istanbul ignore next */ []));
|
|
3517
|
+
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] : /* istanbul ignore next */ []));
|
|
3518
|
+
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] : /* istanbul ignore next */ []));
|
|
3519
|
+
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] : /* istanbul ignore next */ []));
|
|
3520
|
+
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] : /* istanbul ignore next */ []));
|
|
3521
|
+
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] : /* istanbul ignore next */ []));
|
|
3522
|
+
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] : /* istanbul ignore next */ []));
|
|
3523
|
+
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] : /* istanbul ignore next */ []));
|
|
3524
|
+
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] : /* istanbul ignore next */ []));
|
|
3531
3525
|
this.onSuccess = output();
|
|
3532
3526
|
this.onError = output();
|
|
3533
|
-
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : []));
|
|
3534
|
-
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : []));
|
|
3527
|
+
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []));
|
|
3528
|
+
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : /* istanbul ignore next */ []));
|
|
3535
3529
|
}
|
|
3536
3530
|
ngOnInit() {
|
|
3537
3531
|
this.uploader().onSuccessItem = (item, response, status, headers) => {
|
|
@@ -3611,10 +3605,10 @@ class BitNGUploadComponent {
|
|
|
3611
3605
|
fileOverBase(e) {
|
|
3612
3606
|
this.hasBaseDropZoneOver.set(e);
|
|
3613
3607
|
}
|
|
3614
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
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 }); }
|
|
3608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNGUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3609
|
+
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 }); }
|
|
3616
3610
|
}
|
|
3617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNGUploadComponent, decorators: [{
|
|
3618
3612
|
type: Component,
|
|
3619
3613
|
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" }]
|
|
3620
3614
|
}], 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 }] }] } });
|
|
@@ -3626,13 +3620,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3626
3620
|
*/
|
|
3627
3621
|
class BitUserControlsComponent {
|
|
3628
3622
|
constructor() {
|
|
3629
|
-
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : []));
|
|
3630
|
-
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : []));
|
|
3623
|
+
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : /* istanbul ignore next */ []));
|
|
3624
|
+
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : /* istanbul ignore next */ []));
|
|
3631
3625
|
}
|
|
3632
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3633
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitUserControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3627
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitUserControlsComponent, isStandalone: false, selector: "bit-user-controls", inputs: { usuario: { classPropertyName: "usuario", publicName: "usuario", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (usuario()) {\r\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\r\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3634
3628
|
}
|
|
3635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitUserControlsComponent, decorators: [{
|
|
3636
3630
|
type: Component,
|
|
3637
3631
|
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}" }]
|
|
3638
3632
|
}], propDecorators: { usuario: [{ type: i0.Input, args: [{ isSignal: true, alias: "usuario", required: true }] }] } });
|
|
@@ -3642,13 +3636,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3642
3636
|
**/
|
|
3643
3637
|
class BitColumnBooleanComponent {
|
|
3644
3638
|
constructor() {
|
|
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" }] : []));
|
|
3639
|
+
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ [])); // objeto del que extraer la propiedad
|
|
3640
|
+
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ [])); // propiedad booleana que procesar
|
|
3641
|
+
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] : /* istanbul ignore next */ []));
|
|
3642
|
+
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] : /* istanbul ignore next */ []));
|
|
3649
3643
|
}
|
|
3650
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3651
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3644
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitColumnBooleanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3645
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitColumnBooleanComponent, isStandalone: false, selector: "bit-column-boolean", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, textTrue: { classPropertyName: "textTrue", publicName: "textTrue", isSignal: true, isRequired: false, transformFunction: null }, textFalse: { classPropertyName: "textFalse", publicName: "textFalse", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3652
3646
|
@if (data()) {
|
|
3653
3647
|
<span class="ui-cell-data">
|
|
3654
3648
|
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
@@ -3656,7 +3650,7 @@ class BitColumnBooleanComponent {
|
|
|
3656
3650
|
}
|
|
3657
3651
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3658
3652
|
}
|
|
3659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitColumnBooleanComponent, decorators: [{
|
|
3660
3654
|
type: Component,
|
|
3661
3655
|
args: [{
|
|
3662
3656
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3674,9 +3668,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3674
3668
|
|
|
3675
3669
|
class BitDomainValueComponent {
|
|
3676
3670
|
constructor() {
|
|
3677
|
-
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
3678
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : []));
|
|
3679
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
3671
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3672
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
3673
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
3680
3674
|
this.translatedValue = computed(() => {
|
|
3681
3675
|
// buscar traducción para el valor en el dominio
|
|
3682
3676
|
const data = this.data();
|
|
@@ -3691,14 +3685,14 @@ class BitDomainValueComponent {
|
|
|
3691
3685
|
else {
|
|
3692
3686
|
return this.emptyText() ?? "Carregant...";
|
|
3693
3687
|
}
|
|
3694
|
-
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : []));
|
|
3688
|
+
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : /* istanbul ignore next */ []));
|
|
3695
3689
|
}
|
|
3696
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3697
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3690
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDomainValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3691
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitDomainValueComponent, isStandalone: false, selector: "bit-domain-value", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3698
3692
|
<span>{{ translatedValue() }}</span>
|
|
3699
3693
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3700
3694
|
}
|
|
3701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDomainValueComponent, decorators: [{
|
|
3702
3696
|
type: Component,
|
|
3703
3697
|
args: [{
|
|
3704
3698
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -3717,20 +3711,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3717
3711
|
class BitGeneralComponent extends BaseComponent {
|
|
3718
3712
|
constructor() {
|
|
3719
3713
|
super(...arguments);
|
|
3720
|
-
this.control = input(undefined, ...(ngDevMode ?
|
|
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" }] : []));
|
|
3714
|
+
this.control = input(undefined, { ...(ngDevMode ? { debugName: "control" } : /* istanbul ignore next */ {}), alias: "formControl" });
|
|
3715
|
+
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] : /* istanbul ignore next */ []));
|
|
3716
|
+
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] : /* istanbul ignore next */ []));
|
|
3717
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3718
|
+
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] : /* istanbul ignore next */ []));
|
|
3719
|
+
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] : /* istanbul ignore next */ []));
|
|
3720
|
+
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] : /* istanbul ignore next */ []));
|
|
3721
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual
|
|
3722
|
+
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3723
|
+
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
3724
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ [])); // forzar que no se reserve espacio para el nombre del campo
|
|
3725
|
+
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] : /* istanbul ignore next */ []));
|
|
3726
|
+
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] : /* istanbul ignore next */ []));
|
|
3727
|
+
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] : /* istanbul ignore next */ []));
|
|
3734
3728
|
this.onChange = output();
|
|
3735
3729
|
this.onTouch = output();
|
|
3736
3730
|
this.onBlur = output();
|
|
@@ -3739,7 +3733,7 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3739
3733
|
this.dataTestId = computed(() => {
|
|
3740
3734
|
const testid = this.testid();
|
|
3741
3735
|
return testid ? testid : this.nombre();
|
|
3742
|
-
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : []));
|
|
3736
|
+
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : /* istanbul ignore next */ []));
|
|
3743
3737
|
/**
|
|
3744
3738
|
* Contador que se incrementa cada vez que el FormControl asociado cambia su valor, validadores o validez.
|
|
3745
3739
|
* Se usa como dependencia reactiva de la señal `obligatorio` para que ésta se recalcule bajo OnPush / zoneless,
|
|
@@ -3767,15 +3761,15 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3767
3761
|
this.controlEvents(); // dependencia reactiva
|
|
3768
3762
|
const c = this.control();
|
|
3769
3763
|
return this.forceObligatorio() || !!c?.errors?.["required"];
|
|
3770
|
-
}, ...(ngDevMode ? [{ debugName: "obligatorio" }] : []));
|
|
3764
|
+
}, ...(ngDevMode ? [{ debugName: "obligatorio" }] : /* istanbul ignore next */ []));
|
|
3771
3765
|
}
|
|
3772
3766
|
showAyuda() {
|
|
3773
3767
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3774
3768
|
}
|
|
3775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3776
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitGeneralComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3770
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitGeneralComponent, isStandalone: true, inputs: { control: { classPropertyName: "control", publicName: "formControl", isSignal: true, isRequired: false, transformFunction: null }, nombre: { classPropertyName: "nombre", publicName: "nombre", isSignal: true, isRequired: false, transformFunction: null }, nombreDirectiva: { classPropertyName: "nombreDirectiva", publicName: "nombreDirectiva", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, estilo: { classPropertyName: "estilo", publicName: "estilo", isSignal: true, isRequired: false, transformFunction: null }, tooltipTexto: { classPropertyName: "tooltipTexto", publicName: "tooltipTexto", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosicion: { classPropertyName: "tooltipPosicion", publicName: "tooltipPosicion", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, forceObligatorio: { classPropertyName: "forceObligatorio", publicName: "forceObligatorio", isSignal: true, isRequired: false, transformFunction: null }, testid: { classPropertyName: "testid", publicName: "testid", isSignal: true, isRequired: false, transformFunction: null }, log: { classPropertyName: "log", publicName: "log", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onTouch: "onTouch", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0 }); }
|
|
3777
3771
|
}
|
|
3778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitGeneralComponent, decorators: [{
|
|
3779
3773
|
type: Directive
|
|
3780
3774
|
}], 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"] }] } });
|
|
3781
3775
|
|
|
@@ -3787,7 +3781,7 @@ class BitCustomComponent extends BitGeneralComponent {
|
|
|
3787
3781
|
constructor() {
|
|
3788
3782
|
super(...arguments);
|
|
3789
3783
|
this.cdr = inject(ChangeDetectorRef);
|
|
3790
|
-
this.isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
|
|
3784
|
+
this.isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3791
3785
|
// nos permite decirle a Angular que nuestro componente ha modificado su valor
|
|
3792
3786
|
this._onChange = (_) => { };
|
|
3793
3787
|
// nos permite decirle a Angular que nuestro componente ha sido tacado
|
|
@@ -3821,10 +3815,10 @@ class BitCustomComponent extends BitGeneralComponent {
|
|
|
3821
3815
|
registerOnTouched(fn) {
|
|
3822
3816
|
this._onTouch = fn;
|
|
3823
3817
|
}
|
|
3824
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3825
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCustomComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3819
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BitCustomComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
3826
3820
|
}
|
|
3827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCustomComponent, decorators: [{
|
|
3828
3822
|
type: Directive
|
|
3829
3823
|
}] });
|
|
3830
3824
|
|
|
@@ -3854,16 +3848,16 @@ class BitTextComponent extends BitCustomComponent {
|
|
|
3854
3848
|
this.value = text;
|
|
3855
3849
|
this.changeComponentValue(this.value);
|
|
3856
3850
|
}
|
|
3857
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3858
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3851
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3852
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTextComponent, isStandalone: false, selector: "bit-text", providers: [
|
|
3859
3853
|
{
|
|
3860
3854
|
provide: NG_VALUE_ACCESSOR,
|
|
3861
3855
|
useExisting: forwardRef(() => BitTextComponent),
|
|
3862
3856
|
multi: true
|
|
3863
3857
|
}
|
|
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 }); }
|
|
3858
|
+
], 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: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3865
3859
|
}
|
|
3866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextComponent, decorators: [{
|
|
3867
3861
|
type: Component,
|
|
3868
3862
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-text", providers: [
|
|
3869
3863
|
{
|
|
@@ -3877,7 +3871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3877
3871
|
class BitTextAreaComponent extends BitCustomComponent {
|
|
3878
3872
|
constructor() {
|
|
3879
3873
|
super(...arguments);
|
|
3880
|
-
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : []));
|
|
3874
|
+
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : /* istanbul ignore next */ []));
|
|
3881
3875
|
}
|
|
3882
3876
|
get value_lectura() {
|
|
3883
3877
|
if (this.value == null) {
|
|
@@ -3904,14 +3898,14 @@ class BitTextAreaComponent extends BitCustomComponent {
|
|
|
3904
3898
|
this.value = text;
|
|
3905
3899
|
this.changeComponentValue(this.value);
|
|
3906
3900
|
}
|
|
3907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3908
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3901
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3902
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTextAreaComponent, isStandalone: false, selector: "bit-textarea", inputs: { filas: { classPropertyName: "filas", publicName: "filas", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
3909
3903
|
provide: NG_VALUE_ACCESSOR,
|
|
3910
3904
|
useExisting: forwardRef(() => BitTextAreaComponent),
|
|
3911
3905
|
multi: true
|
|
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 }); }
|
|
3906
|
+
}], 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: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3913
3907
|
}
|
|
3914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextAreaComponent, decorators: [{
|
|
3915
3909
|
type: Component,
|
|
3916
3910
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-textarea", providers: [{
|
|
3917
3911
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3925,12 +3919,12 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3925
3919
|
constructor() {
|
|
3926
3920
|
super(...arguments);
|
|
3927
3921
|
// calendarios
|
|
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" }] : []));
|
|
3922
|
+
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] : /* istanbul ignore next */ [])); // fecha mínima seleccionable
|
|
3923
|
+
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] : /* istanbul ignore next */ [])); // fecha máxima seleccionable
|
|
3924
|
+
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] : /* istanbul ignore next */ [])); // desabilitar edicion por teclado
|
|
3925
|
+
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] : /* istanbul ignore next */ []));
|
|
3926
|
+
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] : /* istanbul ignore next */ []));
|
|
3927
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
3934
3928
|
this.onSelect = output();
|
|
3935
3929
|
this.dateUtils = inject(DateUtils);
|
|
3936
3930
|
this.translateService = inject(TranslateService);
|
|
@@ -4005,10 +3999,10 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
4005
3999
|
isValueCorrect(value) {
|
|
4006
4000
|
return moment(value, this.visual_format, true).isValid();
|
|
4007
4001
|
}
|
|
4008
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4009
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4002
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4003
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitCalendarComponent, isStandalone: true, inputs: { fechaMinima: { classPropertyName: "fechaMinima", publicName: "fechaMinima", isSignal: true, isRequired: false, transformFunction: null }, fechaMaxima: { classPropertyName: "fechaMaxima", publicName: "fechaMaxima", isSignal: true, isRequired: false, transformFunction: null }, calendarReadOnlyInput: { classPropertyName: "calendarReadOnlyInput", publicName: "calendarReadOnlyInput", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelect: "onSelect" }, usesInheritance: true, ngImport: i0 }); }
|
|
4010
4004
|
}
|
|
4011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCalendarComponent, decorators: [{
|
|
4012
4006
|
type: Directive
|
|
4013
4007
|
}], 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"] }] } });
|
|
4014
4008
|
|
|
@@ -4016,7 +4010,7 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4016
4010
|
constructor() {
|
|
4017
4011
|
super();
|
|
4018
4012
|
this.dateUtils = inject(DateUtils);
|
|
4019
|
-
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4013
|
+
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4020
4014
|
this.visual_format = DateUtils.FORMAT_SHORT_DATE;
|
|
4021
4015
|
}
|
|
4022
4016
|
get value_lectura() {
|
|
@@ -4048,14 +4042,14 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4048
4042
|
getDateFormat() {
|
|
4049
4043
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_DATE;
|
|
4050
4044
|
}
|
|
4051
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4052
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4046
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDateComponent, isStandalone: false, selector: "bit-date", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4053
4047
|
provide: NG_VALUE_ACCESSOR,
|
|
4054
4048
|
useExisting: forwardRef(() => BitDateComponent),
|
|
4055
4049
|
multi: true
|
|
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 }); }
|
|
4050
|
+
}], 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", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4057
4051
|
}
|
|
4058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateComponent, decorators: [{
|
|
4059
4053
|
type: Component,
|
|
4060
4054
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-date", providers: [{
|
|
4061
4055
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4068,7 +4062,7 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4068
4062
|
constructor() {
|
|
4069
4063
|
super();
|
|
4070
4064
|
this.dateUtils = inject(DateUtils);
|
|
4071
|
-
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4065
|
+
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4072
4066
|
this.visual_format = DateUtils.FORMAT_SHORT_TIME;
|
|
4073
4067
|
}
|
|
4074
4068
|
get value_lectura() {
|
|
@@ -4100,14 +4094,14 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4100
4094
|
getDateFormat() {
|
|
4101
4095
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_TIME;
|
|
4102
4096
|
}
|
|
4103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4104
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4097
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4098
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTimeComponent, isStandalone: false, selector: "bit-time", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4105
4099
|
provide: NG_VALUE_ACCESSOR,
|
|
4106
4100
|
useExisting: forwardRef(() => BitTimeComponent),
|
|
4107
4101
|
multi: true
|
|
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 }); }
|
|
4102
|
+
}], 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", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4109
4103
|
}
|
|
4110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTimeComponent, decorators: [{
|
|
4111
4105
|
type: Component,
|
|
4112
4106
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-time", providers: [{
|
|
4113
4107
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4120,7 +4114,7 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4120
4114
|
constructor() {
|
|
4121
4115
|
super();
|
|
4122
4116
|
this.dateUtils = inject(DateUtils);
|
|
4123
|
-
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4117
|
+
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4124
4118
|
this.visual_format = DateUtils.FORMAT_LONG_DATE;
|
|
4125
4119
|
}
|
|
4126
4120
|
get value_lectura() {
|
|
@@ -4152,14 +4146,14 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4152
4146
|
getDateFormat() {
|
|
4153
4147
|
return this.format() ? this.format() : DateUtils.FORMAT_LONG_DATE;
|
|
4154
4148
|
}
|
|
4155
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4156
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4150
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDateTimeComponent, isStandalone: false, selector: "bit-datetime", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4157
4151
|
provide: NG_VALUE_ACCESSOR,
|
|
4158
4152
|
useExisting: forwardRef(() => BitDateTimeComponent),
|
|
4159
4153
|
multi: true
|
|
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 }); }
|
|
4154
|
+
}], 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", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4161
4155
|
}
|
|
4162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateTimeComponent, decorators: [{
|
|
4163
4157
|
type: Component,
|
|
4164
4158
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-datetime", providers: [{
|
|
4165
4159
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4183,14 +4177,14 @@ class BitCheckBoxComponent extends BitCustomComponent {
|
|
|
4183
4177
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4184
4178
|
this.changeComponentValue(this.value);
|
|
4185
4179
|
}
|
|
4186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCheckBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitCheckBoxComponent, isStandalone: false, selector: "bit-checkbox", providers: [{
|
|
4188
4182
|
provide: NG_VALUE_ACCESSOR,
|
|
4189
4183
|
useExisting: forwardRef(() => BitCheckBoxComponent),
|
|
4190
4184
|
multi: true
|
|
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 }); }
|
|
4185
|
+
}], 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: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4192
4186
|
}
|
|
4193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCheckBoxComponent, decorators: [{
|
|
4194
4188
|
type: Component,
|
|
4195
4189
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox", providers: [{
|
|
4196
4190
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4214,14 +4208,14 @@ class BitSwitchComponent extends BitCustomComponent {
|
|
|
4214
4208
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4215
4209
|
this.changeComponentValue(this.value);
|
|
4216
4210
|
}
|
|
4217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4212
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSwitchComponent, isStandalone: false, selector: "bit-switch", providers: [{
|
|
4219
4213
|
provide: NG_VALUE_ACCESSOR,
|
|
4220
4214
|
useExisting: forwardRef(() => BitSwitchComponent),
|
|
4221
4215
|
multi: true
|
|
4222
4216
|
}], 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 }); }
|
|
4223
4217
|
}
|
|
4224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchComponent, decorators: [{
|
|
4225
4219
|
type: Component,
|
|
4226
4220
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch", providers: [{
|
|
4227
4221
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4233,17 +4227,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4233
4227
|
class BitAutoCompleteComponent extends BitCustomComponent {
|
|
4234
4228
|
constructor() {
|
|
4235
4229
|
super(...arguments);
|
|
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
|
|
4230
|
+
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []));
|
|
4231
|
+
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] : /* istanbul ignore next */ []));
|
|
4232
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
4233
|
+
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
|
|
4234
|
+
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
4235
|
+
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
4236
|
+
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] : /* istanbul ignore next */ [])); // si se usa un template personalizado para mostrar los items
|
|
4243
4237
|
this.completeMethod = output();
|
|
4244
4238
|
this.onSelect = output();
|
|
4245
4239
|
this.onClear = output();
|
|
4246
|
-
this.itemTemplate = contentChild("itemTemplate", ...(ngDevMode ?
|
|
4240
|
+
this.itemTemplate = contentChild("itemTemplate", { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
4247
4241
|
this.suggestions_mapped = computed(() => {
|
|
4248
4242
|
let suggestions = this.suggestions();
|
|
4249
4243
|
if (suggestions) {
|
|
@@ -4251,7 +4245,7 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4251
4245
|
this.log() && console.log("suggestions mapped for component: " + this.nombre(), newList);
|
|
4252
4246
|
return newList;
|
|
4253
4247
|
}
|
|
4254
|
-
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : []));
|
|
4248
|
+
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : /* istanbul ignore next */ []));
|
|
4255
4249
|
}
|
|
4256
4250
|
ngAfterViewInit() {
|
|
4257
4251
|
// Control de errores:
|
|
@@ -4368,16 +4362,16 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4368
4362
|
}
|
|
4369
4363
|
}
|
|
4370
4364
|
}
|
|
4371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4365
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAutoCompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4366
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitAutoCompleteComponent, isStandalone: false, selector: "bit-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, suggestionField: { classPropertyName: "suggestionField", publicName: "suggestionField", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, displayValue: { classPropertyName: "displayValue", publicName: "displayValue", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: "customTemplate", publicName: "customTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onClear: "onClear" }, providers: [
|
|
4373
4367
|
{
|
|
4374
4368
|
provide: NG_VALUE_ACCESSOR,
|
|
4375
4369
|
useExisting: forwardRef(() => BitAutoCompleteComponent),
|
|
4376
4370
|
multi: true
|
|
4377
4371
|
}
|
|
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 }); }
|
|
4372
|
+
], 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", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4379
4373
|
}
|
|
4380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAutoCompleteComponent, decorators: [{
|
|
4381
4375
|
type: Component,
|
|
4382
4376
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-autocomplete", providers: [
|
|
4383
4377
|
{
|
|
@@ -4402,23 +4396,23 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4402
4396
|
super();
|
|
4403
4397
|
this.router = router;
|
|
4404
4398
|
this.translateService = translateService;
|
|
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
|
|
4399
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ [])); // forzar no reservar espacio para el nombre del campo
|
|
4400
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ [])); // lista de valores estáticos con lo que inicializamos el select
|
|
4401
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
4402
|
+
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] : /* istanbul ignore next */ []));
|
|
4403
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ [])); //valor por defecto seleccionable como primer elemento
|
|
4404
|
+
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] : /* istanbul ignore next */ []));
|
|
4405
|
+
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] : /* istanbul ignore next */ []));
|
|
4406
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
4407
|
+
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
4408
|
+
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que corresponde al label
|
|
4409
|
+
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que corresponde al valor
|
|
4410
|
+
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que indica si un valor está deshabilitado
|
|
4417
4411
|
this.listaOpciones = computed(() => {
|
|
4418
4412
|
let list = this.data() ? this.data().slice() : [];
|
|
4419
4413
|
this.log() && console.log("Lista de opciones forComponent:" + this.nombre(), list);
|
|
4420
4414
|
return list;
|
|
4421
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : []));
|
|
4415
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : /* istanbul ignore next */ []));
|
|
4422
4416
|
this.listaOpcionesVisible = computed(() => {
|
|
4423
4417
|
let opciones = [];
|
|
4424
4418
|
if (this.listaOpciones()) {
|
|
@@ -4438,12 +4432,12 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4438
4432
|
}
|
|
4439
4433
|
this.log() && console.log("Lista de opciones visibles forComponent:" + this.nombre() + " después de excludeValues", opciones);
|
|
4440
4434
|
return opciones;
|
|
4441
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : []));
|
|
4435
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : /* istanbul ignore next */ []));
|
|
4442
4436
|
}
|
|
4443
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4444
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownGeneralComponent, deps: [{ token: i1$6.ActivatedRoute }, { token: TranslateService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4438
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitDropDownGeneralComponent, isStandalone: true, inputs: { hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, excludedValues: { classPropertyName: "excludedValues", publicName: "excludedValues", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, includeEmpty: { classPropertyName: "includeEmpty", publicName: "includeEmpty", isSignal: true, isRequired: false, transformFunction: null }, valueAs: { classPropertyName: "valueAs", publicName: "valueAs", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, atributoLabel: { classPropertyName: "atributoLabel", publicName: "atributoLabel", isSignal: true, isRequired: false, transformFunction: null }, atributoValue: { classPropertyName: "atributoValue", publicName: "atributoValue", isSignal: true, isRequired: false, transformFunction: null }, atributoDisabled: { classPropertyName: "atributoDisabled", publicName: "atributoDisabled", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
4445
4439
|
}
|
|
4446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownGeneralComponent, decorators: [{
|
|
4447
4441
|
type: Directive
|
|
4448
4442
|
}], 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 }] }] } });
|
|
4449
4443
|
|
|
@@ -4461,7 +4455,7 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4461
4455
|
const router = inject(ActivatedRoute);
|
|
4462
4456
|
const translateService = inject(TranslateService);
|
|
4463
4457
|
super(router, translateService);
|
|
4464
|
-
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4458
|
+
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
4465
4459
|
this.router = router;
|
|
4466
4460
|
this.translateService = translateService;
|
|
4467
4461
|
}
|
|
@@ -4497,16 +4491,16 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4497
4491
|
this.value = null;
|
|
4498
4492
|
this.changeComponentValue(this.value);
|
|
4499
4493
|
}
|
|
4500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4501
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4494
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4495
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDropDownComponent, isStandalone: false, selector: "bit-dropdown", inputs: { filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4502
4496
|
{
|
|
4503
4497
|
provide: NG_VALUE_ACCESSOR,
|
|
4504
4498
|
useExisting: forwardRef(() => BitDropDownComponent),
|
|
4505
4499
|
multi: true
|
|
4506
4500
|
}
|
|
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 }); }
|
|
4501
|
+
], 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", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4508
4502
|
}
|
|
4509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownComponent, decorators: [{
|
|
4510
4504
|
type: Component,
|
|
4511
4505
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown", providers: [
|
|
4512
4506
|
{
|
|
@@ -4526,10 +4520,10 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4526
4520
|
const router = inject(ActivatedRoute);
|
|
4527
4521
|
const translateService = inject(TranslateService);
|
|
4528
4522
|
super(router, translateService);
|
|
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" }] : []));
|
|
4523
|
+
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : /* istanbul ignore next */ []));
|
|
4524
|
+
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] : /* istanbul ignore next */ [])); // indica si se muestran los elementos seleccionados en una columna separada
|
|
4525
|
+
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ [])); //título que aparece en el link para eliminar un elemento una vez seleccionado
|
|
4526
|
+
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
4533
4527
|
this.router = router;
|
|
4534
4528
|
this.translateService = translateService;
|
|
4535
4529
|
}
|
|
@@ -4608,16 +4602,16 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4608
4602
|
emitValue() {
|
|
4609
4603
|
this.changeComponentValue(this.value);
|
|
4610
4604
|
}
|
|
4611
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4612
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4605
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4606
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDropDownMultipleComponent, isStandalone: false, selector: "bit-dropdown-multiple", inputs: { maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, showSeparateSelectedLabels: { classPropertyName: "showSeparateSelectedLabels", publicName: "showSeparateSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4613
4607
|
{
|
|
4614
4608
|
provide: NG_VALUE_ACCESSOR,
|
|
4615
4609
|
useExisting: forwardRef(() => BitDropDownMultipleComponent),
|
|
4616
4610
|
multi: true
|
|
4617
4611
|
}
|
|
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 }); }
|
|
4612
|
+
], 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", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4619
4613
|
}
|
|
4620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownMultipleComponent, decorators: [{
|
|
4621
4615
|
type: Component,
|
|
4622
4616
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown-multiple", providers: [
|
|
4623
4617
|
{
|
|
@@ -4661,11 +4655,11 @@ class ConfigurationEditor {
|
|
|
4661
4655
|
class BitEditorComponent extends BitCustomComponent {
|
|
4662
4656
|
constructor() {
|
|
4663
4657
|
super(...arguments);
|
|
4664
|
-
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : []));
|
|
4658
|
+
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : /* istanbul ignore next */ []));
|
|
4665
4659
|
// si es "custom", se utiliza el objeto de configuracion: configuration.
|
|
4666
4660
|
// si es "default", no se utiliza ninguna configuracion (se muestran todos los controles)
|
|
4667
|
-
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : []));
|
|
4668
|
-
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
4661
|
+
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : /* istanbul ignore next */ []));
|
|
4662
|
+
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
4669
4663
|
this.onTextChange = output();
|
|
4670
4664
|
}
|
|
4671
4665
|
// es posible tener configuraciones globales en todos los bit-editor de un proyecto
|
|
@@ -4714,14 +4708,14 @@ class BitEditorComponent extends BitCustomComponent {
|
|
|
4714
4708
|
const configuration = this.configuration();
|
|
4715
4709
|
return configuration ? configuration : BitEditorComponent.globalConfiguration;
|
|
4716
4710
|
}
|
|
4717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4718
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4711
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4712
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitEditorComponent, isStandalone: false, selector: "bit-editor", inputs: { tipo: { classPropertyName: "tipo", publicName: "tipo", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onTextChange: "onTextChange" }, providers: [{
|
|
4719
4713
|
provide: NG_VALUE_ACCESSOR,
|
|
4720
4714
|
useExisting: forwardRef(() => BitEditorComponent),
|
|
4721
4715
|
multi: true
|
|
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 }); }
|
|
4716
|
+
}], 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", "onEditorChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4723
4717
|
}
|
|
4724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitEditorComponent, decorators: [{
|
|
4725
4719
|
type: Component,
|
|
4726
4720
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-editor", providers: [{
|
|
4727
4721
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4736,15 +4730,15 @@ class BitReadonlyComponent {
|
|
|
4736
4730
|
this.sessionShared = inject(SessionSharedService);
|
|
4737
4731
|
this.ayudaService = inject(AyudaService);
|
|
4738
4732
|
this.dateUtils = inject(DateUtils);
|
|
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" }] : []));
|
|
4733
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ []));
|
|
4734
|
+
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] : /* istanbul ignore next */ []));
|
|
4735
|
+
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] : /* istanbul ignore next */ [])); // text (default), date, datetime, time, boolean, textarea, list, list-multiple
|
|
4736
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ []));
|
|
4737
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ [])); //lista de valores estáticos con lo que inicializamos el select
|
|
4738
|
+
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] : /* istanbul ignore next */ []));
|
|
4745
4739
|
this.opcionesDropdown = computed(() => {
|
|
4746
4740
|
return (this.data() && this.data().slice()) || [];
|
|
4747
|
-
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : []));
|
|
4741
|
+
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : /* istanbul ignore next */ []));
|
|
4748
4742
|
}
|
|
4749
4743
|
showAyuda() {
|
|
4750
4744
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
@@ -4770,10 +4764,10 @@ class BitReadonlyComponent {
|
|
|
4770
4764
|
return valor;
|
|
4771
4765
|
}
|
|
4772
4766
|
}
|
|
4773
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4774
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4767
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4768
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitReadonlyComponent, isStandalone: false, selector: "bit-readonly", inputs: { ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, valor: { classPropertyName: "valor", publicName: "valor", isSignal: true, isRequired: false, transformFunction: null }, tipo: { classPropertyName: "tipo", publicName: "tipo", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (!hideLabel()) {\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 }); }
|
|
4775
4769
|
}
|
|
4776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitReadonlyComponent, decorators: [{
|
|
4777
4771
|
type: Component,
|
|
4778
4772
|
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}" }]
|
|
4779
4773
|
}], 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 }] }] } });
|
|
@@ -4781,18 +4775,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4781
4775
|
class BitNumberComponent extends BitCustomComponent {
|
|
4782
4776
|
constructor() {
|
|
4783
4777
|
super(...arguments);
|
|
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" }] : []));
|
|
4778
|
+
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] : /* istanbul ignore next */ []));
|
|
4779
|
+
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] : /* istanbul ignore next */ []));
|
|
4780
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : /* istanbul ignore next */ []));
|
|
4781
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : /* istanbul ignore next */ []));
|
|
4782
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : /* istanbul ignore next */ []));
|
|
4783
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : /* istanbul ignore next */ []));
|
|
4784
|
+
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] : /* istanbul ignore next */ []));
|
|
4785
|
+
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] : /* istanbul ignore next */ []));
|
|
4786
|
+
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : /* istanbul ignore next */ []));
|
|
4787
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : /* istanbul ignore next */ []));
|
|
4788
|
+
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] : /* istanbul ignore next */ []));
|
|
4789
|
+
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
|
|
4796
4790
|
}
|
|
4797
4791
|
get value_lectura() {
|
|
4798
4792
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -4808,14 +4802,14 @@ class BitNumberComponent extends BitCustomComponent {
|
|
|
4808
4802
|
this.value = text;
|
|
4809
4803
|
this.changeComponentValue(this.value);
|
|
4810
4804
|
}
|
|
4811
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4812
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4806
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitNumberComponent, isStandalone: false, selector: "bit-number", inputs: { modo: { classPropertyName: "modo", publicName: "modo", isSignal: true, isRequired: false, transformFunction: null }, divisa: { classPropertyName: "divisa", publicName: "divisa", isSignal: true, isRequired: false, transformFunction: null }, prefijo: { classPropertyName: "prefijo", publicName: "prefijo", isSignal: true, isRequired: false, transformFunction: null }, sufijo: { classPropertyName: "sufijo", publicName: "sufijo", isSignal: true, isRequired: false, transformFunction: null }, minimo: { classPropertyName: "minimo", publicName: "minimo", isSignal: true, isRequired: false, transformFunction: null }, maximo: { classPropertyName: "maximo", publicName: "maximo", isSignal: true, isRequired: false, transformFunction: null }, numeroDecimales: { classPropertyName: "numeroDecimales", publicName: "numeroDecimales", isSignal: true, isRequired: false, transformFunction: null }, maximoDecimales: { classPropertyName: "maximoDecimales", publicName: "maximoDecimales", isSignal: true, isRequired: false, transformFunction: null }, separadorGrupo: { classPropertyName: "separadorGrupo", publicName: "separadorGrupo", isSignal: true, isRequired: false, transformFunction: null }, mostrarBotones: { classPropertyName: "mostrarBotones", publicName: "mostrarBotones", isSignal: true, isRequired: false, transformFunction: null }, incremento: { classPropertyName: "incremento", publicName: "incremento", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4813
4807
|
provide: NG_VALUE_ACCESSOR,
|
|
4814
4808
|
useExisting: forwardRef(() => BitNumberComponent),
|
|
4815
4809
|
multi: true
|
|
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 }); }
|
|
4810
|
+
}], 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", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4817
4811
|
}
|
|
4818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNumberComponent, decorators: [{
|
|
4819
4813
|
type: Component,
|
|
4820
4814
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-number", providers: [{
|
|
4821
4815
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4827,25 +4821,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4827
4821
|
class BitAmountComponent extends BitNumberComponent {
|
|
4828
4822
|
constructor() {
|
|
4829
4823
|
super(...arguments);
|
|
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: "
|
|
4842
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4824
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : /* istanbul ignore next */ []));
|
|
4825
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : /* istanbul ignore next */ []));
|
|
4826
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : /* istanbul ignore next */ []));
|
|
4827
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : /* istanbul ignore next */ []));
|
|
4828
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : /* istanbul ignore next */ []));
|
|
4829
|
+
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] : /* istanbul ignore next */ []));
|
|
4830
|
+
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] : /* istanbul ignore next */ []));
|
|
4831
|
+
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] : /* istanbul ignore next */ []));
|
|
4832
|
+
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] : /* istanbul ignore next */ []));
|
|
4833
|
+
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : /* istanbul ignore next */ []));
|
|
4834
|
+
}
|
|
4835
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAmountComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4836
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitAmountComponent, isStandalone: false, selector: "bit-amount", inputs: { prefijo: { classPropertyName: "prefijo", publicName: "prefijo", isSignal: true, isRequired: false, transformFunction: null }, sufijo: { classPropertyName: "sufijo", publicName: "sufijo", isSignal: true, isRequired: false, transformFunction: null }, minimo: { classPropertyName: "minimo", publicName: "minimo", isSignal: true, isRequired: false, transformFunction: null }, maximo: { classPropertyName: "maximo", publicName: "maximo", isSignal: true, isRequired: false, transformFunction: null }, mostrarBotones: { classPropertyName: "mostrarBotones", publicName: "mostrarBotones", isSignal: true, isRequired: false, transformFunction: null }, incremento: { classPropertyName: "incremento", publicName: "incremento", isSignal: true, isRequired: false, transformFunction: null }, modo: { classPropertyName: "modo", publicName: "modo", isSignal: true, isRequired: false, transformFunction: null }, divisa: { classPropertyName: "divisa", publicName: "divisa", isSignal: true, isRequired: false, transformFunction: null }, maximoDecimales: { classPropertyName: "maximoDecimales", publicName: "maximoDecimales", isSignal: true, isRequired: false, transformFunction: null }, separadorGrupo: { classPropertyName: "separadorGrupo", publicName: "separadorGrupo", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4843
4837
|
provide: NG_VALUE_ACCESSOR,
|
|
4844
4838
|
useExisting: forwardRef(() => BitAmountComponent),
|
|
4845
4839
|
multi: true
|
|
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 }); }
|
|
4840
|
+
}], 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", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4847
4841
|
}
|
|
4848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAmountComponent, decorators: [{
|
|
4849
4843
|
type: Component,
|
|
4850
4844
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-amount", providers: [{
|
|
4851
4845
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -4857,7 +4851,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4857
4851
|
/** Esta clase contiene información sobre el menú pulsado por el usuairo. Permite setear dicho valor y recuperarlo mediante un signal */
|
|
4858
4852
|
class MenuService {
|
|
4859
4853
|
constructor() {
|
|
4860
|
-
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : []));
|
|
4854
|
+
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : /* istanbul ignore next */ []));
|
|
4861
4855
|
}
|
|
4862
4856
|
setCurrentMenu(menuTitle) {
|
|
4863
4857
|
this.currentMenu$.set(menuTitle);
|
|
@@ -4866,10 +4860,10 @@ class MenuService {
|
|
|
4866
4860
|
getCurrentMenu() {
|
|
4867
4861
|
return this.currentMenu$;
|
|
4868
4862
|
}
|
|
4869
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4870
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4863
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4864
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, providedIn: "root" }); }
|
|
4871
4865
|
}
|
|
4872
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, decorators: [{
|
|
4873
4867
|
type: Injectable,
|
|
4874
4868
|
args: [{ providedIn: "root" }]
|
|
4875
4869
|
}], ctorParameters: () => [] });
|
|
@@ -4882,8 +4876,8 @@ class MenuTitle {
|
|
|
4882
4876
|
|
|
4883
4877
|
class BitSidebarComponent {
|
|
4884
4878
|
constructor() {
|
|
4885
|
-
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
4886
|
-
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : []));
|
|
4879
|
+
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
4880
|
+
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : /* istanbul ignore next */ []));
|
|
4887
4881
|
this.onSelectLanguage = output();
|
|
4888
4882
|
this.onCloseMenu = output();
|
|
4889
4883
|
this.onMenuTitle = output();
|
|
@@ -4911,10 +4905,10 @@ class BitSidebarComponent {
|
|
|
4911
4905
|
this.closeMenu();
|
|
4912
4906
|
this.onSelectLanguage.emit(language);
|
|
4913
4907
|
}
|
|
4914
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4915
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4908
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4909
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSidebarComponent, isStandalone: false, selector: "bit-sidebar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, visibilidad: { classPropertyName: "visibilidad", publicName: "visibilidad", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelectLanguage: "onSelectLanguage", onCloseMenu: "onCloseMenu", onMenuTitle: "onMenuTitle" }, ngImport: i0, template: "<div id=\"mySidebar\" class=\"sidebar\" [style.min-width]=\"visibilidad() ? '300px' : '0px'\">\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 }); }
|
|
4916
4910
|
}
|
|
4917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSidebarComponent, decorators: [{
|
|
4918
4912
|
type: Component,
|
|
4919
4913
|
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"] }]
|
|
4920
4914
|
}], 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"] }] } });
|
|
@@ -4925,10 +4919,10 @@ class BitThemeSelectorComponent {
|
|
|
4925
4919
|
this.themeFBitService = inject(ThemeFBitService);
|
|
4926
4920
|
this.themeList$ = computed(() => this.themeFBitService.themeList$().map((theme) => {
|
|
4927
4921
|
return { name: theme };
|
|
4928
|
-
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
4922
|
+
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : /* istanbul ignore next */ []));
|
|
4929
4923
|
this.currentTheme$ = computed(() => {
|
|
4930
4924
|
return this.themeFBitService.currentTheme$();
|
|
4931
|
-
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
4925
|
+
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : /* istanbul ignore next */ []));
|
|
4932
4926
|
effect(() => {
|
|
4933
4927
|
console.log("theme", this.currentTheme$());
|
|
4934
4928
|
console.log("themeList", this.themeList$());
|
|
@@ -4942,10 +4936,10 @@ class BitThemeSelectorComponent {
|
|
|
4942
4936
|
this.themeFBitService.changeTheme(theme);
|
|
4943
4937
|
this.onChangeTheme.emit(theme);
|
|
4944
4938
|
}
|
|
4945
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4946
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4939
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitThemeSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4940
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitThemeSelectorComponent, isStandalone: false, selector: "bit-theme-selector", outputs: { onChangeTheme: "onChangeTheme" }, ngImport: i0, template: "<p-selectbutton \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 }); }
|
|
4947
4941
|
}
|
|
4948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitThemeSelectorComponent, decorators: [{
|
|
4949
4943
|
type: Component,
|
|
4950
4944
|
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)\"/>" }]
|
|
4951
4945
|
}], ctorParameters: () => [], propDecorators: { onChangeTheme: [{ type: i0.Output, args: ["onChangeTheme"] }] } });
|
|
@@ -4954,8 +4948,8 @@ class BitLanguageSelectorComponent {
|
|
|
4954
4948
|
constructor() {
|
|
4955
4949
|
this.onSelectLanguage = output();
|
|
4956
4950
|
this.localeService = inject(LocaleService);
|
|
4957
|
-
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : []));
|
|
4958
|
-
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : []));
|
|
4951
|
+
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : /* istanbul ignore next */ []));
|
|
4952
|
+
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : /* istanbul ignore next */ []));
|
|
4959
4953
|
}
|
|
4960
4954
|
//signal(this.localeService.locale$());
|
|
4961
4955
|
selectGroupChanged(_event) {
|
|
@@ -4967,10 +4961,10 @@ class BitLanguageSelectorComponent {
|
|
|
4967
4961
|
this.currentLanguage$.set(language);
|
|
4968
4962
|
this.onSelectLanguage.emit(language);
|
|
4969
4963
|
}
|
|
4970
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4971
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLanguageSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4965
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitLanguageSelectorComponent, isStandalone: false, selector: "bit-language-selector", outputs: { onSelectLanguage: "onSelectLanguage" }, ngImport: i0, template: "<p-selectbutton \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 }); }
|
|
4972
4966
|
}
|
|
4973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLanguageSelectorComponent, decorators: [{
|
|
4974
4968
|
type: Component,
|
|
4975
4969
|
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)\"/>" }]
|
|
4976
4970
|
}], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }] } });
|
|
@@ -4996,10 +4990,10 @@ class BitSettingsComponent {
|
|
|
4996
4990
|
this.themeFBitService.setDarkMode(this.isDarkMode);
|
|
4997
4991
|
this.onDarkModeChange.emit(this.isDarkMode); // Emit the new state
|
|
4998
4992
|
}
|
|
4999
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5000
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4993
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4994
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitSettingsComponent, isStandalone: false, selector: "bit-settings", outputs: { onSelectLanguage: "onSelectLanguage", onDarkModeChange: "onDarkModeChange" }, ngImport: i0, template: "<ng-container *transloco=\"let t\">\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", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i3.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: BitLanguageSelectorComponent, selector: "bit-language-selector", outputs: ["onSelectLanguage"] }, { kind: "component", type: BitThemeSelectorComponent, selector: "bit-theme-selector", outputs: ["onChangeTheme"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5001
4995
|
}
|
|
5002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSettingsComponent, decorators: [{
|
|
5003
4997
|
type: Component,
|
|
5004
4998
|
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"] }]
|
|
5005
4999
|
}], ctorParameters: () => [], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }], onDarkModeChange: [{ type: i0.Output, args: ["onDarkModeChange"] }] } });
|
|
@@ -5050,10 +5044,10 @@ class BytesPipe {
|
|
|
5050
5044
|
const prev = format.prev ? BytesPipe.formats[format.prev] : undefined;
|
|
5051
5045
|
return prev ? bytes / prev.max : bytes;
|
|
5052
5046
|
}
|
|
5053
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5054
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5048
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, isStandalone: false, name: "bytes" }); }
|
|
5055
5049
|
}
|
|
5056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, decorators: [{
|
|
5057
5051
|
type: Pipe,
|
|
5058
5052
|
args: [{
|
|
5059
5053
|
name: "bytes",
|
|
@@ -5090,10 +5084,10 @@ class CapitalizePipe {
|
|
|
5090
5084
|
return texto;
|
|
5091
5085
|
}
|
|
5092
5086
|
}
|
|
5093
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5094
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5088
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, isStandalone: false, name: "capitalize" }); }
|
|
5095
5089
|
}
|
|
5096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, decorators: [{
|
|
5097
5091
|
type: Pipe,
|
|
5098
5092
|
args: [{
|
|
5099
5093
|
name: "capitalize",
|
|
@@ -5110,10 +5104,10 @@ class CutTextPipe {
|
|
|
5110
5104
|
}
|
|
5111
5105
|
return value.substring(0, maxLength) + "...";
|
|
5112
5106
|
}
|
|
5113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5114
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5108
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, isStandalone: false, name: "cutText" }); }
|
|
5115
5109
|
}
|
|
5116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, decorators: [{
|
|
5117
5111
|
type: Pipe,
|
|
5118
5112
|
args: [{
|
|
5119
5113
|
name: 'cutText',
|
|
@@ -5138,10 +5132,10 @@ class DomainListValuePipe {
|
|
|
5138
5132
|
s = s.substring(0, s.length - 2);
|
|
5139
5133
|
return s;
|
|
5140
5134
|
}
|
|
5141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5142
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5136
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, isStandalone: false, name: "domainListValue" }); }
|
|
5143
5137
|
}
|
|
5144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, decorators: [{
|
|
5145
5139
|
type: Pipe,
|
|
5146
5140
|
args: [{
|
|
5147
5141
|
name: "domainListValue",
|
|
@@ -5163,10 +5157,10 @@ class DomainValuePipe {
|
|
|
5163
5157
|
return "";
|
|
5164
5158
|
}
|
|
5165
5159
|
}
|
|
5166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5167
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5161
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, isStandalone: false, name: "domainValue" }); }
|
|
5168
5162
|
}
|
|
5169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, decorators: [{
|
|
5170
5164
|
type: Pipe,
|
|
5171
5165
|
args: [{
|
|
5172
5166
|
name: "domainValue",
|
|
@@ -5186,10 +5180,10 @@ class ListValuePipe {
|
|
|
5186
5180
|
s = s.substring(0, s.length - 2);
|
|
5187
5181
|
return s;
|
|
5188
5182
|
}
|
|
5189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5190
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5184
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, isStandalone: false, name: "listValue" }); }
|
|
5191
5185
|
}
|
|
5192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, decorators: [{
|
|
5193
5187
|
type: Pipe,
|
|
5194
5188
|
args: [{
|
|
5195
5189
|
name: "listValue",
|
|
@@ -5211,10 +5205,10 @@ class OtherToolbarActionPipe {
|
|
|
5211
5205
|
}
|
|
5212
5206
|
return actions;
|
|
5213
5207
|
}
|
|
5214
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5215
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5209
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, isStandalone: false, name: "otherToolbarAction" }); }
|
|
5216
5210
|
}
|
|
5217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, decorators: [{
|
|
5218
5212
|
type: Pipe,
|
|
5219
5213
|
args: [{
|
|
5220
5214
|
name: "otherToolbarAction",
|
|
@@ -5238,10 +5232,10 @@ class RemoveLineBreaksPipe {
|
|
|
5238
5232
|
}
|
|
5239
5233
|
return str;
|
|
5240
5234
|
}
|
|
5241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5242
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5235
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5236
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, isStandalone: false, name: "removeLineBreaks" }); }
|
|
5243
5237
|
}
|
|
5244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, decorators: [{
|
|
5245
5239
|
type: Pipe,
|
|
5246
5240
|
args: [{
|
|
5247
5241
|
name: "removeLineBreaks",
|
|
@@ -5258,10 +5252,10 @@ class SiONoPipe {
|
|
|
5258
5252
|
return value ? "Sí" : "No";
|
|
5259
5253
|
}
|
|
5260
5254
|
}
|
|
5261
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5262
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5255
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5256
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, isStandalone: false, name: "siONo" }); }
|
|
5263
5257
|
}
|
|
5264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, decorators: [{
|
|
5265
5259
|
type: Pipe,
|
|
5266
5260
|
args: [{
|
|
5267
5261
|
name: "siONo",
|
|
@@ -5273,10 +5267,10 @@ class StringifyPipe {
|
|
|
5273
5267
|
transform(value) {
|
|
5274
5268
|
return JSON.stringify(value);
|
|
5275
5269
|
}
|
|
5276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5277
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5270
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5271
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, isStandalone: false, name: "stringify" }); }
|
|
5278
5272
|
}
|
|
5279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, decorators: [{
|
|
5280
5274
|
type: Pipe,
|
|
5281
5275
|
args: [{
|
|
5282
5276
|
name: "stringify",
|
|
@@ -5303,10 +5297,10 @@ class BitPanelDirective {
|
|
|
5303
5297
|
ngOnDestroy() {
|
|
5304
5298
|
this.suscription && this.suscription.unsubscribe();
|
|
5305
5299
|
}
|
|
5306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5307
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5301
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BitPanelDirective, isStandalone: false, selector: "[bitpanel]", ngImport: i0 }); }
|
|
5308
5302
|
}
|
|
5309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPanelDirective, decorators: [{
|
|
5310
5304
|
type: Directive,
|
|
5311
5305
|
args: [{
|
|
5312
5306
|
selector: "[bitpanel]",
|
|
@@ -5322,8 +5316,8 @@ const directives = [
|
|
|
5322
5316
|
class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
5323
5317
|
constructor() {
|
|
5324
5318
|
super(...arguments);
|
|
5325
|
-
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : []));
|
|
5326
|
-
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : []));
|
|
5319
|
+
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : /* istanbul ignore next */ []));
|
|
5320
|
+
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : /* istanbul ignore next */ []));
|
|
5327
5321
|
}
|
|
5328
5322
|
get value_lectura() {
|
|
5329
5323
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -5339,14 +5333,14 @@ class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
|
5339
5333
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
5340
5334
|
this.changeComponentValue(this.value);
|
|
5341
5335
|
}
|
|
5342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5343
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchSiNoComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5337
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSwitchSiNoComponent, isStandalone: false, selector: "bit-switch-si-no", inputs: { valorTrue: { classPropertyName: "valorTrue", publicName: "valorTrue", isSignal: true, isRequired: false, transformFunction: null }, valorFalse: { classPropertyName: "valorFalse", publicName: "valorFalse", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
5344
5338
|
provide: NG_VALUE_ACCESSOR,
|
|
5345
5339
|
useExisting: forwardRef(() => BitSwitchSiNoComponent),
|
|
5346
5340
|
multi: true
|
|
5347
5341
|
}], 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 }); }
|
|
5348
5342
|
}
|
|
5349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchSiNoComponent, decorators: [{
|
|
5350
5344
|
type: Component,
|
|
5351
5345
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch-si-no", providers: [{
|
|
5352
5346
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -5358,9 +5352,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5358
5352
|
class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
5359
5353
|
constructor() {
|
|
5360
5354
|
super(...arguments);
|
|
5361
|
-
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : []));
|
|
5362
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
5363
|
-
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : []));
|
|
5355
|
+
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : /* istanbul ignore next */ []));
|
|
5356
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
5357
|
+
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : /* istanbul ignore next */ []));
|
|
5364
5358
|
this.estiloCheckAll = computed(() => {
|
|
5365
5359
|
if (this.isCheckAll()) {
|
|
5366
5360
|
return "pi pi-check-square";
|
|
@@ -5368,7 +5362,7 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5368
5362
|
else {
|
|
5369
5363
|
return "pi pi-stop";
|
|
5370
5364
|
}
|
|
5371
|
-
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : []));
|
|
5365
|
+
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : /* istanbul ignore next */ []));
|
|
5372
5366
|
}
|
|
5373
5367
|
get value_lectura() {
|
|
5374
5368
|
if (this.value) {
|
|
@@ -5419,16 +5413,16 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5419
5413
|
refreshCheckAll() {
|
|
5420
5414
|
this.isCheckAll.set(this.data()?.length === this.value?.length);
|
|
5421
5415
|
}
|
|
5422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5423
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMultipleCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5417
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitMultipleCheckboxComponent, isStandalone: false, selector: "bit-checkbox-multiple", inputs: { chekAll: { classPropertyName: "chekAll", publicName: "chekAll", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
5424
5418
|
{
|
|
5425
5419
|
provide: NG_VALUE_ACCESSOR,
|
|
5426
5420
|
useExisting: forwardRef(() => BitMultipleCheckboxComponent),
|
|
5427
5421
|
multi: true
|
|
5428
5422
|
}
|
|
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 }); }
|
|
5423
|
+
], 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: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5430
5424
|
}
|
|
5431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMultipleCheckboxComponent, decorators: [{
|
|
5432
5426
|
type: Component,
|
|
5433
5427
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox-multiple", providers: [
|
|
5434
5428
|
{
|
|
@@ -5528,8 +5522,8 @@ const formComponents = [
|
|
|
5528
5522
|
BitAmountComponent
|
|
5529
5523
|
];
|
|
5530
5524
|
class SharedLibraryModule {
|
|
5531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5532
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5526
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, declarations: [BitPanelDirective, FocusRegisterDirective, BitBreadCrumbComponent,
|
|
5533
5527
|
BitControlMessages,
|
|
5534
5528
|
BitDialogComponent,
|
|
5535
5529
|
BitFooterComponent,
|
|
@@ -5688,7 +5682,7 @@ class SharedLibraryModule {
|
|
|
5688
5682
|
BitReadonlyComponent,
|
|
5689
5683
|
BitNumberComponent,
|
|
5690
5684
|
BitAmountComponent] }); }
|
|
5691
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5685
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, providers: [{ provide: TRANSLOCO_SCOPE, useValue: "bitnglibrary" }, MessageService], imports: [modules, RouterModule, FileUploadModule$1, TranslocoModule, AccordionModule,
|
|
5692
5686
|
AutoCompleteModule,
|
|
5693
5687
|
BadgeModule,
|
|
5694
5688
|
DatePickerModule,
|
|
@@ -5734,7 +5728,7 @@ class SharedLibraryModule {
|
|
|
5734
5728
|
TreeModule,
|
|
5735
5729
|
TreeTableModule] }); }
|
|
5736
5730
|
}
|
|
5737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, decorators: [{
|
|
5738
5732
|
type: NgModule,
|
|
5739
5733
|
args: [{
|
|
5740
5734
|
imports: [...modules, RouterModule, FileUploadModule$1, TranslocoModule],
|
|
@@ -5808,10 +5802,10 @@ class CanDeactivateGuard {
|
|
|
5808
5802
|
canDeactivate(component) {
|
|
5809
5803
|
return component.canDeactivate ? component.canDeactivate() : true;
|
|
5810
5804
|
}
|
|
5811
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5812
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5806
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard }); }
|
|
5813
5807
|
}
|
|
5814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard, decorators: [{
|
|
5815
5809
|
type: Injectable
|
|
5816
5810
|
}] });
|
|
5817
5811
|
|
|
@@ -5836,10 +5830,10 @@ class CustomHttpInterceptor {
|
|
|
5836
5830
|
this.generalUtils.stopLoading();
|
|
5837
5831
|
}));
|
|
5838
5832
|
}
|
|
5839
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5840
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5833
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5834
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, providedIn: "root" }); }
|
|
5841
5835
|
}
|
|
5842
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, decorators: [{
|
|
5843
5837
|
type: Injectable,
|
|
5844
5838
|
args: [{ providedIn: "root" }]
|
|
5845
5839
|
}], ctorParameters: () => [] });
|
|
@@ -5868,10 +5862,10 @@ class EntityDataService {
|
|
|
5868
5862
|
getService(entityName) {
|
|
5869
5863
|
return this.services[entityName.trim()];
|
|
5870
5864
|
}
|
|
5871
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5872
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5865
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5866
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, providedIn: "root" }); }
|
|
5873
5867
|
}
|
|
5874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, decorators: [{
|
|
5875
5869
|
type: Injectable,
|
|
5876
5870
|
args: [{ providedIn: "root" }]
|
|
5877
5871
|
}], ctorParameters: () => [] });
|
|
@@ -5996,7 +5990,7 @@ class EntityCollectionServiceBase {
|
|
|
5996
5990
|
entities = entities.sort(sortComparerFn);
|
|
5997
5991
|
}
|
|
5998
5992
|
return entities;
|
|
5999
|
-
}, ...(ngDevMode ? [{ debugName: "entities$" }] : []));
|
|
5993
|
+
}, ...(ngDevMode ? [{ debugName: "entities$" }] : /* istanbul ignore next */ []));
|
|
6000
5994
|
/** Signal of all ids in the cached collection. */
|
|
6001
5995
|
this.ids$ = this.entityStore.ids;
|
|
6002
5996
|
/** Signal of the filter object applied by the entity collection's filter function */
|
|
@@ -6167,7 +6161,7 @@ class EntityCollectionServiceBase {
|
|
|
6167
6161
|
this.checkService();
|
|
6168
6162
|
const record = await this.service.upsert(entity);
|
|
6169
6163
|
// setEntity crea el objeto en el store si no existe o lo actualiza si existe
|
|
6170
|
-
this.entityStore.setEntity(record); //patchState(this.entityStore, setEntity(record));
|
|
6164
|
+
this.entityStore.setEntity(record); //patchState(this.entityStore, setEntity(record));
|
|
6171
6165
|
return record;
|
|
6172
6166
|
}
|
|
6173
6167
|
/*** Cache-only operations that do not update remote storage ***/
|
|
@@ -6516,10 +6510,10 @@ class HttpUrlGenerator {
|
|
|
6516
6510
|
...(entityHttpResourceUrls || {})
|
|
6517
6511
|
};
|
|
6518
6512
|
}
|
|
6519
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6520
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6513
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6514
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, providedIn: "root" }); }
|
|
6521
6515
|
}
|
|
6522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, decorators: [{
|
|
6523
6517
|
type: Injectable,
|
|
6524
6518
|
args: [{ providedIn: "root" }]
|
|
6525
6519
|
}] });
|