@es-joy/jsoe 0.28.1 → 0.29.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 +23 -0
- package/README.md +2 -0
- package/badges/coverage-badge.svg +1 -1
- package/badges/tests-badge.svg +1 -1
- package/dist/deepEqual.d.ts +3 -0
- package/dist/deepEqual.d.ts.map +1 -0
- package/dist/formatAndTypeChoices.d.ts +6 -6
- package/dist/formatAndTypeChoices.d.ts.map +1 -1
- package/dist/formats/schema.d.ts +5 -0
- package/dist/formats/schema.d.ts.map +1 -1
- package/dist/formats.d.ts +2 -2
- package/dist/formats.d.ts.map +1 -1
- package/dist/fundamentalTypes/dateType.d.ts +21 -2
- package/dist/fundamentalTypes/dateType.d.ts.map +1 -1
- package/dist/fundamentalTypes/domexceptionType.d.ts +7 -0
- package/dist/fundamentalTypes/domexceptionType.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/jtltExtensions.d.ts +112 -0
- package/dist/jtltExtensions.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/arraySearchType.d.ts +15 -0
- package/dist/search/fundamentalTypes/arraySearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/bigintSearchType.d.ts +10 -0
- package/dist/search/fundamentalTypes/bigintSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/blobSearchType.d.ts +19 -0
- package/dist/search/fundamentalTypes/blobSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/booleanSearchType.d.ts +11 -0
- package/dist/search/fundamentalTypes/booleanSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/catchSearchType.d.ts +18 -0
- package/dist/search/fundamentalTypes/catchSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/dateSearchType.d.ts +10 -0
- package/dist/search/fundamentalTypes/dateSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/domexceptionSearchType.d.ts +16 -0
- package/dist/search/fundamentalTypes/domexceptionSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/enumSearchType.d.ts +22 -0
- package/dist/search/fundamentalTypes/enumSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/errorSearchType.d.ts +9 -0
- package/dist/search/fundamentalTypes/errorSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/fileSearchType.d.ts +19 -0
- package/dist/search/fundamentalTypes/fileSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/filelistSearchType.d.ts +32 -0
- package/dist/search/fundamentalTypes/filelistSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/functionSearchType.d.ts +18 -0
- package/dist/search/fundamentalTypes/functionSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/mapSearchType.d.ts +18 -0
- package/dist/search/fundamentalTypes/mapSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/nanSearchType.d.ts +7 -0
- package/dist/search/fundamentalTypes/nanSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/nullSearchType.d.ts +7 -0
- package/dist/search/fundamentalTypes/nullSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/numberSearchType.d.ts +11 -0
- package/dist/search/fundamentalTypes/numberSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/objectSearchType.d.ts +15 -0
- package/dist/search/fundamentalTypes/objectSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/promiseSearchType.d.ts +20 -0
- package/dist/search/fundamentalTypes/promiseSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/regexpSearchType.d.ts +14 -0
- package/dist/search/fundamentalTypes/regexpSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/setSearchType.d.ts +14 -0
- package/dist/search/fundamentalTypes/setSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/stringSearchType.d.ts +13 -0
- package/dist/search/fundamentalTypes/stringSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/symbolSearchType.d.ts +16 -0
- package/dist/search/fundamentalTypes/symbolSearchType.d.ts.map +1 -0
- package/dist/search/fundamentalTypes/undefinedSearchType.d.ts +7 -0
- package/dist/search/fundamentalTypes/undefinedSearchType.d.ts.map +1 -0
- package/dist/search/index.d.ts +60 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/queryTree.d.ts +180 -0
- package/dist/search/queryTree.d.ts.map +1 -0
- package/dist/search/queryTreeBuilders.d.ts +168 -0
- package/dist/search/queryTreeBuilders.d.ts.map +1 -0
- package/dist/search/searchDispatch.d.ts +121 -0
- package/dist/search/searchDispatch.d.ts.map +1 -0
- package/dist/search/searchElementUtils.d.ts +97 -0
- package/dist/search/searchElementUtils.d.ts.map +1 -0
- package/dist/search/searchUtils.d.ts +225 -0
- package/dist/search/searchUtils.d.ts.map +1 -0
- package/dist/search/subTypes/blobHTMLSearchType.d.ts +16 -0
- package/dist/search/subTypes/blobHTMLSearchType.d.ts.map +1 -0
- package/dist/search/subTypes/recordSearchType.d.ts +18 -0
- package/dist/search/subTypes/recordSearchType.d.ts.map +1 -0
- package/dist/search/subTypes/tupleSearchType.d.ts +21 -0
- package/dist/search/subTypes/tupleSearchType.d.ts.map +1 -0
- package/dist/search/superTypes/SpecialRealNumberSearchType.d.ts +14 -0
- package/dist/search/superTypes/SpecialRealNumberSearchType.d.ts.map +1 -0
- package/dist/search/superTypes/buffersourceSearchType.d.ts +17 -0
- package/dist/search/superTypes/buffersourceSearchType.d.ts.map +1 -0
- package/dist/search/superTypes/dommatrixSearchType.d.ts +11 -0
- package/dist/search/superTypes/dommatrixSearchType.d.ts.map +1 -0
- package/dist/search/superTypes/dompointSearchType.d.ts +9 -0
- package/dist/search/superTypes/dompointSearchType.d.ts.map +1 -0
- package/dist/search/superTypes/domrectSearchType.d.ts +9 -0
- package/dist/search/superTypes/domrectSearchType.d.ts.map +1 -0
- package/dist/search/superTypes/errorsSpecialSearchType.d.ts +11 -0
- package/dist/search/superTypes/errorsSpecialSearchType.d.ts.map +1 -0
- package/dist/search/unions/discriminatedUnionSearchType.d.ts +12 -0
- package/dist/search/unions/discriminatedUnionSearchType.d.ts.map +1 -0
- package/dist/search/unions/unionFamilySearchType.d.ts +36 -0
- package/dist/search/unions/unionFamilySearchType.d.ts.map +1 -0
- package/dist/search/unions/unionSearchType.d.ts +8 -0
- package/dist/search/unions/unionSearchType.d.ts.map +1 -0
- package/dist/search/unions/xorSearchType.d.ts +12 -0
- package/dist/search/unions/xorSearchType.d.ts.map +1 -0
- package/dist/superTypes/buffersourceType.d.ts.map +1 -1
- package/dist/typeChoices.d.ts +3 -3
- package/dist/typeChoices.d.ts.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/rawTypesonEditor.d.ts.map +1 -1
- package/docs/proposals/search-plan.md +166 -0
- package/package.json +5 -4
- package/pnpm-workspace.yaml +1 -1
- package/rollup.config.js +12 -0
- package/src/formatAndTypeChoices.js +4 -4
- package/src/formats/schema.js +2 -1
- package/src/formats.js +1 -1
- package/src/fundamentalTypes/dateType.js +35 -14
- package/src/fundamentalTypes/domexceptionType.js +41 -33
- package/src/index.js +6 -0
- package/src/jtltExtensions.js +103 -0
- package/src/search/fundamentalTypes/arraySearchType.js +66 -0
- package/src/search/fundamentalTypes/bigintSearchType.js +62 -0
- package/src/search/fundamentalTypes/blobSearchType.js +41 -0
- package/src/search/fundamentalTypes/booleanSearchType.js +40 -0
- package/src/search/fundamentalTypes/catchSearchType.js +59 -0
- package/src/search/fundamentalTypes/dateSearchType.js +73 -0
- package/src/search/fundamentalTypes/domexceptionSearchType.js +55 -0
- package/src/search/fundamentalTypes/enumSearchType.js +58 -0
- package/src/search/fundamentalTypes/errorSearchType.js +11 -0
- package/src/search/fundamentalTypes/fileSearchType.js +41 -0
- package/src/search/fundamentalTypes/filelistSearchType.js +78 -0
- package/src/search/fundamentalTypes/functionSearchType.js +78 -0
- package/src/search/fundamentalTypes/mapSearchType.js +87 -0
- package/src/search/fundamentalTypes/nanSearchType.js +11 -0
- package/src/search/fundamentalTypes/nullSearchType.js +11 -0
- package/src/search/fundamentalTypes/numberSearchType.js +52 -0
- package/src/search/fundamentalTypes/objectSearchType.js +148 -0
- package/src/search/fundamentalTypes/promiseSearchType.js +61 -0
- package/src/search/fundamentalTypes/regexpSearchType.js +48 -0
- package/src/search/fundamentalTypes/setSearchType.js +65 -0
- package/src/search/fundamentalTypes/stringSearchType.js +35 -0
- package/src/search/fundamentalTypes/symbolSearchType.js +38 -0
- package/src/search/fundamentalTypes/undefinedSearchType.js +11 -0
- package/src/search/index.js +79 -0
- package/src/search/queryTree.js +235 -0
- package/src/search/queryTreeBuilders.js +224 -0
- package/src/search/searchDispatch.js +291 -0
- package/src/search/searchElementUtils.js +289 -0
- package/src/search/searchUtils.js +355 -0
- package/src/search/subTypes/blobHTMLSearchType.js +65 -0
- package/src/search/subTypes/recordSearchType.js +84 -0
- package/src/search/subTypes/tupleSearchType.js +111 -0
- package/src/search/superTypes/SpecialRealNumberSearchType.js +42 -0
- package/src/search/superTypes/buffersourceSearchType.js +47 -0
- package/src/search/superTypes/dommatrixSearchType.js +24 -0
- package/src/search/superTypes/dompointSearchType.js +15 -0
- package/src/search/superTypes/domrectSearchType.js +15 -0
- package/src/search/superTypes/errorsSpecialSearchType.js +15 -0
- package/src/search/unions/discriminatedUnionSearchType.js +16 -0
- package/src/search/unions/unionFamilySearchType.js +160 -0
- package/src/search/unions/unionSearchType.js +12 -0
- package/src/search/unions/xorSearchType.js +16 -0
- package/src/superTypes/buffersourceType.js +13 -15
- package/src/typeChoices.js +2 -2
- package/src/types.js +2 -2
- package/src/utils/rawTypesonEditor.js +12 -2
- package/tsconfig-prod.json +12 -0
- package/tsconfig.json +5 -10
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A minimal structural stand-in for the jtlt template `this` context — just
|
|
3
|
+
* the two members these extensions use. Defined locally (rather than
|
|
4
|
+
* imported from jtlt) so this module adds no dependency on jtlt itself;
|
|
5
|
+
* jtlt's own `ContextExtensions` augmentation is a wider, compatible type.
|
|
6
|
+
* `get` mirrors `JSONPathTransformerContext#get(select, wrap)`: a JSONPath
|
|
7
|
+
* query against the current template data (or that data itself when
|
|
8
|
+
* `select` is falsy).
|
|
9
|
+
* @typedef {{
|
|
10
|
+
* appendOutput: (item: unknown) => unknown,
|
|
11
|
+
* get: (select: string|undefined, wrap: boolean) => unknown
|
|
12
|
+
* }} JtltExtensionContext
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The argument object a declarative `{$generateJsoeEditUI: {...}}` /
|
|
16
|
+
* `{$generateJsoeViewUI: {...}}` node supplies, entirely unresolved — see
|
|
17
|
+
* jtlt's own extension-call mechanism (`jsonTemplate.js`'s `runOperation`,
|
|
18
|
+
* jtlt 0.21.0+): jtlt does not interpret any of these keys itself, so
|
|
19
|
+
* resolving `select` (via `this.get`) is this module's own job, not
|
|
20
|
+
* jtlt's. `db`/`store`, when given, name which store's schema should shape
|
|
21
|
+
* the built controls — independent of `select`, since the *value* being
|
|
22
|
+
* edited/viewed and the *store it belongs to* are two separate facts a
|
|
23
|
+
* template may need to supply together (e.g. when a `behavior` reads rows
|
|
24
|
+
* from a store other than the one its own route targets).
|
|
25
|
+
* @typedef {{select: string, db?: string, store?: string}} JsoeUIArgs
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Builds a `generateJsoeEditUI` / `generateJsoeViewUI` pair, ready to spread
|
|
29
|
+
* into a jtlt `config.extensions` object — see
|
|
30
|
+
* `~/idb-manager/ROUTE-OVERRIDES-PLAN.md` §5 ("idb-manager behavior
|
|
31
|
+
* extensions"). Each function is a jtlt extension called with the
|
|
32
|
+
* declarative node's own argument object, e.g. `{$generateJsoeEditUI:
|
|
33
|
+
* {select: '$.record', db: 'myDb', store: 'myStore'}}` → `this.
|
|
34
|
+
* generateJsoeEditUI({select: '$.record', db: 'myDb', store: 'myStore'})`
|
|
35
|
+
* (or, from the raw-JS override tier, the same call made directly). It
|
|
36
|
+
* resolves `select` itself (`this.get(select, false)`), looks up that
|
|
37
|
+
* store's schema via `getSchemaContent` when `db`/`store` are both given,
|
|
38
|
+
* builds jsoe's own edit/view control tree for the resolved value, and
|
|
39
|
+
* inserts it into the current output itself via `this.appendOutput(...)`
|
|
40
|
+
* — matching jtlt's own `$renderDefault` convention of the extension doing
|
|
41
|
+
* its own insertion rather than returning a value for the interpreter to
|
|
42
|
+
* place.
|
|
43
|
+
*
|
|
44
|
+
* Takes the caller's own `Types` instance rather than constructing one:
|
|
45
|
+
* idb-manager (for example) already has a single, app-wide `Types`
|
|
46
|
+
* instance (`new Types()` in `Router.js`) configured with whatever
|
|
47
|
+
* constructor options it needs, and every control this builds should share
|
|
48
|
+
* that configuration, not a second, independently-configured one.
|
|
49
|
+
* @param {import('./types.js').default} types
|
|
50
|
+
* @param {{
|
|
51
|
+
* typeNamespace?: string,
|
|
52
|
+
* getSchemaContent?: (db: string, store: string) => (
|
|
53
|
+
* import('./formats/schema.js').ZodexSchema | undefined |
|
|
54
|
+
* Promise<import('./formats/schema.js').ZodexSchema | undefined>
|
|
55
|
+
* )
|
|
56
|
+
* }} [options] - `typeNamespace` scopes the jsoe-internal type-choice state
|
|
57
|
+
* so this doesn't collide with unrelated controls the same page builds
|
|
58
|
+
* elsewhere (see other `getControlsForFormatAndValue` call sites' own
|
|
59
|
+
* `typeNamespace` values); defaults to `'jtlt'`. `getSchemaContent`, when
|
|
60
|
+
* given, is called with each call's own `db`/`store` (e.g. wrapping
|
|
61
|
+
* idb-manager's `Schemas.js` lookup) — resolved fresh per call, so a
|
|
62
|
+
* single bundle correctly serves a `behavior` that edits/views records
|
|
63
|
+
* from more than one store, each with its own schema. Omitted (or a
|
|
64
|
+
* call's `db`/`store` omitted) means no schema — jsoe's controls still
|
|
65
|
+
* work, inferring type choices from the value alone.
|
|
66
|
+
* @returns {{
|
|
67
|
+
* generateJsoeEditUI: (
|
|
68
|
+
* this: JtltExtensionContext, argObject: JsoeUIArgs
|
|
69
|
+
* ) => Promise<void>,
|
|
70
|
+
* generateJsoeViewUI: (
|
|
71
|
+
* this: JtltExtensionContext, argObject: JsoeUIArgs
|
|
72
|
+
* ) => Promise<void>
|
|
73
|
+
* }}
|
|
74
|
+
*/
|
|
75
|
+
export default function createJtltExtensions(types: import("./types.js").default, { typeNamespace, getSchemaContent }?: {
|
|
76
|
+
typeNamespace?: string;
|
|
77
|
+
getSchemaContent?: (db: string, store: string) => (import("./formats/schema.js").ZodexSchema | undefined | Promise<import("./formats/schema.js").ZodexSchema | undefined>);
|
|
78
|
+
}): {
|
|
79
|
+
generateJsoeEditUI: (this: JtltExtensionContext, argObject: JsoeUIArgs) => Promise<void>;
|
|
80
|
+
generateJsoeViewUI: (this: JtltExtensionContext, argObject: JsoeUIArgs) => Promise<void>;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* A minimal structural stand-in for the jtlt template `this` context — just
|
|
84
|
+
* the two members these extensions use. Defined locally (rather than
|
|
85
|
+
* imported from jtlt) so this module adds no dependency on jtlt itself;
|
|
86
|
+
* jtlt's own `ContextExtensions` augmentation is a wider, compatible type.
|
|
87
|
+
* `get` mirrors `JSONPathTransformerContext#get(select, wrap)`: a JSONPath
|
|
88
|
+
* query against the current template data (or that data itself when
|
|
89
|
+
* `select` is falsy).
|
|
90
|
+
*/
|
|
91
|
+
export type JtltExtensionContext = {
|
|
92
|
+
appendOutput: (item: unknown) => unknown;
|
|
93
|
+
get: (select: string | undefined, wrap: boolean) => unknown;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* The argument object a declarative `{$generateJsoeEditUI: {...}}` /
|
|
97
|
+
* `{$generateJsoeViewUI: {...}}` node supplies, entirely unresolved — see
|
|
98
|
+
* jtlt's own extension-call mechanism (`jsonTemplate.js`'s `runOperation`,
|
|
99
|
+
* jtlt 0.21.0+): jtlt does not interpret any of these keys itself, so
|
|
100
|
+
* resolving `select` (via `this.get`) is this module's own job, not
|
|
101
|
+
* jtlt's. `db`/`store`, when given, name which store's schema should shape
|
|
102
|
+
* the built controls — independent of `select`, since the *value* being
|
|
103
|
+
* edited/viewed and the *store it belongs to* are two separate facts a
|
|
104
|
+
* template may need to supply together (e.g. when a `behavior` reads rows
|
|
105
|
+
* from a store other than the one its own route targets).
|
|
106
|
+
*/
|
|
107
|
+
export type JsoeUIArgs = {
|
|
108
|
+
select: string;
|
|
109
|
+
db?: string;
|
|
110
|
+
store?: string;
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=jtltExtensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jtltExtensions.d.ts","sourceRoot":"","sources":["../src/jtltExtensions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,oDA1BW,OAAO,YAAY,EAAE,OAAO,wCAC5B;IACN,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,CACtD,OAAa,qBAAqB,EAAE,WAAW,GAAG,SAAS,GACrD,OAAO,CAAC,OAAO,qBAAqB,EAAE,WAAW,GAAG,SAAS,CAAC,CAC/D,CAAA;CACF,GAUS;IACR,kBAAkB,EAAE,CAClB,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,UAAU,KAC9C,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,kBAAkB,EAAE,CAClB,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,UAAU,KAC9C,OAAO,CAAC,IAAI,CAAC,CAAA;CACnB,CA4BH;;;;;;;;;;mCA9FY;IACR,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;IACzC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,GAAC,SAAS,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAA;CAC1D;;;;;;;;;;;;;yBAcS;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default arraySearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Has length/size of <number>; Is/Is not sparse (README), plus - by
|
|
8
|
+
* recursing into the element schema's own search widget (search plan §6
|
|
9
|
+
* build order) - "the array contains at least one element matching Y",
|
|
10
|
+
* expressed via a `*` path segment (`queryTree.js`) so no dedicated wrapper
|
|
11
|
+
* leaf kind is needed: the two constraints simply combine with `$and`.
|
|
12
|
+
* @type {SearchTypeObject}
|
|
13
|
+
*/
|
|
14
|
+
declare const arraySearchType: SearchTypeObject;
|
|
15
|
+
//# sourceMappingURL=arraySearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arraySearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/arraySearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;GAOG;AACH,+BAFU,gBAAgB,CAgDxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default bigintSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* OR Ranges/Is Not Range (README) - text inputs rather than
|
|
5
|
+
* `<input type="number">`, since a native number input silently loses
|
|
6
|
+
* precision beyond `Number.MAX_SAFE_INTEGER`.
|
|
7
|
+
* @type {SearchTypeObject}
|
|
8
|
+
*/
|
|
9
|
+
declare const bigintSearchType: SearchTypeObject;
|
|
10
|
+
//# sourceMappingURL=bigintSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigintSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/bigintSearchType.js"],"names":[],"mappings":";+BAKa,OAAO,sBAAsB,EAAE,gBAAgB;AAoB5D;;;;;GAKG;AACH,gCAFU,gBAAgB,CA8BxB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default blobSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Blob: OR literal or regex search/Does Not contain search (README, grouped
|
|
8
|
+
* with string/StringObject/File/regexp-source/symbol-description) - against
|
|
9
|
+
* the Blob's `.type` (MIME string), a value-level facet the schema itself
|
|
10
|
+
* carries no constraint for (`blob` is one of jsoe's "checked" types,
|
|
11
|
+
* `{type: 'any', checks: [{name: 'blob'}]}`, with no further structural
|
|
12
|
+
* fields to read), the same way `symbolSearchType.js` targets
|
|
13
|
+
* `.description`. Matching *content* rather than the MIME type belongs to
|
|
14
|
+
* `blobHTMLSearchType.js` (XPath/CSS-selector/full-text/raw-HTML-regex,
|
|
15
|
+
* README) for the Blob-as-HTML case specifically, not this generic module.
|
|
16
|
+
* @type {SearchTypeObject}
|
|
17
|
+
*/
|
|
18
|
+
declare const blobSearchType: SearchTypeObject;
|
|
19
|
+
//# sourceMappingURL=blobSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blobSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/blobSearchType.js"],"names":[],"mappings":";+BAIa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH,8BAFU,gBAAgB,CAqBxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default booleanSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* True or false (README).
|
|
8
|
+
* @type {SearchTypeObject}
|
|
9
|
+
*/
|
|
10
|
+
declare const booleanSearchType: SearchTypeObject;
|
|
11
|
+
//# sourceMappingURL=booleanSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booleanSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/booleanSearchType.js"],"names":[],"mappings":";+BAKa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;GAGG;AACH,iCAFU,gBAAgB,CA2BxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default catchSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Promise, Literal, catch: pass on children (README) - same shape as
|
|
8
|
+
* `promiseSearchType.js`'s pass-through (recurse into `.innerType` at the
|
|
9
|
+
* same path, wrap in a `passThrough` leaf), except `getSchemaType`
|
|
10
|
+
* (`src/formats/schema.js`) has no case for `catch` at all - unlike
|
|
11
|
+
* `promise`/`function`, which `zodexToStructuredCloningTypeMap` already
|
|
12
|
+
* maps - so `getSearchSchemaType` adds `catch` as its own extra case purely
|
|
13
|
+
* for the search side, the same way it already does for `tuple`/`record`/
|
|
14
|
+
* the union family.
|
|
15
|
+
* @type {SearchTypeObject}
|
|
16
|
+
*/
|
|
17
|
+
declare const catchSearchType: SearchTypeObject;
|
|
18
|
+
//# sourceMappingURL=catchSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catchSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/catchSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,+BAFU,gBAAgB,CAsCxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default dateSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* OR date range/Is Not Range (README). `dateType.js`'s own
|
|
5
|
+
* `buildDateInputControl` is reused twice (range start/end) so the min/max
|
|
6
|
+
* wiring and ISO-slicing stay in one place.
|
|
7
|
+
* @type {SearchTypeObject}
|
|
8
|
+
*/
|
|
9
|
+
declare const dateSearchType: SearchTypeObject;
|
|
10
|
+
//# sourceMappingURL=dateSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/dateSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAmB5D;;;;;GAKG;AACH,8BAFU,gBAAgB,CAyCxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default domexceptionSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* DOMException: Literal/Regex search of child string properties; also
|
|
8
|
+
* pull-down of name for DOMException (README) - `.name` gets the
|
|
9
|
+
* multi-select pull-down (its standard predefined values, imported as-is
|
|
10
|
+
* from `domexceptionType.js`'s own `domExceptionNames` export rather than a
|
|
11
|
+
* second copy of the list), `.message` gets the usual literal/regex/
|
|
12
|
+
* does-not-contain control, combined via `$and`.
|
|
13
|
+
* @type {SearchTypeObject}
|
|
14
|
+
*/
|
|
15
|
+
declare const domexceptionSearchType: SearchTypeObject;
|
|
16
|
+
//# sourceMappingURL=domexceptionSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domexceptionSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/domexceptionSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;GAQG;AACH,sCAFU,gBAAgB,CAoCxB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default enumSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Enum, Native Enum: multiple select (README). The value-editing side has
|
|
8
|
+
* no dedicated `enumType.js` (`getSchemaType` resolves `enum` to whatever
|
|
9
|
+
* its underlying value type is), but search needs the actual allowed
|
|
10
|
+
* values listed, so this is one of the search-only dedicated modules
|
|
11
|
+
* (search plan §1).
|
|
12
|
+
*
|
|
13
|
+
* The README's further "native enum also can search key vs. value" is not
|
|
14
|
+
* implemented by this pass - only the plain multi-select-of-values
|
|
15
|
+
* affordance every enum gets either way. A native enum whose keys differ
|
|
16
|
+
* from its values (unlike a plain `z.enum([...])`, where they're the same)
|
|
17
|
+
* still gets a usable widget here, just not that extra key-vs-value mode
|
|
18
|
+
* yet; `values`'s keys are shown alongside their value as a hint.
|
|
19
|
+
* @type {SearchTypeObject}
|
|
20
|
+
*/
|
|
21
|
+
declare const enumSearchType: SearchTypeObject;
|
|
22
|
+
//# sourceMappingURL=enumSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enumSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/enumSearchType.js"],"names":[],"mappings":";+BAKa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH,8BAFU,gBAAgB,CAkCxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default errorSearchType;
|
|
2
|
+
/**
|
|
3
|
+
* Error: Literal/Regex search of child string properties, numeric of
|
|
4
|
+
* number children (README) - see `searchElementUtils.js`'s
|
|
5
|
+
* `makeErrorFamilySearchType` for the shared implementation.
|
|
6
|
+
* @type {import('../searchDispatch.js').SearchTypeObject}
|
|
7
|
+
*/
|
|
8
|
+
declare const errorSearchType: import("../searchDispatch.js").SearchTypeObject;
|
|
9
|
+
//# sourceMappingURL=errorSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/errorSearchType.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,+BAFU,OAAO,sBAAsB,EAAE,gBAAgB,CAEyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default fileSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* File: OR literal or regex search/Does Not contain search (README, grouped
|
|
8
|
+
* with string/StringObject/Blob/regexp-source/symbol-description) - against
|
|
9
|
+
* the File's `.name`, a value-level facet the schema itself carries no
|
|
10
|
+
* constraint for (`SzFile` only has `min`/`max`/`mime`), the same way
|
|
11
|
+
* `symbolSearchType.js` targets `.description` rather than anything the
|
|
12
|
+
* schema declares. `SzFile`'s own `min`/`max` (byte size) is left for a
|
|
13
|
+
* later pass - the README's literal/regex bullet doesn't ask for a size
|
|
14
|
+
* range here, and README explicitly reserves that shape of control
|
|
15
|
+
* ("OR Range/Is Not Range") for `buffersource` instead.
|
|
16
|
+
* @type {SearchTypeObject}
|
|
17
|
+
*/
|
|
18
|
+
declare const fileSearchType: SearchTypeObject;
|
|
19
|
+
//# sourceMappingURL=fileSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/fileSearchType.js"],"names":[],"mappings":";+BAIa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH,8BAFU,gBAAgB,CAqBxB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default filelistSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
export type FilelistOutputSchema = {
|
|
4
|
+
type: "array";
|
|
5
|
+
element: import("../../formats/schema.js").ZodexSchema;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {{
|
|
14
|
+
* type: 'array',
|
|
15
|
+
* element: import('../../formats/schema.js').ZodexSchema,
|
|
16
|
+
* minLength?: number,
|
|
17
|
+
* maxLength?: number
|
|
18
|
+
* }} FilelistOutputSchema
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Has length/size of <number> (README, grouped with array/set/
|
|
22
|
+
* tuple-with-rest) - no sparse toggle, matching `setSearchType.js`. A
|
|
23
|
+
* `FileList` schema serializes as `{type: 'codec', name: 'filelist',
|
|
24
|
+
* output: {type: 'array', element: {type: 'file', ...}}}`
|
|
25
|
+
* (`src/formats/schema.js`'s `codec`/`filelist` handling); the length
|
|
26
|
+
* bounds and element schema both live on that `output` array shape, whose
|
|
27
|
+
* element recurses into `fileSearchType.js` under the same `*` path-segment
|
|
28
|
+
* convention `arraySearchType.js` uses.
|
|
29
|
+
* @type {SearchTypeObject}
|
|
30
|
+
*/
|
|
31
|
+
declare const filelistSearchType: SearchTypeObject;
|
|
32
|
+
//# sourceMappingURL=filelistSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filelistSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/filelistSearchType.js"],"names":[],"mappings":";+BAMa,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;AAVJ;;GAEG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;GAUG;AACH,kCAFU,gBAAgB,CAgDxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default functionSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Function; pass on args, return type (README) - recurses into both
|
|
8
|
+
* `.input` (itself a tuple, so its own per-position controls come for free
|
|
9
|
+
* via `tupleSearchType.js`) and `.output`, at `*args`/`*output` path
|
|
10
|
+
* segments (`queryTree.js`), combined via `$and`. The build order's own
|
|
11
|
+
* note that `function` is "fuzzy" in the README and could ship as a
|
|
12
|
+
* minimal stub predates `tupleSearchType.js` existing; now that it does,
|
|
13
|
+
* recursing into `.input` through it is no more work than `.output` alone
|
|
14
|
+
* would have been.
|
|
15
|
+
* @type {SearchTypeObject}
|
|
16
|
+
*/
|
|
17
|
+
declare const functionSearchType: SearchTypeObject;
|
|
18
|
+
//# sourceMappingURL=functionSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functionSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/functionSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,kCAFU,gBAAgB,CAyDxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default mapSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Map, Record: string-type searches of keys, values; ideally would allow
|
|
8
|
+
* search to insist on match of key and value (README) - structurally the
|
|
9
|
+
* same as `recordSearchType.js` (`key`/`value` recursion at `*key`/`*value`
|
|
10
|
+
* segments, a "require same entry" toggle producing one `mapRecordJoint`
|
|
11
|
+
* leaf), plus a `lengthSize` control for `min`/`max` (a `Map`, unlike a
|
|
12
|
+
* `Record`, carries its own size bounds in the schema - the same
|
|
13
|
+
* affordance `setSearchType.js` gets for the analogous reason), combined
|
|
14
|
+
* with the joint leaf via `$and`.
|
|
15
|
+
* @type {SearchTypeObject}
|
|
16
|
+
*/
|
|
17
|
+
declare const mapSearchType: SearchTypeObject;
|
|
18
|
+
//# sourceMappingURL=mapSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/mapSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,6BAFU,gBAAgB,CAkExB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default nanSearchType;
|
|
2
|
+
/**
|
|
3
|
+
* `NaN`: "no variants to allow for distinct search" (README).
|
|
4
|
+
* @type {import('../searchDispatch.js').SearchTypeObject}
|
|
5
|
+
*/
|
|
6
|
+
declare const nanSearchType: import("../searchDispatch.js").SearchTypeObject;
|
|
7
|
+
//# sourceMappingURL=nanSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nanSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/nanSearchType.js"],"names":[],"mappings":";AAEA;;;GAGG;AACH,6BAFU,OAAO,sBAAsB,EAAE,gBAAgB,CAItD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default nullSearchType;
|
|
2
|
+
/**
|
|
3
|
+
* `null`: "no variants to allow for distinct search" (README).
|
|
4
|
+
* @type {import('../searchDispatch.js').SearchTypeObject}
|
|
5
|
+
*/
|
|
6
|
+
declare const nullSearchType: import("../searchDispatch.js").SearchTypeObject;
|
|
7
|
+
//# sourceMappingURL=nullSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nullSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/nullSearchType.js"],"names":[],"mappings":";AAEA;;;GAGG;AACH,8BAFU,OAAO,sBAAsB,EAAE,gBAAgB,CAItD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default numberSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* OR Ranges/Is Not Range, Is/Is Not Integer (README).
|
|
8
|
+
* @type {SearchTypeObject}
|
|
9
|
+
*/
|
|
10
|
+
declare const numberSearchType: SearchTypeObject;
|
|
11
|
+
//# sourceMappingURL=numberSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/numberSearchType.js"],"names":[],"mappings":";+BAKa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;GAGG;AACH,gCAFU,gBAAgB,CAuCxB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default objectSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* Has property <property pull-down> (README), additive: only
|
|
5
|
+
* optional properties are offered ("avoid listing required" - a required
|
|
6
|
+
* property is guaranteed present, so asking about its existence is
|
|
7
|
+
* meaningless), and picking one from the pull-down adds a row for it
|
|
8
|
+
* (removed from the pull-down so it can't be added twice); there is no
|
|
9
|
+
* remove affordance, since setting a row's toggle back to "(any)" already
|
|
10
|
+
* expresses "no constraint from this row" for the existence half, same as
|
|
11
|
+
* clearing the nested widget does for the value half.
|
|
12
|
+
* @type {SearchTypeObject}
|
|
13
|
+
*/
|
|
14
|
+
declare const objectSearchType: SearchTypeObject;
|
|
15
|
+
//# sourceMappingURL=objectSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/objectSearchType.js"],"names":[],"mappings":";+BAUa,OAAO,sBAAsB,EAAE,gBAAgB;AA6D5D;;;;;;;;;;GAUG;AACH,gCAFU,gBAAgB,CAiExB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default promiseSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Promise, Literal, catch: pass on children (README) - a promise wraps
|
|
8
|
+
* exactly one value at the same conceptual path (no path segment to add,
|
|
9
|
+
* unlike array's `*`/record's `*key`/`*value`), so this recurses into
|
|
10
|
+
* `.value`'s own search widget and wraps whatever it produces in a
|
|
11
|
+
* `passThrough` leaf (`queryTree.js`) purely so the tree keeps visible that
|
|
12
|
+
* the leaf was reached through a promise, rather than returning the child's
|
|
13
|
+
* leaf bare. ("Literal" needs no module of its own: `getSearchSchemaType`
|
|
14
|
+
* already resolves a `literal` schema straight to its value's own type via
|
|
15
|
+
* `getSchemaType`, e.g. a literal string dispatches to `stringSearchType.js`
|
|
16
|
+
* unchanged).
|
|
17
|
+
* @type {SearchTypeObject}
|
|
18
|
+
*/
|
|
19
|
+
declare const promiseSearchType: SearchTypeObject;
|
|
20
|
+
//# sourceMappingURL=promiseSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promiseSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/promiseSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;;;;;GAYG;AACH,iCAFU,gBAAgB,CAsCxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default regexpSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Regexp (source): OR literal or regex search/Does Not contain search, plus
|
|
8
|
+
* a multiple-select search of flags (README). `regexpType.js`'s own
|
|
9
|
+
* `allowedFlags` list is imported as-is for the flags control (search plan
|
|
10
|
+
* §4 - already a plain exported property, no extraction needed).
|
|
11
|
+
* @type {SearchTypeObject}
|
|
12
|
+
*/
|
|
13
|
+
declare const regexpSearchType: SearchTypeObject;
|
|
14
|
+
//# sourceMappingURL=regexpSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexpSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/regexpSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;GAMG;AACH,gCAFU,gBAAgB,CA+BxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default setSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Has length/size of <number> (README) - no sparse toggle: unlike
|
|
8
|
+
* `array`, a `Set` cannot have holes. Also recurses into the value schema's
|
|
9
|
+
* own search widget (as `arraySearchType.js` does for its element), via the
|
|
10
|
+
* same `*` path-segment convention (`queryTree.js`).
|
|
11
|
+
* @type {SearchTypeObject}
|
|
12
|
+
*/
|
|
13
|
+
declare const setSearchType: SearchTypeObject;
|
|
14
|
+
//# sourceMappingURL=setSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/setSearchType.js"],"names":[],"mappings":";+BAMa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;GAMG;AACH,6BAFU,gBAAgB,CAgDxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default stringSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* OR literal or regex search/Does Not contain search (README; also covers
|
|
8
|
+
* `StringObject` and `templateLiteral`, aliased to this same module in
|
|
9
|
+
* `searchDispatch.js` since the query semantics are identical).
|
|
10
|
+
* @type {SearchTypeObject}
|
|
11
|
+
*/
|
|
12
|
+
declare const stringSearchType: SearchTypeObject;
|
|
13
|
+
//# sourceMappingURL=stringSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/stringSearchType.js"],"names":[],"mappings":";+BAIa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;GAKG;AACH,gCAFU,gBAAgB,CAqBxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default symbolSearchType;
|
|
2
|
+
export type SearchTypeObject = import("../searchDispatch.js").SearchTypeObject;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import('../searchDispatch.js').SearchTypeObject} SearchTypeObject
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Symbol (description): OR literal or regex search/Does Not contain search
|
|
8
|
+
* (README) - the same query semantics as `stringSearchType.js`'s, against
|
|
9
|
+
* the symbol's description rather than a string value, so it gets its own
|
|
10
|
+
* dedicated module/tag (matching the value-editing side's one-file-per-
|
|
11
|
+
* fundamental-type convention) while sharing that module's actual control
|
|
12
|
+
* building/reading via `searchUtils.js`.
|
|
13
|
+
* @type {SearchTypeObject}
|
|
14
|
+
*/
|
|
15
|
+
declare const symbolSearchType: SearchTypeObject;
|
|
16
|
+
//# sourceMappingURL=symbolSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbolSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/symbolSearchType.js"],"names":[],"mappings":";+BAIa,OAAO,sBAAsB,EAAE,gBAAgB;AAD5D;;GAEG;AAEH;;;;;;;;GAQG;AACH,gCAFU,gBAAgB,CAqBxB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default undefinedSearchType;
|
|
2
|
+
/**
|
|
3
|
+
* `undefined`/`void`: "no variants to allow for distinct search" (README).
|
|
4
|
+
* @type {import('../searchDispatch.js').SearchTypeObject}
|
|
5
|
+
*/
|
|
6
|
+
declare const undefinedSearchType: import("../searchDispatch.js").SearchTypeObject;
|
|
7
|
+
//# sourceMappingURL=undefinedSearchType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undefinedSearchType.d.ts","sourceRoot":"","sources":["../../../src/search/fundamentalTypes/undefinedSearchType.js"],"names":[],"mappings":";AAEA;;;GAGG;AACH,mCAFU,OAAO,sBAAsB,EAAE,gBAAgB,CAItD"}
|