@kurbo/dkit 0.4.0

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.
Files changed (241) hide show
  1. package/README.md +24 -0
  2. package/dist/bin.js +8066 -0
  3. package/dist/bin.js.map +1 -0
  4. package/package.json +58 -0
  5. package/vendor/registry/blocks/blog-detail/module.json +27 -0
  6. package/vendor/registry/blocks/blog-detail/ui/minimal/next/blog-detail.tsx +26 -0
  7. package/vendor/registry/blocks/blog-detail/ui/minimal/nuxt/BlogDetail.vue +27 -0
  8. package/vendor/registry/blocks/blog-detail/ui/shadcn/next/blog-detail.tsx +106 -0
  9. package/vendor/registry/blocks/blog-detail/ui/shadcn/nuxt/BlogDetail.vue +116 -0
  10. package/vendor/registry/blocks/blog-list/module.json +26 -0
  11. package/vendor/registry/blocks/blog-list/ui/minimal/next/blog-list.tsx +130 -0
  12. package/vendor/registry/blocks/blog-list/ui/minimal/nuxt/BlogList.vue +62 -0
  13. package/vendor/registry/blocks/blog-list/ui/shadcn/next/blog-list.tsx +109 -0
  14. package/vendor/registry/blocks/blog-list/ui/shadcn/nuxt/BlogList.vue +100 -0
  15. package/vendor/registry/blocks/blog-list-cards/module.json +27 -0
  16. package/vendor/registry/blocks/blog-list-cards/ui/minimal/next/blog-list-cards.tsx +130 -0
  17. package/vendor/registry/blocks/blog-list-cards/ui/minimal/nuxt/BlogListCards.vue +114 -0
  18. package/vendor/registry/blocks/blog-list-cards/ui/shadcn/next/blog-list-cards.tsx +119 -0
  19. package/vendor/registry/blocks/blog-list-cards/ui/shadcn/nuxt/BlogListCards.vue +113 -0
  20. package/vendor/registry/blocks/booking-form-ui/module.json +15 -0
  21. package/vendor/registry/blocks/booking-form-ui/ui/minimal/next/booking-form.tsx +89 -0
  22. package/vendor/registry/blocks/booking-form-ui/ui/shadcn/next/booking-form.tsx +92 -0
  23. package/vendor/registry/blocks/contact-form-ui/module.json +27 -0
  24. package/vendor/registry/blocks/contact-form-ui/ui/minimal/next/contact-form.tsx +45 -0
  25. package/vendor/registry/blocks/contact-form-ui/ui/minimal/nuxt/ContactForm.vue +79 -0
  26. package/vendor/registry/blocks/contact-form-ui/ui/shadcn/next/contact-form.tsx +55 -0
  27. package/vendor/registry/blocks/contact-form-ui/ui/shadcn/nuxt/ContactForm.vue +92 -0
  28. package/vendor/registry/blocks/faq-list/module.json +15 -0
  29. package/vendor/registry/blocks/faq-list/ui/minimal/next/faq-list.tsx +78 -0
  30. package/vendor/registry/blocks/faq-list/ui/shadcn/next/faq-list.tsx +77 -0
  31. package/vendor/registry/blocks/maintenance-gate/module.json +13 -0
  32. package/vendor/registry/blocks/maintenance-gate/ui/minimal/next/maintenance-gate.tsx +135 -0
  33. package/vendor/registry/blocks/maintenance-gate/ui/shadcn/next/maintenance-gate.tsx +87 -0
  34. package/vendor/registry/blocks/nav-footer/module.json +13 -0
  35. package/vendor/registry/blocks/nav-footer/ui/minimal/next/nav-footer.tsx +55 -0
  36. package/vendor/registry/blocks/nav-footer/ui/shadcn/next/nav-footer.tsx +41 -0
  37. package/vendor/registry/blocks/nav-header/module.json +14 -0
  38. package/vendor/registry/blocks/nav-header/ui/minimal/next/nav-header.tsx +244 -0
  39. package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header-client.tsx +185 -0
  40. package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header.tsx +12 -0
  41. package/vendor/registry/blocks/page-detail/module.json +26 -0
  42. package/vendor/registry/blocks/page-detail/ui/minimal/next/page-detail.tsx +26 -0
  43. package/vendor/registry/blocks/page-detail/ui/minimal/nuxt/PageDetail.vue +26 -0
  44. package/vendor/registry/blocks/page-detail/ui/shadcn/next/page-detail.tsx +61 -0
  45. package/vendor/registry/blocks/page-detail/ui/shadcn/nuxt/PageDetail.vue +62 -0
  46. package/vendor/registry/blocks/project-detail/module.json +15 -0
  47. package/vendor/registry/blocks/project-detail/ui/minimal/next/project-detail.tsx +58 -0
  48. package/vendor/registry/blocks/project-detail/ui/shadcn/next/project-detail.tsx +91 -0
  49. package/vendor/registry/blocks/project-list/module.json +14 -0
  50. package/vendor/registry/blocks/project-list/ui/minimal/next/project-list.tsx +104 -0
  51. package/vendor/registry/blocks/project-list/ui/shadcn/next/project-list.tsx +81 -0
  52. package/vendor/registry/blocks/project-list-cards/module.json +15 -0
  53. package/vendor/registry/blocks/project-list-cards/ui/minimal/next/project-list-cards.tsx +125 -0
  54. package/vendor/registry/blocks/project-list-cards/ui/shadcn/next/project-list-cards.tsx +94 -0
  55. package/vendor/registry/blocks/projects-carousel/module.json +15 -0
  56. package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel-client.tsx +239 -0
  57. package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel.tsx +24 -0
  58. package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel-client.tsx +102 -0
  59. package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel.tsx +24 -0
  60. package/vendor/registry/blocks/service-detail/module.json +15 -0
  61. package/vendor/registry/blocks/service-detail/ui/minimal/next/service-detail.tsx +49 -0
  62. package/vendor/registry/blocks/service-detail/ui/shadcn/next/service-detail.tsx +75 -0
  63. package/vendor/registry/blocks/service-list/module.json +14 -0
  64. package/vendor/registry/blocks/service-list/ui/minimal/next/service-list.tsx +103 -0
  65. package/vendor/registry/blocks/service-list/ui/shadcn/next/service-list.tsx +80 -0
  66. package/vendor/registry/blocks/service-list-cards/module.json +15 -0
  67. package/vendor/registry/blocks/service-list-cards/ui/minimal/next/service-list-cards.tsx +124 -0
  68. package/vendor/registry/blocks/service-list-cards/ui/shadcn/next/service-list-cards.tsx +92 -0
  69. package/vendor/registry/blocks/site-brand/module.json +13 -0
  70. package/vendor/registry/blocks/site-brand/ui/minimal/next/site-brand.tsx +61 -0
  71. package/vendor/registry/blocks/site-brand/ui/shadcn/next/site-brand.tsx +48 -0
  72. package/vendor/registry/blocks/site-logo/module.json +13 -0
  73. package/vendor/registry/blocks/site-logo/ui/minimal/next/site-logo.tsx +37 -0
  74. package/vendor/registry/blocks/site-logo/ui/shadcn/next/site-logo.tsx +34 -0
  75. package/vendor/registry/blocks/social-links/module.json +13 -0
  76. package/vendor/registry/blocks/social-links/ui/minimal/next/social-links.tsx +55 -0
  77. package/vendor/registry/blocks/social-links/ui/shadcn/next/social-links.tsx +46 -0
  78. package/vendor/registry/blocks/team-detail/module.json +15 -0
  79. package/vendor/registry/blocks/team-detail/ui/minimal/next/team-detail.tsx +113 -0
  80. package/vendor/registry/blocks/team-detail/ui/shadcn/next/team-detail.tsx +77 -0
  81. package/vendor/registry/blocks/team-list/module.json +14 -0
  82. package/vendor/registry/blocks/team-list/ui/minimal/next/team-list.tsx +113 -0
  83. package/vendor/registry/blocks/team-list/ui/shadcn/next/team-list.tsx +77 -0
  84. package/vendor/registry/blocks/team-list-cards/module.json +15 -0
  85. package/vendor/registry/blocks/team-list-cards/ui/minimal/next/team-list-cards.tsx +111 -0
  86. package/vendor/registry/blocks/team-list-cards/ui/shadcn/next/team-list-cards.tsx +83 -0
  87. package/vendor/registry/blocks/testimonials-carousel/module.json +15 -0
  88. package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel-client.tsx +230 -0
  89. package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel.tsx +23 -0
  90. package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel-client.tsx +91 -0
  91. package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel.tsx +23 -0
  92. package/vendor/registry/blocks/testimonials-list/module.json +14 -0
  93. package/vendor/registry/blocks/testimonials-list/ui/minimal/next/testimonials-list.tsx +109 -0
  94. package/vendor/registry/blocks/testimonials-list/ui/shadcn/next/testimonials-list.tsx +72 -0
  95. package/vendor/registry/blocks/testimonials-list-cards/module.json +15 -0
  96. package/vendor/registry/blocks/testimonials-list-cards/ui/minimal/next/testimonials-list-cards.tsx +114 -0
  97. package/vendor/registry/blocks/testimonials-list-cards/ui/shadcn/next/testimonials-list-cards.tsx +72 -0
  98. package/vendor/registry/core/languages/policies.json +25 -0
  99. package/vendor/registry/core/languages/seed.json +16 -0
  100. package/vendor/registry/core/languages/snapshot.json +94 -0
  101. package/vendor/registry/modules/blog/access/policies.json +49 -0
  102. package/vendor/registry/modules/blog/access/policies.multilocale.json +67 -0
  103. package/vendor/registry/modules/blog/lib.multilocale.ts +552 -0
  104. package/vendor/registry/modules/blog/lib.ts +346 -0
  105. package/vendor/registry/modules/blog/module.json +50 -0
  106. package/vendor/registry/modules/blog/schema/snapshot.json +701 -0
  107. package/vendor/registry/modules/blog/schema/snapshot.multilocale.json +884 -0
  108. package/vendor/registry/modules/blog/services/ATTRIBUTION.md +8 -0
  109. package/vendor/registry/modules/blog/services/assets/ada-lovelace-avatar.jpg +0 -0
  110. package/vendor/registry/modules/blog/services/assets/hello-from-dkit-cover.jpg +0 -0
  111. package/vendor/registry/modules/blog/services/seed.json +70 -0
  112. package/vendor/registry/modules/blog/services/seed.multilocale.json +90 -0
  113. package/vendor/registry/modules/blog/types.multilocale.ts +96 -0
  114. package/vendor/registry/modules/blog/types.ts +62 -0
  115. package/vendor/registry/modules/booking-form/access/policies.json +25 -0
  116. package/vendor/registry/modules/booking-form/access/policies.multilocale.json +27 -0
  117. package/vendor/registry/modules/booking-form/lib.multilocale.ts +71 -0
  118. package/vendor/registry/modules/booking-form/lib.ts +77 -0
  119. package/vendor/registry/modules/booking-form/module.json +32 -0
  120. package/vendor/registry/modules/booking-form/schema/snapshot.json +294 -0
  121. package/vendor/registry/modules/booking-form/schema/snapshot.multilocale.json +467 -0
  122. package/vendor/registry/modules/booking-form/services/flows.json +19 -0
  123. package/vendor/registry/modules/booking-form/types.multilocale.ts +29 -0
  124. package/vendor/registry/modules/booking-form/types.ts +27 -0
  125. package/vendor/registry/modules/contact-form/access/policies.json +25 -0
  126. package/vendor/registry/modules/contact-form/access/policies.multilocale.json +27 -0
  127. package/vendor/registry/modules/contact-form/lib.multilocale.ts +65 -0
  128. package/vendor/registry/modules/contact-form/lib.ts +67 -0
  129. package/vendor/registry/modules/contact-form/module.json +32 -0
  130. package/vendor/registry/modules/contact-form/schema/snapshot.json +193 -0
  131. package/vendor/registry/modules/contact-form/schema/snapshot.multilocale.json +293 -0
  132. package/vendor/registry/modules/contact-form/services/flows.json +19 -0
  133. package/vendor/registry/modules/contact-form/types.multilocale.ts +21 -0
  134. package/vendor/registry/modules/contact-form/types.ts +19 -0
  135. package/vendor/registry/modules/faq/access/policies.json +25 -0
  136. package/vendor/registry/modules/faq/access/policies.multilocale.json +18 -0
  137. package/vendor/registry/modules/faq/lib.multilocale.ts +120 -0
  138. package/vendor/registry/modules/faq/lib.ts +73 -0
  139. package/vendor/registry/modules/faq/module.json +31 -0
  140. package/vendor/registry/modules/faq/schema/snapshot.json +180 -0
  141. package/vendor/registry/modules/faq/schema/snapshot.multilocale.json +116 -0
  142. package/vendor/registry/modules/faq/services/seed.json +38 -0
  143. package/vendor/registry/modules/faq/services/seed.multilocale.json +32 -0
  144. package/vendor/registry/modules/faq/types.multilocale.ts +31 -0
  145. package/vendor/registry/modules/faq/types.ts +17 -0
  146. package/vendor/registry/modules/navigation/access/policies.json +31 -0
  147. package/vendor/registry/modules/navigation/access/policies.multilocale.json +51 -0
  148. package/vendor/registry/modules/navigation/lib.multilocale.ts +198 -0
  149. package/vendor/registry/modules/navigation/lib.ts +252 -0
  150. package/vendor/registry/modules/navigation/module.json +46 -0
  151. package/vendor/registry/modules/navigation/schema/snapshot.json +453 -0
  152. package/vendor/registry/modules/navigation/schema/snapshot.multilocale.json +864 -0
  153. package/vendor/registry/modules/navigation/services/seed.json +103 -0
  154. package/vendor/registry/modules/navigation/services/seed.multilocale.json +88 -0
  155. package/vendor/registry/modules/navigation/types.multilocale.ts +60 -0
  156. package/vendor/registry/modules/navigation/types.ts +44 -0
  157. package/vendor/registry/modules/pages/access/policies.json +25 -0
  158. package/vendor/registry/modules/pages/access/policies.multilocale.json +18 -0
  159. package/vendor/registry/modules/pages/lib.multilocale.ts +166 -0
  160. package/vendor/registry/modules/pages/lib.ts +123 -0
  161. package/vendor/registry/modules/pages/module.json +39 -0
  162. package/vendor/registry/modules/pages/schema/snapshot.json +247 -0
  163. package/vendor/registry/modules/pages/schema/snapshot.multilocale.json +187 -0
  164. package/vendor/registry/modules/pages/services/seed.json +24 -0
  165. package/vendor/registry/modules/pages/services/seed.multilocale.json +34 -0
  166. package/vendor/registry/modules/pages/types.multilocale.ts +37 -0
  167. package/vendor/registry/modules/pages/types.ts +21 -0
  168. package/vendor/registry/modules/projects/access/policies.json +31 -0
  169. package/vendor/registry/modules/projects/access/policies.multilocale.json +43 -0
  170. package/vendor/registry/modules/projects/lib.multilocale.ts +111 -0
  171. package/vendor/registry/modules/projects/lib.ts +138 -0
  172. package/vendor/registry/modules/projects/module.json +48 -0
  173. package/vendor/registry/modules/projects/schema/snapshot.json +348 -0
  174. package/vendor/registry/modules/projects/schema/snapshot.multilocale.json +577 -0
  175. package/vendor/registry/modules/projects/services/ATTRIBUTION.md +7 -0
  176. package/vendor/registry/modules/projects/services/assets/brand-identity-cover.jpg +0 -0
  177. package/vendor/registry/modules/projects/services/seed.json +40 -0
  178. package/vendor/registry/modules/projects/services/seed.multilocale.json +31 -0
  179. package/vendor/registry/modules/projects/types.multilocale.ts +38 -0
  180. package/vendor/registry/modules/projects/types.ts +28 -0
  181. package/vendor/registry/modules/services/access/policies.json +31 -0
  182. package/vendor/registry/modules/services/access/policies.multilocale.json +43 -0
  183. package/vendor/registry/modules/services/lib.multilocale.ts +109 -0
  184. package/vendor/registry/modules/services/lib.ts +134 -0
  185. package/vendor/registry/modules/services/module.json +47 -0
  186. package/vendor/registry/modules/services/schema/snapshot.json +305 -0
  187. package/vendor/registry/modules/services/schema/snapshot.multilocale.json +510 -0
  188. package/vendor/registry/modules/services/services/ATTRIBUTION.md +8 -0
  189. package/vendor/registry/modules/services/services/assets/design-development.jpg +0 -0
  190. package/vendor/registry/modules/services/services/assets/strategy-consulting.jpg +0 -0
  191. package/vendor/registry/modules/services/services/seed.json +44 -0
  192. package/vendor/registry/modules/services/services/seed.multilocale.json +31 -0
  193. package/vendor/registry/modules/services/types.multilocale.ts +36 -0
  194. package/vendor/registry/modules/services/types.ts +26 -0
  195. package/vendor/registry/modules/settings/access/policies.json +31 -0
  196. package/vendor/registry/modules/settings/access/policies.multilocale.json +43 -0
  197. package/vendor/registry/modules/settings/lib.multilocale.ts +158 -0
  198. package/vendor/registry/modules/settings/lib.ts +259 -0
  199. package/vendor/registry/modules/settings/module.json +33 -0
  200. package/vendor/registry/modules/settings/schema/snapshot.json +315 -0
  201. package/vendor/registry/modules/settings/schema/snapshot.multilocale.json +586 -0
  202. package/vendor/registry/modules/settings/services/assets/dkit-logo.svg +4 -0
  203. package/vendor/registry/modules/settings/services/seed.json +31 -0
  204. package/vendor/registry/modules/settings/services/seed.multilocale.json +42 -0
  205. package/vendor/registry/modules/settings/types.multilocale.ts +72 -0
  206. package/vendor/registry/modules/settings/types.ts +94 -0
  207. package/vendor/registry/modules/team/access/policies.json +31 -0
  208. package/vendor/registry/modules/team/access/policies.multilocale.json +43 -0
  209. package/vendor/registry/modules/team/lib.multilocale.ts +88 -0
  210. package/vendor/registry/modules/team/lib.ts +120 -0
  211. package/vendor/registry/modules/team/module.json +47 -0
  212. package/vendor/registry/modules/team/schema/snapshot.json +295 -0
  213. package/vendor/registry/modules/team/schema/snapshot.multilocale.json +525 -0
  214. package/vendor/registry/modules/team/services/ATTRIBUTION.md +8 -0
  215. package/vendor/registry/modules/team/services/assets/morgan-lee-photo.jpg +0 -0
  216. package/vendor/registry/modules/team/services/assets/taylor-kim-photo.jpg +0 -0
  217. package/vendor/registry/modules/team/services/seed.json +52 -0
  218. package/vendor/registry/modules/team/services/seed.multilocale.json +30 -0
  219. package/vendor/registry/modules/team/types.multilocale.ts +33 -0
  220. package/vendor/registry/modules/team/types.ts +27 -0
  221. package/vendor/registry/modules/testimonials/access/policies.json +31 -0
  222. package/vendor/registry/modules/testimonials/access/policies.multilocale.json +43 -0
  223. package/vendor/registry/modules/testimonials/lib.multilocale.ts +93 -0
  224. package/vendor/registry/modules/testimonials/lib.ts +85 -0
  225. package/vendor/registry/modules/testimonials/module.json +41 -0
  226. package/vendor/registry/modules/testimonials/schema/snapshot.json +248 -0
  227. package/vendor/registry/modules/testimonials/schema/snapshot.multilocale.json +462 -0
  228. package/vendor/registry/modules/testimonials/services/ATTRIBUTION.md +8 -0
  229. package/vendor/registry/modules/testimonials/services/assets/jane-doe-avatar.jpg +0 -0
  230. package/vendor/registry/modules/testimonials/services/assets/sample-author-avatar.jpg +0 -0
  231. package/vendor/registry/modules/testimonials/services/seed.json +49 -0
  232. package/vendor/registry/modules/testimonials/services/seed.multilocale.json +30 -0
  233. package/vendor/registry/modules/testimonials/types.multilocale.ts +27 -0
  234. package/vendor/registry/modules/testimonials/types.ts +22 -0
  235. package/vendor/registry/registry.json +832 -0
  236. package/vendor/registry/shared/helpers.ts +16 -0
  237. package/vendor/registry/shared/i18n.ts +74 -0
  238. package/vendor/registry/shared/minimal.css +83 -0
  239. package/vendor/registry/shared/paths.ts +50 -0
  240. package/vendor/registry/shared/prose.css +113 -0
  241. package/vendor/registry/tsconfig.json +49 -0
@@ -0,0 +1,864 @@
1
+ {
2
+ "format": "dkit.rest",
3
+ "collections": [
4
+ {
5
+ "collection": "site",
6
+ "schema": null,
7
+ "meta": {
8
+ "icon": "web",
9
+ "color": "#0F766E",
10
+ "collapse": "open",
11
+ "translations": [
12
+ {
13
+ "language": "en-US",
14
+ "translation": "Site",
15
+ "singular": "Site",
16
+ "plural": "Site"
17
+ }
18
+ ],
19
+ "note": "Site content and chrome — pages, settings, navigation, contact, page builder"
20
+ }
21
+ },
22
+ {
23
+ "collection": "nav_menus",
24
+ "schema": {},
25
+ "meta": {
26
+ "icon": "lists",
27
+ "color": "#0F766E",
28
+ "group": "site",
29
+ "display_template": "{{translations.name}} ({{key}})",
30
+ "archive_field": "status",
31
+ "archive_value": "archived",
32
+ "unarchive_value": "draft",
33
+ "archive_app_filter": true,
34
+ "sort": 3,
35
+ "translations": [
36
+ {
37
+ "language": "en-US",
38
+ "translation": "Menus",
39
+ "singular": "Menu",
40
+ "plural": "Menus"
41
+ }
42
+ ],
43
+ "note": "Named menus such as primary and footer"
44
+ },
45
+ "fields": [
46
+ {
47
+ "field": "id",
48
+ "type": "uuid",
49
+ "meta": {
50
+ "hidden": true,
51
+ "readonly": true,
52
+ "interface": "input",
53
+ "special": [
54
+ "uuid"
55
+ ],
56
+ "sort": 1,
57
+ "width": "full",
58
+ "translations": [
59
+ {
60
+ "language": "en-US",
61
+ "translation": "ID"
62
+ }
63
+ ]
64
+ },
65
+ "schema": {
66
+ "is_primary_key": true,
67
+ "length": 36,
68
+ "has_auto_increment": false
69
+ }
70
+ },
71
+ {
72
+ "field": "status",
73
+ "type": "string",
74
+ "meta": {
75
+ "interface": "select-dropdown",
76
+ "display": "labels",
77
+ "width": "half",
78
+ "sort": 2,
79
+ "options": {
80
+ "choices": [
81
+ {
82
+ "text": "Published",
83
+ "value": "published"
84
+ },
85
+ {
86
+ "text": "Draft",
87
+ "value": "draft"
88
+ },
89
+ {
90
+ "text": "Archived",
91
+ "value": "archived"
92
+ }
93
+ ]
94
+ },
95
+ "display_options": {
96
+ "choices": [
97
+ {
98
+ "text": "Published",
99
+ "value": "published",
100
+ "foreground": "#FFFFFF",
101
+ "background": "#0F766E"
102
+ },
103
+ {
104
+ "text": "Draft",
105
+ "value": "draft",
106
+ "foreground": "#44403C",
107
+ "background": "#E7E5E4"
108
+ },
109
+ {
110
+ "text": "Archived",
111
+ "value": "archived",
112
+ "foreground": "#FFFFFF",
113
+ "background": "#A8A29E"
114
+ }
115
+ ]
116
+ },
117
+ "translations": [
118
+ {
119
+ "language": "en-US",
120
+ "translation": "Status"
121
+ }
122
+ ],
123
+ "note": "Only published items appear on the public site",
124
+ "validation": {
125
+ "_and": [
126
+ {
127
+ "status": {
128
+ "_in": [
129
+ "published",
130
+ "draft",
131
+ "archived"
132
+ ]
133
+ }
134
+ }
135
+ ]
136
+ },
137
+ "validation_message": "Choose Published, Draft, Archived."
138
+ },
139
+ "schema": {
140
+ "default_value": "published",
141
+ "is_nullable": false
142
+ }
143
+ },
144
+ {
145
+ "field": "key",
146
+ "type": "string",
147
+ "meta": {
148
+ "interface": "input",
149
+ "required": true,
150
+ "width": "half",
151
+ "sort": 3,
152
+ "options": {
153
+ "trim": true,
154
+ "slug": true
155
+ },
156
+ "translations": [
157
+ {
158
+ "language": "en-US",
159
+ "translation": "Key"
160
+ }
161
+ ],
162
+ "note": "Stable id used in code (primary, footer, …)",
163
+ "validation": {
164
+ "_and": [
165
+ {
166
+ "key": {
167
+ "_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
168
+ }
169
+ }
170
+ ]
171
+ },
172
+ "validation_message": "Use lowercase letters, numbers, and hyphens only."
173
+ },
174
+ "schema": {
175
+ "is_nullable": false,
176
+ "is_unique": true,
177
+ "max_length": 64
178
+ }
179
+ },
180
+ {
181
+ "field": "items",
182
+ "type": "alias",
183
+ "meta": {
184
+ "interface": "list-o2m",
185
+ "special": [
186
+ "o2m"
187
+ ],
188
+ "width": "full",
189
+ "sort": 4,
190
+ "options": {
191
+ "template": "{{label}}",
192
+ "enableCreate": true,
193
+ "enableSelect": false
194
+ },
195
+ "translations": [
196
+ {
197
+ "language": "en-US",
198
+ "translation": "Items"
199
+ }
200
+ ],
201
+ "note": "Top-level links. Open an item to add Sub-items (dropdown). Nested links are not listed here."
202
+ }
203
+ },
204
+ {
205
+ "field": "translations",
206
+ "type": "alias",
207
+ "meta": {
208
+ "interface": "translations",
209
+ "special": [
210
+ "translations"
211
+ ],
212
+ "width": "full",
213
+ "sort": 5,
214
+ "translations": [
215
+ {
216
+ "language": "en-US",
217
+ "translation": "Translations"
218
+ }
219
+ ]
220
+ },
221
+ "schema": null
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "collection": "nav_menus_translations",
227
+ "schema": {},
228
+ "meta": {
229
+ "hidden": true,
230
+ "icon": "translate",
231
+ "color": "#0F766E",
232
+ "group": "site",
233
+ "translations": [
234
+ {
235
+ "language": "en-US",
236
+ "translation": "Menu translations",
237
+ "singular": "Menu translation",
238
+ "plural": "Menu translations"
239
+ }
240
+ ]
241
+ },
242
+ "fields": [
243
+ {
244
+ "field": "id",
245
+ "type": "integer",
246
+ "meta": {
247
+ "hidden": true,
248
+ "interface": "input",
249
+ "sort": 1,
250
+ "width": "full",
251
+ "translations": [
252
+ {
253
+ "language": "en-US",
254
+ "translation": "ID"
255
+ }
256
+ ]
257
+ },
258
+ "schema": {
259
+ "is_primary_key": true,
260
+ "has_auto_increment": true
261
+ }
262
+ },
263
+ {
264
+ "field": "nav_menus_id",
265
+ "type": "uuid",
266
+ "meta": {
267
+ "hidden": true,
268
+ "sort": 2,
269
+ "width": "half",
270
+ "translations": [
271
+ {
272
+ "language": "en-US",
273
+ "translation": "Menu"
274
+ }
275
+ ]
276
+ },
277
+ "schema": {}
278
+ },
279
+ {
280
+ "field": "languages_code",
281
+ "type": "string",
282
+ "meta": {
283
+ "hidden": true,
284
+ "sort": 3,
285
+ "width": "half",
286
+ "translations": [
287
+ {
288
+ "language": "en-US",
289
+ "translation": "Language"
290
+ }
291
+ ]
292
+ },
293
+ "schema": {}
294
+ },
295
+ {
296
+ "field": "name",
297
+ "type": "string",
298
+ "meta": {
299
+ "interface": "input",
300
+ "width": "full",
301
+ "sort": 4,
302
+ "required": true,
303
+ "options": {
304
+ "trim": true
305
+ },
306
+ "translations": [
307
+ {
308
+ "language": "en-US",
309
+ "translation": "Name"
310
+ }
311
+ ],
312
+ "validation": {
313
+ "_and": [
314
+ {
315
+ "name": {
316
+ "_regex": "^.{1,120}$"
317
+ }
318
+ }
319
+ ]
320
+ },
321
+ "validation_message": "Name is required (max 120 characters)."
322
+ },
323
+ "schema": {
324
+ "is_nullable": false,
325
+ "max_length": 120
326
+ }
327
+ },
328
+ {
329
+ "field": "description",
330
+ "type": "text",
331
+ "meta": {
332
+ "interface": "input-multiline",
333
+ "width": "full",
334
+ "sort": 5,
335
+ "translations": [
336
+ {
337
+ "language": "en-US",
338
+ "translation": "Description"
339
+ }
340
+ ],
341
+ "note": "Optional note for editors"
342
+ },
343
+ "schema": {}
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "collection": "nav_items",
349
+ "schema": {},
350
+ "meta": {
351
+ "hidden": true,
352
+ "icon": "link",
353
+ "color": "#0F766E",
354
+ "group": "site",
355
+ "display_template": "{{translations.label}}",
356
+ "archive_field": "status",
357
+ "archive_value": "archived",
358
+ "unarchive_value": "draft",
359
+ "archive_app_filter": true,
360
+ "sort_field": "sort",
361
+ "sort": 4,
362
+ "translations": [
363
+ {
364
+ "language": "en-US",
365
+ "translation": "Items",
366
+ "singular": "Item",
367
+ "plural": "Items"
368
+ }
369
+ ],
370
+ "note": "Managed only from Menus → Items / Sub-items (hidden from the sidebar)"
371
+ },
372
+ "fields": [
373
+ {
374
+ "field": "id",
375
+ "type": "uuid",
376
+ "meta": {
377
+ "hidden": true,
378
+ "readonly": true,
379
+ "interface": "input",
380
+ "special": [
381
+ "uuid"
382
+ ],
383
+ "sort": 1,
384
+ "width": "full",
385
+ "translations": [
386
+ {
387
+ "language": "en-US",
388
+ "translation": "ID"
389
+ }
390
+ ]
391
+ },
392
+ "schema": {
393
+ "is_primary_key": true,
394
+ "length": 36,
395
+ "has_auto_increment": false
396
+ }
397
+ },
398
+ {
399
+ "field": "status",
400
+ "type": "string",
401
+ "meta": {
402
+ "interface": "select-dropdown",
403
+ "display": "labels",
404
+ "width": "half",
405
+ "sort": 2,
406
+ "options": {
407
+ "choices": [
408
+ {
409
+ "text": "Published",
410
+ "value": "published"
411
+ },
412
+ {
413
+ "text": "Draft",
414
+ "value": "draft"
415
+ },
416
+ {
417
+ "text": "Archived",
418
+ "value": "archived"
419
+ }
420
+ ]
421
+ },
422
+ "display_options": {
423
+ "choices": [
424
+ {
425
+ "text": "Published",
426
+ "value": "published",
427
+ "foreground": "#FFFFFF",
428
+ "background": "#0F766E"
429
+ },
430
+ {
431
+ "text": "Draft",
432
+ "value": "draft",
433
+ "foreground": "#44403C",
434
+ "background": "#E7E5E4"
435
+ },
436
+ {
437
+ "text": "Archived",
438
+ "value": "archived",
439
+ "foreground": "#FFFFFF",
440
+ "background": "#A8A29E"
441
+ }
442
+ ]
443
+ },
444
+ "translations": [
445
+ {
446
+ "language": "en-US",
447
+ "translation": "Status"
448
+ }
449
+ ],
450
+ "note": "Only published items appear on the public site",
451
+ "validation": {
452
+ "_and": [
453
+ {
454
+ "status": {
455
+ "_in": [
456
+ "published",
457
+ "draft",
458
+ "archived"
459
+ ]
460
+ }
461
+ }
462
+ ]
463
+ },
464
+ "validation_message": "Choose Published, Draft, Archived."
465
+ },
466
+ "schema": {
467
+ "default_value": "published",
468
+ "is_nullable": false
469
+ }
470
+ },
471
+ {
472
+ "field": "menu",
473
+ "type": "uuid",
474
+ "meta": {
475
+ "interface": "select-dropdown-m2o",
476
+ "special": [
477
+ "m2o"
478
+ ],
479
+ "required": false,
480
+ "width": "half",
481
+ "sort": 3,
482
+ "options": {
483
+ "template": "{{name}} ({{key}})"
484
+ },
485
+ "translations": [
486
+ {
487
+ "language": "en-US",
488
+ "translation": "Menu"
489
+ }
490
+ ],
491
+ "note": "Set on top-level items only. Leave empty for Sub-items (they nest under Parent).",
492
+ "conditions": [
493
+ {
494
+ "name": "Required for top-level items",
495
+ "rule": {
496
+ "_and": [
497
+ {
498
+ "parent": {
499
+ "_null": true
500
+ }
501
+ }
502
+ ]
503
+ },
504
+ "required": true
505
+ },
506
+ {
507
+ "name": "Hide on nested Sub-items",
508
+ "rule": {
509
+ "_and": [
510
+ {
511
+ "parent": {
512
+ "_nnull": true
513
+ }
514
+ }
515
+ ]
516
+ },
517
+ "hidden": true
518
+ }
519
+ ]
520
+ },
521
+ "schema": {
522
+ "is_nullable": true
523
+ }
524
+ },
525
+ {
526
+ "field": "parent",
527
+ "type": "uuid",
528
+ "meta": {
529
+ "interface": "select-dropdown-m2o",
530
+ "special": [
531
+ "m2o"
532
+ ],
533
+ "hidden": true,
534
+ "width": "half",
535
+ "sort": 4,
536
+ "options": {
537
+ "template": "{{label}}"
538
+ },
539
+ "translations": [
540
+ {
541
+ "language": "en-US",
542
+ "translation": "Parent"
543
+ }
544
+ ],
545
+ "note": "Set automatically when you add Sub-items on a parent item"
546
+ },
547
+ "schema": {}
548
+ },
549
+ {
550
+ "field": "open_in_new_tab",
551
+ "type": "boolean",
552
+ "meta": {
553
+ "interface": "boolean",
554
+ "display": "boolean",
555
+ "width": "half",
556
+ "sort": 5,
557
+ "translations": [
558
+ {
559
+ "language": "en-US",
560
+ "translation": "Open in new tab"
561
+ }
562
+ ]
563
+ },
564
+ "schema": {
565
+ "default_value": false,
566
+ "is_nullable": false
567
+ }
568
+ },
569
+ {
570
+ "field": "sort",
571
+ "type": "integer",
572
+ "meta": {
573
+ "interface": "input",
574
+ "hidden": true,
575
+ "width": "full",
576
+ "sort": 6,
577
+ "translations": [
578
+ {
579
+ "language": "en-US",
580
+ "translation": "Sort"
581
+ }
582
+ ]
583
+ },
584
+ "schema": {}
585
+ },
586
+ {
587
+ "field": "children",
588
+ "type": "alias",
589
+ "meta": {
590
+ "interface": "list-o2m",
591
+ "special": [
592
+ "o2m"
593
+ ],
594
+ "hidden": false,
595
+ "width": "full",
596
+ "sort": 7,
597
+ "options": {
598
+ "template": "{{label}}",
599
+ "enableCreate": true,
600
+ "enableSelect": false
601
+ },
602
+ "translations": [
603
+ {
604
+ "language": "en-US",
605
+ "translation": "Sub-items"
606
+ }
607
+ ],
608
+ "note": "Nested links under this item (header dropdown). Create here — Menu is left empty; Parent is set automatically."
609
+ }
610
+ },
611
+ {
612
+ "field": "translations",
613
+ "type": "alias",
614
+ "meta": {
615
+ "interface": "translations",
616
+ "special": [
617
+ "translations"
618
+ ],
619
+ "width": "full",
620
+ "sort": 8,
621
+ "translations": [
622
+ {
623
+ "language": "en-US",
624
+ "translation": "Translations"
625
+ }
626
+ ]
627
+ },
628
+ "schema": null
629
+ }
630
+ ]
631
+ },
632
+ {
633
+ "collection": "nav_items_translations",
634
+ "schema": {},
635
+ "meta": {
636
+ "hidden": true,
637
+ "icon": "translate",
638
+ "color": "#0F766E",
639
+ "group": "site",
640
+ "translations": [
641
+ {
642
+ "language": "en-US",
643
+ "translation": "Item translations",
644
+ "singular": "Item translation",
645
+ "plural": "Item translations"
646
+ }
647
+ ]
648
+ },
649
+ "fields": [
650
+ {
651
+ "field": "id",
652
+ "type": "integer",
653
+ "meta": {
654
+ "hidden": true,
655
+ "interface": "input",
656
+ "sort": 1,
657
+ "width": "full",
658
+ "translations": [
659
+ {
660
+ "language": "en-US",
661
+ "translation": "ID"
662
+ }
663
+ ]
664
+ },
665
+ "schema": {
666
+ "is_primary_key": true,
667
+ "has_auto_increment": true
668
+ }
669
+ },
670
+ {
671
+ "field": "nav_items_id",
672
+ "type": "uuid",
673
+ "meta": {
674
+ "hidden": true,
675
+ "sort": 2,
676
+ "width": "half",
677
+ "translations": [
678
+ {
679
+ "language": "en-US",
680
+ "translation": "Item"
681
+ }
682
+ ]
683
+ },
684
+ "schema": {}
685
+ },
686
+ {
687
+ "field": "languages_code",
688
+ "type": "string",
689
+ "meta": {
690
+ "hidden": true,
691
+ "sort": 3,
692
+ "width": "half",
693
+ "translations": [
694
+ {
695
+ "language": "en-US",
696
+ "translation": "Language"
697
+ }
698
+ ]
699
+ },
700
+ "schema": {}
701
+ },
702
+ {
703
+ "field": "label",
704
+ "type": "string",
705
+ "meta": {
706
+ "interface": "input",
707
+ "width": "full",
708
+ "sort": 4,
709
+ "required": true,
710
+ "options": {
711
+ "trim": true
712
+ },
713
+ "translations": [
714
+ {
715
+ "language": "en-US",
716
+ "translation": "Label"
717
+ }
718
+ ],
719
+ "validation": {
720
+ "_and": [
721
+ {
722
+ "label": {
723
+ "_regex": "^.{1,120}$"
724
+ }
725
+ }
726
+ ]
727
+ },
728
+ "validation_message": "Label is required (max 120 characters)."
729
+ },
730
+ "schema": {
731
+ "is_nullable": false,
732
+ "max_length": 120
733
+ }
734
+ },
735
+ {
736
+ "field": "href",
737
+ "type": "string",
738
+ "meta": {
739
+ "interface": "input",
740
+ "required": true,
741
+ "width": "half",
742
+ "sort": 5,
743
+ "options": {
744
+ "trim": true
745
+ },
746
+ "translations": [
747
+ {
748
+ "language": "en-US",
749
+ "translation": "URL"
750
+ }
751
+ ],
752
+ "note": "Internal path (/blog) or absolute URL",
753
+ "validation": {
754
+ "_and": [
755
+ {
756
+ "href": {
757
+ "_regex": "^.{1,500}$"
758
+ }
759
+ }
760
+ ]
761
+ },
762
+ "validation_message": "URL is required (max 500 characters)."
763
+ },
764
+ "schema": {
765
+ "is_nullable": false,
766
+ "max_length": 500
767
+ }
768
+ }
769
+ ]
770
+ }
771
+ ],
772
+ "relations": [
773
+ {
774
+ "collection": "nav_items",
775
+ "field": "menu",
776
+ "related_collection": "nav_menus",
777
+ "meta": {
778
+ "many_collection": "nav_items",
779
+ "many_field": "menu",
780
+ "one_collection": "nav_menus",
781
+ "one_field": "items",
782
+ "one_deselect_action": "delete"
783
+ },
784
+ "schema": {
785
+ "on_delete": "CASCADE"
786
+ }
787
+ },
788
+ {
789
+ "collection": "nav_items",
790
+ "field": "parent",
791
+ "related_collection": "nav_items",
792
+ "meta": {
793
+ "many_collection": "nav_items",
794
+ "many_field": "parent",
795
+ "one_collection": "nav_items",
796
+ "one_field": "children",
797
+ "one_deselect_action": "delete"
798
+ },
799
+ "schema": {
800
+ "on_delete": "CASCADE"
801
+ }
802
+ },
803
+ {
804
+ "collection": "nav_menus_translations",
805
+ "field": "nav_menus_id",
806
+ "related_collection": "nav_menus",
807
+ "meta": {
808
+ "many_collection": "nav_menus_translations",
809
+ "many_field": "nav_menus_id",
810
+ "one_collection": "nav_menus",
811
+ "one_field": "translations",
812
+ "junction_field": "languages_code"
813
+ },
814
+ "schema": {
815
+ "on_delete": "CASCADE"
816
+ }
817
+ },
818
+ {
819
+ "collection": "nav_menus_translations",
820
+ "field": "languages_code",
821
+ "related_collection": "languages",
822
+ "meta": {
823
+ "many_collection": "nav_menus_translations",
824
+ "many_field": "languages_code",
825
+ "one_collection": "languages",
826
+ "one_field": null,
827
+ "junction_field": "nav_menus_id"
828
+ },
829
+ "schema": {
830
+ "on_delete": "CASCADE"
831
+ }
832
+ },
833
+ {
834
+ "collection": "nav_items_translations",
835
+ "field": "nav_items_id",
836
+ "related_collection": "nav_items",
837
+ "meta": {
838
+ "many_collection": "nav_items_translations",
839
+ "many_field": "nav_items_id",
840
+ "one_collection": "nav_items",
841
+ "one_field": "translations",
842
+ "junction_field": "languages_code"
843
+ },
844
+ "schema": {
845
+ "on_delete": "CASCADE"
846
+ }
847
+ },
848
+ {
849
+ "collection": "nav_items_translations",
850
+ "field": "languages_code",
851
+ "related_collection": "languages",
852
+ "meta": {
853
+ "many_collection": "nav_items_translations",
854
+ "many_field": "languages_code",
855
+ "one_collection": "languages",
856
+ "one_field": null,
857
+ "junction_field": "nav_items_id"
858
+ },
859
+ "schema": {
860
+ "on_delete": "CASCADE"
861
+ }
862
+ }
863
+ ]
864
+ }