@es-joy/jsoe 0.3.0 → 0.4.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/.eslintignore +3 -0
- package/.eslintrc.cjs +1 -0
- package/.ncurc.cjs +9 -0
- package/CHANGES.md +4 -0
- package/demo/index.html +8 -0
- package/demo/index.js +1 -1
- package/dist/formatAndTypeChoices.d.ts +56 -0
- package/dist/formatAndTypeChoices.d.ts.map +1 -0
- package/dist/formats/indexedDBKey.d.ts +4 -0
- package/dist/formats/indexedDBKey.d.ts.map +1 -0
- package/dist/formats/json.d.ts +4 -0
- package/dist/formats/json.d.ts.map +1 -0
- package/dist/formats/schemaAndArbitrary.d.ts +6 -0
- package/dist/formats/schemaAndArbitrary.d.ts.map +1 -0
- package/dist/formats/schemaOnly.d.ts +6 -0
- package/dist/formats/schemaOnly.d.ts.map +1 -0
- package/dist/formats/structuredCloning.d.ts +20 -0
- package/dist/formats/structuredCloning.d.ts.map +1 -0
- package/dist/formats.d.ts +26 -0
- package/dist/formats.d.ts.map +1 -0
- package/dist/fundamentalTypes/BooleanObjectType.d.ts +8 -0
- package/dist/fundamentalTypes/BooleanObjectType.d.ts.map +1 -0
- package/dist/fundamentalTypes/NumberObjectType.d.ts +6 -0
- package/dist/fundamentalTypes/NumberObjectType.d.ts.map +1 -0
- package/dist/fundamentalTypes/StringObjectType.d.ts +6 -0
- package/dist/fundamentalTypes/StringObjectType.d.ts.map +1 -0
- package/dist/fundamentalTypes/arrayReferenceType.d.ts +8 -0
- package/dist/fundamentalTypes/arrayReferenceType.d.ts.map +1 -0
- package/dist/fundamentalTypes/arrayType.d.ts +60 -0
- package/dist/fundamentalTypes/arrayType.d.ts.map +1 -0
- package/dist/fundamentalTypes/bigintType.d.ts +6 -0
- package/dist/fundamentalTypes/bigintType.d.ts.map +1 -0
- package/dist/fundamentalTypes/dateType.d.ts +26 -0
- package/dist/fundamentalTypes/dateType.d.ts.map +1 -0
- package/dist/fundamentalTypes/nullType.d.ts +6 -0
- package/dist/fundamentalTypes/nullType.d.ts.map +1 -0
- package/dist/fundamentalTypes/numberType.d.ts +6 -0
- package/dist/fundamentalTypes/numberType.d.ts.map +1 -0
- package/dist/fundamentalTypes/objectReferenceType.d.ts +8 -0
- package/dist/fundamentalTypes/objectReferenceType.d.ts.map +1 -0
- package/dist/fundamentalTypes/objectType.d.ts +6 -0
- package/dist/fundamentalTypes/objectType.d.ts.map +1 -0
- package/dist/fundamentalTypes/regexpType.d.ts +8 -0
- package/dist/fundamentalTypes/regexpType.d.ts.map +1 -0
- package/dist/fundamentalTypes/sparseUndefinedType.d.ts +6 -0
- package/dist/fundamentalTypes/sparseUndefinedType.d.ts.map +1 -0
- package/dist/fundamentalTypes/stringType.d.ts +6 -0
- package/dist/fundamentalTypes/stringType.d.ts.map +1 -0
- package/dist/fundamentalTypes/undefinedType.d.ts +6 -0
- package/dist/fundamentalTypes/undefinedType.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/src/deepEqual.d.ts +3 -0
- package/dist/src/deepEqual.d.ts.map +1 -0
- package/dist/src/formatAndTypeChoices.d.ts +47 -0
- package/dist/src/formatAndTypeChoices.d.ts.map +1 -0
- package/dist/src/formats/indexedDBKey.d.ts +9 -0
- package/dist/src/formats/indexedDBKey.d.ts.map +1 -0
- package/dist/src/formats/json.d.ts +9 -0
- package/dist/src/formats/json.d.ts.map +1 -0
- package/dist/src/formats/schemaAndArbitrary.d.ts +6 -0
- package/dist/src/formats/schemaAndArbitrary.d.ts.map +1 -0
- package/dist/src/formats/schemaOnly.d.ts +6 -0
- package/dist/src/formats/schemaOnly.d.ts.map +1 -0
- package/dist/src/formats/structuredCloning.d.ts +15 -0
- package/dist/src/formats/structuredCloning.d.ts.map +1 -0
- package/dist/src/formats.d.ts +18 -0
- package/dist/src/formats.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/BooleanObjectType.d.ts +6 -0
- package/dist/src/fundamentalTypes/BooleanObjectType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/NumberObjectType.d.ts +6 -0
- package/dist/src/fundamentalTypes/NumberObjectType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/StringObjectType.d.ts +6 -0
- package/dist/src/fundamentalTypes/StringObjectType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/arrayReferenceType.d.ts +6 -0
- package/dist/src/fundamentalTypes/arrayReferenceType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/arrayType.d.ts +6 -0
- package/dist/src/fundamentalTypes/arrayType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/bigintType.d.ts +6 -0
- package/dist/src/fundamentalTypes/bigintType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/dateType.d.ts +6 -0
- package/dist/src/fundamentalTypes/dateType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/nullType.d.ts +6 -0
- package/dist/src/fundamentalTypes/nullType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/numberType.d.ts +6 -0
- package/dist/src/fundamentalTypes/numberType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/objectReferenceType.d.ts +6 -0
- package/dist/src/fundamentalTypes/objectReferenceType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/objectType.d.ts +6 -0
- package/dist/src/fundamentalTypes/objectType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/regexpType.d.ts +6 -0
- package/dist/src/fundamentalTypes/regexpType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts +6 -0
- package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/stringType.d.ts +6 -0
- package/dist/src/fundamentalTypes/stringType.d.ts.map +1 -0
- package/dist/src/fundamentalTypes/undefinedType.d.ts +6 -0
- package/dist/src/fundamentalTypes/undefinedType.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/subTypes/blobHTMLType.d.ts +26 -0
- package/dist/src/subTypes/blobHTMLType.d.ts.map +1 -0
- package/dist/src/subTypes/falseType.d.ts +6 -0
- package/dist/src/subTypes/falseType.d.ts.map +1 -0
- package/dist/src/subTypes/trueType.d.ts +6 -0
- package/dist/src/subTypes/trueType.d.ts.map +1 -0
- package/dist/src/superTypes/SpecialNumberSuperType.d.ts +11 -0
- package/dist/src/superTypes/SpecialNumberSuperType.d.ts.map +1 -0
- package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts +6 -0
- package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts.map +1 -0
- package/dist/src/typeChoices.d.ts +30 -0
- package/dist/src/typeChoices.d.ts.map +1 -0
- package/dist/src/types.d.ts +333 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/utils/dialogs.d.ts +29 -0
- package/dist/src/utils/dialogs.d.ts.map +1 -0
- package/dist/src/utils/jsonPointer.d.ts +42 -0
- package/dist/src/utils/jsonPointer.d.ts.map +1 -0
- package/dist/src/utils/templateUtils.d.ts +59 -0
- package/dist/src/utils/templateUtils.d.ts.map +1 -0
- package/dist/src/utils/types.d.ts +2 -0
- package/dist/src/utils/types.d.ts.map +1 -0
- package/dist/subTypes/blobHTMLType.d.ts +14 -0
- package/dist/subTypes/blobHTMLType.d.ts.map +1 -0
- package/dist/subTypes/falseType.d.ts +8 -0
- package/dist/subTypes/falseType.d.ts.map +1 -0
- package/dist/subTypes/trueType.d.ts +8 -0
- package/dist/subTypes/trueType.d.ts.map +1 -0
- package/dist/superTypes/SpecialNumberSuperType.d.ts +14 -0
- package/dist/superTypes/SpecialNumberSuperType.d.ts.map +1 -0
- package/dist/superTypes/SpecialRealNumberSuperType.d.ts +6 -0
- package/dist/superTypes/SpecialRealNumberSuperType.d.ts.map +1 -0
- package/dist/typeChoices.d.ts +103 -0
- package/dist/typeChoices.d.ts.map +1 -0
- package/dist/types.d.ts +523 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/dialogs.d.ts +109 -0
- package/dist/utils/dialogs.d.ts.map +1 -0
- package/dist/utils/jsonPointer.d.ts +46 -0
- package/dist/utils/jsonPointer.d.ts.map +1 -0
- package/dist/utils/templateUtils.d.ts +59 -0
- package/dist/utils/templateUtils.d.ts.map +1 -0
- package/dist/utils/types.d.ts +2 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/vendor/jamilih/dist/jml-es.d.ts +436 -0
- package/dist/vendor/jamilih/dist/jml-es.d.ts.map +1 -0
- package/dist/vendor/typeson-registry/dist/index.d.ts +400 -0
- package/dist/vendor/typeson-registry/dist/index.d.ts.map +1 -0
- package/dist/vendor-imports.d.ts +3 -0
- package/dist/vendor-imports.d.ts.map +1 -0
- package/package.json +16 -11
- package/postorder-traversal.js +58 -0
- package/src/formatAndTypeChoices.js +95 -50
- package/src/formats/indexedDBKey.js +49 -57
- package/src/formats/json.js +47 -56
- package/src/formats/schemaOnly.js +12 -2
- package/src/formats/structuredCloning.js +162 -105
- package/src/formats.js +38 -10
- package/src/fundamentalTypes/BooleanObjectType.js +6 -4
- package/src/fundamentalTypes/NumberObjectType.js +5 -3
- package/src/fundamentalTypes/StringObjectType.js +1 -1
- package/src/fundamentalTypes/arrayReferenceType.js +29 -14
- package/src/fundamentalTypes/arrayType.js +789 -278
- package/src/fundamentalTypes/bigintType.js +2 -2
- package/src/fundamentalTypes/dateType.js +42 -14
- package/src/fundamentalTypes/nullType.js +1 -1
- package/src/fundamentalTypes/numberType.js +2 -2
- package/src/fundamentalTypes/objectReferenceType.js +7 -5
- package/src/fundamentalTypes/regexpType.js +45 -24
- package/src/fundamentalTypes/sparseUndefinedType.js +7 -1
- package/src/fundamentalTypes/stringType.js +1 -1
- package/src/fundamentalTypes/undefinedType.js +2 -2
- package/src/subTypes/blobHTMLType.js +42 -22
- package/src/subTypes/falseType.js +2 -2
- package/src/subTypes/trueType.js +2 -2
- package/src/superTypes/SpecialNumberSuperType.js +13 -6
- package/src/superTypes/SpecialRealNumberSuperType.js +11 -5
- package/src/typeChoices.js +137 -55
- package/src/types.js +309 -146
- package/src/utils/dialogs.js +98 -29
- package/src/utils/jsonPointer.js +4 -0
- package/src/utils/templateUtils.js +27 -12
- package/src/vendor-imports.js +8 -0
- package/tsconfig.json +18 -0
- package/typings/sceditor.d.ts +20 -0
- package/vendor/jamilih/dist/jml-es.js +1019 -389
- package/vendor/jamilih/dist/jml.d.ts +436 -0
- package/vendor/jamilih/package.json +136 -0
- package/vendor/typeson-registry/dist/index.js +365 -83
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.js"],"names":[],"mappings":"AAoCO,mDAHI,iBAAiB,GACf,MAAM,CAOlB;;;;;;;YAMa,OAAO,SAAS,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAWV,OAAO;;;;;;;;;;iBAIvB,MAAM;;;;qBAEH;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC;;;;;uBAGvB;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,KAAK,IAAI;mBAEhC;QACpB,KAAS,CAAC,iBAAiB;QAC3B,aAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,IAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAW,CAAC,EAAE,cAAc,CAAC;QAC7B,UAAc,CAAC,EAAE,MAAM,GAAC,QAAQ,GAAC,MAAM,CAAC;QACxC,MAAU,CAAC,EAAE,MAAM,CAAA;KAChB;mBACiB;QACpB,KAAS,CAAC,iBAAiB;QAC3B,aAAiB,CAAC,EAAE,MAAM,CAAC;KACxB;;;;;qBACiB;QAAC,IAAI,EAAE,cAAc,CAAA;KAAC,KAC1C,gBAAoB,yBAAqB,iBAAiB;;;;;+BAEtC,MAAM;;;;uBAGN;QAAC,IAAI,EAAE,cAAc,CAAC;QAAC,OAAO,CAAC,EAAE,cAAc,CAAA;KAAC,KAAK;QACzE,OAAW,EAAE,MAAM,CAAC;QACpB,KAAS,EAAE,OAAO,CAAA;KACf;;;;;0BACiB;QAAC,OAAO,EAAE,cAAc,CAAA;KAAC,KAAK,IAAI;;;;;;2BAG/B;YACvB,KAAW,EAAE,MAAM,CAAC;YACpB,QAAc,EAAE,MAAM,EAAE,CAAA;SACnB;;;yDAsJU,MAAM,cACJ,MAAM,6BACS,MAAM,aACtB,MAAM,KACd,WAAW;0BAIP;IACZ,aAAiB,EAAE,MAAM,CAAC;IAC1B,UAAc,EAAE,OAAO,CAAC;IACxB,MAAU,EAAE,MAAM,CAAC;IACnB,KAAS,EAAE,KAAK,CAAC;IACjB,MAAU,EAAE,OAAO,CAAC;IACpB,aAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAoC,EAAE,gCAAgC,CAAA;CACnE;;;;0BAwMS,cAAc;;;;;;;;;;IApO3B;;;;;OAKG;IACH,yEAEC;IAED;;;;;;;OAOG;IAEH;;;;;;;;;;OAUG;IAEH;;;;;;;;OAQG;IACH,8HAOC;IAED;;;;;OAKG;IACH,8EAOC;IAED;;;;;;OAMG;IACH,0GAEC;IAED;;;;OAIG;IACH,4FAMC;IAED;;;;OAIG;IACH,4EAE6D;IAE7D;;;;OAIG;IACH,sDAIC;IAED;;;;;OAKG;IACH,8FAOC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH;;;;;;;;;;;;;gBA2BC;;IAoBD;;;;;;;OAOG;IACH;;;;gBA4BC;IAED;;;OAGG;IAEH;;;;;OAKG;IACH;;aAkBC;IAED;;;;;;;OAOG;IACH;;;;gBAgBC;IAED;;;;;;OAMG;IACH;;;;aAKC;IAqBD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH;;;;;;;;;;MA6GC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default dialogs;
|
|
2
|
+
declare namespace dialogs {
|
|
3
|
+
function setLocale(locale?: {}): void;
|
|
4
|
+
function makeDialog({ atts, children, close, remove }?: {
|
|
5
|
+
atts?: {} | undefined;
|
|
6
|
+
children?: any[] | undefined;
|
|
7
|
+
close: any;
|
|
8
|
+
remove?: boolean | undefined;
|
|
9
|
+
}): import("../../vendor/jamilih/dist/jml-es.js").JamilihReturn;
|
|
10
|
+
function makeSubmitDialog({ submit, submitClass, ...args }: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
submit: any;
|
|
13
|
+
submitClass?: string | undefined;
|
|
14
|
+
}): import("../../vendor/jamilih/dist/jml-es.js").JamilihReturn;
|
|
15
|
+
function makeCancelDialog({ submit, cancel, cancelClass, submitClass, ...args }: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
submit: any;
|
|
18
|
+
cancel: any;
|
|
19
|
+
cancelClass?: string | undefined;
|
|
20
|
+
submitClass?: string | undefined;
|
|
21
|
+
}): import("../../vendor/jamilih/dist/jml-es.js").JamilihReturn;
|
|
22
|
+
function alert(message: any): Promise<any>;
|
|
23
|
+
function confirm({ atts, message, submitClass }: {
|
|
24
|
+
atts?: {} | undefined;
|
|
25
|
+
message: any;
|
|
26
|
+
submitClass?: string | undefined;
|
|
27
|
+
}): Promise<any>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=dialogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogs.d.ts","sourceRoot":"","sources":["../../../src/utils/dialogs.js"],"names":[],"mappings":";;IAYE,sCAEC;IACD;;;;;oEAiBC;IACD;;;;oEAcC;IACD;;;;;;oEAsBC;IACD,2CAiBC;IACD;;;;qBAoBC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {...string} args
|
|
3
|
+
* @returns {string}
|
|
4
|
+
*/
|
|
5
|
+
export function makeJSONPointer(...args: string[]): string;
|
|
6
|
+
/**
|
|
7
|
+
* @param {string} path
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
export function escapeJSONPointer(path: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} pathPart
|
|
13
|
+
* @returns {string}
|
|
14
|
+
*/
|
|
15
|
+
export function unescapeJSONPointerPart(pathPart: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* @param {string} path
|
|
18
|
+
* @returns {string[]}
|
|
19
|
+
*/
|
|
20
|
+
export function getJSONPointerParts(path: string): string[];
|
|
21
|
+
/**
|
|
22
|
+
* @param {ArbitraryObject} obj
|
|
23
|
+
* @param {string} pathPart
|
|
24
|
+
* @returns {ArbitraryObject|string}
|
|
25
|
+
*/
|
|
26
|
+
export function reduceJSONPointerParts(obj: ArbitraryObject, pathPart: string): ArbitraryObject | string;
|
|
27
|
+
/**
|
|
28
|
+
* @param {object} cfg
|
|
29
|
+
* @param {string} cfg.path
|
|
30
|
+
* @param {ArbitraryObject} cfg.obj
|
|
31
|
+
* @returns {string|ArbitraryObject}
|
|
32
|
+
*/
|
|
33
|
+
export function resolveJSONPointer({ path, obj }: {
|
|
34
|
+
path: string;
|
|
35
|
+
obj: ArbitraryObject;
|
|
36
|
+
}): string | ArbitraryObject;
|
|
37
|
+
/**
|
|
38
|
+
* @param {string} path
|
|
39
|
+
* @returns {string}
|
|
40
|
+
*/
|
|
41
|
+
export function typesonPathToJSONPointer(path: string): string;
|
|
42
|
+
//# sourceMappingURL=jsonPointer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonPointer.d.ts","sourceRoot":"","sources":["../../../src/utils/jsonPointer.js"],"names":[],"mappings":"AAAA;;;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;;;;GAIG;AACH,uEAHW,MAAM,GACJ,kBAAgB,MAAM,CAQlC;AAED;;;;;GAKG;AACH;IAJuB,IAAI,EAAhB,MAAM;IACe,GAAG;IACtB,MAAM,kBAAgB,CAOlC;AAED;;;GAGG;AACH,+CAHW,MAAM,GACJ,MAAM,CAYlB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export namespace U {
|
|
2
|
+
export { nbsp };
|
|
3
|
+
export { upArrow };
|
|
4
|
+
export { downArrow };
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @param {string} sel
|
|
8
|
+
* @returns {Element|null}
|
|
9
|
+
*/
|
|
10
|
+
export function $(sel: string): Element | null;
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} sel
|
|
13
|
+
* @returns {Element[]}
|
|
14
|
+
*/
|
|
15
|
+
export function $$(sel: string): Element[];
|
|
16
|
+
/**
|
|
17
|
+
* @param {Element|string} el
|
|
18
|
+
* @param {string} descendentsSel
|
|
19
|
+
* @returns {Element|null}
|
|
20
|
+
*/
|
|
21
|
+
export function $e(el: Element | string, descendentsSel: string): Element | null;
|
|
22
|
+
/**
|
|
23
|
+
* @param {Element|string} el
|
|
24
|
+
* @param {string} descendentsSel
|
|
25
|
+
* @returns {Element[]}
|
|
26
|
+
*/
|
|
27
|
+
export function $$e(el: Element | string, descendentsSel: string): Element[];
|
|
28
|
+
export namespace DOM {
|
|
29
|
+
export { removeChildren };
|
|
30
|
+
export { removeIfExists };
|
|
31
|
+
export { filterChildElements };
|
|
32
|
+
export { initialCaps };
|
|
33
|
+
}
|
|
34
|
+
declare const nbsp: " ";
|
|
35
|
+
declare const upArrow: "↑";
|
|
36
|
+
declare const downArrow: "↓";
|
|
37
|
+
/**
|
|
38
|
+
* @param {Node} node
|
|
39
|
+
* @returns {void}
|
|
40
|
+
*/
|
|
41
|
+
declare function removeChildren(node: Node): void;
|
|
42
|
+
/**
|
|
43
|
+
* @param {Element|string} sel
|
|
44
|
+
* @returns {void}
|
|
45
|
+
*/
|
|
46
|
+
declare function removeIfExists(sel: Element | string): void;
|
|
47
|
+
/**
|
|
48
|
+
* @param {Element} el
|
|
49
|
+
* @param {string|string[]} selectors
|
|
50
|
+
* @returns {Element[]}
|
|
51
|
+
*/
|
|
52
|
+
declare function filterChildElements(el: Element, selectors: string | string[]): Element[];
|
|
53
|
+
/**
|
|
54
|
+
* @param {string} s
|
|
55
|
+
* @returns {string}
|
|
56
|
+
*/
|
|
57
|
+
declare function initialCaps(s: string): string;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=templateUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/templateUtils.js"],"names":[],"mappings":";;;;;AAMA;;;GAGG;AACH,uBAHW,MAAM,GACJ,OAAO,GAAC,IAAI,CAEqB;AAE9C;;;GAGG;AACH,wBAHW,MAAM,GACJ,OAAO,EAAE,CAEiC;AAEvD;;;;GAIG;AACH,uBAJW,OAAO,GAAC,MAAM,kBACd,MAAM,GACJ,OAAO,GAAC,IAAI,CAQxB;AAED;;;;GAIG;AACH,wBAJW,OAAO,GAAC,MAAM,kBACd,MAAM,GACJ,OAAO,EAAE,CAQrB;;;;;;;AAzCD,wBAAsB;AACtB,2BAAyB;AACzB,6BAA2B;AAyC3B;;;GAGG;AACH,sCAHW,IAAI,GACF,IAAI,CAUhB;AAED;;;GAGG;AACH,qCAHW,OAAO,GAAC,MAAM,GACZ,IAAI,CAOhB;AAED;;;;GAIG;AACH,yCAJW,OAAO,aACP,MAAM,GAAC,MAAM,EAAE,GACb,OAAO,EAAE,CA+BrB;AAED;;;GAGG;AACH,gCAHW,MAAM,GACJ,MAAM,CAIlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.js"],"names":[],"mappings":"AAGO,+BAFI,OAAO,WAIjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default blobHTMLType;
|
|
2
|
+
/**
|
|
3
|
+
* @type {import('../types.js').TypeObject & {
|
|
4
|
+
* loadBlob: (blob: Blob) => Promise<FileReader>,
|
|
5
|
+
* sceditorInstance: {val: (val?: string) => string|void}
|
|
6
|
+
* }}
|
|
7
|
+
*/
|
|
8
|
+
declare const blobHTMLType: import("../types.js").TypeObject & {
|
|
9
|
+
loadBlob: (blob: Blob) => Promise<FileReader>;
|
|
10
|
+
sceditorInstance: {
|
|
11
|
+
val: (val?: string) => string | void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=blobHTMLType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blobHTMLType.d.ts","sourceRoot":"","sources":["../../src/subTypes/blobHTMLType.js"],"names":[],"mappings":";AAOA;;;;;GAKG;AACH;qBAJsB,IAAI,KAAK,QAAQ,UAAU,CAAC;;oBACd,MAAM,KAAK,MAAM,GAAC,IAAI;;EAuKxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"falseType.d.ts","sourceRoot":"","sources":["../../src/subTypes/falseType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,EAAE,EAAE,MAAM,CAAA;CAAC,CAoCvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trueType.d.ts","sourceRoot":"","sources":["../../src/subTypes/trueType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,wBAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,EAAE,EAAE,MAAM,CAAA;CAAC,CAoCvD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default SpecialNumberSuperType;
|
|
2
|
+
export type SuperTypeObject = import('../types.js').TypeObject & {
|
|
3
|
+
childTypes: string[];
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @typedef {import('../types.js').TypeObject & {
|
|
7
|
+
* childTypes: string[]
|
|
8
|
+
* }} SuperTypeObject
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @type {SuperTypeObject}
|
|
12
|
+
*/
|
|
13
|
+
declare const SpecialNumberSuperType: SuperTypeObject;
|
|
14
|
+
//# sourceMappingURL=SpecialNumberSuperType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecialNumberSuperType.d.ts","sourceRoot":"","sources":["../../src/superTypes/SpecialNumberSuperType.js"],"names":[],"mappings":";8BAGa,OAAO,aAAa,EAAE,UAAU,GAAG;IAC/C,UAAc,EAAE,MAAM,EAAE,CAAA;CACrB;AAHJ;;;;GAIG;AAEH;;GAEG;AACH,sCAFU,eAAe,CAgEvB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default SpecialRealNumberSuperType;
|
|
2
|
+
/**
|
|
3
|
+
* @type {import('./SpecialNumberSuperType.js').SuperTypeObject}
|
|
4
|
+
*/
|
|
5
|
+
declare const SpecialRealNumberSuperType: import('./SpecialNumberSuperType.js').SuperTypeObject;
|
|
6
|
+
//# sourceMappingURL=SpecialRealNumberSuperType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecialRealNumberSuperType.d.ts","sourceRoot":"","sources":["../../src/superTypes/SpecialRealNumberSuperType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0CAFU,OAAO,6BAA6B,EAAE,eAAe,CAwD7D"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {(info: {type: string, editUI: Element}) => void} AddTypeAndEditUI
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @typedef {(info?: {
|
|
6
|
+
* baseValue?: import('./formats.js').StructuredCloneValue,
|
|
7
|
+
* bringIntoFocus?: boolean
|
|
8
|
+
* }) => void} AddAndValidateEditUI
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {() => void} SetStyles
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {Element & {
|
|
15
|
+
* $addAndValidateEditUI: AddAndValidateEditUI,
|
|
16
|
+
* $setStyles: SetStyles
|
|
17
|
+
* }} TypeChoicesElementAPI
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @callback GetValue
|
|
21
|
+
* @param {import('./types.js').StateObject} [stateObj] Will
|
|
22
|
+
* auto-set `typeNamespace` and `format`
|
|
23
|
+
* @param {string} [currentPath]
|
|
24
|
+
* @returns {import('./formats.js').StructuredCloneValue}
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @callback GetType
|
|
28
|
+
* @returns {string|null|undefined}
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @callback ValidValuesSet
|
|
32
|
+
* @returns {boolean}
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* @callback SetValue
|
|
36
|
+
* @param {import('./formats.js').StructuredCloneValue} value
|
|
37
|
+
* @param {import('./types.js').StateObject} stateObj
|
|
38
|
+
* @returns {Promise<void>}
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* @callback BuildTypeChoices
|
|
42
|
+
* @param {{
|
|
43
|
+
* format: import('./formats.js').AvailableFormat,
|
|
44
|
+
* typeNamespace?: string,
|
|
45
|
+
* value?: import('./formats.js').StructuredCloneValue,
|
|
46
|
+
* setValue?: boolean,
|
|
47
|
+
* state?: string,
|
|
48
|
+
* keySelectClass?: string,
|
|
49
|
+
* requireObject?: boolean,
|
|
50
|
+
* objectHasValue?: boolean,
|
|
51
|
+
* topRoot: import('./types.js').RootElement,
|
|
52
|
+
* schema?: string,
|
|
53
|
+
* schemaContent?: object,
|
|
54
|
+
* }} cfg
|
|
55
|
+
* @returns {{
|
|
56
|
+
* domArray: [select: Element, typeContainer: Element],
|
|
57
|
+
* getValue: GetValue,
|
|
58
|
+
* getType: GetType,
|
|
59
|
+
* validValuesSet: ValidValuesSet,
|
|
60
|
+
* setValue: SetValue
|
|
61
|
+
* }}
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* @type {BuildTypeChoices}
|
|
65
|
+
*/
|
|
66
|
+
export const buildTypeChoices: BuildTypeChoices;
|
|
67
|
+
export type AddTypeAndEditUI = (info: {
|
|
68
|
+
type: string;
|
|
69
|
+
editUI: Element;
|
|
70
|
+
}) => void;
|
|
71
|
+
export type AddAndValidateEditUI = (info?: {
|
|
72
|
+
baseValue?: import('./formats.js').StructuredCloneValue;
|
|
73
|
+
bringIntoFocus?: boolean;
|
|
74
|
+
}) => void;
|
|
75
|
+
export type SetStyles = () => void;
|
|
76
|
+
export type TypeChoicesElementAPI = Element & {
|
|
77
|
+
$addAndValidateEditUI: AddAndValidateEditUI;
|
|
78
|
+
$setStyles: SetStyles;
|
|
79
|
+
};
|
|
80
|
+
export type GetValue = (stateObj?: import("./types.js").StateObject | undefined, currentPath?: string | undefined) => import('./formats.js').StructuredCloneValue;
|
|
81
|
+
export type GetType = () => string | null | undefined;
|
|
82
|
+
export type ValidValuesSet = () => boolean;
|
|
83
|
+
export type SetValue = (value: import('./formats.js').StructuredCloneValue, stateObj: import('./types.js').StateObject) => Promise<void>;
|
|
84
|
+
export type BuildTypeChoices = (cfg: {
|
|
85
|
+
format: import('./formats.js').AvailableFormat;
|
|
86
|
+
typeNamespace?: string;
|
|
87
|
+
value?: import('./formats.js').StructuredCloneValue;
|
|
88
|
+
setValue?: boolean;
|
|
89
|
+
state?: string;
|
|
90
|
+
keySelectClass?: string;
|
|
91
|
+
requireObject?: boolean;
|
|
92
|
+
objectHasValue?: boolean;
|
|
93
|
+
topRoot: import('./types.js').RootElement;
|
|
94
|
+
schema?: string;
|
|
95
|
+
schemaContent?: object;
|
|
96
|
+
}) => {
|
|
97
|
+
domArray: [select: Element, typeContainer: Element];
|
|
98
|
+
getValue: GetValue;
|
|
99
|
+
getType: GetType;
|
|
100
|
+
validValuesSet: ValidValuesSet;
|
|
101
|
+
setValue: SetValue;
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=typeChoices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeChoices.d.ts","sourceRoot":"","sources":["../src/typeChoices.js"],"names":[],"mappings":"AAOA;;GAEG;AAEH;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;GAEG;AACH,+BAFU,gBAAgB,CA2PxB;sCAlUkB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAC,KAAK,IAAI;2CAIvC;IACpB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI;wBAIA,MAAM,IAAI;oCAIV,OAAO,GAAG;IACtB,qBAAyB,EAAE,oBAAoB,CAAC;IAChD,UAAc,EAAE,SAAS,CAAA;CACtB;sHAQS,OAAO,cAAc,EAAE,oBAAoB;4BAK3C,MAAM,GAAC,IAAI,GAAC,SAAS;mCAKrB,OAAO;+BAKT,OAAO,cAAc,EAAE,oBAAoB,YAC3C,OAAO,YAAY,EAAE,WAAW,KAC9B,QAAQ,IAAI,CAAC;qCAKf;IACV,MAAU,EAAE,OAAO,cAAc,EAAE,eAAe,CAAC;IACnD,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAS,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IACxD,QAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAW,EAAE,OAAO,YAAY,EAAE,WAAW,CAAC;IAC9C,MAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAiB,CAAC,EAAE,MAAM,CAAC;CACxB,KACS;IACZ,QAAY,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACxD,QAAY,EAAE,QAAQ,CAAC;IACvB,OAAW,EAAE,OAAO,CAAC;IACrB,cAAkB,EAAE,cAAc,CAAC;IACnC,QAAY,EAAE,QAAQ,CAAA;CACnB"}
|