@aeriajs/core 0.0.131 → 0.0.133

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.
@@ -16,8 +16,9 @@ export declare const applyPreset: (entry: Partial<Description> | Description["pr
16
16
  };
17
17
  } | {
18
18
  readonly individualActions: {
19
- readonly 'ui:duplicate': {
19
+ readonly duplicate: {
20
20
  readonly label: "action.duplicate";
21
+ readonly event: "duplicate";
21
22
  readonly icon: "copy";
22
23
  readonly translate: true;
23
24
  };
@@ -57,11 +58,14 @@ export declare const applyPreset: (entry: Partial<Description> | Description["pr
57
58
  };
58
59
  } | {
59
60
  readonly individualActions: {
60
- readonly 'route:/dashboard/:collection/:id': {
61
+ readonly viewItem: {
61
62
  readonly label: "action.view";
62
63
  readonly icon: "eye";
63
64
  readonly translate: true;
64
- readonly setItem: true;
65
+ readonly route: {
66
+ readonly name: "/dashboard/:collection/:id";
67
+ readonly setItem: true;
68
+ };
65
69
  };
66
70
  };
67
71
  });
@@ -1,23 +1,28 @@
1
1
  export declare const crud: {
2
2
  readonly actions: {
3
- readonly 'ui:spawnAdd': {
3
+ readonly spawnAdd: {
4
4
  readonly label: "action.add";
5
+ readonly event: "spawnAdd";
5
6
  readonly icon: "plus";
6
7
  readonly button: true;
7
8
  readonly translate: true;
8
9
  };
9
10
  };
10
11
  readonly individualActions: {
11
- readonly 'ui:spawnEdit': {
12
+ readonly spawnEdit: {
12
13
  readonly label: "action.edit";
14
+ readonly event: "spawnEdit";
13
15
  readonly icon: "pencil-simple";
14
16
  readonly translate: true;
15
17
  };
16
- readonly 'route:/dashboard/:collection/:id': {
18
+ readonly viewItem: {
17
19
  readonly label: "action.view";
18
20
  readonly icon: "eye";
19
21
  readonly translate: true;
20
- readonly setItem: true;
22
+ readonly route: {
23
+ readonly name: "/dashboard/:collection/:id";
24
+ readonly setItem: true;
25
+ };
21
26
  };
22
27
  readonly remove: {
23
28
  readonly label: "action.remove";
@@ -3,26 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.crud = void 0;
4
4
  exports.crud = {
5
5
  actions: {
6
- 'ui:spawnAdd': {
6
+ spawnAdd: {
7
7
  label: 'action.add',
8
+ event: 'spawnAdd',
8
9
  icon: 'plus',
9
10
  button: true,
10
11
  translate: true,
11
12
  },
12
13
  },
13
14
  individualActions: {
14
- 'ui:spawnEdit': {
15
+ spawnEdit: {
15
16
  label: 'action.edit',
17
+ event: 'spawnEdit',
16
18
  icon: 'pencil-simple',
17
19
  translate: true,
18
20
  },
19
- 'route:/dashboard/:collection/:id': {
21
+ viewItem: {
20
22
  label: 'action.view',
21
23
  icon: 'eye',
22
24
  translate: true,
23
- setItem: true,
25
+ route: {
26
+ name: '/dashboard/:collection/:id',
27
+ setItem: true,
28
+ },
24
29
  },
25
- 'remove': {
30
+ remove: {
26
31
  label: 'action.remove',
27
32
  icon: 'trash',
28
33
  ask: true,
@@ -1,26 +1,31 @@
1
1
  "use strict";
2
2
  export const crud = {
3
3
  actions: {
4
- "ui:spawnAdd": {
4
+ spawnAdd: {
5
5
  label: "action.add",
6
+ event: "spawnAdd",
6
7
  icon: "plus",
7
8
  button: true,
8
9
  translate: true
9
10
  }
10
11
  },
11
12
  individualActions: {
12
- "ui:spawnEdit": {
13
+ spawnEdit: {
13
14
  label: "action.edit",
15
+ event: "spawnEdit",
14
16
  icon: "pencil-simple",
15
17
  translate: true
16
18
  },
17
- "route:/dashboard/:collection/:id": {
19
+ viewItem: {
18
20
  label: "action.view",
19
21
  icon: "eye",
20
22
  translate: true,
21
- setItem: true
23
+ route: {
24
+ name: "/dashboard/:collection/:id",
25
+ setItem: true
26
+ }
22
27
  },
23
- "remove": {
28
+ remove: {
24
29
  label: "action.remove",
25
30
  icon: "trash",
26
31
  ask: true,
@@ -1,7 +1,8 @@
1
1
  export declare const duplicate: {
2
2
  readonly individualActions: {
3
- readonly 'ui:duplicate': {
3
+ readonly duplicate: {
4
4
  readonly label: "action.duplicate";
5
+ readonly event: "duplicate";
5
6
  readonly icon: "copy";
6
7
  readonly translate: true;
7
8
  };
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.duplicate = void 0;
4
4
  exports.duplicate = {
5
5
  individualActions: {
6
- 'ui:duplicate': {
6
+ duplicate: {
7
7
  label: 'action.duplicate',
8
+ event: 'duplicate',
8
9
  icon: 'copy',
9
10
  translate: true,
10
11
  },
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  export const duplicate = {
3
3
  individualActions: {
4
- "ui:duplicate": {
4
+ duplicate: {
5
5
  label: "action.duplicate",
6
+ event: "duplicate",
6
7
  icon: "copy",
7
8
  translate: true
8
9
  }
@@ -1,10 +1,13 @@
1
1
  export declare const view: {
2
2
  readonly individualActions: {
3
- readonly 'route:/dashboard/:collection/:id': {
3
+ readonly viewItem: {
4
4
  readonly label: "action.view";
5
5
  readonly icon: "eye";
6
6
  readonly translate: true;
7
- readonly setItem: true;
7
+ readonly route: {
8
+ readonly name: "/dashboard/:collection/:id";
9
+ readonly setItem: true;
10
+ };
8
11
  };
9
12
  };
10
13
  };
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.view = void 0;
4
4
  exports.view = {
5
5
  individualActions: {
6
- 'route:/dashboard/:collection/:id': {
6
+ viewItem: {
7
7
  label: 'action.view',
8
8
  icon: 'eye',
9
9
  translate: true,
10
- setItem: true,
10
+ route: {
11
+ name: '/dashboard/:collection/:id',
12
+ setItem: true,
13
+ },
11
14
  },
12
15
  },
13
16
  };
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
  export const view = {
3
3
  individualActions: {
4
- "route:/dashboard/:collection/:id": {
4
+ viewItem: {
5
5
  label: "action.view",
6
6
  icon: "eye",
7
7
  translate: true,
8
- setItem: true
8
+ route: {
9
+ name: "/dashboard/:collection/:id",
10
+ setItem: true
11
+ }
9
12
  }
10
13
  }
11
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/core",
3
- "version": "0.0.131",
3
+ "version": "0.0.133",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -41,13 +41,13 @@
41
41
  "mongodb-memory-server": "^9.2.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@aeriajs/builtins": "^0.0.131",
45
- "@aeriajs/common": "^0.0.82",
46
- "@aeriajs/entrypoint": "^0.0.84",
47
- "@aeriajs/http": "^0.0.93",
48
- "@aeriajs/security": "^0.0.131",
49
- "@aeriajs/types": "^0.0.70",
50
- "@aeriajs/validation": "^0.0.85"
44
+ "@aeriajs/builtins": "^0.0.133",
45
+ "@aeriajs/common": "^0.0.84",
46
+ "@aeriajs/entrypoint": "^0.0.86",
47
+ "@aeriajs/http": "^0.0.95",
48
+ "@aeriajs/security": "^0.0.133",
49
+ "@aeriajs/types": "^0.0.72",
50
+ "@aeriajs/validation": "^0.0.87"
51
51
  },
52
52
  "dependencies": {
53
53
  "mongodb": "^6.5.0",