@json-layout/core 2.8.0 → 2.8.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/package.json +2 -2
- package/src/i18n/de.js +1 -0
- package/src/i18n/en.js +1 -0
- package/src/i18n/fr.js +1 -0
- package/src/i18n/nl.js +1 -0
- package/src/i18n/types.ts +1 -0
- package/types/compile/index.d.ts +16 -0
- package/types/compile/index.d.ts.map +1 -0
- package/types/compile/options.d.ts +6 -0
- package/types/compile/options.d.ts.map +1 -0
- package/types/compile/serialize.d.ts +6 -0
- package/types/compile/serialize.d.ts.map +1 -0
- package/types/compile/skeleton-node.d.ts +21 -0
- package/types/compile/skeleton-node.d.ts.map +1 -0
- package/types/compile/skeleton-tree.d.ts +19 -0
- package/types/compile/skeleton-tree.d.ts.map +1 -0
- package/types/compile/types.d.ts +61 -0
- package/types/compile/types.d.ts.map +1 -0
- package/types/compile/utils/resolve-refs.d.ts +17 -0
- package/types/compile/utils/resolve-refs.d.ts.map +1 -0
- package/types/compile/utils/x-i18n.d.ts +2 -0
- package/types/compile/utils/x-i18n.d.ts.map +1 -0
- package/types/i18n/de.d.ts +25 -0
- package/types/i18n/de.d.ts.map +1 -0
- package/types/i18n/en.d.ts +25 -0
- package/types/i18n/en.d.ts.map +1 -0
- package/types/i18n/fr.d.ts +25 -0
- package/types/i18n/fr.d.ts.map +1 -0
- package/types/i18n/index.d.ts +8 -0
- package/types/i18n/index.d.ts.map +1 -0
- package/types/i18n/nl.d.ts +25 -0
- package/types/i18n/nl.d.ts.map +1 -0
- package/types/i18n/types.d.ts +24 -0
- package/types/i18n/types.d.ts.map +1 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/state/index.d.ts +303 -0
- package/types/state/index.d.ts.map +1 -0
- package/types/state/options.d.ts +11 -0
- package/types/state/options.d.ts.map +1 -0
- package/types/state/state-node.d.ts +63 -0
- package/types/state/state-node.d.ts.map +1 -0
- package/types/state/state-tree.d.ts +13 -0
- package/types/state/state-tree.d.ts.map +1 -0
- package/types/state/types.d.ts +198 -0
- package/types/state/types.d.ts.map +1 -0
- package/types/state/utils/display.d.ts +51 -0
- package/types/state/utils/display.d.ts.map +1 -0
- package/types/state/utils/immutable.d.ts +21 -0
- package/types/state/utils/immutable.d.ts.map +1 -0
- package/types/state/utils/modified.d.ts +17 -0
- package/types/state/utils/modified.d.ts.map +1 -0
- package/types/state/utils/regexps.d.ts +6 -0
- package/types/state/utils/regexps.d.ts.map +1 -0
- package/types/state/utils/urls.d.ts +2 -0
- package/types/state/utils/urls.d.ts.map +1 -0
- package/types/utils/build.d.ts +5 -0
- package/types/utils/build.d.ts.map +1 -0
- package/types/utils/clone.d.ts +2 -0
- package/types/utils/clone.d.ts.map +1 -0
- package/types/utils/doc-options.d.ts +14 -0
- package/types/utils/doc-options.d.ts.map +1 -0
- package/types/webmcp/index.d.ts +90 -0
- package/types/webmcp/index.d.ts.map +1 -0
- package/types/webmcp/project.d.ts +111 -0
- package/types/webmcp/project.d.ts.map +1 -0
- package/types/webmcp/resolve.d.ts +11 -0
- package/types/webmcp/resolve.d.ts.map +1 -0
- package/types/webmcp/tools/describe-state.d.ts +79 -0
- package/types/webmcp/tools/describe-state.d.ts.map +1 -0
- package/types/webmcp/tools/edit-array.d.ts +88 -0
- package/types/webmcp/tools/edit-array.d.ts.map +1 -0
- package/types/webmcp/tools/fill-form-skill.d.ts +24 -0
- package/types/webmcp/tools/fill-form-skill.d.ts.map +1 -0
- package/types/webmcp/tools/get-data.d.ts +31 -0
- package/types/webmcp/tools/get-data.d.ts.map +1 -0
- package/types/webmcp/tools/get-field-suggestions.d.ts +66 -0
- package/types/webmcp/tools/get-field-suggestions.d.ts.map +1 -0
- package/types/webmcp/tools/set-data.d.ts +60 -0
- package/types/webmcp/tools/set-data.d.ts.map +1 -0
- package/types/webmcp/tools/set-field-value.d.ts +91 -0
- package/types/webmcp/tools/set-field-value.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@json-layout/core",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Compilation and state management utilities for JSON Layout.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"homepage": "https://github.com/json-layout/json-layout#readme",
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@json-layout/vocabulary": "^2.13.
|
|
85
|
+
"@json-layout/vocabulary": "^2.13.1"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"ajv": "^8.17.1",
|
package/src/i18n/de.js
CHANGED
package/src/i18n/en.js
CHANGED
package/src/i18n/fr.js
CHANGED
package/src/i18n/nl.js
CHANGED
package/src/i18n/types.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {object} _schema
|
|
3
|
+
* @param {PartialCompileOptions} [partialOptions]
|
|
4
|
+
* @returns {CompiledLayout}
|
|
5
|
+
*/
|
|
6
|
+
export function compile(_schema: object, partialOptions?: PartialCompileOptions): CompiledLayout;
|
|
7
|
+
export { resolveLocaleRefs } from "./utils/resolve-refs.js";
|
|
8
|
+
export { resolveXI18n } from "./utils/x-i18n.js";
|
|
9
|
+
export { produceCompileOptions } from "./options.js";
|
|
10
|
+
export type SkeletonTree = import("./types.js").SkeletonTree;
|
|
11
|
+
export type SkeletonNode = import("./types.js").SkeletonNode;
|
|
12
|
+
export type CompiledLayout = import("./types.js").CompiledLayout;
|
|
13
|
+
export type CompileOptions = import("./types.js").CompileOptions;
|
|
14
|
+
export type PartialCompileOptions = import("./types.js").PartialCompileOptions;
|
|
15
|
+
export type CompiledExpression = import("./types.js").CompiledExpression;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,iCAJW,MAAM,mBACN,qBAAqB,GACnB,cAAc,CAuH1B;;;;2BAvIY,OAAO,YAAY,EAAE,YAAY;2BACjC,OAAO,YAAY,EAAE,YAAY;6BACjC,OAAO,YAAY,EAAE,cAAc;6BACnC,OAAO,YAAY,EAAE,cAAc;oCACnC,OAAO,YAAY,EAAE,qBAAqB;iCAC1C,OAAO,YAAY,EAAE,kBAAkB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function fillOptions(partialOptions: PartialCompileOptions): CompileOptions;
|
|
2
|
+
/** @type {(draft: PartialCompileOptions, newOptions: PartialCompileOptions) => PartialCompileOptions} */
|
|
3
|
+
export const produceCompileOptions: (draft: PartialCompileOptions, newOptions: PartialCompileOptions) => PartialCompileOptions;
|
|
4
|
+
export type CompileOptions = import("./types.js").CompileOptions;
|
|
5
|
+
export type PartialCompileOptions = import("./types.js").PartialCompileOptions;
|
|
6
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":"AAqBO,4CAHI,qBAAqB,GACnB,cAAc,CAwD1B;AAGD,yGAAyG;AACzG,oCADW,CAAC,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,qBAAqB,KAAK,qBAAqB,CAiBnG;6BArFW,OAAO,YAAY,EAAE,cAAc;oCACnC,OAAO,YAAY,EAAE,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../src/compile/serialize.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,0CAHW,OAAO,YAAY,EAAE,cAAc,GACjC,OAAO,CAAC,MAAM,CAAC,CAyG3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {any} rawSchema
|
|
3
|
+
* @param {string} sourceSchemaId
|
|
4
|
+
* @param {import('./index.js').CompileOptions} options
|
|
5
|
+
* @param {(schemaId: string, ref: string) => [any, string, string]} getJSONRef
|
|
6
|
+
* @param {Record<string, import('./types.js').SkeletonTree>} skeletonTrees
|
|
7
|
+
* @param {Record<string, import('./types.js').SkeletonNode>} skeletonNodes
|
|
8
|
+
* @param {string[]} validatePointers
|
|
9
|
+
* @param {Record<string, string[]>} validationErrors
|
|
10
|
+
* @param {Record<string, import('@json-layout/vocabulary').NormalizedLayout>} normalizedLayouts
|
|
11
|
+
* @param {import('@json-layout/vocabulary').Expression[]} expressions
|
|
12
|
+
* @param {string | number} key
|
|
13
|
+
* @param {string} pointer
|
|
14
|
+
* @param {boolean} required
|
|
15
|
+
* @param {string} [condition]
|
|
16
|
+
* @param {boolean} [dependent]
|
|
17
|
+
* @param {string} [knownType]
|
|
18
|
+
* @returns {import('./types.js').SkeletonNode}
|
|
19
|
+
*/
|
|
20
|
+
export function makeSkeletonNode(rawSchema: any, sourceSchemaId: string, options: import("./index.js").CompileOptions, getJSONRef: (schemaId: string, ref: string) => [any, string, string], skeletonTrees: Record<string, import("./types.js").SkeletonTree>, skeletonNodes: Record<string, import("./types.js").SkeletonNode>, validatePointers: string[], validationErrors: Record<string, string[]>, normalizedLayouts: Record<string, import("@json-layout/vocabulary").NormalizedLayout>, expressions: import("@json-layout/vocabulary").Expression[], key: string | number, pointer: string, required: boolean, condition?: string, dependent?: boolean, knownType?: string): import("./types.js").SkeletonNode;
|
|
21
|
+
//# sourceMappingURL=skeleton-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;GAkBG;AACH,4CAlBW,GAAG,kBACH,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,cACnC,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,iBACxD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,iBACjD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,oBACjD,MAAM,EAAE,oBACR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,qBACxB,MAAM,CAAC,MAAM,EAAE,OAAO,yBAAyB,EAAE,gBAAgB,CAAC,eAClE,OAAO,yBAAyB,EAAE,UAAU,EAAE,OAC9C,MAAM,GAAG,MAAM,WACf,MAAM,YACN,OAAO,cACP,MAAM,cACN,OAAO,cACP,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,CA4jB7C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {any} schema
|
|
3
|
+
* @param {string} schemaId
|
|
4
|
+
* @param {import('./index.js').CompileOptions} options
|
|
5
|
+
* @param {(schemaId: string, ref: string) => [any, string, string]} getJSONRef
|
|
6
|
+
* @param {Record<string, import('./types.js').SkeletonTree>} skeletonTrees
|
|
7
|
+
* @param {Record<string, import('./types.js').SkeletonNode>} skeletonNodes
|
|
8
|
+
* @param {string[]} validatePointers
|
|
9
|
+
* @param {Record<string, string[]>} validationErrors
|
|
10
|
+
* @param {Record<string, import('@json-layout/vocabulary').NormalizedLayout>} normalizedLayouts
|
|
11
|
+
* @param {import('@json-layout/vocabulary').Expression[]} expressions
|
|
12
|
+
* @param {string} pointer
|
|
13
|
+
* @param {string} [defaultTitle]
|
|
14
|
+
* @param {boolean} [deleteRootNodeTitle]
|
|
15
|
+
* @param {string} [discriminator]
|
|
16
|
+
* @returns {import('./types.js').SkeletonTree}
|
|
17
|
+
*/
|
|
18
|
+
export function makeSkeletonTree(schema: any, schemaId: string, options: import("./index.js").CompileOptions, getJSONRef: (schemaId: string, ref: string) => [any, string, string], skeletonTrees: Record<string, import("./types.js").SkeletonTree>, skeletonNodes: Record<string, import("./types.js").SkeletonNode>, validatePointers: string[], validationErrors: Record<string, string[]>, normalizedLayouts: Record<string, import("@json-layout/vocabulary").NormalizedLayout>, expressions: import("@json-layout/vocabulary").Expression[], pointer: string, defaultTitle?: string, deleteRootNodeTitle?: boolean, discriminator?: string): import("./types.js").SkeletonTree;
|
|
19
|
+
//# sourceMappingURL=skeleton-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton-tree.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-tree.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,yCAhBW,GAAG,YACH,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,cACnC,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,iBACxD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,iBACjD,MAAM,CAAC,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,CAAC,oBACjD,MAAM,EAAE,oBACR,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,qBACxB,MAAM,CAAC,MAAM,EAAE,OAAO,yBAAyB,EAAE,gBAAgB,CAAC,eAClE,OAAO,yBAAyB,EAAE,UAAU,EAAE,WAC9C,MAAM,iBACN,MAAM,wBACN,OAAO,kBACP,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,CAqD7C"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type ajvModule from 'ajv/dist/2019.js';
|
|
2
|
+
import type { MarkedOptions } from 'marked';
|
|
3
|
+
import { type ComponentInfo, type BaseCompObject, type NormalizedLayout, type StateNodeOptionsBase, type Expression, type NormalizeOptions } from '@json-layout/vocabulary';
|
|
4
|
+
import { type ValidateFunction, type SchemaObject } from 'ajv/dist/2019.js';
|
|
5
|
+
import { type Display } from '../state/utils/display.js';
|
|
6
|
+
import { type LocaleMessages } from '../i18n/types.js';
|
|
7
|
+
export interface ParentContextExpression {
|
|
8
|
+
data: unknown;
|
|
9
|
+
parent: ParentContextExpression | undefined | null;
|
|
10
|
+
}
|
|
11
|
+
export type CompiledExpression = (data: any, dataAlias: any, options: StateNodeOptionsBase, context: object, display: Display, layout: BaseCompObject, readOnly: boolean, summary: boolean, validates: Record<string, ValidateFunction>, rootData?: unknown, parent?: ParentContextExpression | null) => any;
|
|
12
|
+
export type CompileOptions = NormalizeOptions & {
|
|
13
|
+
ajv: ajvModule.default;
|
|
14
|
+
ajvOptions?: ajvModule.Options;
|
|
15
|
+
markedOptions?: MarkedOptions;
|
|
16
|
+
locale: string;
|
|
17
|
+
defaultLocale: string;
|
|
18
|
+
messages: LocaleMessages;
|
|
19
|
+
xI18n: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type PartialCompileOptions = Partial<Omit<CompileOptions, 'messages'>> & {
|
|
22
|
+
messages?: Partial<LocaleMessages>;
|
|
23
|
+
components?: Record<string, Omit<ComponentInfo, 'name'>>;
|
|
24
|
+
};
|
|
25
|
+
export interface CompiledLayout {
|
|
26
|
+
options?: CompileOptions;
|
|
27
|
+
schema?: SchemaObject;
|
|
28
|
+
mainTree: string;
|
|
29
|
+
skeletonTrees: Record<string, SkeletonTree>;
|
|
30
|
+
skeletonNodes: Record<string, SkeletonNode>;
|
|
31
|
+
validates: Record<string, ValidateFunction>;
|
|
32
|
+
validationErrors: Record<string, string[]>;
|
|
33
|
+
normalizedLayouts: Record<string, NormalizedLayout>;
|
|
34
|
+
expressions: CompiledExpression[];
|
|
35
|
+
locale: string;
|
|
36
|
+
messages: LocaleMessages;
|
|
37
|
+
components: Record<string, Omit<ComponentInfo, 'schema'>>;
|
|
38
|
+
localizeErrors: (errors: ajvModule.ErrorObject[]) => void;
|
|
39
|
+
}
|
|
40
|
+
export interface SkeletonTree {
|
|
41
|
+
title: string;
|
|
42
|
+
root: string;
|
|
43
|
+
refPointer: string;
|
|
44
|
+
discriminatorValue?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface SkeletonNode {
|
|
47
|
+
title?: string;
|
|
48
|
+
key: string | number;
|
|
49
|
+
pointer: string;
|
|
50
|
+
refPointer: string;
|
|
51
|
+
pure: boolean;
|
|
52
|
+
propertyKeys: string[];
|
|
53
|
+
roPropertyKeys: string[];
|
|
54
|
+
condition?: Expression;
|
|
55
|
+
children?: string[];
|
|
56
|
+
childrenTrees?: string[];
|
|
57
|
+
discriminator?: string;
|
|
58
|
+
required?: boolean;
|
|
59
|
+
nullable?: boolean;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/compile/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mutates a schema by replacing ~$locale~ in all refs
|
|
3
|
+
* @param {import('ajv').SchemaObject} schema
|
|
4
|
+
* @param {import('ajv/dist/2019.js').default} ajv
|
|
5
|
+
* @param {string} [locale]
|
|
6
|
+
* @param {string} [defaultLocale]
|
|
7
|
+
* @returns {(schemaId: string, ref: string) => [any, string, string]}
|
|
8
|
+
*/
|
|
9
|
+
export function resolveLocaleRefs(schema: import("ajv").SchemaObject, ajv: import("ajv/dist/2019.js").default, locale?: string, defaultLocale?: string): (schemaId: string, ref: string) => [any, string, string];
|
|
10
|
+
/**
|
|
11
|
+
* partially resolve a schema but not recursively, used for layout normalization
|
|
12
|
+
* @param {import('ajv').SchemaObject} schema
|
|
13
|
+
* @param {string} schemaId
|
|
14
|
+
* @param {(schemaId: string, ref: string) => [any, string, string]} getJSONRef
|
|
15
|
+
*/
|
|
16
|
+
export function partialResolveRefs(schema: import("ajv").SchemaObject, schemaId: string, getJSONRef: (schemaId: string, ref: string) => [any, string, string]): any;
|
|
17
|
+
//# sourceMappingURL=resolve-refs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-refs.d.ts","sourceRoot":"","sources":["../../../src/compile/utils/resolve-refs.js"],"names":[],"mappings":"AAyBA;;;;;;;GAOG;AACH,0CANW,OAAO,KAAK,EAAE,YAAY,OAC1B,OAAO,kBAAkB,EAAE,OAAO,WAClC,MAAM,kBACN,MAAM,GACJ,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CASpE;AAuCD;;;;;GAKG;AACH,2CAJW,OAAO,KAAK,EAAE,YAAY,YAC1B,MAAM,cACN,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,OA+ClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-i18n.d.ts","sourceRoot":"","sources":["../../../src/compile/utils/x-i18n.js"],"names":[],"mappings":"AAOO,qCAJI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UACnB,MAAM,kBACN,MAAM,QAkBhB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
errorOneOf: string;
|
|
3
|
+
errorRequired: string;
|
|
4
|
+
addItem: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
edit: string;
|
|
7
|
+
confirm: string;
|
|
8
|
+
close: string;
|
|
9
|
+
duplicate: string;
|
|
10
|
+
insertAfter: string;
|
|
11
|
+
copy: string;
|
|
12
|
+
paste: string;
|
|
13
|
+
sort: string;
|
|
14
|
+
up: string;
|
|
15
|
+
down: string;
|
|
16
|
+
showHelp: string;
|
|
17
|
+
default: string;
|
|
18
|
+
name: string;
|
|
19
|
+
examples: string;
|
|
20
|
+
deprecated: string;
|
|
21
|
+
keyboardDate: string;
|
|
22
|
+
keyboardDateTime: string;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=de.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../src/i18n/de.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
errorOneOf: string;
|
|
3
|
+
errorRequired: string;
|
|
4
|
+
addItem: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
edit: string;
|
|
7
|
+
confirm: string;
|
|
8
|
+
close: string;
|
|
9
|
+
duplicate: string;
|
|
10
|
+
insertAfter: string;
|
|
11
|
+
copy: string;
|
|
12
|
+
paste: string;
|
|
13
|
+
sort: string;
|
|
14
|
+
up: string;
|
|
15
|
+
down: string;
|
|
16
|
+
showHelp: string;
|
|
17
|
+
default: string;
|
|
18
|
+
name: string;
|
|
19
|
+
examples: string;
|
|
20
|
+
deprecated: string;
|
|
21
|
+
keyboardDate: string;
|
|
22
|
+
keyboardDateTime: string;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
errorOneOf: string;
|
|
3
|
+
errorRequired: string;
|
|
4
|
+
addItem: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
edit: string;
|
|
7
|
+
confirm: string;
|
|
8
|
+
close: string;
|
|
9
|
+
duplicate: string;
|
|
10
|
+
insertAfter: string;
|
|
11
|
+
copy: string;
|
|
12
|
+
paste: string;
|
|
13
|
+
sort: string;
|
|
14
|
+
up: string;
|
|
15
|
+
down: string;
|
|
16
|
+
showHelp: string;
|
|
17
|
+
default: string;
|
|
18
|
+
name: string;
|
|
19
|
+
examples: string;
|
|
20
|
+
deprecated: string;
|
|
21
|
+
keyboardDate: string;
|
|
22
|
+
keyboardDateTime: string;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=fr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: import("./types.js").LocaleMessages;
|
|
3
|
+
fr: import("./types.js").LocaleMessages;
|
|
4
|
+
nl: import("./types.js").LocaleMessages;
|
|
5
|
+
de: import("./types.js").LocaleMessages;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
errorOneOf: string;
|
|
3
|
+
errorRequired: string;
|
|
4
|
+
addItem: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
confirm: string;
|
|
7
|
+
edit: string;
|
|
8
|
+
close: string;
|
|
9
|
+
duplicate: string;
|
|
10
|
+
insertAfter: string;
|
|
11
|
+
copy: string;
|
|
12
|
+
paste: string;
|
|
13
|
+
sort: string;
|
|
14
|
+
up: string;
|
|
15
|
+
down: string;
|
|
16
|
+
showHelp: string;
|
|
17
|
+
default: string;
|
|
18
|
+
name: string;
|
|
19
|
+
examples: string;
|
|
20
|
+
deprecated: string;
|
|
21
|
+
keyboardDate: string;
|
|
22
|
+
keyboardDateTime: string;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=nl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../src/i18n/nl.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type NormalizeMessages } from '@json-layout/vocabulary';
|
|
2
|
+
export interface CompileOptionsMessages {
|
|
3
|
+
errorOneOf: string;
|
|
4
|
+
errorRequired: string;
|
|
5
|
+
}
|
|
6
|
+
export interface StateOptionsMessages {
|
|
7
|
+
addItem: string;
|
|
8
|
+
delete: string;
|
|
9
|
+
confirm: string;
|
|
10
|
+
edit: string;
|
|
11
|
+
close: string;
|
|
12
|
+
duplicate: string;
|
|
13
|
+
insertAfter: string;
|
|
14
|
+
copy: string;
|
|
15
|
+
paste: string;
|
|
16
|
+
sort: string;
|
|
17
|
+
up: string;
|
|
18
|
+
down: string;
|
|
19
|
+
showHelp: string;
|
|
20
|
+
keyboardDate: string;
|
|
21
|
+
keyboardDateTime: string;
|
|
22
|
+
}
|
|
23
|
+
export type LocaleMessages = NormalizeMessages & CompileOptionsMessages & StateOptionsMessages;
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,sBAAsB,GAAG,oBAAoB,CAAA"}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""}
|