@es-joy/jsoe 0.15.0 → 0.17.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/.ncurc.cjs +4 -5
- package/CHANGES.md +9 -0
- package/README.md +28 -4
- package/badges/licenses-badge.svg +1 -0
- package/dist/formatAndTypeChoices.d.ts +39 -19
- package/dist/formatAndTypeChoices.d.ts.map +1 -1
- package/dist/formats/indexedDBKey.d.ts +1 -1
- package/dist/formats/indexedDBKey.d.ts.map +1 -1
- package/dist/formats/json.d.ts +1 -1
- package/dist/formats/json.d.ts.map +1 -1
- package/dist/formats/schema.d.ts +11 -0
- package/dist/formats/schema.d.ts.map +1 -0
- package/dist/formats/structuredCloning.d.ts +11 -13
- package/dist/formats/structuredCloning.d.ts.map +1 -1
- package/dist/formats.d.ts +86 -25
- package/dist/formats.d.ts.map +1 -1
- package/dist/fundamentalTypes/BooleanObjectType.d.ts +1 -1
- package/dist/fundamentalTypes/BooleanObjectType.d.ts.map +1 -1
- package/dist/fundamentalTypes/NumberObjectType.d.ts +1 -1
- package/dist/fundamentalTypes/NumberObjectType.d.ts.map +1 -1
- package/dist/fundamentalTypes/StringObjectType.d.ts +1 -1
- package/dist/fundamentalTypes/StringObjectType.d.ts.map +1 -1
- package/dist/fundamentalTypes/arrayReferenceType.d.ts +1 -1
- package/dist/fundamentalTypes/arrayType.d.ts +3 -3
- package/dist/fundamentalTypes/arrayType.d.ts.map +1 -1
- package/dist/fundamentalTypes/bigintObjectType.d.ts +6 -0
- package/dist/fundamentalTypes/bigintObjectType.d.ts.map +1 -0
- package/dist/fundamentalTypes/bigintType.d.ts +1 -1
- package/dist/fundamentalTypes/bigintType.d.ts.map +1 -1
- package/dist/fundamentalTypes/blobType.d.ts +1 -1
- package/dist/fundamentalTypes/blobType.d.ts.map +1 -1
- package/dist/fundamentalTypes/booleanType.d.ts +8 -0
- package/dist/fundamentalTypes/booleanType.d.ts.map +1 -0
- package/dist/fundamentalTypes/catchType.d.ts +6 -0
- package/dist/fundamentalTypes/catchType.d.ts.map +1 -0
- package/dist/fundamentalTypes/dateType.d.ts +4 -4
- package/dist/fundamentalTypes/dateType.d.ts.map +1 -1
- package/dist/fundamentalTypes/domexceptionType.d.ts +1 -1
- package/dist/fundamentalTypes/domexceptionType.d.ts.map +1 -1
- package/dist/fundamentalTypes/enumType.d.ts +6 -0
- package/dist/fundamentalTypes/enumType.d.ts.map +1 -0
- package/dist/fundamentalTypes/errorType.d.ts +1 -1
- package/dist/fundamentalTypes/errorType.d.ts.map +1 -1
- package/dist/fundamentalTypes/fileType.d.ts +1 -1
- package/dist/fundamentalTypes/fileType.d.ts.map +1 -1
- package/dist/fundamentalTypes/filelistType.d.ts +1 -1
- package/dist/fundamentalTypes/filelistType.d.ts.map +1 -1
- package/dist/fundamentalTypes/functionType.d.ts +6 -0
- package/dist/fundamentalTypes/functionType.d.ts.map +1 -0
- package/dist/fundamentalTypes/literalType.d.ts +6 -0
- package/dist/fundamentalTypes/literalType.d.ts.map +1 -0
- package/dist/fundamentalTypes/mapType.d.ts +1 -1
- package/dist/fundamentalTypes/mapType.d.ts.map +1 -1
- package/dist/fundamentalTypes/nanType.d.ts +6 -0
- package/dist/fundamentalTypes/nanType.d.ts.map +1 -0
- package/dist/fundamentalTypes/nativeEnumType.d.ts +6 -0
- package/dist/fundamentalTypes/nativeEnumType.d.ts.map +1 -0
- package/dist/fundamentalTypes/neverType.d.ts +6 -0
- package/dist/fundamentalTypes/neverType.d.ts.map +1 -0
- package/dist/fundamentalTypes/noneditableType.d.ts +1 -1
- package/dist/fundamentalTypes/noneditableType.d.ts.map +1 -1
- package/dist/fundamentalTypes/nullType.d.ts +1 -1
- package/dist/fundamentalTypes/nullType.d.ts.map +1 -1
- package/dist/fundamentalTypes/numberType.d.ts +1 -1
- package/dist/fundamentalTypes/numberType.d.ts.map +1 -1
- package/dist/fundamentalTypes/objectReferenceType.d.ts +1 -1
- package/dist/fundamentalTypes/objectType.d.ts +1 -1
- package/dist/fundamentalTypes/objectType.d.ts.map +1 -1
- package/dist/fundamentalTypes/promiseType.d.ts +6 -0
- package/dist/fundamentalTypes/promiseType.d.ts.map +1 -0
- package/dist/fundamentalTypes/recordType.d.ts +6 -0
- package/dist/fundamentalTypes/recordType.d.ts.map +1 -0
- package/dist/fundamentalTypes/regexpType.d.ts +1 -1
- package/dist/fundamentalTypes/regexpType.d.ts.map +1 -1
- package/dist/fundamentalTypes/setType.d.ts +1 -1
- package/dist/fundamentalTypes/setType.d.ts.map +1 -1
- package/dist/fundamentalTypes/sparseUndefinedType.d.ts +1 -1
- package/dist/fundamentalTypes/sparseUndefinedType.d.ts.map +1 -1
- package/dist/fundamentalTypes/stringType.d.ts +1 -1
- package/dist/fundamentalTypes/stringType.d.ts.map +1 -1
- package/dist/fundamentalTypes/symbolType.d.ts +8 -0
- package/dist/fundamentalTypes/symbolType.d.ts.map +1 -0
- package/dist/fundamentalTypes/tupleType.d.ts +6 -0
- package/dist/fundamentalTypes/tupleType.d.ts.map +1 -0
- package/dist/fundamentalTypes/undefinedType.d.ts +1 -1
- package/dist/fundamentalTypes/undefinedType.d.ts.map +1 -1
- package/dist/fundamentalTypes/voidType.d.ts +6 -0
- package/dist/fundamentalTypes/voidType.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9661 -1587
- package/dist/subTypes/blobHTMLType.d.ts.map +1 -1
- package/dist/subTypes/falseType.d.ts +1 -1
- package/dist/subTypes/trueType.d.ts +1 -1
- package/dist/superTypes/SpecialNumberType.d.ts +1 -1
- package/dist/superTypes/SpecialRealNumberType.d.ts +1 -1
- package/dist/superTypes/SpecialRealNumberType.d.ts.map +1 -1
- package/dist/superTypes/buffersourceType.d.ts +1 -1
- package/dist/superTypes/buffersourceType.d.ts.map +1 -1
- package/dist/superTypes/dommatrixType.d.ts +1 -1
- package/dist/superTypes/dommatrixType.d.ts.map +1 -1
- package/dist/superTypes/dompointType.d.ts +1 -1
- package/dist/superTypes/dompointType.d.ts.map +1 -1
- package/dist/superTypes/domrectType.d.ts +1 -1
- package/dist/superTypes/domrectType.d.ts.map +1 -1
- package/dist/superTypes/errorsSpecialType.d.ts +1 -1
- package/dist/superTypes/errorsSpecialType.d.ts.map +1 -1
- package/dist/typeChoices.d.ts +33 -16
- package/dist/typeChoices.d.ts.map +1 -1
- package/dist/types.d.ts +161 -157
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/dialogs.d.ts +3 -3
- package/dist/utils/dialogs.d.ts.map +1 -1
- package/dist/utils/jsonPointer.d.ts.map +1 -1
- package/dist/utils/media.d.ts.map +1 -1
- package/dist/utils/objects.d.ts +16 -0
- package/dist/utils/objects.d.ts.map +1 -0
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/vendor-imports.d.ts +1 -1
- package/eslint.config.js +74 -0
- package/licenseInfo.json +4 -0
- package/package.json +59 -69
- package/rollup.config.js +16 -1
- package/src/formatAndTypeChoices.js +68 -54
- package/src/formats/indexedDBKey.js +9 -4
- package/src/formats/json.js +7 -4
- package/src/formats/schema.js +772 -0
- package/src/formats/structuredCloning.js +187 -86
- package/src/formats.js +61 -26
- package/src/fundamentalTypes/BooleanObjectType.js +18 -6
- package/src/fundamentalTypes/NumberObjectType.js +18 -5
- package/src/fundamentalTypes/StringObjectType.js +20 -8
- package/src/fundamentalTypes/arrayType.js +1241 -533
- package/src/fundamentalTypes/bigintObjectType.js +64 -0
- package/src/fundamentalTypes/bigintType.js +31 -5
- package/src/fundamentalTypes/blobType.js +201 -190
- package/src/fundamentalTypes/booleanType.js +63 -0
- package/src/fundamentalTypes/catchType.js +140 -0
- package/src/fundamentalTypes/dateType.js +57 -19
- package/src/fundamentalTypes/domexceptionType.js +61 -63
- package/src/fundamentalTypes/enumType.js +52 -0
- package/src/fundamentalTypes/errorType.js +20 -7
- package/src/fundamentalTypes/fileType.js +195 -189
- package/src/fundamentalTypes/filelistType.js +4 -0
- package/src/fundamentalTypes/functionType.js +150 -0
- package/src/fundamentalTypes/literalType.js +81 -0
- package/src/fundamentalTypes/mapType.js +4 -0
- package/src/fundamentalTypes/nanType.js +41 -0
- package/src/fundamentalTypes/nativeEnumType.js +155 -0
- package/src/fundamentalTypes/neverType.js +44 -0
- package/src/fundamentalTypes/noneditableType.js +19 -5
- package/src/fundamentalTypes/nullType.js +16 -6
- package/src/fundamentalTypes/numberType.js +49 -6
- package/src/fundamentalTypes/objectType.js +10 -2
- package/src/fundamentalTypes/promiseType.js +60 -0
- package/src/fundamentalTypes/recordType.js +42 -0
- package/src/fundamentalTypes/regexpType.js +52 -34
- package/src/fundamentalTypes/setType.js +4 -0
- package/src/fundamentalTypes/sparseUndefinedType.js +3 -0
- package/src/fundamentalTypes/stringType.js +254 -6
- package/src/fundamentalTypes/symbolType.js +81 -0
- package/src/fundamentalTypes/tupleType.js +39 -0
- package/src/fundamentalTypes/undefinedType.js +14 -4
- package/src/fundamentalTypes/voidType.js +48 -0
- package/src/jsoe.css +37 -3
- package/src/subTypes/blobHTMLType.js +33 -24
- package/src/superTypes/SpecialRealNumberType.js +22 -6
- package/src/superTypes/buffersourceType.js +86 -30
- package/src/superTypes/dommatrixType.js +24 -7
- package/src/superTypes/dompointType.js +27 -7
- package/src/superTypes/domrectType.js +33 -7
- package/src/superTypes/errorsSpecialType.js +30 -14
- package/src/typeChoices.js +115 -44
- package/src/types.js +129 -45
- package/src/utils/FileList.js +3 -3
- package/src/utils/dialogs.js +6 -8
- package/src/utils/objects.js +22 -0
- package/src/vendor-imports.js +1 -1
- package/tsconfig.json +2 -2
- package/vendor/jamilih/dist/jml-es.js +23 -6
- package/vendor/typeson-registry/dist/index.js +77 -47
- package/vendor/zod/lib/index.mjs +4236 -0
- package/vendor/zodex/dist/esm/dezerialize.d.ts +26 -0
- package/vendor/zodex/dist/esm/dezerialize.js +393 -0
- package/vendor/zodex/dist/esm/index.d.ts +9 -0
- package/vendor/zodex/dist/esm/index.js +4 -0
- package/vendor/zodex/dist/esm/infer.d.ts +29 -0
- package/vendor/zodex/dist/esm/infer.js +1 -0
- package/vendor/zodex/dist/esm/package.json +1 -0
- package/vendor/zodex/dist/esm/types.d.ts +201 -0
- package/vendor/zodex/dist/esm/types.js +13 -0
- package/vendor/zodex/dist/esm/ui.d.ts +23 -0
- package/vendor/zodex/dist/esm/ui.js +10 -0
- package/vendor/zodex/dist/esm/zerialize.d.ts +50 -0
- package/vendor/zodex/dist/esm/zerialize.js +417 -0
- package/vendor/zodex/dist/esm/zod-types.d.ts +11 -0
- package/vendor/zodex/dist/esm/zod-types.js +1 -0
- package/.eslintignore +0 -13
- package/.eslintrc.cjs +0 -145
- package/.nyc_output/out.json +0 -114984
- package/cypress.config.ts +0 -15
- package/demo/index-instrumented.html +0 -29
- package/demo/index.html +0 -29
- package/demo/index.js +0 -644
- package/src/formats/schemaAndArbitrary.js +0 -20
- package/src/formats/schemaOnly.js +0 -539
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blobHTMLType.d.ts","sourceRoot":"","sources":["../../src/subTypes/blobHTMLType.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blobHTMLType.d.ts","sourceRoot":"","sources":["../../src/subTypes/blobHTMLType.js"],"names":[],"mappings":";+BAQa,mBAAmB,GAAG;IAClC,gBAAoB,EAAE;QAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,MAAM,GAAC,IAAI,CAAA;KAAC,CAAA;CACvD;AAHJ;;;;GAIG;AAEH;;;;GAIG;AACH,4BAJU,OAAO,aAAa,EAAE,UAAU,GAAG;IAC5C,QAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAC1C,CA8KF"}
|
|
@@ -2,7 +2,7 @@ export default falseType;
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {import('../types.js').TypeObject & {ct: number}}
|
|
4
4
|
*/
|
|
5
|
-
declare const falseType: import(
|
|
5
|
+
declare const falseType: import("../types.js").TypeObject & {
|
|
6
6
|
ct: number;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=falseType.d.ts.map
|
|
@@ -2,7 +2,7 @@ export default trueType;
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {import('../types.js').TypeObject & {ct: number}}
|
|
4
4
|
*/
|
|
5
|
-
declare const trueType: import(
|
|
5
|
+
declare const trueType: import("../types.js").TypeObject & {
|
|
6
6
|
ct: number;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=trueType.d.ts.map
|
|
@@ -2,5 +2,5 @@ export default SpecialNumberSuperType;
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {import('../types.js').SuperTypeObject}
|
|
4
4
|
*/
|
|
5
|
-
declare const SpecialNumberSuperType: import(
|
|
5
|
+
declare const SpecialNumberSuperType: import("../types.js").SuperTypeObject;
|
|
6
6
|
//# sourceMappingURL=SpecialNumberType.d.ts.map
|
|
@@ -2,5 +2,5 @@ export default SpecialRealNumberSuperType;
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {import('../types.js').SuperTypeObject}
|
|
4
4
|
*/
|
|
5
|
-
declare const SpecialRealNumberSuperType: import(
|
|
5
|
+
declare const SpecialRealNumberSuperType: import("../types.js").SuperTypeObject;
|
|
6
6
|
//# sourceMappingURL=SpecialRealNumberType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialRealNumberType.d.ts","sourceRoot":"","sources":["../../src/superTypes/SpecialRealNumberType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0CAFU,OAAO,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"SpecialRealNumberType.d.ts","sourceRoot":"","sources":["../../src/superTypes/SpecialRealNumberType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0CAFU,OAAO,aAAa,EAAE,eAAe,CAyE7C"}
|
|
@@ -4,5 +4,5 @@ export type TypedArrayInstance = Int8Array | Uint8Array | Uint8ClampedArray | In
|
|
|
4
4
|
/**
|
|
5
5
|
* @type {import('../types.js').SuperTypeObject}
|
|
6
6
|
*/
|
|
7
|
-
declare const buffersourceType: import(
|
|
7
|
+
declare const buffersourceType: import("../types.js").SuperTypeObject;
|
|
8
8
|
//# sourceMappingURL=buffersourceType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffersourceType.d.ts","sourceRoot":"","sources":["../../src/superTypes/buffersourceType.js"],"names":[],"mappings":";yBA4Da,WAAW,GAAC,YAAY,GAAC,mBAAmB,GACxD,YAAgB,GAAC,aAAa,GAAC,YAAY,GAAC,aAAa,GACzD,cAAkB,GAAC,cAAc,GAAC,eAAe,GACjD,gBAAoB;iCAIR,SAAS,GAAC,UAAU,GAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"buffersourceType.d.ts","sourceRoot":"","sources":["../../src/superTypes/buffersourceType.js"],"names":[],"mappings":";yBA4Da,WAAW,GAAC,YAAY,GAAC,mBAAmB,GACxD,YAAgB,GAAC,aAAa,GAAC,YAAY,GAAC,aAAa,GACzD,cAAkB,GAAC,cAAc,GAAC,eAAe,GACjD,gBAAoB;iCAIR,SAAS,GAAC,UAAU,GAAC,iBAAiB,GAC9C,UAAU,GAAC,WAAW,GAAC,UAAU,GAAC,WAAW,GAC9C,YAAY,GAAC,YAAY,GAAC,aAAa,GACvC,cAAc;AAmDlB;;GAEG;AACH,gCAFU,OAAO,aAAa,EAAE,eAAe,CA02C7C"}
|
|
@@ -2,5 +2,5 @@ export default dommatrixType;
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {import('../types.js').SuperTypeObject}
|
|
4
4
|
*/
|
|
5
|
-
declare const dommatrixType: import(
|
|
5
|
+
declare const dommatrixType: import("../types.js").SuperTypeObject;
|
|
6
6
|
//# sourceMappingURL=dommatrixType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dommatrixType.d.ts","sourceRoot":"","sources":["../../src/superTypes/dommatrixType.js"],"names":[],"mappings":";AAKA;;GAEG;AACH,6BAFU,OAAO,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"dommatrixType.d.ts","sourceRoot":"","sources":["../../src/superTypes/dommatrixType.js"],"names":[],"mappings":";AAKA;;GAEG;AACH,6BAFU,OAAO,aAAa,EAAE,eAAe,CAma7C"}
|
|
@@ -2,5 +2,5 @@ export default dompointType;
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {import('../types.js').SuperTypeObject}
|
|
4
4
|
*/
|
|
5
|
-
declare const dompointType: import(
|
|
5
|
+
declare const dompointType: import("../types.js").SuperTypeObject;
|
|
6
6
|
//# sourceMappingURL=dompointType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dompointType.d.ts","sourceRoot":"","sources":["../../src/superTypes/dompointType.js"],"names":[],"mappings":";AAKA;;GAEG;AACH,4BAFU,OAAO,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"dompointType.d.ts","sourceRoot":"","sources":["../../src/superTypes/dompointType.js"],"names":[],"mappings":";AAKA;;GAEG;AACH,4BAFU,OAAO,aAAa,EAAE,eAAe,CAyK7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domrectType.d.ts","sourceRoot":"","sources":["../../src/superTypes/domrectType.js"],"names":[],"mappings":";AAKA;;GAEG;AACH,2BAFU,OAAO,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"domrectType.d.ts","sourceRoot":"","sources":["../../src/superTypes/domrectType.js"],"names":[],"mappings":";AAKA;;GAEG;AACH,2BAFU,OAAO,aAAa,EAAE,eAAe,CA8K7C"}
|
|
@@ -4,5 +4,5 @@ export type SpecialErrorType = ErrorConstructor | AggregateErrorConstructor;
|
|
|
4
4
|
/**
|
|
5
5
|
* @type {import('../types.js').SuperTypeObject}
|
|
6
6
|
*/
|
|
7
|
-
declare const errorsSpecialType: import(
|
|
7
|
+
declare const errorsSpecialType: import("../types.js").SuperTypeObject;
|
|
8
8
|
//# sourceMappingURL=errorsSpecialType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorsSpecialType.d.ts","sourceRoot":"","sources":["../../src/superTypes/errorsSpecialType.js"],"names":[],"mappings":";sBAOa,MAAM;+BAaN,gBAAgB,GAAC,yBAAyB;AAyBvD;;GAEG;AACH,iCAFU,OAAO,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"errorsSpecialType.d.ts","sourceRoot":"","sources":["../../src/superTypes/errorsSpecialType.js"],"names":[],"mappings":";sBAOa,MAAM;+BAaN,gBAAgB,GAAC,yBAAyB;AAyBvD;;GAEG;AACH,iCAFU,OAAO,aAAa,EAAE,eAAe,CAsuB7C"}
|
package/dist/typeChoices.d.ts
CHANGED
|
@@ -2,16 +2,23 @@
|
|
|
2
2
|
* @typedef {(cfg: {
|
|
3
3
|
* type: string,
|
|
4
4
|
* baseValue?: import('./formats.js').StructuredCloneValue,
|
|
5
|
-
* bringIntoFocus?: boolean
|
|
5
|
+
* bringIntoFocus?: boolean,
|
|
6
|
+
* avoidReport?: boolean
|
|
6
7
|
* }) => void} SetType
|
|
7
8
|
*/
|
|
8
9
|
/**
|
|
9
|
-
* @typedef {(info: {
|
|
10
|
+
* @typedef {(info: {
|
|
11
|
+
* type: string,
|
|
12
|
+
* editUI: Element,
|
|
13
|
+
* specificSchema?: import('zodex').SzType
|
|
14
|
+
* }) => void} AddTypeAndEditUI
|
|
10
15
|
*/
|
|
11
16
|
/**
|
|
12
17
|
* @typedef {(info?: {
|
|
13
18
|
* baseValue?: import('./formats.js').StructuredCloneValue,
|
|
14
|
-
* bringIntoFocus?: boolean
|
|
19
|
+
* bringIntoFocus?: boolean,
|
|
20
|
+
* schemaObject?: import('./formatAndTypeChoices.js').ZodexSchema,
|
|
21
|
+
* avoidReport?: boolean
|
|
15
22
|
* }) => void} AddAndValidateEditUI
|
|
16
23
|
*/
|
|
17
24
|
/**
|
|
@@ -47,12 +54,13 @@
|
|
|
47
54
|
/**
|
|
48
55
|
* @callback BuildTypeChoices
|
|
49
56
|
* @param {{
|
|
57
|
+
* autoTrigger?: boolean,
|
|
50
58
|
* format: import('./formats.js').AvailableFormat,
|
|
51
59
|
* typeNamespace?: string,
|
|
52
60
|
* value?: import('./formats.js').StructuredCloneValue,
|
|
53
61
|
* setValue?: boolean,
|
|
54
62
|
* state?: string,
|
|
55
|
-
*
|
|
63
|
+
* forcedState?: string,
|
|
56
64
|
* keySelectClass?: string,
|
|
57
65
|
* requireObject?: boolean,
|
|
58
66
|
* objectHasValue?: boolean,
|
|
@@ -60,7 +68,9 @@
|
|
|
60
68
|
* formats?: import('./formats.js').default
|
|
61
69
|
* types?: import('./types.js').default
|
|
62
70
|
* schema?: string,
|
|
63
|
-
*
|
|
71
|
+
* schemaIdx?: number,
|
|
72
|
+
* schemaOriginal?: import('./formatAndTypeChoices.js').ZodexSchema,
|
|
73
|
+
* schemaContent?: import('./formatAndTypeChoices.js').ZodexSchema,
|
|
64
74
|
* }} cfg
|
|
65
75
|
* @returns {{
|
|
66
76
|
* domArray: [select: HTMLElement, typeContainer: HTMLElement],
|
|
@@ -76,41 +86,48 @@
|
|
|
76
86
|
export const buildTypeChoices: BuildTypeChoices;
|
|
77
87
|
export type SetType = (cfg: {
|
|
78
88
|
type: string;
|
|
79
|
-
baseValue?: import(
|
|
89
|
+
baseValue?: import("./formats.js").StructuredCloneValue;
|
|
80
90
|
bringIntoFocus?: boolean;
|
|
91
|
+
avoidReport?: boolean;
|
|
81
92
|
}) => void;
|
|
82
93
|
export type AddTypeAndEditUI = (info: {
|
|
83
94
|
type: string;
|
|
84
95
|
editUI: Element;
|
|
96
|
+
specificSchema?: import("zodex").SzType;
|
|
85
97
|
}) => void;
|
|
86
98
|
export type AddAndValidateEditUI = (info?: {
|
|
87
|
-
baseValue?: import(
|
|
99
|
+
baseValue?: import("./formats.js").StructuredCloneValue;
|
|
88
100
|
bringIntoFocus?: boolean;
|
|
101
|
+
schemaObject?: import("./formatAndTypeChoices.js").ZodexSchema;
|
|
102
|
+
avoidReport?: boolean;
|
|
89
103
|
}) => void;
|
|
90
104
|
export type SetStyles = () => void;
|
|
91
105
|
export type TypeChoicesElementAPI = HTMLElement & {
|
|
92
106
|
$addAndValidateEditUI: AddAndValidateEditUI;
|
|
93
107
|
$setStyles: SetStyles;
|
|
94
108
|
};
|
|
95
|
-
export type GetValue = (stateObj?: import("./types.js").StateObject | undefined, currentPath?: string | undefined) => import(
|
|
109
|
+
export type GetValue = (stateObj?: import("./types.js").StateObject | undefined, currentPath?: string | undefined) => import("./formats.js").StructuredCloneValue;
|
|
96
110
|
export type GetType = () => string;
|
|
97
111
|
export type ValidValuesSet = () => boolean;
|
|
98
|
-
export type SetValue = (value: import(
|
|
112
|
+
export type SetValue = (value: import("./formats.js").StructuredCloneValue, stateObj: import("./types.js").StateObject) => Promise<void>;
|
|
99
113
|
export type BuildTypeChoices = (cfg: {
|
|
100
|
-
|
|
114
|
+
autoTrigger?: boolean;
|
|
115
|
+
format: import("./formats.js").AvailableFormat;
|
|
101
116
|
typeNamespace?: string;
|
|
102
|
-
value?: import(
|
|
117
|
+
value?: import("./formats.js").StructuredCloneValue;
|
|
103
118
|
setValue?: boolean;
|
|
104
119
|
state?: string;
|
|
105
|
-
|
|
120
|
+
forcedState?: string;
|
|
106
121
|
keySelectClass?: string;
|
|
107
122
|
requireObject?: boolean;
|
|
108
123
|
objectHasValue?: boolean;
|
|
109
|
-
topRoot?: import(
|
|
110
|
-
formats?: import(
|
|
111
|
-
types?: import(
|
|
124
|
+
topRoot?: import("./types.js").RootElement;
|
|
125
|
+
formats?: import("./formats.js").default;
|
|
126
|
+
types?: import("./types.js").default;
|
|
112
127
|
schema?: string;
|
|
113
|
-
|
|
128
|
+
schemaIdx?: number;
|
|
129
|
+
schemaOriginal?: import("./formatAndTypeChoices.js").ZodexSchema;
|
|
130
|
+
schemaContent?: import("./formatAndTypeChoices.js").ZodexSchema;
|
|
114
131
|
}) => {
|
|
115
132
|
domArray: [select: HTMLElement, typeContainer: HTMLElement];
|
|
116
133
|
getValue: GetValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChoices.d.ts","sourceRoot":"","sources":["../src/typeChoices.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"typeChoices.d.ts","sourceRoot":"","sources":["../src/typeChoices.js"],"names":[],"mappings":"AASA;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;GAEG;AACH,+BAFU,gBAAgB,CAiUxB;sBA7ZW,CAAC,GAAG,EAAE;IAClB,IAAQ,EAAE,MAAM,CAAC;IACjB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAe,CAAC,EAAE,OAAO,CAAA;CACtB,KAAK,IAAI;+BAIA,CAAC,IAAI,EAAE;IACnB,IAAQ,EAAE,MAAM,CAAC;IACjB,MAAU,EAAE,OAAO,CAAC;IACpB,cAAkB,CAAC,EAAE,OAAO,OAAO,EAAE,MAAM,CAAA;CACxC,KAAK,IAAI;mCAIA,CAAC,IAAI,CAAC,EAAE;IACpB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAgB,CAAC,EAAE,OAAO,2BAA2B,EAAE,WAAW,CAAC;IACnE,WAAe,CAAC,EAAE,OAAO,CAAA;CACtB,KAAK,IAAI;wBAIA,MAAM,IAAI;oCAIV,WAAW,GAAG;IAC1B,qBAAyB,EAAE,oBAAoB,CAAC;IAChD,UAAc,EAAE,SAAS,CAAA;CACtB;sHAQS,OAAO,cAAc,EAAE,oBAAoB;4BAK3C,MAAM;mCAKN,OAAO;+BAKT,OAAO,cAAc,EAAE,oBAAoB,YAC3C,OAAO,YAAY,EAAE,WAAW,KAC9B,OAAO,CAAC,IAAI,CAAC;qCAKf;IACV,WAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAU,EAAE,OAAO,cAAc,EAAE,eAAe,CAAC;IACnD,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAS,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IACxD,QAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAW,CAAC,EAAE,OAAO,YAAY,EAAE,WAAW,CAAC;IAC/C,OAAW,CAAC,EAAE,OAAO,cAAc,EAAE,OAAO,CAAA;IAC5C,KAAS,CAAC,EAAE,OAAO,YAAY,EAAE,OAAO,CAAA;IACxC,MAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAkB,CAAC,EAAE,OAAO,2BAA2B,EAAE,WAAW,CAAC;IACrE,aAAiB,CAAC,EAAE,OAAO,2BAA2B,EAAE,WAAW,CAAC;CACjE,KACS;IACZ,QAAY,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;IAChE,QAAY,EAAE,QAAQ,CAAC;IACvB,OAAW,EAAE,OAAO,CAAC;IACrB,cAAkB,EAAE,cAAc,CAAC;IACnC,QAAY,EAAE,QAAQ,CAAA;CACnB"}
|