@es-joy/jsoe 0.3.0 → 0.4.1

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.
Files changed (189) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.cjs +1 -0
  3. package/.ncurc.cjs +9 -0
  4. package/CHANGES.md +8 -0
  5. package/demo/index.html +8 -0
  6. package/demo/index.js +1 -1
  7. package/dist/formatAndTypeChoices.d.ts +56 -0
  8. package/dist/formatAndTypeChoices.d.ts.map +1 -0
  9. package/dist/formats/indexedDBKey.d.ts +4 -0
  10. package/dist/formats/indexedDBKey.d.ts.map +1 -0
  11. package/dist/formats/json.d.ts +4 -0
  12. package/dist/formats/json.d.ts.map +1 -0
  13. package/dist/formats/schemaAndArbitrary.d.ts +6 -0
  14. package/dist/formats/schemaAndArbitrary.d.ts.map +1 -0
  15. package/dist/formats/schemaOnly.d.ts +6 -0
  16. package/dist/formats/schemaOnly.d.ts.map +1 -0
  17. package/dist/formats/structuredCloning.d.ts +20 -0
  18. package/dist/formats/structuredCloning.d.ts.map +1 -0
  19. package/dist/formats.d.ts +26 -0
  20. package/dist/formats.d.ts.map +1 -0
  21. package/dist/fundamentalTypes/BooleanObjectType.d.ts +8 -0
  22. package/dist/fundamentalTypes/BooleanObjectType.d.ts.map +1 -0
  23. package/dist/fundamentalTypes/NumberObjectType.d.ts +6 -0
  24. package/dist/fundamentalTypes/NumberObjectType.d.ts.map +1 -0
  25. package/dist/fundamentalTypes/StringObjectType.d.ts +6 -0
  26. package/dist/fundamentalTypes/StringObjectType.d.ts.map +1 -0
  27. package/dist/fundamentalTypes/arrayReferenceType.d.ts +8 -0
  28. package/dist/fundamentalTypes/arrayReferenceType.d.ts.map +1 -0
  29. package/dist/fundamentalTypes/arrayType.d.ts +60 -0
  30. package/dist/fundamentalTypes/arrayType.d.ts.map +1 -0
  31. package/dist/fundamentalTypes/bigintType.d.ts +6 -0
  32. package/dist/fundamentalTypes/bigintType.d.ts.map +1 -0
  33. package/dist/fundamentalTypes/dateType.d.ts +26 -0
  34. package/dist/fundamentalTypes/dateType.d.ts.map +1 -0
  35. package/dist/fundamentalTypes/nullType.d.ts +6 -0
  36. package/dist/fundamentalTypes/nullType.d.ts.map +1 -0
  37. package/dist/fundamentalTypes/numberType.d.ts +6 -0
  38. package/dist/fundamentalTypes/numberType.d.ts.map +1 -0
  39. package/dist/fundamentalTypes/objectReferenceType.d.ts +8 -0
  40. package/dist/fundamentalTypes/objectReferenceType.d.ts.map +1 -0
  41. package/dist/fundamentalTypes/objectType.d.ts +6 -0
  42. package/dist/fundamentalTypes/objectType.d.ts.map +1 -0
  43. package/dist/fundamentalTypes/regexpType.d.ts +8 -0
  44. package/dist/fundamentalTypes/regexpType.d.ts.map +1 -0
  45. package/dist/fundamentalTypes/sparseUndefinedType.d.ts +6 -0
  46. package/dist/fundamentalTypes/sparseUndefinedType.d.ts.map +1 -0
  47. package/dist/fundamentalTypes/stringType.d.ts +6 -0
  48. package/dist/fundamentalTypes/stringType.d.ts.map +1 -0
  49. package/dist/fundamentalTypes/undefinedType.d.ts +6 -0
  50. package/dist/fundamentalTypes/undefinedType.d.ts.map +1 -0
  51. package/dist/index.d.ts +5 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/src/deepEqual.d.ts +3 -0
  54. package/dist/src/deepEqual.d.ts.map +1 -0
  55. package/dist/src/formatAndTypeChoices.d.ts +47 -0
  56. package/dist/src/formatAndTypeChoices.d.ts.map +1 -0
  57. package/dist/src/formats/indexedDBKey.d.ts +9 -0
  58. package/dist/src/formats/indexedDBKey.d.ts.map +1 -0
  59. package/dist/src/formats/json.d.ts +9 -0
  60. package/dist/src/formats/json.d.ts.map +1 -0
  61. package/dist/src/formats/schemaAndArbitrary.d.ts +6 -0
  62. package/dist/src/formats/schemaAndArbitrary.d.ts.map +1 -0
  63. package/dist/src/formats/schemaOnly.d.ts +6 -0
  64. package/dist/src/formats/schemaOnly.d.ts.map +1 -0
  65. package/dist/src/formats/structuredCloning.d.ts +15 -0
  66. package/dist/src/formats/structuredCloning.d.ts.map +1 -0
  67. package/dist/src/formats.d.ts +18 -0
  68. package/dist/src/formats.d.ts.map +1 -0
  69. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts +6 -0
  70. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts.map +1 -0
  71. package/dist/src/fundamentalTypes/NumberObjectType.d.ts +6 -0
  72. package/dist/src/fundamentalTypes/NumberObjectType.d.ts.map +1 -0
  73. package/dist/src/fundamentalTypes/StringObjectType.d.ts +6 -0
  74. package/dist/src/fundamentalTypes/StringObjectType.d.ts.map +1 -0
  75. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts +6 -0
  76. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts.map +1 -0
  77. package/dist/src/fundamentalTypes/arrayType.d.ts +6 -0
  78. package/dist/src/fundamentalTypes/arrayType.d.ts.map +1 -0
  79. package/dist/src/fundamentalTypes/bigintType.d.ts +6 -0
  80. package/dist/src/fundamentalTypes/bigintType.d.ts.map +1 -0
  81. package/dist/src/fundamentalTypes/dateType.d.ts +6 -0
  82. package/dist/src/fundamentalTypes/dateType.d.ts.map +1 -0
  83. package/dist/src/fundamentalTypes/nullType.d.ts +6 -0
  84. package/dist/src/fundamentalTypes/nullType.d.ts.map +1 -0
  85. package/dist/src/fundamentalTypes/numberType.d.ts +6 -0
  86. package/dist/src/fundamentalTypes/numberType.d.ts.map +1 -0
  87. package/dist/src/fundamentalTypes/objectReferenceType.d.ts +6 -0
  88. package/dist/src/fundamentalTypes/objectReferenceType.d.ts.map +1 -0
  89. package/dist/src/fundamentalTypes/objectType.d.ts +6 -0
  90. package/dist/src/fundamentalTypes/objectType.d.ts.map +1 -0
  91. package/dist/src/fundamentalTypes/regexpType.d.ts +6 -0
  92. package/dist/src/fundamentalTypes/regexpType.d.ts.map +1 -0
  93. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts +6 -0
  94. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts.map +1 -0
  95. package/dist/src/fundamentalTypes/stringType.d.ts +6 -0
  96. package/dist/src/fundamentalTypes/stringType.d.ts.map +1 -0
  97. package/dist/src/fundamentalTypes/undefinedType.d.ts +6 -0
  98. package/dist/src/fundamentalTypes/undefinedType.d.ts.map +1 -0
  99. package/dist/src/index.d.ts +5 -0
  100. package/dist/src/index.d.ts.map +1 -0
  101. package/dist/src/subTypes/blobHTMLType.d.ts +26 -0
  102. package/dist/src/subTypes/blobHTMLType.d.ts.map +1 -0
  103. package/dist/src/subTypes/falseType.d.ts +6 -0
  104. package/dist/src/subTypes/falseType.d.ts.map +1 -0
  105. package/dist/src/subTypes/trueType.d.ts +6 -0
  106. package/dist/src/subTypes/trueType.d.ts.map +1 -0
  107. package/dist/src/superTypes/SpecialNumberSuperType.d.ts +11 -0
  108. package/dist/src/superTypes/SpecialNumberSuperType.d.ts.map +1 -0
  109. package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts +6 -0
  110. package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts.map +1 -0
  111. package/dist/src/typeChoices.d.ts +30 -0
  112. package/dist/src/typeChoices.d.ts.map +1 -0
  113. package/dist/src/types.d.ts +333 -0
  114. package/dist/src/types.d.ts.map +1 -0
  115. package/dist/src/utils/dialogs.d.ts +29 -0
  116. package/dist/src/utils/dialogs.d.ts.map +1 -0
  117. package/dist/src/utils/jsonPointer.d.ts +42 -0
  118. package/dist/src/utils/jsonPointer.d.ts.map +1 -0
  119. package/dist/src/utils/templateUtils.d.ts +59 -0
  120. package/dist/src/utils/templateUtils.d.ts.map +1 -0
  121. package/dist/src/utils/types.d.ts +2 -0
  122. package/dist/src/utils/types.d.ts.map +1 -0
  123. package/dist/subTypes/blobHTMLType.d.ts +14 -0
  124. package/dist/subTypes/blobHTMLType.d.ts.map +1 -0
  125. package/dist/subTypes/falseType.d.ts +8 -0
  126. package/dist/subTypes/falseType.d.ts.map +1 -0
  127. package/dist/subTypes/trueType.d.ts +8 -0
  128. package/dist/subTypes/trueType.d.ts.map +1 -0
  129. package/dist/superTypes/SpecialNumberSuperType.d.ts +14 -0
  130. package/dist/superTypes/SpecialNumberSuperType.d.ts.map +1 -0
  131. package/dist/superTypes/SpecialRealNumberSuperType.d.ts +6 -0
  132. package/dist/superTypes/SpecialRealNumberSuperType.d.ts.map +1 -0
  133. package/dist/typeChoices.d.ts +103 -0
  134. package/dist/typeChoices.d.ts.map +1 -0
  135. package/dist/types.d.ts +523 -0
  136. package/dist/types.d.ts.map +1 -0
  137. package/dist/utils/dialogs.d.ts +109 -0
  138. package/dist/utils/dialogs.d.ts.map +1 -0
  139. package/dist/utils/jsonPointer.d.ts +46 -0
  140. package/dist/utils/jsonPointer.d.ts.map +1 -0
  141. package/dist/utils/templateUtils.d.ts +59 -0
  142. package/dist/utils/templateUtils.d.ts.map +1 -0
  143. package/dist/utils/types.d.ts +2 -0
  144. package/dist/utils/types.d.ts.map +1 -0
  145. package/dist/vendor/jamilih/dist/jml-es.d.ts +436 -0
  146. package/dist/vendor/jamilih/dist/jml-es.d.ts.map +1 -0
  147. package/dist/vendor/typeson-registry/dist/index.d.ts +400 -0
  148. package/dist/vendor/typeson-registry/dist/index.d.ts.map +1 -0
  149. package/dist/vendor-imports.d.ts +3 -0
  150. package/dist/vendor-imports.d.ts.map +1 -0
  151. package/package.json +17 -11
  152. package/postorder-traversal.js +58 -0
  153. package/src/formatAndTypeChoices.js +95 -50
  154. package/src/formats/indexedDBKey.js +49 -57
  155. package/src/formats/json.js +47 -56
  156. package/src/formats/schemaOnly.js +12 -2
  157. package/src/formats/structuredCloning.js +162 -105
  158. package/src/formats.js +38 -10
  159. package/src/fundamentalTypes/BooleanObjectType.js +6 -4
  160. package/src/fundamentalTypes/NumberObjectType.js +5 -3
  161. package/src/fundamentalTypes/StringObjectType.js +1 -1
  162. package/src/fundamentalTypes/arrayReferenceType.js +29 -14
  163. package/src/fundamentalTypes/arrayType.js +789 -278
  164. package/src/fundamentalTypes/bigintType.js +2 -2
  165. package/src/fundamentalTypes/dateType.js +42 -14
  166. package/src/fundamentalTypes/nullType.js +1 -1
  167. package/src/fundamentalTypes/numberType.js +2 -2
  168. package/src/fundamentalTypes/objectReferenceType.js +7 -5
  169. package/src/fundamentalTypes/regexpType.js +45 -24
  170. package/src/fundamentalTypes/sparseUndefinedType.js +7 -1
  171. package/src/fundamentalTypes/stringType.js +1 -1
  172. package/src/fundamentalTypes/undefinedType.js +2 -2
  173. package/src/subTypes/blobHTMLType.js +42 -22
  174. package/src/subTypes/falseType.js +2 -2
  175. package/src/subTypes/trueType.js +2 -2
  176. package/src/superTypes/SpecialNumberSuperType.js +13 -6
  177. package/src/superTypes/SpecialRealNumberSuperType.js +11 -5
  178. package/src/typeChoices.js +137 -55
  179. package/src/types.js +309 -146
  180. package/src/utils/dialogs.js +98 -29
  181. package/src/utils/jsonPointer.js +4 -0
  182. package/src/utils/templateUtils.js +27 -12
  183. package/src/vendor-imports.js +8 -0
  184. package/tsconfig.json +18 -0
  185. package/typings/sceditor.d.ts +20 -0
  186. package/vendor/jamilih/dist/jml-es.js +1019 -389
  187. package/vendor/jamilih/dist/jml.d.ts +436 -0
  188. package/vendor/jamilih/package.json +136 -0
  189. package/vendor/typeson-registry/dist/index.js +365 -83
@@ -0,0 +1,523 @@
1
+ export function getPropertyValueFromLegend(legend: HTMLLegendElement): string;
2
+ export default Types;
3
+ export type StructuredCloneValue = import('./formats.js').StructuredCloneValue;
4
+ export type JamilihArray = import('jamilih').JamilihArray;
5
+ export type RootInfo = {
6
+ format: import('./formats.js').AvailableFormat;
7
+ endMatchTypeObjs: TypeObject[];
8
+ remnant: string;
9
+ rootHolder: [
10
+ type: string,
11
+ parent: object,
12
+ parentPath: string | number,
13
+ path: string
14
+ ][];
15
+ parent: object;
16
+ parentPath: string | number;
17
+ };
18
+ export type TypeObject = {
19
+ /**
20
+ * Creates the option HTML. May set an option `title` or `value`
21
+ */
22
+ option: [
23
+ string,
24
+ {
25
+ value?: AvailableType;
26
+ title?: string;
27
+ }?
28
+ ];
29
+ /**
30
+ * Private context variable. Whether or not
31
+ * it is an array. Do not use in other types.
32
+ */
33
+ array?: boolean | undefined;
34
+ /**
35
+ * Used for string parsing.
36
+ */
37
+ regexEndings?: string[] | undefined;
38
+ /**
39
+ * Used
40
+ * for string parsing. If not present, use `stringRegexBegin` and
41
+ * `stringRegexEnd`.
42
+ */
43
+ stringRegex?: RegExp | ((nonGrouping?: boolean) => RegExp) | undefined;
44
+ /**
45
+ * Used for string parsing. If not
46
+ * present, use `stringRegex`
47
+ */
48
+ stringRegexBegin?: RegExp | undefined;
49
+ /**
50
+ * Used for string parsing. If not
51
+ * present, use `stringRegex`
52
+ */
53
+ stringRegexEnd?: RegExp | undefined;
54
+ /**
55
+ * Function to
56
+ * check whether this subtype matches
57
+ */
58
+ valueMatch?: ((v: StructuredCloneValue) => boolean) | undefined;
59
+ /**
60
+ * The greater fundamental type to which
61
+ * the type belongs
62
+ */
63
+ superType?: string | undefined;
64
+ /**
65
+ * Converts from string to value. May use
66
+ * `stringRegex` to find components.
67
+ */
68
+ toValue: (s: string, info?: RootInfo) => StructuredCloneValue;
69
+ /**
70
+ * Gets the value for the type
71
+ */
72
+ getValue: (info: {
73
+ root: HTMLDivElement;
74
+ stateObj?: StateObject;
75
+ currentPath?: string;
76
+ }) => StructuredCloneValue;
77
+ /**
78
+ * Should set the value of the form's `getInput` element
79
+ */
80
+ setValue?: ((info: {
81
+ root: HTMLDivElement;
82
+ value: StructuredCloneValue;
83
+ }) => void) | undefined;
84
+ viewUI: (info: {
85
+ value?: StructuredCloneValue;
86
+ typeNamespace?: string;
87
+ type?: AvailableType;
88
+ topRoot?: HTMLDivElement;
89
+ resultType?: "keys" | "values" | "both";
90
+ format: import('./formats.js').AvailableFormat;
91
+ }) => import("jamilih").JamilihArray;
92
+ editUI: (info: {
93
+ value?: StructuredCloneValue;
94
+ typeNamespace?: string;
95
+ bringIntoFocus?: boolean;
96
+ format?: import('./formats.js').AvailableFormat;
97
+ resultType?: "keys" | "values" | "both";
98
+ type?: AvailableType;
99
+ buildTypeChoices?: import('./typeChoices.js').BuildTypeChoices;
100
+ topRoot?: HTMLDivElement;
101
+ }) => import("jamilih").JamilihArray;
102
+ /**
103
+ * Gets the form control (with `value`)
104
+ */
105
+ getInput: (info: {
106
+ root: HTMLDivElement;
107
+ }) => HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement;
108
+ getSelect?: ((info: {
109
+ root: HTMLDivElement;
110
+ }) => HTMLSelectElement) | undefined;
111
+ /**
112
+ * Gets the reference. For array
113
+ * and object references types only
114
+ */
115
+ resolveReference?: ((path: string, value: StructuredCloneValue) => StructuredCloneValue) | undefined;
116
+ /**
117
+ * Message will be used if validity is false.
118
+ */
119
+ validate?: ((info: {
120
+ root: HTMLDivElement;
121
+ topRoot?: HTMLDivElement;
122
+ }) => {
123
+ message?: string;
124
+ valid: boolean;
125
+ }) | undefined;
126
+ /**
127
+ * For
128
+ * validation of array and object references only.
129
+ */
130
+ validateAll?: ((info: {
131
+ topRoot: HTMLDivElement;
132
+ }) => void) | undefined;
133
+ /**
134
+ * The type after which it should be placed and its
135
+ * context types
136
+ */
137
+ stateDependent?: {
138
+ structuredCloning: {
139
+ after: AvailableType;
140
+ contexts: string[];
141
+ };
142
+ } | undefined;
143
+ };
144
+ 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" | "arraybuffer" | "arraybufferview" | "dataview" | "imagedata" | "imagebitmap" | "int8array" | "uint8array" | "uint8clampedarray" | "int16array" | "uint16array" | "int32array" | "uint32array" | "float32array" | "float64array" | "IntlCollator" | "IntlDateTimeFormat" | "IntlNumberFormat" | "sparseUndefined" | "ValidDate" | "arrayNonindexKeys";
145
+ export type GetPossibleSchemasForPathAndType = (keypath: string, parentPath: string, arrayOrObjectPropertyName: string, valueType: string) => StateObject;
146
+ export type StateObject = {
147
+ typeNamespace?: string | undefined;
148
+ readonly?: boolean | undefined;
149
+ format?: import("./formats.js").AvailableFormat | undefined;
150
+ error?: Error | undefined;
151
+ rootUI?: Element | undefined;
152
+ schema?: string | undefined;
153
+ schemaContent?: object | undefined;
154
+ getPossibleSchemasForPathAndType?: GetPossibleSchemasForPathAndType | undefined;
155
+ paths?: {
156
+ [currentPath: string]: {
157
+ referentPath: string;
158
+ expectArrayReferent: boolean;
159
+ };
160
+ } | undefined;
161
+ handlingReference?: boolean | undefined;
162
+ };
163
+ /**
164
+ * Any other possibilities than `div`?
165
+ */
166
+ export type RootElement = HTMLDivElement;
167
+ declare namespace Types {
168
+ namespace availableTypes {
169
+ export { nullType as null };
170
+ export { trueType as true };
171
+ export { falseType as false };
172
+ export { numberType as number };
173
+ export { bigintType as bigint };
174
+ export { stringType as string };
175
+ export { arrayReferenceType as arrayReference };
176
+ export { objectReferenceType as objectReference };
177
+ export { arrayType as array };
178
+ export { objectType as object };
179
+ export { dateType as date };
180
+ export const userObject: string[];
181
+ export { undefinedType as undef };
182
+ export { SpecialRealNumberSuperType as SpecialRealNumber };
183
+ export { SpecialNumberSuperType as SpecialNumber };
184
+ export { regexpType as regexp };
185
+ export { BooleanObjectType as BooleanObject };
186
+ export { NumberObjectType as NumberObject };
187
+ export { StringObjectType as StringObject };
188
+ export namespace map {
189
+ const option: string[];
190
+ }
191
+ export namespace set {
192
+ const option_1: string[];
193
+ export { option_1 as option };
194
+ }
195
+ export namespace file {
196
+ const option_2: string[];
197
+ export { option_2 as option };
198
+ }
199
+ export namespace filelist {
200
+ const option_3: string[];
201
+ export { option_3 as option };
202
+ }
203
+ export { blobHTMLType as blobHTML };
204
+ export namespace arraybuffer {
205
+ const option_4: string[];
206
+ export { option_4 as option };
207
+ }
208
+ export namespace arraybufferview {
209
+ const option_5: string[];
210
+ export { option_5 as option };
211
+ }
212
+ export namespace dataview {
213
+ const option_6: string[];
214
+ export { option_6 as option };
215
+ }
216
+ export namespace imagedata {
217
+ const option_7: string[];
218
+ export { option_7 as option };
219
+ }
220
+ export namespace imagebitmap {
221
+ const option_8: string[];
222
+ export { option_8 as option };
223
+ }
224
+ export namespace int8array {
225
+ const option_9: string[];
226
+ export { option_9 as option };
227
+ }
228
+ export namespace uint8array {
229
+ const option_10: string[];
230
+ export { option_10 as option };
231
+ }
232
+ export namespace uint8clampedarray {
233
+ const option_11: string[];
234
+ export { option_11 as option };
235
+ }
236
+ export namespace int16array {
237
+ const option_12: string[];
238
+ export { option_12 as option };
239
+ }
240
+ export namespace uint16array {
241
+ const option_13: string[];
242
+ export { option_13 as option };
243
+ }
244
+ export namespace int32array {
245
+ const option_14: string[];
246
+ export { option_14 as option };
247
+ }
248
+ export namespace uint32array {
249
+ const option_15: string[];
250
+ export { option_15 as option };
251
+ }
252
+ export namespace float32array {
253
+ const option_16: string[];
254
+ export { option_16 as option };
255
+ }
256
+ export namespace float64array {
257
+ const option_17: string[];
258
+ export { option_17 as option };
259
+ }
260
+ export namespace IntlCollator {
261
+ const option_18: string[];
262
+ export { option_18 as option };
263
+ }
264
+ export namespace IntlDateTimeFormat {
265
+ const option_19: string[];
266
+ export { option_19 as option };
267
+ }
268
+ export namespace IntlNumberFormat {
269
+ const option_20: string[];
270
+ export { option_20 as option };
271
+ }
272
+ export { sparseUndefinedType as sparseUndefined };
273
+ export namespace ValidDate {
274
+ const valid: boolean;
275
+ }
276
+ export namespace arrayNonindexKeys {
277
+ const sparse: boolean;
278
+ }
279
+ }
280
+ /**
281
+ * Utility to retrieve the type out of a type root element.
282
+ * @public
283
+ * @param {?RootElement} root
284
+ * @returns {string|undefined|null} Why would it not exist?
285
+ */
286
+ function getTypeForRoot(root: HTMLDivElement | null): string | null | undefined;
287
+ /**
288
+ * @typedef {(
289
+ * keypath: string,
290
+ * parentPath: string,
291
+ * arrayOrObjectPropertyName: string,
292
+ * valueType: string
293
+ * ) => StateObject} GetPossibleSchemasForPathAndType
294
+ */
295
+ /**
296
+ * @typedef {{
297
+ * typeNamespace?: string,
298
+ * "readonly"?: boolean,
299
+ * format?: import('./formats.js').AvailableFormat,
300
+ * error?: Error,
301
+ * rootUI?: Element,
302
+ * schema?: string,
303
+ * schemaContent?: object,
304
+ * getPossibleSchemasForPathAndType?: GetPossibleSchemasForPathAndType,
305
+ * paths?: {[currentPath: string]: {
306
+ * referentPath: string,
307
+ * expectArrayReferent: boolean
308
+ * }},
309
+ * handlingReference?: boolean
310
+ * }} StateObject
311
+ */
312
+ /**
313
+ * Utility to get the value out of a type root element with a given
314
+ * state and path.
315
+ * @public
316
+ * @param {RootElement} root
317
+ * @param {StateObject} stateObj
318
+ * @param {string} [currentPath]
319
+ * @returns {StructuredCloneValue}
320
+ */
321
+ function getValueForRoot(root: HTMLDivElement, stateObj: StateObject, currentPath?: string | undefined): any;
322
+ /**
323
+ * Utility to get the form control (e.g., input element) for a root.
324
+ * @public
325
+ * @param {RootElement} root
326
+ * @returns {null|
327
+ * HTMLInputElement|HTMLTextAreaElement|HTMLSelectElement|HTMLButtonElement}
328
+ */
329
+ function getFormControlForRoot(root: HTMLDivElement): HTMLInputElement | HTMLButtonElement | HTMLSelectElement | HTMLTextAreaElement | null;
330
+ /**
331
+ * Utility to get the value for a root using its ancestor and state.
332
+ * @public
333
+ * @param {string|Element} selOrEl
334
+ * @param {StateObject} stateObj
335
+ * @returns {StructuredCloneValue}
336
+ */
337
+ function getValueFromRootAncestor(selOrEl: string | Element, stateObj: StateObject): any;
338
+ /**
339
+ * @public
340
+ * @param {string|Element} selOrEl
341
+ * @returns {null|HTMLInputElement|HTMLTextAreaElement|HTMLSelectElement|
342
+ * HTMLButtonElement}
343
+ */
344
+ function getFormControlFromRootAncestor(selOrEl: string | Element): HTMLInputElement | HTMLButtonElement | HTMLSelectElement | HTMLTextAreaElement | null;
345
+ /**
346
+ * @param {string} format
347
+ * @param {string} [state]
348
+ * @returns {AvailableType[]|undefined}
349
+ */
350
+ function getTypesForFormatAndState(format: string, state?: string | undefined): AvailableType[] | undefined;
351
+ /**
352
+ * @public
353
+ * @param {AvailableType} type
354
+ * @returns {[string, {value: AvailableType, title?: string}]}
355
+ */
356
+ function getOptionForType(type: AvailableType): [string, {
357
+ value: AvailableType;
358
+ title?: string | undefined;
359
+ }];
360
+ /**
361
+ * @public
362
+ * @param {string} format
363
+ * @param {string} [parserState]
364
+ * @returns {[string, {value: AvailableType, title?: string}][]}
365
+ */
366
+ function getTypeOptionsForFormatAndState(format: string, parserState?: string | undefined): [string, {
367
+ value: AvailableType;
368
+ title?: string | undefined;
369
+ }][];
370
+ /**
371
+ * @public
372
+ * @param {object} cfg
373
+ * @param {boolean} [cfg.readonly]
374
+ * @param {"both"|"keys"|"values"} [cfg.resultType]
375
+ * @param {string} [cfg.typeNamespace]
376
+ * @param {AvailableType} cfg.type
377
+ * @param {RootElement} [cfg.topRoot]
378
+ * @param {boolean|undefined} cfg.bringIntoFocus
379
+ * @param {import('./typeChoices.js').BuildTypeChoices} [cfg.buildTypeChoices]
380
+ * @param {import('./formats.js').AvailableFormat} cfg.format
381
+ * @param {object} [cfg.schemaContent]
382
+ * @param {GetPossibleSchemasForPathAndType} [cfg.schemaState] Not currently
383
+ * in use
384
+ * @param {StructuredCloneValue} cfg.value
385
+ * @param {boolean} cfg.hasValue
386
+ * @param {StructuredCloneValue} [cfg.replaced]
387
+ * @returns {Element}
388
+ */
389
+ function getUIForModeAndType({ readonly, resultType, typeNamespace, type, topRoot, bringIntoFocus, buildTypeChoices, format, schemaContent, schemaState, value, hasValue, replaced }: {
390
+ readonly?: boolean | undefined;
391
+ resultType?: "keys" | "values" | "both" | undefined;
392
+ typeNamespace?: string | undefined;
393
+ type: AvailableType;
394
+ topRoot?: HTMLDivElement | undefined;
395
+ bringIntoFocus: boolean | undefined;
396
+ buildTypeChoices?: import("./typeChoices.js").BuildTypeChoices | undefined;
397
+ format: import("./formats.js").AvailableFormat;
398
+ schemaContent?: object | undefined;
399
+ schemaState?: GetPossibleSchemasForPathAndType | undefined;
400
+ value: any;
401
+ hasValue: boolean;
402
+ replaced?: any;
403
+ }): Element;
404
+ const contexts: {
405
+ [key: string]: {
406
+ [key: string]: {
407
+ type: AvailableType;
408
+ after: AvailableType;
409
+ }[];
410
+ };
411
+ };
412
+ /**
413
+ * @public
414
+ * @param {object} cfg
415
+ * @param {HTMLFormElement} cfg.form
416
+ * @param {string} [cfg.typeNamespace]
417
+ * @param {string} [cfg.keySelectClass]
418
+ * @returns {boolean}
419
+ */
420
+ function validValuesSet({ form, typeNamespace, keySelectClass }: {
421
+ form: HTMLFormElement;
422
+ typeNamespace?: string | undefined;
423
+ keySelectClass?: string | undefined;
424
+ }): boolean;
425
+ /**
426
+ * Any other possibilities than `div`?
427
+ * @typedef {HTMLDivElement} RootElement
428
+ */
429
+ /**
430
+ * @public
431
+ * @param {object} cfg
432
+ * @param {RootElement} cfg.topRoot
433
+ * @returns {void}
434
+ */
435
+ function validateAllReferences({ topRoot }: {
436
+ topRoot: HTMLDivElement;
437
+ }): void;
438
+ const customValidateAllReferences: ((info: {
439
+ topRoot: HTMLDivElement;
440
+ }) => void) | null;
441
+ /**
442
+ * @public
443
+ * @param {object} cfg
444
+ * @param {AvailableType} cfg.type
445
+ * @param {RootElement} cfg.root
446
+ * @param {RootElement} [cfg.topRoot]
447
+ * @returns {boolean}
448
+ */
449
+ function validate({ type, root, topRoot }: {
450
+ type: AvailableType;
451
+ root: HTMLDivElement;
452
+ topRoot?: HTMLDivElement | undefined;
453
+ }): boolean;
454
+ /**
455
+ * @param {object} cfg
456
+ * @param {AvailableType} cfg.type
457
+ * @param {RootElement} cfg.root
458
+ * @param {StructuredCloneValue} cfg.value
459
+ * @returns {void}
460
+ */
461
+ function setValue({ type, root, value }: {
462
+ type: AvailableType;
463
+ root: HTMLDivElement;
464
+ value: any;
465
+ }): void;
466
+ /**
467
+ * @public
468
+ * @param {string} s
469
+ * @param {object} cfg
470
+ * @param {import('./formats.js').AvailableFormat} cfg.format
471
+ * @param {string} cfg.state
472
+ * @param {TypeObject[]} [cfg.endMatchTypeObjs=[]]
473
+ * @param {boolean} [cfg.firstRun=true]
474
+ * @param {[
475
+ * type: string,
476
+ * parent: {[key: string]: any},
477
+ * parentPath: string|number,
478
+ * path: string
479
+ * ][]} [cfg.rootHolder=[]]
480
+ * @param {{[key: string]: any}} cfg.parent
481
+ * @param {string|number} cfg.parentPath
482
+ * @returns {[
483
+ * value: StructuredCloneValue,
484
+ * remnant: string,
485
+ * beginOnly: boolean,
486
+ * assign: boolean
487
+ * ]}
488
+ */
489
+ function getValueForString(s: string, { format, state, endMatchTypeObjs, firstRun, rootHolder, parent, parentPath }: {
490
+ format: import("./formats.js").AvailableFormat;
491
+ state: string;
492
+ endMatchTypeObjs?: TypeObject[] | undefined;
493
+ firstRun?: boolean | undefined;
494
+ rootHolder?: [type: string, parent: {
495
+ [key: string]: any;
496
+ }, parentPath: string | number, path: string][] | undefined;
497
+ parent: {
498
+ [key: string]: any;
499
+ };
500
+ parentPath: string | number;
501
+ }): [value: any, remnant: string, beginOnly: boolean, assign: boolean];
502
+ }
503
+ import nullType from './fundamentalTypes/nullType.js';
504
+ import trueType from './subTypes/trueType.js';
505
+ import falseType from './subTypes/falseType.js';
506
+ import numberType from './fundamentalTypes/numberType.js';
507
+ import bigintType from './fundamentalTypes/bigintType.js';
508
+ import stringType from './fundamentalTypes/stringType.js';
509
+ import arrayReferenceType from './fundamentalTypes/arrayReferenceType.js';
510
+ import objectReferenceType from './fundamentalTypes/objectReferenceType.js';
511
+ import arrayType from './fundamentalTypes/arrayType.js';
512
+ import objectType from './fundamentalTypes/objectType.js';
513
+ import dateType from './fundamentalTypes/dateType.js';
514
+ import undefinedType from './fundamentalTypes/undefinedType.js';
515
+ import SpecialRealNumberSuperType from './superTypes/SpecialRealNumberSuperType.js';
516
+ import SpecialNumberSuperType from './superTypes/SpecialNumberSuperType.js';
517
+ import regexpType from './fundamentalTypes/regexpType.js';
518
+ import BooleanObjectType from './fundamentalTypes/BooleanObjectType.js';
519
+ import NumberObjectType from './fundamentalTypes/NumberObjectType.js';
520
+ import StringObjectType from './fundamentalTypes/StringObjectType.js';
521
+ import blobHTMLType from './subTypes/blobHTMLType.js';
522
+ import sparseUndefinedType from './fundamentalTypes/sparseUndefinedType.js';
523
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.js"],"names":[],"mappings":"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"}
@@ -0,0 +1,109 @@
1
+ export default dialogs;
2
+ export type Locale = {
3
+ [key: string]: string;
4
+ };
5
+ declare namespace dialogs {
6
+ const localeStrings: Locale;
7
+ /**
8
+ * @param {Locale} [locale={}]
9
+ * @returns {void}
10
+ */
11
+ function setLocale(locale?: Locale | undefined): void;
12
+ /**
13
+ * @typedef {object} MakeDialogArgs
14
+ * @property {import('jamilih').JamilihAttributes} [atts={}]
15
+ * @property {import('jamilih').JamilihChildren} [children=[]]
16
+ * @property {import('jamilih').EventHandler} [close]
17
+ * @property {boolean} [remove=true]
18
+ */
19
+ /**
20
+ * @param {MakeDialogArgs} cfg
21
+ * @returns {HTMLDialogElement}
22
+ */
23
+ function makeDialog({ atts, children, close, remove }?: {
24
+ atts?: import("jamilih").JamilihAttributes | undefined;
25
+ children?: import("jamilih").JamilihChildren | undefined;
26
+ close?: import("jamilih").EventHandler | undefined;
27
+ remove?: boolean | undefined;
28
+ }): HTMLDialogElement;
29
+ /**
30
+ * @typedef {object} MakeCancelArgs
31
+ * @property {(
32
+ * info: {e: Event, dialog: HTMLDialogElement}
33
+ * ) => boolean} cancel
34
+ * @property {string} cancelClass
35
+ * @property {string} submitClass
36
+ * @property {...MakeDialogArgs} args
37
+ */
38
+ /**
39
+ * @param {MakeCancelArgs} cfg
40
+ * @returns {HTMLDialogElement}
41
+ */
42
+ function makeCancelDialog({ cancel, cancelClass, submitClass, ...args }: {
43
+ cancel: (info: {
44
+ e: Event;
45
+ dialog: HTMLDialogElement;
46
+ }) => boolean;
47
+ cancelClass: string;
48
+ submitClass: string;
49
+ args: {
50
+ atts?: import("jamilih").JamilihAttributes | undefined;
51
+ children?: import("jamilih").JamilihChildren | undefined;
52
+ close?: import("jamilih").EventHandler | undefined;
53
+ remove?: boolean | undefined;
54
+ } | undefined;
55
+ }): HTMLDialogElement;
56
+ /**
57
+ * @param {object} cfg
58
+ * @param {(info: {e: Event, dialog: HTMLDialogElement}) => void} cfg.submit
59
+ * @param {string} [cfg.submitClass="submit"]
60
+ * @param {MakeCancelArgs} [cfg.args]
61
+ * @returns {HTMLDialogElement}
62
+ */
63
+ function makeSubmitDialog({ submit, submitClass, ...args }: {
64
+ submit: (info: {
65
+ e: Event;
66
+ dialog: HTMLDialogElement;
67
+ }) => void;
68
+ submitClass?: string | undefined;
69
+ args?: {
70
+ cancel: (info: {
71
+ e: Event;
72
+ dialog: HTMLDialogElement;
73
+ }) => boolean;
74
+ cancelClass: string;
75
+ submitClass: string;
76
+ args: {
77
+ atts?: import("jamilih").JamilihAttributes | undefined;
78
+ children?: import("jamilih").JamilihChildren | undefined;
79
+ close?: import("jamilih").EventHandler | undefined;
80
+ remove?: boolean | undefined;
81
+ } | undefined;
82
+ } | undefined;
83
+ }): HTMLDialogElement;
84
+ /**
85
+ * @param {string|{
86
+ * submitClass?: string,
87
+ * message: string|import('jamilih').JamilihArray
88
+ * }} message
89
+ * @returns {Promise<void>}
90
+ */
91
+ function alert(message: string | {
92
+ submitClass?: string | undefined;
93
+ message: string | import("jamilih").JamilihArray;
94
+ }): Promise<void>;
95
+ /**
96
+ * @param {object} cfg
97
+ * @param {import('jamilih').JamilihAttributes} [cfg.atts={}]
98
+ * @param {string|{message: string}} cfg.message
99
+ * @param {string} [cfg.submitClass="submit"]
100
+ */
101
+ function confirm({ atts, message, submitClass }: {
102
+ atts?: import("jamilih").JamilihAttributes | undefined;
103
+ message: string | {
104
+ message: string;
105
+ };
106
+ submitClass?: string | undefined;
107
+ }): Promise<any>;
108
+ }
109
+ //# sourceMappingURL=dialogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialogs.d.ts","sourceRoot":"","sources":["../../src/utils/dialogs.js"],"names":[],"mappings":";;;;;yBAiBa,MAAM;IAEjB;;;OAGG;IACH,sDAEC;IAED;;;;;;OAMG;IACH;;;OAGG;IACH;;;;;0BAmBC;IACD;;;;;;;;OAQG;IACH;;;OAGG;IACH;;;;;;;;;;;;;0BA0BC;IACD;;;;;;OAMG;IACH;;;;;;;;;;;;;;;;;;;;0BAiBC;IACD;;;;;;OAMG;IACH;;;sBAiBC;IACD;;;;;OAKG;IACH;;;;;;qBAwBC"}
@@ -0,0 +1,46 @@
1
+ export type ArbitraryObject = any;
2
+ /**
3
+ * @param {...string} args
4
+ * @returns {string}
5
+ */
6
+ export function makeJSONPointer(...args: string[]): string;
7
+ /**
8
+ * @param {string} path
9
+ * @returns {string}
10
+ */
11
+ export function escapeJSONPointer(path: string): string;
12
+ /**
13
+ * @param {string} pathPart
14
+ * @returns {string}
15
+ */
16
+ export function unescapeJSONPointerPart(pathPart: string): string;
17
+ /**
18
+ * @param {string} path
19
+ * @returns {string[]}
20
+ */
21
+ export function getJSONPointerParts(path: string): string[];
22
+ /**
23
+ * @typedef {any} ArbitraryObject
24
+ */
25
+ /**
26
+ * @param {ArbitraryObject} obj
27
+ * @param {string} pathPart
28
+ * @returns {ArbitraryObject|string}
29
+ */
30
+ export function reduceJSONPointerParts(obj: ArbitraryObject, pathPart: string): ArbitraryObject | string;
31
+ /**
32
+ * @param {object} cfg
33
+ * @param {string} cfg.path
34
+ * @param {ArbitraryObject} cfg.obj
35
+ * @returns {string|ArbitraryObject}
36
+ */
37
+ export function resolveJSONPointer({ path, obj }: {
38
+ path: string;
39
+ obj: ArbitraryObject;
40
+ }): string | ArbitraryObject;
41
+ /**
42
+ * @param {string} path
43
+ * @returns {string}
44
+ */
45
+ export function typesonPathToJSONPointer(path: string): string;
46
+ //# sourceMappingURL=jsonPointer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonPointer.d.ts","sourceRoot":"","sources":["../../src/utils/jsonPointer.js"],"names":[],"mappings":"8BA0Ca,GAAG;AA1ChB;;;GAGG;AACH,yCAHc,MAAM,KACP,MAAM,CAMlB;AAED;;;GAGG;AACH,wCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;GAGG;AACH,kDAHW,MAAM,GACJ,MAAM,CASlB;AAED;;;GAGG;AACH,0CAHW,MAAM,GACJ,MAAM,EAAE,CAMpB;AAED;;GAEG;AAEH;;;;GAIG;AACH,4CAJW,eAAe,YACf,MAAM,GACJ,eAAe,GAAC,MAAM,CAQlC;AAED;;;;;GAKG;AACH;IAJuB,IAAI,EAAhB,MAAM;IACe,GAAG,EAAxB,eAAe;IACb,MAAM,GAAC,eAAe,CAOlC;AAED;;;GAGG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB"}