@woodylab/payload 0.0.132 → 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/config/collections/collectionMenus.d.ts +1 -1
- package/dist/config/collections/collectionMenus.js +37 -39
- package/dist/config/index.cjs.js +1 -1
- package/dist/config/index.cjs.js.map +1 -1
- package/dist/config/index.esm.js +1 -1
- package/dist/config/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { CollectionConfig } from 'payload';
|
|
2
|
-
export declare const collectionMenus:
|
|
2
|
+
export declare const collectionMenus: CollectionConfig;
|
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
export const collectionMenus =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
export const collectionMenus = {
|
|
2
|
+
slug: 'menus',
|
|
3
|
+
admin: {
|
|
4
|
+
useAsTitle: 'name',
|
|
5
|
+
},
|
|
6
|
+
fields: [
|
|
7
|
+
{ type: 'text', name: 'name' },
|
|
8
|
+
{
|
|
9
|
+
type: 'array',
|
|
10
|
+
name: 'menuItems',
|
|
11
|
+
label: 'Menu items',
|
|
12
|
+
fields: [
|
|
13
|
+
{
|
|
14
|
+
type: 'checkbox',
|
|
15
|
+
name: 'is-external',
|
|
16
|
+
label: 'open in new tab',
|
|
17
|
+
},
|
|
18
|
+
{ type: 'text', name: 'label', label: 'label' },
|
|
19
|
+
{ type: 'relationship', name: 'relationship', relationTo: ['pages'] },
|
|
20
|
+
{
|
|
21
|
+
type: 'array',
|
|
22
|
+
name: 'sub-menu',
|
|
23
|
+
label: 'Sub menu',
|
|
24
|
+
admin: {
|
|
25
|
+
description: "Aggiungere voci figlio a una voce di menù ne disabilita il click di navigazione per permettere l'apertura del dropdown",
|
|
18
26
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
label: 'Sub menu',
|
|
25
|
-
admin: {
|
|
26
|
-
description: "Aggiungere voci figlio a una voce di menù ne disabilita il click di navigazione per permettere l'apertura del dropdown",
|
|
27
|
+
fields: [
|
|
28
|
+
{
|
|
29
|
+
type: 'checkbox',
|
|
30
|
+
name: 'is-external',
|
|
31
|
+
label: 'open in new tab',
|
|
27
32
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{ type: 'relationship', name: 'relationship', relationTo: ['pages'] },
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
};
|
|
33
|
+
{ type: 'text', name: 'label', label: 'label' },
|
|
34
|
+
{ type: 'relationship', name: 'relationship', relationTo: ['pages'] },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
42
40
|
};
|