@piveau/piveau-hub-ui-modules 4.5.13 → 4.6.0

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.
Files changed (33) hide show
  1. package/dist/data-provider-interface/DPIMenu.vue.mjs +5 -5
  2. package/dist/data-provider-interface/DataProviderInterface.vue.d.ts +9 -4
  3. package/dist/data-provider-interface/components/Navigation.vue.mjs +57 -56
  4. package/dist/data-provider-interface/components/Navigation.vue.mjs.map +1 -1
  5. package/dist/data-provider-interface/components/SpatialInput.vue.mjs +23 -22
  6. package/dist/data-provider-interface/components/SpatialInput.vue.mjs.map +1 -1
  7. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs +13 -13
  8. package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.mjs.map +1 -1
  9. package/dist/data-provider-interface/composables/index.d.ts +1 -0
  10. package/dist/data-provider-interface/composables/useDpiEditMode.mjs +15 -16
  11. package/dist/data-provider-interface/composables/useDpiEditMode.mjs.map +1 -1
  12. package/dist/data-provider-interface/composables/useFormSchema.d.ts +13 -0
  13. package/dist/data-provider-interface/composables/useFormSchema.mjs +59 -0
  14. package/dist/data-provider-interface/composables/useFormSchema.mjs.map +1 -0
  15. package/dist/data-provider-interface/index.d.ts +33 -0
  16. package/dist/data-provider-interface/utils/translation-helper.mjs +23 -23
  17. package/dist/data-provider-interface/utils/translation-helper.mjs.map +1 -1
  18. package/dist/data-provider-interface/views/DistributionOverview.vue.d.ts +1 -1
  19. package/dist/data-provider-interface/views/InputPage.vue.d.ts +9 -4
  20. package/dist/data-provider-interface/views/InputPage.vue.mjs +110 -110
  21. package/dist/data-provider-interface/views/InputPage.vue.mjs.map +1 -1
  22. package/dist/dataProviderInterface.d.ts +1 -0
  23. package/dist/dataProviderInterface.mjs +71 -0
  24. package/dist/dataProviderInterface.mjs.map +1 -0
  25. package/dist/external/@vueuse/core/index +31 -31
  26. package/dist/external/@vueuse/shared/index +66 -63
  27. package/dist/external/@vueuse/shared/index.map +1 -1
  28. package/dist/form/FormKitGroup.vue.mjs.map +1 -1
  29. package/dist/index.mjs +54 -54
  30. package/dist/piveau-hub-ui-modules.css +1 -1
  31. package/package.json +17 -1
  32. package/dist/data-provider-interface/index.mjs +0 -15
  33. package/dist/data-provider-interface/index.mjs.map +0 -1
@@ -0,0 +1,71 @@
1
+ import { dpiContextKey as Q, setupDpiContext as T, useDpiContext as W } from "./data-provider-interface/composables/useDpiContext.mjs";
2
+ import { useDpiStepper as Y } from "./data-provider-interface/composables/useDpiStepper.mjs";
3
+ import { useDpiEditMode as oo } from "./data-provider-interface/composables/useDpiEditMode.mjs";
4
+ import { useRequestUriName as to } from "./data-provider-interface/composables/useRequestUriName.mjs";
5
+ import { useFormSchema as no } from "./data-provider-interface/composables/useFormSchema.mjs";
6
+ import { config as mo } from "./data-provider-interface/config/dpi-spec-config.mjs";
7
+ import e from "./data-provider-interface/components/AutocompleteInput.vue.mjs";
8
+ import t from "./data-provider-interface/components/ConditionalInput.vue.mjs";
9
+ import r from "./data-provider-interface/components/DataFetchingComponent.vue.mjs";
10
+ import n from "./data-provider-interface/components/Dropup.vue.mjs";
11
+ import i from "./data-provider-interface/components/FileUpload.vue.mjs";
12
+ import m from "./data-provider-interface/components/InfoSlot.vue.mjs";
13
+ import f from "./data-provider-interface/components/LanguageSelector.vue.mjs";
14
+ import p from "./data-provider-interface/components/Navigation.vue.mjs";
15
+ import a from "./data-provider-interface/components/UniqueIdentifierInput.vue.mjs";
16
+ import { default as po } from "./form/inputDefinitions.mjs";
17
+ import c from "./data-provider-interface/views/OverviewPage/CatalogueOverview.vue.mjs";
18
+ import u from "./data-provider-interface/views/OverviewPage/DatasetOverview.vue.mjs";
19
+ import s from "./data-provider-interface/views/OverviewPage/DistributionOverview.vue.mjs";
20
+ import g from "./data-provider-interface/views/OverviewPage/PropertyEntry.vue.mjs";
21
+ import v from "./data-provider-interface/views/DistributionOverview.vue.mjs";
22
+ import D from "./data-provider-interface/views/DraftsPage.vue.mjs";
23
+ import l from "./data-provider-interface/views/InputPage.vue.mjs";
24
+ import d from "./data-provider-interface/views/LinkedDataViewer.vue.mjs";
25
+ import P from "./data-provider-interface/views/OverviewPage.vue.mjs";
26
+ import C from "./data-provider-interface/views/UserCataloguesPage.vue.mjs";
27
+ import I from "./data-provider-interface/views/UserProfilePage.vue.mjs";
28
+ import x from "./data-provider-interface/DataProviderInterface.vue.mjs";
29
+ import w from "./data-provider-interface/DPIMenu.vue.mjs";
30
+ import { default as co } from "./data-provider-interface/store/dpiStore.mjs";
31
+ import { injectionKey as so } from "./services/runtimeConfigurationService.mjs";
32
+ function G(o) {
33
+ o.component("AutocompleteInput", e), o.component("ConditionalInput", t), o.component("DataFetchingComponent", r), o.component("Dropup", n), o.component("FileUpload", i), o.component("InfoSlot", m), o.component("LanguageSelector", f), o.component("Navigation", p), o.component("UniqueIdentifierInput", a), o.component("CatalogueOverview", c), o.component("DatasetOverview", u), o.component("DistributionOverview", s), o.component("PropertyEntry", g), o.component("DistOverview", v), o.component("DraftsPage", D), o.component("InputPage", l), o.component("LinkedDataViewer", d), o.component("OverviewPage", P), o.component("UserCataloguesPage", C), o.component("UserProfilePage", I), o.component("DataProviderInterface", x), o.component("DpiMenu", w);
34
+ }
35
+ export {
36
+ e as AutocompleteInput,
37
+ c as CatalogueOverview,
38
+ t as ConditionalInput,
39
+ r as DataFetchingComponent,
40
+ x as DataProviderInterface,
41
+ u as DatasetOverview,
42
+ v as DistOverview,
43
+ s as DistributionOverview,
44
+ w as DpiMenu,
45
+ D as DraftsPage,
46
+ n as Dropup,
47
+ i as FileUpload,
48
+ m as InfoSlot,
49
+ l as InputPage,
50
+ f as LanguageSelector,
51
+ d as LinkedDataViewer,
52
+ p as Navigation,
53
+ P as OverviewPage,
54
+ g as PropertyEntry,
55
+ a as UniqueIdentifierInput,
56
+ C as UserCataloguesPage,
57
+ I as UserProfilePage,
58
+ Q as dpiContextKey,
59
+ mo as dpiSpecConfig,
60
+ so as injectionKeyRuntimeConfig,
61
+ po as inputDefinitions,
62
+ G as registerComponents,
63
+ T as setupDpiContext,
64
+ co as store,
65
+ W as useDpiContext,
66
+ oo as useDpiEditMode,
67
+ Y as useDpiStepper,
68
+ no as useFormSchema,
69
+ to as useRequestUriName
70
+ };
71
+ //# sourceMappingURL=dataProviderInterface.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataProviderInterface.mjs","sources":["../lib/data-provider-interface/index.ts"],"sourcesContent":["import { App } from 'vue';\n\nexport * from './composables/index'\nexport { config as dpiSpecConfig } from './config/dpi-spec-config'\n\n// Import data-provider-interface components\nimport AutocompleteInput from \"./components/AutocompleteInput.vue\";\nimport ConditionalInput from \"./components/ConditionalInput.vue\";\nimport DataFetchingComponent from \"./components/DataFetchingComponent.vue\";\nimport Dropup from \"./components/Dropup.vue\";\nimport FileUpload from \"./components/FileUpload.vue\";\nimport InfoSlot from \"./components/InfoSlot.vue\";\nimport LanguageSelector from \"./components/LanguageSelector.vue\";\nimport Navigation from \"./components/Navigation.vue\";\nimport UniqueIdentifierInput from \"./components/UniqueIdentifierInput.vue\";\nimport inputDefinitions from \"../form/inputDefinitions\";\n\n// import data provider-interface views OverviewPage\nimport CatalogueOverview from \"./views/OverviewPage/CatalogueOverview.vue\";\nimport DatasetOverview from \"./views/OverviewPage/DatasetOverview.vue\";\nimport DistributionOverview from \"./views/OverviewPage/DistributionOverview.vue\";\nimport PropertyEntry from \"./views/OverviewPage/PropertyEntry.vue\";\n\n// import data provider-interface views\nimport DistOverview from \"./views/DistributionOverview.vue\";\nimport DraftsPage from \"./views/DraftsPage.vue\";\nimport InputPage from \"./views/InputPage.vue\";\nimport LinkedDataViewer from \"./views/LinkedDataViewer.vue\";\nimport OverviewPage from \"./views/OverviewPage.vue\";\nimport UserCataloguesPage from \"./views/UserCataloguesPage.vue\";\nimport UserProfilePage from \"./views/UserProfilePage.vue\";\n\n// import data provider-interface\nimport DataProviderInterface from \"./DataProviderInterface.vue\";\nimport DpiMenu from \"./DPIMenu.vue\";\n\nimport store from \"./store/dpiStore\";\n\nexport function registerComponents(app: App) {\n app.component('AutocompleteInput', AutocompleteInput);\n app.component('ConditionalInput', ConditionalInput);\n app.component('DataFetchingComponent', DataFetchingComponent);\n app.component('Dropup', Dropup);\n app.component('FileUpload', FileUpload);\n app.component('InfoSlot', InfoSlot);\n app.component('LanguageSelector', LanguageSelector);\n app.component('Navigation', Navigation);\n app.component('UniqueIdentifierInput', UniqueIdentifierInput);\n\n app.component('CatalogueOverview', CatalogueOverview);\n app.component('DatasetOverview', DatasetOverview);\n app.component('DistributionOverview', DistributionOverview);\n app.component('PropertyEntry', PropertyEntry);\n\n app.component('DistOverview', DistOverview);\n app.component('DraftsPage', DraftsPage);\n app.component('InputPage', InputPage);\n app.component('LinkedDataViewer', LinkedDataViewer);\n app.component('OverviewPage', OverviewPage);\n app.component('UserCataloguesPage', UserCataloguesPage);\n app.component('UserProfilePage', UserProfilePage);\n\n app.component('DataProviderInterface', DataProviderInterface);\n app.component('DpiMenu', DpiMenu);\n}\n\n// export components\nexport { AutocompleteInput, ConditionalInput, DataFetchingComponent, Dropup, FileUpload, InfoSlot, LanguageSelector, Navigation, UniqueIdentifierInput }\n\n// export views\nexport { CatalogueOverview, DatasetOverview, DistributionOverview, PropertyEntry }\nexport { DistOverview, DraftsPage, InputPage, LinkedDataViewer, OverviewPage, UserCataloguesPage, UserProfilePage }\n\n// export data provider-interface\nexport { DataProviderInterface, DpiMenu }\n\nexport {\n inputDefinitions,\n store\n}\n\nexport { injectionKey as injectionKeyRuntimeConfig } from '../services/runtimeConfigurationService';"],"names":["registerComponents","app","AutocompleteInput","ConditionalInput","DataFetchingComponent","Dropup","FileUpload","InfoSlot","LanguageSelector","Navigation","UniqueIdentifierInput","CatalogueOverview","DatasetOverview","DistributionOverview","PropertyEntry","DistOverview","DraftsPage","InputPage","LinkedDataViewer","OverviewPage","UserCataloguesPage","UserProfilePage","DataProviderInterface","DpiMenu"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCO,SAASA,EAAmBC,GAAU;AACvC,EAAAA,EAAA,UAAU,qBAAqBC,CAAiB,GAChDD,EAAA,UAAU,oBAAoBE,CAAgB,GAC9CF,EAAA,UAAU,yBAAyBG,CAAqB,GACxDH,EAAA,UAAU,UAAUI,CAAM,GAC1BJ,EAAA,UAAU,cAAcK,CAAU,GAClCL,EAAA,UAAU,YAAYM,CAAQ,GAC9BN,EAAA,UAAU,oBAAoBO,CAAgB,GAC9CP,EAAA,UAAU,cAAcQ,CAAU,GAClCR,EAAA,UAAU,yBAAyBS,CAAqB,GAExDT,EAAA,UAAU,qBAAqBU,CAAiB,GAChDV,EAAA,UAAU,mBAAmBW,CAAe,GAC5CX,EAAA,UAAU,wBAAwBY,CAAoB,GACtDZ,EAAA,UAAU,iBAAiBa,CAAa,GAExCb,EAAA,UAAU,gBAAgBc,CAAY,GACtCd,EAAA,UAAU,cAAce,CAAU,GAClCf,EAAA,UAAU,aAAagB,CAAS,GAChChB,EAAA,UAAU,oBAAoBiB,CAAgB,GAC9CjB,EAAA,UAAU,gBAAgBkB,CAAY,GACtClB,EAAA,UAAU,sBAAsBmB,CAAkB,GAClDnB,EAAA,UAAU,mBAAmBoB,CAAe,GAE5CpB,EAAA,UAAU,yBAAyBqB,CAAqB,GACxDrB,EAAA,UAAU,WAAWsB,CAAO;AAClC;"}
@@ -1,9 +1,9 @@
1
- import { noop as g, isIOS as F, toValue as P, notNullish as J, tryOnScopeDispose as $, isClient as R, isObject as X, isDef as Y, promiseTimeout as D, until as U } from "../shared/index";
2
- import { watchOnce as se, whenever as le } from "../shared/index";
3
- import { computed as x, ref as y, watch as M, getCurrentInstance as C, isVue2 as B, nextTick as j, shallowRef as T, onMounted as q } from "vue-demi";
4
- function O(n) {
1
+ import { noop as g, isIOS as F, toValue as C, notNullish as J, tryOnScopeDispose as W, isClient as R, isObject as X, isDef as Y, promiseTimeout as D, until as U } from "../shared/index";
2
+ import { createSharedComposable as se, whenever as le } from "../shared/index";
3
+ import { computed as x, ref as y, watch as M, getCurrentInstance as $, isVue2 as B, nextTick as j, shallowRef as P, onMounted as q } from "vue-demi";
4
+ function b(n) {
5
5
  var e;
6
- const l = P(n);
6
+ const l = C(n);
7
7
  return (e = l == null ? void 0 : l.$el) != null ? e : l;
8
8
  }
9
9
  const V = R ? window : void 0;
@@ -15,7 +15,7 @@ function L(...n) {
15
15
  const m = [], p = () => {
16
16
  m.forEach((u) => u()), m.length = 0;
17
17
  }, c = (u, i, t, o) => (u.addEventListener(i, t, o), () => u.removeEventListener(i, t, o)), h = M(
18
- () => [O(e), P(d)],
18
+ () => [b(e), C(d)],
19
19
  ([u, i]) => {
20
20
  if (p(), !u)
21
21
  return;
@@ -28,25 +28,25 @@ function L(...n) {
28
28
  ), w = () => {
29
29
  h(), p();
30
30
  };
31
- return $(w), w;
31
+ return W(w), w;
32
32
  }
33
- let W = !1;
33
+ let T = !1;
34
34
  function Z(n, e, l = {}) {
35
35
  const { window: r = V, ignore: d = [], capture: m = !0, detectIframe: p = !1 } = l;
36
36
  if (!r)
37
37
  return g;
38
- F && !W && (W = !0, Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", g)), r.document.documentElement.addEventListener("click", g));
38
+ F && !T && (T = !0, Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", g)), r.document.documentElement.addEventListener("click", g));
39
39
  let c = !0;
40
40
  const h = (t) => d.some((o) => {
41
41
  if (typeof o == "string")
42
42
  return Array.from(r.document.querySelectorAll(o)).some((s) => s === t.target || t.composedPath().includes(s));
43
43
  {
44
- const s = O(o);
44
+ const s = b(o);
45
45
  return s && (t.target === s || t.composedPath().includes(s));
46
46
  }
47
47
  }), u = [
48
48
  L(r, "click", (t) => {
49
- const o = O(n);
49
+ const o = b(n);
50
50
  if (!(!o || o === t.target || t.composedPath().includes(o))) {
51
51
  if (t.detail === 0 && (c = !h(t)), !c) {
52
52
  c = !0;
@@ -56,13 +56,13 @@ function Z(n, e, l = {}) {
56
56
  }
57
57
  }, { passive: !0, capture: m }),
58
58
  L(r, "pointerdown", (t) => {
59
- const o = O(n);
59
+ const o = b(n);
60
60
  c = !h(t) && !!(o && !t.composedPath().includes(o));
61
61
  }, { passive: !0 }),
62
62
  p && L(r, "blur", (t) => {
63
63
  setTimeout(() => {
64
64
  var o;
65
- const s = O(n);
65
+ const s = b(n);
66
66
  ((o = r.document.activeElement) == null ? void 0 : o.tagName) === "IFRAME" && !(s != null && s.contains(r.document.activeElement)) && e(t);
67
67
  }, 0);
68
68
  })
@@ -70,7 +70,7 @@ function Z(n, e, l = {}) {
70
70
  return () => u.forEach((t) => t());
71
71
  }
72
72
  function z() {
73
- const n = y(!1), e = C();
73
+ const n = y(!1), e = $();
74
74
  return e && q(() => {
75
75
  n.value = !0;
76
76
  }, B ? void 0 : e), n;
@@ -88,7 +88,7 @@ function k(n, e, l) {
88
88
  resetOnExecute: c = !0,
89
89
  shallow: h = !0,
90
90
  throwError: w
91
- } = l ?? {}, u = h ? T(e) : y(e), i = y(!1), t = y(!1), o = T(void 0);
91
+ } = l ?? {}, u = h ? P(e) : y(e), i = y(!1), t = y(!1), o = P(void 0);
92
92
  async function s(v = 0, ...A) {
93
93
  c && (u.value = e), o.value = void 0, i.value = !1, t.value = !0, v > 0 && await D(v);
94
94
  const S = typeof n == "function" ? n(...A) : n;
@@ -111,7 +111,7 @@ function k(n, e, l) {
111
111
  error: o,
112
112
  execute: s
113
113
  };
114
- function b() {
114
+ function O() {
115
115
  return new Promise((v, A) => {
116
116
  U(t).toBe(!1).then(() => v(a)).catch(A);
117
117
  });
@@ -119,7 +119,7 @@ function k(n, e, l) {
119
119
  return {
120
120
  ...a,
121
121
  then(v, A) {
122
- return b().then(v, A);
122
+ return O().then(v, A);
123
123
  }
124
124
  };
125
125
  }
@@ -134,32 +134,32 @@ function ee(n, e, l = {}) {
134
134
  window: p = V,
135
135
  immediate: c = !0
136
136
  } = l, h = G(() => p && "IntersectionObserver" in p), w = x(() => {
137
- const s = P(n);
138
- return (Array.isArray(s) ? s : [s]).map(O).filter(J);
137
+ const s = C(n);
138
+ return (Array.isArray(s) ? s : [s]).map(b).filter(J);
139
139
  });
140
140
  let u = g;
141
141
  const i = y(c), t = h.value ? M(
142
- () => [w.value, O(r), i.value],
142
+ () => [w.value, b(r), i.value],
143
143
  ([s, a]) => {
144
144
  if (u(), !i.value || !s.length)
145
145
  return;
146
- const b = new IntersectionObserver(
146
+ const O = new IntersectionObserver(
147
147
  e,
148
148
  {
149
- root: O(a),
149
+ root: b(a),
150
150
  rootMargin: d,
151
151
  threshold: m
152
152
  }
153
153
  );
154
- s.forEach((v) => v && b.observe(v)), u = () => {
155
- b.disconnect(), u = g;
154
+ s.forEach((v) => v && O.observe(v)), u = () => {
155
+ O.disconnect(), u = g;
156
156
  };
157
157
  },
158
158
  { immediate: c, flush: "post" }
159
159
  ) : g, o = () => {
160
160
  u(), t(), i.value = !1;
161
161
  };
162
- return $(o), {
162
+ return W(o), {
163
163
  isSupported: h,
164
164
  isActive: i,
165
165
  pause() {
@@ -180,7 +180,7 @@ function te(n, e, l, r = {}) {
180
180
  deep: t = !1,
181
181
  defaultValue: o,
182
182
  shouldEmit: s
183
- } = r, a = C(), b = l || (a == null ? void 0 : a.emit) || ((d = a == null ? void 0 : a.$emit) == null ? void 0 : d.bind(a)) || ((p = (m = a == null ? void 0 : a.proxy) == null ? void 0 : m.$emit) == null ? void 0 : p.bind(a == null ? void 0 : a.proxy));
183
+ } = r, a = $(), O = l || (a == null ? void 0 : a.emit) || ((d = a == null ? void 0 : a.$emit) == null ? void 0 : d.bind(a)) || ((p = (m = a == null ? void 0 : a.proxy) == null ? void 0 : m.$emit) == null ? void 0 : p.bind(a == null ? void 0 : a.proxy));
184
184
  let v = i;
185
185
  if (!e)
186
186
  if (B) {
@@ -190,7 +190,7 @@ function te(n, e, l, r = {}) {
190
190
  e = "modelValue";
191
191
  v = v || `update:${e.toString()}`;
192
192
  const A = (f) => w ? typeof w == "function" ? w(f) : H(f) : f, S = () => Y(n[e]) ? A(n[e]) : o, E = (f) => {
193
- s ? s(f) && b(v, f) : b(v, f);
193
+ s ? s(f) && O(v, f) : O(v, f);
194
194
  };
195
195
  if (u) {
196
196
  const f = S(), N = y(f);
@@ -253,6 +253,7 @@ function ne(n = {}) {
253
253
  }
254
254
  export {
255
255
  H as cloneFnJSON,
256
+ se as createSharedComposable,
256
257
  V as defaultWindow,
257
258
  R as isClient,
258
259
  Y as isDef,
@@ -262,9 +263,9 @@ export {
262
263
  J as notNullish,
263
264
  Z as onClickOutside,
264
265
  D as promiseTimeout,
265
- P as toValue,
266
- $ as tryOnScopeDispose,
267
- O as unrefElement,
266
+ C as toValue,
267
+ W as tryOnScopeDispose,
268
+ b as unrefElement,
268
269
  U as until,
269
270
  k as useAsyncState,
270
271
  L as useEventListener,
@@ -273,7 +274,6 @@ export {
273
274
  G as useSupported,
274
275
  te as useVModel,
275
276
  ne as useWindowScroll,
276
- se as watchOnce,
277
277
  le as whenever
278
278
  };
279
279
  //# sourceMappingURL=index.map
@@ -1,28 +1,35 @@
1
- import { watch as p, nextTick as P, getCurrentScope as N, onScopeDispose as k, unref as x, isRef as C } from "vue-demi";
2
- function U(n) {
3
- return N() ? (k(n), !0) : !1;
1
+ import { watch as v, nextTick as j, getCurrentScope as C, onScopeDispose as N, unref as k, effectScope as x, isRef as D } from "vue-demi";
2
+ function I(n) {
3
+ return C() ? (N(n), !0) : !1;
4
4
  }
5
- function d(n) {
6
- return typeof n == "function" ? n() : x(n);
5
+ function _(n) {
6
+ let o = 0, t, i;
7
+ const u = () => {
8
+ o -= 1, i && o <= 0 && (i.stop(), t = void 0, i = void 0);
9
+ };
10
+ return (...d) => (o += 1, t || (i = x(!0), t = i.run(() => n(...d))), I(u), t);
11
+ }
12
+ function p(n) {
13
+ return typeof n == "function" ? n() : k(n);
7
14
  }
8
- const D = typeof window < "u" && typeof document < "u";
15
+ const G = typeof window < "u" && typeof document < "u";
9
16
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const W = (n) => typeof n < "u", _ = (n) => n != null, I = Object.prototype.toString, R = (n) => I.call(n) === "[object Object]", V = () => {
11
- }, q = /* @__PURE__ */ G();
12
- function G() {
17
+ const R = (n) => typeof n < "u", V = (n) => n != null, M = Object.prototype.toString, q = (n) => M.call(n) === "[object Object]", z = () => {
18
+ }, E = /* @__PURE__ */ U();
19
+ function U() {
13
20
  var n, o;
14
- return D && ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
21
+ return G && ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
15
22
  }
16
- function O(n, o = !1, t = "Timeout") {
23
+ function P(n, o = !1, t = "Timeout") {
17
24
  return new Promise((i, u) => {
18
25
  setTimeout(o ? () => u(t) : i, n);
19
26
  });
20
27
  }
21
- function T(n, o = !1) {
28
+ function b(n, o = !1) {
22
29
  function t(e, { flush: r = "sync", deep: c = !1, timeout: s, throwOnTimeout: w } = {}) {
23
30
  let l = null;
24
- const v = [new Promise((m) => {
25
- l = p(
31
+ const y = [new Promise((m) => {
32
+ l = v(
26
33
  n,
27
34
  (a) => {
28
35
  e(a) !== o && (l == null || l(), m(a));
@@ -34,20 +41,20 @@ function T(n, o = !1) {
34
41
  }
35
42
  );
36
43
  })];
37
- return s != null && v.push(
38
- O(s, w).then(() => d(n)).finally(() => l == null ? void 0 : l())
39
- ), Promise.race(v);
44
+ return s != null && y.push(
45
+ P(s, w).then(() => p(n)).finally(() => l == null ? void 0 : l())
46
+ ), Promise.race(y);
40
47
  }
41
48
  function i(e, r) {
42
- if (!C(e))
49
+ if (!D(e))
43
50
  return t((a) => a === e, r);
44
51
  const { flush: c = "sync", deep: s = !1, timeout: w, throwOnTimeout: l } = r ?? {};
45
52
  let f = null;
46
53
  const m = [new Promise((a) => {
47
- f = p(
54
+ f = v(
48
55
  [n, e],
49
- ([S, j]) => {
50
- o !== (S === j) && (f == null || f(), a(S));
56
+ ([T, B]) => {
57
+ o !== (T === B) && (f == null || f(), a(T));
51
58
  },
52
59
  {
53
60
  flush: c,
@@ -57,68 +64,64 @@ function T(n, o = !1) {
57
64
  );
58
65
  })];
59
66
  return w != null && m.push(
60
- O(w, l).then(() => d(n)).finally(() => (f == null || f(), d(n)))
67
+ P(w, l).then(() => p(n)).finally(() => (f == null || f(), p(n)))
61
68
  ), Promise.race(m);
62
69
  }
63
70
  function u(e) {
64
71
  return t((r) => !!r, e);
65
72
  }
66
- function h(e) {
73
+ function d(e) {
67
74
  return i(null, e);
68
75
  }
69
- function g(e) {
76
+ function h(e) {
70
77
  return i(void 0, e);
71
78
  }
72
- function A(e) {
79
+ function O(e) {
73
80
  return t(Number.isNaN, e);
74
81
  }
75
- function B(e, r) {
82
+ function A(e, r) {
76
83
  return t((c) => {
77
84
  const s = Array.from(c);
78
- return s.includes(e) || s.includes(d(e));
85
+ return s.includes(e) || s.includes(p(e));
79
86
  }, r);
80
87
  }
81
- function b(e) {
82
- return y(1, e);
88
+ function S(e) {
89
+ return g(1, e);
83
90
  }
84
- function y(e = 1, r) {
91
+ function g(e = 1, r) {
85
92
  let c = -1;
86
93
  return t(() => (c += 1, c >= e), r);
87
94
  }
88
- return Array.isArray(d(n)) ? {
95
+ return Array.isArray(p(n)) ? {
89
96
  toMatch: t,
90
- toContains: B,
91
- changed: b,
92
- changedTimes: y,
97
+ toContains: A,
98
+ changed: S,
99
+ changedTimes: g,
93
100
  get not() {
94
- return T(n, !o);
101
+ return b(n, !o);
95
102
  }
96
103
  } : {
97
104
  toMatch: t,
98
105
  toBe: i,
99
106
  toBeTruthy: u,
100
- toBeNull: h,
101
- toBeNaN: A,
102
- toBeUndefined: g,
103
- changed: b,
104
- changedTimes: y,
107
+ toBeNull: d,
108
+ toBeNaN: O,
109
+ toBeUndefined: h,
110
+ changed: S,
111
+ changedTimes: g,
105
112
  get not() {
106
- return T(n, !o);
113
+ return b(n, !o);
107
114
  }
108
115
  };
109
116
  }
110
- function z(n) {
111
- return T(n);
112
- }
113
- function E(n, o, t) {
114
- const i = p(n, (...u) => (P(() => i()), o(...u)), t);
115
- return i;
117
+ function F(n) {
118
+ return b(n);
116
119
  }
117
- function F(n, o, t) {
118
- const i = p(
120
+ function H(n, o, t) {
121
+ const i = v(
119
122
  n,
120
- (u, h, g) => {
121
- u && (t != null && t.once && P(() => i()), o(u, h, g));
123
+ (u, d, h) => {
124
+ u && (t != null && t.once && j(() => i()), o(u, d, h));
122
125
  },
123
126
  {
124
127
  ...t,
@@ -128,17 +131,17 @@ function F(n, o, t) {
128
131
  return i;
129
132
  }
130
133
  export {
131
- D as isClient,
132
- W as isDef,
133
- q as isIOS,
134
- R as isObject,
135
- V as noop,
136
- _ as notNullish,
137
- O as promiseTimeout,
138
- d as toValue,
139
- U as tryOnScopeDispose,
140
- z as until,
141
- E as watchOnce,
142
- F as whenever
134
+ _ as createSharedComposable,
135
+ G as isClient,
136
+ R as isDef,
137
+ E as isIOS,
138
+ q as isObject,
139
+ z as noop,
140
+ V as notNullish,
141
+ P as promiseTimeout,
142
+ p as toValue,
143
+ I as tryOnScopeDispose,
144
+ F as until,
145
+ H as whenever
143
146
  };
144
147
  //# sourceMappingURL=index.map