@dialecte/core 0.6.0 → 0.6.2
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/document/query/any/any-query.d.ts.map +1 -1
- package/dist/document/query/get/attribute/get-attribute.d.ts +7 -6
- package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
- package/dist/document/query/get/attribute/get-attributes.d.ts +6 -5
- package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
- package/dist/document/query/get/record/index.d.ts +1 -0
- package/dist/document/query/get/record/index.d.ts.map +1 -1
- package/dist/document/query/get/record/resolve-record.d.ts +19 -0
- package/dist/document/query/get/record/resolve-record.d.ts.map +1 -0
- package/dist/document/query/main.d.ts.map +1 -1
- package/dist/helpers/standardizing.d.ts.map +1 -1
- package/dist/helpers.js +74 -71
- package/dist/index.js +3 -3
- package/dist/{project-DwtNI4J5.js → project-DQ6Yf6lO.js} +1410 -1388
- package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +3 -1
- package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
- package/dist/test.js +204 -191
- package/dist/utils/namespaces.d.ts +6 -1
- package/dist/utils/namespaces.d.ts.map +1 -1
- package/dist/{utils-CZ12wsuC.js → utils-CTBHUFs9.js} +7 -3
- package/dist/utils.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any-query.d.ts","sourceRoot":"","sources":["../../../../src/document/query/any/any-query.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"any-query.d.ts","sourceRoot":"","sources":["../../../../src/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AAC,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/D,OAAO,CAAC,aAAa,CAAC;IACnB,WAAW,CAAC,OAAO,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;QAAE,EAAE,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAC5F,WAAW,CAChB,OAAO,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAC7D,OAAO,CAAC,cAAc,CAAC;IAUpB,eAAe,CACpB,WAAW,EAAE,cAAc,GAAG,SAAS,GACrC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAUxC,aAAa,CAAC,WAAW,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQnF,gBAAgB,CAAC,MAAM,EAAE;QAC9B,OAAO,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;KAC7C,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAO/B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Context,
|
|
1
|
+
import { Context, RefOrRecord } from '../../..';
|
|
2
2
|
import { AnyDialecteConfig, ElementsOf, FullAttributeObjectOf } from '../../../../types';
|
|
3
3
|
import { AttributeDefaults } from '../../../../utils';
|
|
4
4
|
/**
|
|
5
|
-
* Fetch a single attribute for the given ref.
|
|
5
|
+
* Fetch a single attribute for the given ref or record.
|
|
6
6
|
*
|
|
7
|
-
* Resolves the record
|
|
7
|
+
* Resolves the record (a record given in full is read as it is, through the staged
|
|
8
|
+
* operations; a ref via staged → cache → store, see `resolveRecord`), then extracts the named
|
|
8
9
|
* attribute. Pass `namespace` to scope by a namespace key (a local `name` is resolved
|
|
9
10
|
* to the stored `prefix:local` key). `defaults` (default `'optional'`) controls the
|
|
10
11
|
* fallback for an absent attribute: `'none'` → `''`; `'optional'` → `fixed` /
|
|
@@ -16,13 +17,13 @@ import { AttributeDefaults } from '../../../../utils';
|
|
|
16
17
|
*/
|
|
17
18
|
export declare function getAttribute<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
|
|
18
19
|
context: Context<GenericConfig>;
|
|
19
|
-
ref:
|
|
20
|
+
ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
|
|
20
21
|
name: string;
|
|
21
22
|
namespace?: string;
|
|
22
23
|
defaults?: AttributeDefaults;
|
|
23
24
|
}): Promise<GenericAttribute['value'] | ''>;
|
|
24
25
|
/**
|
|
25
|
-
* Fetch a single attribute for the given ref as a full object (name + value +
|
|
26
|
+
* Fetch a single attribute for the given ref or record as a full object (name + value +
|
|
26
27
|
* namespace). `defaults` (default `'optional'`) fills an absent schema attribute by
|
|
27
28
|
* synthesizing its object; `'none'` returns `undefined` when the attribute is not
|
|
28
29
|
* stored.
|
|
@@ -32,7 +33,7 @@ export declare function getAttribute<GenericConfig extends AnyDialecteConfig, Ge
|
|
|
32
33
|
*/
|
|
33
34
|
export declare function getAttributeFullObject<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
|
|
34
35
|
context: Context<GenericConfig>;
|
|
35
|
-
ref:
|
|
36
|
+
ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
|
|
36
37
|
name: string;
|
|
37
38
|
namespace?: string;
|
|
38
39
|
defaults?: AttributeDefaults;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/attribute/get-attribute.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"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AG,SAAS,CAAC,CAyBxC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Context,
|
|
1
|
+
import { Context, RefOrRecord } from '../../..';
|
|
2
2
|
import { AnyDialecteConfig, AttributesValueObjectOf, ElementsOf, FullAttributeObjectOf } from '../../../../types';
|
|
3
3
|
import { AttributeDefaults } from '../../../../utils';
|
|
4
4
|
/**
|
|
5
|
-
* Fetch attributes for the given ref as a destructurable value object.
|
|
5
|
+
* Fetch attributes for the given ref or record as a destructurable value object. A record given in full is read as it
|
|
6
|
+
* is, through the staged operations, with no store round trip (see `resolveRecord`).
|
|
6
7
|
*
|
|
7
8
|
* Without `namespace`, every attribute under the name it is stored by (`aA`, `xsi:type`, `ext:cA`) - what a write takes
|
|
8
9
|
* back. With a `namespace` key, only that namespace's attributes, with the prefix stripped from the keys
|
|
@@ -18,12 +19,12 @@ import { AttributeDefaults } from '../../../../utils';
|
|
|
18
19
|
*/
|
|
19
20
|
export declare function getAttributes<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
|
|
20
21
|
context: Context<GenericConfig>;
|
|
21
|
-
ref:
|
|
22
|
+
ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
|
|
22
23
|
namespace?: string;
|
|
23
24
|
defaults?: AttributeDefaults;
|
|
24
25
|
}): Promise<AttributesValueObjectOf<GenericConfig, GenericElement>>;
|
|
25
26
|
/**
|
|
26
|
-
* Fetch all attributes of
|
|
27
|
+
* Fetch all attributes of the given ref or record as a full array (name + value + namespace).
|
|
27
28
|
*
|
|
28
29
|
* `defaults` (default `'optional'`) fills absent schema attributes just like
|
|
29
30
|
* {@link getAttributes}: `'none'` returns the faithful stored-only set;
|
|
@@ -35,7 +36,7 @@ export declare function getAttributes<GenericConfig extends AnyDialecteConfig, G
|
|
|
35
36
|
*/
|
|
36
37
|
export declare function getAttributesFullObject<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
|
|
37
38
|
context: Context<GenericConfig>;
|
|
38
|
-
ref:
|
|
39
|
+
ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
|
|
39
40
|
defaults?: AttributeDefaults;
|
|
40
41
|
}): Promise<GenericAttribute[]>;
|
|
41
42
|
//# sourceMappingURL=get-attributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/attribute/get-attributes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"get-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/attribute/get-attributes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,UAAU,EACV,qBAAqB,EAErB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;;;;;;;;;;;GAeG;AAEH,wBAAsB,aAAa,CAClC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAqClE;AAmBD;;;;;;;;;;GAUG;AAEH,wBAAsB,uBAAuB,CAC5C,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;IAC3D,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CA6B9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context, RefOrRecord } from '../../..';
|
|
2
|
+
import { AnyDialecteConfig, ElementsOf, TrackedRecord } from '../../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* The record a read works on.
|
|
5
|
+
*
|
|
6
|
+
* A record given in full (one carrying its `attributes`) is read as it is, with no store round trip: a transaction's
|
|
7
|
+
* staged operations still come first, so a record held from before a staged write reads as the transaction sees it
|
|
8
|
+
* and one deleted in the transaction reads as absent. Outside a transaction the record is a snapshot - pass its ref
|
|
9
|
+
* (`toRef(record)`) to read the store again. A ref, or a parent/child relationship, is fetched with {@link getRecord}.
|
|
10
|
+
*
|
|
11
|
+
* Perf: counts `core::query::getRecord.fromRecord` when the record given is the one read.
|
|
12
|
+
*
|
|
13
|
+
* @throws {@link DialecteError} when `ref` is undefined.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>>(params: {
|
|
16
|
+
context: Context<GenericConfig>;
|
|
17
|
+
ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
|
|
18
|
+
}): Promise<TrackedRecord<GenericConfig, GenericElement> | undefined>;
|
|
19
|
+
//# sourceMappingURL=resolve-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-record.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/resolve-record.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3E;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAClC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAC/C,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AAc,CAAC,EAAE,CAAC;IAalE;;;;;;;;;;;;;OAaG;IACG,gBAAgB,CAAC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE;QAChF,OAAO,EAAE,cAAc,CAAA;QACvB,UAAU,EAAE,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;KAC3D,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAC;CAG3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standardizing.d.ts","sourceRoot":"","sources":["../../src/helpers/standardizing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EAEV,SAAS,EACT,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,SAAS,CAAA;AAEhB,wBAAgB,iBAAiB,CAChC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAC/C,MAAM,EAAE;IACT,cAAc,EAAE,aAAa,CAAA;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAA;IACvC,MAAM,EAAE;QACP,OAAO,EAAE,cAAc,CAAA;QACvB,UAAU,CAAC,EACR,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,GAC/D,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAA;KACpD,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;CACzE,GAAG,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"standardizing.d.ts","sourceRoot":"","sources":["../../src/helpers/standardizing.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EAEV,SAAS,EACT,uBAAuB,EACvB,gBAAgB,EAChB,MAAM,SAAS,CAAA;AAEhB,wBAAgB,iBAAiB,CAChC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAC/C,MAAM,EAAE;IACT,cAAc,EAAE,aAAa,CAAA;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAA;IACvC,MAAM,EAAE;QACP,OAAO,EAAE,cAAc,CAAA;QACvB,UAAU,CAAC,EACR,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,GAC/D,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAA;KACpD,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,EAAE,YAAY,CAAC,CAAA;CACzE,GAAG,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAsH3C"}
|
package/dist/helpers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r,
|
|
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
2
|
//#region src/helpers/guard.ts
|
|
3
|
-
var
|
|
3
|
+
var S = [
|
|
4
4
|
"id",
|
|
5
5
|
"tagName",
|
|
6
6
|
"namespace",
|
|
@@ -8,26 +8,23 @@ var x = [
|
|
|
8
8
|
"children",
|
|
9
9
|
"parent",
|
|
10
10
|
"value"
|
|
11
|
-
],
|
|
12
|
-
function
|
|
11
|
+
], C = [...S, "status"], w = [...C, "tree"];
|
|
12
|
+
function T(e, t) {
|
|
13
13
|
if (typeof e != "object" || !e) return !1;
|
|
14
14
|
let n = Object.keys(e);
|
|
15
15
|
return t.every((t) => t in e) && n.every((e) => t.includes(e)) && n.length === t.length;
|
|
16
16
|
}
|
|
17
|
-
function T(e) {
|
|
18
|
-
return Array.isArray(e);
|
|
19
|
-
}
|
|
20
17
|
function E(e) {
|
|
21
|
-
return
|
|
18
|
+
return Array.isArray(e);
|
|
22
19
|
}
|
|
23
20
|
function D(e) {
|
|
24
|
-
return
|
|
21
|
+
return T(e, S);
|
|
25
22
|
}
|
|
26
23
|
function O(e) {
|
|
27
|
-
return
|
|
24
|
+
return T(e, C);
|
|
28
25
|
}
|
|
29
|
-
function k(e
|
|
30
|
-
return e
|
|
26
|
+
function k(e) {
|
|
27
|
+
return T(e, w);
|
|
31
28
|
}
|
|
32
29
|
function A(e, t) {
|
|
33
30
|
return e.tagName === t;
|
|
@@ -36,14 +33,17 @@ function j(e, t) {
|
|
|
36
33
|
return e.tagName === t;
|
|
37
34
|
}
|
|
38
35
|
function M(e, t) {
|
|
39
|
-
return t
|
|
36
|
+
return e.tagName === t;
|
|
40
37
|
}
|
|
41
38
|
function N(e, t) {
|
|
39
|
+
return t.elements.includes(e);
|
|
40
|
+
}
|
|
41
|
+
function P(e, t) {
|
|
42
42
|
return e.attributes.some((e) => e.name === t);
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/helpers/converter.ts
|
|
46
|
-
function
|
|
46
|
+
function F(e) {
|
|
47
47
|
return {
|
|
48
48
|
id: e.id,
|
|
49
49
|
tagName: e.tagName,
|
|
@@ -54,43 +54,43 @@ function P(e) {
|
|
|
54
54
|
children: e.children
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function I(e) {
|
|
58
58
|
return e;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function L(e) {
|
|
61
61
|
let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
|
|
62
62
|
return {
|
|
63
|
-
...
|
|
63
|
+
...F(t),
|
|
64
64
|
status: r
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function R(e) {
|
|
68
68
|
let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
|
|
69
69
|
return {
|
|
70
|
-
...
|
|
70
|
+
...L({
|
|
71
71
|
record: t,
|
|
72
72
|
status: n
|
|
73
73
|
}),
|
|
74
74
|
tree: i
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function z(e) {
|
|
78
78
|
let { dialecteConfig: t, tagName: n, attributes: r, stored: i = [] } = e;
|
|
79
79
|
return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
|
|
80
80
|
name: e,
|
|
81
81
|
value: r,
|
|
82
|
-
namespace:
|
|
82
|
+
namespace: B({
|
|
83
83
|
dialecteConfig: t,
|
|
84
84
|
tagName: n,
|
|
85
85
|
name: e
|
|
86
86
|
}) ?? i.find((t) => t.name === e)?.namespace
|
|
87
|
-
}))).map((e) =>
|
|
87
|
+
}))).map((e) => V({
|
|
88
88
|
attribute: e,
|
|
89
89
|
dialecteConfig: t,
|
|
90
90
|
tagName: n
|
|
91
91
|
}));
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function B(e) {
|
|
94
94
|
let { dialecteConfig: t, tagName: n, name: r } = e, i = t.definition[n];
|
|
95
95
|
if (i === void 0) return;
|
|
96
96
|
let a = Object.values(i.declarations ?? {}), o = [i, ...a].flatMap((e) => e.variants ?? []), s = [
|
|
@@ -103,7 +103,7 @@ function z(e) {
|
|
|
103
103
|
if (t) return t;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function V(e) {
|
|
107
107
|
let { attribute: t, dialecteConfig: n, tagName: r } = e, a;
|
|
108
108
|
typeof t.namespace == "string" ? (a = _(n, t.namespace), a || i("UNKNOWN_NAMESPACE_PREFIX", {
|
|
109
109
|
detail: `Unknown namespace '${t.namespace}' on attribute '${t.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
|
|
@@ -112,47 +112,47 @@ function B(e) {
|
|
|
112
112
|
let o = t.name.indexOf(":");
|
|
113
113
|
if (!a && o !== -1) {
|
|
114
114
|
let e = t.name.slice(0, o);
|
|
115
|
-
e !== "xmlns" && (a =
|
|
115
|
+
e !== "xmlns" && (a = g(n, e), a || i("UNKNOWN_NAMESPACE_PREFIX", {
|
|
116
116
|
detail: `Unknown namespace prefix '${e}' on attribute '${t.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
|
|
117
117
|
ref: { tagName: r }
|
|
118
118
|
}));
|
|
119
119
|
}
|
|
120
|
-
return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a =
|
|
120
|
+
return a && a.prefix && a.uri !== "http://www.w3.org/2000/xmlns/" && (a = H({
|
|
121
121
|
dialecteConfig: n,
|
|
122
122
|
uri: a.uri
|
|
123
123
|
}) ?? a), a && a.prefix && a.prefix !== "xmlns" ? {
|
|
124
124
|
...t,
|
|
125
|
-
name: `${a.prefix}:${
|
|
125
|
+
name: `${a.prefix}:${h(t.name)}`,
|
|
126
126
|
namespace: a
|
|
127
127
|
} : (t.namespace, {
|
|
128
128
|
...t,
|
|
129
129
|
namespace: a
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function H(e) {
|
|
133
133
|
let { dialecteConfig: t, uri: n } = e;
|
|
134
134
|
return Object.values(t.namespaces).find((e) => e.uri === n && e.prefix !== "");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
136
|
+
function U(e) {
|
|
137
|
+
return m(e, { detail: "The record or ref is undefined" }), {
|
|
138
138
|
id: e.id,
|
|
139
139
|
tagName: e.tagName
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region src/helpers/standardizing.ts
|
|
144
|
-
function
|
|
145
|
-
let { dialecteConfig: t, hooks: n, record: r } = e, { id: i, tagName: a, attributes: o, namespace: s, value: c } = r,
|
|
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
146
|
dialecteConfig: t,
|
|
147
|
-
attributes: o ?
|
|
147
|
+
attributes: o ? z({
|
|
148
148
|
tagName: a,
|
|
149
149
|
attributes: o,
|
|
150
150
|
dialecteConfig: t
|
|
151
151
|
}) : []
|
|
152
|
-
}),
|
|
153
|
-
id:
|
|
152
|
+
}), p = {
|
|
153
|
+
id: u,
|
|
154
154
|
tagName: a,
|
|
155
|
-
attributes:
|
|
155
|
+
attributes: f,
|
|
156
156
|
namespace: s ?? {
|
|
157
157
|
prefix: "prefixNeededForNotSupportedNamespace",
|
|
158
158
|
uri: "uriNeededForNotSupportedNamespace"
|
|
@@ -160,44 +160,47 @@ function U(e) {
|
|
|
160
160
|
value: c ?? "",
|
|
161
161
|
parent: r.parent ?? null,
|
|
162
162
|
children: r.children ?? []
|
|
163
|
-
},
|
|
164
|
-
if (!(t.elements.includes(a) && !
|
|
165
|
-
let
|
|
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({
|
|
166
166
|
dialecteConfig: t,
|
|
167
167
|
record: {
|
|
168
|
-
...
|
|
168
|
+
...p,
|
|
169
169
|
namespace: s
|
|
170
170
|
}
|
|
171
|
-
}),
|
|
172
|
-
|
|
171
|
+
}), _ = g?.attributes.sequence ?? [], v = d({
|
|
172
|
+
wildcard: g?.attributes.any,
|
|
173
|
+
namespaceUri: ""
|
|
174
|
+
}), y = f.filter((e) => {
|
|
175
|
+
let t = _.includes(e.name), n = "namespace" in e && e.namespace != null;
|
|
173
176
|
if (!t && !n && !v) return !1;
|
|
174
177
|
let r = e.value === void 0 || e.value === null || e.value === "";
|
|
175
178
|
return !(t && r);
|
|
176
|
-
}),
|
|
177
|
-
if ("namespace" in e && e.namespace?.uri ===
|
|
179
|
+
}), b = t.namespaces.default.uri, S = y.map((e) => {
|
|
180
|
+
if ("namespace" in e && e.namespace?.uri === b) {
|
|
178
181
|
let { namespace: t, ...n } = e;
|
|
179
182
|
return n;
|
|
180
183
|
}
|
|
181
184
|
return e;
|
|
182
|
-
}), C = t.definition[a], w = [
|
|
183
|
-
...
|
|
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,
|
|
184
187
|
namespace: T ?? s ?? w[0],
|
|
185
|
-
attributes:
|
|
188
|
+
attributes: l(S, _)
|
|
186
189
|
};
|
|
187
190
|
return n?.afterStandardizedRecord && (E = n.afterStandardizedRecord({ record: E }), E = {
|
|
188
191
|
...E,
|
|
189
|
-
attributes:
|
|
192
|
+
attributes: l(G({
|
|
190
193
|
dialecteConfig: t,
|
|
191
194
|
attributes: E.attributes
|
|
192
|
-
}),
|
|
195
|
+
}), _)
|
|
193
196
|
}), E;
|
|
194
197
|
}
|
|
195
|
-
function
|
|
198
|
+
function G(e) {
|
|
196
199
|
let { dialecteConfig: n, attributes: r } = e;
|
|
197
|
-
return
|
|
200
|
+
return y({
|
|
198
201
|
dialecteConfig: n,
|
|
199
202
|
attributes: r,
|
|
200
|
-
namespaceOf:
|
|
203
|
+
namespaceOf: t({
|
|
201
204
|
dialecteConfig: n,
|
|
202
205
|
attributes: r
|
|
203
206
|
})
|
|
@@ -205,10 +208,10 @@ function W(e) {
|
|
|
205
208
|
}
|
|
206
209
|
//#endregion
|
|
207
210
|
//#region src/helpers/assert-fixed.ts
|
|
208
|
-
function
|
|
211
|
+
function K(e) {
|
|
209
212
|
let { dialecteConfig: t, record: n, attributes: r } = e;
|
|
210
213
|
for (let e of r) {
|
|
211
|
-
let r =
|
|
214
|
+
let r = u({
|
|
212
215
|
dialecteConfig: t,
|
|
213
216
|
record: n,
|
|
214
217
|
attributeName: e.name
|
|
@@ -221,14 +224,14 @@ function G(e) {
|
|
|
221
224
|
}
|
|
222
225
|
//#endregion
|
|
223
226
|
//#region src/helpers/assert-xsi-type.ts
|
|
224
|
-
function
|
|
225
|
-
let { dialecteConfig: t, record: n } = e, r = n.attributes.find(
|
|
227
|
+
function q(e) {
|
|
228
|
+
let { dialecteConfig: t, record: n } = e, r = n.attributes.find(b);
|
|
226
229
|
if (r === void 0) {
|
|
227
|
-
|
|
230
|
+
x({
|
|
228
231
|
dialecteConfig: t,
|
|
229
232
|
record: n
|
|
230
233
|
})?.abstractType && i("XSI_TYPE_REQUIRED", {
|
|
231
|
-
detail: `'${n.tagName}' is declared with an abstract type: name one of its variants with xsi:type (${
|
|
234
|
+
detail: `'${n.tagName}' is declared with an abstract type: name one of its variants with xsi:type (${v({
|
|
232
235
|
dialecteConfig: t,
|
|
233
236
|
record: n
|
|
234
237
|
}).join(", ")}).`,
|
|
@@ -236,16 +239,16 @@ function K(e) {
|
|
|
236
239
|
});
|
|
237
240
|
return;
|
|
238
241
|
}
|
|
239
|
-
if (
|
|
242
|
+
if (x({
|
|
240
243
|
dialecteConfig: t,
|
|
241
244
|
record: n
|
|
242
245
|
}) === void 0) return;
|
|
243
|
-
let a =
|
|
246
|
+
let a = c({
|
|
244
247
|
dialecteConfig: t,
|
|
245
248
|
record: n
|
|
246
249
|
});
|
|
247
250
|
if (a?.namespace === "http://www.w3.org/2001/XMLSchema") return;
|
|
248
|
-
let o =
|
|
251
|
+
let o = v({
|
|
249
252
|
dialecteConfig: t,
|
|
250
253
|
record: n
|
|
251
254
|
});
|
|
@@ -258,8 +261,8 @@ function K(e) {
|
|
|
258
261
|
}
|
|
259
262
|
});
|
|
260
263
|
}
|
|
261
|
-
function
|
|
262
|
-
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 =
|
|
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({
|
|
263
266
|
dialecteConfig: t,
|
|
264
267
|
record: r
|
|
265
268
|
}), c = new Set(s?.children.sequence ?? []), l = s?.children.any ? [] : [...new Set(r.children.map((e) => e.tagName))].filter((e) => !c.has(e));
|
|
@@ -274,20 +277,20 @@ function q(e) {
|
|
|
274
277
|
}
|
|
275
278
|
//#endregion
|
|
276
279
|
//#region src/helpers/merge-extensions.ts
|
|
277
|
-
function
|
|
280
|
+
function Y(e, t, n, r) {
|
|
278
281
|
if (!e || !t) return;
|
|
279
282
|
let i = Object.keys(t).filter((t) => t in e);
|
|
280
|
-
|
|
283
|
+
m(i.length === 0, {
|
|
281
284
|
key: "EXTENSION_METHOD_COLLISION",
|
|
282
285
|
detail: `Module "${n}" has conflicting ${r} method(s): ${i.map((e) => `"${e}"`).join(", ")}`
|
|
283
286
|
});
|
|
284
287
|
}
|
|
285
|
-
function
|
|
288
|
+
function X(e) {
|
|
286
289
|
let t = {}, n = {}, r = [...Object.entries(e.base ?? {}), ...Object.entries(e.custom ?? {})];
|
|
287
|
-
for (let [e, i] of r) i.query && (
|
|
290
|
+
for (let [e, i] of r) i.query && (Y(t[e], i.query, e, "query"), t[e] = {
|
|
288
291
|
...t[e],
|
|
289
292
|
...i.query
|
|
290
|
-
}), i.transaction && (
|
|
293
|
+
}), i.transaction && (Y(n[e], i.transaction, e, "transaction"), n[e] = {
|
|
291
294
|
...n[e],
|
|
292
295
|
...i.transaction
|
|
293
296
|
});
|
|
@@ -298,15 +301,15 @@ function Y(e) {
|
|
|
298
301
|
}
|
|
299
302
|
//#endregion
|
|
300
303
|
//#region src/helpers/strip-attributes.ts
|
|
301
|
-
function
|
|
304
|
+
function Z(e, t) {
|
|
302
305
|
let n = new Set(t), r = {
|
|
303
306
|
...e,
|
|
304
307
|
attributes: e.attributes.filter((e) => !n.has(e.name))
|
|
305
308
|
};
|
|
306
309
|
return "tree" in e ? {
|
|
307
310
|
...r,
|
|
308
|
-
tree: e.tree.map((e) =>
|
|
311
|
+
tree: e.tree.map((e) => Z(e, t))
|
|
309
312
|
} : r;
|
|
310
313
|
}
|
|
311
314
|
//#endregion
|
|
312
|
-
export {
|
|
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,
|
|
2
|
-
import { F as
|
|
3
|
-
export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA,
|
|
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, gt as R, h as z, i as B, it as V, j as H, k as U, l as W, lt as G, m as K, mt as q, n as J, nt as Y, o as X, ot as Z, p as Q, pt as $, q as ee, r as te, rt as ne, s as re, st as ie, t as ae, tt as oe, u as se, ut as ce, v as le, w as ue, x as de, y as fe, z as pe } from "./project-DQ6Yf6lO.js";
|
|
2
|
+
import { F as me, I as he, L as ge, P as _e, R as ve, z as ye } from "./utils-CTBHUFs9.js";
|
|
3
|
+
export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA, Q as CHANGELOG_SCHEMA, K as DOCUMENTS_SCHEMA, se as DexieStore, ue as Document, ye as ERROR_CATALOG, W as InMemoryStore, z as META_SCHEMA, m as NOOP_PERF, g as ParseSession, ae as Project, h as Query, L as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, le as TABLE_CHANGELOG, fe as TABLE_DOCUMENTS, k as TABLE_META, de as TABLE_RECORD_PREFIX, pe as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, R as bindExtensions, y as blobTableName, B as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, _e as createDialecteError, p as createPerf, q as createStagedOperations, me as defineErrors, f as downloadFile, X as exportBlob, re as exportDocument, O as findAncestors, ne as findByAttributes, Y as findDescendants, n as formatXml, P as getAttribute, oe as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, ie as getChild, Z as getChildren, T as getDefinition, N as getRecord, G as getRecords, j as getRecordsByTagName, t as getSnapshot, S as getTree, te as importDocument, I as indexStagedDeletesByParent, J as initEmptyDocument, o as inspectXml, he as isKnownDialecteError, ee as isOmitted, b as isTransactionContext, V as matchesAttributeFilter, $ as overlayAllStaged, u as parseOmit, H as parseXmlFile, D as reconcileDocumentState, r as recordTableName, c as recordsToTree, ce as resolveRecord, A as resolveStore, w as shouldStopTraversal, ge as throwDialecteError, ve as toDialecteError, v as xmlDocumentToString };
|