@optionfactory/ful 4.0.12 → 4.0.13

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/dist/ful.mjs CHANGED
@@ -1964,6 +1964,10 @@ class RemoteLoader {
1964
1964
  await this.#ensureFetched();
1965
1965
  return this.#data.filter(([k, v]) => (v ?? '').toLowerCase().includes(needle?.toLowerCase()));
1966
1966
  }
1967
+ async reconfigureUrl(url){
1968
+ this.#data = null;
1969
+ this.#url = url;
1970
+ }
1967
1971
  async #ensureFetched() {
1968
1972
  if (this.#data !== null) {
1969
1973
  return
@@ -2307,8 +2311,8 @@ class Select extends ParsedElement {
2307
2311
  });
2308
2312
  this.replaceChildren(fragment);
2309
2313
  }
2310
- withLoader(fn) {
2311
- fn(this.#loader);
2314
+ async withLoader(fn) {
2315
+ await fn(this.#loader);
2312
2316
  }
2313
2317
  #changed() {
2314
2318
  const selection = [...this.#values.entries()].map(e => ({key: e[0], label: e[1][0], metadata: e[1].slice(1)}));
@@ -2369,7 +2373,7 @@ class Select extends ParsedElement {
2369
2373
  this.reflect(() => {
2370
2374
  Attributes.toggle(this, 'readonly', v);
2371
2375
  });
2372
- }
2376
+ }
2373
2377
  focus(options) {
2374
2378
  this.#input.focus(options);
2375
2379
  }