@fxi/zartigl 0.11.2 → 0.11.3

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/catalog.d.ts CHANGED
@@ -350,8 +350,9 @@ export declare function resolveLocalizedText(value: LocalizedText | undefined, l
350
350
  export declare function searchCatalog(query: string, options?: CatalogSearchOptions, data?: Catalog): CatalogEntry[];
351
351
 
352
352
  /**
353
- * Whether a source can show the requested time. Only fixed-period sources
354
- * (rendered artifacts such as GeoVideo) declare hard bounds; live sources are
353
+ * Whether a source can show the requested time. Fixed-period sources
354
+ * (rendered artifacts such as GeoVideo) declare hard bounds, and the live
355
+ * catalog declares where a store's data begins; other live sources are
355
356
  * assumed to cover any request and are bounded by their own metadata.
356
357
  */
357
358
  export declare function sourceCoversTime(source: CatalogSource, request?: SourceTimeRequest): boolean;
package/dist/catalog.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as s, L as r, P as t, h as o, R as l, i, j as y, g as L, k as S, l as E, n as c, o as g, q as T, t as d, m, a as n, p as C, e as R, d as _, u as f, v as p, r as A, w as v, c as Y, x as u, b as P, s as k } from "./index-J9N3fiZ4.js";
1
+ import { C as s, L as r, P as t, h as o, R as l, i, j as y, g as L, k as S, l as E, n as c, o as g, q as T, t as d, m, a as n, p as C, e as R, d as _, u as f, v as p, r as A, w as v, c as Y, x as u, b as P, s as k } from "./index-DVXVRI3C.js";
2
2
  export {
3
3
  s as CATALOG_URL,
4
4
  r as LAYER_STYLE_DEFAULTS,
@@ -191,7 +191,7 @@ function _e(e, a, i = {}) {
191
191
  }
192
192
  return M(s);
193
193
  }
194
- const S = "0.11.2", N = { "maplibre-gl": "^5.17.0" }, le = {
194
+ const S = "0.11.3", N = { "maplibre-gl": "^5.17.0" }, le = {
195
195
  version: S,
196
196
  devDependencies: N
197
197
  }, F = "https://sos-ch-gva-2.exo.io/mapx-zartigl/catalog/v2/catalog.json";
@@ -270,7 +270,7 @@ const J = [
270
270
  ], X = ["geovideo", "zarr"];
271
271
  function Q(e, a = {}) {
272
272
  const i = e.temporal;
273
- if (i?.mode !== "fixed")
273
+ if (!i?.start && !i?.end)
274
274
  return !0;
275
275
  const r = i.start ? Date.parse(i.start) : -1 / 0, o = i.end ? Date.parse(i.end) : 1 / 0;
276
276
  return a.time != null && (a.time < r || a.time > o) ? !1 : (a.start ?? -1 / 0) <= o && (a.end ?? 1 / 0) >= r;