@solcre-org/core-ui 2.20.30 → 2.20.32
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.
|
@@ -1779,13 +1779,13 @@ class SelectFieldComponent extends BaseFieldComponent {
|
|
|
1779
1779
|
else {
|
|
1780
1780
|
current.push(option.value);
|
|
1781
1781
|
}
|
|
1782
|
-
this.formControl().setValue(current);
|
|
1782
|
+
this.formControl().setValue(current, { emitEvent: false });
|
|
1783
1783
|
this.formControl().markAsDirty();
|
|
1784
1784
|
this.onValueChange(current);
|
|
1785
1785
|
this.searchTerm.set('');
|
|
1786
1786
|
}
|
|
1787
1787
|
else {
|
|
1788
|
-
this.formControl().setValue(option.value);
|
|
1788
|
+
this.formControl().setValue(option.value, { emitEvent: false });
|
|
1789
1789
|
this.formControl().markAsDirty();
|
|
1790
1790
|
this.onValueChange(option.value);
|
|
1791
1791
|
this.closeDropdown();
|
|
@@ -1797,7 +1797,7 @@ class SelectFieldComponent extends BaseFieldComponent {
|
|
|
1797
1797
|
if (this.field().multiple) {
|
|
1798
1798
|
const current = Array.isArray(this.computedValue()) ? [...this.computedValue()] : [];
|
|
1799
1799
|
const filtered = current.filter((v) => String(v) !== String(item.value));
|
|
1800
|
-
this.formControl().setValue(filtered);
|
|
1800
|
+
this.formControl().setValue(filtered, { emitEvent: false });
|
|
1801
1801
|
this.formControl().markAsDirty();
|
|
1802
1802
|
this.onValueChange(filtered);
|
|
1803
1803
|
}
|
|
@@ -1806,7 +1806,7 @@ class SelectFieldComponent extends BaseFieldComponent {
|
|
|
1806
1806
|
event.preventDefault();
|
|
1807
1807
|
event.stopPropagation();
|
|
1808
1808
|
const emptyValue = this.field().multiple ? [] : null;
|
|
1809
|
-
this.formControl().setValue(emptyValue);
|
|
1809
|
+
this.formControl().setValue(emptyValue, { emitEvent: false });
|
|
1810
1810
|
this.formControl().markAsDirty();
|
|
1811
1811
|
this.hasValue.set(false);
|
|
1812
1812
|
this.onValueChange(emptyValue);
|
|
@@ -1853,7 +1853,7 @@ class SelectFieldComponent extends BaseFieldComponent {
|
|
|
1853
1853
|
if (current.length > 0) {
|
|
1854
1854
|
event.preventDefault();
|
|
1855
1855
|
current.pop();
|
|
1856
|
-
this.formControl().setValue(current);
|
|
1856
|
+
this.formControl().setValue(current, { emitEvent: false });
|
|
1857
1857
|
this.formControl().markAsDirty();
|
|
1858
1858
|
this.onValueChange(current);
|
|
1859
1859
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -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.
|
|
17758
|
+
full: '2.20.32',
|
|
17754
17759
|
major: 2,
|
|
17755
17760
|
minor: 20,
|
|
17756
|
-
patch:
|
|
17757
|
-
timestamp: '2026-03-
|
|
17758
|
-
buildDate: '
|
|
17761
|
+
patch: 32,
|
|
17762
|
+
timestamp: '2026-03-04T17:46:34.039Z',
|
|
17763
|
+
buildDate: '4/3/2026'
|
|
17759
17764
|
};
|
|
17760
17765
|
|
|
17761
17766
|
class MainNavComponent {
|