@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
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {string} str
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
export function escapeRegex(str: string): string;
|
|
1
7
|
export function getPropertyValueFromLegend(legend: HTMLLegendElement): string;
|
|
2
8
|
export default Types;
|
|
3
9
|
/**
|
|
@@ -22,33 +28,38 @@ export type GetFormControlForRoot = (root: RootElement) => null | HTMLInputEleme
|
|
|
22
28
|
*/
|
|
23
29
|
export type GetValueFromRootAncestor = (selOrEl: string | HTMLElement, stateObj?: StateObject | undefined) => StructuredCloneValue;
|
|
24
30
|
export type GetFormControlFromRootAncestor = (selOrEl: string | HTMLElement) => null | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement;
|
|
25
|
-
export type
|
|
31
|
+
export type Integer = number;
|
|
32
|
+
export type GetOptionForType = (type: AvailableType, schemaContent?: import("./formatAndTypeChoices.js").ZodexSchema | undefined) => [string, {
|
|
26
33
|
value: AvailableType;
|
|
27
34
|
title?: string;
|
|
28
35
|
}];
|
|
29
|
-
export type GetTypeOptionsForFormatAndState = (format: import(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
export type GetTypeOptionsForFormatAndState = (format: import("./formats.js").AvailableFormat, parserState?: string | undefined, schemaContent?: import("./formatAndTypeChoices.js").ZodexSchema | undefined, schemaOriginal?: import("./formatAndTypeChoices.js").ZodexSchema | undefined) => {
|
|
37
|
+
typeOptions: [string, {
|
|
38
|
+
value: AvailableType;
|
|
39
|
+
title?: string;
|
|
40
|
+
}][];
|
|
41
|
+
schemaObjects: import("./formats/schema.js").ZodexSchema[];
|
|
42
|
+
};
|
|
34
43
|
export type StateObject = {
|
|
35
|
-
typeNamespace?: string
|
|
36
|
-
readonly?: boolean
|
|
37
|
-
format?: import("./formats.js").AvailableFormat
|
|
38
|
-
formats?:
|
|
39
|
-
types?: Types
|
|
40
|
-
error?: Error
|
|
41
|
-
rootUI?: Element
|
|
42
|
-
schema?: string
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
typeNamespace?: string;
|
|
45
|
+
"readonly"?: boolean;
|
|
46
|
+
format?: import("./formats.js").AvailableFormat;
|
|
47
|
+
formats?: import("./formats.js").default;
|
|
48
|
+
types?: Types;
|
|
49
|
+
error?: Error;
|
|
50
|
+
rootUI?: Element;
|
|
51
|
+
schema?: string;
|
|
52
|
+
schemaParent?: import("./formats/schema.js").ZodexSchema;
|
|
53
|
+
schemaContent?: import("./formats/schema.js").ZodexSchema;
|
|
54
|
+
specificSchema?: import("./formats/schema.js").ZodexSchema;
|
|
55
|
+
specificSchemas?: import("./formats/schema.js").ZodexSchema[];
|
|
45
56
|
paths?: {
|
|
46
57
|
[currentPath: string]: {
|
|
47
58
|
referentPath: string;
|
|
48
59
|
expectArrayReferent: boolean;
|
|
49
60
|
};
|
|
50
|
-
}
|
|
51
|
-
handlingReference?: boolean
|
|
61
|
+
};
|
|
62
|
+
handlingReference?: boolean;
|
|
52
63
|
};
|
|
53
64
|
export type GetUIForModeAndType = (cfg: {
|
|
54
65
|
readonly?: boolean;
|
|
@@ -57,13 +68,14 @@ export type GetUIForModeAndType = (cfg: {
|
|
|
57
68
|
type: AvailableType;
|
|
58
69
|
topRoot?: RootElement;
|
|
59
70
|
bringIntoFocus?: boolean | undefined;
|
|
60
|
-
buildTypeChoices?: import(
|
|
61
|
-
format: import(
|
|
62
|
-
schemaContent?:
|
|
63
|
-
|
|
71
|
+
buildTypeChoices?: import("./typeChoices.js").BuildTypeChoices;
|
|
72
|
+
format: import("./formats.js").AvailableFormat;
|
|
73
|
+
schemaContent?: import("./formats/schema.js").ZodexSchema;
|
|
74
|
+
specificSchemaObject?: import("./formats/schema.js").ZodexSchema;
|
|
64
75
|
value: StructuredCloneValue;
|
|
65
76
|
hasValue: boolean;
|
|
66
77
|
replaced?: StructuredCloneValue;
|
|
78
|
+
schemaFallingBack?: boolean;
|
|
67
79
|
}) => HTMLElement;
|
|
68
80
|
export type ValidValuesSet = (cfg: {
|
|
69
81
|
form: HTMLFormElement;
|
|
@@ -77,6 +89,7 @@ export type Validate = (cfg: {
|
|
|
77
89
|
type: AvailableType;
|
|
78
90
|
root: RootElement;
|
|
79
91
|
topRoot?: RootElement;
|
|
92
|
+
avoidReport?: boolean;
|
|
80
93
|
}) => boolean;
|
|
81
94
|
export type SetValue = (cfg: {
|
|
82
95
|
type: AvailableType;
|
|
@@ -84,42 +97,35 @@ export type SetValue = (cfg: {
|
|
|
84
97
|
value: StructuredCloneValue;
|
|
85
98
|
}) => void;
|
|
86
99
|
export type GetValueForString = (s: string, cfg: {
|
|
87
|
-
format: import(
|
|
88
|
-
state?: string
|
|
89
|
-
endMatchTypeObjs?: TypeObject[]
|
|
90
|
-
firstRun?: boolean
|
|
100
|
+
format: import("./formats.js").AvailableFormat;
|
|
101
|
+
state?: string;
|
|
102
|
+
endMatchTypeObjs?: TypeObject[];
|
|
103
|
+
firstRun?: boolean;
|
|
91
104
|
rootHolder?: [type: string, parent: {
|
|
92
105
|
[key: string]: any;
|
|
93
|
-
} | undefined, parentPath: string | number | undefined, path: string][]
|
|
106
|
+
} | undefined, parentPath: string | number | undefined, path: string][];
|
|
94
107
|
parent?: {
|
|
95
108
|
[key: string]: any;
|
|
96
|
-
}
|
|
97
|
-
parentPath?: string | number
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
beginOnly: boolean,
|
|
102
|
-
assign: boolean
|
|
103
|
-
];
|
|
109
|
+
};
|
|
110
|
+
parentPath?: string | number;
|
|
111
|
+
schemaObject?: import("./formatAndTypeChoices.js").ZodexSchema | undefined;
|
|
112
|
+
schemaOriginal?: import("./formatAndTypeChoices.js").ZodexSchema | undefined;
|
|
113
|
+
}) => [value: StructuredCloneValue, remnant: string, beginOnly: boolean, assign: boolean];
|
|
104
114
|
export type CustomValidateAllReferences = (info: {
|
|
105
115
|
topRoot: HTMLDivElement;
|
|
106
116
|
}) => void;
|
|
107
|
-
export type StructuredCloneValue = import(
|
|
108
|
-
export type JamilihArray = import(
|
|
117
|
+
export type StructuredCloneValue = import("./formats.js").StructuredCloneValue;
|
|
118
|
+
export type JamilihArray = import("jamilih").JamilihArray;
|
|
109
119
|
export type RootInfo = {
|
|
110
|
-
format: import(
|
|
120
|
+
format: import("./formats.js").AvailableFormat;
|
|
111
121
|
match: boolean | RegExpMatchArray | null;
|
|
112
122
|
endMatchTypeObjs: TypeObject[];
|
|
113
123
|
remnant: string;
|
|
114
|
-
rootHolder: [
|
|
115
|
-
type: string,
|
|
116
|
-
parent: object | undefined,
|
|
117
|
-
parentPath: string | number | undefined,
|
|
118
|
-
path: string
|
|
119
|
-
][];
|
|
124
|
+
rootHolder: [type: string, parent: object | undefined, parentPath: string | number | undefined, path: string][];
|
|
120
125
|
parent?: object;
|
|
121
126
|
parentPath?: string | number;
|
|
122
127
|
types?: Types;
|
|
128
|
+
schemaObject?: import("./formatAndTypeChoices.js").ZodexSchema | undefined;
|
|
123
129
|
};
|
|
124
130
|
export type TypeObjectSetValue = (info: {
|
|
125
131
|
root: HTMLDivElement;
|
|
@@ -134,13 +140,10 @@ export type TypeObject = {
|
|
|
134
140
|
/**
|
|
135
141
|
* Creates the option HTML. May set an option `title` or `value`
|
|
136
142
|
*/
|
|
137
|
-
option: [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
title?: string;
|
|
142
|
-
}?
|
|
143
|
-
];
|
|
143
|
+
option: [string, {
|
|
144
|
+
value?: AvailableType;
|
|
145
|
+
title?: string;
|
|
146
|
+
}?];
|
|
144
147
|
/**
|
|
145
148
|
* Private context variable. Whether or not
|
|
146
149
|
* it is an array. Do not use in other types.
|
|
@@ -156,6 +159,16 @@ export type TypeObject = {
|
|
|
156
159
|
* it is a `Set`. Do not use in other types.
|
|
157
160
|
*/
|
|
158
161
|
set?: boolean | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Private context variable. Whether or not
|
|
164
|
+
* it is a `Record`. Do not use in other types.
|
|
165
|
+
*/
|
|
166
|
+
record?: boolean | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Private context variable. Whether or not
|
|
169
|
+
* it is a tuple type. Do not use in other types.
|
|
170
|
+
*/
|
|
171
|
+
tuple?: boolean | undefined;
|
|
159
172
|
/**
|
|
160
173
|
* Private context variable. Whether or not
|
|
161
174
|
* it is a `FileList` type. Do not use in other types.
|
|
@@ -192,8 +205,8 @@ export type TypeObject = {
|
|
|
192
205
|
*/
|
|
193
206
|
stringRegexEnd?: RegExp | undefined;
|
|
194
207
|
/**
|
|
195
|
-
* Function to
|
|
196
|
-
*
|
|
208
|
+
* Function to check whether this type or subtype
|
|
209
|
+
* matches
|
|
197
210
|
*/
|
|
198
211
|
valueMatch?: ((v: StructuredCloneValue) => boolean) | undefined;
|
|
199
212
|
/**
|
|
@@ -225,22 +238,30 @@ export type TypeObject = {
|
|
|
225
238
|
type?: AvailableType;
|
|
226
239
|
topRoot?: HTMLDivElement;
|
|
227
240
|
resultType?: "keys" | "values" | "both";
|
|
228
|
-
format: import(
|
|
241
|
+
format: import("./formats.js").AvailableFormat;
|
|
242
|
+
specificSchemaObject?: import("./formats/schema.js").ZodexSchema;
|
|
229
243
|
types: Types;
|
|
230
|
-
|
|
244
|
+
bringIntoFocus?: boolean | undefined;
|
|
245
|
+
buildTypeChoices?: import("./typeChoices.js").BuildTypeChoices;
|
|
246
|
+
schemaContent?: import("./formats/schema.js").ZodexSchema;
|
|
247
|
+
replaced?: any;
|
|
248
|
+
}) => JamilihArray;
|
|
231
249
|
editUI: (info: {
|
|
232
250
|
value?: StructuredCloneValue;
|
|
233
251
|
typeNamespace?: string;
|
|
234
252
|
bringIntoFocus?: boolean;
|
|
235
|
-
format?: import(
|
|
236
|
-
formats?: import(
|
|
253
|
+
format?: import("./formats.js").AvailableFormat;
|
|
254
|
+
formats?: import("./formats.js").default;
|
|
237
255
|
types: Types;
|
|
238
256
|
resultType?: "keys" | "values" | "both";
|
|
239
257
|
type?: AvailableType;
|
|
240
|
-
|
|
241
|
-
buildTypeChoices?: import(
|
|
258
|
+
forcedState?: string;
|
|
259
|
+
buildTypeChoices?: import("./typeChoices.js").BuildTypeChoices;
|
|
242
260
|
topRoot?: HTMLDivElement;
|
|
243
|
-
|
|
261
|
+
schemaContent?: import("./formats/schema.js").ZodexSchema;
|
|
262
|
+
specificSchemaObject?: import("./formats/schema.js").ZodexSchema;
|
|
263
|
+
schemaFallingBack?: boolean;
|
|
264
|
+
}) => JamilihArray;
|
|
244
265
|
/**
|
|
245
266
|
* Gets the form control (with `value`)
|
|
246
267
|
*/
|
|
@@ -284,7 +305,7 @@ export type TypeObject = {
|
|
|
284
305
|
};
|
|
285
306
|
} | undefined;
|
|
286
307
|
};
|
|
287
|
-
export type AvailableType = "null" | "true" | "false" | "number" | "bigint" | "string" | "arrayReference" | "objectReference" | "array" | "object" | "date" | "userObject" | "undef" | "SpecialRealNumber" | "SpecialNumber" | "regexp" | "BooleanObject" | "NumberObject" | "StringObject" | "map" | "set" | "file" | "filelist" | "blobHTML" | "buffersource" | "dataview" | "imagedata" | "imagebitmap" | "int8array" | "uint8array" | "uint8clampedarray" | "int16array" | "uint16array" | "int32array" | "uint32array" | "float32array" | "float64array" | "ValidDate" | "arrayNonindexKeys" | "error" | "errors" | "blob" | "domexception" | "domrect" | "dompoint" | "dommatrix" | "resurrectable";
|
|
308
|
+
export type AvailableType = "null" | "true" | "false" | "number" | "bigint" | "bigintObject" | "string" | "arrayReference" | "objectReference" | "array" | "object" | "date" | "userObject" | "undef" | "SpecialRealNumber" | "SpecialNumber" | "regexp" | "BooleanObject" | "NumberObject" | "StringObject" | "map" | "set" | "file" | "filelist" | "blobHTML" | "buffersource" | "dataview" | "imagedata" | "imagebitmap" | "int8array" | "uint8array" | "uint8clampedarray" | "int16array" | "uint16array" | "int32array" | "uint32array" | "float32array" | "float64array" | "ValidDate" | "arrayNonindexKeys" | "error" | "errors" | "blob" | "domexception" | "domrect" | "dompoint" | "dommatrix" | "resurrectable" | "boolean" | "nan" | "tuple" | "record" | "void" | "enum" | "literal" | "symbol" | "never" | "promise" | "function" | "catch" | "nativeEnum";
|
|
288
309
|
export type SuperTypeObject = TypeObject & {
|
|
289
310
|
childTypes: string[];
|
|
290
311
|
};
|
|
@@ -327,25 +348,29 @@ export type SuperTypeObject = TypeObject & {
|
|
|
327
348
|
* @returns {null|HTMLInputElement|HTMLTextAreaElement|HTMLSelectElement|
|
|
328
349
|
* HTMLButtonElement}
|
|
329
350
|
*/
|
|
351
|
+
/**
|
|
352
|
+
* @typedef {number} Integer
|
|
353
|
+
*/
|
|
330
354
|
/**
|
|
331
355
|
* @callback GetOptionForType
|
|
332
356
|
* @param {AvailableType} type
|
|
357
|
+
* @param {import('./formatAndTypeChoices.js').ZodexSchema|
|
|
358
|
+
* undefined} [schemaContent]
|
|
333
359
|
* @returns {[string, {value: AvailableType, title?: string}]}
|
|
334
360
|
*/
|
|
335
361
|
/**
|
|
336
362
|
* @callback GetTypeOptionsForFormatAndState
|
|
337
363
|
* @param {import('./formats.js').AvailableFormat} format
|
|
338
364
|
* @param {string} [parserState]
|
|
339
|
-
* @
|
|
365
|
+
* @param {import('./formatAndTypeChoices.js').ZodexSchema|
|
|
366
|
+
* undefined} [schemaContent]
|
|
367
|
+
* @param {import('./formatAndTypeChoices.js').ZodexSchema|
|
|
368
|
+
* undefined} [schemaOriginal]
|
|
369
|
+
* @returns {{
|
|
370
|
+
* typeOptions: [string, {value: AvailableType, title?: string}][],
|
|
371
|
+
* schemaObjects: import('./formats/schema.js').ZodexSchema[]
|
|
372
|
+
* }}
|
|
340
373
|
*/
|
|
341
|
-
/**
|
|
342
|
-
* @typedef {(
|
|
343
|
-
* keypath: string,
|
|
344
|
-
* parentPath: string,
|
|
345
|
-
* arrayOrObjectPropertyName: string,
|
|
346
|
-
* valueType: string
|
|
347
|
-
* ) => StateObject} GetPossibleSchemasForPathAndType
|
|
348
|
-
*/
|
|
349
374
|
/**
|
|
350
375
|
* @typedef {{
|
|
351
376
|
* typeNamespace?: string,
|
|
@@ -356,8 +381,10 @@ export type SuperTypeObject = TypeObject & {
|
|
|
356
381
|
* error?: Error,
|
|
357
382
|
* rootUI?: Element,
|
|
358
383
|
* schema?: string,
|
|
359
|
-
*
|
|
360
|
-
*
|
|
384
|
+
* schemaParent?: import('./formats/schema.js').ZodexSchema,
|
|
385
|
+
* schemaContent?: import('./formats/schema.js').ZodexSchema,
|
|
386
|
+
* specificSchema?: import('./formats/schema.js').ZodexSchema,
|
|
387
|
+
* specificSchemas?: import('./formats/schema.js').ZodexSchema[],
|
|
361
388
|
* paths?: {[currentPath: string]: {
|
|
362
389
|
* referentPath: string,
|
|
363
390
|
* expectArrayReferent: boolean
|
|
@@ -375,11 +402,12 @@ export type SuperTypeObject = TypeObject & {
|
|
|
375
402
|
* bringIntoFocus?: boolean|undefined,
|
|
376
403
|
* buildTypeChoices?: import('./typeChoices.js').BuildTypeChoices,
|
|
377
404
|
* format: import('./formats.js').AvailableFormat,
|
|
378
|
-
* schemaContent?:
|
|
379
|
-
*
|
|
405
|
+
* schemaContent?: import('./formats/schema.js').ZodexSchema
|
|
406
|
+
* specificSchemaObject?: import('./formats/schema.js').ZodexSchema
|
|
380
407
|
* value: StructuredCloneValue,
|
|
381
408
|
* hasValue: boolean,
|
|
382
409
|
* replaced?: StructuredCloneValue,
|
|
410
|
+
* schemaFallingBack?: boolean
|
|
383
411
|
* }) => HTMLElement} GetUIForModeAndType
|
|
384
412
|
*/
|
|
385
413
|
/**
|
|
@@ -398,7 +426,8 @@ export type SuperTypeObject = TypeObject & {
|
|
|
398
426
|
* @typedef {(cfg: {
|
|
399
427
|
* type: AvailableType,
|
|
400
428
|
* root: RootElement,
|
|
401
|
-
* topRoot?: RootElement
|
|
429
|
+
* topRoot?: RootElement,
|
|
430
|
+
* avoidReport?: boolean
|
|
402
431
|
* }) => boolean} Validate
|
|
403
432
|
*/
|
|
404
433
|
/**
|
|
@@ -421,7 +450,9 @@ export type SuperTypeObject = TypeObject & {
|
|
|
421
450
|
* path: string
|
|
422
451
|
* ][],
|
|
423
452
|
* parent?: {[key: string]: any},
|
|
424
|
-
* parentPath?: string|number
|
|
453
|
+
* parentPath?: string|number,
|
|
454
|
+
* schemaObject?: import('./formatAndTypeChoices.js').ZodexSchema|undefined
|
|
455
|
+
* schemaOriginal?: import('./formatAndTypeChoices.js').ZodexSchema|undefined
|
|
425
456
|
* }) => [
|
|
426
457
|
* value: StructuredCloneValue,
|
|
427
458
|
* remnant: string,
|
|
@@ -455,6 +486,7 @@ export type SuperTypeObject = TypeObject & {
|
|
|
455
486
|
* parent?: object,
|
|
456
487
|
* parentPath?: string|number,
|
|
457
488
|
* types?: Types
|
|
489
|
+
* schemaObject?: import('./formatAndTypeChoices.js').ZodexSchema|undefined
|
|
458
490
|
* }} RootInfo
|
|
459
491
|
*/
|
|
460
492
|
/**
|
|
@@ -485,6 +517,10 @@ export type SuperTypeObject = TypeObject & {
|
|
|
485
517
|
* it is a `Map`. Do not use in other types.
|
|
486
518
|
* @property {boolean} [set] Private context variable. Whether or not
|
|
487
519
|
* it is a `Set`. Do not use in other types.
|
|
520
|
+
* @property {boolean} [record] Private context variable. Whether or not
|
|
521
|
+
* it is a `Record`. Do not use in other types.
|
|
522
|
+
* @property {boolean} [tuple] Private context variable. Whether or not
|
|
523
|
+
* it is a tuple type. Do not use in other types.
|
|
488
524
|
* @property {boolean} [filelist] Private context variable. Whether or not
|
|
489
525
|
* it is a `FileList` type. Do not use in other types.
|
|
490
526
|
* @property {boolean} [sparse] Private context variable. Whether or not
|
|
@@ -499,8 +535,10 @@ export type SuperTypeObject = TypeObject & {
|
|
|
499
535
|
* present, use `stringRegex`
|
|
500
536
|
* @property {RegExp} [stringRegexEnd] Used for string parsing. If not
|
|
501
537
|
* present, use `stringRegex`
|
|
502
|
-
* @property {(
|
|
503
|
-
*
|
|
538
|
+
* @property {(
|
|
539
|
+
* v: StructuredCloneValue
|
|
540
|
+
* ) => boolean} [valueMatch] Function to check whether this type or subtype
|
|
541
|
+
* matches
|
|
504
542
|
* @property {string} [superType] The greater fundamental type to which
|
|
505
543
|
* the type belongs
|
|
506
544
|
* @property {ToValue} [toValue] Converts from string to value. May use
|
|
@@ -521,7 +559,12 @@ export type SuperTypeObject = TypeObject & {
|
|
|
521
559
|
* topRoot?: HTMLDivElement,
|
|
522
560
|
* resultType?: "keys"|"values"|"both",
|
|
523
561
|
* format: import('./formats.js').AvailableFormat,
|
|
562
|
+
* specificSchemaObject?: import('./formats/schema.js').ZodexSchema,
|
|
524
563
|
* types: Types
|
|
564
|
+
* bringIntoFocus?: boolean|undefined,
|
|
565
|
+
* buildTypeChoices?: import('./typeChoices.js').BuildTypeChoices,
|
|
566
|
+
* schemaContent?: import('./formats/schema.js').ZodexSchema
|
|
567
|
+
* replaced?: any
|
|
525
568
|
* }) => JamilihArray} viewUI
|
|
526
569
|
* @property {(info: {
|
|
527
570
|
* value?: StructuredCloneValue,
|
|
@@ -532,9 +575,12 @@ export type SuperTypeObject = TypeObject & {
|
|
|
532
575
|
* types: Types,
|
|
533
576
|
* resultType?: "keys"|"values"|"both",
|
|
534
577
|
* type?: AvailableType,
|
|
535
|
-
*
|
|
578
|
+
* forcedState?: string,
|
|
536
579
|
* buildTypeChoices?: import('./typeChoices.js').BuildTypeChoices,
|
|
537
580
|
* topRoot?: HTMLDivElement
|
|
581
|
+
* schemaContent?: import('./formats/schema.js').ZodexSchema,
|
|
582
|
+
* specificSchemaObject?: import('./formats/schema.js').ZodexSchema,
|
|
583
|
+
* schemaFallingBack?: boolean
|
|
538
584
|
* }) => JamilihArray} editUI
|
|
539
585
|
* @property {(info: {root: HTMLDivElement}) =>
|
|
540
586
|
* HTMLInputElement|HTMLTextAreaElement|HTMLSelectElement|
|
|
@@ -563,7 +609,8 @@ export type SuperTypeObject = TypeObject & {
|
|
|
563
609
|
* context types
|
|
564
610
|
*/
|
|
565
611
|
/**
|
|
566
|
-
* @typedef {"null"|"true"|"false"|"number"|"bigint"|"
|
|
612
|
+
* @typedef {"null"|"true"|"false"|"number"|"bigint"|"bigintObject"|
|
|
613
|
+
* "string"|"arrayReference"|
|
|
567
614
|
* "objectReference"|"array"|"object"|"date"|"userObject"|"undef"|
|
|
568
615
|
* "SpecialRealNumber"|"SpecialNumber"|"regexp"|"BooleanObject"|
|
|
569
616
|
* "NumberObject"|"StringObject"|"map"|"set"|"file"|"filelist"|"blobHTML"|
|
|
@@ -571,7 +618,10 @@ export type SuperTypeObject = TypeObject & {
|
|
|
571
618
|
* "int8array"|"uint8array"|"uint8clampedarray"|"int16array"|"uint16array"|
|
|
572
619
|
* "int32array"|"uint32array"|"float32array"|"float64array"|"ValidDate"|
|
|
573
620
|
* "arrayNonindexKeys"|"error"|"errors"|"blob"|"domexception"|"domrect"|
|
|
574
|
-
* "dompoint"|"dommatrix"|"resurrectable"
|
|
621
|
+
* "dompoint"|"dommatrix"|"resurrectable"|"boolean"|"nan"|"tuple"|
|
|
622
|
+
* "record"|"void"|"enum"|"literal"|"symbol"|"never"|"promise"|
|
|
623
|
+
* "function"|"catch"|"nativeEnum"
|
|
624
|
+
* } AvailableType
|
|
575
625
|
*/
|
|
576
626
|
/**
|
|
577
627
|
* @typedef {TypeObject & {
|
|
@@ -590,55 +640,7 @@ declare class Types {
|
|
|
590
640
|
* [key in AvailableType]: Partial<TypeObject>|string[]
|
|
591
641
|
* }}
|
|
592
642
|
*/
|
|
593
|
-
availableTypes: {
|
|
594
|
-
string: string[] | Partial<TypeObject>;
|
|
595
|
-
number: string[] | Partial<TypeObject>;
|
|
596
|
-
bigint: string[] | Partial<TypeObject>;
|
|
597
|
-
object: string[] | Partial<TypeObject>;
|
|
598
|
-
map: string[] | Partial<TypeObject>;
|
|
599
|
-
set: string[] | Partial<TypeObject>;
|
|
600
|
-
false: string[] | Partial<TypeObject>;
|
|
601
|
-
error: string[] | Partial<TypeObject>;
|
|
602
|
-
file: string[] | Partial<TypeObject>;
|
|
603
|
-
blob: string[] | Partial<TypeObject>;
|
|
604
|
-
date: string[] | Partial<TypeObject>;
|
|
605
|
-
null: string[] | Partial<TypeObject>;
|
|
606
|
-
regexp: string[] | Partial<TypeObject>;
|
|
607
|
-
array: string[] | Partial<TypeObject>;
|
|
608
|
-
true: string[] | Partial<TypeObject>;
|
|
609
|
-
arrayReference: string[] | Partial<TypeObject>;
|
|
610
|
-
objectReference: string[] | Partial<TypeObject>;
|
|
611
|
-
userObject: string[] | Partial<TypeObject>;
|
|
612
|
-
undef: string[] | Partial<TypeObject>;
|
|
613
|
-
SpecialRealNumber: string[] | Partial<TypeObject>;
|
|
614
|
-
SpecialNumber: string[] | Partial<TypeObject>;
|
|
615
|
-
BooleanObject: string[] | Partial<TypeObject>;
|
|
616
|
-
NumberObject: string[] | Partial<TypeObject>;
|
|
617
|
-
StringObject: string[] | Partial<TypeObject>;
|
|
618
|
-
filelist: string[] | Partial<TypeObject>;
|
|
619
|
-
blobHTML: string[] | Partial<TypeObject>;
|
|
620
|
-
buffersource: string[] | Partial<TypeObject>;
|
|
621
|
-
dataview: string[] | Partial<TypeObject>;
|
|
622
|
-
imagedata: string[] | Partial<TypeObject>;
|
|
623
|
-
imagebitmap: string[] | Partial<TypeObject>;
|
|
624
|
-
int8array: string[] | Partial<TypeObject>;
|
|
625
|
-
uint8array: string[] | Partial<TypeObject>;
|
|
626
|
-
uint8clampedarray: string[] | Partial<TypeObject>;
|
|
627
|
-
int16array: string[] | Partial<TypeObject>;
|
|
628
|
-
uint16array: string[] | Partial<TypeObject>;
|
|
629
|
-
int32array: string[] | Partial<TypeObject>;
|
|
630
|
-
uint32array: string[] | Partial<TypeObject>;
|
|
631
|
-
float32array: string[] | Partial<TypeObject>;
|
|
632
|
-
float64array: string[] | Partial<TypeObject>;
|
|
633
|
-
ValidDate: string[] | Partial<TypeObject>;
|
|
634
|
-
arrayNonindexKeys: string[] | Partial<TypeObject>;
|
|
635
|
-
errors: string[] | Partial<TypeObject>;
|
|
636
|
-
domexception: string[] | Partial<TypeObject>;
|
|
637
|
-
domrect: string[] | Partial<TypeObject>;
|
|
638
|
-
dompoint: string[] | Partial<TypeObject>;
|
|
639
|
-
dommatrix: string[] | Partial<TypeObject>;
|
|
640
|
-
resurrectable: string[] | Partial<TypeObject>;
|
|
641
|
-
};
|
|
643
|
+
availableTypes: { [key in AvailableType]: Partial<TypeObject> | string[]; };
|
|
642
644
|
/**
|
|
643
645
|
* @type {{
|
|
644
646
|
* [key: string]: {
|
|
@@ -660,7 +662,7 @@ declare class Types {
|
|
|
660
662
|
* @param {StateObject} stateObj
|
|
661
663
|
* @returns {Promise<Element>}
|
|
662
664
|
*/
|
|
663
|
-
getControlsForFormatAndValue(format: import(
|
|
665
|
+
getControlsForFormatAndValue(format: import("./formats.js").AvailableFormat, record: StructuredCloneValue, stateObj: StateObject): Promise<Element>;
|
|
664
666
|
/**
|
|
665
667
|
* @param {import('./formats.js').AvailableFormat} format
|
|
666
668
|
* @param {string} context
|
|
@@ -669,7 +671,7 @@ declare class Types {
|
|
|
669
671
|
* after: AvailableType
|
|
670
672
|
* }[]}
|
|
671
673
|
*/
|
|
672
|
-
getContextInfo(format: import(
|
|
674
|
+
getContextInfo(format: import("./formats.js").AvailableFormat, context: string): {
|
|
673
675
|
type: AvailableType;
|
|
674
676
|
after: AvailableType;
|
|
675
677
|
}[];
|
|
@@ -677,14 +679,17 @@ declare class Types {
|
|
|
677
679
|
getFormControlForRoot(root: RootElement): null | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement;
|
|
678
680
|
getValueFromRootAncestor(selOrEl: string | HTMLElement, stateObj?: StateObject | undefined): StructuredCloneValue;
|
|
679
681
|
getFormControlFromRootAncestor(selOrEl: string | HTMLElement): null | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement;
|
|
680
|
-
getOptionForType(type: AvailableType): [string, {
|
|
682
|
+
getOptionForType(type: AvailableType, schemaContent?: import("./formatAndTypeChoices.js").ZodexSchema | undefined): [string, {
|
|
681
683
|
value: AvailableType;
|
|
682
684
|
title?: string;
|
|
683
685
|
}];
|
|
684
|
-
getTypeOptionsForFormatAndState(format: import(
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
getTypeOptionsForFormatAndState(format: import("./formats.js").AvailableFormat, parserState?: string | undefined, schemaContent?: import("./formatAndTypeChoices.js").ZodexSchema | undefined, schemaOriginal?: import("./formatAndTypeChoices.js").ZodexSchema | undefined): {
|
|
687
|
+
typeOptions: [string, {
|
|
688
|
+
value: AvailableType;
|
|
689
|
+
title?: string;
|
|
690
|
+
}][];
|
|
691
|
+
schemaObjects: import("./formats/schema.js").ZodexSchema[];
|
|
692
|
+
};
|
|
688
693
|
getUIForModeAndType(cfg: {
|
|
689
694
|
readonly?: boolean;
|
|
690
695
|
resultType?: "both" | "keys" | "values";
|
|
@@ -692,13 +697,14 @@ declare class Types {
|
|
|
692
697
|
type: AvailableType;
|
|
693
698
|
topRoot?: RootElement;
|
|
694
699
|
bringIntoFocus?: boolean | undefined;
|
|
695
|
-
buildTypeChoices?: import(
|
|
696
|
-
format: import(
|
|
697
|
-
schemaContent?:
|
|
698
|
-
|
|
700
|
+
buildTypeChoices?: import("./typeChoices.js").BuildTypeChoices;
|
|
701
|
+
format: import("./formats.js").AvailableFormat;
|
|
702
|
+
schemaContent?: import("./formats/schema.js").ZodexSchema;
|
|
703
|
+
specificSchemaObject?: import("./formats/schema.js").ZodexSchema;
|
|
699
704
|
value: StructuredCloneValue;
|
|
700
705
|
hasValue: boolean;
|
|
701
706
|
replaced?: StructuredCloneValue;
|
|
707
|
+
schemaFallingBack?: boolean;
|
|
702
708
|
}): HTMLElement;
|
|
703
709
|
validateAllReferences(cfg: {
|
|
704
710
|
topRoot: RootElement;
|
|
@@ -707,6 +713,7 @@ declare class Types {
|
|
|
707
713
|
type: AvailableType;
|
|
708
714
|
root: RootElement;
|
|
709
715
|
topRoot?: RootElement;
|
|
716
|
+
avoidReport?: boolean;
|
|
710
717
|
}): boolean;
|
|
711
718
|
setValue(cfg: {
|
|
712
719
|
type: AvailableType;
|
|
@@ -714,23 +721,20 @@ declare class Types {
|
|
|
714
721
|
value: StructuredCloneValue;
|
|
715
722
|
}): void;
|
|
716
723
|
getValueForString(s: string, cfg: {
|
|
717
|
-
format: import(
|
|
718
|
-
state?: string
|
|
719
|
-
endMatchTypeObjs?: TypeObject[]
|
|
720
|
-
firstRun?: boolean
|
|
724
|
+
format: import("./formats.js").AvailableFormat;
|
|
725
|
+
state?: string;
|
|
726
|
+
endMatchTypeObjs?: TypeObject[];
|
|
727
|
+
firstRun?: boolean;
|
|
721
728
|
rootHolder?: [type: string, parent: {
|
|
722
729
|
[key: string]: any;
|
|
723
|
-
} | undefined, parentPath: string | number | undefined, path: string][]
|
|
730
|
+
} | undefined, parentPath: string | number | undefined, path: string][];
|
|
724
731
|
parent?: {
|
|
725
732
|
[key: string]: any;
|
|
726
|
-
}
|
|
727
|
-
parentPath?: string | number
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
beginOnly: boolean,
|
|
732
|
-
assign: boolean
|
|
733
|
-
];
|
|
733
|
+
};
|
|
734
|
+
parentPath?: string | number;
|
|
735
|
+
schemaObject?: import("./formatAndTypeChoices.js").ZodexSchema | undefined;
|
|
736
|
+
schemaOriginal?: import("./formatAndTypeChoices.js").ZodexSchema | undefined;
|
|
737
|
+
}): [value: StructuredCloneValue, remnant: string, beginOnly: boolean, assign: boolean];
|
|
734
738
|
/**
|
|
735
739
|
* @param {AvailableType} type
|
|
736
740
|
* @returns {Partial<TypeObject>|string[]}
|
|
@@ -738,11 +742,11 @@ declare class Types {
|
|
|
738
742
|
getTypeObject(type: AvailableType): Partial<TypeObject> | string[];
|
|
739
743
|
}
|
|
740
744
|
declare namespace Types {
|
|
741
|
-
function getTypeForRoot(root:
|
|
745
|
+
function getTypeForRoot(root: RootElement | null): string;
|
|
742
746
|
function validValuesSet(cfg: {
|
|
743
747
|
form: HTMLFormElement;
|
|
744
|
-
typeNamespace?: string
|
|
745
|
-
keySelectClass?: string
|
|
748
|
+
typeNamespace?: string;
|
|
749
|
+
keySelectClass?: string;
|
|
746
750
|
}): boolean;
|
|
747
751
|
}
|
|
748
752
|
import Formats from './formats.js';
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.js"],"names":[],"mappings":"AAmDO,mDAHI,iBAAiB,GACf,MAAM,CAmBlB;;;;;0BAIY,cAAc;;;;oCAMf,WAAW,YACV,MAAM;;;;;qCAOR,WAAW,2EAGT,oBAAoB;;;;2CAMtB,WAAW,KACT,IAAI,GAChB,gBAAoB,GAAC,mBAAmB,GAAC,iBAAiB,GAAC,iBAAiB;;;;iDAMlE,MAAM,GAAC,WAAW,yCAEhB,oBAAoB;uDAKtB,MAAM,GAAC,WAAW,KAChB,IAAI,GAAC,gBAAgB,GAAC,mBAAmB,GAAC,iBAAiB,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,MAAM,CAAC;QAC3B,cAAkB,CAAC,EAAE,MAAM,CAAC;KACzB,GAAK,OAAO,CAAA;;oBA3MI,cAAc"}
|
package/dist/utils/dialogs.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare namespace dialogs {
|
|
|
51
51
|
children?: import("jamilih").JamilihChildren | undefined;
|
|
52
52
|
close?: boolean | import("jamilih").EventHandler | undefined;
|
|
53
53
|
remove?: boolean | undefined;
|
|
54
|
-
}
|
|
54
|
+
}[];
|
|
55
55
|
}): HTMLDialogElement;
|
|
56
56
|
/**
|
|
57
57
|
* @param {object} cfg
|
|
@@ -80,7 +80,7 @@ declare namespace dialogs {
|
|
|
80
80
|
children?: import("jamilih").JamilihChildren | undefined;
|
|
81
81
|
close?: boolean | import("jamilih").EventHandler | undefined;
|
|
82
82
|
remove?: boolean | undefined;
|
|
83
|
-
}
|
|
83
|
+
}[];
|
|
84
84
|
} | undefined;
|
|
85
85
|
}): HTMLDialogElement;
|
|
86
86
|
/**
|
|
@@ -91,7 +91,7 @@ declare namespace dialogs {
|
|
|
91
91
|
* @returns {Promise<void>}
|
|
92
92
|
*/
|
|
93
93
|
function alert(message: string | {
|
|
94
|
-
submitClass?: string
|
|
94
|
+
submitClass?: string;
|
|
95
95
|
message: string | import("jamilih").JamilihArray;
|
|
96
96
|
}): Promise<void>;
|
|
97
97
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogs.d.ts","sourceRoot":"","sources":["../../src/utils/dialogs.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialogs.d.ts","sourceRoot":"","sources":["../../src/utils/dialogs.js"],"names":[],"mappings":";qBAKa;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC;;uBAYvB,MAAM;IAEjB;;;OAGG;IACH,iDAFa,IAAI,CAIhB;IAED;;;;;;OAMG;IACH;;;OAGG;IACH;;;;;QAFa,iBAAiB,CAmB7B;IACD;;;;;;;;OAQG;IACH;;;OAGG;IACH;yBAVW;YAAC,CAAC,EAAE,KAAK,CAAC;YAAC,MAAM,EAAE,iBAAiB,CAAA;SAAC,KACxC,OAAO;;;eAGD;;;;;WAAiB;QAIlB,iBAAiB,CA4B7B;IACD;;;;;;;OAOG;IACH,wEANG;QAAmE,MAAM,EAAjE,CAAC,IAAI,EAAE;YAAC,CAAC,EAAE,KAAK,CAAC;YAAC,MAAM,EAAE,iBAAiB,CAAA;SAAC,KAAK,IAAI;QACxC,UAAU;QACV,WAAW;QACH,IAAI;6BA1CzB;gBAAC,CAAC,EAAE,KAAK,CAAC;gBAAC,MAAM,EAAE,iBAAiB,CAAA;aAAC,KACxC,OAAO;;;mBAGD;;;;;eAAiB;;KAuC5B,GAAU,iBAAiB,CAmB7B;IACD;;;;;;OAMG;IACH,wBANW,MAAM,GAAC;QACjB,WAAe,CAAC,EAAE,MAAM,CAAC;QACzB,OAAW,EAAE,MAAM,GAAC,OAAO,SAAS,EAAE,YAAY,CAAA;KAC/C,GACS,OAAO,CAAC,IAAI,CAAC,CAmBzB;IACD;;;;;OAKG;IACH,iDAJG;QAAkD,IAAI;QAChB,OAAO,EAArC,MAAM,GAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAC;QACX,WAAW;KAAC,gBA0BnC"}
|