@es-joy/jsoe 0.12.4 → 0.13.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.
- package/.nyc_output/out.json +11754 -11508
- package/CHANGES.md +8 -0
- package/demo/index.js +38 -29
- package/dist/formatAndTypeChoices.d.ts +11 -2
- package/dist/formatAndTypeChoices.d.ts.map +1 -1
- package/dist/formats/structuredCloning.d.ts.map +1 -1
- package/dist/formats.d.ts +52 -10
- package/dist/formats.d.ts.map +1 -1
- package/dist/fundamentalTypes/arrayType.d.ts.map +1 -1
- package/dist/fundamentalTypes/dateType.d.ts.map +1 -1
- package/dist/fundamentalTypes/errorType.d.ts.map +1 -1
- package/dist/fundamentalTypes/regexpType.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +795 -620
- package/dist/superTypes/errorsSpecialType.d.ts.map +1 -1
- package/dist/typeChoices.d.ts +4 -0
- package/dist/typeChoices.d.ts.map +1 -1
- package/dist/types.d.ts +308 -74
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/formatAndTypeChoices.js +20 -5
- package/src/formats/indexedDBKey.js +1 -1
- package/src/formats/json.js +1 -1
- package/src/formats/schemaAndArbitrary.js +1 -1
- package/src/formats/schemaOnly.js +1 -1
- package/src/formats/structuredCloning.js +22 -13
- package/src/formats.js +87 -26
- package/src/fundamentalTypes/arrayReferenceType.js +2 -2
- package/src/fundamentalTypes/arrayType.js +43 -23
- package/src/fundamentalTypes/dateType.js +2 -3
- package/src/fundamentalTypes/errorType.js +5 -3
- package/src/fundamentalTypes/regexpType.js +2 -3
- package/src/index.js +1 -1
- package/src/superTypes/errorsSpecialType.js +12 -5
- package/src/typeChoices.js +21 -10
- package/src/types.js +579 -527
package/CHANGES.md
CHANGED
package/demo/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {jml, body, $} from '../src/vendor-imports.js';
|
|
2
|
-
// import FileList from '../src/utils/FileList.js';
|
|
3
2
|
|
|
4
3
|
import {
|
|
5
4
|
typeChoices,
|
|
6
5
|
getFormatAndSchemaChoices,
|
|
7
6
|
formatAndTypeChoices,
|
|
8
|
-
|
|
9
|
-
Types // , Formats
|
|
7
|
+
Types
|
|
10
8
|
} from '../src/index.js';
|
|
11
9
|
|
|
10
|
+
const types = new Types();
|
|
11
|
+
|
|
12
12
|
const keyPathNotExpectedTypeChoices = formatAndTypeChoices({
|
|
13
13
|
hasKeyPath: false,
|
|
14
14
|
typeNamespace: 'demo-keypath-not-expected'
|
|
@@ -61,15 +61,18 @@ setTimeout(async function () {
|
|
|
61
61
|
id: 'viewUI',
|
|
62
62
|
$on: {
|
|
63
63
|
async click () {
|
|
64
|
-
const controls =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
const controls =
|
|
65
|
+
// eslint-disable-next-line @stylistic/max-len -- Long
|
|
66
|
+
await keyPathNotExpectedTypeChoices.formats.getControlsForFormatAndValue(
|
|
67
|
+
keyPathNotExpectedTypeChoices.types,
|
|
68
|
+
$('#useIndexedDBKey').checked
|
|
69
|
+
? 'indexedDBKey'
|
|
70
|
+
: 'structuredCloning',
|
|
71
|
+
keyPathNotExpectedTypeChoices.getValue(),
|
|
72
|
+
{
|
|
73
|
+
readonly: true
|
|
74
|
+
}
|
|
75
|
+
);
|
|
73
76
|
$('#viewUIResults').firstChild?.remove();
|
|
74
77
|
$('#viewUIResults').append(controls);
|
|
75
78
|
}
|
|
@@ -117,10 +120,11 @@ setTimeout(async function () {
|
|
|
117
120
|
id: 'setCustomValidateAllReferences',
|
|
118
121
|
$on: {
|
|
119
122
|
click () {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
keyPathNotExpectedTypeChoices.types.customValidateAllReferences =
|
|
124
|
+
() => {
|
|
125
|
+
// eslint-disable-next-line no-alert -- Simple demo
|
|
126
|
+
alert('customValidateAllReferences set');
|
|
127
|
+
};
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
}, [
|
|
@@ -135,7 +139,8 @@ setTimeout(async function () {
|
|
|
135
139
|
'#formatAndTypeChoices > .typesHolder > ' +
|
|
136
140
|
'.typeContainer > div[data-type]'
|
|
137
141
|
);
|
|
138
|
-
const formControl =
|
|
142
|
+
const formControl =
|
|
143
|
+
keyPathNotExpectedTypeChoices.types.getFormControlForRoot(root);
|
|
139
144
|
formControl.style.backgroundColor = 'red';
|
|
140
145
|
setTimeout(() => {
|
|
141
146
|
formControl.style.backgroundColor = 'white';
|
|
@@ -148,10 +153,11 @@ setTimeout(async function () {
|
|
|
148
153
|
id: 'getValueFromRootAncestor',
|
|
149
154
|
$on: {
|
|
150
155
|
click () {
|
|
151
|
-
const val =
|
|
152
|
-
|
|
153
|
-
'.
|
|
154
|
-
|
|
156
|
+
const val =
|
|
157
|
+
keyPathNotExpectedTypeChoices.types.getValueFromRootAncestor(
|
|
158
|
+
'#formatAndTypeChoices > .typesHolder > ' +
|
|
159
|
+
'.typeContainer'
|
|
160
|
+
);
|
|
155
161
|
console.log(val);
|
|
156
162
|
}
|
|
157
163
|
}
|
|
@@ -163,10 +169,11 @@ setTimeout(async function () {
|
|
|
163
169
|
id: 'showFormControlFromRootAncestor',
|
|
164
170
|
$on: {
|
|
165
171
|
click () {
|
|
166
|
-
const formControl =
|
|
167
|
-
|
|
168
|
-
'.
|
|
169
|
-
|
|
172
|
+
const formControl =
|
|
173
|
+
keyPathNotExpectedTypeChoices.types.getFormControlFromRootAncestor(
|
|
174
|
+
'#formatAndTypeChoices > .typesHolder > ' +
|
|
175
|
+
'.typeContainer'
|
|
176
|
+
);
|
|
170
177
|
formControl.style.backgroundColor = 'red';
|
|
171
178
|
setTimeout(() => {
|
|
172
179
|
formControl.style.backgroundColor = 'initial';
|
|
@@ -454,15 +461,16 @@ setTimeout(async function () {
|
|
|
454
461
|
'Convert arbitrary value to an editable menu'
|
|
455
462
|
]],
|
|
456
463
|
|
|
457
|
-
await getControlsForFormatAndValue(
|
|
458
|
-
'structuredCloning',
|
|
464
|
+
await types.getControlsForFormatAndValue(
|
|
465
|
+
'structuredCloning',
|
|
466
|
+
new Date('1999-01-01')
|
|
459
467
|
),
|
|
460
468
|
|
|
461
469
|
['h2', [
|
|
462
470
|
'Convert arbitrary value to a readonly menu'
|
|
463
471
|
]],
|
|
464
472
|
|
|
465
|
-
await getControlsForFormatAndValue(
|
|
473
|
+
await types.getControlsForFormatAndValue(
|
|
466
474
|
'structuredCloning',
|
|
467
475
|
new Date('1999-01-01'), {
|
|
468
476
|
readonly: true
|
|
@@ -477,7 +485,8 @@ setTimeout(async function () {
|
|
|
477
485
|
placeholder: 'e.g., ["abc", 17]',
|
|
478
486
|
$on: {
|
|
479
487
|
change () {
|
|
480
|
-
const
|
|
488
|
+
const types = new Types();
|
|
489
|
+
const value = types.getValueForString(this.value, {
|
|
481
490
|
format: $('#useIndexedDBKey').checked
|
|
482
491
|
? 'indexedDBKey'
|
|
483
492
|
: 'structuredCloning'
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
* plain object).
|
|
21
21
|
* @param {string} [cfg.typeNamespace] Used to prevent conflicts with other
|
|
22
22
|
* instances of typeChoices on the page
|
|
23
|
+
* @param {import('./formats.js').default} cfg.formats
|
|
24
|
+
* @param {import('./types.js').default} [cfg.types]
|
|
23
25
|
* @returns {{
|
|
24
26
|
* formatChoices: FormatChoices,
|
|
25
27
|
* typesHolder: TypesHolder,
|
|
@@ -28,17 +30,21 @@
|
|
|
28
30
|
* currentPath: string) => import('./formats.js').StructuredCloneValue,
|
|
29
31
|
* getType: () => string,
|
|
30
32
|
* validValuesSet: () => boolean,
|
|
31
|
-
* setValue: SetValue
|
|
33
|
+
* setValue: SetValue,
|
|
34
|
+
* formats: import('./formats.js').default,
|
|
35
|
+
* types: import('./types.js').default
|
|
32
36
|
* }} The selector for types and the container for them. Both should be
|
|
33
37
|
* added to the page.
|
|
34
38
|
*/
|
|
35
|
-
export function formatAndTypeChoices({ schema, schemaContent, hasValue, singleValue, hasKeyPath, typeNamespace }: {
|
|
39
|
+
export function formatAndTypeChoices({ schema, schemaContent, hasValue, singleValue, hasKeyPath, typeNamespace, formats, types }: {
|
|
36
40
|
schema?: string | undefined;
|
|
37
41
|
schemaContent?: object | undefined;
|
|
38
42
|
hasValue?: boolean | undefined;
|
|
39
43
|
singleValue?: boolean | undefined;
|
|
40
44
|
hasKeyPath?: boolean | undefined;
|
|
41
45
|
typeNamespace?: string | undefined;
|
|
46
|
+
formats: import('./formats.js').default;
|
|
47
|
+
types?: Types | undefined;
|
|
42
48
|
}): {
|
|
43
49
|
formatChoices: HTMLSelectElement & {
|
|
44
50
|
$setFormat: (valueFormat: string) => void;
|
|
@@ -53,6 +59,8 @@ export function formatAndTypeChoices({ schema, schemaContent, hasValue, singleVa
|
|
|
53
59
|
getType: () => string;
|
|
54
60
|
validValuesSet: () => boolean;
|
|
55
61
|
setValue: SetValue;
|
|
62
|
+
formats: import('./formats.js').default;
|
|
63
|
+
types: import('./types.js').default;
|
|
56
64
|
};
|
|
57
65
|
export function getFormatAndSchemaChoices({ schema, hasKeyPath }?: {
|
|
58
66
|
schema?: string | undefined;
|
|
@@ -60,4 +68,5 @@ export function getFormatAndSchemaChoices({ schema, hasKeyPath }?: {
|
|
|
60
68
|
}): DocumentFragment;
|
|
61
69
|
export type SetValue = (value: import('./formats.js').StructuredCloneValue, stateObj: import('./types.js').StateObject) => Promise<void>;
|
|
62
70
|
export type TypeRootGetter = () => HTMLDivElement | null;
|
|
71
|
+
import Types from './types.js';
|
|
63
72
|
//# sourceMappingURL=formatAndTypeChoices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAndTypeChoices.d.ts","sourceRoot":"","sources":["../src/formatAndTypeChoices.js"],"names":[],"mappings":"AAqEA;;;;;GAKG;AAEH
|
|
1
|
+
{"version":3,"file":"formatAndTypeChoices.d.ts","sourceRoot":"","sources":["../src/formatAndTypeChoices.js"],"names":[],"mappings":"AAqEA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH;IA7BwB,MAAM;IACN,aAAa;IACZ,QAAQ;IAGR,WAAW;IACX,UAAU;IAKX,aAAa;IAEU,OAAO,EAA3C,OAAO,cAAc,EAAE,OAAO;IACK,KAAK;;;kCAkClC,MAAM,KACJ,IAAI;iCAMJ,IAAI;;;;kCAPN,MAAM,KACJ,IAAI;iCAMJ,IAAI;;yBApCG,OAAO,YAAY,EAAE,WAAW,eACtC,MAAM,KAAK,OAAO,cAAc,EAAE,oBAAoB;aAC5D,MAAM,MAAM;oBACL,MAAM,OAAO;cACnB,QAAQ;aACT,OAAO,cAAc,EAAE,OAAO;WAChC,OAAO,YAAY,EAAE,OAAO;EAyMvC;AA5RM;IANiB,MAAM;IACL,UAAU;IAGtB,gBAAgB,CAgD5B;+BAIU,OAAO,cAAc,EAAE,oBAAoB,YAC3C,OAAO,YAAY,EAAE,WAAW,KAC9B,QAAQ,IAAI,CAAC;mCAjEb,cAAc,GAAC,IAAI;kBANd,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../src/formats/structuredCloning.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../src/formats/structuredCloning.js"],"names":[],"mappings":";2CAYoB;IACnB,QAAY,EAAE,MAAM,CAAC;IACrB,IAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,CAAC;IAC9C,KAAS,EAAE,OAAO,eAAe,EAAE,oBAAoB,CAAC;IACxD,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAe,CAAC,EAAE,OAAO,aAAa,EAAE,gCAAgC,CAAA;CACrE,KAAK,WAAW,GAAC,IAAI;kCAIZ,OAAO,kBAAkB,EAAE,mBAAmB;uCA2WhD,OAAO,eAAe,EAAE,oBAAoB,YAC5C,OAAO,aAAa,EAAE,WAAW,KAC/B,QAAQ,OAAO,CAAC;AAJ7B;;;;;GAKG;AAEH,6CAA6C;AAC7C,iCADW,OAAO,eAAe,EAAE,MAAM,CA+GvC"}
|
package/dist/formats.d.ts
CHANGED
|
@@ -1,26 +1,68 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {AvailableFormat} format
|
|
3
|
-
* @param {StructuredCloneValue} record
|
|
4
|
-
* @param {import('./types.js').StateObject} stateObj
|
|
5
|
-
* @returns {Promise<Element>}
|
|
6
|
-
*/
|
|
7
|
-
export function getControlsForFormatAndValue(format: AvailableFormat, record: StructuredCloneValue, stateObj: import('./types.js').StateObject): Promise<Element>;
|
|
8
1
|
export default Formats;
|
|
9
2
|
/**
|
|
10
3
|
* An arbitrary Structured Clone, JSON, etc. value.
|
|
11
4
|
*/
|
|
12
5
|
export type StructuredCloneValue = any;
|
|
6
|
+
export type GetTypesForFormatAndState = (types: import('./types.js').default, format: AvailableFormat, state?: string | undefined) => import('./types.js').AvailableType[] | undefined;
|
|
13
7
|
export type AvailableFormat = "indexedDBKey" | "json" | "structuredCloning";
|
|
14
8
|
export type Format = {
|
|
15
9
|
types: () => (import('./types.js').AvailableType)[];
|
|
16
10
|
testInvalid?: ((newType: string, value: Date | Array<StructuredCloneValue>) => boolean | undefined) | undefined;
|
|
17
11
|
convertFromTypeson?: ((typesonType: import('./types.js').AvailableType) => import('./types.js').AvailableType | undefined) | undefined;
|
|
18
12
|
iterate: import('./formats/structuredCloning.js').FormatIterator;
|
|
19
|
-
getTypesForState: (state?: string) => undefined | (import('./types.js').AvailableType)[];
|
|
13
|
+
getTypesForState: (types: import('./types.js').default, state?: string) => undefined | (import('./types.js').AvailableType)[];
|
|
20
14
|
};
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
/**
|
|
16
|
+
* An arbitrary Structured Clone, JSON, etc. value.
|
|
17
|
+
* @typedef {any} StructuredCloneValue
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @callback GetTypesForFormatAndState
|
|
21
|
+
* @param {import('./types.js').default} types
|
|
22
|
+
* @param {AvailableFormat} format
|
|
23
|
+
* @param {string} [state]
|
|
24
|
+
* @returns {import('./types.js').AvailableType[]|undefined}
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {"indexedDBKey"|"json"|"structuredCloning"} AvailableFormat
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* @typedef {{
|
|
31
|
+
* types: () => (import('./types.js').AvailableType)[],
|
|
32
|
+
* testInvalid?: (
|
|
33
|
+
* newType: string, value: Date|Array<StructuredCloneValue>
|
|
34
|
+
* ) => boolean|undefined,
|
|
35
|
+
* convertFromTypeson?: (
|
|
36
|
+
* typesonType: import('./types.js').AvailableType
|
|
37
|
+
* ) => import('./types.js').AvailableType|undefined,
|
|
38
|
+
* iterate: import('./formats/structuredCloning.js').FormatIterator,
|
|
39
|
+
* getTypesForState: (
|
|
40
|
+
* types: import('./types.js').default,
|
|
41
|
+
* state?: string
|
|
42
|
+
* ) => undefined|
|
|
43
|
+
* (import('./types.js').AvailableType)[]
|
|
44
|
+
* }} Format
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Class for processing multiple formats.
|
|
48
|
+
*/
|
|
49
|
+
declare class Formats {
|
|
50
|
+
availableFormats: {
|
|
23
51
|
[key: string]: Format;
|
|
24
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* @param {import('./types.js').default} types
|
|
55
|
+
* @param {AvailableFormat} format
|
|
56
|
+
* @param {StructuredCloneValue} record
|
|
57
|
+
* @param {import('./types.js').StateObject} stateObj
|
|
58
|
+
* @returns {Promise<Element>}
|
|
59
|
+
*/
|
|
60
|
+
getControlsForFormatAndValue(types: import('./types.js').default, format: AvailableFormat, record: StructuredCloneValue, stateObj: import('./types.js').StateObject): Promise<Element>;
|
|
61
|
+
getTypesForFormatAndState(types: import('./types.js').default, format: AvailableFormat, state?: string | undefined): import('./types.js').AvailableType[] | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* @param {AvailableFormat} format
|
|
64
|
+
* @returns {Format}
|
|
65
|
+
*/
|
|
66
|
+
getAvailableFormat(format: AvailableFormat): Format;
|
|
25
67
|
}
|
|
26
68
|
//# sourceMappingURL=formats.d.ts.map
|
package/dist/formats.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../src/formats.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../src/formats.js"],"names":[],"mappings":";;;;mCAMa,GAAG;gDAKL,OAAO,YAAY,EAAE,OAAO,UAC5B,eAAe,iCAEb,OAAO,YAAY,EAAE,aAAa,EAAE,GAAC,SAAS;8BAa9C,cAAc,GAAC,MAAM,GAAC,mBAAmB;;WAK1C,MAAM,CAAC,OAAO,YAAY,EAAE,aAAa,CAAC,EAAE;6BAExC,MAAM,SAAS,IAAI,GAAC,MAAM,oBAAoB,CAAC,KACrD,OAAO,GAAC,SAAS;wCAEP,OAAO,YAAY,EAAE,aAAa,KAC5C,OAAO,YAAY,EAAE,aAAa,GAAC,SAAS;aACxC,OAAO,gCAAgC,EAAE,cAAc;8BAEvD,OAAO,YAAY,EAAE,OAAO,UAC3B,MAAM,KACX,SAAS,GAClB,CAAO,OAAO,YAAY,EAAE,aAAa,CAAC,EAAE;;AAxC7C;;;GAGG;AAEH;;;;;;GAMG;AAWH;;GAEG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AACH;IA4BI;;MASE;IAGJ;;;;;;OAMG;IACH,oCANW,OAAO,YAAY,EAAE,OAAO,UAC5B,eAAe,UACf,oBAAoB,YACpB,OAAO,YAAY,EAAE,WAAW,GAC9B,QAAQ,OAAO,CAAC,CAY5B;IAlGA,iCACQ,OAAO,YAAY,EAAE,OAAO,UAC5B,eAAe,+BAEb,OAAO,YAAY,EAAE,aAAa,EAAE,GAAC,SAAS,CAC1D;IAwGC;;;OAGG;IACH,2BAHW,eAAe,GACb,MAAM,CAIlB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrayType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/arrayType.js"],"names":[],"mappings":";sBAWa,MAAM;;oCAQN,MAAM,gBAAgB,EAAE;+BAGxB,MAAM,CAAC,iBAAiB,GAAG;IACvC,SAAa,EAAE,OAAO,mBAAmB,EAAE,QAAQ,CAAA;CAChD,CAAC,EAAE;6BAGM,MAAM,IAAI;sCAIV,gBAAgB,EAAE;qCAKlB,IAAI;4BAGJ,MAAM,cAAc,GAAG;IACnC,sBAA0B,EAAE,qBAAqB,CAAC;IAClD,kBAAsB,EAAE,iBAAiB,CAAC;IAC1C,iBAAqB,EAAE,gBAAgB,CAAC;IACxC,iBAAqB,EAAE,gBAAgB,CAAA;CACpC;uBAGS,MAAM,QAAQ,IAAI,CAAC;2BAKrB;IAAC,WAAW,CAAC,EAAE,IAAI,CAAA;CAAC,KAClB,IAAI;+BAIJ,MAAM,gBAAgB,GAAC,SAAS;uBAIhC,GAAG;AAmBhB;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,MAAM,CAAC,EAAE,OAAO,GAAC,SAAS,CAAA;CAAC,
|
|
1
|
+
{"version":3,"file":"arrayType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/arrayType.js"],"names":[],"mappings":";sBAWa,MAAM;;oCAQN,MAAM,gBAAgB,EAAE;+BAGxB,MAAM,CAAC,iBAAiB,GAAG;IACvC,SAAa,EAAE,OAAO,mBAAmB,EAAE,QAAQ,CAAA;CAChD,CAAC,EAAE;6BAGM,MAAM,IAAI;sCAIV,gBAAgB,EAAE;qCAKlB,IAAI;4BAGJ,MAAM,cAAc,GAAG;IACnC,sBAA0B,EAAE,qBAAqB,CAAC;IAClD,kBAAsB,EAAE,iBAAiB,CAAC;IAC1C,iBAAqB,EAAE,gBAAgB,CAAC;IACxC,iBAAqB,EAAE,gBAAgB,CAAA;CACpC;uBAGS,MAAM,QAAQ,IAAI,CAAC;2BAKrB;IAAC,WAAW,CAAC,EAAE,IAAI,CAAA;CAAC,KAClB,IAAI;+BAIJ,MAAM,gBAAgB,GAAC,SAAS;uBAIhC,GAAG;AAmBhB;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,MAAM,CAAC,EAAE,OAAO,GAAC,SAAS,CAAA;CAAC,CA2pDvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/dateType.js"],"names":[],"mappings":";+
|
|
1
|
+
{"version":3,"file":"dateType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/dateType.js"],"names":[],"mappings":";+CAKyB,IAAI,GAAC,SAAS,KAC/B,IAAI;AAHZ;;;;GAIG;AAEH;;;;;;;;;GASG;AACH;eARgB,MAAM;qBACA;QAAC,IAAI,EAAE,cAAc,CAAA;KAAC,KAAK,OAAO;4BAE1C,OAAO,eAAe,EAAE,oBAAoB,KAChD,OAAO;;EA0If"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/errorType.js"],"names":[],"mappings":";AAIA;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"errorType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/errorType.js"],"names":[],"mappings":";AAIA;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,CA2ZxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexpType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/regexpType.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"regexpType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/regexpType.js"],"names":[],"mappings":";AAGA;;GAEG;AACH,0BAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAC,CA4GnE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Types } from "./types.js";
|
|
2
|
+
export { default as Formats } from "./formats.js";
|
|
2
3
|
export { buildTypeChoices as typeChoices } from "./typeChoices.js";
|
|
3
4
|
export type TypeRootGetter = import('./formatAndTypeChoices.js').TypeRootGetter;
|
|
4
5
|
export type SetType = (cfg: {
|
|
@@ -6,6 +7,5 @@ export type SetType = (cfg: {
|
|
|
6
7
|
baseValue?: import('./formats.js').StructuredCloneValue;
|
|
7
8
|
bringIntoFocus?: boolean;
|
|
8
9
|
}) => void;
|
|
9
|
-
export { default as Formats, getControlsForFormatAndValue } from "./formats.js";
|
|
10
10
|
export { formatAndTypeChoices, getFormatAndSchemaChoices } from "./formatAndTypeChoices.js";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;;6BACa,OAAO,2BAA2B,EAAE,cAAc;4BAG5C;IACnB,IAAQ,EAAE,MAAM,CAAC;IACjB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI"}
|