@septkit/ui 0.0.80 → 0.0.81
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/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js} +69 -69
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js} +1 -1
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js} +83 -83
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js} +2 -2
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js} +47 -47
- package/dist/external/.pnpm/{@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js → @dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js} +64 -138
- package/dist/external/.pnpm/{@dialecte_core@0.8.0 → @dialecte_core@0.9.0}/node_modules/@dialecte/core/dist/utils.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js → @dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js} +262 -234
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/merge/check-files/identity-warning.js +2 -1
- package/dist/merge/confirm/outcome.js +4 -4
- package/dist/merge/done/applied-focus.js +1 -1
- package/dist/merge/match/match.js +4 -4
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/merge/session/merge.service.js +25 -19
- package/dist/merge/session/use-merge-session.js +11 -1
- package/dist/merge/wording.js +4 -4
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +0 -5
- package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as e } from "../external/.pnpm/@dialecte_core@0.
|
|
2
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import { V as t } from "../external/.pnpm/@dialecte_core@0.
|
|
4
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
1
|
+
import { f as e } from "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { V as t } from "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js";
|
|
4
|
+
import "../external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js";
|
|
5
5
|
import { computed as n, shallowRef as r } from "vue";
|
|
6
6
|
//#region lib/dialecte/create-document-store.ts
|
|
7
7
|
function i(i) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as e } from "./utils-
|
|
1
|
+
import { W as e } from "./utils-Cv4oHia0.js";
|
|
2
2
|
import { n as t, t as n } from "./rolldown-runtime-CYdcPHCu.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./helpers-
|
|
6
|
-
import { T as x, d as S, f as C, i as ee, m as w, n as te, p as ne, r as T, t as re, u as ie } from "./same-json-value-
|
|
7
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
3
|
+
import { i as r, n as i, r as a, t as o } from "./running-operations-DCKvzlU7.js";
|
|
4
|
+
import { F as s, G as c, H as l, L as u, M as d, R as f, U as p, W as m, h, j as g, k as _, n as v, t as y, z as b } from "./project-key-2ccZ-0gu.js";
|
|
5
|
+
import "./helpers-D8p0KiJu.js";
|
|
6
|
+
import { T as x, d as S, f as C, i as ee, m as w, n as te, p as ne, r as T, t as re, u as ie } from "./same-json-value-_AChwM_n.js";
|
|
7
|
+
//#region node_modules/.pnpm/@dialecte+core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js
|
|
8
8
|
async function ae(e) {
|
|
9
9
|
let { store: t, isRunning: n } = e, r = await t.getDocuments();
|
|
10
10
|
for (let e of r) e.status === "importing" && (await n?.(e) || (await t.getDocument(e.id))?.status === "importing" && await t.removeDocument(e.id));
|
|
@@ -3764,8 +3764,8 @@ var E = /* @__PURE__ */ t((/* @__PURE__ */ n(((e, t, n) => {
|
|
|
3764
3764
|
})))(), 1), D = Symbol.for("Dexie"), O = globalThis[D] || (globalThis[D] = E.default);
|
|
3765
3765
|
if (E.default.semVer !== O.semVer) throw Error(`Two different versions of Dexie loaded in the same app: ${E.default.semVer} and ${O.semVer}`);
|
|
3766
3766
|
var { liveQuery: se, mergeRanges: k, rangesOverlap: ce, RangeSet: le, cmp: ue, Entity: de, PropModification: fe, replacePrefix: pe, add: me, remove: A, DexieYProvider: he } = O;
|
|
3767
|
-
|
|
3768
|
-
var j = /* @__PURE__ */ new Map(), M =
|
|
3767
|
+
i(), r();
|
|
3768
|
+
var j = /* @__PURE__ */ new Map(), M = i(), ge = r(), N = /* @__PURE__ */ new Map();
|
|
3769
3769
|
function _e(e) {
|
|
3770
3770
|
let { key: t, connection: n, listener: r } = e, i = N.get(t) ?? /* @__PURE__ */ new Set();
|
|
3771
3771
|
N.set(t, i);
|
|
@@ -3782,19 +3782,19 @@ function ve(e) {
|
|
|
3782
3782
|
...i,
|
|
3783
3783
|
timestamp: Date.now()
|
|
3784
3784
|
};
|
|
3785
|
-
for (let e of Array.from(N.get(t) ?? []))
|
|
3785
|
+
for (let e of Array.from(N.get(t) ?? [])) d({
|
|
3786
3786
|
listener: e.listener,
|
|
3787
3787
|
value: {
|
|
3788
3788
|
type: "change",
|
|
3789
3789
|
message: a,
|
|
3790
3790
|
own: e.connection === r
|
|
3791
3791
|
},
|
|
3792
|
-
of:
|
|
3792
|
+
of: g({ name: n })
|
|
3793
3793
|
});
|
|
3794
3794
|
}
|
|
3795
3795
|
function ye(e) {
|
|
3796
3796
|
let { project: t, dialecteId: n } = e;
|
|
3797
|
-
return n === void 0 ? encodeURIComponent(t) :
|
|
3797
|
+
return n === void 0 ? encodeURIComponent(t) : y({
|
|
3798
3798
|
dialecteId: n,
|
|
3799
3799
|
project: t
|
|
3800
3800
|
});
|
|
@@ -3832,7 +3832,7 @@ var Ce = /* @__PURE__ */ new Map(), we = Se();
|
|
|
3832
3832
|
function Te(e) {
|
|
3833
3833
|
let { table: t, creates: n, documentId: r } = e, i = /* @__PURE__ */ new Set(), a = [], o = [];
|
|
3834
3834
|
for (let { id: e } of n) t.has(e) && a.push(e), i.has(e) && o.push(e), i.add(e);
|
|
3835
|
-
(a.length > 0 || o.length > 0) &&
|
|
3835
|
+
(a.length > 0 || o.length > 0) && l({
|
|
3836
3836
|
documentId: r,
|
|
3837
3837
|
held: a,
|
|
3838
3838
|
repeated: o
|
|
@@ -3843,7 +3843,7 @@ function Te(e) {
|
|
|
3843
3843
|
this.reconcileWarned = !1;
|
|
3844
3844
|
}
|
|
3845
3845
|
constructor(e, t) {
|
|
3846
|
-
this.closed = !1, this.closings = 0, this.operations =
|
|
3846
|
+
this.closed = !1, this.closings = 0, this.operations = o(), h({
|
|
3847
3847
|
project: e,
|
|
3848
3848
|
dialecteId: t?.dialecteId
|
|
3849
3849
|
}), this.name = e, this.writable = t?.writable ?? !0, this.runtime = t?.runtime, this.stateKey = ye({
|
|
@@ -3853,8 +3853,8 @@ function Te(e) {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
async open() {
|
|
3855
3855
|
let e = this.closings;
|
|
3856
|
-
for (await this.operations.whenIdle(); this.destroying;) await this.destroying.catch(
|
|
3857
|
-
this.closings !== e &&
|
|
3856
|
+
for (await this.operations.whenIdle(); this.destroying;) await this.destroying.catch(a);
|
|
3857
|
+
this.closings !== e && c({ storeName: this.name }), this.closed = !1, this.writable && M.markOpen({
|
|
3858
3858
|
name: this.stateKey,
|
|
3859
3859
|
connection: this
|
|
3860
3860
|
}), await ae({
|
|
@@ -3875,7 +3875,7 @@ function Te(e) {
|
|
|
3875
3875
|
}
|
|
3876
3876
|
async destroy() {
|
|
3877
3877
|
if (!this.writable) return;
|
|
3878
|
-
for (; this.destroying;) await this.destroying.catch(
|
|
3878
|
+
for (; this.destroying;) await this.destroying.catch(a);
|
|
3879
3879
|
let e = this.destroyOnceIdle();
|
|
3880
3880
|
this.destroying = e;
|
|
3881
3881
|
try {
|
|
@@ -3890,7 +3890,7 @@ function Te(e) {
|
|
|
3890
3890
|
name: this.stateKey,
|
|
3891
3891
|
connection: this
|
|
3892
3892
|
});
|
|
3893
|
-
e > 0 &&
|
|
3893
|
+
e > 0 && p({
|
|
3894
3894
|
storeName: this.name,
|
|
3895
3895
|
connections: e
|
|
3896
3896
|
}), P({ key: this.stateKey }), M.markClosed({
|
|
@@ -3899,7 +3899,7 @@ function Te(e) {
|
|
|
3899
3899
|
});
|
|
3900
3900
|
}
|
|
3901
3901
|
async reconcile() {
|
|
3902
|
-
await this.guardOpen(), t.reconcileWarned || (t.reconcileWarned = !0, console.warn("[dialecte] InMemoryStore.reconcile() is a no-op: in-memory documents are not shared across realms/tabs. Use the local
|
|
3902
|
+
await this.guardOpen(), t.reconcileWarned || (t.reconcileWarned = !0, console.warn("[dialecte] InMemoryStore.reconcile() is a no-op: in-memory documents are not shared across realms/tabs. Use a store shared across realms (the local store, or a registered kind) for cross-realm sync."));
|
|
3903
3903
|
}
|
|
3904
3904
|
async isDocumentReadable(e) {
|
|
3905
3905
|
return await this.guardOpen(), this.readState().documents.has(e);
|
|
@@ -3988,7 +3988,7 @@ function Te(e) {
|
|
|
3988
3988
|
});
|
|
3989
3989
|
this.operations.start();
|
|
3990
3990
|
try {
|
|
3991
|
-
return await
|
|
3991
|
+
return await v({
|
|
3992
3992
|
source: this.ownExportSource(),
|
|
3993
3993
|
runtime: o,
|
|
3994
3994
|
documentId: n,
|
|
@@ -4023,58 +4023,58 @@ function Te(e) {
|
|
|
4023
4023
|
}
|
|
4024
4024
|
async commit(e) {
|
|
4025
4025
|
await this.guardOpen(), this.guardWritable();
|
|
4026
|
-
let { documentId: t, writeId: n = crypto.randomUUID(), deletes: r, onProgress:
|
|
4027
|
-
|
|
4026
|
+
let { documentId: t, writeId: n = crypto.randomUUID(), deletes: r, onProgress: i } = e, { state: a, table: o } = this.writeTarget(t);
|
|
4027
|
+
a.documents.get(t)?.status === "importing" && b({
|
|
4028
4028
|
documentId: t,
|
|
4029
4029
|
what: "a commit"
|
|
4030
|
-
}),
|
|
4031
|
-
let
|
|
4032
|
-
let n =
|
|
4033
|
-
return n ||
|
|
4030
|
+
}), s({ writeId: n });
|
|
4031
|
+
let c = e.updates.map((e) => {
|
|
4032
|
+
let n = o.get(e.id);
|
|
4033
|
+
return n || m({
|
|
4034
4034
|
documentId: t,
|
|
4035
4035
|
recordId: e.id
|
|
4036
4036
|
}), n;
|
|
4037
|
-
}),
|
|
4037
|
+
}), l = C({ records: e.creates });
|
|
4038
4038
|
Te({
|
|
4039
|
-
table:
|
|
4040
|
-
creates:
|
|
4039
|
+
table: o,
|
|
4040
|
+
creates: l,
|
|
4041
4041
|
documentId: t
|
|
4042
4042
|
});
|
|
4043
|
-
let
|
|
4043
|
+
let u = C({ records: e.updates });
|
|
4044
4044
|
F({
|
|
4045
|
-
state:
|
|
4045
|
+
state: a,
|
|
4046
4046
|
documentId: t
|
|
4047
4047
|
});
|
|
4048
|
-
for (let e of
|
|
4049
|
-
for (let e of
|
|
4050
|
-
let
|
|
4051
|
-
let t =
|
|
4048
|
+
for (let e of l) o.set(e.id, e);
|
|
4049
|
+
for (let e of u) o.set(e.id, e);
|
|
4050
|
+
let d = r.flatMap((e) => {
|
|
4051
|
+
let t = o.get(e);
|
|
4052
4052
|
return t ? [t] : [];
|
|
4053
4053
|
});
|
|
4054
|
-
for (let e of r)
|
|
4055
|
-
let { heads:
|
|
4056
|
-
for (let e of
|
|
4057
|
-
|
|
4058
|
-
let x =
|
|
4059
|
-
id:
|
|
4054
|
+
for (let e of r) o.delete(e);
|
|
4055
|
+
let { heads: f, changelog: p, discardedCommits: h } = a, g = f.get(t) ?? 0, _ = p.get(t) ?? [], v = _.filter((e) => e.sequenceNumber <= g), y = h.get(t) ?? /* @__PURE__ */ new Set();
|
|
4056
|
+
for (let e of _) e.sequenceNumber > g && y.add(e.writeId);
|
|
4057
|
+
h.set(t, y);
|
|
4058
|
+
let x = g + 1, S = {
|
|
4059
|
+
id: v.length + 1,
|
|
4060
4060
|
documentId: t,
|
|
4061
4061
|
sequenceNumber: x,
|
|
4062
4062
|
timestamp: Date.now(),
|
|
4063
4063
|
writeId: n,
|
|
4064
4064
|
operations: {
|
|
4065
|
-
creates:
|
|
4066
|
-
updates:
|
|
4067
|
-
before:
|
|
4065
|
+
creates: l,
|
|
4066
|
+
updates: u.map((e, t) => ({
|
|
4067
|
+
before: c[t],
|
|
4068
4068
|
after: e
|
|
4069
4069
|
})),
|
|
4070
|
-
deletes:
|
|
4070
|
+
deletes: d
|
|
4071
4071
|
}
|
|
4072
4072
|
};
|
|
4073
|
-
|
|
4074
|
-
onProgress:
|
|
4073
|
+
v.push(S), p.set(t, v), f.set(t, x), ie({
|
|
4074
|
+
onProgress: i,
|
|
4075
4075
|
parts: [
|
|
4076
|
+
l.length,
|
|
4076
4077
|
u.length,
|
|
4077
|
-
f.length,
|
|
4078
4078
|
r.length
|
|
4079
4079
|
]
|
|
4080
4080
|
}), this.announce({
|
|
@@ -4135,10 +4135,10 @@ function Te(e) {
|
|
|
4135
4135
|
async addBlob(e, t) {
|
|
4136
4136
|
await this.guardOpen(), this.guardWritable();
|
|
4137
4137
|
let n = this.writeState();
|
|
4138
|
-
n?.documents.has(e.documentId) ||
|
|
4138
|
+
n?.documents.has(e.documentId) || b({
|
|
4139
4139
|
documentId: e.documentId,
|
|
4140
4140
|
what: "a blob"
|
|
4141
|
-
}), n.blobs.set(e.id,
|
|
4141
|
+
}), n.blobs.set(e.id, u({ value: e }));
|
|
4142
4142
|
let r = n.blobData.get(e.documentId) ?? /* @__PURE__ */ new Map();
|
|
4143
4143
|
n.blobData.set(e.documentId, r.set(e.id, t)), this.announce({
|
|
4144
4144
|
type: "blob-added",
|
|
@@ -4169,7 +4169,7 @@ function Te(e) {
|
|
|
4169
4169
|
await this.guardOpen(), this.guardWritable();
|
|
4170
4170
|
let r = this.writeState(), i = r?.blobs.get(t);
|
|
4171
4171
|
r && i || e("STORE_BLOB_NOT_FOUND", { detail: `Blob "${t}" not found` });
|
|
4172
|
-
let a =
|
|
4172
|
+
let a = u({ value: n });
|
|
4173
4173
|
i.attachedTo.some((e) => e.documentId === n.documentId && e.recordRef === n.recordRef && e.attribute === n.attribute) || (r.blobs.set(t, {
|
|
4174
4174
|
...i,
|
|
4175
4175
|
attachedTo: [...i.attachedTo, a]
|
|
@@ -4224,19 +4224,19 @@ function Te(e) {
|
|
|
4224
4224
|
async registerDocumentUnguarded(e) {
|
|
4225
4225
|
this.guardWritable();
|
|
4226
4226
|
let t = xe({ key: this.stateKey });
|
|
4227
|
-
t.documents.has(e.id) &&
|
|
4228
|
-
let n =
|
|
4227
|
+
t.documents.has(e.id) && f({ documentId: e.id });
|
|
4228
|
+
let n = u({ value: e });
|
|
4229
4229
|
w({
|
|
4230
4230
|
document: n,
|
|
4231
4231
|
documents: [...t.documents.values()]
|
|
4232
|
-
}), t.documents.set(e.id, n), t.records.set(
|
|
4232
|
+
}), t.documents.set(e.id, n), t.records.set(_(e.id), /* @__PURE__ */ new Map()), t.blobData.set(e.id, /* @__PURE__ */ new Map());
|
|
4233
4233
|
}
|
|
4234
4234
|
async getDocumentUnguarded(e) {
|
|
4235
4235
|
return structuredClone(this.readState().documents.get(e));
|
|
4236
4236
|
}
|
|
4237
4237
|
async updateDocumentUnguarded(e, t) {
|
|
4238
4238
|
this.guardWritable();
|
|
4239
|
-
let n =
|
|
4239
|
+
let n = u({ value: t }), r = this.writeState(), i = r?.documents.get(e);
|
|
4240
4240
|
if (!r || !i) return;
|
|
4241
4241
|
let a = ne({
|
|
4242
4242
|
document: i,
|
|
@@ -4250,24 +4250,24 @@ function Te(e) {
|
|
|
4250
4250
|
async markReadyUnguarded(e) {
|
|
4251
4251
|
let { documentId: t, registered: n } = e;
|
|
4252
4252
|
this.guardWritable();
|
|
4253
|
-
let r = this.writeState(),
|
|
4254
|
-
r &&
|
|
4255
|
-
held:
|
|
4253
|
+
let r = this.writeState(), i = r?.documents.get(t);
|
|
4254
|
+
r && i && oe({
|
|
4255
|
+
held: i,
|
|
4256
4256
|
registered: n
|
|
4257
|
-
}) ||
|
|
4257
|
+
}) || b({
|
|
4258
4258
|
documentId: t,
|
|
4259
4259
|
what: "its ready state"
|
|
4260
4260
|
}), r.documents.set(t, {
|
|
4261
|
-
...
|
|
4261
|
+
...i,
|
|
4262
4262
|
status: "ready"
|
|
4263
4263
|
});
|
|
4264
4264
|
}
|
|
4265
4265
|
async bulkWriteOwnImport(e) {
|
|
4266
|
-
let { documentId: t, ops: n, registered: r } = e,
|
|
4266
|
+
let { documentId: t, ops: n, registered: r } = e, i = this.writeState()?.documents.get(t);
|
|
4267
4267
|
oe({
|
|
4268
|
-
held:
|
|
4268
|
+
held: i,
|
|
4269
4269
|
registered: r
|
|
4270
|
-
}) ||
|
|
4270
|
+
}) || b({
|
|
4271
4271
|
documentId: t,
|
|
4272
4272
|
what: "records"
|
|
4273
4273
|
}), await this.bulkWriteUnguarded(t, n);
|
|
@@ -4283,7 +4283,7 @@ function Te(e) {
|
|
|
4283
4283
|
this.guardWritable();
|
|
4284
4284
|
let t = this.writeState();
|
|
4285
4285
|
if (t) {
|
|
4286
|
-
t.documents.delete(e), t.records.delete(
|
|
4286
|
+
t.documents.delete(e), t.records.delete(_(e)), t.changelog.delete(e), t.heads.delete(e), t.discardedCommits.delete(e), t.blobData.delete(e);
|
|
4287
4287
|
for (let [n, r] of t.blobs) r.documentId === e && t.blobs.delete(n);
|
|
4288
4288
|
}
|
|
4289
4289
|
}
|
|
@@ -4295,7 +4295,7 @@ function Te(e) {
|
|
|
4295
4295
|
creates: i,
|
|
4296
4296
|
documentId: e
|
|
4297
4297
|
});
|
|
4298
|
-
let a = new Set(i.map((e) => e.id)), o =
|
|
4298
|
+
let a = new Set(i.map((e) => e.id)), o = u({ value: (t.updates ?? []).filter((e) => r.has(e.recordId) || a.has(e.recordId)) });
|
|
4299
4299
|
for (let e of i) r.set(e.id, e);
|
|
4300
4300
|
for (let e of o) {
|
|
4301
4301
|
let t = r.get(e.recordId);
|
|
@@ -4317,11 +4317,11 @@ function Te(e) {
|
|
|
4317
4317
|
return be({ key: this.stateKey });
|
|
4318
4318
|
}
|
|
4319
4319
|
readTable(e) {
|
|
4320
|
-
return this.readState().records.get(
|
|
4320
|
+
return this.readState().records.get(_(e)) ?? Ce;
|
|
4321
4321
|
}
|
|
4322
4322
|
writeTarget(e) {
|
|
4323
|
-
let t = this.writeState(), n = t?.records.get(
|
|
4324
|
-
return t && n ||
|
|
4323
|
+
let t = this.writeState(), n = t?.records.get(_(e));
|
|
4324
|
+
return t && n || b({
|
|
4325
4325
|
documentId: e,
|
|
4326
4326
|
what: "records"
|
|
4327
4327
|
}), {
|
|
@@ -4330,14 +4330,14 @@ function Te(e) {
|
|
|
4330
4330
|
};
|
|
4331
4331
|
}
|
|
4332
4332
|
guardOpen() {
|
|
4333
|
-
if (this.closed &&
|
|
4333
|
+
if (this.closed && c({ storeName: this.name }), this.destroying) return this.guardOpenAfterOwnDestroy({ destroying: this.destroying });
|
|
4334
4334
|
this.writable && M.markOpen({
|
|
4335
4335
|
name: this.stateKey,
|
|
4336
4336
|
connection: this
|
|
4337
4337
|
});
|
|
4338
4338
|
}
|
|
4339
4339
|
async guardOpenAfterOwnDestroy(e) {
|
|
4340
|
-
await e.destroying.catch(
|
|
4340
|
+
await e.destroying.catch(a), await this.guardOpen();
|
|
4341
4341
|
}
|
|
4342
4342
|
ownImportTarget() {
|
|
4343
4343
|
let e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as e, S as t, W as n, b as r, c as i, d as a, f as o, k as s, l as c, s as l, u, w as d, y as f } from "./utils-
|
|
1
|
+
import { O as e, S as t, W as n, b as r, c as i, d as a, f as o, k as s, l as c, s as l, u, w as d, y as f } from "./utils-Cv4oHia0.js";
|
|
2
2
|
function p(e) {
|
|
3
3
|
return {
|
|
4
4
|
id: e.id,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { G as e, H as t, U as n } from "./utils-Cv4oHia0.js";
|
|
2
|
+
import "./running-operations-DCKvzlU7.js";
|
|
3
|
+
import "./project-key-2ccZ-0gu.js";
|
|
4
|
+
import "./same-json-value-_AChwM_n.js";
|
|
5
|
+
import { V as r } from "./dialecte-oAXwOG-Q.js";
|
|
6
|
+
export { r as bindExtensions, t as defineErrors, n as isKnownDialecteError, e as toDialecteError };
|