@json-layout/core 1.10.0 → 1.10.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-layout/core",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Compilation and state management utilities for JSON Layout.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "homepage": "https://github.com/json-layout/json-layout#readme",
60
60
  "peerDependencies": {
61
- "@json-layout/vocabulary": "^2.3.0"
61
+ "@json-layout/vocabulary": "^2.3.1"
62
62
  },
63
63
  "dependencies": {
64
64
  "ajv": "^8.17.1",
@@ -128,6 +128,7 @@ export function makeSkeletonNode (
128
128
  if (nullable) defaultData = null
129
129
  else if (type === 'object' && isCompositeLayout(compObject, options.components)) defaultData = {}
130
130
  else if (type === 'array') defaultData = []
131
+ else if (type === 'boolean') defaultData = false
131
132
  }
132
133
  if (defaultData !== undefined && compObject.defaultData === undefined) compObject.defaultData = defaultData
133
134
  if (compObject.defaultData !== undefined && !compObject.getDefaultData) compObject.getDefaultData = { type: 'js-eval', expr: 'layout.defaultData', pure: true, dataAlias: 'value' }
package/src/i18n/de.js CHANGED
@@ -34,5 +34,8 @@ export default {
34
34
  default: 'standard: ',
35
35
  name: 'name: ',
36
36
  examples: 'Beispiele: ',
37
- deprecated: 'Achtung, diese Information ist veraltet.'
37
+ deprecated: 'Achtung, diese Information ist veraltet.',
38
+ // see L and LT format https://github.com/iamkun/dayjs/blob/dev/src/locale/de.js
39
+ keyboardDate: 'TT.MM.JJJJ',
40
+ keyboardDateTime: 'TT.MM.JJJJ HH:mm'
38
41
  }
package/src/i18n/en.js CHANGED
@@ -34,5 +34,8 @@ export default {
34
34
  default: 'default: ',
35
35
  name: 'name: ',
36
36
  examples: 'Examples: ',
37
- deprecated: 'Warning, this information is deprecated.'
37
+ deprecated: 'Warning, this information is deprecated.',
38
+ // see L and LT format https://github.com/iamkun/dayjs/blob/dev/src/locale/en-gb.js
39
+ keyboardDate: 'MM/DD/YYYY',
40
+ keyboardDateTime: 'MM/DD/YYYY HH:mm'
38
41
  }
package/src/i18n/fr.js CHANGED
@@ -34,5 +34,8 @@ export default {
34
34
  default: 'défaut : ',
35
35
  name: 'nom : ',
36
36
  examples: 'Exemples : ',
37
- deprecated: 'Attention, cette information est obsolète.'
37
+ deprecated: 'Attention, cette information est obsolète.',
38
+ // see L and LT format https://github.com/iamkun/dayjs/blob/dev/src/locale/fr.js
39
+ keyboardDate: 'JJ/MM/AAAA',
40
+ keyboardDateTime: 'JJ/MM/AAAA HH:mm'
38
41
  }
package/src/i18n/nl.js CHANGED
@@ -34,5 +34,8 @@ export default {
34
34
  default: 'standaard: ',
35
35
  name: 'naam: ',
36
36
  examples: 'Voorbeelden: ',
37
- deprecated: 'Waarschuwing, deze informatie is verouderd.'
37
+ deprecated: 'Waarschuwing, deze informatie is verouderd.',
38
+ // see L and LT format https://github.com/iamkun/dayjs/blob/dev/src/locale/nl.js
39
+ keyboardDate: 'DD-MM-YYYY',
40
+ keyboardDateTime: 'DD-MM-YYYY HH:mm'
38
41
  }
package/src/i18n/types.ts CHANGED
@@ -35,6 +35,8 @@ export interface StateOptionsMessages {
35
35
  mdeGuide: string
36
36
  undo: string
37
37
  redo: string
38
+ keyboardDate: string
39
+ keyboardDateTime: string
38
40
  }
39
41
 
40
42
  export type LocaleMessages = NormalizeMessages & CompileOptionsMessages & StateOptionsMessages
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;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,CAygB7C"}
1
+ {"version":3,"file":"skeleton-node.d.ts","sourceRoot":"","sources":["../../src/compile/skeleton-node.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;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,CA0gB7C"}
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  name: string;
35
35
  examples: string;
36
36
  deprecated: string;
37
+ keyboardDate: string;
38
+ keyboardDateTime: string;
37
39
  };
38
40
  export default _default;
39
41
  //# sourceMappingURL=de.d.ts.map
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  name: string;
35
35
  examples: string;
36
36
  deprecated: string;
37
+ keyboardDate: string;
38
+ keyboardDateTime: string;
37
39
  };
38
40
  export default _default;
39
41
  //# sourceMappingURL=en.d.ts.map
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  name: string;
35
35
  examples: string;
36
36
  deprecated: string;
37
+ keyboardDate: string;
38
+ keyboardDateTime: string;
37
39
  };
38
40
  export default _default;
39
41
  //# sourceMappingURL=fr.d.ts.map
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  name: string;
35
35
  examples: string;
36
36
  deprecated: string;
37
+ keyboardDate: string;
38
+ keyboardDateTime: string;
37
39
  };
38
40
  export default _default;
39
41
  //# sourceMappingURL=nl.d.ts.map
@@ -33,6 +33,8 @@ export interface StateOptionsMessages {
33
33
  mdeGuide: string;
34
34
  undo: string;
35
35
  redo: string;
36
+ keyboardDate: string;
37
+ keyboardDateTime: string;
36
38
  }
37
39
  export type LocaleMessages = NormalizeMessages & CompileOptionsMessages & StateOptionsMessages;
38
40
  //# sourceMappingURL=types.d.ts.map
@@ -1 +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,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV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