@aeriajs/compiler 0.0.29 → 0.0.30

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/dist/ast.d.ts CHANGED
@@ -69,6 +69,7 @@ export type CollectionNode = NodeBase<'collection'> & {
69
69
  presets?: DescriptionPreset[];
70
70
  form?: string[];
71
71
  table?: string[];
72
+ tableMeta?: string[];
72
73
  filters?: string[];
73
74
  search?: SearchOptions<any>;
74
75
  layout?: LayoutNode;
package/dist/lexer.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type Token } from './token.js';
2
2
  import { Diagnostic } from './diagnostic.js';
3
- export declare const COLLECTION_KEYWORDS: readonly ["actions", "additionalProperties", "filters", "form", "formLayout", "functions", "icon", "indexes", "individualActions", "layout", "owned", "presets", "properties", "required", "search", "table"];
3
+ export declare const COLLECTION_KEYWORDS: readonly ["actions", "additionalProperties", "filters", "form", "formLayout", "functions", "icon", "indexes", "individualActions", "layout", "owned", "presets", "properties", "required", "search", "table", "tableMeta"];
4
4
  export declare const COLLECTION_ACTIONS_KEYWORDS: readonly ["ask", "button", "clearItem", "effect", "event", "fetchItem", "function", "icon", "label", "params", "query", "requires", "roles", "route", "selection", "setItem", "translate"];
5
5
  export declare const COLLECTION_SEARCH_KEYWORDS: readonly ["indexes", "placeholder", "exactMatches"];
6
6
  export declare const COLLECTION_LAYOUT_KEYWORDS: readonly ["name", "options"];
package/dist/lexer.js CHANGED
@@ -20,6 +20,7 @@ exports.COLLECTION_KEYWORDS = [
20
20
  'required',
21
21
  'search',
22
22
  'table',
23
+ 'tableMeta',
23
24
  ];
24
25
  exports.COLLECTION_ACTIONS_KEYWORDS = [
25
26
  'ask',
@@ -292,6 +293,7 @@ const tokenize = function (rawInput) {
292
293
  case 'information':
293
294
  case 'form':
294
295
  case 'table':
296
+ case 'tableMeta':
295
297
  case 'indexes':
296
298
  case 'filters':
297
299
  case 'writable':
package/dist/lexer.mjs CHANGED
@@ -17,7 +17,8 @@ export const COLLECTION_KEYWORDS = [
17
17
  "properties",
18
18
  "required",
19
19
  "search",
20
- "table"
20
+ "table",
21
+ "tableMeta"
21
22
  ];
22
23
  export const COLLECTION_ACTIONS_KEYWORDS = [
23
24
  "ask",
@@ -295,6 +296,7 @@ export const tokenize = function(rawInput) {
295
296
  case "information":
296
297
  case "form":
297
298
  case "table":
299
+ case "tableMeta":
298
300
  case "indexes":
299
301
  case "filters":
300
302
  case "writable":
package/dist/parser.js CHANGED
@@ -256,6 +256,10 @@ const parse = (tokens) => {
256
256
  property[attributeName] = value;
257
257
  return;
258
258
  }
259
+ case 'translate': {
260
+ property[attributeName] = consumeBoolean();
261
+ return;
262
+ }
259
263
  }
260
264
  if ('$ref' in property) {
261
265
  switch (attributeName) {
@@ -718,6 +722,7 @@ const parse = (tokens) => {
718
722
  case 'indexes':
719
723
  case 'form':
720
724
  case 'table':
725
+ case 'tableMeta':
721
726
  case 'filters': {
722
727
  const { value, symbols } = parseArrayBlock();
723
728
  node[keyword] = value;
package/dist/parser.mjs CHANGED
@@ -215,6 +215,10 @@ export const parse = (tokens) => {
215
215
  property[attributeName] = value;
216
216
  return;
217
217
  }
218
+ case "translate": {
219
+ property[attributeName] = consumeBoolean();
220
+ return;
221
+ }
218
222
  }
219
223
  if ("$ref" in property) {
220
224
  switch (attributeName) {
@@ -663,6 +667,7 @@ export const parse = (tokens) => {
663
667
  case "indexes":
664
668
  case "form":
665
669
  case "table":
670
+ case "tableMeta":
666
671
  case "filters": {
667
672
  const { value, symbols } = parseArrayBlock();
668
673
  node[keyword] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/compiler",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",