@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.
- package/dist/collection/preload.d.ts +7 -3
- package/dist/presets/crud.d.ts +9 -4
- package/dist/presets/crud.js +10 -5
- package/dist/presets/crud.mjs +10 -5
- package/dist/presets/duplicate.d.ts +2 -1
- package/dist/presets/duplicate.js +2 -1
- package/dist/presets/duplicate.mjs +2 -1
- package/dist/presets/view.d.ts +5 -2
- package/dist/presets/view.js +5 -2
- package/dist/presets/view.mjs +5 -2
- package/package.json +8 -8
|
@@ -16,8 +16,9 @@ export declare const applyPreset: (entry: Partial<Description> | Description["pr
|
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
readonly individualActions: {
|
|
19
|
-
readonly
|
|
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
|
|
61
|
+
readonly viewItem: {
|
|
61
62
|
readonly label: "action.view";
|
|
62
63
|
readonly icon: "eye";
|
|
63
64
|
readonly translate: true;
|
|
64
|
-
readonly
|
|
65
|
+
readonly route: {
|
|
66
|
+
readonly name: "/dashboard/:collection/:id";
|
|
67
|
+
readonly setItem: true;
|
|
68
|
+
};
|
|
65
69
|
};
|
|
66
70
|
};
|
|
67
71
|
});
|
package/dist/presets/crud.d.ts
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
export declare const crud: {
|
|
2
2
|
readonly actions: {
|
|
3
|
-
readonly
|
|
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
|
|
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
|
|
18
|
+
readonly viewItem: {
|
|
17
19
|
readonly label: "action.view";
|
|
18
20
|
readonly icon: "eye";
|
|
19
21
|
readonly translate: true;
|
|
20
|
-
readonly
|
|
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";
|
package/dist/presets/crud.js
CHANGED
|
@@ -3,26 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.crud = void 0;
|
|
4
4
|
exports.crud = {
|
|
5
5
|
actions: {
|
|
6
|
-
|
|
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
|
-
|
|
15
|
+
spawnEdit: {
|
|
15
16
|
label: 'action.edit',
|
|
17
|
+
event: 'spawnEdit',
|
|
16
18
|
icon: 'pencil-simple',
|
|
17
19
|
translate: true,
|
|
18
20
|
},
|
|
19
|
-
|
|
21
|
+
viewItem: {
|
|
20
22
|
label: 'action.view',
|
|
21
23
|
icon: 'eye',
|
|
22
24
|
translate: true,
|
|
23
|
-
|
|
25
|
+
route: {
|
|
26
|
+
name: '/dashboard/:collection/:id',
|
|
27
|
+
setItem: true,
|
|
28
|
+
},
|
|
24
29
|
},
|
|
25
|
-
|
|
30
|
+
remove: {
|
|
26
31
|
label: 'action.remove',
|
|
27
32
|
icon: 'trash',
|
|
28
33
|
ask: true,
|
package/dist/presets/crud.mjs
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
export const crud = {
|
|
3
3
|
actions: {
|
|
4
|
-
|
|
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
|
-
|
|
13
|
+
spawnEdit: {
|
|
13
14
|
label: "action.edit",
|
|
15
|
+
event: "spawnEdit",
|
|
14
16
|
icon: "pencil-simple",
|
|
15
17
|
translate: true
|
|
16
18
|
},
|
|
17
|
-
|
|
19
|
+
viewItem: {
|
|
18
20
|
label: "action.view",
|
|
19
21
|
icon: "eye",
|
|
20
22
|
translate: true,
|
|
21
|
-
|
|
23
|
+
route: {
|
|
24
|
+
name: "/dashboard/:collection/:id",
|
|
25
|
+
setItem: true
|
|
26
|
+
}
|
|
22
27
|
},
|
|
23
|
-
|
|
28
|
+
remove: {
|
|
24
29
|
label: "action.remove",
|
|
25
30
|
icon: "trash",
|
|
26
31
|
ask: true,
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.duplicate = void 0;
|
|
4
4
|
exports.duplicate = {
|
|
5
5
|
individualActions: {
|
|
6
|
-
|
|
6
|
+
duplicate: {
|
|
7
7
|
label: 'action.duplicate',
|
|
8
|
+
event: 'duplicate',
|
|
8
9
|
icon: 'copy',
|
|
9
10
|
translate: true,
|
|
10
11
|
},
|
package/dist/presets/view.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export declare const view: {
|
|
2
2
|
readonly individualActions: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly viewItem: {
|
|
4
4
|
readonly label: "action.view";
|
|
5
5
|
readonly icon: "eye";
|
|
6
6
|
readonly translate: true;
|
|
7
|
-
readonly
|
|
7
|
+
readonly route: {
|
|
8
|
+
readonly name: "/dashboard/:collection/:id";
|
|
9
|
+
readonly setItem: true;
|
|
10
|
+
};
|
|
8
11
|
};
|
|
9
12
|
};
|
|
10
13
|
};
|
package/dist/presets/view.js
CHANGED
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.view = void 0;
|
|
4
4
|
exports.view = {
|
|
5
5
|
individualActions: {
|
|
6
|
-
|
|
6
|
+
viewItem: {
|
|
7
7
|
label: 'action.view',
|
|
8
8
|
icon: 'eye',
|
|
9
9
|
translate: true,
|
|
10
|
-
|
|
10
|
+
route: {
|
|
11
|
+
name: '/dashboard/:collection/:id',
|
|
12
|
+
setItem: true,
|
|
13
|
+
},
|
|
11
14
|
},
|
|
12
15
|
},
|
|
13
16
|
};
|
package/dist/presets/view.mjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
export const view = {
|
|
3
3
|
individualActions: {
|
|
4
|
-
|
|
4
|
+
viewItem: {
|
|
5
5
|
label: "action.view",
|
|
6
6
|
icon: "eye",
|
|
7
7
|
translate: true,
|
|
8
|
-
|
|
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.
|
|
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.
|
|
45
|
-
"@aeriajs/common": "^0.0.
|
|
46
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
47
|
-
"@aeriajs/http": "^0.0.
|
|
48
|
-
"@aeriajs/security": "^0.0.
|
|
49
|
-
"@aeriajs/types": "^0.0.
|
|
50
|
-
"@aeriajs/validation": "^0.0.
|
|
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",
|