bit-ng-library 20.1.13 → 21.0.1
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 +647 -627
- package/fesm2022/bit-ng-library.mjs.map +1 -1
- package/package.json +5 -4
- package/{index.d.ts → types/bit-ng-library.d.ts} +435 -420
- package/types/bit-ng-library.d.ts.map +1 -0
- package/index.d.ts.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Subject, BehaviorSubject, lastValueFrom, of, ReplaySubject, combineLatest, forkJoin, throwError } from 'rxjs';
|
|
1
|
+
import { Subject, BehaviorSubject, lastValueFrom, of, ReplaySubject, combineLatest, forkJoin, switchMap, startWith, throwError } from 'rxjs';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, inject, signal, computed, DestroyRef, Directive, input, ChangeDetectionStrategy, Component, Pipe, model, output, linkedSignal, ElementRef, Renderer2, HostListener, viewChild, forwardRef, contentChild, TemplateRef, effect, NgModule } from '@angular/core';
|
|
3
|
+
import { Injectable, inject, signal, computed, DestroyRef, Directive, input, ChangeDetectionStrategy, Component, Pipe, model, output, linkedSignal, ElementRef, Renderer2, HostListener, viewChild, ChangeDetectorRef, forwardRef, contentChild, TemplateRef, effect, NgModule } from '@angular/core';
|
|
4
4
|
import { map, mergeMap, tap, takeUntil, filter, concatMap, take, catchError, finalize } from 'rxjs/operators';
|
|
5
5
|
import { PrimeNG } from 'primeng/config';
|
|
6
|
-
import Aura from '@
|
|
6
|
+
import Aura from '@primeuix/themes/aura';
|
|
7
7
|
import * as i3 from '@jsverse/transloco';
|
|
8
8
|
import { TranslocoService, TranslocoModule, TRANSLOCO_SCOPE } from '@jsverse/transloco';
|
|
9
9
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import * as i1$1 from '@angular/forms';
|
|
12
|
-
import { FormGroup,
|
|
13
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
12
|
+
import { FormGroup, FormControl, FormArray, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
13
|
+
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
14
14
|
import { saveAs } from 'file-saver';
|
|
15
15
|
import * as i2 from '@angular/common';
|
|
16
16
|
import { CommonModule } from '@angular/common';
|
|
@@ -270,10 +270,10 @@ class StorageService {
|
|
|
270
270
|
}
|
|
271
271
|
return object;
|
|
272
272
|
}
|
|
273
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
274
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService }); }
|
|
275
275
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StorageService, decorators: [{
|
|
277
277
|
type: Injectable
|
|
278
278
|
}], ctorParameters: () => [] });
|
|
279
279
|
|
|
@@ -285,9 +285,9 @@ class ThemeFBitService {
|
|
|
285
285
|
constructor() {
|
|
286
286
|
this.primeNgConfig = inject(PrimeNG);
|
|
287
287
|
this.storageService = inject(StorageService);
|
|
288
|
-
this.themeList$ = signal([ThemeFBitService.THEME_CAIB, ThemeFBitService.THEME_PRIME, ThemeFBitService.THEME_MATERIAL, ThemeFBitService.THEME_NORA], ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
289
|
-
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
290
|
-
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : []));
|
|
288
|
+
this.themeList$ = signal([ThemeFBitService.THEME_CAIB, ThemeFBitService.THEME_PRIME, ThemeFBitService.THEME_MATERIAL, ThemeFBitService.THEME_NORA], ...(ngDevMode ? [{ debugName: "themeList$" }] : /* istanbul ignore next */ []));
|
|
289
|
+
this.currentTheme$ = signal("Aura", ...(ngDevMode ? [{ debugName: "currentTheme$" }] : /* istanbul ignore next */ []));
|
|
290
|
+
this.darkMode$ = signal(false, ...(ngDevMode ? [{ debugName: "darkMode$" }] : /* istanbul ignore next */ []));
|
|
291
291
|
this.themeOptions = {
|
|
292
292
|
darkModeSelector: ".my-app-dark" //es el selector que cuando lo añadamos como clase al index.html hará que se active el modo oscuro
|
|
293
293
|
};
|
|
@@ -345,10 +345,10 @@ class ThemeFBitService {
|
|
|
345
345
|
element.classList.toggle("my-app-dark");
|
|
346
346
|
console.log("toggleDarkMode");
|
|
347
347
|
}
|
|
348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
349
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
349
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService }); }
|
|
350
350
|
}
|
|
351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ThemeFBitService, decorators: [{
|
|
352
352
|
type: Injectable
|
|
353
353
|
}], ctorParameters: () => [] });
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ class LocaleService {
|
|
|
360
360
|
{ label: "Català", value: "ca" }
|
|
361
361
|
];
|
|
362
362
|
// the default locale
|
|
363
|
-
this.locale$ = signal("ca", ...(ngDevMode ? [{ debugName: "locale$" }] : []));
|
|
363
|
+
this.locale$ = signal("ca", ...(ngDevMode ? [{ debugName: "locale$" }] : /* istanbul ignore next */ []));
|
|
364
364
|
this.storageService = inject(StorageService);
|
|
365
365
|
this.translateService = inject(TranslateService);
|
|
366
366
|
console.log("construyendo LocaleService");
|
|
@@ -374,10 +374,10 @@ class LocaleService {
|
|
|
374
374
|
this.storageService.setData(StorageService.LANGUAGE, this.locale$());
|
|
375
375
|
this.translateService.setActiveLang(this.locale$());
|
|
376
376
|
}
|
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
378
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
377
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
378
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, providedIn: "root" }); }
|
|
379
379
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: LocaleService, decorators: [{
|
|
381
381
|
type: Injectable,
|
|
382
382
|
args: [{
|
|
383
383
|
providedIn: "root"
|
|
@@ -387,10 +387,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
387
387
|
class AyudaService {
|
|
388
388
|
static { this.AYUDAS = []; } // Inicializar desde la aplicacion cliente
|
|
389
389
|
constructor() {
|
|
390
|
-
this.mostrar = signal(null, ...(ngDevMode ? [{ debugName: "mostrar" }] : []));
|
|
390
|
+
this.mostrar = signal(null, ...(ngDevMode ? [{ debugName: "mostrar" }] : /* istanbul ignore next */ []));
|
|
391
391
|
this.themeFbitService = inject(ThemeFBitService);
|
|
392
392
|
this.localeService = inject(LocaleService);
|
|
393
|
-
this.baseHelpUrl$ = computed(() => `assets/docshelp/${this.localeService.locale$()}/index.html?darkMode=${this.themeFbitService.darkMode$()}`, ...(ngDevMode ? [{ debugName: "baseHelpUrl$" }] : []));
|
|
393
|
+
this.baseHelpUrl$ = computed(() => `assets/docshelp/${this.localeService.locale$()}/index.html?darkMode=${this.themeFbitService.darkMode$()}`, ...(ngDevMode ? [{ debugName: "baseHelpUrl$" }] : /* istanbul ignore next */ []));
|
|
394
394
|
this.loadAyudas();
|
|
395
395
|
}
|
|
396
396
|
// procesa el fichero app.ayudas.json y crea el mapa para acceder luego directamente por clave
|
|
@@ -414,10 +414,10 @@ class AyudaService {
|
|
|
414
414
|
console.warn(`No existe ayuda para la clave [${key}]`);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
418
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
417
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
418
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, providedIn: "root" }); }
|
|
419
419
|
}
|
|
420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: AyudaService, decorators: [{
|
|
421
421
|
type: Injectable,
|
|
422
422
|
args: [{ providedIn: "root" }]
|
|
423
423
|
}], ctorParameters: () => [] });
|
|
@@ -497,10 +497,10 @@ class BitMessageService {
|
|
|
497
497
|
hideErrorsPanel() {
|
|
498
498
|
this.observableErrorsSource.next(null);
|
|
499
499
|
}
|
|
500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
501
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, providedIn: "root" }); }
|
|
502
502
|
}
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMessageService, decorators: [{
|
|
504
504
|
type: Injectable,
|
|
505
505
|
args: [{ providedIn: "root" }]
|
|
506
506
|
}], ctorParameters: () => [] });
|
|
@@ -521,7 +521,7 @@ class GeneralUtils {
|
|
|
521
521
|
static { this.FORMAT_SHORT_SECONDS_TIME = "HH:mm:ss"; }
|
|
522
522
|
constructor() {
|
|
523
523
|
this.observableLoadingSource = new Subject();
|
|
524
|
-
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
524
|
+
this.loading = signal(0, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
525
525
|
console.log("GeneralUtils constructor");
|
|
526
526
|
this.observableLoading = this.observableLoadingSource.asObservable();
|
|
527
527
|
}
|
|
@@ -649,10 +649,10 @@ class GeneralUtils {
|
|
|
649
649
|
}
|
|
650
650
|
return "-";
|
|
651
651
|
}
|
|
652
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
653
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
653
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, providedIn: "root" }); }
|
|
654
654
|
}
|
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GeneralUtils, decorators: [{
|
|
656
656
|
type: Injectable,
|
|
657
657
|
args: [{ providedIn: "root" }]
|
|
658
658
|
}], ctorParameters: () => [] });
|
|
@@ -710,10 +710,10 @@ class TranslateService {
|
|
|
710
710
|
let lang = this.translocoService.getActiveLang();
|
|
711
711
|
return lang;
|
|
712
712
|
}
|
|
713
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
714
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
713
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
714
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, providedIn: "root" }); }
|
|
715
715
|
}
|
|
716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TranslateService, decorators: [{
|
|
717
717
|
type: Injectable,
|
|
718
718
|
args: [{ providedIn: "root" }]
|
|
719
719
|
}], ctorParameters: () => [] });
|
|
@@ -855,10 +855,10 @@ class HttpUtilsService {
|
|
|
855
855
|
}
|
|
856
856
|
return httpHeaders;
|
|
857
857
|
}
|
|
858
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
859
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
858
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
859
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, providedIn: "root" }); }
|
|
860
860
|
}
|
|
861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUtilsService, decorators: [{
|
|
862
862
|
type: Injectable,
|
|
863
863
|
args: [{ providedIn: "root" }]
|
|
864
864
|
}], ctorParameters: () => [] });
|
|
@@ -1312,13 +1312,13 @@ class CustomValidators {
|
|
|
1312
1312
|
// es un formulario anidado, seguimos bajando recursivamente
|
|
1313
1313
|
mensajes = mensajes.concat(CustomValidators.validateForm(control, controlLabel));
|
|
1314
1314
|
}
|
|
1315
|
-
else if (control instanceof
|
|
1315
|
+
else if (control instanceof FormControl) {
|
|
1316
1316
|
// es un campo final, añadimos sus mensajes de error
|
|
1317
1317
|
for (let errorKey in control.errors) {
|
|
1318
1318
|
mensajes.push({ prefixes: controlLabel, errorMessage: CustomValidators.config[errorKey] });
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
else if (control instanceof
|
|
1321
|
+
else if (control instanceof FormArray) {
|
|
1322
1322
|
// es una lista de controles anidada, la recorremos
|
|
1323
1323
|
control.controls &&
|
|
1324
1324
|
control.controls.forEach((arrControl, index) => {
|
|
@@ -1327,7 +1327,7 @@ class CustomValidators {
|
|
|
1327
1327
|
// es una lista de FormGroups, bajamos a ellos recursivamente
|
|
1328
1328
|
mensajes = mensajes.concat(CustomValidators.validateForm(arrControl, arrControlLabel));
|
|
1329
1329
|
}
|
|
1330
|
-
else if (arrControl instanceof
|
|
1330
|
+
else if (arrControl instanceof FormControl) {
|
|
1331
1331
|
// es una lista de FormControls, los tratamos desde aquí
|
|
1332
1332
|
for (let errorKey in control.errors) {
|
|
1333
1333
|
mensajes.push({ prefixes: arrControlLabel, errorMessage: CustomValidators.config[errorKey] });
|
|
@@ -1645,10 +1645,10 @@ class DateUtils {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
return "-";
|
|
1647
1647
|
}
|
|
1648
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1649
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1648
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1649
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, providedIn: "root" }); }
|
|
1650
1650
|
}
|
|
1651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DateUtils, decorators: [{
|
|
1652
1652
|
type: Injectable,
|
|
1653
1653
|
args: [{ providedIn: "root" }]
|
|
1654
1654
|
}], ctorParameters: () => [] });
|
|
@@ -1662,10 +1662,10 @@ class DomainService {
|
|
|
1662
1662
|
return domain && domain[lang] ? of(domain[lang]) : of([]);
|
|
1663
1663
|
})), { injector: injector });
|
|
1664
1664
|
}
|
|
1665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1666
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1665
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1666
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, providedIn: "root" }); }
|
|
1667
1667
|
}
|
|
1668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainService, decorators: [{
|
|
1669
1669
|
type: Injectable,
|
|
1670
1670
|
args: [{ providedIn: "root" }]
|
|
1671
1671
|
}] });
|
|
@@ -1717,10 +1717,10 @@ class DownloadService {
|
|
|
1717
1717
|
this.generalUtils.stopLoading();
|
|
1718
1718
|
}, () => this.generalUtils.stopLoading());
|
|
1719
1719
|
}
|
|
1720
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1721
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, providedIn: "root" }); }
|
|
1722
1722
|
}
|
|
1723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DownloadService, decorators: [{
|
|
1724
1724
|
type: Injectable,
|
|
1725
1725
|
args: [{
|
|
1726
1726
|
providedIn: "root"
|
|
@@ -1747,10 +1747,10 @@ class FocusService {
|
|
|
1747
1747
|
//console.log(`returning focus on ${this.focused}`);
|
|
1748
1748
|
return this.focused;
|
|
1749
1749
|
}
|
|
1750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1751
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1750
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1751
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, providedIn: "root" }); }
|
|
1752
1752
|
}
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusService, decorators: [{
|
|
1754
1754
|
type: Injectable,
|
|
1755
1755
|
args: [{ providedIn: "root" }]
|
|
1756
1756
|
}] });
|
|
@@ -1776,10 +1776,10 @@ class SessionSharedService {
|
|
|
1776
1776
|
// console.log('shared set', key, value);
|
|
1777
1777
|
this.data.set(key, value);
|
|
1778
1778
|
}
|
|
1779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1780
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1780
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, providedIn: "root" }); }
|
|
1781
1781
|
}
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SessionSharedService, decorators: [{
|
|
1783
1783
|
type: Injectable,
|
|
1784
1784
|
args: [{ providedIn: "root" }]
|
|
1785
1785
|
}], ctorParameters: () => [] });
|
|
@@ -1792,10 +1792,10 @@ class TableViewService {
|
|
|
1792
1792
|
sendExportMessage() {
|
|
1793
1793
|
this.observableExportSource.next(true);
|
|
1794
1794
|
}
|
|
1795
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1796
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1796
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, providedIn: "root" }); }
|
|
1797
1797
|
}
|
|
1798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: TableViewService, decorators: [{
|
|
1799
1799
|
type: Injectable,
|
|
1800
1800
|
args: [{ providedIn: "root" }]
|
|
1801
1801
|
}], ctorParameters: () => [] });
|
|
@@ -1814,10 +1814,10 @@ class ToolbarService {
|
|
|
1814
1814
|
toolbar.componentId = componentId;
|
|
1815
1815
|
this.observableToolbarSource.next(toolbar);
|
|
1816
1816
|
}
|
|
1817
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1818
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1817
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1818
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, providedIn: "root" }); }
|
|
1819
1819
|
}
|
|
1820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ToolbarService, decorators: [{
|
|
1821
1821
|
type: Injectable,
|
|
1822
1822
|
args: [{ providedIn: "root" }]
|
|
1823
1823
|
}], ctorParameters: () => [] });
|
|
@@ -1865,17 +1865,17 @@ class UploadService {
|
|
|
1865
1865
|
getUrlDownloadFile(id) {
|
|
1866
1866
|
return `${this.DOWNLOAD_URL}${id}`;
|
|
1867
1867
|
}
|
|
1868
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1869
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1869
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, providedIn: "root" }); }
|
|
1870
1870
|
}
|
|
1871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: UploadService, decorators: [{
|
|
1872
1872
|
type: Injectable,
|
|
1873
1873
|
args: [{ providedIn: "root" }]
|
|
1874
1874
|
}], ctorParameters: () => [] });
|
|
1875
1875
|
|
|
1876
1876
|
class ClearItemsService {
|
|
1877
1877
|
constructor() {
|
|
1878
|
-
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : []));
|
|
1878
|
+
this.clearItems = signal(false, ...(ngDevMode ? [{ debugName: "clearItems" }] : /* istanbul ignore next */ []));
|
|
1879
1879
|
}
|
|
1880
1880
|
setClearItems(value) {
|
|
1881
1881
|
this.clearItems.set(value);
|
|
@@ -1883,10 +1883,10 @@ class ClearItemsService {
|
|
|
1883
1883
|
getClearItems() {
|
|
1884
1884
|
return this.clearItems;
|
|
1885
1885
|
}
|
|
1886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1887
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1886
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1887
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService }); }
|
|
1888
1888
|
}
|
|
1889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ClearItemsService, decorators: [{
|
|
1890
1890
|
type: Injectable
|
|
1891
1891
|
}], ctorParameters: () => [] });
|
|
1892
1892
|
|
|
@@ -1903,10 +1903,10 @@ class BaseComponent {
|
|
|
1903
1903
|
getHelpSectionUrl(section) {
|
|
1904
1904
|
return this.ayudaService.baseHelpUrl$() + '#/' + section + "/";
|
|
1905
1905
|
}
|
|
1906
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1907
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1906
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1907
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BaseComponent, isStandalone: true, ngImport: i0 }); }
|
|
1908
1908
|
}
|
|
1909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1910
1910
|
type: Directive
|
|
1911
1911
|
}] });
|
|
1912
1912
|
|
|
@@ -2388,7 +2388,7 @@ function makeToolbarChildList(enableDelete) {
|
|
|
2388
2388
|
class BitBreadCrumbComponent {
|
|
2389
2389
|
constructor() {
|
|
2390
2390
|
this.router = inject(Router);
|
|
2391
|
-
this.bc = input([], ...(ngDevMode ?
|
|
2391
|
+
this.bc = input([], { ...(ngDevMode ? { debugName: "bc" } : /* istanbul ignore next */ {}), alias: "breadcrumb" });
|
|
2392
2392
|
}
|
|
2393
2393
|
/** Comprobamos si los datos de entrada no están definidos para inicializarlos en blanco */
|
|
2394
2394
|
ngOnInit() {
|
|
@@ -2406,8 +2406,8 @@ class BitBreadCrumbComponent {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
return false; //para evitar que navegue al href="#"
|
|
2408
2408
|
}
|
|
2409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2410
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2409
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBreadCrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2410
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitBreadCrumbComponent, isStandalone: false, selector: "bit-breadcrumb", inputs: { bc: { classPropertyName: "bc", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2411
2411
|
<ul class="breadcrumb">
|
|
2412
2412
|
@for (path of bc(); track path; let i = $index) {
|
|
2413
2413
|
<li [class.active]="i == bc().length - 1">
|
|
@@ -2422,7 +2422,7 @@ class BitBreadCrumbComponent {
|
|
|
2422
2422
|
</ul>
|
|
2423
2423
|
`, isInline: true, dependencies: [{ kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2424
2424
|
}
|
|
2425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBreadCrumbComponent, decorators: [{
|
|
2426
2426
|
type: Component,
|
|
2427
2427
|
args: [{
|
|
2428
2428
|
selector: "bit-breadcrumb",
|
|
@@ -2451,8 +2451,8 @@ class BitControlMessages {
|
|
|
2451
2451
|
constructor() {
|
|
2452
2452
|
this.focusService = inject(FocusService);
|
|
2453
2453
|
this.translateService = inject(TranslateService);
|
|
2454
|
-
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : []));
|
|
2455
|
-
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : []));
|
|
2454
|
+
this.control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : /* istanbul ignore next */ []));
|
|
2455
|
+
this.field = input(...(ngDevMode ? [undefined, { debugName: "field" }] : /* istanbul ignore next */ []));
|
|
2456
2456
|
}
|
|
2457
2457
|
get isError() {
|
|
2458
2458
|
if (this.focusService.getFocusedElement() !== this.field()) {
|
|
@@ -2469,18 +2469,19 @@ class BitControlMessages {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
return false;
|
|
2471
2471
|
}
|
|
2472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitControlMessages, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2473
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitControlMessages, isStandalone: false, selector: "control-messages", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
2474
2474
|
@if (isError) {
|
|
2475
2475
|
<div>
|
|
2476
2476
|
<span class="mensaje-error-input">{{ errorMessage$ | async }}</span>
|
|
2477
2477
|
</div>
|
|
2478
2478
|
}
|
|
2479
|
-
`, isInline: true, dependencies: [{ kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
|
|
2479
|
+
`, isInline: true, dependencies: [{ kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2480
2480
|
}
|
|
2481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitControlMessages, decorators: [{
|
|
2482
2482
|
type: Component,
|
|
2483
2483
|
args: [{
|
|
2484
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2484
2485
|
selector: "control-messages",
|
|
2485
2486
|
template: `
|
|
2486
2487
|
@if (isError) {
|
|
@@ -2522,8 +2523,11 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2522
2523
|
super();
|
|
2523
2524
|
this.bitMessageService = inject(BitMessageService);
|
|
2524
2525
|
this.translateService = inject(TranslateService);
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2526
|
+
this.message = signal(new BitMessage("", ""), ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
2527
|
+
this.display = signal(false, ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
2528
|
+
this.errorAccessUrl = toSignal(this.translateService.selectTranslate("messages.erroraccessurl", {}, "bitnglibrary"), { initialValue: "" });
|
|
2529
|
+
this.errorAccess = toSignal(this.translateService.selectTranslate("messages.erroraccess", {}, "bitnglibrary"), { initialValue: "" });
|
|
2530
|
+
this.isSeverityInfo = computed(() => this.message().severity === "info", ...(ngDevMode ? [{ debugName: "isSeverityInfo" }] : /* istanbul ignore next */ []));
|
|
2527
2531
|
const bitMessageService = this.bitMessageService;
|
|
2528
2532
|
//console.log("DialogComponent contructor(" + bitMessageService + ")");
|
|
2529
2533
|
//Nos suscribimos a la espera de que envíen mensajes
|
|
@@ -2534,69 +2538,41 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2534
2538
|
this.showError(message);
|
|
2535
2539
|
});
|
|
2536
2540
|
}
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
this.getMessagesI18N();
|
|
2541
|
-
}
|
|
2542
|
-
getMessagesI18N() {
|
|
2543
|
-
this.translateService
|
|
2544
|
-
.selectTranslate("messages.erroraccessurl", {}, "bitnglibrary")
|
|
2545
|
-
.pipe(takeUntil(this.destroy$))
|
|
2546
|
-
.subscribe((v) => (this.errorAccessUrl = v));
|
|
2547
|
-
this.translateService
|
|
2548
|
-
.selectTranslate("messages.erroraccess", {}, "bitnglibrary")
|
|
2549
|
-
.pipe(takeUntil(this.destroy$))
|
|
2550
|
-
.subscribe((v) => (this.errorAccess = v));
|
|
2551
|
-
}
|
|
2552
|
-
showMessage(message) {
|
|
2553
|
-
this.message = message;
|
|
2554
|
-
if (this.message.json) {
|
|
2541
|
+
showMessage(incoming) {
|
|
2542
|
+
let content = incoming.message;
|
|
2543
|
+
if (incoming.json) {
|
|
2555
2544
|
try {
|
|
2556
|
-
|
|
2557
|
-
|
|
2545
|
+
const parsed = eval("(" + incoming.message + ")"); //{"w":1, "b":'foo', "c":[false,'false',null, 'null', {"d":{"e":1.3e5,"f":'2.3e5'}}]};
|
|
2546
|
+
content = JSON.stringify(parsed, undefined, 2);
|
|
2558
2547
|
}
|
|
2559
2548
|
catch (error) {
|
|
2560
2549
|
console.warn("No pudo convertirse a JSON la información del log");
|
|
2561
2550
|
}
|
|
2562
2551
|
}
|
|
2563
|
-
|
|
2564
|
-
this.
|
|
2552
|
+
const finalContent = content || BitDialogComponent.MENSAJE_VOID;
|
|
2553
|
+
const height = incoming.height === 0 ? this.calculateHeightNumber(finalContent) : incoming.height;
|
|
2554
|
+
this.message.set(new BitMessage(incoming.title, finalContent, incoming.width, height, incoming.modal, incoming.severity, incoming.masInfo, incoming.json));
|
|
2555
|
+
this.display.set(true);
|
|
2565
2556
|
}
|
|
2566
2557
|
showError(error) {
|
|
2567
|
-
|
|
2558
|
+
const messageError = error.url ? `${this.errorAccessUrl()} ${error.url}` : `${this.errorAccess()}`;
|
|
2568
2559
|
this.showMessage(new BitMessage(messageError, error.errorText, 1024, 600, false, BitMessage.ERROR, error.trazaError));
|
|
2569
2560
|
}
|
|
2570
|
-
get isSeverityInfo() {
|
|
2571
|
-
return this.message && this.message.severity === "info";
|
|
2572
|
-
}
|
|
2573
2561
|
/**
|
|
2574
2562
|
* Calcula la altura del diálogo en función de la información a mostrar.
|
|
2575
2563
|
* TODO: Contar las líneas reales del mensaje en vez de la longitud
|
|
2576
2564
|
*/
|
|
2577
|
-
calculateHeightNumber() {
|
|
2578
|
-
|
|
2579
|
-
if (msj) {
|
|
2580
|
-
if (msj.length < 100) {
|
|
2581
|
-
return 100;
|
|
2582
|
-
}
|
|
2583
|
-
else if (msj.length < 200) {
|
|
2584
|
-
return 200;
|
|
2585
|
-
}
|
|
2586
|
-
else if (msj.length < 300) {
|
|
2587
|
-
return 300;
|
|
2588
|
-
}
|
|
2589
|
-
else if (msj.length < 400) {
|
|
2590
|
-
return 400;
|
|
2591
|
-
}
|
|
2592
|
-
else {
|
|
2593
|
-
return 500;
|
|
2594
|
-
}
|
|
2595
|
-
}
|
|
2596
|
-
else {
|
|
2597
|
-
this.message.message = BitDialogComponent.MENSAJE_VOID;
|
|
2565
|
+
calculateHeightNumber(msj) {
|
|
2566
|
+
if (msj.length < 100)
|
|
2598
2567
|
return 100;
|
|
2599
|
-
|
|
2568
|
+
else if (msj.length < 200)
|
|
2569
|
+
return 200;
|
|
2570
|
+
else if (msj.length < 300)
|
|
2571
|
+
return 300;
|
|
2572
|
+
else if (msj.length < 400)
|
|
2573
|
+
return 400;
|
|
2574
|
+
else
|
|
2575
|
+
return 500;
|
|
2600
2576
|
}
|
|
2601
2577
|
syntaxHighlight(json) {
|
|
2602
2578
|
if (typeof json != "string") {
|
|
@@ -2622,23 +2598,24 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2622
2598
|
return '<span class="' + cls + '">' + match + "</span>";
|
|
2623
2599
|
});
|
|
2624
2600
|
}
|
|
2625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2627
|
-
@if (!isSeverityInfo) {
|
|
2601
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2602
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDialogComponent, isStandalone: false, selector: "bit-dialog", usesInheritance: true, ngImport: i0, template: `
|
|
2603
|
+
@if (!isSeverityInfo()) {
|
|
2628
2604
|
<p-dialog
|
|
2629
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2630
|
-
header="{{ message.title }}"
|
|
2631
|
-
[
|
|
2605
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2606
|
+
header="{{ message().title }}"
|
|
2607
|
+
[visible]="display()"
|
|
2608
|
+
(visibleChange)="display.set($event)"
|
|
2632
2609
|
[style]="{ width: '50vw' }"
|
|
2633
2610
|
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2634
|
-
[modal]="message.modal"
|
|
2611
|
+
[modal]="message().modal"
|
|
2635
2612
|
showEffect="fade"
|
|
2636
2613
|
position="top"
|
|
2637
2614
|
>
|
|
2638
|
-
<p class="mensaje-dialogo">{{ message.message }}</p>
|
|
2639
|
-
@if (message.masInfo) {
|
|
2615
|
+
<p class="mensaje-dialogo">{{ message().message }}</p>
|
|
2616
|
+
@if (message().masInfo) {
|
|
2640
2617
|
<span>
|
|
2641
|
-
<pre>{{ message.masInfo }}</pre>
|
|
2618
|
+
<pre>{{ message().masInfo }}</pre>
|
|
2642
2619
|
</span>
|
|
2643
2620
|
}
|
|
2644
2621
|
<footer>
|
|
@@ -2646,57 +2623,61 @@ class BitDialogComponent extends BaseComponent {
|
|
|
2646
2623
|
</footer>
|
|
2647
2624
|
</p-dialog>
|
|
2648
2625
|
}
|
|
2649
|
-
@if (isSeverityInfo && !message.json) {
|
|
2626
|
+
@if (isSeverityInfo() && !message().json) {
|
|
2650
2627
|
<p-dialog
|
|
2651
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2652
|
-
header="{{ message.title }}"
|
|
2628
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2629
|
+
header="{{ message().title }}"
|
|
2653
2630
|
[style]="{ width: '50vw' }"
|
|
2654
2631
|
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2655
|
-
[
|
|
2656
|
-
|
|
2632
|
+
[visible]="display()"
|
|
2633
|
+
(visibleChange)="display.set($event)"
|
|
2634
|
+
[modal]="message().modal"
|
|
2657
2635
|
showEffect="fade"
|
|
2658
2636
|
position="top"
|
|
2659
2637
|
>
|
|
2660
|
-
<p class="mensaje-dialogo" [innerHTML]="message.message"></p>
|
|
2638
|
+
<p class="mensaje-dialogo" [innerHTML]="message().message"></p>
|
|
2661
2639
|
</p-dialog>
|
|
2662
2640
|
}
|
|
2663
|
-
@if (message.json) {
|
|
2641
|
+
@if (message().json) {
|
|
2664
2642
|
<p-dialog
|
|
2665
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2666
|
-
header="{{ message.title }}"
|
|
2667
|
-
[
|
|
2643
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2644
|
+
header="{{ message().title }}"
|
|
2645
|
+
[visible]="display()"
|
|
2646
|
+
(visibleChange)="display.set($event)"
|
|
2668
2647
|
[style]="{ width: '50vw' }"
|
|
2669
2648
|
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2670
2649
|
[baseZIndex]="10000"
|
|
2671
|
-
[modal]="message.modal"
|
|
2650
|
+
[modal]="message().modal"
|
|
2672
2651
|
showEffect="fade"
|
|
2673
2652
|
position="top"
|
|
2674
2653
|
>
|
|
2675
|
-
<pre [innerHTML]="syntaxHighlight(message.message)"></pre>
|
|
2654
|
+
<pre [innerHTML]="syntaxHighlight(message().message)"></pre>
|
|
2676
2655
|
</p-dialog>
|
|
2677
2656
|
}
|
|
2678
|
-
`, 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"] }] }); }
|
|
2657
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2679
2658
|
}
|
|
2680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDialogComponent, decorators: [{
|
|
2681
2660
|
type: Component,
|
|
2682
2661
|
args: [{
|
|
2662
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2683
2663
|
selector: "bit-dialog",
|
|
2684
2664
|
template: `
|
|
2685
|
-
@if (!isSeverityInfo) {
|
|
2665
|
+
@if (!isSeverityInfo()) {
|
|
2686
2666
|
<p-dialog
|
|
2687
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2688
|
-
header="{{ message.title }}"
|
|
2689
|
-
[
|
|
2667
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2668
|
+
header="{{ message().title }}"
|
|
2669
|
+
[visible]="display()"
|
|
2670
|
+
(visibleChange)="display.set($event)"
|
|
2690
2671
|
[style]="{ width: '50vw' }"
|
|
2691
2672
|
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2692
|
-
[modal]="message.modal"
|
|
2673
|
+
[modal]="message().modal"
|
|
2693
2674
|
showEffect="fade"
|
|
2694
2675
|
position="top"
|
|
2695
2676
|
>
|
|
2696
|
-
<p class="mensaje-dialogo">{{ message.message }}</p>
|
|
2697
|
-
@if (message.masInfo) {
|
|
2677
|
+
<p class="mensaje-dialogo">{{ message().message }}</p>
|
|
2678
|
+
@if (message().masInfo) {
|
|
2698
2679
|
<span>
|
|
2699
|
-
<pre>{{ message.masInfo }}</pre>
|
|
2680
|
+
<pre>{{ message().masInfo }}</pre>
|
|
2700
2681
|
</span>
|
|
2701
2682
|
}
|
|
2702
2683
|
<footer>
|
|
@@ -2704,33 +2685,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
2704
2685
|
</footer>
|
|
2705
2686
|
</p-dialog>
|
|
2706
2687
|
}
|
|
2707
|
-
@if (isSeverityInfo && !message.json) {
|
|
2688
|
+
@if (isSeverityInfo() && !message().json) {
|
|
2708
2689
|
<p-dialog
|
|
2709
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2710
|
-
header="{{ message.title }}"
|
|
2690
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2691
|
+
header="{{ message().title }}"
|
|
2711
2692
|
[style]="{ width: '50vw' }"
|
|
2712
2693
|
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2713
|
-
[
|
|
2714
|
-
|
|
2694
|
+
[visible]="display()"
|
|
2695
|
+
(visibleChange)="display.set($event)"
|
|
2696
|
+
[modal]="message().modal"
|
|
2715
2697
|
showEffect="fade"
|
|
2716
2698
|
position="top"
|
|
2717
2699
|
>
|
|
2718
|
-
<p class="mensaje-dialogo" [innerHTML]="message.message"></p>
|
|
2700
|
+
<p class="mensaje-dialogo" [innerHTML]="message().message"></p>
|
|
2719
2701
|
</p-dialog>
|
|
2720
2702
|
}
|
|
2721
|
-
@if (message.json) {
|
|
2703
|
+
@if (message().json) {
|
|
2722
2704
|
<p-dialog
|
|
2723
|
-
class="scroll-y scroll-{{ message.height }}"
|
|
2724
|
-
header="{{ message.title }}"
|
|
2725
|
-
[
|
|
2705
|
+
class="scroll-y scroll-{{ message().height }}"
|
|
2706
|
+
header="{{ message().title }}"
|
|
2707
|
+
[visible]="display()"
|
|
2708
|
+
(visibleChange)="display.set($event)"
|
|
2726
2709
|
[style]="{ width: '50vw' }"
|
|
2727
2710
|
[breakpoints]="{ '1199px': '65vw', '767px': '80vw', '575px': '95vw' }"
|
|
2728
2711
|
[baseZIndex]="10000"
|
|
2729
|
-
[modal]="message.modal"
|
|
2712
|
+
[modal]="message().modal"
|
|
2730
2713
|
showEffect="fade"
|
|
2731
2714
|
position="top"
|
|
2732
2715
|
>
|
|
2733
|
-
<pre [innerHTML]="syntaxHighlight(message.message)"></pre>
|
|
2716
|
+
<pre [innerHTML]="syntaxHighlight(message().message)"></pre>
|
|
2734
2717
|
</p-dialog>
|
|
2735
2718
|
}
|
|
2736
2719
|
`
|
|
@@ -2780,10 +2763,10 @@ class CantidadMonedaPipe {
|
|
|
2780
2763
|
: "";
|
|
2781
2764
|
return integer + fraction;
|
|
2782
2765
|
}
|
|
2783
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2784
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2766
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2767
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, isStandalone: false, name: "cantidadMoneda" }); }
|
|
2785
2768
|
}
|
|
2786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CantidadMonedaPipe, decorators: [{
|
|
2787
2770
|
type: Pipe,
|
|
2788
2771
|
args: [{
|
|
2789
2772
|
name: "cantidadMoneda",
|
|
@@ -2793,12 +2776,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
2793
2776
|
|
|
2794
2777
|
class BitPajigatorComponent {
|
|
2795
2778
|
constructor() {
|
|
2796
|
-
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] : []));
|
|
2797
|
-
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
2798
|
-
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] : []));
|
|
2799
|
-
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : []));
|
|
2800
|
-
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
2801
|
-
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : []));
|
|
2779
|
+
this.paginator = input(true, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
2780
|
+
this.page = model(0, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
2781
|
+
this.totalItems = input(0, ...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2782
|
+
this.rowsPerPageOptions = input([20], ...(ngDevMode ? [{ debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []));
|
|
2783
|
+
this.itemsPerPage = model(this.rowsPerPageOptions()[0], ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
2784
|
+
this.maxCurrentItems = input(0, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : /* istanbul ignore next */ []));
|
|
2802
2785
|
this.onPageChange = output();
|
|
2803
2786
|
this.onPageSizeChange = output();
|
|
2804
2787
|
this.maxPages = computed(() => {
|
|
@@ -2811,10 +2794,10 @@ class BitPajigatorComponent {
|
|
|
2811
2794
|
}
|
|
2812
2795
|
console.log("totalItems:" + this.totalItems() + "maxPages:" + maxPages + " itemsPerPage:" + this.itemsPerPage());
|
|
2813
2796
|
return maxPages;
|
|
2814
|
-
}, ...(ngDevMode ? [{ debugName: "maxPages" }] : []));
|
|
2815
|
-
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] : []));
|
|
2816
|
-
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] : []));
|
|
2817
|
-
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] : []));
|
|
2797
|
+
}, ...(ngDevMode ? [{ debugName: "maxPages" }] : /* istanbul ignore next */ []));
|
|
2798
|
+
this.showPageInfo = computed(() => this.totalItems() > 0, ...(ngDevMode ? [{ debugName: "showPageInfo" }] : /* istanbul ignore next */ []));
|
|
2799
|
+
this.showLeftNavigationButton = computed(() => this.totalItems() > 0 && this.page() != 1, ...(ngDevMode ? [{ debugName: "showLeftNavigationButton" }] : /* istanbul ignore next */ []));
|
|
2800
|
+
this.showRightNavigationButton = computed(() => this.totalItems() > 0 && this.page() < this.maxPages(), ...(ngDevMode ? [{ debugName: "showRightNavigationButton" }] : /* istanbul ignore next */ []));
|
|
2818
2801
|
}
|
|
2819
2802
|
changeItemsPerpage(items) {
|
|
2820
2803
|
if (!items)
|
|
@@ -2828,10 +2811,10 @@ class BitPajigatorComponent {
|
|
|
2828
2811
|
this.page.update((current) => (current += direction));
|
|
2829
2812
|
this.onPageChange.emit(this.page());
|
|
2830
2813
|
}
|
|
2831
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2832
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2814
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPajigatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2815
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitPajigatorComponent, isStandalone: false, selector: "bit-pajigator", inputs: { paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, maxCurrentItems: { classPropertyName: "maxCurrentItems", publicName: "maxCurrentItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange", itemsPerPage: "itemsPerPageChange", onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange" }, ngImport: i0, template: "<div [class]=\"paginator() ? 'pajigator-outer-container' : 'pajigator-outer-container-single-result'\">\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 }); }
|
|
2833
2816
|
}
|
|
2834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPajigatorComponent, decorators: [{
|
|
2835
2818
|
type: Component,
|
|
2836
2819
|
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>" }]
|
|
2837
2820
|
}], propDecorators: { paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], rowsPerPageOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowsPerPageOptions", required: false }] }], itemsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsPerPage", required: false }] }, { type: i0.Output, args: ["itemsPerPageChange"] }], maxCurrentItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxCurrentItems", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], onPageSizeChange: [{ type: i0.Output, args: ["onPageSizeChange"] }] } });
|
|
@@ -2839,25 +2822,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
2839
2822
|
class BitHelpComponent {
|
|
2840
2823
|
constructor() {
|
|
2841
2824
|
this.ayudaService = inject(AyudaService);
|
|
2842
|
-
this.ayuda = linkedSignal(...(ngDevMode ?
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
computation: (newAyuda, _) => {
|
|
2849
|
-
console.log("newAyuda", newAyuda);
|
|
2850
|
-
return newAyuda;
|
|
2851
|
-
}
|
|
2852
|
-
}]));
|
|
2853
|
-
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : []));
|
|
2825
|
+
this.ayuda = linkedSignal({ ...(ngDevMode ? { debugName: "ayuda" } : /* istanbul ignore next */ {}), source: this.ayudaService.mostrar,
|
|
2826
|
+
computation: (newAyuda, _) => {
|
|
2827
|
+
console.log("newAyuda", newAyuda);
|
|
2828
|
+
return newAyuda;
|
|
2829
|
+
} });
|
|
2830
|
+
this.mostrarAyuda = computed(() => this.ayuda() != null, ...(ngDevMode ? [{ debugName: "mostrarAyuda" }] : /* istanbul ignore next */ []));
|
|
2854
2831
|
}
|
|
2855
2832
|
/** Oculta el modal con los avisos */
|
|
2856
2833
|
hideAyuda() {
|
|
2857
2834
|
this.ayuda.set(null);
|
|
2858
2835
|
}
|
|
2859
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2860
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHelpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2837
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitHelpComponent, isStandalone: false, selector: "bit-help", ngImport: i0, template: `
|
|
2861
2838
|
@if (mostrarAyuda()) {
|
|
2862
2839
|
<div class="ventana-ayuda">
|
|
2863
2840
|
<div class="ayuda-header">
|
|
@@ -2872,7 +2849,7 @@ class BitHelpComponent {
|
|
|
2872
2849
|
}
|
|
2873
2850
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2874
2851
|
}
|
|
2875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHelpComponent, decorators: [{
|
|
2876
2853
|
type: Component,
|
|
2877
2854
|
args: [{
|
|
2878
2855
|
selector: "bit-help",
|
|
@@ -2900,36 +2877,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
2900
2877
|
class BitFooterMessagesComponent {
|
|
2901
2878
|
constructor() {
|
|
2902
2879
|
this.translateService = inject(TranslateService);
|
|
2903
|
-
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2904
|
-
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] : []));
|
|
2905
|
-
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : []));
|
|
2906
|
-
this.typeFooter = input("list", ...(ngDevMode ?
|
|
2907
|
-
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] : []));
|
|
2908
|
-
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] : []));
|
|
2909
|
-
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] : []));
|
|
2880
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2881
|
+
this.maxCurrentItems = input(...(ngDevMode ? [undefined, { debugName: "maxCurrentItems" }] : /* istanbul ignore next */ []));
|
|
2882
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : /* istanbul ignore next */ []));
|
|
2883
|
+
this.typeFooter = input("list", { ...(ngDevMode ? { debugName: "typeFooter" } : /* istanbul ignore next */ {}), alias: "type" });
|
|
2884
|
+
this.isFooterList = computed(() => this.typeFooter() === TYPE_LIST, ...(ngDevMode ? [{ debugName: "isFooterList" }] : /* istanbul ignore next */ []));
|
|
2885
|
+
this.isFooterScroll = computed(() => this.typeFooter() === TYPE_SCROLL, ...(ngDevMode ? [{ debugName: "isFooterScroll" }] : /* istanbul ignore next */ []));
|
|
2886
|
+
this.isFooterForm = computed(() => this.typeFooter() === TYPE_FORM, ...(ngDevMode ? [{ debugName: "isFooterForm" }] : /* istanbul ignore next */ []));
|
|
2910
2887
|
/** Flag: la página está realizando la búsqueda. */
|
|
2911
|
-
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : []));
|
|
2888
|
+
this.searchInitiated = computed(() => this.status() === PageStatus.Init || this.status() == PageStatus.Reset || !this.status(), ...(ngDevMode ? [{ debugName: "searchInitiated" }] : /* istanbul ignore next */ []));
|
|
2912
2889
|
/** Flag: la página está realizando la búsqueda. */
|
|
2913
|
-
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : []));
|
|
2890
|
+
this.searching = computed(() => this.status() === PageStatus.Searching, ...(ngDevMode ? [{ debugName: "searching" }] : /* istanbul ignore next */ []));
|
|
2914
2891
|
/** Flag: la página ha finalizado la última búsqueda. */
|
|
2915
|
-
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : []));
|
|
2892
|
+
this.searchFinished = computed(() => this.status() === PageStatus.FinishSearch, ...(ngDevMode ? [{ debugName: "searchFinished" }] : /* istanbul ignore next */ []));
|
|
2916
2893
|
/** Flag: la página está en modo solo lectura */
|
|
2917
|
-
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
2894
|
+
this.readOnly = computed(() => this.status() == PageStatus.ReadOnly, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
2918
2895
|
/** Flag: la página ha finalizado con error */
|
|
2919
|
-
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
2896
|
+
this.error = computed(() => this.status() == PageStatus.Error, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2920
2897
|
/** Flag: encontrado resultado. */
|
|
2921
2898
|
this.foundResult = computed(() => {
|
|
2922
2899
|
return (this.searchFinished() &&
|
|
2923
2900
|
((this.isFooterList() && this.totalItems() > 0) ||
|
|
2924
2901
|
this.isFooterForm() ||
|
|
2925
2902
|
(this.isFooterScroll() && this.totalItems() <= this.maxCurrentItems())));
|
|
2926
|
-
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : []));
|
|
2903
|
+
}, ...(ngDevMode ? [{ debugName: "foundResult" }] : /* istanbul ignore next */ []));
|
|
2927
2904
|
/** Flag: hay más resultados (scroll). */
|
|
2928
2905
|
this.moreResults = computed(() => {
|
|
2929
2906
|
return this.searchFinished() && this.isFooterScroll() && this.totalItems() > this.maxCurrentItems();
|
|
2930
|
-
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : []));
|
|
2907
|
+
}, ...(ngDevMode ? [{ debugName: "moreResults" }] : /* istanbul ignore next */ []));
|
|
2931
2908
|
/** Flag: no hay resultados. */
|
|
2932
|
-
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : []));
|
|
2909
|
+
this.emptyResult = computed(() => this.searchFinished() && this.totalItems() === 0, ...(ngDevMode ? [{ debugName: "emptyResult" }] : /* istanbul ignore next */ []));
|
|
2933
2910
|
this.messages = computed(() => {
|
|
2934
2911
|
let messagesMap = new Map();
|
|
2935
2912
|
if (this.isFooterList() || this.isFooterScroll()) {
|
|
@@ -2950,7 +2927,7 @@ class BitFooterMessagesComponent {
|
|
|
2950
2927
|
}
|
|
2951
2928
|
messagesMap.set(PageStatus.Error, "bitnglibrary.footer.error");
|
|
2952
2929
|
return messagesMap;
|
|
2953
|
-
}, ...(ngDevMode ? [{ debugName: "messages" }] : []));
|
|
2930
|
+
}, ...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
|
|
2954
2931
|
this.initMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Init)));
|
|
2955
2932
|
this.searchingMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.Searching)));
|
|
2956
2933
|
this.finishMessage = toSignal(this.translateService.selectTranslate(this.messages().get(PageStatus.FinishSearch)));
|
|
@@ -2969,7 +2946,7 @@ class BitFooterMessagesComponent {
|
|
|
2969
2946
|
else if (this.isFooterForm()) {
|
|
2970
2947
|
return `mensaje-form mensaje-${type}`;
|
|
2971
2948
|
}
|
|
2972
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
2949
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : /* istanbul ignore next */ []));
|
|
2973
2950
|
this.message = computed(() => {
|
|
2974
2951
|
if (this.searchInitiated())
|
|
2975
2952
|
return this.initMessage();
|
|
@@ -2986,12 +2963,12 @@ class BitFooterMessagesComponent {
|
|
|
2986
2963
|
if (this.error())
|
|
2987
2964
|
return this.errorMessage();
|
|
2988
2965
|
return "";
|
|
2989
|
-
}, ...(ngDevMode ? [{ debugName: "message" }] : []));
|
|
2966
|
+
}, ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
2990
2967
|
}
|
|
2991
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2992
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
2968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterMessagesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2969
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitFooterMessagesComponent, isStandalone: false, selector: "bit-footer-messages", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, maxCurrentItems: { classPropertyName: "maxCurrentItems", publicName: "maxCurrentItems", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, typeFooter: { classPropertyName: "typeFooter", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div>\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 }); }
|
|
2993
2970
|
}
|
|
2994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterMessagesComponent, decorators: [{
|
|
2995
2972
|
type: Component,
|
|
2996
2973
|
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>" }]
|
|
2997
2974
|
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], maxCurrentItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxCurrentItems", required: false }] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], typeFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
@@ -3001,28 +2978,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3001
2978
|
**/
|
|
3002
2979
|
class BitFooterComponent {
|
|
3003
2980
|
constructor() {
|
|
3004
|
-
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : [])); // Número total de elementos recuperados de la consulta
|
|
3005
|
-
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] : [])); // filtro de búsqieda
|
|
3006
|
-
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
3007
|
-
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] : []));
|
|
3008
|
-
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] : []));
|
|
3009
|
-
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] : [])); // Indicará si lo queremos fijo abajo en la página. Por defecto sí.
|
|
3010
|
-
this.typeFooter = input("list", ...(ngDevMode ?
|
|
3011
|
-
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
2981
|
+
this.totalItems = input(...(ngDevMode ? [undefined, { debugName: "totalItems" }] : /* istanbul ignore next */ [])); // Número total de elementos recuperados de la consulta
|
|
2982
|
+
this.filter = input(...(ngDevMode ? [undefined, { debugName: "filter" }] : /* istanbul ignore next */ [])); // filtro de búsqieda
|
|
2983
|
+
this.status = input(PageStatus.Init, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ [])); // Determina en qué estado está la página: PageStatus.Init, PageStatus.SEARCHING, PageStatus.FINISH_SEARCH
|
|
2984
|
+
this.paginator = input(false, ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
2985
|
+
this.mostrarAvisos = input(true, ...(ngDevMode ? [{ debugName: "mostrarAvisos" }] : /* istanbul ignore next */ []));
|
|
2986
|
+
this.fixed = input(true, ...(ngDevMode ? [{ debugName: "fixed" }] : /* istanbul ignore next */ [])); // Indicará si lo queremos fijo abajo en la página. Por defecto sí.
|
|
2987
|
+
this.typeFooter = input("list", { ...(ngDevMode ? { debugName: "typeFooter" } : /* istanbul ignore next */ {}), alias: "type" });
|
|
2988
|
+
this.visible = input(true, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
3012
2989
|
this.onPageChange = output(); //para notificar cambios en la página a mostrar
|
|
3013
2990
|
this.onNewPageSize = output(); //para notificar cambios en los elementos a mostrar por página
|
|
3014
2991
|
this.baseItemsPerPage = BaseFilter.RESULTADOS_PAGE; // guardamos el número de resultados pre-configurados por página para mostrar la lista de x, x+10 y x+20
|
|
3015
|
-
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
3016
|
-
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
2992
|
+
this.page = computed(() => (this.filter() ? this.filter().pagina : 1), ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
2993
|
+
this.itemsPerPage = computed(() => (this.filter() ? this.filter().resultados : this.baseItemsPerPage), ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
3017
2994
|
this.maxCurrentItems = computed(() => {
|
|
3018
2995
|
let maxCurrentItems = this.filter()?.pagina * this.filter()?.resultados;
|
|
3019
2996
|
if (maxCurrentItems > this.totalItems()) {
|
|
3020
2997
|
maxCurrentItems = this.totalItems();
|
|
3021
2998
|
}
|
|
3022
2999
|
return maxCurrentItems;
|
|
3023
|
-
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : [])); // número de elementos que mostramos en pantalla. Necesario para el modo scroll
|
|
3024
|
-
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] : []));
|
|
3025
|
-
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] : []));
|
|
3000
|
+
}, ...(ngDevMode ? [{ debugName: "maxCurrentItems" }] : /* istanbul ignore next */ [])); // número de elementos que mostramos en pantalla. Necesario para el modo scroll
|
|
3001
|
+
this.showPajigator = computed(() => this.typeFooter() === "list" && this.visible(), ...(ngDevMode ? [{ debugName: "showPajigator" }] : /* istanbul ignore next */ []));
|
|
3002
|
+
this.showScroll = computed(() => this.typeFooter() === "scroll" && this.visible(), ...(ngDevMode ? [{ debugName: "showScroll" }] : /* istanbul ignore next */ []));
|
|
3026
3003
|
this.getStyle = computed(() => {
|
|
3027
3004
|
if ((this.fixed() && this.typeFooter() === TYPE_LIST) || this.typeFooter() === TYPE_SCROLL) {
|
|
3028
3005
|
return "footer navbar-fixed-bottom";
|
|
@@ -3033,7 +3010,7 @@ class BitFooterComponent {
|
|
|
3033
3010
|
else {
|
|
3034
3011
|
return "footer";
|
|
3035
3012
|
}
|
|
3036
|
-
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : []));
|
|
3013
|
+
}, ...(ngDevMode ? [{ debugName: "getStyle" }] : /* istanbul ignore next */ []));
|
|
3037
3014
|
}
|
|
3038
3015
|
pageChange(page) {
|
|
3039
3016
|
this.onPageChange.emit(page);
|
|
@@ -3041,10 +3018,10 @@ class BitFooterComponent {
|
|
|
3041
3018
|
pageSizeChange(pageSize) {
|
|
3042
3019
|
this.onNewPageSize.emit(pageSize);
|
|
3043
3020
|
}
|
|
3044
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3045
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3022
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitFooterComponent, isStandalone: false, selector: "bit-footer", inputs: { totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, mostrarAvisos: { classPropertyName: "mostrarAvisos", publicName: "mostrarAvisos", isSignal: true, isRequired: false, transformFunction: null }, fixed: { classPropertyName: "fixed", publicName: "fixed", isSignal: true, isRequired: false, transformFunction: null }, typeFooter: { classPropertyName: "typeFooter", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", onNewPageSize: "onNewPageSize" }, ngImport: i0, template: "<footer [class]=\"getStyle()\">\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 }); }
|
|
3046
3023
|
}
|
|
3047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitFooterComponent, decorators: [{
|
|
3048
3025
|
type: Component,
|
|
3049
3026
|
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" }]
|
|
3050
3027
|
}], propDecorators: { totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], paginator: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginator", required: false }] }], mostrarAvisos: [{ type: i0.Input, args: [{ isSignal: true, alias: "mostrarAvisos", required: false }] }], fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }], typeFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], onPageChange: [{ type: i0.Output, args: ["onPageChange"] }], onNewPageSize: [{ type: i0.Output, args: ["onNewPageSize"] }] } });
|
|
@@ -3052,16 +3029,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3052
3029
|
class BitBotonAyudaComponent {
|
|
3053
3030
|
constructor() {
|
|
3054
3031
|
this.ayudaService = inject(AyudaService);
|
|
3055
|
-
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : []));
|
|
3056
|
-
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] : [])); // show a little [?] or a full button
|
|
3057
|
-
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] : [])); // extra CSS classes for HTML component
|
|
3058
|
-
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] : []));
|
|
3032
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : /* istanbul ignore next */ []));
|
|
3033
|
+
this.boton = input(false, ...(ngDevMode ? [{ debugName: "boton" }] : /* istanbul ignore next */ [])); // show a little [?] or a full button
|
|
3034
|
+
this.extraClass = input("", ...(ngDevMode ? [{ debugName: "extraClass" }] : /* istanbul ignore next */ [])); // extra CSS classes for HTML component
|
|
3035
|
+
this.buttonSize = input(undefined, ...(ngDevMode ? [{ debugName: "buttonSize" }] : /* istanbul ignore next */ []));
|
|
3059
3036
|
}
|
|
3060
3037
|
mostrarAyuda() {
|
|
3061
3038
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3062
3039
|
}
|
|
3063
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3064
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3040
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBotonAyudaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3041
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitBotonAyudaComponent, isStandalone: false, selector: "bit-boton-ayuda", inputs: { ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, boton: { classPropertyName: "boton", publicName: "boton", isSignal: true, isRequired: false, transformFunction: null }, extraClass: { classPropertyName: "extraClass", publicName: "extraClass", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3065
3042
|
@if (boton()) {
|
|
3066
3043
|
<p-button type="button" (onClick)="mostrarAyuda()" [size]="buttonSize()" [ngClass]="'p-button-outlined p-button-secondary ' + extraClass()">
|
|
3067
3044
|
{{ "bitnglibrary.help" | transloco }} <span class="fa fa-life-ring"></span>
|
|
@@ -3071,11 +3048,12 @@ class BitBotonAyudaComponent {
|
|
|
3071
3048
|
@if (!boton()) {
|
|
3072
3049
|
<i [ngClass]="'btn-ayuda fa fa-question ' + extraClass()" (click)="mostrarAyuda()"></i>
|
|
3073
3050
|
}
|
|
3074
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["type", "
|
|
3051
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3075
3052
|
}
|
|
3076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitBotonAyudaComponent, decorators: [{
|
|
3077
3054
|
type: Component,
|
|
3078
3055
|
args: [{
|
|
3056
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3079
3057
|
selector: "bit-boton-ayuda",
|
|
3080
3058
|
template: `
|
|
3081
3059
|
@if (boton()) {
|
|
@@ -3096,24 +3074,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3096
3074
|
* Componenente que muestra una barra de botones.
|
|
3097
3075
|
*/
|
|
3098
3076
|
class BitToolbarComponent extends BaseComponent {
|
|
3099
|
-
static { this.FILTER_BUTTON = "filter"; }
|
|
3100
|
-
static { this.PRINT_BUTTON = "print"; }
|
|
3101
|
-
static { this.EXPORT_BUTTON = "export"; }
|
|
3102
|
-
static { this.NEW_BUTTON = "new"; }
|
|
3103
|
-
static { this.SAVE_BUTTON = "save"; }
|
|
3104
|
-
static { this.DELETE_BUTTON = "delete"; }
|
|
3105
|
-
static { this.ADD_BUTTON = "add"; }
|
|
3106
|
-
static { this.HELP_BUTTON = "help"; }
|
|
3107
3077
|
constructor() {
|
|
3108
|
-
super();
|
|
3078
|
+
super(...arguments);
|
|
3109
3079
|
this.translateService = inject(TranslateService);
|
|
3080
|
+
this.translations = toSignal(this.translateService.selectTranslate("toolbar", {}, "bitnglibrary", true), { initialValue: {} });
|
|
3110
3081
|
this.mostrar = false;
|
|
3111
|
-
this.
|
|
3112
|
-
this.
|
|
3113
|
-
this.
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3116
|
-
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : [])); // determina si todas las "other actions" se muestran en un desplegable o depende del atributo displayAsButton de cada una
|
|
3082
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
3083
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual que mostrar para su botón
|
|
3084
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : /* istanbul ignore next */ [])); // género femenino (para los nombres de botones) o no
|
|
3085
|
+
this.buttonSize = input(...(ngDevMode ? [undefined, { debugName: "buttonSize" }] : /* istanbul ignore next */ [])); // tamaño de los botones, por defecto normal
|
|
3086
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : /* istanbul ignore next */ [])); // determina si todas las "other actions" se muestran en un desplegable o depende del atributo displayAsButton de cada una
|
|
3117
3087
|
this.onToolbarButtonPressed = output();
|
|
3118
3088
|
/** Devuelve si hay other actions que deben mostrarse en desplegable (solo cuando hay más de una). */
|
|
3119
3089
|
this.itemsOtherActionsEnDesplegable = computed(() => {
|
|
@@ -3123,12 +3093,12 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3123
3093
|
return actions;
|
|
3124
3094
|
else
|
|
3125
3095
|
return [];
|
|
3126
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : []));
|
|
3096
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnDesplegable" }] : /* istanbul ignore next */ []));
|
|
3127
3097
|
/** Devuelve la clave de traducción del label del botón de "other actions" */
|
|
3128
3098
|
this.otherActionsLabel = computed(() => {
|
|
3129
3099
|
const toolbar = this.toolbar() || {};
|
|
3130
3100
|
return toolbar['_otherActionsLabel'] || 'other-actions';
|
|
3131
|
-
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : []));
|
|
3101
|
+
}, ...(ngDevMode ? [{ debugName: "otherActionsLabel" }] : /* istanbul ignore next */ []));
|
|
3132
3102
|
/** Devuelve si hay other actions que deben mostrarse como botón (incluye la de desplegable si hay solo una). */
|
|
3133
3103
|
this.itemsOtherActionsEnBoton = computed(() => {
|
|
3134
3104
|
const toolbar = this.toolbar() || {};
|
|
@@ -3138,14 +3108,16 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3138
3108
|
if (actionsEnDesplegable?.length === 1)
|
|
3139
3109
|
actions.push(actionsEnDesplegable[0]);
|
|
3140
3110
|
return actions;
|
|
3141
|
-
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : []));
|
|
3142
|
-
this.translateService
|
|
3143
|
-
.selectTranslate("toolbar", {}, "bitnglibrary", true)
|
|
3144
|
-
.pipe(takeUntil(this.destroy$))
|
|
3145
|
-
.subscribe((translations) => {
|
|
3146
|
-
this.translations = translations;
|
|
3147
|
-
});
|
|
3111
|
+
}, ...(ngDevMode ? [{ debugName: "itemsOtherActionsEnBoton" }] : /* istanbul ignore next */ []));
|
|
3148
3112
|
}
|
|
3113
|
+
static { this.FILTER_BUTTON = "filter"; }
|
|
3114
|
+
static { this.PRINT_BUTTON = "print"; }
|
|
3115
|
+
static { this.EXPORT_BUTTON = "export"; }
|
|
3116
|
+
static { this.NEW_BUTTON = "new"; }
|
|
3117
|
+
static { this.SAVE_BUTTON = "save"; }
|
|
3118
|
+
static { this.DELETE_BUTTON = "delete"; }
|
|
3119
|
+
static { this.ADD_BUTTON = "add"; }
|
|
3120
|
+
static { this.HELP_BUTTON = "help"; }
|
|
3149
3121
|
onSplitButtonLabelClick(sb, event) {
|
|
3150
3122
|
setTimeout(() => sb.onDropdownButtonClick(event));
|
|
3151
3123
|
}
|
|
@@ -3199,7 +3171,7 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3199
3171
|
if (this.incluirOtherActionEnDropdown(toolbar[key])) {
|
|
3200
3172
|
let toolbarItem = toolbar[key]; // capture the current toolbar item
|
|
3201
3173
|
actions.push({
|
|
3202
|
-
label: this.translations[toolbarItem.label],
|
|
3174
|
+
label: this.translations()[toolbarItem.label],
|
|
3203
3175
|
icon: toolbarItem.estilo,
|
|
3204
3176
|
visible: toolbarItem.visible,
|
|
3205
3177
|
command: () => {
|
|
@@ -3228,27 +3200,27 @@ class BitToolbarComponent extends BaseComponent {
|
|
|
3228
3200
|
incluirOtherActionComoBoton(toolbarItem) {
|
|
3229
3201
|
return toolbarItem.otherAction && toolbarItem.visible && (!this.otherActionsDropdown() || toolbarItem.displayAsButton === true);
|
|
3230
3202
|
}
|
|
3231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3232
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitToolbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitToolbarComponent, isStandalone: false, selector: "bit-toolbar", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, femenino: { classPropertyName: "femenino", publicName: "femenino", isSignal: true, isRequired: false, transformFunction: null }, buttonSize: { classPropertyName: "buttonSize", publicName: "buttonSize", isSignal: true, isRequired: false, transformFunction: null }, otherActionsDropdown: { classPropertyName: "otherActionsDropdown", publicName: "otherActionsDropdown", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onToolbarButtonPressed: "onToolbarButtonPressed" }, usesInheritance: true, ngImport: i0, template: "<div class=\"contenedor-toolbar\">\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 }); }
|
|
3233
3205
|
}
|
|
3234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitToolbarComponent, decorators: [{
|
|
3235
3207
|
type: Component,
|
|
3236
3208
|
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" }]
|
|
3237
|
-
}],
|
|
3209
|
+
}], propDecorators: { toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: false }] }], ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], femenino: [{ type: i0.Input, args: [{ isSignal: true, alias: "femenino", required: false }] }], buttonSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonSize", required: false }] }], otherActionsDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "otherActionsDropdown", required: false }] }], onToolbarButtonPressed: [{ type: i0.Output, args: ["onToolbarButtonPressed"] }] } });
|
|
3238
3210
|
|
|
3239
3211
|
/**
|
|
3240
3212
|
* Componente que muestra miga de pan y toolbar
|
|
3241
3213
|
*/
|
|
3242
3214
|
class BitHeaderComponent {
|
|
3243
3215
|
constructor() {
|
|
3244
|
-
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : []));
|
|
3245
|
-
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] : []));
|
|
3246
|
-
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : [])); // determina si las "other actions" deben mostrarse en línea o como un desplegable
|
|
3247
|
-
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3248
|
-
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] : []));
|
|
3249
|
-
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] : []));
|
|
3250
|
-
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : [])); // género femenino (para los nombres de botones) o no
|
|
3251
|
-
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : [])); // clave de la ayuda contextual para la botonera
|
|
3216
|
+
this.toolbar = input({}, ...(ngDevMode ? [{ debugName: "toolbar" }] : /* istanbul ignore next */ []));
|
|
3217
|
+
this.noToolbar = input(false, ...(ngDevMode ? [{ debugName: "noToolbar" }] : /* istanbul ignore next */ []));
|
|
3218
|
+
this.otherActionsDropdown = input(false, ...(ngDevMode ? [{ debugName: "otherActionsDropdown" }] : /* istanbul ignore next */ [])); // determina si las "other actions" deben mostrarse en línea o como un desplegable
|
|
3219
|
+
this.breadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "breadcrumb" }] : /* istanbul ignore next */ []));
|
|
3220
|
+
this.masacciones = input(undefined, ...(ngDevMode ? [{ debugName: "masacciones" }] : /* istanbul ignore next */ []));
|
|
3221
|
+
this.colsBreadcrumb = input(undefined, ...(ngDevMode ? [{ debugName: "colsBreadcrumb" }] : /* istanbul ignore next */ []));
|
|
3222
|
+
this.femenino = input(false, ...(ngDevMode ? [{ debugName: "femenino" }] : /* istanbul ignore next */ [])); // género femenino (para los nombres de botones) o no
|
|
3223
|
+
this.ayuda = input(undefined, ...(ngDevMode ? [{ debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual para la botonera
|
|
3252
3224
|
this.onToolbarButtonPressed = output();
|
|
3253
3225
|
}
|
|
3254
3226
|
/** Tenemos que capturar el evento y volver a subirlo, por diseño Angular2 no permite enviar un evento de un nieto a su abuelo, solo
|
|
@@ -3257,10 +3229,10 @@ class BitHeaderComponent {
|
|
|
3257
3229
|
onTBPressed(button) {
|
|
3258
3230
|
this.onToolbarButtonPressed.emit(button);
|
|
3259
3231
|
}
|
|
3260
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3261
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3233
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitHeaderComponent, isStandalone: false, selector: "bit-header", inputs: { toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, noToolbar: { classPropertyName: "noToolbar", publicName: "noToolbar", isSignal: true, isRequired: false, transformFunction: null }, otherActionsDropdown: { classPropertyName: "otherActionsDropdown", publicName: "otherActionsDropdown", isSignal: true, isRequired: false, transformFunction: null }, breadcrumb: { classPropertyName: "breadcrumb", publicName: "breadcrumb", isSignal: true, isRequired: false, transformFunction: null }, masacciones: { classPropertyName: "masacciones", publicName: "masacciones", isSignal: true, isRequired: false, transformFunction: null }, colsBreadcrumb: { classPropertyName: "colsBreadcrumb", publicName: "colsBreadcrumb", isSignal: true, isRequired: false, transformFunction: null }, femenino: { classPropertyName: "femenino", publicName: "femenino", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onToolbarButtonPressed: "onToolbarButtonPressed" }, ngImport: i0, template: "<!-- <div class=\"grid mt-3 mb-3\">\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 }); }
|
|
3262
3234
|
}
|
|
3263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitHeaderComponent, decorators: [{
|
|
3264
3236
|
type: Component,
|
|
3265
3237
|
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>" }]
|
|
3266
3238
|
}], propDecorators: { toolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbar", required: false }] }], noToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "noToolbar", required: false }] }], otherActionsDropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "otherActionsDropdown", required: false }] }], breadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumb", required: false }] }], masacciones: [{ type: i0.Input, args: [{ isSignal: true, alias: "masacciones", required: false }] }], colsBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "colsBreadcrumb", required: false }] }], femenino: [{ type: i0.Input, args: [{ isSignal: true, alias: "femenino", required: false }] }], ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], onToolbarButtonPressed: [{ type: i0.Output, args: ["onToolbarButtonPressed"] }] } });
|
|
@@ -3268,15 +3240,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3268
3240
|
class BitLoadingComponent {
|
|
3269
3241
|
constructor() {
|
|
3270
3242
|
this.generalUtils = inject(GeneralUtils);
|
|
3271
|
-
this.imageSource = input(undefined, ...(ngDevMode ?
|
|
3272
|
-
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3243
|
+
this.imageSource = input(undefined, { ...(ngDevMode ? { debugName: "imageSource" } : /* istanbul ignore next */ {}), alias: "source" });
|
|
3244
|
+
this.loading = computed(() => this.generalUtils.loading() > 0, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
3273
3245
|
console.log("Constructor bitloading");
|
|
3274
3246
|
}
|
|
3275
3247
|
ngOnDestroy() {
|
|
3276
3248
|
this.generalUtils.loading.set(0);
|
|
3277
3249
|
}
|
|
3278
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3279
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitLoadingComponent, isStandalone: false, selector: "bit-loading", inputs: { imageSource: { classPropertyName: "imageSource", publicName: "source", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3280
3252
|
@if (loading()) {
|
|
3281
3253
|
<div class="modal">
|
|
3282
3254
|
<div class="grid">
|
|
@@ -3286,11 +3258,12 @@ class BitLoadingComponent {
|
|
|
3286
3258
|
</div>
|
|
3287
3259
|
</div>
|
|
3288
3260
|
}
|
|
3289
|
-
`, isInline: true }); }
|
|
3261
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3290
3262
|
}
|
|
3291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLoadingComponent, decorators: [{
|
|
3292
3264
|
type: Component,
|
|
3293
3265
|
args: [{
|
|
3266
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3294
3267
|
selector: "bit-loading",
|
|
3295
3268
|
template: `
|
|
3296
3269
|
@if (loading()) {
|
|
@@ -3320,7 +3293,7 @@ class BitNotificationToastComponent extends BaseComponent {
|
|
|
3320
3293
|
//Nos suscribimos a la espera de que envíen notificaciones
|
|
3321
3294
|
subscribeToNotifications() {
|
|
3322
3295
|
this.bitMessageService.observableNotifications
|
|
3323
|
-
.pipe(tap((notification) => {
|
|
3296
|
+
.pipe(takeUntil(this.destroy$), tap((notification) => {
|
|
3324
3297
|
//controlamos si nos llega vacío
|
|
3325
3298
|
if (!notification) {
|
|
3326
3299
|
this.hide();
|
|
@@ -3346,12 +3319,13 @@ class BitNotificationToastComponent extends BaseComponent {
|
|
|
3346
3319
|
getLife(life) {
|
|
3347
3320
|
return life ? life : DEFAULT_LIFE; // Si no se especifica el tiempo, usamos el valor por defecto
|
|
3348
3321
|
}
|
|
3349
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3350
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationToastComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3323
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: BitNotificationToastComponent, isStandalone: false, selector: "bit-notification-toast", usesInheritance: true, ngImport: i0, template: ` <p-toast key="notification" position="top-right" /> `, isInline: true, dependencies: [{ kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3351
3324
|
}
|
|
3352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationToastComponent, decorators: [{
|
|
3353
3326
|
type: Component,
|
|
3354
3327
|
args: [{
|
|
3328
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3355
3329
|
selector: "bit-notification-toast",
|
|
3356
3330
|
template: ` <p-toast key="notification" position="top-right" /> `,
|
|
3357
3331
|
standalone: false
|
|
@@ -3365,8 +3339,8 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3365
3339
|
this.bitMessageService = inject(BitMessageService);
|
|
3366
3340
|
this.primeMessageService = inject(MessageService);
|
|
3367
3341
|
this.translateService = inject(TranslateService);
|
|
3368
|
-
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : []));
|
|
3369
|
-
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : []));
|
|
3342
|
+
this.escape = input(true, ...(ngDevMode ? [{ debugName: "escape" }] : /* istanbul ignore next */ []));
|
|
3343
|
+
this.closable = input(true, ...(ngDevMode ? [{ debugName: "closable" }] : /* istanbul ignore next */ []));
|
|
3370
3344
|
this.messages = [];
|
|
3371
3345
|
}
|
|
3372
3346
|
ngOnInit() {
|
|
@@ -3376,7 +3350,7 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3376
3350
|
//Nos suscribimos a la espera de que envíen notificaciones de error
|
|
3377
3351
|
subscribeToNotificationMessages() {
|
|
3378
3352
|
this.bitMessageService.observableNotificationsErrors
|
|
3379
|
-
.pipe(tap((notificacionError) => {
|
|
3353
|
+
.pipe(takeUntil(this.destroy$), tap((notificacionError) => {
|
|
3380
3354
|
//controlamos si nos llega vacio
|
|
3381
3355
|
if (!notificacionError) {
|
|
3382
3356
|
this.hideErrors();
|
|
@@ -3427,10 +3401,10 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3427
3401
|
else {
|
|
3428
3402
|
console.log("single error");
|
|
3429
3403
|
if (!detail) {
|
|
3430
|
-
this.pushError(title, message);
|
|
3404
|
+
this.pushError(title || "", message || "");
|
|
3431
3405
|
}
|
|
3432
3406
|
else {
|
|
3433
|
-
this.pushError(message, detail);
|
|
3407
|
+
this.pushError(message || "", detail);
|
|
3434
3408
|
}
|
|
3435
3409
|
this.showErrors();
|
|
3436
3410
|
}
|
|
@@ -3483,12 +3457,13 @@ class BitNotificationErrorComponent extends BaseComponent {
|
|
|
3483
3457
|
return of([]);
|
|
3484
3458
|
}
|
|
3485
3459
|
}
|
|
3486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3487
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3461
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitNotificationErrorComponent, isStandalone: false, selector: "bit-notification-error", inputs: { escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: ` <p-toast /> `, isInline: true, dependencies: [{ kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "motionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3488
3462
|
}
|
|
3489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNotificationErrorComponent, decorators: [{
|
|
3490
3464
|
type: Component,
|
|
3491
3465
|
args: [{
|
|
3466
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3492
3467
|
selector: "bit-notification-error",
|
|
3493
3468
|
template: ` <p-toast /> `,
|
|
3494
3469
|
standalone: false
|
|
@@ -3507,10 +3482,10 @@ class FocusRegisterDirective {
|
|
|
3507
3482
|
onBlur() {
|
|
3508
3483
|
this.focusService.clear();
|
|
3509
3484
|
}
|
|
3510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3511
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusRegisterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3486
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: FocusRegisterDirective, isStandalone: false, selector: "input,select,textarea,bit-input,bit-select", host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" } }, ngImport: i0 }); }
|
|
3512
3487
|
}
|
|
3513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FocusRegisterDirective, decorators: [{
|
|
3514
3489
|
type: Directive,
|
|
3515
3490
|
args: [{
|
|
3516
3491
|
selector: "input,select,textarea,bit-input,bit-select" //TODO: no funciona bien con autoComplete. No se registra el focus
|
|
@@ -3528,21 +3503,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3528
3503
|
class BitNGUploadComponent {
|
|
3529
3504
|
constructor() {
|
|
3530
3505
|
this.generalUtils = inject(GeneralUtils);
|
|
3531
|
-
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] : []));
|
|
3532
|
-
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] : []));
|
|
3533
|
-
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] : []));
|
|
3534
|
-
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] : []));
|
|
3535
|
-
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] : []));
|
|
3536
|
-
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] : []));
|
|
3537
|
-
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] : []));
|
|
3538
|
-
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] : []));
|
|
3539
|
-
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] : []));
|
|
3540
|
-
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] : []));
|
|
3541
|
-
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] : []));
|
|
3506
|
+
this.uploader = input.required(...(ngDevMode ? [{ debugName: "uploader" }] : /* istanbul ignore next */ []));
|
|
3507
|
+
this.hasDropZone = input(...(ngDevMode ? [undefined, { debugName: "hasDropZone" }] : /* istanbul ignore next */ []));
|
|
3508
|
+
this.hasQueue = input(...(ngDevMode ? [undefined, { debugName: "hasQueue" }] : /* istanbul ignore next */ []));
|
|
3509
|
+
this.hasSingleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasSingleUpload" }] : /* istanbul ignore next */ []));
|
|
3510
|
+
this.hasMultipleUpload = input(...(ngDevMode ? [undefined, { debugName: "hasMultipleUpload" }] : /* istanbul ignore next */ []));
|
|
3511
|
+
this.deleteItemAfterUpload = input(...(ngDevMode ? [undefined, { debugName: "deleteItemAfterUpload" }] : /* istanbul ignore next */ []));
|
|
3512
|
+
this.canUpload = input(...(ngDevMode ? [undefined, { debugName: "canUpload" }] : /* istanbul ignore next */ []));
|
|
3513
|
+
this.hasProgressBar = input(...(ngDevMode ? [undefined, { debugName: "hasProgressBar" }] : /* istanbul ignore next */ []));
|
|
3514
|
+
this.sizeDropZone = input(...(ngDevMode ? [undefined, { debugName: "sizeDropZone" }] : /* istanbul ignore next */ []));
|
|
3515
|
+
this.sizeQueue = input(...(ngDevMode ? [undefined, { debugName: "sizeQueue" }] : /* istanbul ignore next */ []));
|
|
3516
|
+
this.inputAccept = input("*", ...(ngDevMode ? [{ debugName: "inputAccept" }] : /* istanbul ignore next */ []));
|
|
3542
3517
|
this.onSuccess = output();
|
|
3543
3518
|
this.onError = output();
|
|
3544
|
-
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : []));
|
|
3545
|
-
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : []));
|
|
3519
|
+
this.fileInput = viewChild("fileRef", ...(ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []));
|
|
3520
|
+
this.hasBaseDropZoneOver = signal(false, ...(ngDevMode ? [{ debugName: "hasBaseDropZoneOver" }] : /* istanbul ignore next */ []));
|
|
3546
3521
|
}
|
|
3547
3522
|
ngOnInit() {
|
|
3548
3523
|
this.uploader().onSuccessItem = (item, response, status, headers) => {
|
|
@@ -3622,10 +3597,10 @@ class BitNGUploadComponent {
|
|
|
3622
3597
|
fileOverBase(e) {
|
|
3623
3598
|
this.hasBaseDropZoneOver.set(e);
|
|
3624
3599
|
}
|
|
3625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3626
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: BitNGUploadComponent, isStandalone: false, selector: "bit-ng-upload", inputs: { uploader: { classPropertyName: "uploader", publicName: "uploader", isSignal: true, isRequired: true, transformFunction: null }, hasDropZone: { classPropertyName: "hasDropZone", publicName: "hasDropZone", isSignal: true, isRequired: false, transformFunction: null }, hasQueue: { classPropertyName: "hasQueue", publicName: "hasQueue", isSignal: true, isRequired: false, transformFunction: null }, hasSingleUpload: { classPropertyName: "hasSingleUpload", publicName: "hasSingleUpload", isSignal: true, isRequired: false, transformFunction: null }, hasMultipleUpload: { classPropertyName: "hasMultipleUpload", publicName: "hasMultipleUpload", isSignal: true, isRequired: false, transformFunction: null }, deleteItemAfterUpload: { classPropertyName: "deleteItemAfterUpload", publicName: "deleteItemAfterUpload", isSignal: true, isRequired: false, transformFunction: null }, canUpload: { classPropertyName: "canUpload", publicName: "canUpload", isSignal: true, isRequired: false, transformFunction: null }, hasProgressBar: { classPropertyName: "hasProgressBar", publicName: "hasProgressBar", isSignal: true, isRequired: false, transformFunction: null }, sizeDropZone: { classPropertyName: "sizeDropZone", publicName: "sizeDropZone", isSignal: true, isRequired: false, transformFunction: null }, sizeQueue: { classPropertyName: "sizeQueue", publicName: "sizeQueue", isSignal: true, isRequired: false, transformFunction: null }, inputAccept: { classPropertyName: "inputAccept", publicName: "inputAccept", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSuccess: "onSuccess", onError: "onError" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"grid\">\r\n <div class=\"col-12\">\r\n @if (hasDropZone()) {\r\n <div\r\n ng2FileDrop\r\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver()}\"\r\n (fileOver)=\"fileOverBase($event)\"\r\n [uploader]=\"uploader()\"\r\n class=\"well my-drop-zone\">\r\n <div class=\"contenedor-upload\">\r\n <i class=\"fa fa-file documento\"></i>\r\n <div>\r\n <span>{{ \"bitnglibrary.upload.dropfiles\" | transloco }}</span>\r\n <div class=\"grid\">\r\n <div class=\"col-12\">\r\n @if (hasMultipleUpload()) {\r\n <label class=\"btn-upload\">\r\n <input autocomplete=\"upload\" type=\"file\" ng2FileSelect [uploader]=\"uploader()\" multiple [accept]=\"inputAccept()\" />\r\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.multiple' | transloco}}\r\n </label>\r\n }\r\n @if (hasSingleUpload()) {\r\n <label class=\"btn-upload\">\r\n <input autocomplete=\"upload\" #fileRef type=\"file\" ng2FileSelect [uploader]=\"uploader()\" [accept]=\"inputAccept()\" />\r\n <i class=\"fa fa-upload\"></i>{{'bitnglibrary.upload.simple' | transloco}}\r\n </label>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n<div class=\"grid\">\r\n @if (hasQueue()) {\r\n <div class=\"col-12\">\r\n <p>{{\"bitnglibrary.upload.uploadfiles\" | transloco}}: {{ uploader()?.queue?.length }}</p>\r\n <p-table [value]=\"uploader()?.queue\">\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th width=\"50%\">{{\"bitnglibrary.upload.filename\" | transloco}}</th>\r\n @if (uploader().options.isHTML5) {\r\n <th>{{\"bitnglibrary.upload.filesize\" | transloco}}</th>\r\n }\r\n @if (uploader().options.isHTML5 && hasProgressBar()) {\r\n <th>{{\"bitnglibrary.upload.progress\" | transloco}}</th>\r\n }\r\n @if (canUpload()) {\r\n <th>Estat</th>\r\n }\r\n <th>{{\"bitnglibrary.upload.actions\" | transloco}}</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-item>\r\n <tr>\r\n <td><strong>{{ item?.file?.name }}</strong></td>\r\n @if (uploader()?.options?.isHTML5) {\r\n <td nowrap>{{ item?.file?.size/1024 | number:'.2' }} KB</td>\r\n }\r\n @if (uploader().options.isHTML5 && hasProgressBar()) {\r\n <td>\r\n <div class=\"progress\" style=\"margin-bottom: 0;\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': item.progress + '%' }\"></div>\r\n </div>\r\n </td>\r\n }\r\n @if (canUpload()) {\r\n <td class=\"p-text-center\">\r\n @if (item.isSuccess) {\r\n <span><i class=\"fa fa-check\"></i></span>\r\n }\r\n @if (item.isCancel) {\r\n <span><i class=\"fa fa-ban\"></i></span>\r\n }\r\n @if (item.isError) {\r\n <span><i class=\"fa fa-times\"></i></span>\r\n }\r\n </td>\r\n }\r\n <td nowrap>\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.upload' | transloco}}\" styleClass=\"p-button-success\"\r\n (onClick)=\"uploadFile(item)\" [disabled]=\"item.isReady || item.isUploading || item.isSuccess\" />\r\n }\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelupload' | transloco}}\" styleClass=\"p-button-warning\"\r\n (onClick)=\"cancelFile(item)\" [disabled]=\"!item.isUploading\" />\r\n }\r\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removefromqueue' | transloco}}\" styleClass=\"p-button-danger\"\r\n (onClick)=\"removeFile(item)\" />\r\n </td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n @if (hasProgressBar()) {\r\n <div class=\"cola-progreso\">\r\n <span>{{\"bitnglibrary.upload.progressqueue\" | transloco}}<span>{{(uploader()?.progress?.toString() == 'NaN'? (\"bitnglibrary.upload.finishupload\"|transloco): uploader()?.progress + ' %')}}</span></span>\r\n <div class=\"progress\">\r\n <div class=\"progress-bar\" role=\"progressbar\" [ngStyle]=\"{ 'width': (uploader()?.progress?.toString() == 'NaN'?'0':uploader()?.progress) + '%' }\"></div>\r\n </div>\r\n </div>\r\n }\r\n <div>\r\n\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-upload\" title=\"{{'bitnglibrary.upload.uploadall' | transloco}}\" styleClass=\"p-button-success\"\r\n (onClick)=\"uploadAll()\" [disabled]=\"!(uploader()?.getNotUploadedItems()?.length)\" />\r\n }\r\n @if (canUpload()) {\r\n <p-button icon=\"fa fa-ban\" title=\"{{'bitnglibrary.upload.cancelall' | transloco}}\" styleClass=\"p-button-warning\"\r\n (onClick)=\"cancelQueue()\" [disabled]=\"!(uploader()?.isUploading)\" />\r\n }\r\n <p-button icon=\"fa fa-trash\" title=\"{{'bitnglibrary.upload.removeall' | transloco}}\" styleClass=\"p-button-danger\"\r\n (onClick)=\"removeQueue()\" [disabled]=\"!(uploader()?.queue?.length)\" />\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i5.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i5.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "pipe", type: i2.DecimalPipe, name: "number" }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNGUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3601
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitNGUploadComponent, isStandalone: false, selector: "bit-ng-upload", inputs: { uploader: { classPropertyName: "uploader", publicName: "uploader", isSignal: true, isRequired: true, transformFunction: null }, hasDropZone: { classPropertyName: "hasDropZone", publicName: "hasDropZone", isSignal: true, isRequired: false, transformFunction: null }, hasQueue: { classPropertyName: "hasQueue", publicName: "hasQueue", isSignal: true, isRequired: false, transformFunction: null }, hasSingleUpload: { classPropertyName: "hasSingleUpload", publicName: "hasSingleUpload", isSignal: true, isRequired: false, transformFunction: null }, hasMultipleUpload: { classPropertyName: "hasMultipleUpload", publicName: "hasMultipleUpload", isSignal: true, isRequired: false, transformFunction: null }, deleteItemAfterUpload: { classPropertyName: "deleteItemAfterUpload", publicName: "deleteItemAfterUpload", isSignal: true, isRequired: false, transformFunction: null }, canUpload: { classPropertyName: "canUpload", publicName: "canUpload", isSignal: true, isRequired: false, transformFunction: null }, hasProgressBar: { classPropertyName: "hasProgressBar", publicName: "hasProgressBar", isSignal: true, isRequired: false, transformFunction: null }, sizeDropZone: { classPropertyName: "sizeDropZone", publicName: "sizeDropZone", isSignal: true, isRequired: false, transformFunction: null }, sizeQueue: { classPropertyName: "sizeQueue", publicName: "sizeQueue", isSignal: true, isRequired: false, transformFunction: null }, inputAccept: { classPropertyName: "inputAccept", publicName: "inputAccept", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSuccess: "onSuccess", onError: "onError" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"grid\">\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 }); }
|
|
3627
3602
|
}
|
|
3628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNGUploadComponent, decorators: [{
|
|
3629
3604
|
type: Component,
|
|
3630
3605
|
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" }]
|
|
3631
3606
|
}], propDecorators: { uploader: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploader", required: true }] }], hasDropZone: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDropZone", required: false }] }], hasQueue: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasQueue", required: false }] }], hasSingleUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasSingleUpload", required: false }] }], hasMultipleUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasMultipleUpload", required: false }] }], deleteItemAfterUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "deleteItemAfterUpload", required: false }] }], canUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "canUpload", required: false }] }], hasProgressBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasProgressBar", required: false }] }], sizeDropZone: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeDropZone", required: false }] }], sizeQueue: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeQueue", required: false }] }], inputAccept: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputAccept", required: false }] }], onSuccess: [{ type: i0.Output, args: ["onSuccess"] }], onError: [{ type: i0.Output, args: ["onError"] }], fileInput: [{ type: i0.ViewChild, args: ["fileRef", { isSignal: true }] }] } });
|
|
@@ -3637,15 +3612,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3637
3612
|
*/
|
|
3638
3613
|
class BitUserControlsComponent {
|
|
3639
3614
|
constructor() {
|
|
3640
|
-
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : []));
|
|
3641
|
-
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : []));
|
|
3615
|
+
this.usuario = input.required(...(ngDevMode ? [{ debugName: "usuario" }] : /* istanbul ignore next */ []));
|
|
3616
|
+
this.json = computed(() => JSON.stringify(this.usuario(), null, 4), ...(ngDevMode ? [{ debugName: "json" }] : /* istanbul ignore next */ []));
|
|
3642
3617
|
}
|
|
3643
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3644
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3618
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitUserControlsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3619
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitUserControlsComponent, isStandalone: false, selector: "bit-user-controls", inputs: { usuario: { classPropertyName: "usuario", publicName: "usuario", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (usuario()) {\r\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\r\n}", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3645
3620
|
}
|
|
3646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitUserControlsComponent, decorators: [{
|
|
3647
3622
|
type: Component,
|
|
3648
|
-
args: [{ selector: "bit-user-controls", standalone: false, template: "@if (usuario()) {\r\n <span class=\"userControls\"><span class=\"fa fa-user\" title=\"{{ json() }}\"></span> {{ usuario().nombreCompleto }} ({{usuario().login}}) </span>\r\n}" }]
|
|
3623
|
+
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}" }]
|
|
3649
3624
|
}], propDecorators: { usuario: [{ type: i0.Input, args: [{ isSignal: true, alias: "usuario", required: true }] }] } });
|
|
3650
3625
|
|
|
3651
3626
|
/**
|
|
@@ -3653,23 +3628,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3653
3628
|
**/
|
|
3654
3629
|
class BitColumnBooleanComponent {
|
|
3655
3630
|
constructor() {
|
|
3656
|
-
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] : [])); // objeto del que extraer la propiedad
|
|
3657
|
-
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] : [])); // propiedad booleana que procesar
|
|
3658
|
-
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] : []));
|
|
3659
|
-
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] : []));
|
|
3631
|
+
this.data = input(undefined, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ [])); // objeto del que extraer la propiedad
|
|
3632
|
+
this.field = input(undefined, ...(ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ [])); // propiedad booleana que procesar
|
|
3633
|
+
this.textTrue = input("Sí", ...(ngDevMode ? [{ debugName: "textTrue" }] : /* istanbul ignore next */ []));
|
|
3634
|
+
this.textFalse = input("No", ...(ngDevMode ? [{ debugName: "textFalse" }] : /* istanbul ignore next */ []));
|
|
3660
3635
|
}
|
|
3661
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3662
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitColumnBooleanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3637
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitColumnBooleanComponent, isStandalone: false, selector: "bit-column-boolean", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, textTrue: { classPropertyName: "textTrue", publicName: "textTrue", isSignal: true, isRequired: false, transformFunction: null }, textFalse: { classPropertyName: "textFalse", publicName: "textFalse", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3663
3638
|
@if (data()) {
|
|
3664
3639
|
<span class="ui-cell-data">
|
|
3665
3640
|
{{ data()[field()] ? textTrue() : textFalse() }}
|
|
3666
3641
|
</span>
|
|
3667
3642
|
}
|
|
3668
|
-
`, isInline: true }); }
|
|
3643
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3669
3644
|
}
|
|
3670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitColumnBooleanComponent, decorators: [{
|
|
3671
3646
|
type: Component,
|
|
3672
3647
|
args: [{
|
|
3648
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3673
3649
|
selector: "bit-column-boolean",
|
|
3674
3650
|
template: `
|
|
3675
3651
|
@if (data()) {
|
|
@@ -3684,9 +3660,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3684
3660
|
|
|
3685
3661
|
class BitDomainValueComponent {
|
|
3686
3662
|
constructor() {
|
|
3687
|
-
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
3688
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : []));
|
|
3689
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
3663
|
+
this.value = input(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3664
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
3665
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
3690
3666
|
this.translatedValue = computed(() => {
|
|
3691
3667
|
// buscar traducción para el valor en el dominio
|
|
3692
3668
|
const data = this.data();
|
|
@@ -3701,16 +3677,17 @@ class BitDomainValueComponent {
|
|
|
3701
3677
|
else {
|
|
3702
3678
|
return this.emptyText() ?? "Carregant...";
|
|
3703
3679
|
}
|
|
3704
|
-
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : []));
|
|
3680
|
+
}, ...(ngDevMode ? [{ debugName: "translatedValue" }] : /* istanbul ignore next */ []));
|
|
3705
3681
|
}
|
|
3706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3682
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDomainValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3683
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: BitDomainValueComponent, isStandalone: false, selector: "bit-domain-value", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3708
3684
|
<span>{{ translatedValue() }}</span>
|
|
3709
|
-
`, isInline: true }); }
|
|
3685
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3710
3686
|
}
|
|
3711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDomainValueComponent, decorators: [{
|
|
3712
3688
|
type: Component,
|
|
3713
3689
|
args: [{
|
|
3690
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3714
3691
|
selector: "bit-domain-value",
|
|
3715
3692
|
template: `
|
|
3716
3693
|
<span>{{ translatedValue() }}</span>
|
|
@@ -3726,20 +3703,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3726
3703
|
class BitGeneralComponent extends BaseComponent {
|
|
3727
3704
|
constructor() {
|
|
3728
3705
|
super(...arguments);
|
|
3729
|
-
this.control = input(undefined, ...(ngDevMode ?
|
|
3730
|
-
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] : []));
|
|
3731
|
-
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] : []));
|
|
3732
|
-
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
3733
|
-
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] : []));
|
|
3734
|
-
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] : []));
|
|
3735
|
-
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] : []));
|
|
3736
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : [])); // clave de la ayuda contextual
|
|
3737
|
-
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
3738
|
-
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : []));
|
|
3739
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : [])); // forzar que no se reserve espacio para el nombre del campo
|
|
3740
|
-
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] : []));
|
|
3741
|
-
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] : []));
|
|
3742
|
-
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] : []));
|
|
3706
|
+
this.control = input(undefined, { ...(ngDevMode ? { debugName: "control" } : /* istanbul ignore next */ {}), alias: "formControl" });
|
|
3707
|
+
this.nombre = input(...(ngDevMode ? [undefined, { debugName: "nombre" }] : /* istanbul ignore next */ []));
|
|
3708
|
+
this.nombreDirectiva = input(...(ngDevMode ? [undefined, { debugName: "nombreDirectiva" }] : /* istanbul ignore next */ []));
|
|
3709
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
3710
|
+
this.estilo = input(...(ngDevMode ? [undefined, { debugName: "estilo" }] : /* istanbul ignore next */ []));
|
|
3711
|
+
this.tooltipTexto = input(...(ngDevMode ? [undefined, { debugName: "tooltipTexto" }] : /* istanbul ignore next */ []));
|
|
3712
|
+
this.tooltipPosicion = input(...(ngDevMode ? [undefined, { debugName: "tooltipPosicion" }] : /* istanbul ignore next */ []));
|
|
3713
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ [])); // clave de la ayuda contextual
|
|
3714
|
+
this.placeholder = input("", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3715
|
+
this.readOnly = input(false, ...(ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []));
|
|
3716
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ [])); // forzar que no se reserve espacio para el nombre del campo
|
|
3717
|
+
this.forceObligatorio = input(false, ...(ngDevMode ? [{ debugName: "forceObligatorio" }] : /* istanbul ignore next */ []));
|
|
3718
|
+
this.testid = input(...(ngDevMode ? [undefined, { debugName: "testid" }] : /* istanbul ignore next */ []));
|
|
3719
|
+
this.log = input(false, ...(ngDevMode ? [{ debugName: "log" }] : /* istanbul ignore next */ []));
|
|
3743
3720
|
this.onChange = output();
|
|
3744
3721
|
this.onTouch = output();
|
|
3745
3722
|
this.onBlur = output();
|
|
@@ -3748,19 +3725,43 @@ class BitGeneralComponent extends BaseComponent {
|
|
|
3748
3725
|
this.dataTestId = computed(() => {
|
|
3749
3726
|
const testid = this.testid();
|
|
3750
3727
|
return testid ? testid : this.nombre();
|
|
3751
|
-
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : []));
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3728
|
+
}, ...(ngDevMode ? [{ debugName: "dataTestId" }] : /* istanbul ignore next */ []));
|
|
3729
|
+
/**
|
|
3730
|
+
* Contador que se incrementa cada vez que el FormControl asociado cambia su valor, validadores o validez.
|
|
3731
|
+
* Se usa como dependencia reactiva de la señal `obligatorio` para que ésta se recalcule bajo OnPush / zoneless,
|
|
3732
|
+
* incluso cuando el consumidor llama a `updateValueAndValidity({ emitEvent: false })` (en cuyo caso
|
|
3733
|
+
* `statusChanges` / `valueChanges` no se emiten y un enfoque basado en observables no funcionaría).
|
|
3734
|
+
*
|
|
3735
|
+
* El mecanismo intercepta el método `updateValueAndValidity` del propio control: dado que `setValue`,
|
|
3736
|
+
* `patchValue`, `reset` y los cambios de validadores requieren una llamada a `updateValueAndValidity`
|
|
3737
|
+
* para surtir efecto, este punto único cubre todos los escenarios.
|
|
3738
|
+
*/
|
|
3739
|
+
this.controlEvents = toSignal(toObservable(this.control).pipe(switchMap((c) => (c ? c.events.pipe(startWith(null)) : of(null)))), {
|
|
3740
|
+
initialValue: null
|
|
3741
|
+
});
|
|
3742
|
+
/**
|
|
3743
|
+
* Indica si el campo es obligatorio. Es una señal computed que reacciona a:
|
|
3744
|
+
* - cambios en el input `forceObligatorio`
|
|
3745
|
+
* - cambios en el input `control`
|
|
3746
|
+
* - cambios de valor, validadores o validez del propio FormControl (vía `controlEvents`)
|
|
3747
|
+
*/
|
|
3748
|
+
/*get obligatorio(): boolean {
|
|
3749
|
+
let control = this.control();
|
|
3750
|
+
return this.forceObligatorio() || (control && control.errors && control.errors["required"]);
|
|
3751
|
+
}*/
|
|
3752
|
+
this.obligatorio = computed(() => {
|
|
3753
|
+
this.controlEvents(); // dependencia reactiva
|
|
3754
|
+
const c = this.control();
|
|
3755
|
+
return this.forceObligatorio() || !!c?.errors?.["required"];
|
|
3756
|
+
}, ...(ngDevMode ? [{ debugName: "obligatorio" }] : /* istanbul ignore next */ []));
|
|
3756
3757
|
}
|
|
3757
3758
|
showAyuda() {
|
|
3758
3759
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
3759
3760
|
}
|
|
3760
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3761
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3761
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitGeneralComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3762
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitGeneralComponent, isStandalone: true, inputs: { control: { classPropertyName: "control", publicName: "formControl", isSignal: true, isRequired: false, transformFunction: null }, nombre: { classPropertyName: "nombre", publicName: "nombre", isSignal: true, isRequired: false, transformFunction: null }, nombreDirectiva: { classPropertyName: "nombreDirectiva", publicName: "nombreDirectiva", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, estilo: { classPropertyName: "estilo", publicName: "estilo", isSignal: true, isRequired: false, transformFunction: null }, tooltipTexto: { classPropertyName: "tooltipTexto", publicName: "tooltipTexto", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosicion: { classPropertyName: "tooltipPosicion", publicName: "tooltipPosicion", isSignal: true, isRequired: false, transformFunction: null }, ayuda: { classPropertyName: "ayuda", publicName: "ayuda", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, forceObligatorio: { classPropertyName: "forceObligatorio", publicName: "forceObligatorio", isSignal: true, isRequired: false, transformFunction: null }, testid: { classPropertyName: "testid", publicName: "testid", isSignal: true, isRequired: false, transformFunction: null }, log: { classPropertyName: "log", publicName: "log", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onTouch: "onTouch", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0 }); }
|
|
3762
3763
|
}
|
|
3763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitGeneralComponent, decorators: [{
|
|
3764
3765
|
type: Directive
|
|
3765
3766
|
}], propDecorators: { control: [{ type: i0.Input, args: [{ isSignal: true, alias: "formControl", required: false }] }], nombre: [{ type: i0.Input, args: [{ isSignal: true, alias: "nombre", required: false }] }], nombreDirectiva: [{ type: i0.Input, args: [{ isSignal: true, alias: "nombreDirectiva", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], estilo: [{ type: i0.Input, args: [{ isSignal: true, alias: "estilo", required: false }] }], tooltipTexto: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTexto", required: false }] }], tooltipPosicion: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosicion", required: false }] }], ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], forceObligatorio: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceObligatorio", required: false }] }], testid: [{ type: i0.Input, args: [{ isSignal: true, alias: "testid", required: false }] }], log: [{ type: i0.Input, args: [{ isSignal: true, alias: "log", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onTouch: [{ type: i0.Output, args: ["onTouch"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }] } });
|
|
3766
3767
|
|
|
@@ -3771,7 +3772,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
3771
3772
|
class BitCustomComponent extends BitGeneralComponent {
|
|
3772
3773
|
constructor() {
|
|
3773
3774
|
super(...arguments);
|
|
3774
|
-
this.
|
|
3775
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
3776
|
+
this.isDisabled = signal(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3775
3777
|
// nos permite decirle a Angular que nuestro componente ha modificado su valor
|
|
3776
3778
|
this._onChange = (_) => { };
|
|
3777
3779
|
// nos permite decirle a Angular que nuestro componente ha sido tacado
|
|
@@ -3805,10 +3807,10 @@ class BitCustomComponent extends BitGeneralComponent {
|
|
|
3805
3807
|
registerOnTouched(fn) {
|
|
3806
3808
|
this._onTouch = fn;
|
|
3807
3809
|
}
|
|
3808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3809
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3810
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCustomComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3811
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BitCustomComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
3810
3812
|
}
|
|
3811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCustomComponent, decorators: [{
|
|
3812
3814
|
type: Directive
|
|
3813
3815
|
}] });
|
|
3814
3816
|
|
|
@@ -3831,32 +3833,37 @@ class BitTextComponent extends BitCustomComponent {
|
|
|
3831
3833
|
else {
|
|
3832
3834
|
this.value = v;
|
|
3833
3835
|
}
|
|
3836
|
+
this.cdr.markForCheck();
|
|
3834
3837
|
}
|
|
3835
3838
|
onChangeValue(text) {
|
|
3836
3839
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + text);
|
|
3837
3840
|
this.value = text;
|
|
3838
3841
|
this.changeComponentValue(this.value);
|
|
3839
3842
|
}
|
|
3840
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3841
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3843
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3844
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTextComponent, isStandalone: false, selector: "bit-text", providers: [
|
|
3845
|
+
{
|
|
3842
3846
|
provide: NG_VALUE_ACCESSOR,
|
|
3843
3847
|
useExisting: forwardRef(() => BitTextComponent),
|
|
3844
3848
|
multi: true
|
|
3845
|
-
}
|
|
3849
|
+
}
|
|
3850
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <input\r\n pInputText\r\n type=\"text\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n autocomplete=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <input\r\n pInputText\r\n type=\"text\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$3.InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3846
3851
|
}
|
|
3847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextComponent, decorators: [{
|
|
3848
3853
|
type: Component,
|
|
3849
|
-
args: [{ selector: "bit-text", providers: [
|
|
3854
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-text", providers: [
|
|
3855
|
+
{
|
|
3850
3856
|
provide: NG_VALUE_ACCESSOR,
|
|
3851
3857
|
useExisting: forwardRef(() => BitTextComponent),
|
|
3852
3858
|
multi: true
|
|
3853
|
-
}
|
|
3859
|
+
}
|
|
3860
|
+
], standalone: false, 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" }]
|
|
3854
3861
|
}] });
|
|
3855
3862
|
|
|
3856
3863
|
class BitTextAreaComponent extends BitCustomComponent {
|
|
3857
3864
|
constructor() {
|
|
3858
3865
|
super(...arguments);
|
|
3859
|
-
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : []));
|
|
3866
|
+
this.filas = input(2, ...(ngDevMode ? [{ debugName: "filas" }] : /* istanbul ignore next */ []));
|
|
3860
3867
|
}
|
|
3861
3868
|
get value_lectura() {
|
|
3862
3869
|
if (this.value == null) {
|
|
@@ -3876,26 +3883,27 @@ class BitTextAreaComponent extends BitCustomComponent {
|
|
|
3876
3883
|
else {
|
|
3877
3884
|
this.value = v;
|
|
3878
3885
|
}
|
|
3886
|
+
this.cdr.markForCheck();
|
|
3879
3887
|
}
|
|
3880
3888
|
onChangeValue(text) {
|
|
3881
3889
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + text);
|
|
3882
3890
|
this.value = text;
|
|
3883
3891
|
this.changeComponentValue(this.value);
|
|
3884
3892
|
}
|
|
3885
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3886
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3894
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTextAreaComponent, isStandalone: false, selector: "bit-textarea", inputs: { filas: { classPropertyName: "filas", publicName: "filas", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
3887
3895
|
provide: NG_VALUE_ACCESSOR,
|
|
3888
3896
|
useExisting: forwardRef(() => BitTextAreaComponent),
|
|
3889
3897
|
multi: true
|
|
3890
|
-
}], 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"] }] }); }
|
|
3898
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <pre class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</pre>\r\n}\r\n@if (!readOnly()) {\r\n <textarea\r\n pInputTextarea\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n autocomplete=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [placeholder]=\"placeholder()\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n class=\"{{ estilo() }}\"\r\n [rows]=\"filas()\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n ></textarea>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$4.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["pTextareaPT", "pTextareaUnstyled", "autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3891
3899
|
}
|
|
3892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTextAreaComponent, decorators: [{
|
|
3893
3901
|
type: Component,
|
|
3894
|
-
args: [{ selector: "bit-textarea", providers: [{
|
|
3902
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-textarea", providers: [{
|
|
3895
3903
|
provide: NG_VALUE_ACCESSOR,
|
|
3896
3904
|
useExisting: forwardRef(() => BitTextAreaComponent),
|
|
3897
3905
|
multi: true
|
|
3898
|
-
}], standalone: false, 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" }]
|
|
3906
|
+
}], standalone: false, 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" }]
|
|
3899
3907
|
}], propDecorators: { filas: [{ type: i0.Input, args: [{ isSignal: true, alias: "filas", required: false }] }] } });
|
|
3900
3908
|
|
|
3901
3909
|
/** Clase general para componentes personalizados de tipo Fecha como puede ser BitDate, BitTime y BitDateTime */
|
|
@@ -3903,12 +3911,12 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3903
3911
|
constructor() {
|
|
3904
3912
|
super(...arguments);
|
|
3905
3913
|
// calendarios
|
|
3906
|
-
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] : [])); // fecha mínima seleccionable
|
|
3907
|
-
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] : [])); // fecha máxima seleccionable
|
|
3908
|
-
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] : [])); // desabilitar edicion por teclado
|
|
3909
|
-
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] : []));
|
|
3910
|
-
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] : []));
|
|
3911
|
-
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
|
|
3914
|
+
this.fechaMinima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMinima" }] : /* istanbul ignore next */ [])); // fecha mínima seleccionable
|
|
3915
|
+
this.fechaMaxima = input(undefined, ...(ngDevMode ? [{ debugName: "fechaMaxima" }] : /* istanbul ignore next */ [])); // fecha máxima seleccionable
|
|
3916
|
+
this.calendarReadOnlyInput = input(false, ...(ngDevMode ? [{ debugName: "calendarReadOnlyInput" }] : /* istanbul ignore next */ [])); // desabilitar edicion por teclado
|
|
3917
|
+
this.format = input(...(ngDevMode ? [undefined, { debugName: "format" }] : /* istanbul ignore next */ []));
|
|
3918
|
+
this.showButtonBar = input(false, ...(ngDevMode ? [{ debugName: "showButtonBar" }] : /* istanbul ignore next */ []));
|
|
3919
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
3912
3920
|
this.onSelect = output();
|
|
3913
3921
|
this.dateUtils = inject(DateUtils);
|
|
3914
3922
|
this.translateService = inject(TranslateService);
|
|
@@ -3983,10 +3991,10 @@ class BitCalendarComponent extends BitCustomComponent {
|
|
|
3983
3991
|
isValueCorrect(value) {
|
|
3984
3992
|
return moment(value, this.visual_format, true).isValid();
|
|
3985
3993
|
}
|
|
3986
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3987
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3994
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3995
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitCalendarComponent, isStandalone: true, inputs: { fechaMinima: { classPropertyName: "fechaMinima", publicName: "fechaMinima", isSignal: true, isRequired: false, transformFunction: null }, fechaMaxima: { classPropertyName: "fechaMaxima", publicName: "fechaMaxima", isSignal: true, isRequired: false, transformFunction: null }, calendarReadOnlyInput: { classPropertyName: "calendarReadOnlyInput", publicName: "calendarReadOnlyInput", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSelect: "onSelect" }, usesInheritance: true, ngImport: i0 }); }
|
|
3988
3996
|
}
|
|
3989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCalendarComponent, decorators: [{
|
|
3990
3998
|
type: Directive
|
|
3991
3999
|
}], propDecorators: { fechaMinima: [{ type: i0.Input, args: [{ isSignal: true, alias: "fechaMinima", required: false }] }], fechaMaxima: [{ type: i0.Input, args: [{ isSignal: true, alias: "fechaMaxima", required: false }] }], calendarReadOnlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarReadOnlyInput", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }] } });
|
|
3992
4000
|
|
|
@@ -3994,7 +4002,7 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
3994
4002
|
constructor() {
|
|
3995
4003
|
super();
|
|
3996
4004
|
this.dateUtils = inject(DateUtils);
|
|
3997
|
-
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4005
|
+
this.placeholder = input("dd/mm/yyyy", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
3998
4006
|
this.visual_format = DateUtils.FORMAT_SHORT_DATE;
|
|
3999
4007
|
}
|
|
4000
4008
|
get value_lectura() {
|
|
@@ -4017,6 +4025,7 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4017
4025
|
this.value = this.dateUtils.getStringAsDate(v, this.getDateFormat());
|
|
4018
4026
|
this.log() && console.log("new value:" + this.value);
|
|
4019
4027
|
}
|
|
4028
|
+
this.cdr.markForCheck();
|
|
4020
4029
|
}
|
|
4021
4030
|
getDateAsString(d) {
|
|
4022
4031
|
let value = this.dateUtils.getDateAsString(d, this.getDateFormat());
|
|
@@ -4025,27 +4034,27 @@ class BitDateComponent extends BitCalendarComponent {
|
|
|
4025
4034
|
getDateFormat() {
|
|
4026
4035
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_DATE;
|
|
4027
4036
|
}
|
|
4028
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4029
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4038
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDateComponent, isStandalone: false, selector: "bit-date", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4030
4039
|
provide: NG_VALUE_ACCESSOR,
|
|
4031
4040
|
useExisting: forwardRef(() => BitDateComponent),
|
|
4032
4041
|
multi: true
|
|
4033
|
-
}], 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"] }] }); }
|
|
4042
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"dd/mm/yy\"\r\n placeholder=\"{{ placeholder() }}\"\r\n [showOtherMonths]=\"true\"\r\n [selectOtherMonths]=\"true\"\r\n [readonlyInput]=\"calendarReadOnlyInput()\"\r\n [minDate]=\"fechaMinima()\"\r\n [maxDate]=\"fechaMaxima()\"\r\n yearRange=\"2000:2050\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (!readOnly()) {\r\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4034
4043
|
}
|
|
4035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateComponent, decorators: [{
|
|
4036
4045
|
type: Component,
|
|
4037
|
-
args: [{ selector: "bit-date", providers: [{
|
|
4046
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-date", providers: [{
|
|
4038
4047
|
provide: NG_VALUE_ACCESSOR,
|
|
4039
4048
|
useExisting: forwardRef(() => BitDateComponent),
|
|
4040
4049
|
multi: true
|
|
4041
|
-
}], standalone: false, 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" }]
|
|
4050
|
+
}], standalone: false, 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" }]
|
|
4042
4051
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
4043
4052
|
|
|
4044
4053
|
class BitTimeComponent extends BitCalendarComponent {
|
|
4045
4054
|
constructor() {
|
|
4046
4055
|
super();
|
|
4047
4056
|
this.dateUtils = inject(DateUtils);
|
|
4048
|
-
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4057
|
+
this.placeholder = input("hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4049
4058
|
this.visual_format = DateUtils.FORMAT_SHORT_TIME;
|
|
4050
4059
|
}
|
|
4051
4060
|
get value_lectura() {
|
|
@@ -4068,6 +4077,7 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4068
4077
|
this.value = this.dateUtils.getStringAsDate(v, this.getDateFormat());
|
|
4069
4078
|
this.log() && console.log("new value:" + this.value);
|
|
4070
4079
|
}
|
|
4080
|
+
this.cdr.markForCheck();
|
|
4071
4081
|
}
|
|
4072
4082
|
getDateAsString(d) {
|
|
4073
4083
|
let value = this.dateUtils.getTimeAsString(d, this.getDateFormat());
|
|
@@ -4076,27 +4086,27 @@ class BitTimeComponent extends BitCalendarComponent {
|
|
|
4076
4086
|
getDateFormat() {
|
|
4077
4087
|
return this.format() ? this.format() : DateUtils.FORMAT_SHORT_TIME;
|
|
4078
4088
|
}
|
|
4079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4080
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4089
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4090
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitTimeComponent, isStandalone: false, selector: "bit-time", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4081
4091
|
provide: NG_VALUE_ACCESSOR,
|
|
4082
4092
|
useExisting: forwardRef(() => BitTimeComponent),
|
|
4083
4093
|
multi: true
|
|
4084
|
-
}], 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"] }] }); }
|
|
4094
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"HH:mm\"\r\n [timeOnly]=\"true\"\r\n placeholder=\"{{ placeholder() }}\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n (onTodayClick)=\"_onTodayClick($event)\"\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4085
4095
|
}
|
|
4086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitTimeComponent, decorators: [{
|
|
4087
4097
|
type: Component,
|
|
4088
|
-
args: [{ selector: "bit-time", providers: [{
|
|
4098
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-time", providers: [{
|
|
4089
4099
|
provide: NG_VALUE_ACCESSOR,
|
|
4090
4100
|
useExisting: forwardRef(() => BitTimeComponent),
|
|
4091
4101
|
multi: true
|
|
4092
|
-
}], standalone: false, 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" }]
|
|
4102
|
+
}], standalone: false, 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" }]
|
|
4093
4103
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
4094
4104
|
|
|
4095
4105
|
class BitDateTimeComponent extends BitCalendarComponent {
|
|
4096
4106
|
constructor() {
|
|
4097
4107
|
super();
|
|
4098
4108
|
this.dateUtils = inject(DateUtils);
|
|
4099
|
-
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
4109
|
+
this.placeholder = input("dd/mm/yyyy hh:mm", ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
4100
4110
|
this.visual_format = DateUtils.FORMAT_LONG_DATE;
|
|
4101
4111
|
}
|
|
4102
4112
|
get value_lectura() {
|
|
@@ -4119,6 +4129,7 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4119
4129
|
this.value = this.dateUtils.getStringAsDate(v, this.getDateFormat());
|
|
4120
4130
|
this.log() && console.log("new value:" + this.value);
|
|
4121
4131
|
}
|
|
4132
|
+
this.cdr.markForCheck();
|
|
4122
4133
|
}
|
|
4123
4134
|
getDateAsString(d) {
|
|
4124
4135
|
let value = this.dateUtils.getDateTimeAsString(d, this.getDateFormat());
|
|
@@ -4127,20 +4138,20 @@ class BitDateTimeComponent extends BitCalendarComponent {
|
|
|
4127
4138
|
getDateFormat() {
|
|
4128
4139
|
return this.format() ? this.format() : DateUtils.FORMAT_LONG_DATE;
|
|
4129
4140
|
}
|
|
4130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4131
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4142
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDateTimeComponent, isStandalone: false, selector: "bit-datetime", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4132
4143
|
provide: NG_VALUE_ACCESSOR,
|
|
4133
4144
|
useExisting: forwardRef(() => BitDateTimeComponent),
|
|
4134
4145
|
multi: true
|
|
4135
|
-
}], 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"] }] }); }
|
|
4146
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-datepicker class=\"FormControl\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n autofocus=\"false\"\r\n [disabled]=\"isDisabled()\"\r\n [(ngModel)]=\"value\"\r\n dateFormat=\"dd/mm/yy\"\r\n placeholder=\"{{ placeholder() }}\" \r\n [minDate]=\"fechaMinima()\"\r\n [maxDate]=\"fechaMaxima()\"\r\n [showOtherMonths]=\"true\"\r\n [selectOtherMonths]=\"true\"\r\n yearRange=\"2000:2050\"\r\n [showTime]=\"true\"\r\n [firstDayOfWeek]=\"1\"\r\n showButtonBar={{showButtonBar()}}\r\n [appendTo]=\"appendTo()\"\r\n (onSelect)=\"_onSelect(value)\"\r\n (onClear)=\"_onClear()\"\r\n (onClearClick)=\"_onClear()\"\r\n (onFocus)=\"_onFocus()\"\r\n (onBlur)=\"_onBlur($event)\"\r\n (onInput)=\"_onInput($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (!readOnly()) {\r\n <span class=\"glyphicon glyphicon-calendar icono-input\"></span>\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$4.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo", "motionOptions"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4136
4147
|
}
|
|
4137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDateTimeComponent, decorators: [{
|
|
4138
4149
|
type: Component,
|
|
4139
|
-
args: [{ selector: "bit-datetime", providers: [{
|
|
4150
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-datetime", providers: [{
|
|
4140
4151
|
provide: NG_VALUE_ACCESSOR,
|
|
4141
4152
|
useExisting: forwardRef(() => BitDateTimeComponent),
|
|
4142
4153
|
multi: true
|
|
4143
|
-
}], standalone: false, 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" }]
|
|
4154
|
+
}], standalone: false, 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" }]
|
|
4144
4155
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }] } });
|
|
4145
4156
|
|
|
4146
4157
|
class BitCheckBoxComponent extends BitCustomComponent {
|
|
@@ -4151,26 +4162,27 @@ class BitCheckBoxComponent extends BitCustomComponent {
|
|
|
4151
4162
|
writeValue(v) {
|
|
4152
4163
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
4153
4164
|
this.value = v;
|
|
4165
|
+
this.cdr.markForCheck();
|
|
4154
4166
|
}
|
|
4155
4167
|
onChangeValue(event) {
|
|
4156
4168
|
this.value = event.checked;
|
|
4157
4169
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4158
4170
|
this.changeComponentValue(this.value);
|
|
4159
4171
|
}
|
|
4160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4161
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCheckBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4173
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitCheckBoxComponent, isStandalone: false, selector: "bit-checkbox", providers: [{
|
|
4162
4174
|
provide: NG_VALUE_ACCESSOR,
|
|
4163
4175
|
useExisting: forwardRef(() => BitCheckBoxComponent),
|
|
4164
4176
|
multi: true
|
|
4165
|
-
}], 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"] }] }); }
|
|
4177
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-checkbox class=\"{{ estilo() }}\"\r\n binary=\"true\"\r\n [(ngModel)]=\"value\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n id=\"{{ nombre() }}\"\r\n (onChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n\r\n@if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\r\n}\r\n\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4166
4178
|
}
|
|
4167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitCheckBoxComponent, decorators: [{
|
|
4168
4180
|
type: Component,
|
|
4169
|
-
args: [{ selector: "bit-checkbox", providers: [{
|
|
4181
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox", providers: [{
|
|
4170
4182
|
provide: NG_VALUE_ACCESSOR,
|
|
4171
4183
|
useExisting: forwardRef(() => BitCheckBoxComponent),
|
|
4172
4184
|
multi: true
|
|
4173
|
-
}], standalone: false, 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" }]
|
|
4185
|
+
}], standalone: false, 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" }]
|
|
4174
4186
|
}] });
|
|
4175
4187
|
|
|
4176
4188
|
class BitSwitchComponent extends BitCustomComponent {
|
|
@@ -4181,42 +4193,43 @@ class BitSwitchComponent extends BitCustomComponent {
|
|
|
4181
4193
|
writeValue(v) {
|
|
4182
4194
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
4183
4195
|
this.value = v;
|
|
4196
|
+
this.cdr.markForCheck();
|
|
4184
4197
|
}
|
|
4185
4198
|
onChangeValue(event) {
|
|
4186
4199
|
this.value = event.checked;
|
|
4187
4200
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
4188
4201
|
this.changeComponentValue(this.value);
|
|
4189
4202
|
}
|
|
4190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4191
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSwitchComponent, isStandalone: false, selector: "bit-switch", providers: [{
|
|
4192
4205
|
provide: NG_VALUE_ACCESSOR,
|
|
4193
4206
|
useExisting: forwardRef(() => BitSwitchComponent),
|
|
4194
4207
|
multi: true
|
|
4195
|
-
}], 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"] }] }); }
|
|
4208
|
+
}], 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 }); }
|
|
4196
4209
|
}
|
|
4197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchComponent, decorators: [{
|
|
4198
4211
|
type: Component,
|
|
4199
|
-
args: [{ selector: "bit-switch", providers: [{
|
|
4212
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch", providers: [{
|
|
4200
4213
|
provide: NG_VALUE_ACCESSOR,
|
|
4201
4214
|
useExisting: forwardRef(() => BitSwitchComponent),
|
|
4202
4215
|
multi: true
|
|
4203
|
-
}], standalone: false, 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" }]
|
|
4216
|
+
}], standalone: false, 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" }]
|
|
4204
4217
|
}] });
|
|
4205
4218
|
|
|
4206
4219
|
class BitAutoCompleteComponent extends BitCustomComponent {
|
|
4207
4220
|
constructor() {
|
|
4208
4221
|
super(...arguments);
|
|
4209
|
-
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : []));
|
|
4210
|
-
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] : []));
|
|
4211
|
-
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
4212
|
-
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : []));
|
|
4213
|
-
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
4214
|
-
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] : []));
|
|
4215
|
-
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] : [])); // si se usa un template personalizado para mostrar los items
|
|
4222
|
+
this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []));
|
|
4223
|
+
this.suggestionField = input(...(ngDevMode ? [undefined, { debugName: "suggestionField" }] : /* istanbul ignore next */ []));
|
|
4224
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
4225
|
+
this.inputStyleClass = input(...(ngDevMode ? [undefined, { debugName: "inputStyleClass" }] : /* istanbul ignore next */ []));
|
|
4226
|
+
this.id = input("id", ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
4227
|
+
this.displayValue = input(...(ngDevMode ? [undefined, { debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
4228
|
+
this.customTemplate = input(false, ...(ngDevMode ? [{ debugName: "customTemplate" }] : /* istanbul ignore next */ [])); // si se usa un template personalizado para mostrar los items
|
|
4216
4229
|
this.completeMethod = output();
|
|
4217
4230
|
this.onSelect = output();
|
|
4218
4231
|
this.onClear = output();
|
|
4219
|
-
this.itemTemplate = contentChild("itemTemplate", ...(ngDevMode ?
|
|
4232
|
+
this.itemTemplate = contentChild("itemTemplate", { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
4220
4233
|
this.suggestions_mapped = computed(() => {
|
|
4221
4234
|
let suggestions = this.suggestions();
|
|
4222
4235
|
if (suggestions) {
|
|
@@ -4224,7 +4237,7 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4224
4237
|
this.log() && console.log("suggestions mapped for component: " + this.nombre(), newList);
|
|
4225
4238
|
return newList;
|
|
4226
4239
|
}
|
|
4227
|
-
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : []));
|
|
4240
|
+
}, ...(ngDevMode ? [{ debugName: "suggestions_mapped" }] : /* istanbul ignore next */ []));
|
|
4228
4241
|
}
|
|
4229
4242
|
ngAfterViewInit() {
|
|
4230
4243
|
// Control de errores:
|
|
@@ -4284,6 +4297,7 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4284
4297
|
this.value = this.displayValue();
|
|
4285
4298
|
}
|
|
4286
4299
|
}
|
|
4300
|
+
this.cdr.markForCheck();
|
|
4287
4301
|
}
|
|
4288
4302
|
changeComponentValue(value) {
|
|
4289
4303
|
this.log() && console.log(`changeComponentValue forComponent ${this.nombre()} with value ${value}`);
|
|
@@ -4340,24 +4354,24 @@ class BitAutoCompleteComponent extends BitCustomComponent {
|
|
|
4340
4354
|
}
|
|
4341
4355
|
}
|
|
4342
4356
|
}
|
|
4343
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4344
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAutoCompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4358
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitAutoCompleteComponent, isStandalone: false, selector: "bit-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, suggestionField: { classPropertyName: "suggestionField", publicName: "suggestionField", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, displayValue: { classPropertyName: "displayValue", publicName: "displayValue", isSignal: true, isRequired: false, transformFunction: null }, customTemplate: { classPropertyName: "customTemplate", publicName: "customTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onClear: "onClear" }, providers: [
|
|
4345
4359
|
{
|
|
4346
4360
|
provide: NG_VALUE_ACCESSOR,
|
|
4347
4361
|
useExisting: forwardRef(() => BitAutoCompleteComponent),
|
|
4348
4362
|
multi: true
|
|
4349
4363
|
}
|
|
4350
|
-
], 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"] }] }); }
|
|
4364
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, read: TemplateRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n<label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n</label>\r\n} @if (readOnly()) {\r\n<p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n} @if (!readOnly()) {\r\n<!-- Si usamos un template personalizado, hay que indicar el optionLabel para que sepa cu\u00E1l es el campo a mostrar al seleccionar un elemento -->\r\n<p-autoComplete\r\n fluid\r\n [(ngModel)]=\"value\"\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [placeholder]=\"placeholder()\"\r\n [delay]=\"400\"\r\n [suggestions]=\"suggestions_mapped()\"\r\n [multiple]=\"multiple()\"\r\n [inputStyleClass]=\"inputStyleClass()\"\r\n optionLabel=\"{{ customTemplate() ? this.suggestionField() : '' }}\"\r\n appendTo=\"body\"\r\n (completeMethod)=\"search($event)\"\r\n (onSelect)=\"_onSelect($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId() }}\"\r\n>\r\n @if (customTemplate() && itemTemplate()) {\r\n <ng-template pTemplate=\"item\" let-item>\r\n <ng-container *ngTemplateOutlet=\"itemTemplate(); context: { $implicit: item }\" />\r\n </ng-template>\r\n }\r\n</p-autoComplete>\r\n} @if (control() != null) {\r\n<control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i2$6.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4351
4365
|
}
|
|
4352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAutoCompleteComponent, decorators: [{
|
|
4353
4367
|
type: Component,
|
|
4354
|
-
args: [{ selector: "bit-autocomplete", providers: [
|
|
4368
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-autocomplete", providers: [
|
|
4355
4369
|
{
|
|
4356
4370
|
provide: NG_VALUE_ACCESSOR,
|
|
4357
4371
|
useExisting: forwardRef(() => BitAutoCompleteComponent),
|
|
4358
4372
|
multi: true
|
|
4359
4373
|
}
|
|
4360
|
-
], standalone: false, 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" }]
|
|
4374
|
+
], standalone: false, 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" }]
|
|
4361
4375
|
}], propDecorators: { suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], suggestionField: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestionField", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], displayValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayValue", required: false }] }], customTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "customTemplate", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], itemTemplate: [{ type: i0.ContentChild, args: ["itemTemplate", { ...{ read: TemplateRef }, isSignal: true }] }] } });
|
|
4362
4376
|
|
|
4363
4377
|
/**
|
|
@@ -4374,23 +4388,23 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4374
4388
|
super();
|
|
4375
4389
|
this.router = router;
|
|
4376
4390
|
this.translateService = translateService;
|
|
4377
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : [])); // forzar no reservar espacio para el nombre del campo
|
|
4378
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : [])); // lista de valores estáticos con lo que inicializamos el select
|
|
4379
|
-
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
4380
|
-
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] : []));
|
|
4381
|
-
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : [])); //valor por defecto seleccionable como primer elemento
|
|
4382
|
-
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] : []));
|
|
4383
|
-
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] : []));
|
|
4384
|
-
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : []));
|
|
4385
|
-
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] : []));
|
|
4386
|
-
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] : [])); // El atributo de los objetos de la lista que corresponde al label
|
|
4387
|
-
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] : [])); // El atributo de los objetos de la lista que corresponde al valor
|
|
4388
|
-
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] : [])); // El atributo de los objetos de la lista que indica si un valor está deshabilitado
|
|
4391
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ [])); // forzar no reservar espacio para el nombre del campo
|
|
4392
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ [])); // lista de valores estáticos con lo que inicializamos el select
|
|
4393
|
+
this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
4394
|
+
this.excludedValues = input(...(ngDevMode ? [undefined, { debugName: "excludedValues" }] : /* istanbul ignore next */ []));
|
|
4395
|
+
this.emptyText = input("", ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ [])); //valor por defecto seleccionable como primer elemento
|
|
4396
|
+
this.includeEmpty = input(true, ...(ngDevMode ? [{ debugName: "includeEmpty" }] : /* istanbul ignore next */ []));
|
|
4397
|
+
this.valueAs = input(...(ngDevMode ? [undefined, { debugName: "valueAs" }] : /* istanbul ignore next */ []));
|
|
4398
|
+
this.appendTo = input("body", ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
4399
|
+
this.group = input(false, ...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
|
|
4400
|
+
this.atributoLabel = input("label", ...(ngDevMode ? [{ debugName: "atributoLabel" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que corresponde al label
|
|
4401
|
+
this.atributoValue = input("value", ...(ngDevMode ? [{ debugName: "atributoValue" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que corresponde al valor
|
|
4402
|
+
this.atributoDisabled = input("inactivo", ...(ngDevMode ? [{ debugName: "atributoDisabled" }] : /* istanbul ignore next */ [])); // El atributo de los objetos de la lista que indica si un valor está deshabilitado
|
|
4389
4403
|
this.listaOpciones = computed(() => {
|
|
4390
4404
|
let list = this.data() ? this.data().slice() : [];
|
|
4391
4405
|
this.log() && console.log("Lista de opciones forComponent:" + this.nombre(), list);
|
|
4392
4406
|
return list;
|
|
4393
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : []));
|
|
4407
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpciones" }] : /* istanbul ignore next */ []));
|
|
4394
4408
|
this.listaOpcionesVisible = computed(() => {
|
|
4395
4409
|
let opciones = [];
|
|
4396
4410
|
if (this.listaOpciones()) {
|
|
@@ -4410,12 +4424,12 @@ class BitDropDownGeneralComponent extends BitCustomComponent {
|
|
|
4410
4424
|
}
|
|
4411
4425
|
this.log() && console.log("Lista de opciones visibles forComponent:" + this.nombre() + " después de excludeValues", opciones);
|
|
4412
4426
|
return opciones;
|
|
4413
|
-
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : []));
|
|
4427
|
+
}, ...(ngDevMode ? [{ debugName: "listaOpcionesVisible" }] : /* istanbul ignore next */ []));
|
|
4414
4428
|
}
|
|
4415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4416
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4429
|
+
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 }); }
|
|
4430
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.13", type: BitDropDownGeneralComponent, isStandalone: true, inputs: { hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, excludedValues: { classPropertyName: "excludedValues", publicName: "excludedValues", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, includeEmpty: { classPropertyName: "includeEmpty", publicName: "includeEmpty", isSignal: true, isRequired: false, transformFunction: null }, valueAs: { classPropertyName: "valueAs", publicName: "valueAs", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, atributoLabel: { classPropertyName: "atributoLabel", publicName: "atributoLabel", isSignal: true, isRequired: false, transformFunction: null }, atributoValue: { classPropertyName: "atributoValue", publicName: "atributoValue", isSignal: true, isRequired: false, transformFunction: null }, atributoDisabled: { classPropertyName: "atributoDisabled", publicName: "atributoDisabled", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
4417
4431
|
}
|
|
4418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownGeneralComponent, decorators: [{
|
|
4419
4433
|
type: Directive
|
|
4420
4434
|
}], ctorParameters: () => [{ type: i1$6.ActivatedRoute }, { type: TranslateService }], propDecorators: { hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], excludedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludedValues", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], includeEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "includeEmpty", required: false }] }], valueAs: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueAs", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], atributoLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "atributoLabel", required: false }] }], atributoValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "atributoValue", required: false }] }], atributoDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "atributoDisabled", required: false }] }] } });
|
|
4421
4435
|
|
|
@@ -4433,7 +4447,7 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4433
4447
|
const router = inject(ActivatedRoute);
|
|
4434
4448
|
const translateService = inject(TranslateService);
|
|
4435
4449
|
super(router, translateService);
|
|
4436
|
-
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4450
|
+
this.filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
4437
4451
|
this.router = router;
|
|
4438
4452
|
this.translateService = translateService;
|
|
4439
4453
|
}
|
|
@@ -4452,6 +4466,7 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4452
4466
|
else {
|
|
4453
4467
|
this.value = v;
|
|
4454
4468
|
}
|
|
4469
|
+
this.cdr.markForCheck();
|
|
4455
4470
|
}
|
|
4456
4471
|
_onChangeValue(event) {
|
|
4457
4472
|
this.value = event.value;
|
|
@@ -4468,24 +4483,24 @@ class BitDropDownComponent extends BitDropDownGeneralComponent {
|
|
|
4468
4483
|
this.value = null;
|
|
4469
4484
|
this.changeComponentValue(this.value);
|
|
4470
4485
|
}
|
|
4471
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4472
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4487
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDropDownComponent, isStandalone: false, selector: "bit-dropdown", inputs: { filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4473
4488
|
{
|
|
4474
4489
|
provide: NG_VALUE_ACCESSOR,
|
|
4475
4490
|
useExisting: forwardRef(() => BitDropDownComponent),
|
|
4476
4491
|
multi: true
|
|
4477
4492
|
}
|
|
4478
|
-
], 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"] }] }); }
|
|
4493
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-select\r\n id=\"{{ nombre() }}\"\r\n [(ngModel)]=\"value\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [options]=\"listaOpcionesVisible()\"\r\n [filter]=\"filter()\"\r\n [group]=\"group()\"\r\n [optionLabel]=\"atributoLabel()\"\r\n [optionValue]=\"atributoValue()\"\r\n [optionDisabled]=\"atributoDisabled()\"\r\n [appendTo]=\"appendTo()\"\r\n (onChange)=\"_onChangeValue($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n >\r\n <ng-template let-item pTemplate=\"item\">\r\n <span [ngClass]=\"{ 'opcion-desactivada': item[atributoDisabled()] }\">{{ item[atributoLabel()] }}</span>\r\n </ng-template>\r\n </p-select>\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"id()\" />\r\n }\r\n}\r\n", dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4479
4494
|
}
|
|
4480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownComponent, decorators: [{
|
|
4481
4496
|
type: Component,
|
|
4482
|
-
args: [{ selector: "bit-dropdown", providers: [
|
|
4497
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown", providers: [
|
|
4483
4498
|
{
|
|
4484
4499
|
provide: NG_VALUE_ACCESSOR,
|
|
4485
4500
|
useExisting: forwardRef(() => BitDropDownComponent),
|
|
4486
4501
|
multi: true
|
|
4487
4502
|
}
|
|
4488
|
-
], standalone: false, 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" }]
|
|
4503
|
+
], standalone: false, 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" }]
|
|
4489
4504
|
}], ctorParameters: () => [], propDecorators: { filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }] } });
|
|
4490
4505
|
|
|
4491
4506
|
/**
|
|
@@ -4497,10 +4512,10 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4497
4512
|
const router = inject(ActivatedRoute);
|
|
4498
4513
|
const translateService = inject(TranslateService);
|
|
4499
4514
|
super(router, translateService);
|
|
4500
|
-
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : []));
|
|
4501
|
-
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] : [])); // indica si se muestran los elementos seleccionados en una columna separada
|
|
4502
|
-
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : [])); //título que aparece en el link para eliminar un elemento una vez seleccionado
|
|
4503
|
-
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
4515
|
+
this.maxSelectedLabels = input(3, ...(ngDevMode ? [{ debugName: "maxSelectedLabels" }] : /* istanbul ignore next */ []));
|
|
4516
|
+
this.showSeparateSelectedLabels = input(false, ...(ngDevMode ? [{ debugName: "showSeparateSelectedLabels" }] : /* istanbul ignore next */ [])); // indica si se muestran los elementos seleccionados en una columna separada
|
|
4517
|
+
this.title = input(undefined, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ [])); //título que aparece en el link para eliminar un elemento una vez seleccionado
|
|
4518
|
+
this.filter = input(true, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
4504
4519
|
this.router = router;
|
|
4505
4520
|
this.translateService = translateService;
|
|
4506
4521
|
}
|
|
@@ -4557,6 +4572,7 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4557
4572
|
this.log() && console.log("currentValues: ", this.value);
|
|
4558
4573
|
}
|
|
4559
4574
|
}
|
|
4575
|
+
this.cdr.markForCheck();
|
|
4560
4576
|
}
|
|
4561
4577
|
_onChangeValue(event) {
|
|
4562
4578
|
this.value = event.value;
|
|
@@ -4578,24 +4594,24 @@ class BitDropDownMultipleComponent extends BitDropDownGeneralComponent {
|
|
|
4578
4594
|
emitValue() {
|
|
4579
4595
|
this.changeComponentValue(this.value);
|
|
4580
4596
|
}
|
|
4581
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4582
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4597
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4598
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitDropDownMultipleComponent, isStandalone: false, selector: "bit-dropdown-multiple", inputs: { maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, showSeparateSelectedLabels: { classPropertyName: "showSeparateSelectedLabels", publicName: "showSeparateSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
4583
4599
|
{
|
|
4584
4600
|
provide: NG_VALUE_ACCESSOR,
|
|
4585
4601
|
useExisting: forwardRef(() => BitDropDownMultipleComponent),
|
|
4586
4602
|
multi: true
|
|
4587
4603
|
}
|
|
4588
|
-
], 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"] }] }); }
|
|
4604
|
+
], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\"><ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda fa fa-question\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly() && !showSeparateSelectedLabels()) {\r\n <p class=\"lectura\">{{ value_lectura }}</p>\r\n}\r\n@if (!readOnly()) {\r\n <p-multiSelect id=\"{{ id() }}\"\r\n [(ngModel)]=\"value\"\r\n [placeholder]=\"placeholder()\"\r\n [filter]=\"filter()\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [options]=\"listaOpciones()\"\r\n [disabled]=\"isDisabled()\"\r\n [optionLabel]=\"atributoLabel()\"\r\n [optionValue]=\"atributoValue()\"\r\n [maxSelectedLabels]=\"maxSelectedLabels()\"\r\n [appendTo]=\"appendTo()\"\r\n selectedItemsLabel=\"{0} elements seleccionats\"\r\n (onChange)=\"_onChangeValue($event)\"\r\n (onClear)=\"_onClear()\"\r\n (onBlur)=\"_onBlur()\"\r\n (onFocus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"id()\" />\r\n }\r\n @if (showSeparateSelectedLabels()) {\r\n <div>\r\n <label for=\"{{ nombre() }}\"> </label>\r\n <div class=\"multiselect-labels\">\r\n @for (item of value; track item) {\r\n <div class=\"label label-primary multiselect-labels-lg\">\r\n <span>{{ labelSelectedItem(item) }}</span>\r\n @if (!readOnly()) {\r\n \r\n <a (click)=\"deleteSelectedItem($event, item)\" title=\"{{ title() }}\"><i class=\"fa fa-times\"></i></a>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n}", styles: ["bit-dropdown-multiple div{margin-right:2px!important}bit-dropdown-multiple .row{margin-left:0}.multiselect-labels .label{font-size:90%}.multiselect-labels .label span{margin-right:2px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$7.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4589
4605
|
}
|
|
4590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitDropDownMultipleComponent, decorators: [{
|
|
4591
4607
|
type: Component,
|
|
4592
|
-
args: [{ selector: "bit-dropdown-multiple", providers: [
|
|
4608
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-dropdown-multiple", providers: [
|
|
4593
4609
|
{
|
|
4594
4610
|
provide: NG_VALUE_ACCESSOR,
|
|
4595
4611
|
useExisting: forwardRef(() => BitDropDownMultipleComponent),
|
|
4596
4612
|
multi: true
|
|
4597
4613
|
}
|
|
4598
|
-
], standalone: false, 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"] }]
|
|
4614
|
+
], standalone: false, 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"] }]
|
|
4599
4615
|
}], ctorParameters: () => [], propDecorators: { maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], showSeparateSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeparateSelectedLabels", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }] } });
|
|
4600
4616
|
|
|
4601
4617
|
class ConfigurationEditor {
|
|
@@ -4631,11 +4647,11 @@ class ConfigurationEditor {
|
|
|
4631
4647
|
class BitEditorComponent extends BitCustomComponent {
|
|
4632
4648
|
constructor() {
|
|
4633
4649
|
super(...arguments);
|
|
4634
|
-
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : []));
|
|
4650
|
+
this.tipo = input("default", ...(ngDevMode ? [{ debugName: "tipo" }] : /* istanbul ignore next */ []));
|
|
4635
4651
|
// si es "custom", se utiliza el objeto de configuracion: configuration.
|
|
4636
4652
|
// si es "default", no se utiliza ninguna configuracion (se muestran todos los controles)
|
|
4637
|
-
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : []));
|
|
4638
|
-
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
4653
|
+
this.configuration = input(BitEditorComponent.globalConfiguration, ...(ngDevMode ? [{ debugName: "configuration" }] : /* istanbul ignore next */ []));
|
|
4654
|
+
this.height = input(100, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
4639
4655
|
this.onTextChange = output();
|
|
4640
4656
|
}
|
|
4641
4657
|
// es posible tener configuraciones globales en todos los bit-editor de un proyecto
|
|
@@ -4658,6 +4674,7 @@ class BitEditorComponent extends BitCustomComponent {
|
|
|
4658
4674
|
else {
|
|
4659
4675
|
this.value = v;
|
|
4660
4676
|
}
|
|
4677
|
+
this.cdr.markForCheck();
|
|
4661
4678
|
}
|
|
4662
4679
|
onChangeValue(text) {
|
|
4663
4680
|
this.value = text;
|
|
@@ -4683,20 +4700,20 @@ class BitEditorComponent extends BitCustomComponent {
|
|
|
4683
4700
|
const configuration = this.configuration();
|
|
4684
4701
|
return configuration ? configuration : BitEditorComponent.globalConfiguration;
|
|
4685
4702
|
}
|
|
4686
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4687
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4704
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitEditorComponent, isStandalone: false, selector: "bit-editor", inputs: { tipo: { classPropertyName: "tipo", publicName: "tipo", isSignal: true, isRequired: false, transformFunction: null }, configuration: { classPropertyName: "configuration", publicName: "configuration", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onTextChange: "onTextChange" }, providers: [{
|
|
4688
4705
|
provide: NG_VALUE_ACCESSOR,
|
|
4689
4706
|
useExisting: forwardRef(() => BitEditorComponent),
|
|
4690
4707
|
multi: true
|
|
4691
|
-
}], 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" }] }); }
|
|
4708
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\">\r\n {{ value_lectura && value_lectura != \"\" ? value_lectura : \" \" }}\r\n </p>\r\n}\r\n@if (!readOnly() && tipo() == 'custom') {\r\n <p-editor\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n [ngModel]=\"value\"\r\n styleClass=\"editor\"\r\n [disabled]=\"isDisabled()\"\r\n [placeholder]=\"placeholder()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n (onInit)=\"onInit($event)\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (onTextChange)=\"_onTextChange($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n >\r\n <p-header>\r\n @if (configuracion.fontSize) {\r\n <span class=\"ql-formats\">\r\n <select class=\"ql-size\">\r\n <option value=\"small\">{{ \"bitnglibrary.form.biteditor.small\" | transloco }}</option>\r\n <!-- Note a missing, thus falsy value, is used to reset to default -->\r\n <option selected>{{ \"bitnglibrary.form.biteditor.normal\" | transloco }}</option>\r\n <option value=\"large\">{{ \"bitnglibrary.form.biteditor.large\" | transloco }}</option>\r\n <option value=\"huge\">{{ \"bitnglibrary.form.biteditor.huge\" | transloco }}</option>\r\n </select>\r\n </span>\r\n }\r\n @if (configuracion.fontFormat) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n <button class=\"ql-strike\" aria-label=\"Strikethrough\"></button>\r\n </span>\r\n }\r\n @if (configuracion.bullet) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-list\" aria-label=\"Insert Ordered List\" value=\"ordered\" type=\"button\"></button>\r\n <button class=\"ql-list\" aria-label=\"Insert Bullet List\" value=\"bullet\" type=\"button\"></button>\r\n </span>\r\n }\r\n @if (configuracion.link) {\r\n <span class=\"ql-formats\">\r\n <button class=\"ql-link\" aria-label=\"Insert Link\" type=\"button\"></button>\r\n </span>\r\n }\r\n </p-header>\r\n </p-editor>\r\n}\r\n@if (!readOnly() && (!tipo() || tipo() == 'default')) {\r\n <p-editor id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n [ngModel]=\"value\"\r\n styleClass=\"editor\"\r\n [placeholder]=\"placeholder()\"\r\n [placeholder]=\"placeholder()\"\r\n [style]=\"{ height: height() + 'px' }\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$3.Header, selector: "p-header" }, { kind: "component", type: i2$8.Editor, selector: "p-editor", inputs: ["style", "styleClass", "placeholder", "formats", "modules", "bounds", "scrollingContainer", "debug", "readonly"], outputs: ["onInit", "onTextChange", "onSelectionChange", "onEditorChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: FocusRegisterDirective, selector: "input,select,textarea,bit-input,bit-select" }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }, { kind: "pipe", type: i3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4692
4709
|
}
|
|
4693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitEditorComponent, decorators: [{
|
|
4694
4711
|
type: Component,
|
|
4695
|
-
args: [{ selector: "bit-editor", providers: [{
|
|
4712
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-editor", providers: [{
|
|
4696
4713
|
provide: NG_VALUE_ACCESSOR,
|
|
4697
4714
|
useExisting: forwardRef(() => BitEditorComponent),
|
|
4698
4715
|
multi: true
|
|
4699
|
-
}], standalone: false, 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" }]
|
|
4716
|
+
}], standalone: false, 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" }]
|
|
4700
4717
|
}], propDecorators: { tipo: [{ type: i0.Input, args: [{ isSignal: true, alias: "tipo", required: false }] }], configuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "configuration", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], onTextChange: [{ type: i0.Output, args: ["onTextChange"] }] } });
|
|
4701
4718
|
|
|
4702
4719
|
class BitReadonlyComponent {
|
|
@@ -4705,15 +4722,15 @@ class BitReadonlyComponent {
|
|
|
4705
4722
|
this.sessionShared = inject(SessionSharedService);
|
|
4706
4723
|
this.ayudaService = inject(AyudaService);
|
|
4707
4724
|
this.dateUtils = inject(DateUtils);
|
|
4708
|
-
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : []));
|
|
4709
|
-
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] : []));
|
|
4710
|
-
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] : [])); // text (default), date, datetime, time, boolean, textarea, list, list-multiple
|
|
4711
|
-
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : []));
|
|
4712
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : [])); //lista de valores estáticos con lo que inicializamos el select
|
|
4713
|
-
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] : []));
|
|
4725
|
+
this.ayuda = input(...(ngDevMode ? [undefined, { debugName: "ayuda" }] : /* istanbul ignore next */ []));
|
|
4726
|
+
this.valor = input(...(ngDevMode ? [undefined, { debugName: "valor" }] : /* istanbul ignore next */ []));
|
|
4727
|
+
this.tipo = input("text", ...(ngDevMode ? [{ debugName: "tipo" }] : /* istanbul ignore next */ [])); // text (default), date, datetime, time, boolean, textarea, list, list-multiple
|
|
4728
|
+
this.hideLabel = input(false, ...(ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ []));
|
|
4729
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ [])); //lista de valores estáticos con lo que inicializamos el select
|
|
4730
|
+
this.isTextarea = computed(() => this.tipo() === "textarea", ...(ngDevMode ? [{ debugName: "isTextarea" }] : /* istanbul ignore next */ []));
|
|
4714
4731
|
this.opcionesDropdown = computed(() => {
|
|
4715
4732
|
return (this.data() && this.data().slice()) || [];
|
|
4716
|
-
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : []));
|
|
4733
|
+
}, ...(ngDevMode ? [{ debugName: "opcionesDropdown" }] : /* istanbul ignore next */ []));
|
|
4717
4734
|
}
|
|
4718
4735
|
showAyuda() {
|
|
4719
4736
|
this.ayudaService.mostrarAyuda(this.ayuda());
|
|
@@ -4739,29 +4756,29 @@ class BitReadonlyComponent {
|
|
|
4739
4756
|
return valor;
|
|
4740
4757
|
}
|
|
4741
4758
|
}
|
|
4742
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4743
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4759
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4760
|
+
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 }); }
|
|
4744
4761
|
}
|
|
4745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitReadonlyComponent, decorators: [{
|
|
4746
4763
|
type: Component,
|
|
4747
|
-
args: [{ 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}" }]
|
|
4764
|
+
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}" }]
|
|
4748
4765
|
}], propDecorators: { ayuda: [{ type: i0.Input, args: [{ isSignal: true, alias: "ayuda", required: false }] }], valor: [{ type: i0.Input, args: [{ isSignal: true, alias: "valor", required: false }] }], tipo: [{ type: i0.Input, args: [{ isSignal: true, alias: "tipo", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
4749
4766
|
|
|
4750
4767
|
class BitNumberComponent extends BitCustomComponent {
|
|
4751
4768
|
constructor() {
|
|
4752
4769
|
super(...arguments);
|
|
4753
|
-
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] : []));
|
|
4754
|
-
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] : []));
|
|
4755
|
-
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : []));
|
|
4756
|
-
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : []));
|
|
4757
|
-
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : []));
|
|
4758
|
-
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : []));
|
|
4759
|
-
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] : []));
|
|
4760
|
-
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] : []));
|
|
4761
|
-
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : []));
|
|
4762
|
-
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : []));
|
|
4763
|
-
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] : []));
|
|
4764
|
-
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] : []));
|
|
4770
|
+
this.modo = input("decimal", ...(ngDevMode ? [{ debugName: "modo" }] : /* istanbul ignore next */ []));
|
|
4771
|
+
this.divisa = input(...(ngDevMode ? [undefined, { debugName: "divisa" }] : /* istanbul ignore next */ []));
|
|
4772
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : /* istanbul ignore next */ []));
|
|
4773
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : /* istanbul ignore next */ []));
|
|
4774
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : /* istanbul ignore next */ []));
|
|
4775
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : /* istanbul ignore next */ []));
|
|
4776
|
+
this.numeroDecimales = input(...(ngDevMode ? [undefined, { debugName: "numeroDecimales" }] : /* istanbul ignore next */ []));
|
|
4777
|
+
this.maximoDecimales = input(...(ngDevMode ? [undefined, { debugName: "maximoDecimales" }] : /* istanbul ignore next */ []));
|
|
4778
|
+
this.separadorGrupo = input(false, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : /* istanbul ignore next */ []));
|
|
4779
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : /* istanbul ignore next */ []));
|
|
4780
|
+
this.incremento = input(1, ...(ngDevMode ? [{ debugName: "incremento" }] : /* istanbul ignore next */ []));
|
|
4781
|
+
this.inputElement = viewChild('inputReference', ...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
|
|
4765
4782
|
}
|
|
4766
4783
|
get value_lectura() {
|
|
4767
4784
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -4770,62 +4787,63 @@ class BitNumberComponent extends BitCustomComponent {
|
|
|
4770
4787
|
writeValue(v) {
|
|
4771
4788
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
4772
4789
|
this.value = v;
|
|
4790
|
+
this.cdr.markForCheck();
|
|
4773
4791
|
}
|
|
4774
4792
|
onChangeValue(text) {
|
|
4775
4793
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + text);
|
|
4776
4794
|
this.value = text;
|
|
4777
4795
|
this.changeComponentValue(this.value);
|
|
4778
4796
|
}
|
|
4779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4780
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4797
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4798
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitNumberComponent, isStandalone: false, selector: "bit-number", inputs: { modo: { classPropertyName: "modo", publicName: "modo", isSignal: true, isRequired: false, transformFunction: null }, divisa: { classPropertyName: "divisa", publicName: "divisa", isSignal: true, isRequired: false, transformFunction: null }, prefijo: { classPropertyName: "prefijo", publicName: "prefijo", isSignal: true, isRequired: false, transformFunction: null }, sufijo: { classPropertyName: "sufijo", publicName: "sufijo", isSignal: true, isRequired: false, transformFunction: null }, minimo: { classPropertyName: "minimo", publicName: "minimo", isSignal: true, isRequired: false, transformFunction: null }, maximo: { classPropertyName: "maximo", publicName: "maximo", isSignal: true, isRequired: false, transformFunction: null }, numeroDecimales: { classPropertyName: "numeroDecimales", publicName: "numeroDecimales", isSignal: true, isRequired: false, transformFunction: null }, maximoDecimales: { classPropertyName: "maximoDecimales", publicName: "maximoDecimales", isSignal: true, isRequired: false, transformFunction: null }, separadorGrupo: { classPropertyName: "separadorGrupo", publicName: "separadorGrupo", isSignal: true, isRequired: false, transformFunction: null }, mostrarBotones: { classPropertyName: "mostrarBotones", publicName: "mostrarBotones", isSignal: true, isRequired: false, transformFunction: null }, incremento: { classPropertyName: "incremento", publicName: "incremento", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4781
4799
|
provide: NG_VALUE_ACCESSOR,
|
|
4782
4800
|
useExisting: forwardRef(() => BitNumberComponent),
|
|
4783
4801
|
multi: true
|
|
4784
|
-
}], 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"] }] }); }
|
|
4802
|
+
}], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputReference"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$7.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4785
4803
|
}
|
|
4786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitNumberComponent, decorators: [{
|
|
4787
4805
|
type: Component,
|
|
4788
|
-
args: [{ selector: "bit-number", providers: [{
|
|
4806
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-number", providers: [{
|
|
4789
4807
|
provide: NG_VALUE_ACCESSOR,
|
|
4790
4808
|
useExisting: forwardRef(() => BitNumberComponent),
|
|
4791
4809
|
multi: true
|
|
4792
|
-
}], standalone: false, 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" }]
|
|
4810
|
+
}], standalone: false, 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" }]
|
|
4793
4811
|
}], propDecorators: { modo: [{ type: i0.Input, args: [{ isSignal: true, alias: "modo", required: false }] }], divisa: [{ type: i0.Input, args: [{ isSignal: true, alias: "divisa", required: false }] }], prefijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefijo", required: false }] }], sufijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sufijo", required: false }] }], minimo: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimo", required: false }] }], maximo: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximo", required: false }] }], numeroDecimales: [{ type: i0.Input, args: [{ isSignal: true, alias: "numeroDecimales", required: false }] }], maximoDecimales: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximoDecimales", required: false }] }], separadorGrupo: [{ type: i0.Input, args: [{ isSignal: true, alias: "separadorGrupo", required: false }] }], mostrarBotones: [{ type: i0.Input, args: [{ isSignal: true, alias: "mostrarBotones", required: false }] }], incremento: [{ type: i0.Input, args: [{ isSignal: true, alias: "incremento", required: false }] }], inputElement: [{ type: i0.ViewChild, args: ['inputReference', { isSignal: true }] }] } });
|
|
4794
4812
|
|
|
4795
4813
|
class BitAmountComponent extends BitNumberComponent {
|
|
4796
4814
|
constructor() {
|
|
4797
4815
|
super(...arguments);
|
|
4798
|
-
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : []));
|
|
4799
|
-
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : []));
|
|
4800
|
-
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : []));
|
|
4801
|
-
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : []));
|
|
4802
|
-
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : []));
|
|
4803
|
-
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] : []));
|
|
4804
|
-
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] : []));
|
|
4805
|
-
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] : []));
|
|
4806
|
-
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] : []));
|
|
4807
|
-
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : []));
|
|
4808
|
-
}
|
|
4809
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4810
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4816
|
+
this.prefijo = input(...(ngDevMode ? [undefined, { debugName: "prefijo" }] : /* istanbul ignore next */ []));
|
|
4817
|
+
this.sufijo = input(...(ngDevMode ? [undefined, { debugName: "sufijo" }] : /* istanbul ignore next */ []));
|
|
4818
|
+
this.minimo = input(...(ngDevMode ? [undefined, { debugName: "minimo" }] : /* istanbul ignore next */ []));
|
|
4819
|
+
this.maximo = input(...(ngDevMode ? [undefined, { debugName: "maximo" }] : /* istanbul ignore next */ []));
|
|
4820
|
+
this.mostrarBotones = input(...(ngDevMode ? [undefined, { debugName: "mostrarBotones" }] : /* istanbul ignore next */ []));
|
|
4821
|
+
this.incremento = input(...(ngDevMode ? [undefined, { debugName: "incremento" }] : /* istanbul ignore next */ []));
|
|
4822
|
+
this.modo = input("currency", ...(ngDevMode ? [{ debugName: "modo" }] : /* istanbul ignore next */ []));
|
|
4823
|
+
this.divisa = input("EUR", ...(ngDevMode ? [{ debugName: "divisa" }] : /* istanbul ignore next */ []));
|
|
4824
|
+
this.maximoDecimales = input(2, ...(ngDevMode ? [{ debugName: "maximoDecimales" }] : /* istanbul ignore next */ []));
|
|
4825
|
+
this.separadorGrupo = input(true, ...(ngDevMode ? [{ debugName: "separadorGrupo" }] : /* istanbul ignore next */ []));
|
|
4826
|
+
}
|
|
4827
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAmountComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4828
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitAmountComponent, isStandalone: false, selector: "bit-amount", inputs: { prefijo: { classPropertyName: "prefijo", publicName: "prefijo", isSignal: true, isRequired: false, transformFunction: null }, sufijo: { classPropertyName: "sufijo", publicName: "sufijo", isSignal: true, isRequired: false, transformFunction: null }, minimo: { classPropertyName: "minimo", publicName: "minimo", isSignal: true, isRequired: false, transformFunction: null }, maximo: { classPropertyName: "maximo", publicName: "maximo", isSignal: true, isRequired: false, transformFunction: null }, mostrarBotones: { classPropertyName: "mostrarBotones", publicName: "mostrarBotones", isSignal: true, isRequired: false, transformFunction: null }, incremento: { classPropertyName: "incremento", publicName: "incremento", isSignal: true, isRequired: false, transformFunction: null }, modo: { classPropertyName: "modo", publicName: "modo", isSignal: true, isRequired: false, transformFunction: null }, divisa: { classPropertyName: "divisa", publicName: "divisa", isSignal: true, isRequired: false, transformFunction: null }, maximoDecimales: { classPropertyName: "maximoDecimales", publicName: "maximoDecimales", isSignal: true, isRequired: false, transformFunction: null }, separadorGrupo: { classPropertyName: "separadorGrupo", publicName: "separadorGrupo", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
4811
4829
|
provide: NG_VALUE_ACCESSOR,
|
|
4812
4830
|
useExisting: forwardRef(() => BitAmountComponent),
|
|
4813
4831
|
multi: true
|
|
4814
|
-
}], 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"] }] }); }
|
|
4832
|
+
}], usesInheritance: true, ngImport: i0, template: "@if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span>\r\n } \r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n}\r\n@if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n}\r\n@if (!tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [placeholder]=\"placeholder()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (tooltipTexto() && !readOnly()) {\r\n <p-inputNumber\r\n #inputReference\r\n id=\"{{ nombre() }}\"\r\n name=\"{{ nombre() }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [disabled]=\"isDisabled()\"\r\n [ngModel]=\"value\"\r\n [attr.directive]=\"nombreDirectiva()\"\r\n [pTooltip]=\"tooltipTexto()\"\r\n [tooltipPosition]=\"tooltipPosicion()\"\r\n [mode]=\"modo()\"\r\n [currency]=\"divisa()\"\r\n [prefix]=\"prefijo()\"\r\n [suffix]=\"sufijo()\"\r\n [min]=\"minimo()\"\r\n [max]=\"maximo()\"\r\n [minFractionDigits]=\"numeroDecimales()\"\r\n [maxFractionDigits]=\"maximoDecimales() == null ? numeroDecimales() : maximoDecimales()\"\r\n [useGrouping]=\"separadorGrupo()\"\r\n [showButtons]=\"mostrarBotones()\"\r\n [step]=\"incremento()\"\r\n locale=\"es-ES\"\r\n (ngModelChange)=\"onChangeValue($event)\"\r\n (blur)=\"_onBlur()\"\r\n (focus)=\"_onFocus()\"\r\n attr.data-testid=\"{{ dataTestId()}}\"\r\n />\r\n}\r\n@if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n}\r\n", dependencies: [{ kind: "component", type: i1$7.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4815
4833
|
}
|
|
4816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitAmountComponent, decorators: [{
|
|
4817
4835
|
type: Component,
|
|
4818
|
-
args: [{ selector: "bit-amount", providers: [{
|
|
4836
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-amount", providers: [{
|
|
4819
4837
|
provide: NG_VALUE_ACCESSOR,
|
|
4820
4838
|
useExisting: forwardRef(() => BitAmountComponent),
|
|
4821
4839
|
multi: true
|
|
4822
|
-
}], standalone: false, 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" }]
|
|
4840
|
+
}], standalone: false, 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" }]
|
|
4823
4841
|
}], propDecorators: { prefijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefijo", required: false }] }], sufijo: [{ type: i0.Input, args: [{ isSignal: true, alias: "sufijo", required: false }] }], minimo: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimo", required: false }] }], maximo: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximo", required: false }] }], mostrarBotones: [{ type: i0.Input, args: [{ isSignal: true, alias: "mostrarBotones", required: false }] }], incremento: [{ type: i0.Input, args: [{ isSignal: true, alias: "incremento", required: false }] }], modo: [{ type: i0.Input, args: [{ isSignal: true, alias: "modo", required: false }] }], divisa: [{ type: i0.Input, args: [{ isSignal: true, alias: "divisa", required: false }] }], maximoDecimales: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximoDecimales", required: false }] }], separadorGrupo: [{ type: i0.Input, args: [{ isSignal: true, alias: "separadorGrupo", required: false }] }] } });
|
|
4824
4842
|
|
|
4825
4843
|
/** Esta clase contiene información sobre el menú pulsado por el usuairo. Permite setear dicho valor y recuperarlo mediante un signal */
|
|
4826
4844
|
class MenuService {
|
|
4827
4845
|
constructor() {
|
|
4828
|
-
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : []));
|
|
4846
|
+
this.currentMenu$ = signal(undefined, ...(ngDevMode ? [{ debugName: "currentMenu$" }] : /* istanbul ignore next */ []));
|
|
4829
4847
|
}
|
|
4830
4848
|
setCurrentMenu(menuTitle) {
|
|
4831
4849
|
this.currentMenu$.set(menuTitle);
|
|
@@ -4834,10 +4852,10 @@ class MenuService {
|
|
|
4834
4852
|
getCurrentMenu() {
|
|
4835
4853
|
return this.currentMenu$;
|
|
4836
4854
|
}
|
|
4837
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4838
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4855
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4856
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, providedIn: "root" }); }
|
|
4839
4857
|
}
|
|
4840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: MenuService, decorators: [{
|
|
4841
4859
|
type: Injectable,
|
|
4842
4860
|
args: [{ providedIn: "root" }]
|
|
4843
4861
|
}], ctorParameters: () => [] });
|
|
@@ -4850,8 +4868,8 @@ class MenuTitle {
|
|
|
4850
4868
|
|
|
4851
4869
|
class BitSidebarComponent {
|
|
4852
4870
|
constructor() {
|
|
4853
|
-
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
4854
|
-
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : []));
|
|
4871
|
+
this.items = input(undefined, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
4872
|
+
this.visibilidad = input(undefined, ...(ngDevMode ? [{ debugName: "visibilidad" }] : /* istanbul ignore next */ []));
|
|
4855
4873
|
this.onSelectLanguage = output();
|
|
4856
4874
|
this.onCloseMenu = output();
|
|
4857
4875
|
this.onMenuTitle = output();
|
|
@@ -4879,10 +4897,10 @@ class BitSidebarComponent {
|
|
|
4879
4897
|
this.closeMenu();
|
|
4880
4898
|
this.onSelectLanguage.emit(language);
|
|
4881
4899
|
}
|
|
4882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4883
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4900
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4901
|
+
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 }); }
|
|
4884
4902
|
}
|
|
4885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSidebarComponent, decorators: [{
|
|
4886
4904
|
type: Component,
|
|
4887
4905
|
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"] }]
|
|
4888
4906
|
}], 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"] }] } });
|
|
@@ -4893,10 +4911,10 @@ class BitThemeSelectorComponent {
|
|
|
4893
4911
|
this.themeFBitService = inject(ThemeFBitService);
|
|
4894
4912
|
this.themeList$ = computed(() => this.themeFBitService.themeList$().map((theme) => {
|
|
4895
4913
|
return { name: theme };
|
|
4896
|
-
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : []));
|
|
4914
|
+
}), ...(ngDevMode ? [{ debugName: "themeList$" }] : /* istanbul ignore next */ []));
|
|
4897
4915
|
this.currentTheme$ = computed(() => {
|
|
4898
4916
|
return this.themeFBitService.currentTheme$();
|
|
4899
|
-
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : []));
|
|
4917
|
+
}, ...(ngDevMode ? [{ debugName: "currentTheme$" }] : /* istanbul ignore next */ []));
|
|
4900
4918
|
effect(() => {
|
|
4901
4919
|
console.log("theme", this.currentTheme$());
|
|
4902
4920
|
console.log("themeList", this.themeList$());
|
|
@@ -4910,20 +4928,20 @@ class BitThemeSelectorComponent {
|
|
|
4910
4928
|
this.themeFBitService.changeTheme(theme);
|
|
4911
4929
|
this.onChangeTheme.emit(theme);
|
|
4912
4930
|
}
|
|
4913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4914
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4931
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitThemeSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4932
|
+
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 }); }
|
|
4915
4933
|
}
|
|
4916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitThemeSelectorComponent, decorators: [{
|
|
4917
4935
|
type: Component,
|
|
4918
|
-
args: [{ 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)\"/>" }]
|
|
4936
|
+
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)\"/>" }]
|
|
4919
4937
|
}], ctorParameters: () => [], propDecorators: { onChangeTheme: [{ type: i0.Output, args: ["onChangeTheme"] }] } });
|
|
4920
4938
|
|
|
4921
4939
|
class BitLanguageSelectorComponent {
|
|
4922
4940
|
constructor() {
|
|
4923
4941
|
this.onSelectLanguage = output();
|
|
4924
4942
|
this.localeService = inject(LocaleService);
|
|
4925
|
-
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : []));
|
|
4926
|
-
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : []));
|
|
4943
|
+
this.languageList$ = signal(this.localeService.locales, ...(ngDevMode ? [{ debugName: "languageList$" }] : /* istanbul ignore next */ []));
|
|
4944
|
+
this.currentLanguage$ = linkedSignal(() => this.localeService.locale$(), ...(ngDevMode ? [{ debugName: "currentLanguage$" }] : /* istanbul ignore next */ []));
|
|
4927
4945
|
}
|
|
4928
4946
|
//signal(this.localeService.locale$());
|
|
4929
4947
|
selectGroupChanged(_event) {
|
|
@@ -4935,10 +4953,10 @@ class BitLanguageSelectorComponent {
|
|
|
4935
4953
|
this.currentLanguage$.set(language);
|
|
4936
4954
|
this.onSelectLanguage.emit(language);
|
|
4937
4955
|
}
|
|
4938
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4939
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLanguageSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4957
|
+
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 }); }
|
|
4940
4958
|
}
|
|
4941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitLanguageSelectorComponent, decorators: [{
|
|
4942
4960
|
type: Component,
|
|
4943
4961
|
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)\"/>" }]
|
|
4944
4962
|
}], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }] } });
|
|
@@ -4964,12 +4982,12 @@ class BitSettingsComponent {
|
|
|
4964
4982
|
this.themeFBitService.setDarkMode(this.isDarkMode);
|
|
4965
4983
|
this.onDarkModeChange.emit(this.isDarkMode); // Emit the new state
|
|
4966
4984
|
}
|
|
4967
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4968
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4986
|
+
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 }); }
|
|
4969
4987
|
}
|
|
4970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSettingsComponent, decorators: [{
|
|
4971
4989
|
type: Component,
|
|
4972
|
-
args: [{ 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"] }]
|
|
4990
|
+
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"] }]
|
|
4973
4991
|
}], ctorParameters: () => [], propDecorators: { onSelectLanguage: [{ type: i0.Output, args: ["onSelectLanguage"] }], onDarkModeChange: [{ type: i0.Output, args: ["onDarkModeChange"] }] } });
|
|
4974
4992
|
|
|
4975
4993
|
class BytesPipe {
|
|
@@ -5018,10 +5036,10 @@ class BytesPipe {
|
|
|
5018
5036
|
const prev = format.prev ? BytesPipe.formats[format.prev] : undefined;
|
|
5019
5037
|
return prev ? bytes / prev.max : bytes;
|
|
5020
5038
|
}
|
|
5021
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5022
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5040
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, isStandalone: false, name: "bytes" }); }
|
|
5023
5041
|
}
|
|
5024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BytesPipe, decorators: [{
|
|
5025
5043
|
type: Pipe,
|
|
5026
5044
|
args: [{
|
|
5027
5045
|
name: "bytes",
|
|
@@ -5058,10 +5076,10 @@ class CapitalizePipe {
|
|
|
5058
5076
|
return texto;
|
|
5059
5077
|
}
|
|
5060
5078
|
}
|
|
5061
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5062
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5080
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, isStandalone: false, name: "capitalize" }); }
|
|
5063
5081
|
}
|
|
5064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CapitalizePipe, decorators: [{
|
|
5065
5083
|
type: Pipe,
|
|
5066
5084
|
args: [{
|
|
5067
5085
|
name: "capitalize",
|
|
@@ -5078,10 +5096,10 @@ class CutTextPipe {
|
|
|
5078
5096
|
}
|
|
5079
5097
|
return value.substring(0, maxLength) + "...";
|
|
5080
5098
|
}
|
|
5081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5082
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5100
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, isStandalone: false, name: "cutText" }); }
|
|
5083
5101
|
}
|
|
5084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CutTextPipe, decorators: [{
|
|
5085
5103
|
type: Pipe,
|
|
5086
5104
|
args: [{
|
|
5087
5105
|
name: 'cutText',
|
|
@@ -5106,10 +5124,10 @@ class DomainListValuePipe {
|
|
|
5106
5124
|
s = s.substring(0, s.length - 2);
|
|
5107
5125
|
return s;
|
|
5108
5126
|
}
|
|
5109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5110
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5128
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, isStandalone: false, name: "domainListValue" }); }
|
|
5111
5129
|
}
|
|
5112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainListValuePipe, decorators: [{
|
|
5113
5131
|
type: Pipe,
|
|
5114
5132
|
args: [{
|
|
5115
5133
|
name: "domainListValue",
|
|
@@ -5131,10 +5149,10 @@ class DomainValuePipe {
|
|
|
5131
5149
|
return "";
|
|
5132
5150
|
}
|
|
5133
5151
|
}
|
|
5134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5135
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5153
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, isStandalone: false, name: "domainValue" }); }
|
|
5136
5154
|
}
|
|
5137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: DomainValuePipe, decorators: [{
|
|
5138
5156
|
type: Pipe,
|
|
5139
5157
|
args: [{
|
|
5140
5158
|
name: "domainValue",
|
|
@@ -5154,10 +5172,10 @@ class ListValuePipe {
|
|
|
5154
5172
|
s = s.substring(0, s.length - 2);
|
|
5155
5173
|
return s;
|
|
5156
5174
|
}
|
|
5157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5158
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5176
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, isStandalone: false, name: "listValue" }); }
|
|
5159
5177
|
}
|
|
5160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ListValuePipe, decorators: [{
|
|
5161
5179
|
type: Pipe,
|
|
5162
5180
|
args: [{
|
|
5163
5181
|
name: "listValue",
|
|
@@ -5179,10 +5197,10 @@ class OtherToolbarActionPipe {
|
|
|
5179
5197
|
}
|
|
5180
5198
|
return actions;
|
|
5181
5199
|
}
|
|
5182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5183
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5201
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, isStandalone: false, name: "otherToolbarAction" }); }
|
|
5184
5202
|
}
|
|
5185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: OtherToolbarActionPipe, decorators: [{
|
|
5186
5204
|
type: Pipe,
|
|
5187
5205
|
args: [{
|
|
5188
5206
|
name: "otherToolbarAction",
|
|
@@ -5206,10 +5224,10 @@ class RemoveLineBreaksPipe {
|
|
|
5206
5224
|
}
|
|
5207
5225
|
return str;
|
|
5208
5226
|
}
|
|
5209
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5210
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5228
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, isStandalone: false, name: "removeLineBreaks" }); }
|
|
5211
5229
|
}
|
|
5212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RemoveLineBreaksPipe, decorators: [{
|
|
5213
5231
|
type: Pipe,
|
|
5214
5232
|
args: [{
|
|
5215
5233
|
name: "removeLineBreaks",
|
|
@@ -5226,10 +5244,10 @@ class SiONoPipe {
|
|
|
5226
5244
|
return value ? "Sí" : "No";
|
|
5227
5245
|
}
|
|
5228
5246
|
}
|
|
5229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5230
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5248
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, isStandalone: false, name: "siONo" }); }
|
|
5231
5249
|
}
|
|
5232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SiONoPipe, decorators: [{
|
|
5233
5251
|
type: Pipe,
|
|
5234
5252
|
args: [{
|
|
5235
5253
|
name: "siONo",
|
|
@@ -5241,10 +5259,10 @@ class StringifyPipe {
|
|
|
5241
5259
|
transform(value) {
|
|
5242
5260
|
return JSON.stringify(value);
|
|
5243
5261
|
}
|
|
5244
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5245
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
5262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5263
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, isStandalone: false, name: "stringify" }); }
|
|
5246
5264
|
}
|
|
5247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: StringifyPipe, decorators: [{
|
|
5248
5266
|
type: Pipe,
|
|
5249
5267
|
args: [{
|
|
5250
5268
|
name: "stringify",
|
|
@@ -5271,10 +5289,10 @@ class BitPanelDirective {
|
|
|
5271
5289
|
ngOnDestroy() {
|
|
5272
5290
|
this.suscription && this.suscription.unsubscribe();
|
|
5273
5291
|
}
|
|
5274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5275
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPanelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5293
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.13", type: BitPanelDirective, isStandalone: false, selector: "[bitpanel]", ngImport: i0 }); }
|
|
5276
5294
|
}
|
|
5277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitPanelDirective, decorators: [{
|
|
5278
5296
|
type: Directive,
|
|
5279
5297
|
args: [{
|
|
5280
5298
|
selector: "[bitpanel]",
|
|
@@ -5290,8 +5308,8 @@ const directives = [
|
|
|
5290
5308
|
class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
5291
5309
|
constructor() {
|
|
5292
5310
|
super(...arguments);
|
|
5293
|
-
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : []));
|
|
5294
|
-
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : []));
|
|
5311
|
+
this.valorTrue = input(true, ...(ngDevMode ? [{ debugName: "valorTrue" }] : /* istanbul ignore next */ []));
|
|
5312
|
+
this.valorFalse = input(false, ...(ngDevMode ? [{ debugName: "valorFalse" }] : /* istanbul ignore next */ []));
|
|
5295
5313
|
}
|
|
5296
5314
|
get value_lectura() {
|
|
5297
5315
|
this.log() && console.log("value lectura: " + this.value);
|
|
@@ -5300,34 +5318,35 @@ class BitSwitchSiNoComponent extends BitCustomComponent {
|
|
|
5300
5318
|
writeValue(v) {
|
|
5301
5319
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
5302
5320
|
this.value = v;
|
|
5321
|
+
this.cdr.markForCheck();
|
|
5303
5322
|
}
|
|
5304
5323
|
onChangeValue(event) {
|
|
5305
5324
|
this.value = event.checked;
|
|
5306
5325
|
this.log() && console.log("_onChangeValue forComponent: " + this.nombre() + " with value:" + this.value);
|
|
5307
5326
|
this.changeComponentValue(this.value);
|
|
5308
5327
|
}
|
|
5309
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5310
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchSiNoComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5329
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitSwitchSiNoComponent, isStandalone: false, selector: "bit-switch-si-no", inputs: { valorTrue: { classPropertyName: "valorTrue", publicName: "valorTrue", isSignal: true, isRequired: false, transformFunction: null }, valorFalse: { classPropertyName: "valorFalse", publicName: "valorFalse", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{
|
|
5311
5330
|
provide: NG_VALUE_ACCESSOR,
|
|
5312
5331
|
useExisting: forwardRef(() => BitSwitchSiNoComponent),
|
|
5313
5332
|
multi: true
|
|
5314
|
-
}], 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"] }] }); }
|
|
5333
|
+
}], 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 }); }
|
|
5315
5334
|
}
|
|
5316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitSwitchSiNoComponent, decorators: [{
|
|
5317
5336
|
type: Component,
|
|
5318
|
-
args: [{ selector: "bit-switch-si-no", providers: [{
|
|
5337
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-switch-si-no", providers: [{
|
|
5319
5338
|
provide: NG_VALUE_ACCESSOR,
|
|
5320
5339
|
useExisting: forwardRef(() => BitSwitchSiNoComponent),
|
|
5321
5340
|
multi: true
|
|
5322
|
-
}], standalone: false, 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" }]
|
|
5341
|
+
}], standalone: false, 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" }]
|
|
5323
5342
|
}], propDecorators: { valorTrue: [{ type: i0.Input, args: [{ isSignal: true, alias: "valorTrue", required: false }] }], valorFalse: [{ type: i0.Input, args: [{ isSignal: true, alias: "valorFalse", required: false }] }] } });
|
|
5324
5343
|
|
|
5325
5344
|
class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
5326
5345
|
constructor() {
|
|
5327
5346
|
super(...arguments);
|
|
5328
|
-
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : []));
|
|
5329
|
-
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
5330
|
-
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : []));
|
|
5347
|
+
this.chekAll = input(true, ...(ngDevMode ? [{ debugName: "chekAll" }] : /* istanbul ignore next */ []));
|
|
5348
|
+
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
5349
|
+
this.isCheckAll = signal(false, ...(ngDevMode ? [{ debugName: "isCheckAll" }] : /* istanbul ignore next */ []));
|
|
5331
5350
|
this.estiloCheckAll = computed(() => {
|
|
5332
5351
|
if (this.isCheckAll()) {
|
|
5333
5352
|
return "pi pi-check-square";
|
|
@@ -5335,7 +5354,7 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5335
5354
|
else {
|
|
5336
5355
|
return "pi pi-stop";
|
|
5337
5356
|
}
|
|
5338
|
-
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : []));
|
|
5357
|
+
}, ...(ngDevMode ? [{ debugName: "estiloCheckAll" }] : /* istanbul ignore next */ []));
|
|
5339
5358
|
}
|
|
5340
5359
|
get value_lectura() {
|
|
5341
5360
|
if (this.value) {
|
|
@@ -5356,6 +5375,7 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5356
5375
|
this.log() && console.log(`writeValue forComponent ${this.nombre()} with value ${v}`);
|
|
5357
5376
|
this.value = v;
|
|
5358
5377
|
this.refreshCheckAll();
|
|
5378
|
+
this.cdr.markForCheck();
|
|
5359
5379
|
}
|
|
5360
5380
|
onChangeValue(event) {
|
|
5361
5381
|
let selected = event && event.checked;
|
|
@@ -5385,24 +5405,24 @@ class BitMultipleCheckboxComponent extends BitCustomComponent {
|
|
|
5385
5405
|
refreshCheckAll() {
|
|
5386
5406
|
this.isCheckAll.set(this.data()?.length === this.value?.length);
|
|
5387
5407
|
}
|
|
5388
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5389
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5408
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMultipleCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5409
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: BitMultipleCheckboxComponent, isStandalone: false, selector: "bit-checkbox-multiple", inputs: { chekAll: { classPropertyName: "chekAll", publicName: "chekAll", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
5390
5410
|
{
|
|
5391
5411
|
provide: NG_VALUE_ACCESSOR,
|
|
5392
5412
|
useExisting: forwardRef(() => BitMultipleCheckboxComponent),
|
|
5393
5413
|
multi: true
|
|
5394
5414
|
}
|
|
5395
|
-
], 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"] }] }); }
|
|
5415
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-container *transloco=\"let t\">\r\n\r\n @if (!hideLabel()) {\r\n <label for=\"{{ nombre() }}\">\r\n <ng-content /> \r\n @if (!readOnly() && this.chekAll()) {\r\n <i title=\"{{t('bitnglibrary.form.bitmultiplecheckbox.checkall')}}\"\r\n style=\"color: #ced4da\"\r\n class=\"font-normal cursor-pointer hover:text-blue-600 cursor-pointer text-sm {{ estiloCheckAll() }}\"\r\n (click)=\"onCheckAll()\"></i> \r\n }\r\n @if (obligatorio()) {\r\n <span class=\"obligatorio fa fa-asterisk\"></span> \r\n }\r\n @if (ayuda()) {\r\n <i class=\"btn-ayuda fa fa-question\" (click)=\"showAyuda()\"></i>\r\n }\r\n </label>\r\n }\r\n\r\n @if (readOnly()) {\r\n <p class=\"lectura\" [id]=\"nombre()\">{{ value_lectura }}</p>\r\n } @else {\r\n\r\n @for (dominio of data(); track dominio) {\r\n <div class=\"field-checkbox inline-block\">\r\n <p-checkbox\r\n id=\"{{ nombre() + '-' + dominio.value }}\"\r\n name=\"{{ nombre() + '-' + dominio.value }}\"\r\n ariaLabel=\"{{ nombre() }}\"\r\n [value]=\"dominio.value\"\r\n [(ngModel)]=\"value\"\r\n [inputId]=\"dominio.value\"\r\n [disabled]=\"isDisabled()\"\r\n (onChange)=\"onChangeValue($event)\">\r\n attr.data-testid=\"{{ dataTestId() + \"-\" + dominio.value }}\"\r\n </p-checkbox>\r\n <label class=\"inline-block ml-2 mr-4 font-normal cursor-pointer hover:text-blue-400\"\r\n [for]=\"dominio.value\">{{ dominio.label }}</label>\r\n </div>\r\n }\r\n @if (ayuda()) {\r\n <i (click)=\"showAyuda()\" class=\"btn-ayuda-checkbox fa fa-question\"></i>\r\n }\r\n\r\n @if (control() != null) {\r\n <control-messages [control]=\"control()\" [field]=\"nombre()\" />\r\n }\r\n }\r\n\r\n</ng-container>\r\n", dependencies: [{ kind: "component", type: i1$5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: BitControlMessages, selector: "control-messages", inputs: ["control", "field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5396
5416
|
}
|
|
5397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: BitMultipleCheckboxComponent, decorators: [{
|
|
5398
5418
|
type: Component,
|
|
5399
|
-
args: [{ selector: "bit-checkbox-multiple", providers: [
|
|
5419
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: "bit-checkbox-multiple", providers: [
|
|
5400
5420
|
{
|
|
5401
5421
|
provide: NG_VALUE_ACCESSOR,
|
|
5402
5422
|
useExisting: forwardRef(() => BitMultipleCheckboxComponent),
|
|
5403
5423
|
multi: true
|
|
5404
5424
|
}
|
|
5405
|
-
], standalone: false, 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" }]
|
|
5425
|
+
], standalone: false, 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" }]
|
|
5406
5426
|
}], propDecorators: { chekAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "chekAll", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
|
|
5407
5427
|
|
|
5408
5428
|
const modules = [
|
|
@@ -5494,8 +5514,8 @@ const formComponents = [
|
|
|
5494
5514
|
BitAmountComponent
|
|
5495
5515
|
];
|
|
5496
5516
|
class SharedLibraryModule {
|
|
5497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5498
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5517
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5518
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, declarations: [BitPanelDirective, FocusRegisterDirective, BitBreadCrumbComponent,
|
|
5499
5519
|
BitControlMessages,
|
|
5500
5520
|
BitDialogComponent,
|
|
5501
5521
|
BitFooterComponent,
|
|
@@ -5654,7 +5674,7 @@ class SharedLibraryModule {
|
|
|
5654
5674
|
BitReadonlyComponent,
|
|
5655
5675
|
BitNumberComponent,
|
|
5656
5676
|
BitAmountComponent] }); }
|
|
5657
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5677
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, providers: [{ provide: TRANSLOCO_SCOPE, useValue: "bitnglibrary" }, MessageService], imports: [modules, RouterModule, FileUploadModule$1, TranslocoModule, AccordionModule,
|
|
5658
5678
|
AutoCompleteModule,
|
|
5659
5679
|
BadgeModule,
|
|
5660
5680
|
DatePickerModule,
|
|
@@ -5700,7 +5720,7 @@ class SharedLibraryModule {
|
|
|
5700
5720
|
TreeModule,
|
|
5701
5721
|
TreeTableModule] }); }
|
|
5702
5722
|
}
|
|
5703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: SharedLibraryModule, decorators: [{
|
|
5704
5724
|
type: NgModule,
|
|
5705
5725
|
args: [{
|
|
5706
5726
|
imports: [...modules, RouterModule, FileUploadModule$1, TranslocoModule],
|
|
@@ -5774,10 +5794,10 @@ class CanDeactivateGuard {
|
|
|
5774
5794
|
canDeactivate(component) {
|
|
5775
5795
|
return component.canDeactivate ? component.canDeactivate() : true;
|
|
5776
5796
|
}
|
|
5777
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5778
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5797
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5798
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard }); }
|
|
5779
5799
|
}
|
|
5780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanDeactivateGuard, decorators: [{
|
|
5781
5801
|
type: Injectable
|
|
5782
5802
|
}] });
|
|
5783
5803
|
|
|
@@ -5802,10 +5822,10 @@ class CustomHttpInterceptor {
|
|
|
5802
5822
|
this.generalUtils.stopLoading();
|
|
5803
5823
|
}));
|
|
5804
5824
|
}
|
|
5805
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5806
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5826
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, providedIn: "root" }); }
|
|
5807
5827
|
}
|
|
5808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CustomHttpInterceptor, decorators: [{
|
|
5809
5829
|
type: Injectable,
|
|
5810
5830
|
args: [{ providedIn: "root" }]
|
|
5811
5831
|
}], ctorParameters: () => [] });
|
|
@@ -5834,10 +5854,10 @@ class EntityDataService {
|
|
|
5834
5854
|
getService(entityName) {
|
|
5835
5855
|
return this.services[entityName.trim()];
|
|
5836
5856
|
}
|
|
5837
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5838
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5858
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, providedIn: "root" }); }
|
|
5839
5859
|
}
|
|
5840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityDataService, decorators: [{
|
|
5841
5861
|
type: Injectable,
|
|
5842
5862
|
args: [{ providedIn: "root" }]
|
|
5843
5863
|
}], ctorParameters: () => [] });
|
|
@@ -5962,7 +5982,7 @@ class EntityCollectionServiceBase {
|
|
|
5962
5982
|
entities = entities.sort(sortComparerFn);
|
|
5963
5983
|
}
|
|
5964
5984
|
return entities;
|
|
5965
|
-
}, ...(ngDevMode ? [{ debugName: "entities$" }] : []));
|
|
5985
|
+
}, ...(ngDevMode ? [{ debugName: "entities$" }] : /* istanbul ignore next */ []));
|
|
5966
5986
|
/** Signal of all ids in the cached collection. */
|
|
5967
5987
|
this.ids$ = this.entityStore.ids;
|
|
5968
5988
|
/** Signal of the filter object applied by the entity collection's filter function */
|
|
@@ -6482,10 +6502,10 @@ class HttpUrlGenerator {
|
|
|
6482
6502
|
...(entityHttpResourceUrls || {})
|
|
6483
6503
|
};
|
|
6484
6504
|
}
|
|
6485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6486
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6506
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, providedIn: "root" }); }
|
|
6487
6507
|
}
|
|
6488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: HttpUrlGenerator, decorators: [{
|
|
6489
6509
|
type: Injectable,
|
|
6490
6510
|
args: [{ providedIn: "root" }]
|
|
6491
6511
|
}] });
|