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