@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
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# CHANGES TO `@es-joy/jsoe`
|
|
2
2
|
|
|
3
|
+
## 0.29.0
|
|
4
|
+
|
|
5
|
+
- feat: `createJtltExtensions(types, {typeNamespace?, getSchemaContent?})`
|
|
6
|
+
(new `src/jtltExtensions.js`, exported from the package root) — builds a
|
|
7
|
+
`generateJsoeEditUI` / `generateJsoeViewUI` pair ready to spread into a
|
|
8
|
+
jtlt `config.extensions` object (jtlt 0.22.0+'s generic extension-call
|
|
9
|
+
mechanism), so a consumer's declarative templates (e.g. idb-manager's
|
|
10
|
+
route overrides) can build jsoe's own edit/view control tree for a value
|
|
11
|
+
via `{$generateJsoeEditUI: {select: '$.record', db, store}}` /
|
|
12
|
+
`{$generateJsoeViewUI: {...}}`. `db`/`store`, when a call provides both,
|
|
13
|
+
resolve that store's schema through the caller-supplied
|
|
14
|
+
`getSchemaContent(db, store)` (called fresh per call, so one bundle
|
|
15
|
+
correctly serves records from more than one store); omitted, the built
|
|
16
|
+
controls simply infer type choices from the value alone, as
|
|
17
|
+
`getControlsForFormatAndValue` already does without a schema.
|
|
18
|
+
- feat: also ships with experimental `buildSearchChoices` API,
|
|
19
|
+
but this is not yet ready (still needs appropriate styling and
|
|
20
|
+
verification).
|
|
21
|
+
|
|
22
|
+
## 0.28.2
|
|
23
|
+
|
|
24
|
+
- fix: ensure `type: "symbol"` schema can be used
|
|
25
|
+
|
|
3
26
|
## 0.28.1
|
|
4
27
|
|
|
5
28
|
- fix: remove properties (dropped from zod)
|
package/README.md
CHANGED
|
@@ -160,6 +160,8 @@ Supported supertypes include:
|
|
|
160
160
|
1. Add drag-and-drop support for `File` type
|
|
161
161
|
1. Import CSV as array
|
|
162
162
|
1. **Schema-driven search**
|
|
163
|
+
1. Might allow search on `.cause` and `AggregateError.errors` in the future
|
|
164
|
+
|
|
163
165
|
1. Objects: "Has property <property pull-down>" (avoid listing required)
|
|
164
166
|
1. Arrays, Set, FileList, tuple with rest: "Has length/size of <number>"; arrays: "Is/Is not sparse"
|
|
165
167
|
1. Union/Discriminated Union: "Has type <type pull-down>" (including when union is part of a key to records, maps, discriminator of discriminated union, etc.)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="421" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="orange" stroke="#000" d="M0 0h113v20H0zM113 0h109v20H113zM222 0h87v20h-87zM309 0h112v20H309z"/><path fill="url(#smooth)" d="M0 0h421v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="421" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="orange" stroke="#000" d="M0 0h113v20H0zM113 0h109v20H113zM222 0h87v20h-87zM309 0h112v20H309z"/><path fill="url(#smooth)" d="M0 0h421v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 95.7%</text><text class="high" x="5" y="14">Statements 95.7%</text><text class="shadow" x="118.5" y="15">Branches 87.65%</text><text class="high" x="118" y="14">Branches 87.65%</text><text class="shadow" x="227.5" y="15">Lines 96.12%</text><text class="high" x="227" y="14">Lines 96.12%</text><text class="shadow" x="314.5" y="15">Functions 96.42%</text><text class="high" x="314" y="14">Functions 96.42%</text></g></svg>
|
package/badges/tests-badge.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" fill="#fff" rx="3"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#e05d44" d="M41 0h56v20H41z"/><path fill="url(#smooth)" d="M0 0h97v20H0z"/></g><g id="fg"><text x="5.5" y="15" class="shadow">Tests</text><text x="5" y="14" class="high">Tests</text><text x="46.5" y="15" class="shadow">
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" fill="#fff" rx="3"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#e05d44" d="M41 0h56v20H41z"/><path fill="url(#smooth)" d="M0 0h97v20H0z"/></g><g id="fg"><text x="5.5" y="15" class="shadow">Tests</text><text x="5" y="14" class="high">Tests</text><text x="46.5" y="15" class="shadow">789/791</text><text x="46" y="14" class="high">789/791</text></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../src/deepEqual.js"],"names":[],"mappings":";AAgFA,uBAA6D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @callback SetValue
|
|
3
3
|
* @param {import('./formats.js').StructuredCloneValue} value
|
|
4
|
-
* @param {import('./types.js').StateObject} stateObj
|
|
4
|
+
* @param {import('./types.js').StateObject} [stateObj]
|
|
5
5
|
* @returns {Promise<void>}
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
* formatChoices: FormatChoices,
|
|
39
39
|
* typesHolder: TypesHolder,
|
|
40
40
|
* domArray: [formatChoices: FormatChoices, typesHolder: TypesHolder],
|
|
41
|
-
* getValue: (stateObj
|
|
42
|
-
* currentPath
|
|
41
|
+
* getValue: (stateObj?: import('./types.js').StateObject,
|
|
42
|
+
* currentPath?: string) => import('./formats.js').StructuredCloneValue,
|
|
43
43
|
* getType: () => string,
|
|
44
44
|
* validValuesSet: () => boolean,
|
|
45
45
|
* setValue: SetValue,
|
|
@@ -67,7 +67,7 @@ export function formatAndTypeChoices({ schemas, getSchemaContent, hasValue, sing
|
|
|
67
67
|
formatChoices: FormatChoices;
|
|
68
68
|
typesHolder: TypesHolder;
|
|
69
69
|
domArray: [formatChoices: FormatChoices, typesHolder: TypesHolder];
|
|
70
|
-
getValue: (stateObj
|
|
70
|
+
getValue: (stateObj?: import("./types.js").StateObject, currentPath?: string) => import("./formats.js").StructuredCloneValue;
|
|
71
71
|
getType: () => string;
|
|
72
72
|
validValuesSet: () => boolean;
|
|
73
73
|
setValue: SetValue;
|
|
@@ -82,7 +82,7 @@ export function getFormatAndSchemaChoices({ schemas, selectedSchema, hasKeyPath,
|
|
|
82
82
|
arbitraryJS?: boolean | undefined;
|
|
83
83
|
preselectSchema?: boolean | undefined;
|
|
84
84
|
}): DocumentFragment;
|
|
85
|
-
export type SetValue = (value: import("./formats.js").StructuredCloneValue, stateObj
|
|
85
|
+
export type SetValue = (value: import("./formats.js").StructuredCloneValue, stateObj?: import("./types.js").StateObject | undefined) => Promise<void>;
|
|
86
86
|
export type ZodexSchema = import("./formats/schema.js").ZodexSchema;
|
|
87
87
|
export type TypeSelectGetter = () => HTMLSelectElement | null;
|
|
88
88
|
export type TypesHolder = HTMLDivElement;
|
|
@@ -96,7 +96,7 @@ export type TypeChoiceBuilder = (autoTrigger?: boolean | undefined) => Promise<v
|
|
|
96
96
|
*/
|
|
97
97
|
export type SetFormat = (cfg: {
|
|
98
98
|
valueFormat?: import("./formats.js").AvailableFormat;
|
|
99
|
-
autoTrigger
|
|
99
|
+
autoTrigger?: boolean;
|
|
100
100
|
schema?: string;
|
|
101
101
|
}) => Promise<void>;
|
|
102
102
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAndTypeChoices.d.ts","sourceRoot":"","sources":["../src/formatAndTypeChoices.js"],"names":[],"mappings":"AAoHA;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,2OAvCG;IAAuB,OAAO;IACyB,gBAAgB,aAAtD,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC;IAE1B,QAAQ;IAGR,WAAW;IACX,UAAU;IAKV,WAAW;IAEZ,aAAa;IAEb,cAAc;IACU,OAAO;IACT,KAAK;IAC1B,eAAe;IACf,sBAAsB;IAEtB,6BAA6B;CAEnD,GAAU,OAAO,CAAC;IAChB,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IACnE,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,YAAY,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"formatAndTypeChoices.d.ts","sourceRoot":"","sources":["../src/formatAndTypeChoices.js"],"names":[],"mappings":"AAoHA;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,2OAvCG;IAAuB,OAAO;IACyB,gBAAgB,aAAtD,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC;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iBAAiB,GAAG;IAC5B,UAAU,EAAE,SAAS,CAAC;IACtB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,UAAU,EAAE,SAAS,CAAA;CACtB;oBAvDgB,cAAc;kBADhB,YAAY"}
|
package/dist/formats/schema.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {ZodexSchema} schemaObject
|
|
3
|
+
* @returns {import('../types.js').AvailableArbitraryType|undefined}
|
|
4
|
+
*/
|
|
5
|
+
export function getSchemaType(schemaObject: ZodexSchema): import("../types.js").AvailableArbitraryType | undefined;
|
|
1
6
|
/**
|
|
2
7
|
* Exported for reuse by `src/utils/rawTypesonEditor.js`, which must enforce
|
|
3
8
|
* the same schema conformance check before accepting a raw-edited value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/formats/schema.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/formats/schema.js"],"names":[],"mappings":"AA6IA;;;GAGG;AACH,4CAHW,WAAW,GACT,OAAO,aAAa,EAAE,sBAAsB,GAAC,SAAS,CA2BlE;AAsBD;;;;;;;;GAQG;AACH,kCANW,YAAY,CAAC,cAAc,aAAa,EAAE,OAAO,CAAC,gBAClD,WAAW,iBACX,WAAW,SACX,OAAO,GACL,UAAU,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,CASnE;AAwBD;;;;;;;;;;;;;GAaG;AACH,yCALW,YAAY,CAAC,cAAc,aAAa,EAAE,OAAO,CAAC,aAClD,WAAW,GAAC,SAAS,OACrB,MAAM,GAAC,MAAM,GAAC,SAAS,GACrB,OAAO,CAenB;AAED;;;;;;;;GAQG;AACH,6CALW,YAAY,CAAC,cAAc,aAAa,EAAE,OAAO,CAAC,aAClD,OAAO,QAAQ,EAAE,OAAO,SACxB,OAAO,GACL;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAW5C;AAED;;;;;;;;GAQG;AACH,0CALW,YAAY,CAAC,cAAc,aAAa,EAAE,OAAO,CAAC,UAClD,WAAW,SACX,OAAO,GACL,OAAO,CAInB;AAiDD;;;GAGG;AACH,kDAHW,WAAW,GACT,WAAW,CAIvB;AAqOD;;;;GAIG;AACH,gDAJW,WAAW,gBACX,WAAW,GACT,GAAG,CAAC,WAAW,CAAC,CA6R5B;;;;;oBAn1BY,CAAC,IADD,CAAC,CAAC,MAAM,CAAC,CAAC;iCAKV,OAAO,CACf,IAAI,CAAC,OAAO,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CACtC;0BA2SS,OAAO,QAAQ,EAAE,MAAM;2BAGvB,OAAO,qBAAqB,EAAE,YAAY;4BAhU7B,QAAQ;AAi2BlC,6CAA6C;AAC7C,sBADW,OAAO,eAAe,EAAE,MAAM,CAyTvC"}
|
package/dist/formats.d.ts
CHANGED
|
@@ -136,10 +136,10 @@ declare class Formats {
|
|
|
136
136
|
* @param {import('./types.js').default} types
|
|
137
137
|
* @param {AvailableFormat} format
|
|
138
138
|
* @param {StructuredCloneValue} record
|
|
139
|
-
* @param {import('./types.js').StateObject} stateObj
|
|
139
|
+
* @param {import('./types.js').StateObject} [stateObj]
|
|
140
140
|
* @returns {Promise<Required<import('./types.js').StateObject>>}
|
|
141
141
|
*/
|
|
142
|
-
getControlsForFormatAndValue(types: import("./types.js").default, format: AvailableFormat, record: StructuredCloneValue, stateObj
|
|
142
|
+
getControlsForFormatAndValue(types: import("./types.js").default, format: AvailableFormat, record: StructuredCloneValue, stateObj?: import("./types.js").StateObject): Promise<Required<import("./types.js").StateObject>>;
|
|
143
143
|
getTypesAndSchemasForFormatAndState(types: import("./types.js").default, format: AvailableFormat, state?: string | undefined, schemaObject?: import("./formatAndTypeChoices.js").ZodexSchema | undefined, schemaOriginal?: import("./formatAndTypeChoices.js").ZodexSchema | undefined): TypesAndSchemaObjects | undefined;
|
|
144
144
|
/**
|
|
145
145
|
* @param {AvailableFormat} format
|
package/dist/formats.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../src/formats.js"],"names":[],"mappings":";;;;mCAQa,GAAG;0DAKL,OAAO,YAAY,EAAE,OAAO,UAC5B,eAAe,6CAEf,OAAO,2BAA2B,EAAE,WAAW,GACzD,SAAa,mBACH,OAAO,2BAA2B,EAAE,WAAW,GACzD,SAAa,KACD,qBAAqB,GAAC,SAAS;8BAa/B,cAAc,GAAC,MAAM,GAAC,mBAAmB,GAChD,aAAa,GAAC,QAAQ;oCAIf;IACR,KAAK,EAAE,CAAC,OAAO,YAAY,EAAE,sBAAsB,CAAC,EAAE,CAAC;IACvD,aAAa,EAAE,OAAO,qBAAqB,EAAE,WAAW,EAAE,CAAA;CAC3D;;;;;uCAOO,oBAAoB,YACpB,OAAO,YAAY,EAAE,WAAW,KAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAAC;;;;;;;WAKlD,MAAM,CACnB,OAAW,YAAY,EAAE,sBAAsB,CAC5C,EAAE;;;;;aAGQ,cAAc;;;;;gCAEd,CACT,KAAK,EAAE,OAAO,YAAY,EAAE,OAAO,EACnC,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,OAAO,2BAA2B,EAAE,WAAW,GAClE,SAAe,EACX,cAAc,CAAC,EAAE,OAAO,2BAA2B,EAAE,WAAW,GACpE,SAAe,KACR,qBAAqB,GAAC,SAAS;6BAGvB,MAAM,SAAS,IAAI,GAAC,KAAK,CAAC,oBAAoB,CAAC,KACrD,OAAO,GAAC,SAAS;wCAET,OAAO,YAAY,EAAE,sBAAsB,SACjD,OAAO,YAAY,EAAE,OAAO,MAC/B,OAAO,cAAc,EAAE,oBAAoB,8BACnB,MAAM,iBACnB,CACnB,OAAa,QAAQ,EAAE,MAAM,EAC7B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,WAAW,KACpD,OAAO;;AA5Ff;;;GAGG;AAEH;;;;;;;;;;GAUG;AAWH;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;GAEG;AACH;IA+BI;;MAME;IAGJ;;;;;;OAMG;IACH,oCANW,OAAO,YAAY,EAAE,OAAO,UAC5B,eAAe,UACf,oBAAoB,aACpB,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAAC,CAY/D;IArJA,2CACQ,OAAO,YAAY,EAAE,OAAO,UAC5B,eAAe,6CAEf,OAAO,2BAA2B,EAAE,WAAW,GACzD,SAAa,mBACH,OAAO,2BAA2B,EAAE,WAAW,GACzD,SAAa,GACD,qBAAqB,GAAC,SAAS,CAC3C;IAyJC;;;OAGG;IACH,2BAHW,eAAe,GACb,MAAM,CAIlB;CACF"}
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
export default dateType;
|
|
2
|
-
export type SetValidity = (legitimateInvalid?: boolean | undefined) => void;
|
|
3
1
|
/**
|
|
4
2
|
* @typedef {(
|
|
5
3
|
* legitimateInvalid?: boolean|undefined
|
|
6
4
|
* ) => void} SetValidity
|
|
7
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* The `<input type="datetime-local">` construction shared between this
|
|
8
|
+
* type's own `editUI` and the search subsystem's date-range widget
|
|
9
|
+
* (`src/search/fundamentalTypes/dateSearchType.js` calls this twice, once
|
|
10
|
+
* per range endpoint).
|
|
11
|
+
* @param {{
|
|
12
|
+
* name: string,
|
|
13
|
+
* value?: Date|string,
|
|
14
|
+
* notANum?: boolean,
|
|
15
|
+
* dateSchemaObject?: import('zodexy').SzDate
|
|
16
|
+
* }} cfg
|
|
17
|
+
* @returns {import('../types.js').JamilihArray}
|
|
18
|
+
*/
|
|
19
|
+
export function buildDateInputControl({ name, value, notANum, dateSchemaObject }: {
|
|
20
|
+
name: string;
|
|
21
|
+
value?: Date | string;
|
|
22
|
+
notANum?: boolean;
|
|
23
|
+
dateSchemaObject?: import("zodexy").SzDate;
|
|
24
|
+
}): import("../types.js").JamilihArray;
|
|
25
|
+
export default dateType;
|
|
26
|
+
export type SetValidity = (legitimateInvalid?: boolean | undefined) => void;
|
|
8
27
|
/**
|
|
9
28
|
* @type {import('../types.js').TypeObject & {
|
|
10
29
|
* dateRegex: RegExp,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/dateType.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"dateType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/dateType.js"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH;;;;;;;;;;;;GAYG;AACH,kFARW;IACN,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,IAAI,GAAC,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,QAAQ,EAAE,MAAM,CAAA;CAC3C,GACS,OAAO,aAAa,EAAE,YAAY,CAmB9C;;0BAnCY,CACR,iBAAiB,CAAC,EAAE,OAAO,GAAC,SAAS,KAClC,IAAI;AAmCZ;;;;;;;;;GASG;AACH,wBATU,OAAO,aAAa,EAAE,UAAU,GAAG;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,GAAG,EAAE;QAAC,IAAI,EAAE,cAAc,CAAA;KAAC,KAAK,OAAO,CAAC;IACpD,cAAc,EAAE,CACd,KAAK,EAAE,OAAO,eAAe,EAAE,oBAAoB,KAChD,OAAO,CAAA;IACZ,KAAK,CAAC,EAAE,IAAI,CAAA;CACb,CAuKF"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The standard predefined `DOMException` names, shared with
|
|
3
|
+
* `src/search/fundamentalTypes/domexceptionSearchType.js`'s "pull-down of
|
|
4
|
+
* name for DOMException" (README) so the two lists can't drift apart.
|
|
5
|
+
* @type {string[]}
|
|
6
|
+
*/
|
|
7
|
+
export const domExceptionNames: string[];
|
|
1
8
|
export default domexceptionType;
|
|
2
9
|
/**
|
|
3
10
|
* @type {import('../types.js').TypeObject}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domexceptionType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/domexceptionType.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"domexceptionType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/domexceptionType.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,gCAFU,MAAM,EAAE,CAkChB;;AAEF;;GAEG;AACH,gCAFU,OAAO,aAAa,EAAE,UAAU,CAiFxC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { default as Types } from "./types.js";
|
|
|
2
2
|
export { default as Formats } from "./formats.js";
|
|
3
3
|
export { buildTypeChoices as typeChoices } from "./typeChoices.js";
|
|
4
4
|
export { getTypesForSchema } from "./formats/schema.js";
|
|
5
|
+
export { buildSearchChoices } from "./search/index.js";
|
|
6
|
+
export { default as createJtltExtensions } from "./jtltExtensions.js";
|
|
5
7
|
export type TypeRootGetter = import("./formatAndTypeChoices.js").TypeRootGetter;
|
|
6
8
|
export type SetType = (cfg: {
|
|
7
9
|
type: string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;;;;;6BAEa,OAAO,2BAA2B,EAAE,cAAc;sBAGlD,CAAC,GAAG,EAAE;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IACxD,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI"}
|