@es-joy/jsoe 0.30.0 → 0.32.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.
- package/CHANGES.md +9 -0
- package/README.md +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/search/fundamentalTypes/arraySearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/bigintSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/blobSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/booleanSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/catchSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/dateSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/domexceptionSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/enumSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/fileSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/filelistSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/functionSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/mapSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/numberSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/objectSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/promiseSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/regexpSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/setSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/stringSearchType.d.ts.map +1 -1
- package/dist/search/fundamentalTypes/symbolSearchType.d.ts.map +1 -1
- package/dist/search/index.d.ts +2 -0
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/queryTree.d.ts +3 -0
- package/dist/search/queryTree.d.ts.map +1 -1
- package/dist/search/queryTreeBuilders.d.ts +2 -1
- package/dist/search/queryTreeBuilders.d.ts.map +1 -1
- package/dist/search/searchDispatch.d.ts +11 -3
- package/dist/search/searchDispatch.d.ts.map +1 -1
- package/dist/search/searchElementUtils.d.ts +31 -1
- package/dist/search/searchElementUtils.d.ts.map +1 -1
- package/dist/search/searchUtils.d.ts +197 -10
- package/dist/search/searchUtils.d.ts.map +1 -1
- package/dist/search/subTypes/blobHTMLSearchType.d.ts +11 -4
- package/dist/search/subTypes/blobHTMLSearchType.d.ts.map +1 -1
- package/dist/search/subTypes/recordSearchType.d.ts.map +1 -1
- package/dist/search/subTypes/tupleSearchType.d.ts.map +1 -1
- package/dist/search/superTypes/SpecialRealNumberSearchType.d.ts.map +1 -1
- package/dist/search/superTypes/buffersourceSearchType.d.ts.map +1 -1
- package/dist/search/unions/unionFamilySearchType.d.ts.map +1 -1
- package/dist/utils/json6Stringify.d.ts +2 -0
- package/dist/utils/json6Stringify.d.ts.map +1 -0
- package/dist/utils/rawTypesonEditor.d.ts.map +1 -1
- package/package.json +3 -3
- package/pnpm-workspace.yaml +26 -26
- package/src/search/fundamentalTypes/arraySearchType.js +28 -5
- package/src/search/fundamentalTypes/bigintSearchType.js +14 -3
- package/src/search/fundamentalTypes/blobSearchType.js +21 -3
- package/src/search/fundamentalTypes/booleanSearchType.js +15 -3
- package/src/search/fundamentalTypes/catchSearchType.js +20 -3
- package/src/search/fundamentalTypes/dateSearchType.js +42 -3
- package/src/search/fundamentalTypes/domexceptionSearchType.js +18 -4
- package/src/search/fundamentalTypes/enumSearchType.js +15 -3
- package/src/search/fundamentalTypes/fileSearchType.js +15 -3
- package/src/search/fundamentalTypes/filelistSearchType.js +25 -5
- package/src/search/fundamentalTypes/functionSearchType.js +31 -4
- package/src/search/fundamentalTypes/mapSearchType.js +33 -5
- package/src/search/fundamentalTypes/numberSearchType.js +15 -3
- package/src/search/fundamentalTypes/objectSearchType.js +94 -5
- package/src/search/fundamentalTypes/promiseSearchType.js +20 -3
- package/src/search/fundamentalTypes/regexpSearchType.js +24 -4
- package/src/search/fundamentalTypes/setSearchType.js +25 -5
- package/src/search/fundamentalTypes/stringSearchType.js +25 -3
- package/src/search/fundamentalTypes/symbolSearchType.js +21 -3
- package/src/search/index.js +22 -0
- package/src/search/queryTree.js +4 -1
- package/src/search/queryTreeBuilders.js +3 -2
- package/src/search/searchDispatch.js +14 -5
- package/src/search/searchElementUtils.js +98 -10
- package/src/search/searchUtils.js +440 -12
- package/src/search/subTypes/blobHTMLSearchType.js +186 -10
- package/src/search/subTypes/recordSearchType.js +30 -4
- package/src/search/subTypes/tupleSearchType.js +43 -5
- package/src/search/superTypes/SpecialRealNumberSearchType.js +15 -3
- package/src/search/superTypes/buffersourceSearchType.js +14 -3
- package/src/search/unions/unionFamilySearchType.js +45 -3
- package/src/utils/json6Stringify.js +50 -0
- package/src/utils/rawTypesonEditor.js +1 -51
- package/vendor/zod/classic/schemas.d.ts +3 -1
- package/vendor/zod/core/versions.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arraySearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/arraySearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"arraySearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/arraySearchType.js"],"names":[],"mappings":";+BAaa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;;;;;;;;GAiBG;AACH,+BAFU,gBAAgB,CA+ExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigintSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/bigintSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"bigintSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/bigintSearchType.js"],"names":[],"mappings":";+BAQa,OAAO,sBAAsB,EAAE,gBAAgB;AAoB5D;;;;;GAKG;AACH,gCAFU,gBAAgB,CA4CxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blobSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/blobSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"blobSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/blobSearchType.js"],"names":[],"mappings":";+BAOa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH,8BAFU,gBAAgB,CAqCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booleanSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/booleanSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"booleanSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/booleanSearchType.js"],"names":[],"mappings":";+BAOa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;GAGG;AACH,iCAFU,gBAAgB,CAqCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catchSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/catchSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"catchSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/catchSearchType.js"],"names":[],"mappings":";+BASa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,+BAFU,gBAAgB,CAoDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/dateSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"dateSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/dateSearchType.js"],"names":[],"mappings":";+BASa,OAAO,sBAAsB,EAAE,gBAAgB;AA6F5D;;;;;;;;;;GAUG;AACH,8BAFU,gBAAgB,CA2FxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domexceptionSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/domexceptionSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"domexceptionSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/domexceptionSearchType.js"],"names":[],"mappings":";+BAYa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;;GAWG;AACH,sCAFU,gBAAgB,CA4DxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enumSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/enumSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"enumSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/enumSearchType.js"],"names":[],"mappings":";+BAOa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAFU,gBAAgB,CA4CxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/fileSearchType.js"],"names":[],"mappings":";+BAUa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAFU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"fileSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/fileSearchType.js"],"names":[],"mappings":";+BAUa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAFU,gBAAgB,CA0DxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filelistSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/filelistSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"filelistSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/filelistSearchType.js"],"names":[],"mappings":";+BAaa,OAAO,sBAAsB,EAAE,gBAAgB;mCAI/C;IACR,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,yBAAyB,EAAE,WAAW,CAAC;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAaJ;;;;;;;;;;;;;GAaG;AACH,kCAFU,gBAAgB,CAyExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/functionSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"functionSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/functionSearchType.js"],"names":[],"mappings":";+BAYa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;;;;GAaG;AACH,kCAFU,gBAAgB,CAyFxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/mapSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"mapSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/mapSearchType.js"],"names":[],"mappings":";+BAca,OAAO,sBAAsB,EAAE,gBAAgB;AAc5D;;;;;;;;;;;;;;;;;GAiBG;AACH,6BAFU,gBAAgB,CAkGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numberSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/numberSearchType.js"],"names":[],"mappings":";+BAQa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;GAGG;AACH,gCAFU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"numberSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/numberSearchType.js"],"names":[],"mappings":";+BAQa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;GAGG;AACH,gCAFU,gBAAgB,CAuDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/objectSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"objectSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/objectSearchType.js"],"names":[],"mappings":";+BAgBa,OAAO,sBAAsB,EAAE,gBAAgB;AA8O5D;;;;;;;;;;;;;;;;GAgBG;AACH,gCAFU,gBAAgB,CAwLxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promiseSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/promiseSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"promiseSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/promiseSearchType.js"],"names":[],"mappings":";+BASa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH,iCAFU,gBAAgB,CAoDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexpSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/regexpSearchType.js"],"names":[],"mappings":";+BASa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH,gCAFU,gBAAgB,
|
|
1
|
+
{"version":3,"file":"regexpSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/regexpSearchType.js"],"names":[],"mappings":";+BASa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH,gCAFU,gBAAgB,CAkExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/setSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"setSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/setSearchType.js"],"names":[],"mappings":";+BAaa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;GAUG;AACH,6BAFU,gBAAgB,CAyExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/stringSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"stringSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/stringSearchType.js"],"names":[],"mappings":";+BAOa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;;GAaG;AACH,gCAFU,gBAAgB,CAyCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbolSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/symbolSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"symbolSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/symbolSearchType.js"],"names":[],"mappings":";+BAOa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;GAQG;AACH,gCAFU,gBAAgB,CAqCxB"}
|
package/dist/search/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* @typedef {{
|
|
3
3
|
* container: HTMLFormElement,
|
|
4
4
|
* $getQuery: () => import('./queryTree.js').QueryAnd,
|
|
5
|
+
* $applyQuery: (queryDoc: import('./queryTree.js').QueryAnd) => void,
|
|
5
6
|
* whenReady: Promise<void>
|
|
6
7
|
* }} SearchChoicesControl
|
|
7
8
|
*/
|
|
@@ -65,6 +66,7 @@ export function buildSearchChoices({ schemaContent, typeNamespace, topRoot, type
|
|
|
65
66
|
export type SearchChoicesControl = {
|
|
66
67
|
container: HTMLFormElement;
|
|
67
68
|
$getQuery: () => import("./queryTree.js").QueryAnd;
|
|
69
|
+
$applyQuery: (queryDoc: import("./queryTree.js").QueryAnd) => void;
|
|
68
70
|
whenReady: Promise<void>;
|
|
69
71
|
};
|
|
70
72
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search/index.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search/index.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,qFARW;IACN,aAAa,EAAE,OAAO,sBAAsB,EAAE,WAAW,CAAC;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,aAAa,EAAE,WAAW,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,aAAa,EAAE,OAAO,CAAA;CACtC,GACS,oBAAoB,CAwDhC;mCAjHY;IACR,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,MAAM,OAAO,gBAAgB,EAAE,QAAQ,CAAC;IACnD,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,gBAAgB,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;CACzB"}
|
|
@@ -127,12 +127,15 @@ export type QueryTypeOfLeaf = {
|
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
129
|
* XPath/CSS-selector/full-text/raw-HTML-regex; no Mongo equivalent.
|
|
130
|
+
* `$options`, mirroring `QueryRegexLeaf`'s field of the same name, is only
|
|
131
|
+
* ever populated for `mode: 'rawHTMLRegex'`.
|
|
130
132
|
*/
|
|
131
133
|
export type QueryBlobHTMLLeaf = {
|
|
132
134
|
kind: "blobHTML";
|
|
133
135
|
path: string;
|
|
134
136
|
mode: "xpath" | "cssSelector" | "fullText" | "rawHTMLRegex";
|
|
135
137
|
value: string;
|
|
138
|
+
$options?: string;
|
|
136
139
|
};
|
|
137
140
|
/**
|
|
138
141
|
* Per-dimension ranges for DOMRect/Point/Matrix, each dimension itself a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryTree.d.ts","sourceRoot":"","sources":["../../src/search/queryTree.js"],"names":[],"mappings":"uBA2Ca;IAAC,IAAI,EAAE,SAAS,EAAE,CAAA;CAAC;sBAInB;IAAC,GAAG,EAAE,SAAS,EAAE,CAAA;CAAC;;;;mCAKlB;IAAC,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAC;;;;;;kCAOrD;IACR,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACzD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;;;;;;;;6BASS;IACR,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,QAAQ,GAAC,cAAc,GAAC,QAAQ,GAAC,MAAM,GAAC,cAAc,CAAC;IAClE,GAAG,CAAC,EAAE,MAAM,GAAC,MAAM,GAAC,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAC,MAAM,GAAC,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAC,MAAM,GAAC,MAAM,CAAC;IAC3B,IAAI,CA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AC;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,CAAC,GAAC,CAAC,CAAA;CACrB;;;;sCAKS;IACR,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,EAAE,OAAO,CAAA;CACf;;;;;;mCAOS;IACR,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;;;;gCAKS;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAC;;;;;;qCAOlD;IACR,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAA;CACf;wBAIS,oBAAoB,GAAC,mBAAmB,GAAC,cAAc,GAC/D,YAAY,GAAC,qBAAqB,GAAC,uBAAuB,GAC1D,mBAAmB,GAAC,cAAc,GAClC,oBAAoB,GAAC,oBAAoB,GAAC,qBAAqB,GAC/D,eAAe,GAAC,iBAAiB,GAAC,iBAAiB,GACnD,uBAAuB,GAAC,oBAAoB,GAAC,iBAAiB,GAC9D,sBAAsB;wBAKd,QAAQ,GAAC,OAAO,GAAC,SAAS"}
|
|
@@ -130,9 +130,10 @@ export function makeTypeOfLeaf(path: string, searchType: string, discriminatorVa
|
|
|
130
130
|
* @param {string} path
|
|
131
131
|
* @param {import('./queryTree.js').QueryBlobHTMLLeaf['mode']} mode
|
|
132
132
|
* @param {string} value
|
|
133
|
+
* @param {string} [$options]
|
|
133
134
|
* @returns {import('./queryTree.js').QueryBlobHTMLLeaf}
|
|
134
135
|
*/
|
|
135
|
-
export function makeBlobHTMLLeaf(path: string, mode: import("./queryTree.js").QueryBlobHTMLLeaf["mode"], value: string): import("./queryTree.js").QueryBlobHTMLLeaf;
|
|
136
|
+
export function makeBlobHTMLLeaf(path: string, mode: import("./queryTree.js").QueryBlobHTMLLeaf["mode"], value: string, $options?: string): import("./queryTree.js").QueryBlobHTMLLeaf;
|
|
136
137
|
/**
|
|
137
138
|
* @param {string} path
|
|
138
139
|
* @param {{[dimension: string]: import('./queryTree.js').QueryRangeLeaf}} dimensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryTreeBuilders.d.ts","sourceRoot":"","sources":["../../src/search/queryTreeBuilders.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,mCAHW,OAAO,gBAAgB,EAAE,SAAS,EAAE,GAClC,OAAO,gBAAgB,EAAE,QAAQ,CAI7C;AAED;;;;;;;;;;GAUG;AACH,kCAHW,CAAC,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,CAAC,EAAE,GAC9C,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,CAaxD;AAED;;;GAGG;AACH,kCAHW,OAAO,gBAAgB,EAAE,SAAS,EAAE,GAClC,OAAO,gBAAgB,EAAE,OAAO,CAI5C;AAED;;;;GAIG;AACH,0CAJW,MAAM,WACN,OAAO,GACL,OAAO,gBAAgB,EAAE,oBAAoB,CAIzD;AAED;;;;;;;;GAQG;AACH,yCARW,MAAM,QACN;IACN,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACzD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,GACS,OAAO,gBAAgB,EAAE,mBAAmB,CAIxD;AAED;;;;;;;;GAQG;AACH,oCARW,MAAM,aACN,OAAO,gBAAgB,EAAE,cAAc,CAAC,WAAW,CAAC,QACpD;IACN,GAAG,CAAC,EAAE,MAAM,GAAC,M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,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,CAAC,GAAC,CAAC,CAAA;CAAC,GAC7C,OAAO,gBAAgB,EAAE,iBAAiB,CAItD;AAED;;;;;;GAMG;AACH,6CANW,MAAM,SACN,OAAO,aACP,OAAO,gBAAgB,EAAE,SAAS,eAClC,OAAO,gBAAgB,EAAE,SAAS,GAChC,OAAO,gBAAgB,EAAE,uBAAuB,CAU5D;AAED;;;;GAIG;AACH,0CAJW,MAAM,UACN,OAAO,gBAAgB,EAAE,SAAS,GAChC,OAAO,gBAAgB,EAAE,oBAAoB,CAIzD;AAED;;;;GAIG;AACH,uCAJW,MAAM,WACN,OAAO,GACL,OAAO,gBAAgB,EAAE,iBAAiB,CAItD;AAED;;;;GAIG;AACH,4CAJW,MAAM,SACN,OAAO,GACL,OAAO,gBAAgB,EAAE,sBAAsB,CAI3D"}
|
|
@@ -59,9 +59,12 @@ export function buildSearchWidget({ schemaObject, path, typeNamespace, topRoot,
|
|
|
59
59
|
}): import("../types.js").JamilihArray;
|
|
60
60
|
export type QueryNode = import("./queryTree.js").QueryNode;
|
|
61
61
|
/**
|
|
62
|
-
* The search-side analogue of `TypeObject` (`src/types.js:308-408`):
|
|
63
|
-
* methods, `buildUI` (a `jml` array)
|
|
64
|
-
*
|
|
62
|
+
* The search-side analogue of `TypeObject` (`src/types.js:308-408`): three
|
|
63
|
+
* methods, `buildUI` (a `jml` array), `getQuery` (reads the built DOM back
|
|
64
|
+
* into a `QueryNode`, or `undefined` when no constraint was entered), and
|
|
65
|
+
* `applyQuery` (the inverse - drives the built DOM back into the state a
|
|
66
|
+
* previously-read, or hand-edited, `QueryNode` describes, for the "Edit raw"
|
|
67
|
+
* round-trip, `SearchChoicesControl.$applyQuery`, `src/search/index.js`).
|
|
65
68
|
*/
|
|
66
69
|
export type SearchTypeObject = {
|
|
67
70
|
buildUI: (cfg: {
|
|
@@ -76,6 +79,11 @@ export type SearchTypeObject = {
|
|
|
76
79
|
root: HTMLElement;
|
|
77
80
|
path: string;
|
|
78
81
|
}) => QueryNode | undefined;
|
|
82
|
+
applyQuery: (cfg: {
|
|
83
|
+
root: HTMLElement;
|
|
84
|
+
path: string;
|
|
85
|
+
queryNode: QueryNode | undefined;
|
|
86
|
+
}) => void;
|
|
79
87
|
};
|
|
80
88
|
/**
|
|
81
89
|
* `Record<string, SearchTypeObject>` registry, analogous to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchDispatch.d.ts","sourceRoot":"","sources":["../../src/search/searchDispatch.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"searchDispatch.d.ts","sourceRoot":"","sources":["../../src/search/searchDispatch.js"],"names":[],"mappings":"AA8KA;;;;;;;;;;;;;;;;;GAiBG;AACH,kDAHW,OAAO,sBAAsB,EAAE,WAAW,GACxC,MAAM,CA+BlB;AAED;;;;;;;;;GASG;AACH,kDAHW,OAAO,sBAAsB,EAAE,WAAW,GACxC,gBAAgB,CAK5B;AA2BD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,uGAVW;IACN,YAAY,EAAE,OAAO,sBAAsB,EAAE,WAAW,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,aAAa,EAAE,WAAW,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,sBAAsB,EAAE,WAAW,CAAA;CAC1D,GACS,OAAO,aAAa,EAAE,YAAY,CAe9C;wBAlQY,OAAO,gBAAgB,EAAE,SAAS;;;;;;;;;+BAUlC;IACR,OAAO,EAAE,CAAC,GAAG,EAAE;QACb,YAAY,EAAE,OAAO,sBAAsB,EAAE,WAAW,CAAC;QACzD,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,OAAO,CAAC,EAAE,OAAO,aAAa,EAAE,WAAW,CAAC;QAC5C,KAAK,CAAC,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;QACtC,YAAY,CAAC,EAAE,OAAO,sBAAsB,EAAE,WAAW,CAAA;KAC1D,KAAK,OAAO,aAAa,EAAE,YAAY,CAAC;IACzC,QAAQ,EAAE,CAAC,GAAG,EAAE;QACd,IAAI,EAAE,WAAW,CAAC;QAClB,IAAI,EAAE,MAAM,CAAA;KACb,KAAK,SAAS,GAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,CAAC,GAAG,EAAE;QAChB,IAAI,EAAE,WAAW,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,SAAS,GAAC,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX;AA0BJ;;;;;;;;;;;;;;;;;GAiBG;AACH,mCAFU;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAAC,CA+DzC;AAtFF;;;;GAIG;AACH,oCAFU,gBAAgB,CAEkC;AAmJ5D;;;;;;;;;;;;GAYG;AACH,kDAJW,OAAO,sBAAsB,EAAE,WAAW,gBAC1C,OAAO,sBAAsB,EAAE,WAAW,GACxC,OAAO,sBAAsB,EAAE,WAAW,CAYtD"}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
export function findSearchElement(root: ParentNode, path: string): HTMLElement | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* @typedef {HTMLElement & {
|
|
14
|
-
* getQuery: () => import('./queryTree.js').QueryNode|undefined
|
|
14
|
+
* getQuery: () => import('./queryTree.js').QueryNode|undefined,
|
|
15
|
+
* applyQuery?: (queryNode: import('./queryTree.js').QueryNode|undefined) => void
|
|
15
16
|
* }} SearchElement
|
|
16
17
|
*/
|
|
17
18
|
/**
|
|
@@ -25,6 +26,22 @@ export function getQueryViaElement({ root, path }: {
|
|
|
25
26
|
root: HTMLElement;
|
|
26
27
|
path: string;
|
|
27
28
|
}): import("./queryTree.js").QueryNode | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The `SearchTypeObject.applyQuery` every module implements identically -
|
|
31
|
+
* the "Edit raw" round-trip's counterpart to `getQueryViaElement`: locate
|
|
32
|
+
* the element built under `root` and delegate to its own `applyQuery(...)`
|
|
33
|
+
* method.
|
|
34
|
+
* @param {{
|
|
35
|
+
* root: HTMLElement, path: string,
|
|
36
|
+
* queryNode: import('./queryTree.js').QueryNode|undefined
|
|
37
|
+
* }} cfg
|
|
38
|
+
* @returns {void}
|
|
39
|
+
*/
|
|
40
|
+
export function applyQueryViaElement({ root, path, queryNode }: {
|
|
41
|
+
root: HTMLElement;
|
|
42
|
+
path: string;
|
|
43
|
+
queryNode: import("./queryTree.js").QueryNode | undefined;
|
|
44
|
+
}): void;
|
|
28
45
|
/**
|
|
29
46
|
* Type-predicate guard distinguishing a built search element (leaf or
|
|
30
47
|
* container, either answers to `.getQuery()`) from a plain DOM node - used
|
|
@@ -36,6 +53,18 @@ export function getQueryViaElement({ root, path }: {
|
|
|
36
53
|
* @returns {el is SearchElement}
|
|
37
54
|
*/
|
|
38
55
|
export function hasGetQuery(el: Element): el is SearchElement;
|
|
56
|
+
/**
|
|
57
|
+
* Same as `hasGetQuery`, for `applyQuery` - a container walking its own
|
|
58
|
+
* children to recurse an "Edit raw" apply into each needs to know which
|
|
59
|
+
* ones answer to it, same reasoning as `hasGetQuery`'s own doc.
|
|
60
|
+
* @param {Element} el
|
|
61
|
+
* @returns {el is SearchElement & {applyQuery: (
|
|
62
|
+
* queryNode: import('./queryTree.js').QueryNode|undefined
|
|
63
|
+
* ) => void}}
|
|
64
|
+
*/
|
|
65
|
+
export function hasApplyQuery(el: Element): el is SearchElement & {
|
|
66
|
+
applyQuery: (queryNode: import("./queryTree.js").QueryNode | undefined) => void;
|
|
67
|
+
};
|
|
39
68
|
/**
|
|
40
69
|
* Factory for the README's "no variants to allow for distinct search"
|
|
41
70
|
* leaves (`undefined`/`void`, `null`, `NaN`): the only meaningful question
|
|
@@ -102,5 +131,6 @@ export function makeDomShapeSearchType({ tagName, dimensionKeys, includeReadonly
|
|
|
102
131
|
}): import("./searchDispatch.js").SearchTypeObject;
|
|
103
132
|
export type SearchElement = HTMLElement & {
|
|
104
133
|
getQuery: () => import("./queryTree.js").QueryNode | undefined;
|
|
134
|
+
applyQuery?: (queryNode: import("./queryTree.js").QueryNode | undefined) => void;
|
|
105
135
|
};
|
|
106
136
|
//# sourceMappingURL=searchElementUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchElementUtils.d.ts","sourceRoot":"","sources":["../../src/search/searchElementUtils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"searchElementUtils.d.ts","sourceRoot":"","sources":["../../src/search/searchElementUtils.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH,wCAJW,UAAU,QACV,MAAM,GACJ,WAAW,GAAC,SAAS,CAMjC;AAED;;;;;GAKG;AAEH;;;;;;GAMG;AACH,mDAHW;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAC/B,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,CAOxD;AAED;;;;;;;;;;GAUG;AACH,gEANW;IACN,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,CAAA;CACxD,GACS,IAAI,CAOhB;AAED;;;;;;;;;GASG;AACH,gCAHW,OAAO,GACL,EAAE,IAAI,aAAa,CAK/B;AAED;;;;;;;;GAQG;AACH,kCALW,OAAO,GACL,EAAE,IAAI,aAAa,GAAG;IAAC,UAAU,EAAE,CAC3C,SAAS,EAAE,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,KACpD,IAAI,CAAA;CAAC,CAKZ;AAED;;;;;;;;;;;;;GAaG;AACH,wDAHW;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,GACf,OAAO,qBAAqB,EAAE,gBAAgB,CAgC1D;AAsDD;;;;;;;;;;;;;;;;;GAiBG;AACH,uDAHW;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,GACf,OAAO,qBAAqB,EAAE,gBAAgB,CA+D1D;AAyDD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,2GARW;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,GACS,OAAO,qBAAqB,EAAE,gBAAgB,CA+G1D;4BA9aY,WAAW,GAAG;IACtB,QAAQ,EAAE,MAAM,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,CAAC;IAC7D,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,gBAAgB,EAAE,SAAS,GAAC,SAAS,KAAK,IAAI,CAAA;CAC/E"}
|
|
@@ -323,16 +323,23 @@ export function readCheckbox(el: HTMLElement): boolean;
|
|
|
323
323
|
* "Matches regex" is the chosen mode.
|
|
324
324
|
*
|
|
325
325
|
* `flagOptions`, when given, adds a Flags multi-select (options passed in
|
|
326
|
-
* by the caller -
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
* (
|
|
334
|
-
*
|
|
335
|
-
*
|
|
326
|
+
* by the caller - most callers pass `regexpType.js`'s own `allowedFlags`,
|
|
327
|
+
* the same list `regexpSearchType.js` uses for the actual regexp's own
|
|
328
|
+
* flags - kept out of this generic module to avoid it depending on a
|
|
329
|
+
* specific fundamental type), shown only while "Matches regex" is the
|
|
330
|
+
* chosen mode, the same `$options` a Mongo-flavored `$regex` accepts
|
|
331
|
+
* alongside it - a plain literal/substring match has no regex to apply
|
|
332
|
+
* flags to, so it stays hidden otherwise. `regexpSearchType.js`'s own call
|
|
333
|
+
* (matching against the regexp's `.source` text, not to be confused with
|
|
334
|
+
* its separate, bespoke Flags control for the regexp's *actual* flags)
|
|
335
|
+
* leaves this unset, since a flag there would have no real regex of its own
|
|
336
|
+
* to apply to.
|
|
337
|
+
*
|
|
338
|
+
* While "Matches regex" is chosen, the Value input is also live syntax-
|
|
339
|
+
* checked (`syncLiteralRegexValidity`, below) against
|
|
340
|
+
* `new RegExp(value, flags)` - an unparsable pattern (or one only invalid
|
|
341
|
+
* for the currently-selected flags, e.g. `u`/`v`'s stricter escape rules)
|
|
342
|
+
* sets a custom validity message rather than silently accepting it.
|
|
336
343
|
* @param {{
|
|
337
344
|
* name: string, key?: string, onModeChange?: (this: HTMLElement) => void,
|
|
338
345
|
* flagOptions?: string[]
|
|
@@ -546,5 +553,185 @@ export function resyncAtLeastOne(root: Element): void;
|
|
|
546
553
|
* @returns {void}
|
|
547
554
|
*/
|
|
548
555
|
export function setDescendantsRequired(root: Element, required: boolean): void;
|
|
556
|
+
/**
|
|
557
|
+
* @typedef {import('./queryTree.js').QueryNode} QueryNode
|
|
558
|
+
*/
|
|
559
|
+
/**
|
|
560
|
+
* The "Edit raw" round-trip (`SearchChoicesControl.$applyQuery`,
|
|
561
|
+
* `src/search/index.js`) needs the inverse of every `getQuery`: given a
|
|
562
|
+
* previously-serialized (or hand-edited) `QueryNode`, drive the same DOM
|
|
563
|
+
* controls `getQuery` reads back into that state, so the two stay in sync.
|
|
564
|
+
* `unwrapAndClauses`/`nodeTouchesPath`/`extractLeafOfKind`/
|
|
565
|
+
* `extractClauseForPath` below are the shared groundwork every
|
|
566
|
+
* `applyQuery` implementation builds on to undo `combineAnd`'s own
|
|
567
|
+
* flattening; the `apply*` functions below those are the direct inverse of
|
|
568
|
+
* one `build*`/`read*` pair each.
|
|
569
|
+
*
|
|
570
|
+
* A plain leaf becomes a one-element array; `undefined` (no constraint)
|
|
571
|
+
* becomes `[]`; an `$and` node's own `.$and` array is returned as-is (not
|
|
572
|
+
* further flattened - a nested `$and` stays a single clause, so
|
|
573
|
+
* `nodeTouchesPath` below is what actually looks inside one).
|
|
574
|
+
* @param {QueryNode|undefined} queryNode
|
|
575
|
+
* @returns {QueryNode[]}
|
|
576
|
+
*/
|
|
577
|
+
export function unwrapAndClauses(queryNode: QueryNode | undefined): QueryNode[];
|
|
578
|
+
/**
|
|
579
|
+
* Whether any leaf reachable from `node` (recursing through `$and`/`$or`
|
|
580
|
+
* combinators and a `not`/`passThrough` leaf's own wrapped `query`) targets
|
|
581
|
+
* `path` itself or somewhere nested under it - used to decide which of a
|
|
582
|
+
* container widget's several recursed children (`tupleSearchType.js`'s
|
|
583
|
+
* positions/rest, `functionSearchType.js`'s args/output,
|
|
584
|
+
* `objectSearchType.js`'s properties, `unionFamilySearchType.js`'s chosen
|
|
585
|
+
* branch) a given top-level clause belongs to, since a recursed child's own
|
|
586
|
+
* `getQuery()` result is threaded through untouched (whatever shape it is)
|
|
587
|
+
* rather than re-wrapped with the parent's path.
|
|
588
|
+
* @param {QueryNode|undefined} node
|
|
589
|
+
* @param {string} path
|
|
590
|
+
* @returns {boolean}
|
|
591
|
+
*/
|
|
592
|
+
export function nodeTouchesPath(node: QueryNode | undefined, path: string): boolean;
|
|
593
|
+
/**
|
|
594
|
+
* Pulls the (at most one) top-level clause of `queryNode` whose own `kind`
|
|
595
|
+
* matches out of the `$and` it's combined into, leaving the rest re-combined
|
|
596
|
+
* - the inverse half of `combineAnd([ownLeaf, ...])`. Safe to use for any
|
|
597
|
+
* facet whose own leaf kind is unique within its widget (every `kind` this
|
|
598
|
+
* module's callers pass is exactly that: `lengthSize`, `hasProperty`,
|
|
599
|
+
* `mapRecordJoint`, `typeOf`), since a recursed child's own (arbitrarily
|
|
600
|
+
* nested) contribution never surfaces as a *bare* top-level leaf sharing the
|
|
601
|
+
* parent's own facet kind.
|
|
602
|
+
* `kind`'s own type parameter narrows `matched`'s type to exactly the leaf
|
|
603
|
+
* shape that `kind` names (`Extract<QueryLeaf, {kind: K}>`), so a call like
|
|
604
|
+
* `extractLeafOfKind(queryNode, 'range')` gives back a properly-typed
|
|
605
|
+
* `QueryRangeLeaf|undefined` with no cast needed at the call site.
|
|
606
|
+
* @template {import('./queryTree.js').QueryLeaf['kind']} K
|
|
607
|
+
* @param {QueryNode|undefined} queryNode
|
|
608
|
+
* @param {K} kind
|
|
609
|
+
* @returns {{
|
|
610
|
+
* matched: Extract<import('./queryTree.js').QueryLeaf, {kind: K}>|undefined,
|
|
611
|
+
* rest: QueryNode|undefined
|
|
612
|
+
* }}
|
|
613
|
+
*/
|
|
614
|
+
export function extractLeafOfKind<K extends import("./queryTree.js").QueryLeaf["kind"]>(queryNode: QueryNode | undefined, kind: K): {
|
|
615
|
+
matched: Extract<import("./queryTree.js").QueryLeaf, {
|
|
616
|
+
kind: K;
|
|
617
|
+
}> | undefined;
|
|
618
|
+
rest: QueryNode | undefined;
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* Pulls the (at most one) top-level clause of `queryNode` that
|
|
622
|
+
* `nodeTouchesPath` says belongs to `path` out of the `$and` it's combined
|
|
623
|
+
* into, leaving the rest re-combined - the path-based counterpart of
|
|
624
|
+
* `extractLeafOfKind`, for a recursed child's own contribution (whose shape
|
|
625
|
+
* isn't a single known leaf `kind`, unlike a container's own facets).
|
|
626
|
+
* @param {QueryNode|undefined} queryNode
|
|
627
|
+
* @param {string} path
|
|
628
|
+
* @returns {{matched: QueryNode|undefined, rest: QueryNode|undefined}}
|
|
629
|
+
*/
|
|
630
|
+
export function extractClauseForPath(queryNode: QueryNode | undefined, path: string): {
|
|
631
|
+
matched: QueryNode | undefined;
|
|
632
|
+
rest: QueryNode | undefined;
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* The inverse of `readLiteralRegexQuery` - sets `buildLiteralRegexControls`'s
|
|
636
|
+
* Mode/Value/Flags back from a previously-read leaf (or resets to defaults
|
|
637
|
+
* for `undefined`, meaning the facet no longer has a constraint at all).
|
|
638
|
+
* Dispatches `change` on the Mode select (so its own `handleModeChange`
|
|
639
|
+
* shows/hides the Flags control and re-validates) and `input` on the Value
|
|
640
|
+
* input (so `syncLiteralRegexValidity` re-runs), the same events a real user
|
|
641
|
+
* interacting with these controls would fire.
|
|
642
|
+
* @param {Element} el
|
|
643
|
+
* @param {import('./queryTree.js').QueryLiteralSetLeaf|
|
|
644
|
+
* import('./queryTree.js').QueryRegexLeaf|
|
|
645
|
+
* import('./queryTree.js').QueryNotContainsLeaf|undefined} leaf
|
|
646
|
+
* @param {string} [key]
|
|
647
|
+
* @returns {void}
|
|
648
|
+
*/
|
|
649
|
+
export function applyLiteralRegexQuery(el: Element, leaf: import("./queryTree.js").QueryLiteralSetLeaf | import("./queryTree.js").QueryRegexLeaf | import("./queryTree.js").QueryNotContainsLeaf | undefined, key?: string): void;
|
|
650
|
+
/**
|
|
651
|
+
* The inverse of `readRangeInputsPair` - sets the From/To inputs back from a
|
|
652
|
+
* previously-read `range` leaf (or clears both for `undefined`). An
|
|
653
|
+
* exclusive `$gt`/`$lt` bound (never produced by any `getQuery` in this
|
|
654
|
+
* codebase, but tolerated on a hand-edited raw query) is treated the same as
|
|
655
|
+
* its inclusive `$gte`/`$lte` counterpart, since the UI has only one plain
|
|
656
|
+
* bound per side, not a separate inclusive/exclusive toggle.
|
|
657
|
+
* @param {Element} el
|
|
658
|
+
* @param {import('./queryTree.js').QueryRangeLeaf|undefined} leaf
|
|
659
|
+
* @param {string} [key]
|
|
660
|
+
* @returns {void}
|
|
661
|
+
*/
|
|
662
|
+
export function applyRangeQuery(el: Element, leaf: import("./queryTree.js").QueryRangeLeaf | undefined, key?: string): void;
|
|
663
|
+
/**
|
|
664
|
+
* The inverse of `readTriStateSelect`/`buildHasPropertyToggle` - `undefined`
|
|
665
|
+
* maps back to "(any)".
|
|
666
|
+
* @param {Element} el
|
|
667
|
+
* @param {boolean|undefined} value
|
|
668
|
+
* @param {string} [key]
|
|
669
|
+
* @returns {void}
|
|
670
|
+
*/
|
|
671
|
+
export function applyTriState(el: Element, value: boolean | undefined, key?: string): void;
|
|
672
|
+
/**
|
|
673
|
+
* The inverse of `readCheckbox`.
|
|
674
|
+
* @param {Element} el
|
|
675
|
+
* @param {boolean} checked
|
|
676
|
+
* @returns {void}
|
|
677
|
+
*/
|
|
678
|
+
export function applyCheckbox(el: Element, checked: boolean): void;
|
|
679
|
+
/**
|
|
680
|
+
* The inverse of `readMultiSelect` - `values` is compared against each
|
|
681
|
+
* `<option>`'s own `value` as a string (`String(item)`), matching how
|
|
682
|
+
* `enumSearchType.js`/`SpecialRealNumberSearchType.js` build their own
|
|
683
|
+
* options from stringified values.
|
|
684
|
+
* @param {Element} el
|
|
685
|
+
* @param {unknown[]} values
|
|
686
|
+
* @returns {void}
|
|
687
|
+
*/
|
|
688
|
+
export function applyMultiSelect(el: Element, values: unknown[]): void;
|
|
689
|
+
/**
|
|
690
|
+
* The inverse of `readLengthSizeQuery` - clears both the size input and the
|
|
691
|
+
* sparse tri-state for `undefined`.
|
|
692
|
+
* @param {Element} el
|
|
693
|
+
* @param {import('./queryTree.js').QueryLengthSizeLeaf|undefined} leaf
|
|
694
|
+
* @returns {void}
|
|
695
|
+
*/
|
|
696
|
+
export function applyLengthSizeQuery(el: Element, leaf: import("./queryTree.js").QueryLengthSizeLeaf | undefined): void;
|
|
697
|
+
/**
|
|
698
|
+
* The inverse of `readOptInChecked` - also dispatches `change` so
|
|
699
|
+
* `wireOptInFieldset`'s own listener toggles the paired fieldset's
|
|
700
|
+
* `disabled` state and runs whatever `onToggle` it was wired with (e.g. a
|
|
701
|
+
* widget's own `syncAtLeastOneCheck` re-run).
|
|
702
|
+
* @param {Element} el
|
|
703
|
+
* @param {boolean} checked
|
|
704
|
+
* @param {string} [key]
|
|
705
|
+
* @returns {void}
|
|
706
|
+
*/
|
|
707
|
+
export function applyOptIn(el: Element, checked: boolean, key?: string): void;
|
|
708
|
+
/**
|
|
709
|
+
* A `buildOptInFieldset`-wrapped `buildLiteralRegexControls` facet
|
|
710
|
+
* (`fileSearchType.js`'s name/content-type, `domexceptionSearchType.js`'s
|
|
711
|
+
* message, `makeErrorFamilySearchType`'s string properties): opts the facet
|
|
712
|
+
* in exactly when `queryNode` has a clause touching `path`, and applies that
|
|
713
|
+
* clause (a bare literal/regex/does-not-contain leaf, since none of these
|
|
714
|
+
* facets recurse any deeper) to its Mode/Value/Flags controls.
|
|
715
|
+
* @param {Element} root
|
|
716
|
+
* @param {QueryNode|undefined} queryNode
|
|
717
|
+
* @param {string} path
|
|
718
|
+
* @param {string} [key]
|
|
719
|
+
* @returns {void}
|
|
720
|
+
*/
|
|
721
|
+
export function applyOptInLiteralRegexFacet(root: Element, queryNode: QueryNode | undefined, path: string, key?: string): void;
|
|
722
|
+
/**
|
|
723
|
+
* A `buildOptInFieldset`-wrapped `buildRangeInputsPair` facet
|
|
724
|
+
* (`makeErrorFamilySearchType`'s number properties,
|
|
725
|
+
* `makeDomShapeSearchType`'s dimensions): opts the facet in exactly when
|
|
726
|
+
* `queryNode` has a clause touching `path`, and applies that clause (a bare
|
|
727
|
+
* `range` leaf) to its From/To controls.
|
|
728
|
+
* @param {Element} root
|
|
729
|
+
* @param {QueryNode|undefined} queryNode
|
|
730
|
+
* @param {string} path
|
|
731
|
+
* @param {string} [key]
|
|
732
|
+
* @returns {void}
|
|
733
|
+
*/
|
|
734
|
+
export function applyOptInRangeFacet(root: Element, queryNode: QueryNode | undefined, path: string, key?: string): void;
|
|
549
735
|
export type JamilihArray = import("../types.js").JamilihArray;
|
|
736
|
+
export type QueryNode = import("./queryTree.js").QueryNode;
|
|
550
737
|
//# sourceMappingURL=searchUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchUtils.d.ts","sourceRoot":"","sources":["../../src/search/searchUtils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"searchUtils.d.ts","sourceRoot":"","sources":["../../src/search/searchUtils.js"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;;;;;GASG;AACH,6CAJW,OAAO,sBAAsB,EAAE,WA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AO,aACP,SAAS,GAAC,SAAS,QACnB,MAAM,QACN,MAAM,GACJ,IAAI,CAQhB;2BArvCY,OAAO,aAAa,EAAE,YAAY;wBAy4BlC,OAAO,gBAAgB,EAAE,SAAS"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export default blobHTMLSearchType;
|
|
2
2
|
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
-
/**
|
|
4
|
-
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
-
*/
|
|
6
3
|
/**
|
|
7
4
|
* Blob HTML: XPath, CSS selectors, full text search, regex search of raw
|
|
8
5
|
* HTML (README) - a mode `<select>` plus one value control, the same
|
|
@@ -18,7 +15,8 @@ export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
|
18
15
|
* of the pair is ever `required` (toggled alongside `hidden` by the mode
|
|
19
16
|
* `change` handler): a `required` field that's merely hidden, rather than
|
|
20
17
|
* also un-required, still blocks the form's validity even though the user
|
|
21
|
-
* has no way to see or fill it.
|
|
18
|
+
* has no way to see or fill it. "CSS selector" is listed ahead of "XPath"
|
|
19
|
+
* (and is the default mode) as the option most jsoe users will recognize.
|
|
22
20
|
*
|
|
23
21
|
* The `change` handler also checks `isExemptedByAncestorHasProperty` before
|
|
24
22
|
* (re-)asserting `required` on the now-visible control: nested as an
|
|
@@ -30,6 +28,15 @@ export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
|
30
28
|
* check, that synthetic event would immediately reassert `required` on
|
|
31
29
|
* whichever control the current mode makes visible, undoing the exemption
|
|
32
30
|
* `setDescendantsRequired` had just granted.
|
|
31
|
+
*
|
|
32
|
+
* "Regex search of raw HTML" gets its own Flags multi-select (the same
|
|
33
|
+
* `regexpType.js` `allowedFlags` list `stringSearchType.js`'s literal/regex
|
|
34
|
+
* control passes as `buildLiteralRegexControls`'s `flagOptions`), shown only
|
|
35
|
+
* while that mode is chosen, folded into the `blobHTML` leaf's own
|
|
36
|
+
* `$options` (mirroring `QueryRegexLeaf`'s field of the same name) - and,
|
|
37
|
+
* via `syncBlobHTMLValueValidity`, included when syntax-checking the Value
|
|
38
|
+
* itself, since the chosen flags can affect whether a given pattern is
|
|
39
|
+
* actually valid.
|
|
33
40
|
* @type {SearchTypeObject}
|
|
34
41
|
*/
|
|
35
42
|
declare const blobHTMLSearchType: SearchTypeObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blobHTMLSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/subTypes/blobHTMLSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"blobHTMLSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/subTypes/blobHTMLSearchType.js"],"names":[],"mappings":";+BAQa,OAAO,sBAAsB,EAAE,gBAAgB;AA8F5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,kCAFU,gBAAgB,CA4JxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/subTypes/recordSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"recordSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/subTypes/recordSearchType.js"],"names":[],"mappings":";+BAaa,OAAO,sBAAsB,EAAE,gBAAgB;AAa5D;;;;;;;;;;;;;GAaG;AACH,gCAFU,gBAAgB,CA0FxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tupleSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/subTypes/tupleSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"tupleSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/subTypes/tupleSearchType.js"],"names":[],"mappings":";+BAaa,OAAO,sBAAsB,EAAE,gBAAgB;AAkB5D;;;;;;;;;;;;;;;;GAgBG;AACH,+BAFU,gBAAgB,CA6IxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialRealNumberSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/superTypes/SpecialRealNumberSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"SpecialRealNumberSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/superTypes/SpecialRealNumberSearchType.js"],"names":[],"mappings":";+BAOa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;GAMG;AACH,2CAFU,gBAAgB,CAoCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffersourceSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/superTypes/buffersourceSearchType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"buffersourceSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/superTypes/buffersourceSearchType.js"],"names":[],"mappings":";+BAQa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;GASG;AACH,sCAFU,gBAAgB,CA0CxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unionFamilySearchType.d.ts","sourceRoot":"","sources":["../../../src/search/unions/unionFamilySearchType.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unionFamilySearchType.d.ts","sourceRoot":"","sources":["../../../src/search/unions/unionFamilySearchType.js"],"names":[],"mappings":"AAqBA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,sEAHW;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAC,GACvC,gBAAgB,CAmK5B;+BAvMY,OAAO,sBAAsB,EAAE,gBAAgB;oCAY/C;IACR,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,yBAAyB,EAAE,WAAW,EAAE,CAAA;CACzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json6Stringify.d.ts","sourceRoot":"","sources":["../../src/utils/json6Stringify.js"],"names":[],"mappings":"AAmBO,sCALI,OAAO,UACP,MAAM,aACN,MAAM,GACJ,MAAM,CAgClB"}
|