@dialecte/core 0.5.4 → 0.6.1

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 (76) hide show
  1. package/dist/document/query/any/any-query.d.ts +2 -2
  2. package/dist/document/query/any/any-query.d.ts.map +1 -1
  3. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts +3 -0
  4. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts.map +1 -1
  5. package/dist/document/query/find/by-attribute/find-by-attributes.types.d.ts +21 -1
  6. package/dist/document/query/find/by-attribute/find-by-attributes.types.d.ts.map +1 -1
  7. package/dist/document/query/get/attribute/get-attributes.d.ts +4 -6
  8. package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
  9. package/dist/document/query/get/definition/get-definition.d.ts +2 -2
  10. package/dist/document/query/get/definition/get-definition.d.ts.map +1 -1
  11. package/dist/document/query/main.d.ts +11 -10
  12. package/dist/document/query/main.d.ts.map +1 -1
  13. package/dist/document/query/tree-filter/omit.d.ts +7 -1
  14. package/dist/document/query/tree-filter/omit.d.ts.map +1 -1
  15. package/dist/document/transaction/create/create.d.ts.map +1 -1
  16. package/dist/document/transaction/create/create.types.d.ts +5 -5
  17. package/dist/document/transaction/create/create.types.d.ts.map +1 -1
  18. package/dist/document/transaction/update/update.d.ts.map +1 -1
  19. package/dist/errors/codes.d.ts +12 -0
  20. package/dist/errors/codes.d.ts.map +1 -1
  21. package/dist/helpers/assert-fixed.d.ts +3 -2
  22. package/dist/helpers/assert-fixed.d.ts.map +1 -1
  23. package/dist/helpers/assert-xsi-type.d.ts +28 -0
  24. package/dist/helpers/assert-xsi-type.d.ts.map +1 -0
  25. package/dist/helpers/constant.d.ts +4 -0
  26. package/dist/helpers/constant.d.ts.map +1 -1
  27. package/dist/helpers/converter.d.ts +9 -1
  28. package/dist/helpers/converter.d.ts.map +1 -1
  29. package/dist/helpers/index.d.ts +1 -0
  30. package/dist/helpers/index.d.ts.map +1 -1
  31. package/dist/helpers/standardizing.d.ts.map +1 -1
  32. package/dist/helpers.js +197 -106
  33. package/dist/index.js +3 -3
  34. package/dist/{project-BdNBOjAX.js → project-sK-5Xc-5.js} +2102 -1972
  35. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +3 -1
  36. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
  37. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts +10 -4
  38. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts.map +1 -1
  39. package/dist/test/config.d.ts +972 -740
  40. package/dist/test/config.d.ts.map +1 -1
  41. package/dist/test/generated/constants.generated.d.ts +59 -4
  42. package/dist/test/generated/constants.generated.d.ts.map +1 -1
  43. package/dist/test/generated/definition.generated.d.ts +920 -736
  44. package/dist/test/generated/definition.generated.d.ts.map +1 -1
  45. package/dist/test/generated/types.generated.d.ts +401 -1
  46. package/dist/test/generated/types.generated.d.ts.map +1 -1
  47. package/dist/test/run-test-cases.d.ts +972 -740
  48. package/dist/test/run-test-cases.d.ts.map +1 -1
  49. package/dist/test/test-record.d.ts +9979 -8123
  50. package/dist/test/test-record.d.ts.map +1 -1
  51. package/dist/test.js +1324 -812
  52. package/dist/types/definition.d.ts +80 -68
  53. package/dist/types/definition.d.ts.map +1 -1
  54. package/dist/types/dialecte-config.d.ts +8 -7
  55. package/dist/types/dialecte-config.d.ts.map +1 -1
  56. package/dist/utils/attribute-rules.d.ts +5 -49
  57. package/dist/utils/attribute-rules.d.ts.map +1 -1
  58. package/dist/utils/datatype.d.ts +12 -0
  59. package/dist/utils/datatype.d.ts.map +1 -0
  60. package/dist/utils/index.d.ts +4 -0
  61. package/dist/utils/index.d.ts.map +1 -1
  62. package/dist/utils/namespaces.d.ts +52 -0
  63. package/dist/utils/namespaces.d.ts.map +1 -0
  64. package/dist/utils/resolve-definition.d.ts +29 -11
  65. package/dist/utils/resolve-definition.d.ts.map +1 -1
  66. package/dist/utils/resolve-definition.types.d.ts +6 -0
  67. package/dist/utils/resolve-definition.types.d.ts.map +1 -0
  68. package/dist/utils/xsi-type.d.ts +55 -0
  69. package/dist/utils/xsi-type.d.ts.map +1 -0
  70. package/dist/utils/xsi-type.types.d.ts +10 -0
  71. package/dist/utils/xsi-type.types.d.ts.map +1 -0
  72. package/dist/{utils-Cgqv3qwv.js → utils-CTBHUFs9.js} +220 -61
  73. package/dist/utils.js +2 -2
  74. package/dist/xml/build/build-xml-document.d.ts.map +1 -1
  75. package/dist/xml/parse/parser.d.ts.map +1 -1
  76. package/package.json +1 -1
package/dist/helpers.js CHANGED
@@ -1,15 +1,6 @@
1
- import { c as e, d as t, f as n, h as r, r as i, s as a, u as o, y as s } from "./utils-Cgqv3qwv.js";
2
- //#region src/helpers/constant.ts
3
- var c = "db-id", l = {
4
- uri: "http://dialecte.dev/XML/DEV",
5
- prefix: "dev"
6
- }, u = `${l.prefix}:${c}`, d = {
7
- uri: "http://www.w3.org/2001/XMLSchema-instance",
8
- prefix: "xsi"
9
- }, f = `xmlns:${d.prefix}="${d.uri}"`, p = {
10
- dev: l,
11
- xsi: d
12
- }, m = [
1
+ import { A as e, C as t, D as n, E as r, L as i, M as a, N as o, O as s, S as c, a as l, h as u, i as d, j as f, k as p, l as m, m as h, o as g, s as _, v, w as y, x as b, y as x } from "./utils-CTBHUFs9.js";
2
+ //#region src/helpers/guard.ts
3
+ var S = [
13
4
  "id",
14
5
  "tagName",
15
6
  "namespace",
@@ -17,42 +8,42 @@ var c = "db-id", l = {
17
8
  "children",
18
9
  "parent",
19
10
  "value"
20
- ], h = [...m, "status"], g = [...h, "tree"];
21
- function _(e, t) {
11
+ ], C = [...S, "status"], w = [...C, "tree"];
12
+ function T(e, t) {
22
13
  if (typeof e != "object" || !e) return !1;
23
14
  let n = Object.keys(e);
24
15
  return t.every((t) => t in e) && n.every((e) => t.includes(e)) && n.length === t.length;
25
16
  }
26
- function v(e) {
17
+ function E(e) {
27
18
  return Array.isArray(e);
28
19
  }
29
- function y(e) {
30
- return _(e, m);
20
+ function D(e) {
21
+ return T(e, S);
31
22
  }
32
- function b(e) {
33
- return _(e, h);
23
+ function O(e) {
24
+ return T(e, C);
34
25
  }
35
- function x(e) {
36
- return _(e, g);
26
+ function k(e) {
27
+ return T(e, w);
37
28
  }
38
- function S(e, t) {
29
+ function A(e, t) {
39
30
  return e.tagName === t;
40
31
  }
41
- function C(e, t) {
32
+ function j(e, t) {
42
33
  return e.tagName === t;
43
34
  }
44
- function w(e, t) {
35
+ function M(e, t) {
45
36
  return e.tagName === t;
46
37
  }
47
- function T(e, t) {
38
+ function N(e, t) {
48
39
  return t.elements.includes(e);
49
40
  }
50
- function E(e, t) {
41
+ function P(e, t) {
51
42
  return e.attributes.some((e) => e.name === t);
52
43
  }
53
44
  //#endregion
54
45
  //#region src/helpers/converter.ts
55
- function D(e) {
46
+ function F(e) {
56
47
  return {
57
48
  id: e.id,
58
49
  tagName: e.tagName,
@@ -63,143 +54,243 @@ function D(e) {
63
54
  children: e.children
64
55
  };
65
56
  }
66
- function O(e) {
57
+ function I(e) {
67
58
  return e;
68
59
  }
69
- function k(e) {
60
+ function L(e) {
70
61
  let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
71
62
  return {
72
- ...D(t),
63
+ ...F(t),
73
64
  status: r
74
65
  };
75
66
  }
76
- function A(e) {
67
+ function R(e) {
77
68
  let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
78
69
  return {
79
- ...k({
70
+ ...L({
80
71
  record: t,
81
72
  status: n
82
73
  }),
83
74
  tree: i
84
75
  };
85
76
  }
86
- function j(e) {
87
- let { dialecteConfig: t, tagName: n, attributes: r } = e;
77
+ function z(e) {
78
+ let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
88
79
  return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
89
80
  name: e,
90
81
  value: r,
91
- namespace: t.definition[n]?.attributes.details[e]?.namespace || void 0
92
- }))).map((e) => M({
82
+ namespace: B({
83
+ dialecteConfig: t,
84
+ tagName: n,
85
+ name: e
86
+ }) ?? i.find((t) => t.name === e)?.namespace
87
+ }))).map((e) => V({
93
88
  attribute: e,
94
89
  dialecteConfig: t,
95
90
  tagName: n
96
91
  }));
97
92
  }
98
- function M(e) {
99
- let { attribute: r, dialecteConfig: i, tagName: o } = e, c;
100
- typeof r.namespace == "string" ? (c = n(i, r.namespace), c || s("UNKNOWN_NAMESPACE_PREFIX", {
101
- detail: `Unknown namespace '${r.namespace}' on attribute '${r.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
102
- ref: { tagName: o }
103
- })) : c = r.namespace;
104
- let l = r.name.indexOf(":");
105
- if (!c && l !== -1) {
106
- let e = r.name.slice(0, l);
107
- e !== "xmlns" && (c = t(i, e), c || s("UNKNOWN_NAMESPACE_PREFIX", {
108
- detail: `Unknown namespace prefix '${e}' on attribute '${r.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
109
- ref: { tagName: o }
93
+ function B(e) {
94
+ let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
95
+ if (i === void 0) return;
96
+ let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
97
+ i,
98
+ ...a,
99
+ ...o.flatMap((e) => t.types[e] ?? [])
100
+ ];
101
+ for (let e of s) {
102
+ let t = e.attributes.details[r]?.namespace;
103
+ if (t) return t;
104
+ }
105
+ }
106
+ function V(e) {
107
+ let { attribute: t, dialecteConfig: n, tagName: r } = e, a;
108
+ typeof t.namespace == "string" ? (a = _(n, t.namespace), a || i("UNKNOWN_NAMESPACE_PREFIX", {
109
+ detail: `Unknown namespace '${t.namespace}' on attribute '${t.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
110
+ ref: { tagName: r }
111
+ })) : a = t.namespace;
112
+ let o = t.name.indexOf(":");
113
+ if (!a && o !== -1) {
114
+ let e = t.name.slice(0, o);
115
+ e !== "xmlns" && (a = g(n, e), a || i("UNKNOWN_NAMESPACE_PREFIX", {
116
+ detail: `Unknown namespace prefix '${e}' on attribute '${t.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
117
+ ref: { tagName: r }
110
118
  }));
111
119
  }
112
- return c && c.prefix && c.prefix !== "xmlns" ? {
113
- ...r,
114
- name: `${c.prefix}:${a(r.name)}`,
115
- namespace: c
116
- } : (r.namespace, {
117
- ...r,
118
- namespace: c
120
+ return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a = H({
121
+ dialecteConfig: n,
122
+ uri: a.uri
123
+ }) ?? a), a && a.prefix && a.prefix !== "xmlns" ? {
124
+ ...t,
125
+ name: `${a.prefix}:${h(t.name)}`,
126
+ namespace: a
127
+ } : (t.namespace, {
128
+ ...t,
129
+ namespace: a
119
130
  });
120
131
  }
121
- function N(e) {
122
- return i(e, { detail: "The record or ref is undefined" }), {
132
+ function H(e) {
133
+ let { dialecteConfig: t, uri: n } = e;
134
+ return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
135
+ }
136
+ function U(e) {
137
+ return m(e, { detail: "The record or ref is undefined" }), {
123
138
  id: e.id,
124
139
  tagName: e.tagName
125
140
  };
126
141
  }
127
142
  //#endregion
128
143
  //#region src/helpers/standardizing.ts
129
- function P(e) {
130
- let { dialecteConfig: t, hooks: n, record: i } = e, { id: a, tagName: s, attributes: c, namespace: l, value: u } = i, d = i.parent?.tagName, f = a ?? crypto.randomUUID(), p = c ? j({
131
- tagName: s,
132
- attributes: c,
133
- dialecteConfig: t
134
- }) : [], m = {
135
- id: f,
136
- tagName: s,
137
- attributes: p,
138
- namespace: l ?? {
144
+ function W(e) {
145
+ let { dialecteConfig: t, hooks: n, record: r } = e, { id: i, tagName: a, attributes: o, namespace: s, value: c } = r, u = i ?? crypto.randomUUID(), f = G({
146
+ dialecteConfig: t,
147
+ attributes: o ? z({
148
+ tagName: a,
149
+ attributes: o,
150
+ dialecteConfig: t
151
+ }) : []
152
+ }), p = {
153
+ id: u,
154
+ tagName: a,
155
+ attributes: f,
156
+ namespace: s ?? {
139
157
  prefix: "prefixNeededForNotSupportedNamespace",
140
158
  uri: "uriNeededForNotSupportedNamespace"
141
159
  },
142
- value: u ?? "",
143
- parent: i.parent ?? null,
144
- children: i.children ?? []
145
- }, h = Object.values(t.namespaces).map(({ uri: e }) => e), g = l?.uri != null && !h.includes(l.uri);
146
- if (!(t.elements.includes(s) && !g)) return m;
147
- let _ = r({
160
+ value: c ?? "",
161
+ parent: r.parent ?? null,
162
+ children: r.children ?? []
163
+ }, m = Object.values(t.namespaces).map(({ uri: e }) => e), h = s?.uri != null && !m.includes(s.uri);
164
+ if (!(t.elements.includes(a) && !h)) return p;
165
+ let g = x({
148
166
  dialecteConfig: t,
149
- record: m
150
- })?.attributes.sequence ?? [], v = p.filter((e) => {
167
+ record: {
168
+ ...p,
169
+ namespace: s
170
+ }
171
+ }), _ = g?.attributes.sequence ?? [], v = d({
172
+ wildcard: g?.attributes.any,
173
+ namespaceUri: ""
174
+ }), y = f.filter((e) => {
151
175
  let t = _.includes(e.name), n = "namespace" in e && e.namespace != null;
152
- if (!t && !n) return !1;
176
+ if (!t && !n && !v) return !1;
153
177
  let r = e.value === void 0 || e.value === null || e.value === "";
154
178
  return !(t && r);
155
- }), y = t.namespaces.default.uri, b = v.map((e) => {
156
- if ("namespace" in e && e.namespace?.uri === y) {
179
+ }), b = t.namespaces.default.uri, S = y.map((e) => {
180
+ if ("namespace" in e && e.namespace?.uri === b) {
157
181
  let { namespace: t, ...n } = e;
158
182
  return n;
159
183
  }
160
184
  return e;
161
- }), x = d ? t.definition[d]?.children?.details?.[s]?.namespace : void 0, S = {
162
- ...m,
163
- namespace: x ?? t.definition[s].namespace,
164
- attributes: o(b, _)
185
+ }), C = t.definition[a], w = [g?.namespace ?? C.namespace, ...Object.values(C.declarations ?? {}).map((e) => e.namespace)], T = w.find((e) => e.uri === s?.uri), E = {
186
+ ...p,
187
+ namespace: T ?? s ?? w[0],
188
+ attributes: l(S, _)
165
189
  };
166
- return n?.afterStandardizedRecord && (S = n.afterStandardizedRecord({ record: S }), S = {
167
- ...S,
168
- attributes: o(S.attributes, _)
169
- }), S;
190
+ return n?.afterStandardizedRecord && (E = n.afterStandardizedRecord({ record: E }), E = {
191
+ ...E,
192
+ attributes: l(G({
193
+ dialecteConfig: t,
194
+ attributes: E.attributes
195
+ }), _)
196
+ }), E;
197
+ }
198
+ function G(e) {
199
+ let { dialecteConfig: n, attributes: r } = e;
200
+ return y({
201
+ dialecteConfig: n,
202
+ attributes: r,
203
+ namespaceOf: t({
204
+ dialecteConfig: n,
205
+ attributes: r
206
+ })
207
+ });
170
208
  }
171
209
  //#endregion
172
210
  //#region src/helpers/assert-fixed.ts
173
- function F(t) {
174
- let { dialecteConfig: n, record: r, attributes: i } = t;
175
- for (let t of i) {
176
- let i = e({
177
- dialecteConfig: n,
178
- record: r,
179
- attributeName: t.name
211
+ function K(e) {
212
+ let { dialecteConfig: t, record: n, attributes: r } = e;
213
+ for (let e of r) {
214
+ let r = u({
215
+ dialecteConfig: t,
216
+ record: n,
217
+ attributeName: e.name
180
218
  });
181
- i.fixed !== void 0 && t.value !== i.fixed && s("FIXED_VALUE_VIOLATION", {
182
- detail: `Attribute '${t.name}' on '${r.tagName}' is fixed to '${i.fixed}' but was set to '${String(t.value)}'.`,
183
- ref: { tagName: r.tagName }
219
+ r.fixed !== void 0 && e.value !== r.fixed && i("FIXED_VALUE_VIOLATION", {
220
+ detail: `Attribute '${e.name}' on '${n.tagName}' is fixed to '${r.fixed}' but was set to '${String(e.value)}'.`,
221
+ ref: { tagName: n.tagName }
184
222
  });
185
223
  }
186
224
  }
187
225
  //#endregion
226
+ //#region src/helpers/assert-xsi-type.ts
227
+ function q(e) {
228
+ let { dialecteConfig: t, record: n } = e, r = n.attributes.find(b);
229
+ if (r === void 0) {
230
+ x({
231
+ dialecteConfig: t,
232
+ record: n
233
+ })?.abstractType && i("XSI_TYPE_REQUIRED", {
234
+ detail: `'${n.tagName}' is declared with an abstract type: name one of its variants with xsi:type (${v({
235
+ dialecteConfig: t,
236
+ record: n
237
+ }).join(", ")}).`,
238
+ ref: { tagName: n.tagName }
239
+ });
240
+ return;
241
+ }
242
+ if (x({
243
+ dialecteConfig: t,
244
+ record: n
245
+ }) === void 0) return;
246
+ let a = c({
247
+ dialecteConfig: t,
248
+ record: n
249
+ });
250
+ if (a?.namespace === "http://www.w3.org/2001/XMLSchema") return;
251
+ let o = v({
252
+ dialecteConfig: t,
253
+ record: n
254
+ });
255
+ a !== void 0 && o.includes(a.clark) || i("XSI_TYPE_NOT_ADMITTED", {
256
+ detail: `'${n.tagName}' may not name the type '${String(r.value)}' with xsi:type; it admits ${o.join(", ") || "none"}.`,
257
+ ref: { tagName: n.tagName },
258
+ meta: {
259
+ value: r.value,
260
+ admitted: o
261
+ }
262
+ });
263
+ }
264
+ function J(e) {
265
+ let { dialecteConfig: t, merged: n, record: r } = e, a = new Set(r.attributes.map((e) => e.name)), o = n.filter((e) => e.value !== "" && !a.has(e.name)).map((e) => e.name), s = x({
266
+ dialecteConfig: t,
267
+ record: r
268
+ }), c = new Set(s?.children.sequence ?? []), l = s?.children.any ? [] : [...new Set(r.children.map((e) => e.tagName))].filter((e) => !c.has(e));
269
+ o.length === 0 && l.length === 0 || i("XSI_TYPE_CHANGE_LEAVES_CONTENT", {
270
+ detail: `'${r.tagName}' now names a type that does not admit ` + [o.length > 0 ? `the attributes ${o.join(", ")} (clear them in the same update)` : "", l.length > 0 ? `the children ${l.join(", ")} (delete them first)` : ""].filter(Boolean).join(" nor ") + ".",
271
+ ref: { tagName: r.tagName },
272
+ meta: {
273
+ attributes: o,
274
+ children: l
275
+ }
276
+ });
277
+ }
278
+ //#endregion
188
279
  //#region src/helpers/merge-extensions.ts
189
- function I(e, t, n, r) {
280
+ function Y(e, t, n, r) {
190
281
  if (!e || !t) return;
191
- let a = Object.keys(t).filter((t) => t in e);
192
- i(a.length === 0, {
282
+ let i = Object.keys(t).filter((t) => t in e);
283
+ m(i.length === 0, {
193
284
  key: "EXTENSION_METHOD_COLLISION",
194
- detail: `Module "${n}" has conflicting ${r} method(s): ${a.map((e) => `"${e}"`).join(", ")}`
285
+ detail: `Module "${n}" has conflicting ${r} method(s): ${i.map((e) => `"${e}"`).join(", ")}`
195
286
  });
196
287
  }
197
- function L(e) {
288
+ function X(e) {
198
289
  let t = {}, n = {}, r = [...Object.entries(e.base ?? {}), ...Object.entries(e.custom ?? {})];
199
- for (let [e, i] of r) i.query && (I(t[e], i.query, e, "query"), t[e] = {
290
+ for (let [e, i] of r) i.query && (Y(t[e], i.query, e, "query"), t[e] = {
200
291
  ...t[e],
201
292
  ...i.query
202
- }), i.transaction && (I(n[e], i.transaction, e, "transaction"), n[e] = {
293
+ }), i.transaction && (Y(n[e], i.transaction, e, "transaction"), n[e] = {
203
294
  ...n[e],
204
295
  ...i.transaction
205
296
  });
@@ -210,15 +301,15 @@ function L(e) {
210
301
  }
211
302
  //#endregion
212
303
  //#region src/helpers/strip-attributes.ts
213
- function R(e, t) {
304
+ function Z(e, t) {
214
305
  let n = new Set(t), r = {
215
306
  ...e,
216
307
  attributes: e.attributes.filter((e) => !n.has(e.name))
217
308
  };
218
309
  return "tree" in e ? {
219
310
  ...r,
220
- tree: e.tree.map((e) => R(e, t))
311
+ tree: e.tree.map((e) => Z(e, t))
221
312
  } : r;
222
313
  }
223
314
  //#endregion
224
- export { u as CUSTOM_RECORD_ID_ATTRIBUTE, c as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, l as DIALECTE_DEV_NAMESPACE, p as DIALECTE_NAMESPACES, f as XMLNS_XSI_NAMESPACE, d as XSI_NAMESPACE, F as assertNoFixedViolation, E as isAttributeOf, C as isChildOf, T as isElementOf, v as isFullAttributeArray, w as isParentOf, y as isRawRecord, S as isRecordOf, b as isTrackedRecord, x as isTreeRecord, L as mergeExtensions, P as standardizeRecord, R as stripAttributes, j as toFullAttributeArray, D as toRawRecord, N as toRef, k as toTrackedRecord, A as toTreeRecord, O as widen };
315
+ export { r as CUSTOM_RECORD_ID_ATTRIBUTE, n as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, s as DIALECTE_DEV_NAMESPACE, p as DIALECTE_NAMESPACES, e as XMLNS_NAMESPACE_URI, f as XMLNS_XSI_NAMESPACE, a as XSD_NAMESPACE_URI, o as XSI_NAMESPACE, K as assertNoFixedViolation, q as assertXsiTypeAdmitted, J as assertXsiTypeChangeLeavesNothing, P as isAttributeOf, j as isChildOf, N as isElementOf, E as isFullAttributeArray, M as isParentOf, D as isRawRecord, A as isRecordOf, O as isTrackedRecord, k as isTreeRecord, X as mergeExtensions, W as standardizeRecord, Z as stripAttributes, z as toFullAttributeArray, F as toRawRecord, U as toRef, L as toTrackedRecord, R as toTreeRecord, I as widen };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, at as O, b as k, c as A, ct as j, d as M, dt as N, et as P, f as F, ft as I, g as L, h as R, ht as z, i as B, it as V, j as H, k as U, l as W, lt as G, m as K, n as q, nt as J, o as Y, ot as X, p as Z, pt as Q, q as $, r as ee, rt as te, s as ne, st as re, t as ie, tt as ae, u as oe, ut as se, v as ce, w as le, x as ue, y as de, z as fe } from "./project-BdNBOjAX.js";
2
- import { _ as pe, b as me, g as he, v as ge, x as _e, y as ve } from "./utils-Cgqv3qwv.js";
3
- export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA, Z as CHANGELOG_SCHEMA, K as DOCUMENTS_SCHEMA, oe as DexieStore, le as Document, _e as ERROR_CATALOG, W as InMemoryStore, R as META_SCHEMA, m as NOOP_PERF, g as ParseSession, ie as Project, h as Query, L as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, ce as TABLE_CHANGELOG, de as TABLE_DOCUMENTS, k as TABLE_META, ue as TABLE_RECORD_PREFIX, fe as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, z as bindExtensions, y as blobTableName, B as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, he as createDialecteError, p as createPerf, Q as createStagedOperations, pe as defineErrors, f as downloadFile, Y as exportBlob, ne as exportDocument, O as findAncestors, te as findByAttributes, J as findDescendants, n as formatXml, P as getAttribute, ae as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, re as getChild, X as getChildren, T as getDefinition, se as getRecord, G as getRecords, j as getRecordsByTagName, t as getSnapshot, S as getTree, ee as importDocument, N as indexStagedDeletesByParent, q as initEmptyDocument, o as inspectXml, ge as isKnownDialecteError, $ as isOmitted, b as isTransactionContext, V as matchesAttributeFilter, I as overlayAllStaged, u as parseOmit, H as parseXmlFile, D as reconcileDocumentState, r as recordTableName, c as recordsToTree, A as resolveStore, w as shouldStopTraversal, ve as throwDialecteError, me as toDialecteError, v as xmlDocumentToString };
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, at as O, b as k, c as A, ct as j, d as M, dt as N, et as P, f as F, ft as I, g as L, h as R, ht as z, i as B, it as V, j as H, k as U, l as W, lt as G, m as K, n as q, nt as J, o as Y, ot as X, p as Z, pt as Q, q as $, r as ee, rt as te, s as ne, st as re, t as ie, tt as ae, u as oe, ut as se, v as ce, w as le, x as ue, y as de, z as fe } from "./project-sK-5Xc-5.js";
2
+ import { F as pe, I as me, L as he, P as ge, R as _e, z as ve } from "./utils-CTBHUFs9.js";
3
+ export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA, Z as CHANGELOG_SCHEMA, K as DOCUMENTS_SCHEMA, oe as DexieStore, le as Document, ve as ERROR_CATALOG, W as InMemoryStore, R as META_SCHEMA, m as NOOP_PERF, g as ParseSession, ie as Project, h as Query, L as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, ce as TABLE_CHANGELOG, de as TABLE_DOCUMENTS, k as TABLE_META, ue as TABLE_RECORD_PREFIX, fe as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, z as bindExtensions, y as blobTableName, B as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, ge as createDialecteError, p as createPerf, Q as createStagedOperations, pe as defineErrors, f as downloadFile, Y as exportBlob, ne as exportDocument, O as findAncestors, te as findByAttributes, J as findDescendants, n as formatXml, P as getAttribute, ae as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, re as getChild, X as getChildren, T as getDefinition, se as getRecord, G as getRecords, j as getRecordsByTagName, t as getSnapshot, S as getTree, ee as importDocument, N as indexStagedDeletesByParent, q as initEmptyDocument, o as inspectXml, me as isKnownDialecteError, $ as isOmitted, b as isTransactionContext, V as matchesAttributeFilter, I as overlayAllStaged, u as parseOmit, H as parseXmlFile, D as reconcileDocumentState, r as recordTableName, c as recordsToTree, A as resolveStore, w as shouldStopTraversal, he as throwDialecteError, _e as toDialecteError, v as xmlDocumentToString };