@aeriajs/compiler 0.0.53 → 0.0.55
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 +1 -0
- package/dist/lexer.d.ts +1 -1
- package/dist/lexer.js +1 -0
- package/dist/lexer.mjs +1 -0
- package/dist/parser.js +3 -1
- package/dist/parser.mjs +3 -1
- package/package.json +3 -3
package/dist/ast.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export type CollectionNode = NodeBase<'collection'> & {
|
|
|
82
82
|
form?: readonly string[];
|
|
83
83
|
table?: readonly string[];
|
|
84
84
|
tableMeta?: readonly string[];
|
|
85
|
+
unique?: readonly string[];
|
|
85
86
|
filters?: readonly string[];
|
|
86
87
|
search?: SearchOptions;
|
|
87
88
|
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", "middlewares", "owned", "presets", "properties", "required", "search", "table", "tableMeta", "writable"];
|
|
3
|
+
export declare const COLLECTION_KEYWORDS: readonly ["actions", "additionalProperties", "filters", "form", "formLayout", "functions", "icon", "indexes", "individualActions", "layout", "middlewares", "owned", "presets", "properties", "required", "search", "table", "tableMeta", "unique", "writable"];
|
|
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
package/dist/lexer.mjs
CHANGED
package/dist/parser.js
CHANGED
|
@@ -265,6 +265,7 @@ const parse = (tokens) => {
|
|
|
265
265
|
property[attributeName] = value;
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
+
case 'hidden':
|
|
268
269
|
case 'translate': {
|
|
269
270
|
property[attributeName] = consumeBoolean();
|
|
270
271
|
return;
|
|
@@ -755,6 +756,7 @@ const parse = (tokens) => {
|
|
|
755
756
|
case 'form':
|
|
756
757
|
case 'table':
|
|
757
758
|
case 'tableMeta':
|
|
759
|
+
case 'unique':
|
|
758
760
|
case 'filters': {
|
|
759
761
|
const { value, symbols } = parseArrayBlock();
|
|
760
762
|
node[keyword] = value;
|
|
@@ -973,7 +975,7 @@ const parse = (tokens) => {
|
|
|
973
975
|
break;
|
|
974
976
|
}
|
|
975
977
|
case 'requires': {
|
|
976
|
-
const { value } =
|
|
978
|
+
const { value } = parseArrayBlock();
|
|
977
979
|
baseSlots[keyword] = value;
|
|
978
980
|
break;
|
|
979
981
|
}
|
package/dist/parser.mjs
CHANGED
|
@@ -225,6 +225,7 @@ export const parse = (tokens) => {
|
|
|
225
225
|
property[attributeName] = value;
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
+
case "hidden":
|
|
228
229
|
case "translate": {
|
|
229
230
|
property[attributeName] = consumeBoolean();
|
|
230
231
|
return;
|
|
@@ -701,6 +702,7 @@ export const parse = (tokens) => {
|
|
|
701
702
|
case "form":
|
|
702
703
|
case "table":
|
|
703
704
|
case "tableMeta":
|
|
705
|
+
case "unique":
|
|
704
706
|
case "filters": {
|
|
705
707
|
const { value, symbols } = parseArrayBlock();
|
|
706
708
|
node[keyword] = value;
|
|
@@ -915,7 +917,7 @@ export const parse = (tokens) => {
|
|
|
915
917
|
break;
|
|
916
918
|
}
|
|
917
919
|
case "requires": {
|
|
918
|
-
const { value } =
|
|
920
|
+
const { value } = parseArrayBlock();
|
|
919
921
|
baseSlots[keyword] = value;
|
|
920
922
|
break;
|
|
921
923
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@aeriajs/common": "^0.0.
|
|
25
|
-
"@aeriajs/types": "^0.0.
|
|
24
|
+
"@aeriajs/common": "^0.0.153",
|
|
25
|
+
"@aeriajs/types": "^0.0.131"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@aeriajs/common": "link:../common",
|