@solcre-org/core-ui 2.12.18 → 2.12.19

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.
@@ -2790,7 +2790,7 @@ class ServerSelectFieldComponent extends BaseFieldComponent {
2790
2790
  return currentValue === optionValue;
2791
2791
  }
2792
2792
  onBlurInput() {
2793
- if (!this.hasSearched()) {
2793
+ if (!this.hasSearched() && !this.hasValue()) {
2794
2794
  this.itemsSignal.set([]);
2795
2795
  }
2796
2796
  this.onBlur();
@@ -2866,15 +2866,15 @@ class ServerSelectFieldComponent extends BaseFieldComponent {
2866
2866
  return;
2867
2867
  }
2868
2868
  if (this.hasValue()) {
2869
- this.initializeWithOptions();
2870
- if (this.items().length === 0) {
2871
- this.initializeWithPreloadedOptions();
2872
- }
2869
+ this.initializeWithPreloadedOptions();
2873
2870
  if (this.items().length === 0) {
2874
2871
  this.initializeWithExistingValues();
2875
2872
  }
2873
+ if (this.items().length === 0 && this.field().dynamicOptions) {
2874
+ this.throttledEvaluateDynamicOptions();
2875
+ }
2876
2876
  }
2877
- if (this.items().length === 0 && !this.hasSearched()) {
2877
+ if (this.items().length === 0 && !this.hasSearched() && !this.hasValue()) {
2878
2878
  this.hasSearchedSignal.set(false);
2879
2879
  }
2880
2880
  }
@@ -2890,7 +2890,18 @@ class ServerSelectFieldComponent extends BaseFieldComponent {
2890
2890
  return;
2891
2891
  }
2892
2892
  if (this.items().length === 0 && this.hasValue()) {
2893
- this.initializeWithExistingValues();
2893
+ const options = this.field().options;
2894
+ if (options && options.length > 0) {
2895
+ this.initializeWithOptions();
2896
+ return;
2897
+ }
2898
+ this.initializeWithPreloadedOptions();
2899
+ if (this.items().length === 0) {
2900
+ this.initializeWithExistingValues();
2901
+ }
2902
+ if (this.items().length === 0 && this.field().dynamicOptions) {
2903
+ this.throttledEvaluateDynamicOptions();
2904
+ }
2894
2905
  return;
2895
2906
  }
2896
2907
  if (!hasSearchResults && !hasCurrentItems && !hasValue) {
@@ -11985,11 +11996,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
11985
11996
  // Este archivo es generado automáticamente por scripts/update-version.js
11986
11997
  // No edites manualmente este archivo
11987
11998
  const VERSION = {
11988
- full: '2.12.18',
11999
+ full: '2.12.19',
11989
12000
  major: 2,
11990
12001
  minor: 12,
11991
- patch: 18,
11992
- timestamp: '2025-09-09T09:06:05.255Z',
12002
+ patch: 19,
12003
+ timestamp: '2025-09-09T12:48:52.457Z',
11993
12004
  buildDate: '9/9/2025'
11994
12005
  };
11995
12006