@solcre-org/core-ui 2.20.29 → 2.20.31

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.
@@ -9,7 +9,7 @@ import { FormControl, Validators, FormsModule, ReactiveFormsModule, FormBuilder
9
9
  import { AuthService, ApiService } from '@solcre-org/core';
10
10
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
11
11
  import { distinctUntilChanged, debounceTime, tap as tap$1, map as map$1, filter, catchError as catchError$1 } from 'rxjs/operators';
12
- import { map, BehaviorSubject, Subject, throttleTime, takeUntil, debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1, tap, switchMap, of, catchError, finalize, throwError, Observable, forkJoin, zip, timeout, Subscription, from } from 'rxjs';
12
+ import { map, BehaviorSubject, Subject, throttleTime, takeUntil, debounceTime as debounceTime$1, distinctUntilChanged as distinctUntilChanged$1, tap, switchMap, of, catchError, finalize, throwError, Observable, forkJoin, zip, skip, timeout, Subscription, from } from 'rxjs';
13
13
  import * as i5 from '@ng-select/ng-select';
14
14
  import { NgSelectModule } from '@ng-select/ng-select';
15
15
  import * as i4 from '@angular/router';
@@ -2272,6 +2272,7 @@ class DocumentFieldComponent extends BaseFieldComponent {
2272
2272
  documentNumberControl = new FormControl('');
2273
2273
  isUserEditing = false;
2274
2274
  isInitialized = false;
2275
+ _docTypeSignal = signal('');
2275
2276
  defaultDocumentOptions = [
2276
2277
  { value: 'CI', label: 'CI' },
2277
2278
  { value: 'DNI', label: 'DNI' },
@@ -2294,9 +2295,7 @@ class DocumentFieldComponent extends BaseFieldComponent {
2294
2295
  return chars ? chars.toString() : null;
2295
2296
  });
2296
2297
  currentDocumentType = computed(() => {
2297
- const controlValue = this.documentTypeControl.value;
2298
- const defaultVal = this.fieldConfig().defaultValue;
2299
- return controlValue || defaultVal || '';
2298
+ return this._docTypeSignal() || this.fieldConfig().defaultValue || '';
2300
2299
  });
2301
2300
  documentFieldConfig = computed(() => {
2302
2301
  return {
@@ -2314,6 +2313,7 @@ class DocumentFieldComponent extends BaseFieldComponent {
2314
2313
  const defaultValue = this.fieldConfig().defaultValue;
2315
2314
  if (defaultValue && !this.documentTypeControl.value) {
2316
2315
  this.documentTypeControl.setValue(defaultValue, { emitEvent: true });
2316
+ this._docTypeSignal.set(defaultValue);
2317
2317
  }
2318
2318
  this.isInitialized = true;
2319
2319
  }
@@ -2351,6 +2351,7 @@ class DocumentFieldComponent extends BaseFieldComponent {
2351
2351
  }
2352
2352
  if (documentType !== this.documentTypeControl.value) {
2353
2353
  this.documentTypeControl.setValue(documentType, { emitEvent: false });
2354
+ this._docTypeSignal.set(documentType);
2354
2355
  }
2355
2356
  if (documentNumber !== this.documentNumberControl.value) {
2356
2357
  this.documentNumberControl.setValue(documentNumber, { emitEvent: false });
@@ -2360,9 +2361,11 @@ class DocumentFieldComponent extends BaseFieldComponent {
2360
2361
  const defaultValue = config.defaultValue;
2361
2362
  if (defaultValue) {
2362
2363
  this.documentTypeControl.setValue(defaultValue, { emitEvent: false });
2364
+ this._docTypeSignal.set(defaultValue);
2363
2365
  }
2364
2366
  else {
2365
2367
  this.documentTypeControl.setValue('', { emitEvent: false });
2368
+ this._docTypeSignal.set('');
2366
2369
  }
2367
2370
  this.documentNumberControl.setValue('', { emitEvent: false });
2368
2371
  }
@@ -2419,7 +2422,9 @@ class DocumentFieldComponent extends BaseFieldComponent {
2419
2422
  }
2420
2423
  onDocumentTypeChangeFromSelect(value) {
2421
2424
  this.isUserEditing = true;
2422
- this.documentTypeControl.setValue(value || '');
2425
+ const docType = value || '';
2426
+ this.documentTypeControl.setValue(docType);
2427
+ this._docTypeSignal.set(docType);
2423
2428
  setTimeout(() => {
2424
2429
  this.isUserEditing = false;
2425
2430
  }, 100);
@@ -2456,11 +2461,11 @@ class DocumentFieldComponent extends BaseFieldComponent {
2456
2461
  this.documentTypeControl.setValue('');
2457
2462
  }
2458
2463
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DocumentFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2459
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: DocumentFieldComponent, isStandalone: true, selector: "core-document-field", usesInheritance: true, hostDirectives: [{ directive: CoreHostDirective }], ngImport: i0, template: "<div class=\"c-entry-group\">\n <label class=\"c-entry-item\" [class.c-entry-item--inline]=\"field().inline\">\n <span class=\"c-entry-text\" *ngIf=\"field().label\">\n {{ field().label | translate }}\n @if (hasRequiredValidators()) {\n <span class=\"c-required\">*</span>\n }\n </span>\n <div class=\"c-entry-grid\">\n <core-select-field\n [field]=\"documentFieldConfig()\"\n [value]=\"currentDocumentType()\"\n [mode]=\"mode()\"\n (valueChange)=\"onDocumentTypeChangeFromSelect($event)\"\n ></core-select-field>\n <span class=\"c-entry-input\" [style.--chars]=\"documentNumberChars()\">\n <input\n type=\"text\"\n [value]=\"documentNumberControl.value\"\n [placeholder]=\"getDocumentNumberPlaceholder() | translate\"\n [disabled]=\"isDisabled()\"\n (focus)=\"onDocumentNumberFocus()\"\n (input)=\"onDocumentNumberChange($event)\"\n (blur)=\"onDocumentNumberBlur()\"\n />\n </span>\n </div>\n @if (hasError()) {\n <core-field-errors [errors]=\"errors()\"></core-field-errors>\n }\n </label>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: FieldErrorsComponent, selector: "core-field-errors", inputs: ["errors"] }, { kind: "component", type: SelectFieldComponent, selector: "core-select-field", inputs: ["field"], outputs: ["selectionChange"] }] });
2464
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: DocumentFieldComponent, isStandalone: true, selector: "core-document-field", usesInheritance: true, hostDirectives: [{ directive: CoreHostDirective }], ngImport: i0, template: "<div class=\"c-entry-group\">\n <label class=\"c-entry-item\" [class.c-entry-item--inline]=\"field().inline\">\n <span class=\"c-entry-text\" *ngIf=\"field().label\">\n {{ field().label | translate }}\n @if (hasRequiredValidators()) {\n <span class=\"c-required\">*</span>\n }\n </span>\n <div class=\"c-entry-grid\" [style.grid-template-columns]=\"'calc(' + documentTypeChars() + 'ch + 4.5rem) 1fr'\">\n <core-select-field\n [field]=\"documentFieldConfig()\"\n [value]=\"currentDocumentType()\"\n [mode]=\"mode()\"\n (valueChange)=\"onDocumentTypeChangeFromSelect($event)\"\n ></core-select-field>\n <span class=\"c-entry-input\" [style.--chars]=\"documentNumberChars()\">\n <input\n type=\"text\"\n [value]=\"documentNumberControl.value\"\n [placeholder]=\"getDocumentNumberPlaceholder() | translate\"\n [disabled]=\"isDisabled()\"\n (focus)=\"onDocumentNumberFocus()\"\n (input)=\"onDocumentNumberChange($event)\"\n (blur)=\"onDocumentNumberBlur()\"\n />\n </span>\n </div>\n @if (hasError()) {\n <core-field-errors [errors]=\"errors()\"></core-field-errors>\n }\n </label>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: FieldErrorsComponent, selector: "core-field-errors", inputs: ["errors"] }, { kind: "component", type: SelectFieldComponent, selector: "core-select-field", inputs: ["field"], outputs: ["selectionChange"] }] });
2460
2465
  }
2461
2466
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DocumentFieldComponent, decorators: [{
2462
2467
  type: Component,
2463
- args: [{ selector: 'core-document-field', standalone: true, imports: [CommonModule, FormsModule, TranslateModule, ReactiveFormsModule, FieldErrorsComponent, SelectFieldComponent], hostDirectives: [CoreHostDirective], template: "<div class=\"c-entry-group\">\n <label class=\"c-entry-item\" [class.c-entry-item--inline]=\"field().inline\">\n <span class=\"c-entry-text\" *ngIf=\"field().label\">\n {{ field().label | translate }}\n @if (hasRequiredValidators()) {\n <span class=\"c-required\">*</span>\n }\n </span>\n <div class=\"c-entry-grid\">\n <core-select-field\n [field]=\"documentFieldConfig()\"\n [value]=\"currentDocumentType()\"\n [mode]=\"mode()\"\n (valueChange)=\"onDocumentTypeChangeFromSelect($event)\"\n ></core-select-field>\n <span class=\"c-entry-input\" [style.--chars]=\"documentNumberChars()\">\n <input\n type=\"text\"\n [value]=\"documentNumberControl.value\"\n [placeholder]=\"getDocumentNumberPlaceholder() | translate\"\n [disabled]=\"isDisabled()\"\n (focus)=\"onDocumentNumberFocus()\"\n (input)=\"onDocumentNumberChange($event)\"\n (blur)=\"onDocumentNumberBlur()\"\n />\n </span>\n </div>\n @if (hasError()) {\n <core-field-errors [errors]=\"errors()\"></core-field-errors>\n }\n </label>\n</div>\n" }]
2468
+ args: [{ selector: 'core-document-field', standalone: true, imports: [CommonModule, FormsModule, TranslateModule, ReactiveFormsModule, FieldErrorsComponent, SelectFieldComponent], hostDirectives: [CoreHostDirective], template: "<div class=\"c-entry-group\">\n <label class=\"c-entry-item\" [class.c-entry-item--inline]=\"field().inline\">\n <span class=\"c-entry-text\" *ngIf=\"field().label\">\n {{ field().label | translate }}\n @if (hasRequiredValidators()) {\n <span class=\"c-required\">*</span>\n }\n </span>\n <div class=\"c-entry-grid\" [style.grid-template-columns]=\"'calc(' + documentTypeChars() + 'ch + 4.5rem) 1fr'\">\n <core-select-field\n [field]=\"documentFieldConfig()\"\n [value]=\"currentDocumentType()\"\n [mode]=\"mode()\"\n (valueChange)=\"onDocumentTypeChangeFromSelect($event)\"\n ></core-select-field>\n <span class=\"c-entry-input\" [style.--chars]=\"documentNumberChars()\">\n <input\n type=\"text\"\n [value]=\"documentNumberControl.value\"\n [placeholder]=\"getDocumentNumberPlaceholder() | translate\"\n [disabled]=\"isDisabled()\"\n (focus)=\"onDocumentNumberFocus()\"\n (input)=\"onDocumentNumberChange($event)\"\n (blur)=\"onDocumentNumberBlur()\"\n />\n </span>\n </div>\n @if (hasError()) {\n <core-field-errors [errors]=\"errors()\"></core-field-errors>\n }\n </label>\n</div>\n" }]
2464
2469
  }], ctorParameters: () => [] });
2465
2470
 
2466
2471
  // icon-compat.pipe.ts
@@ -14278,7 +14283,7 @@ class GenericTableComponent {
14278
14283
  this.startLoaderTimeout(loaderId);
14279
14284
  });
14280
14285
  this.moreData().forEach(config => {
14281
- this.subscriptions.push(this.modelApiService.getMoreDataObservable(config.key).subscribe({
14286
+ this.subscriptions.push(this.modelApiService.getMoreDataObservable(config.key).pipe(skip(1)).subscribe({
14282
14287
  next: (data) => {
14283
14288
  const moreDataMap = new Map();
14284
14289
  moreDataMap.set(config.key, data || []);
@@ -15902,7 +15907,7 @@ class GenericTableComponent {
15902
15907
  const isMainDataLoading = this.loadingStates.mainData;
15903
15908
  const isFilterDataLoading = this.loadingStates.filterData;
15904
15909
  const moreDataPending = this.loadingStates.moreData.size;
15905
- if (!isMainDataLoading) {
15910
+ if (!isMainDataLoading && moreDataPending === 0) {
15906
15911
  this.loaderService.hideLoader(this.MAIN_DATA_LOADER_ID);
15907
15912
  this.clearLoaderTimeout(this.MAIN_DATA_LOADER_ID);
15908
15913
  }
@@ -17750,12 +17755,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
17750
17755
  // Este archivo es generado automáticamente por scripts/update-version.js
17751
17756
  // No edites manualmente este archivo
17752
17757
  const VERSION = {
17753
- full: '2.20.29',
17758
+ full: '2.20.31',
17754
17759
  major: 2,
17755
17760
  minor: 20,
17756
- patch: 29,
17757
- timestamp: '2026-02-27T15:55:43.722Z',
17758
- buildDate: '27/2/2026'
17761
+ patch: 31,
17762
+ timestamp: '2026-03-03T16:38:38.438Z',
17763
+ buildDate: '3/3/2026'
17759
17764
  };
17760
17765
 
17761
17766
  class MainNavComponent {